Visualizzazione post con etichetta linux. Mostra tutti i post
Visualizzazione post con etichetta linux. Mostra tutti i post

mercoledì 20 aprile 2011

How to enable WebGL support in Firefox 4 (Linux)

WebGL is a Web-based Graphics Library. It extends the capability of the JavaScript programming language to allow it to generate interactive 3D graphics within any compatible web browser.
To enable WebGL support in firefox 4 using Ubuntu 10.04 you have to install the library libosmesa6 with the following command:
sudo apt-get install libosmesa6
After this start up firefox and in the url bar type:
about:config
and press enter. Say ok to the alert message and in the search box type "webgl". Double click on "webglosmesalib" parameter and enter the library path (like in the screenshot below).
Enabling Firefox 4 WebGL support.

For me it's:
/usr/lib/libOSMesa.so.6
Now quit and restart Firefox and WebGL support shoul be active.
Enjoy!

giovedì 20 gennaio 2011

Wake on lan con Ubuntu

Certe volte può essere necessario accendere da remoto un pc collegato alla nostra rete LAN. Per fare ciò è necessario anzitutto abilitare il pc che vogliamo accendere a fare il boot qualora esso riceva un particolare segnale sull'interfaccia di rete.
Entriamo quindi nel bios e cerchiamo qualcosa di simile a: "Remote wake up", oppure "Wake on lan" e abilitiamolo come mostrato nell'immagine che segue.
A questo punto è necessario conoscere il MAC address (indirizzo fisico) dell'interfaccia di rete del pc che vogliamo accendere. Se il pc in questione ha ubuntu, possiamo reperire tale dato con il comando:
ifconfig
Generalmente l'interfaccia che ci interessa ha come nome eth0 e l'indirizzo MAC è quello presente alla voce "HWaddr". Se invece stiamo usando window$, possiamo dare da terminale il comando:
ipconfig /all
Il dato che ci interessa è sotto la voce "Indirizzo fisico".
Segnamoci il dato e passiamo ora ad Ubuntu.
Installiamo il pacchetto wakeonlan a meno che non sia già installato con il comando:
sudo apt-get install wakeonlan
Fatto ciò sempre da terminale diamo il comando:
wakeonlan 11:22:33:44:55:66
dove ovviamente 11:22:33:44:55:66 sarà l'indirizzo MAC del pc che intendiamo accendere e il gioco è fatto. La risposta del programma sarà la seguente:
Sending magic packet to 255.255.255.255:9 with 11:22:33:44:55:66
e vedremo come per magia il pc accendersi automaticamente.

mercoledì 17 novembre 2010

PUF: a wget-like url fetcher

PUF stands for parallel url fetcher is a beautyful download tool for UNIX-like systems. It is similar to GNU wget, but with puf you have the ability to download many files in parallel. To install it on Debian-based linux (like Ubuntu) simply type to the command line:
sudo apt-get install puf
The usage is very simple. For example, to download many files in parallel, you should type:
puf file1 file2 file3
and so on...
More info: http://sourceforge.net/projects/puf/ or simply by typing from the terminal:
man puf

Enjoy!