Thursday, September 07, 2006

Ubuntu repository

Ecco il contenuto del mio file /etc/apt/sources.list in Ubuntu Feisty 7.04

deb http://it.archive.ubuntu.com/ubuntu/ feisty main restricted
deb-src http://it.archive.ubuntu.com/ubuntu/ feisty main restricted
deb http://it.archive.ubuntu.com/ubuntu/ feisty-updates main restricted
deb-src http://it.archive.ubuntu.com/ubuntu/ feisty-updates main restricted
deb http://it.archive.ubuntu.com/ubuntu/ feisty universe
deb-src http://it.archive.ubuntu.com/ubuntu/ feisty universe
deb http://it.archive.ubuntu.com/ubuntu/ feisty multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ feisty multiverse
deb http://it.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu feisty-security main restricted
deb-src http://security.ubuntu.com/ubuntu feisty-security main restricted
deb http://security.ubuntu.com/ubuntu feisty-security universe
deb-src http://security.ubuntu.com/ubuntu feisty-security universe
deb http://security.ubuntu.com/ubuntu feisty-security multiverse
deb-src http://security.ubuntu.com/ubuntu feisty-security multiverse
deb http://medibuntu.sos-sts.com/repo/ feisty free non-free
deb-src http://medibuntu.sos-sts.com/repo/ feisty free non-free
deb http://archive.canonical.com/ubuntu feisty-commercial main

Tuesday, September 05, 2006

Spedire e ricevere file con il cellulare via Bluetooth

Per poter utilizzare il collegamento bluetooth tra computer e cellulare occorre installare i seguenti pacchetti:

# apt-get install bluez-utils gnome-bluetooth obexserver

Aprire il seguente file e modificare le righe
# gedit /etc/bluetooth/hcid.conf
riga 15: security none
riga 21: pairing multi
riga 24: # pin_helper /usr/bin/bluez-pin

Riavviare il servizio bluetooth con
# sudo /etc/init.d/bluetooth restart
inserire il dongle e riavviare il computer

Per ricevere/spedire file occorre semplicemente abilitare il servizio dal menu "Accessories > Bluetooth file sharing"

Accendiamo il bluetooth del cellulare, selezionare quindi un file, tasto destro del mouse, Send to...

Dalla riga di comando è possibile spedire un file al dispositivo bluetooth come di seguito
# gnome-obex-server nomefile
a questo punto dobrebbe comparire una finestra dalla quale è possibile cercare eventuali dispositivi (devono essere accesi!) per poi inviare il file.

(Obsoleto) Con il seguente script è possibile integrare le funzioni di trasferimento in Nautilus. Aprire quindi un file come nell'esempio
# gedit ~/.gnome2/nautilus-scripts/Send\ with\ Bluetooth

e copiare il seguente testo
#!/bin/sh
# Send Selected File via Bluetooth.
filepath=$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
gnome-obex-send $filepath

Successivamente rendiamolo eseguibile e riavviamo Nautilus
sudo chmod +x ~/.gnome2/nautilus-scripts/Send\ with\ Bluetooth
killall nautilus
killall gnome-panel