2009/12/29

VirtualBox

Installation

The virtualbox-ose package in the official repositories does not support USB peripherals. Hence one can install the non-ose version downloading the deb package from official site, or adding a non-official repository in /etc/apt/sources.list:

# VirtualBox
deb http://download.virtualbox.org/virtualbox/debian jaunty non-free


The authentication key is

wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -


and than the package list must be updated.

sudo aptitude update


and the package can be installed

sudo aptitude install virtualbox-3.1



After the insallation

We need to add the user to the vboxusers group:

sudo adduser $LOGNAME vboxusers


sudo -u $USER -s


Than we can enable the usb support:

echo "none /proc/bus/usb usbfs devgid=$(grep plugdev /etc/group | sed 's/plugdev:x:\(.*\):.*/\1/'),devmode=664 0 0" | sudo tee -a /etc/fstab


mount the usb devices

sudo mount /proc/bus/usb


and recompiling the module

sudo /etc/init.d/vboxdrv setup





Ref: Ubuntu Wiki.

2009/08/02

GMPlayer - Errore nella scelta del dispositivo video

Se GMPlayer dà l'errore

Error opening/initializing the selected video_out (-vo) device.

bisogna modificare nel file

~/.mplayer/gui.conf

la riga che riguarda il dispositivo video impostando

vo_driver = "x11"


Ref: ubuntuforums

2009/04/05

Azureus Vuze

N.B. Per le distribuzioni debian la procedura sotto riportata non è più necessaria, basta installare il pacchetto vuze.

Installazione

Installare java

sudo aptitude install sun-java6-jre

Scaricare Azureus Vuze dal suo sito ed estrarre l'archivio di Azureus in /opt:

cd ~/Scrivania (se il file è stato scaricato in ~/Scrivania)
sudo tar xfvj Vuze_Installer.tar.bz2 -C /opt/

e modificare i permessi della directory

sudo chown -R utente:utente /opt/vuze/

dove al posto di utente va il nome dell'utente.

Ottimizzazione condivisione

Una volta aperto Vuze, cliccare su Advanced, andare su Strumenti e quindi Opzioni. Nella scheda Code impostare a 2 download massimi simultanei e massimo numero di torrent attivi.

Protocollo offuscamento

Nella scheda Connessioni, Cifratura di Strumenti → Opzioni, selezionare Richiedi il trasferimento codificato
e Autorizza le connessioni in uscita.

2009/03/14

Creative webcams on Debian and Ubuntu

DISCLAIMER: while we keep this post for reference, we strongly discourage the use of proprietary software, since it violates fundamental user freedoms.


Contents of the post:
  1. Creative Live! Cam Vista IM and Skype (Ubuntu 10.10+)
  2. Creative Live! Cam Vista IM (Debian Lenny e Ubuntu)
  3. Creative WebCam Live! (Ubuntu 8.10)

Creative Live! Cam Vista IM and Skype (Ubuntu 10.10+)

In order to make the webcam also compatible with Skype, one needs to install the gspca driver and libv4l.

Installing needed packages:
sudo aptitude install mercurial build-essential linux-headers libncurses5-dev
Retrieving sources (from Douglas Schilling Landgraf V4L/DVB backports repository):
hg clone http://linuxtv.org/hg/v4l-dvb/
Copy the configuration file:
cd v4l-dvb
sudo cp /boot/config-`uname -r` v4l/.config

Note: currently FireDTV drivers do not compile easily (you need all the kernel sources) and are rarely used, we will disable them in the configuration.
Launch configuration:
sudo make menuconfig
Disable FireDTV support (Multimedia Support -> DVB/ATSC adapters -> set the option blank on FireDTV and FloppyDTV):
Capture-4
Capture-5
Capture-6
Exit, Exit.
Now let’s take care of usb webcams (Multimedia Support -> Video Capture adapters -> V4L USB devices)
Activate new modules drivers (press M on those marked NEW), in gspca for example:
Capture-4
Capture-7
Capture-8
Capture-9
Capture-10
Once the new drivers are enabled (M for module instead of a space), we can leave. Exit, Exit, etc… and save:
Capture-11
Launch the compilation:
make
sudo make install
If everything ok go to the next step, because the drivers also require the latest versions of libv4l.
For karmic it’s easy:
sudo add-apt-repository ppa:libv4l
Get the latest version if necessary:
sudo aptitude update
sudo aptitude full-upgrade


