Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
16 agosto 2007
Abilitare il Bluetooth
sostituendo
security user;
con
security auto;
passkey "1234";
o ancora meglio riavviamo il sistema, per essere sicuri che i pacchetti siano
tutti attivati.
Nel menu System/Preferences dovremmo trovare Bluetooth preferences.
Controlliamo che nella finestra sia seleziona “Only display when adapter
present”. Collegando una chiavetta Usb-BT o attivando il modulo interno, nel
tray deve apparire l’icona del bluetooth di Gnome, che a differenza di quella di
Windows è solo un segnale, non serve a molto, ma almeno ci dice che tutto sta
andando bene.
Siccome con i sistemi Windows Mobile 5 il modo più comodo per collegare a
internet il notebook è usare la PAN, prima di procedere dobbiamo creare una
nuova interfaccia, editando il file
auto bnep0
iface bnep0 inet static
address 192.168.0.103
netmask 255.255.255.0
gateway 192.168.0.1
o in alternativa:
auto bnep0
iface bnep0 inet dhcp
hcitool scan
Il comando rileva il terminale remoto di cui indica anche l’indirizzo MAC e il
nome.
bluez-pin in WINDOWSMOBILE20
bluez-pin out WINDOWSMOBILE20
Ora siamo pronti per gli ultimi due passi, che dovranno essere ripetuti tutte le
volte che vogliamo effettuare il collegamento. Per prima cosa attiviamo
l’applicazione Condivisione internet sul terminale WM5, quindi selezioniamo
la connessione Dati e il collegamento PAN Bluetooth. Quando il cellulare è
connesso digitiamo:
La prima volta il sistema remoto dovrebbe visualizzare una finestra che chiede
di inserire il Pin. Se la procedura non funziona occorre provare a effettuare
l’accoppiamento dal terminale WM5, lasciando attivo il bluetooth sul Pc.
sudo pand -l
ma la vera prova del nove è un bel ping su , per vedere se Ubuntu riesce a
contattare i server dns ed è effettivamente collegato a internet. Ogni tanto,
con la configurazione Dhcp, il terminale WM5 non riesce ad assegnare un
indirizzo a Ubuntu, impedendo il collegamento a internet. Il problema è
risolvibile utilizzando un indirizzo statico come indicato più sopra.
Se la connessione non va a buon fine sono presenti solo gli indirizzi inet6, ma
non inet (Ipv4):
gianluca@ubu:~$ ifconfig
bnep0 Link encap:Ethernet HWaddr 00:01:4A:13:D4:F4
collisions:0 txqueuelen:1000
Controllando che nella sezione monitor sia attivato il DPMS come qui sotto:
Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Driver "fglrx"
Busid "PCI:1:0:0"
EndSection
Il problema è la gestione del risparmio energetico che con i driver fglrx 8.34.8
della Feisty non sembra essere disponibile. Il problema riguarda in realtà il
settaggio DynamicClocks nel file xorg.conf. A quanto pare infatti non è
possibile attivarlo. E’ probabile che in alternativa sia possibile utilizzare
atieventsd ma non sono riuscito ad attivarlo. E’ invece possibile accedere alle
informazioni sugli stati di risparmio energetico con:
/etc/init.d/acpid restart
I driver proprietari non sono compatibili con gli effetti desktop di Compiz, che
quindi viene automaticamente disabilitato. Per evitare questo problema per
prima cosa occorre abilitare i driver restricted
(System/Amministrazione/Restricted Drivers Manager). A questo punto
dobbiamo installare XGL, perché i driver proprietari non sono compatibili con
Aiglx:
e creare uno script per avviarlo (con sudo gedit /usr/local/bin/startxgl.sh) che
contiene queste righe:
#!/bin/sh
DISPLAY=:1
Poi dobbiamo creare una nuova voce nell’elenco delle sessioni nella finestra di
login (sudo gedit /usr/share/xsessions/xgl.desktop) inserendo:
[Desktop Entry]
Encoding=UTF-8
Comment=
Exec=/usr/local/bin/startxgl.sh
Icon=
Type=Application
E’ possibile anche aggiungere gli effetti inserendo una serie di comandi sul
terminale, che non ho provato ma dovrebbero garantire un maggiore
controllo:
1- compiz –replace
2 - emerald-replace
Ci sono guide in giro per aggiornare i driver all’ultima versione fornita dalla
Ati, ma hanno un effetto negativo su Xgl. Per tornare ai driver precedenti
basta rimuovere quelli nuovi (tutti quelli che hanno fglrx nel nome,
dovrebbero essere 4 pacchetti) anche utilizzando Synaptic e quindi
reinstallare quelli vecchi con i comandi:
Se ci sono problemi con la directory /etc/ati che non è vuota (passo a riga 3),
basta eliminarla con sudo mv /etc/ati /etc/ati.bak . La procedura che non ha
funzionatp è disponibile su
http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide .
Su Ubuntu non conviene installare Beagle, visto che il supporto al ben più
veloce Tracker è già operativo e sarà ancor meglio in futuro. Per abilitare
l’indicizzazione è sufficiente aprire Synaptic e installare i pacchetti tracker,
tracker-search-tool e tracker-utils, con le dipendenze del caso.
Per attivare il demone trackerd, cliccare su System/Preferenze/Sessioni,
quindi su New e inserire Name:Tracker, Command: trackerd
Utilizzando il pannello della barra delle applicazioni, potrebbe verificarsi un
errore all’apertura. Per un certo periodo mi è bastato disabilitare trackerd dal
pannello Sessioni, ma dopo un po’ in modo inspiegabile l’errore è ritornato. A
quanto pare la cosa sarà risolta con la versione 0.6 di Tracker (quella presente
in Synaptic è la 0.5.4).
Per visualizzare lo stato dell’indicizzazione basta digitare tracker-stats in un
terminale, ecco un esempio:
gianluca@ubu:~$ tracker-stats
-------fetching index stats---------
Development Files : 4
Videos : 34
Text Files : 1131
Documents : 1737
Folders : 2514
Other Files : 2759
Images : 3910
Music : 10830
Total entities indexed : 22919
------------------------------------
/home/UTENTE/.Tracker/tracker.cfg
Per evitare che il touchpad venga attivato mentre si utilizza la tastiera oppure
durante lo scrolling è necessario avviare questo script a ogni sessione:
#!/bin/bash
# Disable touchpad for 2 seconds after last key press
# to prevent accidental touchpad activation while typing.
/usr/bin/syndaemon -d -t -i 2
the -d flag tells syndaemon to run all the time and monitor the
keyboard presses
the -t flag tells it to only disable tapping and scrolling, not
pointer movement
the -i flag is how long (in seconds) to disable the touchpad
*after* the last keypress
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "MinSpeed" "0.8"
Option "MaxSpeed" "0.8"
Option "SHMConfig" "on"
EndSection
Sospensione e ibernazione
Con me non ha funzionato finché non ho modificato gli script originali con
questi:
L'ibernazione con uswsusp quando viene utilizzata molta memoria Ram può
essere difficoltosa. Il sistema rimane acceso, con la spia dell'Hd in funzione,
ma non succede niente. Secondo alcuni basta modificare il file
/etc/uswsusp.conf, modificando la dimensione dell'immagine in modo che sia
uguale alla Ram fisica disponibile (1 GB = 1073741824, 512 MB =
536870912). Qualcuno sostiene che nella Feisty i GB si misurano in decimale
quindi 1 GB = 1000000. Il file di ibernazione dovrebbe essere
automaticamente aggiornato ma nel caso è necessario inviare il comando echo
xxx > /sys/power/image_size dalla console di root (sudo su).
Secondo altre guide può essere utile modificare /etc/acpi/hibernate.sh,
sostituendo:
if [ -x /sbin/s2disk ]; then
DEVICE="/dev/disk/by-uuid/`awk -F= '{print $3}'
</etc/initramfs-tools/conf.d/resume`"
if [ -f /etc/usplash.conf ]; then
. /etc/usplash.conf
/sbin/s2disk -x "$xres" -y "$yres" $DEVICE
else
/sbin/s2disk $DEVICE
fi
else
echo -n "disk" >/sys/power/state
fi
con:
if [ -x /sbin/s2disk ]; then
DEVICE="/dev/disk/by-uuid/`awk -F= '{print $3}'
</etc/initramfs-tools/conf.d/resume`"
/sbin/s2disk $DEVICE
else
echo -n "disk" >/sys/power/state
fi
Nel caso è anche possibile creare un file di swap aggiuntivo alla partizione di
swap, che può essere utilizzato quando lo spazio nella partizione si esaurisce
(v. http://www.pluto.it/files/ildp/guide/GuidaSysadm/x1509.html).
Alla fine ho scoperto che il problema non è il driver della scheda grafica, ma il
fatto che quando è attivo Xgl swsusp dice di non avere abbastanza memoria
per salvare l’immagine sul disco. Per aggirare il problema è sufficiente
inserire un nuovo script con:
che contiene:
#/bin/bash
echo 485864570 > /sys/power/image_size
HIBERNATE_MODE=platform
(DOUBLE_CONSOLE_SWITCH=true)
video=radeonfb:force_sleep
Per evitare invece i problemi con il driver Usb (che in realtà non sembrano
avere effetti concreti, ma solo una visualizzazione di errori durante le
operazioni di spegnimento), ho inserito, in modo probabilmente non consono,
ho fatto le seguenti modifiche:
Il metodo è un po’ drastico, ma visto che il lettore serve a poco o niente basta
eliminare il driver. Per prima cosa verifichiamo se il driver è caricato con:
aggiungendo in fondo:
Skype - è disponibile anche per Linux, purtroppo per ora non manda gli Sms
Tomboy - non può sostituire OneNote, ma è veramente ottimo per salvare note
rapide, molto più di OneNote. Opto per i classici file di testo per evitare future
sorprese, utilizzando Abiword e utilizzando una cartella con i file di
riferimento.
Risparmiare energia
cd /sys/devices/system/cpu/cpu0/cpufreq
cat ondemand/sampling_rate_max > ondemand/sampling_rate
ENABLE_LAPTOP_MODE=true
HIBERNATE_MODE=platform
Tastiera
Inviare Sms
ls -l /dev/ttyACM*
Per trovare la porta a cui è collegato. Copia il valore dentro al campo Other
port nelle preferenze di Phone Manager (è nel menu Applicazioni/Accessori).
Modifiche a Gnome
Salvare le sessioni
Condividere le cartelle
Altre guide
• For AMD64/EMT read #How to add extra repositories and add the
following to the repository list (or directly to /etc/apt/sources.list using
gedit):
deb http://ubuntu.moshen.de feisty experimental
deb-src http://ubuntu.moshen.de feisty experimental
There are various locations in GNU/Linux in which fonts can be kept. These
locations are defined in /etc/fonts/fonts.conf; standard ones include
/usr/share/fonts, /usr/local/share/fonts, and
/home/<username>/.fonts (where <username> is your user name).
The easiest way to install a truetype font is to press alt-F2 and enter the
following code (this will open nautilus in the right directory):
gksu nautilus /usr/share/fonts/truetype
Then create a new directory, name the directory whatever you like (choose a
name that you remember if you ever need to backup your fonts personal
fonts). Copy the fonts into that directory and finally rebuild the font
information files by pressing alt-F2, mark 'run in terminal' so you can see the
progress and entering the following code:
sudo fc-cache -f -v
Note: After you install a new font, you will need to make sure that programs
in which you want to use the new fonts can recognize them. In most cases this
is done by closing and reopening the programs; however, some programs may
require you to log out and log back in.
The easiest place for people to put their fonts is /home/<username>/.fonts. If
you have not already done so, create this folder:
• Open your home folder in Nautilus (GNOME) or Konqueror (KDE).
• Since dot-folders are really hidden folders, you need to choose "Show
Hidden Files" from the View menu.
• Go to File -> Create Folder (GNOME), or right-click and choose
Create New -> Folder (KDE).
• Name the new folder ".fonts".
Now double click on the folder to open it, and drag and drop your fonts into
the folder.
On GNOME, you can also directly open the virtual folder fonts:/ (within a
Nautilus window, choose Go -> Location or press Ctrl+L) and drag and drop
fonts into this folder.
However, fonts that are added by either of the ways above will only be
available for one user. To make them available system-wide, drag and drop
them to the directory /usr/share/fonts. (Note: If you're on Kubuntu you may
have to cd to /usr/share/fonts and run mkfontscale, mkfontdir, fc-cache
after this. See the instructions below.)
As in the last method, on GNOME you can also add fonts directly to fonts:/.
However, you must open the virtual folder as root. You can do this by opening
a terminal window and running
gksudo nautilus fonts:
changing /etc/default/acpi-support
Editing this file, look for the line below, where to add
restart them in
# the resume process.
STOP_SERVICES="networking"
Thomas.
http://sourceforge.net/project/downl...ar.gz&49083195
Then do
Code:
./configure --prefix=/usr
make
Now I use checkinstall to create a deb file because it is easy to uninstall
later via synaptic. If you have checkinstall installed you can then do
Code:
sudo checkinstall
Or if you do not do
Code:
sudo make install
There are a number of dev packages you need to install but I can't
remember what they are. I believe they were libcurl3-dev, evolution-
data-server-dev and libdb3-dev. If you get errors during the ./configure
stage, see what it is saying is missing. Then open synaptic and look for
that package (sometimes ubuntu lists the packaged as libwhatever).
Install the whatever-dev package and reconfigure. If you have trouble
finding something let me know.
Then in the spds directory, create two more directories. One named
"sources" and the other "syncml."
Now for the config files. In each of those three directories you need a
config.txt file.
addressbook/config.txt
Code:
# name of the source, must match the <source> in
# spds/sources/<source>/config.txt
name = addressbook
calendar/config.txt
Code:
# name of the source, must match the <source> in
# spds/sources/<source>/config.txt
name = calendar
Here is mine:
Code:
# the base URL of the SyncML server:
# - Sync4j 2.3
#syncURL = http://hartys.org:1972/egroupware/rpc.php
# - Funambol >= 3.0
#syncURL = http://localhost:8080/funambol/ds
# - sync.scheduleworld.com
syncURL = http://sync.scheduleworld.com/funambol/ds
# the SyncML server gets this string and will use it to keep track of
# changes that still need to be synchronized with this particular
# client; it must be set to something unique if SyncEvolution is used
# to synchronize data between different computers
deviceId = sc-api-nat-hartysdesktop
serverID =
serverPWD =
serverNonce =
clientNonce =
clientAuthType =
serverAuthType =
isServerAuthRequired = 0
proxyPort = 0
proxyUsername =
proxyPassword =
checkConn = 0
responseTimeout = 0
readBufferSize = 0
maxMsgSize = 0
encryption = 0
Fill in the username and password with what is given to you by
scheduleworld. Customize the device name.
Now to run, do
Code:
syncevolution whatever
with the whatever being what you named
/home/your_home/.sync4j/evolution/whatever
That should do it. Let me know if you have any problems.