In order to load skype with the new drivers:

cd /usr/bin
sudo mv skype skype.real
gksudo gedit skype
add the following lines

#!/bin/sh
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/skype.real "$@"
and make exxecutable the file

sudo chmod +x skype
Restart and enjoy your new drivers.

Ref: Le bazar de Stemp, Ispirazioni Informatiche .

Older versions

N.B. Con i kernel 2.6.27.xx le procedure sotto riportate falliscono. Esse si riferiscono ai kernel 2.6.24.xx.


Creative Live! Cam Vista IM (Debian Lenny e Ubuntu)

Scaricare il driver ov51x-jpeg (ad esempio tramite subversion)

sudo aptitude install subversion
mkdir webcam-driver
svn co svn://rastageeks.org/svn/ov51x-jpeg/trunk webcam-driver

compilare

cd webcam-driver
sudo aptitude install linux-headers-`uname -r`
make
sudo make install
sudo modprobe ov51x-jpeg

installare il modulo del pacchetto

sudo aptitude update
sudo aptitude install ov51x-jpeg-source module-assistant
module-assistant a-i ov51x-jpeg

Per utilizzare la webcam con skype (versione 2.0.0.72) è necessario forzare un parametro all'avvio, inserendo nel file /etc/modprobe.d/options la seguente riga

options ov51x-jpeg forceblock=1

Nel caso di Ubuntu 8.04 o 9.04 è inltre necessario installare libv4l

sudo aptitude install libv4l-0


e lanciare skype con il comando

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype

Conviene quindi rinominare l'eseguibile

sudo mv /usr/bin/skype /usr/bin/skype.real

e creare un file

sudo nano /usr/bin/skype

inserendo la riga

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/skype.real

e renderlo eseguibile

sudo chmod 775 /usr/bin/skype



Ref: ubuntu forums, rastageeks, fireteam.


Creative WebCam Live! (Ubuntu 8.10)

La Creative WebCam Live! viene riconosciuta da ubuntu 8.10 e funziona correttamente con alcuni programmi come Cheese, ma skype 2.0.0.72 , pur riconoscendola, mostra una schermata verde invece del video.
E' quindi necessario installare il pacchetto libv4l (o lib32v4l per la versione amd64)

sudo aptitude install libv4l

rimuovere skype se già installato

sudo aptitude purge skype

e installare i repository Medibuntu

sudo wget http://www.medibuntu.org/sources.list.d/intrepid.list --output-document=/etc/apt/sources.list.d/medibuntu.list

aggiungendo anche la chiave GPG

sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update

e quindi reinstallare skype da questo repository

sudo aptitude install skype


Ref: Ispirazioni Informatiche.


2009/01/12

Rete tra più PC

E' possibile condividere files tra due o più PC tramite NFS.

Dopo avere riconosciuto l'interfaccia di rete

sudo ifconfig

bisogna impostare un IP fisso su ogni computer (qui l'interfaccia è eth0):

sudo ifconfig eth0 192.168.1.1

dove l'ultimo numero deve variare a seconda del PC.


SERVER (192.168.1.1)
Installare NFS server

sudo aptitude install nfs-kernel-server nfs-common portmap

Durante la configurazione di portmap non fare il binding loopback.
Se le cartelle da condividere sono /Dati/musica in lettura e /Dati/testi in lettura e scrittura, allora aggiungere a /etc/exports le righe

/Dati/musica 192.168.1.1/24(ro,async)
/Dati/testi 192.168.1.1/24(rw,no_root_squash,async)

dove si possono anche indicare degli IP specifici invece di 192.168.1.1/24.
Riavviare il server NFS

sudo /etc/init.d/nfs-kernel-server restart

Se si cambiano le condivisione bisogna dare

sudo exportfs -a


CLIENT
Installare NFS client

sudo aptitude install portmap nfs-common

Se /media/musica e /media/testi sono le cartelle in cui montare quelle condivise, allora bisogna inserire in /etc/fstab le righe

192.168.1.1:/Dati/musica /media/musica nfs ro,user,noauto 0 0
192.168.1.1:/Dati/testi /media/testi nfs rw,user,noauto 0 0

dove ro e rw si riferiscono alle cartelle in sola lettura e in lettura/scrittura rispettivamente.
Montare le cartelle con

sudo mount /media/musica & sudo mount /media/testi

Per montarli automaticamente all'avvio utilizzare auto invece di noauto.


Ref: Senbee's Blog