Installare Ubuntu

download Installare Ubuntu

of 28

Transcript of Installare Ubuntu

  • 8/14/2019 Installare Ubuntu

    1/28

    Diario di installazione

    Linux Feisty Fawn

    16 agosto 2007

    Abilitare il Bluetooth

    Il modulo BT integrato del Vaio VGN-S2XP di vecchia generazione ed piuttosto inaffidabile (meglio sostituirlo con una qualsiasi chiavetta Usb,magari 2.0 con Edr). Non comunque tutta colpa del modulo, uno script diFeisty infatti sbagliato.

    Per prima cosa occorre installare con synaptic il pacchetto bluetooth chedovrebbe attivare come dipendenze anche bluez-cups, bluez-gnome, bluez-pine bluez-utils (questi sono i pacchetti attivati di default nella mia installazione).

    A questo punto occorre modificare il file hcid.conf (il file di configurazione diriferimento per il bluetooth, molto semplice e breve)

    sudo gedit /etc/bluetooth/hcid.conf

    sostituendo

    security user;

    con

    security auto;

    meglio annotare anche il pin o modificarlo

    passkey "1234";

    quindi riavviamo lo stack Bluetooth

    sudo /etc/init.d/bluetooth restart

    o ancora meglio riavviamo il sistema, per essere sicuri che i pacchetti sianotutti attivati.

  • 8/14/2019 Installare Ubuntu

    2/28

    Nel menu System/Preferences dovremmo trovare Bluetooth preferences.Controlliamo che nella finestra sia seleziona Only display when adapterpresent. Collegando una chiavetta Usb-BT o attivando il modulo interno, neltray deve apparire licona del bluetooth di Gnome, che a differenza di quella diWindows 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 ainternet il notebook usare la PAN, prima di procedere dobbiamo creare unanuova interfaccia, editando il file

    sudo gedit /etc/network/interfaces

    dove in coda necessario aggiungere:

    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

    Linterfaccia bnep0 sar attivata solo quando avremo stabilito la connessionePAN con il terminale WM5, ma quando attiva pu essere modificata(indirizzo statico o dhcp) anche da System/Administration/Network.

    A questo punto attiviamo il bluetooth sul palmare e apriamo nuovamente ilterminale, dove digiteremo

    hcitool scan

    Il comando rileva il terminale remoto di cui indica anche lindirizzo MAC e ilnome.

    Per effettuare il collegamento in una guida suggerivano di definire prima i Pinin entrata e in uscita con il comando bluez-pin, come qui sotto:

    bluez-pin in WINDOWSMOBILE20

  • 8/14/2019 Installare Ubuntu

    3/28

    bluez-pin out WINDOWSMOBILE20

    Dove WINDOWSMOBILE20 il nome rilevato da hcitool scan, ma di fattoavendo modificato il file di configurazione del bluetooth hcid.conf, questopassaggio sembra del tutto superfluo.

    Ora siamo pronti per gli ultimi due passi, che dovranno essere ripetuti tutte le volte che vogliamo effettuare il collegamento. Per prima cosa attiviamolapplicazione Condivisione internet sul terminale WM5, quindi selezioniamola connessione Dati e il collegamento PAN Bluetooth. Quando il cellulare connesso digitiamo:

    sudo modprobe bnep

    sudo pand -connect 00:17:83:01:3B:39

    La prima volta il sistema remoto dovrebbe visualizzare una finestra che chiededi inserire il Pin. Se la procedura non funziona occorre provare a effettuarelaccoppiamento dal terminale WM5, lasciando attivo il bluetooth sul Pc.

    Per controllare se il collegamento stato stabilito possiamo utilizzare

    sudo pand -l

    ma la vera prova del nove un bel ping su , per vedere se Ubuntu riesce acontattare i server dns ed effettivamente collegato a internet. Ogni tanto,con la configurazione Dhcp, il terminale WM5 non riesce ad assegnare unindirizzo a Ubuntu, impedendo il collegamento a internet. Il problema risolvibile utilizzando un indirizzo statico come indicato pi sopra.

    A questo punto lideale sarebbe preparare un script da richiamare velocemente ogni volta che si desidera effettuare il collegamento.

    Per ulteriori verifiche di seguito riporto il risultato di ifconfig relativo allaconnessione bnep0, quando tutto va bene

    bnep0 Link encap:Ethernet HWaddr 00:16:93:01:03:B2

    inet addr:192.168.0.103 Bcast:192.168.0.255 Mask:255.255.255.0

    inet6 addr: 2002:d9ca:c53c:f:216:93ff:fe01:3b2/64 Scope:Global

    inet6 addr: fec0::f:216:93ff:fe01:3b2/64 Scope:Site

    inet6 addr: fe80::216:93ff:fe01:3b2/64 Scope:Link

    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

    RX packets:267 errors:0 dropped:0 overruns:0 frame:0

    TX packets:407 errors:0 dropped:0 overruns:0 carrier:0

  • 8/14/2019 Installare Ubuntu

    4/28

    collisions:0 txqueuelen:1000

    RX bytes:117986 (115.2 KiB) TX bytes:44985 (43.9 KiB)

    Se la connessione non va a buon fine sono presenti solo gli indirizzi inet6, manon inet (Ipv4):

    g ianluca@ubu:~$ ifconfig

    bnep0 Link encap:Ethernet HWaddr 00:01:4A:13:D4:F4

    inet6 addr: fe80::201:4aff:fe13:d4f4/64 Scope:Link

    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

    RX packets:0 errors:0 dropped:0 overruns:0 frame:0

    TX packets:4 errors:0 dropped:0 overruns:0 carrier:0

    collisions:0 txqueuelen:1000RX bytes:24 (24.0 b) TX bytes:124 (124.0 b)

    Spegnimento dello schermo

    Nonostante lo schermo diventi scuro, non si spegne la lampada diretroilluminazione. Questo comando permette di spegnerlo, per controllare se

    possibile farlo almeno a mano:

    xset dpms force off

    Per riaccendere la lampada basta muovere il puntatore o premere un tasto.Ora occorre modificare il file xorg.conf

    sudo gedit /etc/X11/xorg.conf

    Controllando che nella sezione monitor sia attivato il DPMS come qui sotto:

    Section "Monitor"

    Identifier "Generic Monitor"

    Option "DPMS" "true"

    EndSection

    Riavviare Xorg per ricaricare il file di configurazione se stato cambiatoqualcosa e inviare il comando seguente per controllare che il DPMS sia attivo:

  • 8/14/2019 Installare Ubuntu

    5/28

    grep DPMS /var/log/Xorg.0.log

    Anche cambiando i driver da quelli open a quelli proprietari e utilizzando XGLnon ci sono problemi a spegnere il monitor.

    Abilitare il risparmio energetico della scheda grafica

    Nello stesso file /etc/X11/xorg.conf possibile abilitare anche il risparmioenergetico delle Gpu Ati e probabilmente anche di altri modelli

    Section "Device"

    Identifier "ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]"

    Driver "fglrx"

    Busid "PCI:1:0:0"

    Option "DynamicClocks" "on"

    EndSection

    Per controllare se PowerPlay attivo digitare:

    grep Dynamic /var/log/Xorg.0.log

    Il problema la gestione del risparmio energetico che con i driver fglrx 8.34.8della Feisty non sembra essere disponibile. Il problema riguarda in realt ilsettaggio DynamicClocks nel file xorg.conf. A quanto pare infatti non possibile attivarlo. E probabile che in alternativa sia possibile utilizzareatieventsd ma non sono riuscito ad attivarlo. E invece possibile accedere alleinformazioni sugli stati di risparmio energetico con:

    DISPLAY:0 aticonfig --lsp

    E modificare lo stato utilizzando

    DISPLAY=:0 aticonfig set-powerstate=1

    utilizzando i valori indicati da list-powerstates. La dicitura DISPLAY:0 servesolo nel caso sia attivo XGL. Cos anche per attivare fireglcontrol necessarioutilizzare:

  • 8/14/2019 Installare Ubuntu

    6/28

    DISPLAY:0 fireglcontrol

    Non riesco ad attivare uno script automatico dalla directory /etc/acpi/ac.d obattery.d, nonostante abbia inserito due script che dovrebbero cambiare lo

    stato in base allalimentazione. Non molto chiaro lo script power.sh chedovrebbe essere richiamato.

    Il demone atieventsd deve essere lanciato anchesso indicando il display 0, manon funziona se non viene attivato come root, quindi:

    DISPLAY:0 sudo atieventsd

    Il risultato positivo riscontrabile nel registro di sistema, ma non si capiscecosa faccia questo demone, visto che passando dallalimentazione a batteria a

    quella elettrica e viceversa non cambia niente. In pi, visto che ha bisogno deiprivilegi di root non sono riuscito ad avviarlo al boot.

    Registrare gli eventi Acpi

    Utile anche per i tasti speciali:

    sudo tail -f /var/log/acpid

    Per ricaricare il demone:

    /etc/init.d/acpid restart

    Attivare i driver video proprietari e mantenere gli effetti

    I driver proprietari non sono compatibili con gli effetti desktop di Compiz, chequindi viene automaticamente disabilitato. Per evitare questo problema perprima cosa occorre abilitare i driver restricted(System/Amministrazione/Restricted Drivers Manager). A questo puntodobbiamo installare XGL, perch i driver proprietari non sono compatibili con

    Aiglx:

    sudo apt-get install xserver-xgl

    e creare uno script per avviarlo (con sudo gedit /usr/local/bin/startxgl.sh) checontiene queste righe:

  • 8/14/2019 Installare Ubuntu

    7/28

    #!/bin/sh

    Xgl :1 -fullscreen -ac -br -accel xv:pbuffer -accel glx:pbuffer &

    DISPLAY=:1

    cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"

    xauth -i add :1 . "$cookie"

    exec dbus-launch --exit-with-session gnome-session

    Occorre anche modificare i permessi e renderlo eseguibile con:

    sudo chmod a+x /usr/local/bin/startxgl.sh

    Poi dobbiamo creare una nuova voce nellelenco delle sessioni nella finestra di

    login (sudo gedit /usr/share/xsessions/xgl.desktop) inserendo:[Desktop Entry]

    Encoding=UTF-8

    Name=GNOME with XGL

    Comment=

    Exec=/usr/local/bin/startxgl.sh

    Icon=

    Type=Application

    Anche in questo caso cambiamo i permessi:

    sudo chmod a+x /usr/share/xsessions/xgl.desktop

    A questo punto usciamo dalla sessione utente (logout) e rientriamo nellanuova sessione Gnome with XGL. Se tutto va bene siamo pronti per attivare glieffetti dal classico controllo System/Preferenze/Effetti desktop, oppure

    possiamo attivare con Synaptic il pacchetto gnome-compiz-manager, cheaggiunge alle preferenze il controllo GL desktop.

    E possibile anche aggiungere gli effetti inserendo una serie di comandi sulterminale, che non ho provato ma dovrebbero garantire un maggiorecontrollo:

    sudo wget http://download.tuxfamily.org/3v1deb/DD800CD9.gpg -O-

    | sudo apt-key add -

    sudo gedit /etc/apt/sources.list

    Quindi aggiungiamo nel file appena aperto questa riga:

  • 8/14/2019 Installare Ubuntu

    8/28

    deb http://download.tuxfamily.org/3v1deb feisty eyecandy

    Salviamo, usciamo e digitiamo:

    sudo apt-get update

    sudo apt-get install compiz compizconfig-settings-manager

    compiz-plugins compiz-gnome compiz-fusion-plugins-extra emerald

    emerald-themes

    Per attivare Compiz occorre creare due nuove voce inSystem/Preferenze/Sessioni:

    1- compiz replace2 - emerald-replace

    Per controllare lo stato del driver:

    DISPLAY=:0 glxinfo | grep render

    Ci sono guide in giro per aggiornare i driver allultima versione fornita dalla Ati, ma hanno un effetto negativo su Xgl. Per tornare ai driver precedentibasta rimuovere quelli nuovi (tutti quelli che hanno fglrx nel nome,dovrebbero essere 4 pacchetti) anche utilizzando Synaptic e quindireinstallare quelli vecchi con i comandi:

    sudo apt-get update

    sudo apt-get install linux-restricted-modules-$(uname -r)

    sudo apt-get install xorg-driver-fglrx

    sudo depmod -a

    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 hafunzionatp disponibile suhttp://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide .

    Attivare lindicizzazione e controllare lo stato

    Su Ubuntu non conviene installare Beagle, visto che il supporto al ben pi veloce Tracker gi operativo e sar ancor meglio in futuro. Per abilitarelindicizzazione sufficiente aprire Synaptic e installare i pacchetti tracker,tracker-search-tool e tracker-utils, con le dipendenze del caso.

    http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guidehttp://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide
  • 8/14/2019 Installare Ubuntu

    9/28

    Per attivare il demone trackerd, cliccare su System/Preferenze/Sessioni,quindi su New e inserire Name:Tracker, Command: trackerdUtilizzando il pannello della barra delle applicazioni, potrebbe verificarsi unerrore allapertura. Per un certo periodo mi bastato disabilitare trackerd dal

    pannello Sessioni, ma dopo un po in modo inspiegabile lerrore ritornato. A quanto pare la cosa sar risolta con la versione 0.6 di Tracker (quella presentein Synaptic la 0.5.4).Per visualizzare lo stato dellindicizzazione basta digitare tracker-stats in unterminale, 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

    ------------------------------------

    Le configurazioni per controllare il demone (come le cartelle da indicizzare)sono in:

    /home/UTENTE/.Tracker/tracker.cfg

    Qui possibile abilitare anche lindicizzazione delle mail, e soprattuttocontrollare se lindicizzazione effettivamente abilitata(EnableIndexing=true).

    Abilitare il touchpad e configurare le opzioni

    Subito dopo linstallazione il touchpad integrato funziona abbastanza bene,con tanto di tapping e scrolling, ma molto sensibile e non ha un sistema di

  • 8/14/2019 Installare Ubuntu

    10/28

    configurazione a interfaccia grafica. Per installarlo basta aprire Synaptic eselezionare gsynaptics, anche se il touchpad prodotto da ALPS. Ora inSystem/Preferenze c la nuova voce touchpad, con la quale possibileregolare la sensibilit, la velocit del tocco e altri parametri, a parte ladisabilitazione del tap quando si digita, purtroppo.

    Per evitare che il touchpad venga attivato mentre si utilizza la tastiera oppuredurante 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

    Lopzione SHMConfig deve essere su "on" nel file /etc/X11/xorg.conf. Secondoquanto specificato su ubuntuforums.org:

    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

    There are a few other options available to fine-tune which

    keypresses count, ie Fn combos etc.

    Le altre opzioni sono fondamentali, perch il pannello di controllo non sufficiente. In particolare necessario aumentare la velocit altrimenti impossibile non tappare continuamente, per spostare continuamente il dito.Ecco un esempio:

    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"

  • 8/14/2019 Installare Ubuntu

    11/28

    Option "MaxSpeed" "0.8"

    Option "SHMConfig" "on"

    EndSection

    Sospensione e ibernazione

    La procedura predefinita per la sospensione funziona bene con i driver graficiopen, ma non un granch con quelli proprietari. In particolare lo standbysembra funzionare ancora, mentre l'ibernazione no. Ho provato a installare ilpacchetto uswsusp, che permette di utilizzare i comandi s2ram, s2disk es2both.Per sostituire i vecchi comandi di swsusp con quelli nuovi, necessario

    sostituire due script per dare la priorit al nuovo metodo, senza disinstallare il vecchio pacchetto, anche se certi tutorial dicono che basta inviare questocomando, per "nascondere" i pacchetti originali.

    sudo dpkg-divert --rename --divert /usr/sbin/pmi-disabled

    /usr/sbin/pmi

    Per tornare alla configurazione precedente:

    sudo dpkg-divert --rename --remove /usr/sbin/pmi

    Con me non ha funzionato finch non ho modificato gli script originali conquesti:

    tar xjvf hal-system-power-hibernate-linux.tar.bz2

    tar xjvf hal-system-power-suspend-linux.tar.bz2

    Entrambi gli script sostituiscono gli originali nella cartella/usr/lib/hal/scripts/linux/ . Qualsiasi update dell'hal riporter gli script allostato precedente, quindi importante salvarli.

    L'ibernazione con uswsusp quando viene utilizzata molta memoria Ram puessere 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 siauguale alla Ram fisica disponibile (1 GB = 1073741824, 512 MB =536870912). Qualcuno sostiene che nella Feisty i GB si misurano in decimalequindi 1 GB = 1000000. Il file di ibernazione dovrebbe essere

  • 8/14/2019 Installare Ubuntu

    12/28

    automaticamente aggiornato ma nel caso necessario inviare il comando echoxxx > /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}'

  • 8/14/2019 Installare Ubuntu

    13/28

    richiede la ricompilazione del kernel. Una comparazione fra swsusp, uswsuspe Suspend2 disponibile presso http://www.tuxonice.net/features .

    Alla fine ho comunque deciso di tornare al predefinito swsusp, che sembradecisamente pis tabile anche se libernazione non funziona ancora

    Per evitare problemi al ripristino voglio provare a rimuovere lo splash da una voce del menu di boot di grub (/boot/grub/menus.lst), ma il blocco avvieneprima del ripristino quindi devo trovare la configurazione di swsusp.

    Alla fine ho scoperto che il problema non il driver della scheda grafica, ma ilfatto che quando attivo Xgl swsusp dice di non avere abbastanza memoriaper salvare limmagine sul disco. Per aggirare il problema sufficienteinserire un nuovo script con:

    sudo gedit /etc/acpi/suspend.d/95-set-image-size.sh

    che contiene:

    #/bin/bash

    echo 485864570 > /sys/power/image_size

    Con una dimensione dellimmagine cos elevata la sospensione vieneeffettuata in pochi secondi, mentre riducendola a 1048576 la procedurarallenta molto, ma comunque viene effettuata.

    Nel mio sistema libernazione non spegneva completamente tutti icomponenti. Per evitare che la batteria si scaricasse anche a computer spentoho dovuto modificare il file /etc/default/acpi-support :

    HIBERNATE_MODE=platform

    (DOUBLE_CONSOLE_SWITCH=true)

    Perch il predefinito shutdown non spegne completamente il notebook. Inquesto modo libernazione consuma meno energia, ma non a 0. Per ridurre

    ulteriormente i consumi occorre disabilitare la funzione wake on lan dellascheda Ethernet, modificando il file /etc/init.d/bootmisc.sh , con laggiuntadella riga:

    /usr/sbin/ethtool -s eth0 wol d

    Non funziona il parametro del kernel (modificando il file /boot/grub/menu.lstnella voce corrispondente al kernel che verr caricato):

    video=radeonfb:force_sleep

    N il modulo seguente nel file /etc/modules :

    http://www.tuxonice.net/featureshttp://www.tuxonice.net/features
  • 8/14/2019 Installare Ubuntu

    14/28

    radeonfb force_sleep=1

    Per verificare il funzionamento dmesg | grep radeonfb. Con questa funzioneattivata per lo standby non effettua il resume e dopo libernazione ci possonoessere artefatti sullo schermo, che poi spariscono.

    Per evitare invece i problemi con il driver Usb (che in realt non sembranoavere effetti concreti, ma solo una visualizzazione di errori durante leoperazioni di spegnimento), ho inserito, in modo probabilmente non consono,ho fatto le seguenti modifiche:

    File /etc/acpi/suspend.d/70-modules-unload.sh aggiungere

    # remove USB for external mouse before sleeping

    if lsmod | grep '^usbhid' >/dev/null ; then

    /sbin/modprobe -r -s usbhid

    fi

    if lsmod | grep '^uhci_hcd' >/dev/null ; then

    /sbin/modprobe -r -s uhci_hcd

    fi

    if lsmod | grep '^ehci_hcd' >/dev/null ; then

    /sbin/modprobe -r -s ehci_hcdfi

    File /etc/acpi/resume.d/35-modules-load.sh - aggiungere

    # restore USB support

    if !(lsmod | grep '^ehci_hcd') >/dev/null ; then

    /sbin/modprobe -s ehci_hcd

    fi

    if !(lsmod | grep '^uhci_hcd') >/dev/null ; then

    /sbin/modprobe -s uhci_hcd

    fi

    if !(lsmod | grep '^usbhid') >/dev/null ; then

    /sbin/modprobe -s usbhid

    fi

  • 8/14/2019 Installare Ubuntu

    15/28

    E decisamente pi veloce modificare il file /etc/default/acpi-support

    MODULES="usbhid uhci_hcd ehci_hcd ohci1394 yenta_cardbus e100"

    Che provvede autonomamente a scaricare e caricare i moduli indicati.

    Nonostante questo con libernazione la batteria continua a scaricarsi.Provando con Fn+F12 sembra che le cose vadano decisamente meglio, anchese devo provare ancora.

    Spegnere la luce del lettore integrato di Memory Stick

    Il metodo un po drastico, ma visto che il lettore serve a poco o niente bastaeliminare il driver. Per prima cosa verifichiamo se il driver caricato con:

    lsmod | grep tifm

    quindi ho aggiornato il file dei driver blacklisted

    sudo gedit /etc/modprobe.d/blacklist

    aggiungendo in fondo:

    # Lettore memory stick del Vaioblacklist tifm_sd

    blacklist tifm_7xx1

    blacklist tifm_core

    blacklist mmc_core

    Quali applicazioni scegliere

    Truecrypt - disponibile da riga di comando, ma c' anche un front endchiamato Forcefield, che una volta isntallato si trova nel menu Accessori.

    Skype - disponibile anche per Linux, purtroppo per ora non manda gli Sms

    Keepass - si chiama keepassx ma del tutto identico a quello di Windows. Nonne ho testato l'integrazione.

    Firefox - funziona da dio

    Thunderbird - idem come sopra. Per attivare l'indicizzazione dei messaggi v.sezione dedicata a tracker.

  • 8/14/2019 Installare Ubuntu

    16/28

    Evolution - meglio di Outlook, ma per non incasinarmi con i messaggi hocomunque preferito delegare la posta a Thunderbird. Per importare i contatti necessario esportarli in formato Vcard, anche in un solo file, mentre per ilcalendario bisogna correggere i file ics esportati da Windows Vista perch nonsono pienamente compatibili.

    Tomboy - non pu sostituire OneNote, ma veramente ottimo per salvare noterapide, molto pi di OneNote. Opto per i classici file di testo per evitare futuresorprese, utilizzando Abiword e utilizzando una cartella con i file diriferimento.

    OpenOffice - sostituisce tutti i programmi Office a parte Outlook e OneNote inmodo egregio. Non si spiega perch l'antialiasing non affidato al sistemaoperativo.

    Risparmiare energia

    Alcuni comandi da eseguire per provare a risparmiare energia:

    sudo iwpriv eth1 set_power 5

    (5 maggiore risparmio energetico, 1 migliori prestazioni, si pu usare anche 7forse)

    cd /sys/devices/system/cpu/cpu0/cpufreq

    cat ondemand/sampling_rate_max > ondemand/sampling_rate

    Da sudo su, permette di ridurre la frequenza di campionamento dello stato diidle della Cpu (problema risolto dal kernel 2.6.22-rc1

    echo 5 > /proc/sys/vm/laptop_mode

    La modalit laptop mode riduce lutilizzo del disco in scrittura

    echo 1500 > /proc/sys/vm/dirty_writeback_centisecs

    Riduce la frequenza di writeback del kernel.

    echo 1 > /sys/bus/pci/drivers/ipw*/*/rf_kill

    Interrompe lutilizzo della scheda wifi.

    ethtool -s eth0 wol d

    Disabilita il wake-on-lan. Per disabilitarlo definitivamente inserire la stessa

  • 8/14/2019 Installare Ubuntu

    17/28

    riga nel file /etc/init.d/bootmisc.sh .

    Per capire dove sono i problemi:

    strace -p $(pidof yourapp) # for all your runningapplications

    powertop

    sysctl vm.block_dump=1 # and look at dmesg

    ps aux | awk '{print$10,$11}' | sort -n # will list allrunning softs sorted by used cpu time

    Per lundervolting un buon twiki http://www.thinkwiki.org/wiki/Pentium_M_undervolting_and_underclocking

    Per ridurre laccesso al disco possibile attivare la modalit laptop-mode soloquando il computer alimentato a batteria, basta modificare il file acpi-support:

    sudo gedit /etc/default/acpi-support

    controllando che sia presente la voce:

    ENABLE_LAPTOP_MODE=true

    Nello stesso file controllare che:

    HIBERNATE_MODE=platform

    Perch il predefinito shutdown non spegne completamente il notebook.Nonostante il miglioramento c ancora qualche componente che resta acceso,per ulteriori informazioni v. voce corrispondente.

    Tastiera

    A un certo punto il tasto alt non risultava disponibile, ma invertendoloallinterno di Sistema/Preferenze/GL desktop con il tasto Windows erapossibile recuperarlo. Il problema per non era qui. Per qualche strano motivoil tasto Alt era stato disabilitato da Preferenze/Tastiera, in concomitanza con ilpassaggio a Xgl.

    Inviare Sms

    Installa gnome-phone-manager. Collega il telefono con il cavo Usb (gnome-

  • 8/14/2019 Installare Ubuntu

    18/28

    phone-manager per qualche strano motivo non rileva il telefono via BT anchese Hcitool lo trova e anche se sul terminale sembra trovarlo) quindi invia ilcomando:

    ls -l /dev/ttyACM*

    Per trovare la porta a cui collegato. Copia il valore dentro al campo Otherport nelle preferenze di Phone Manager ( nel menu Applicazioni/Accessori).

    Modifiche a Gnome

    Per applicare alcune modifiche al comportamento di Gnome ho installatogtwekui, che va a finire con 4 nuove icone nel menu Sistema/Preferenze.

    Attenzione all'opzione per salvare le sessioni. Meglio utilizzare il controllo

    Sistema/Preferenze/Sessioni. Inoltre applicazioni come OpenOffice continuanoad aprirsi ma non recuperano il file su cui stavo lavorando.

    Salvare le sessioni

    Abilitando il salvataggio delle sessioni con gtweakui mi capitato di perdere itemi delle finestre (ovvero ho perso i temi) e di prolungare il caricamento diparecchio, prima ancora di poter avere a disposizione la rete. Per eliminare il

    problema ho dovuto riabilitare gli effetti desktop inSistema/Preferenze/Gldesktop e cancellare il file session nella directory/home/.../.gnome2/

    Condividere le cartelle

    Dopo aver installato i pacchetti richiesti da Sistema/Amministrazione/Cartellecondivise, visto che non c' modo di far accedere alle cartelle di Ubuntu unutente che non sia registrato sullo stesso Ubuntu, ho modificato il file

    /etc/samba/smb.conf sostituendo security = user con security = share. Perriavviare Samba il comando :

    sudo /etc/init.d/samba restart

    Altre guide

    How to improve sub-pixel font rendering for Feisty

  • 8/14/2019 Installare Ubuntu

    19/28

    This will improve the appearance of fonts. The patched libraries are built against Freetype 2.3.x (not currently in

    Feisty) and include David Turner's sub-pixel rendering patches. For i386, 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://www.telemail.fi/mlind/ubuntu feisty fontsdeb-src http://www.telemail.fi/mlind/ubuntu feisty fonts

    Add the repository keys: gpg --keyserver subkeys.pgp.net --recv-keys937215FFgpg --keyserver subkeys.pgp.net --recv-keys 937215FFgpg --export --armor 937215FF | sudo apt-key add -

    For AMD64/EMT read #How to add extra repositories and add thefollowing to the repository list (or directly to /etc/apt/sources.list usinggedit ):

    deb http://ubuntu.moshen.de feisty experimentaldeb-src http://ubuntu.moshen.de feisty experimental

    Add the repository keys:wget http://ubuntu.moshen.de/2F306651.gpg -O- | sudo apt-key add -

    Note: 25th July 2007 - This repository doesn't work. Install the font packages

    gksudo apt-get updategksudo apt-get install libfreetype6 libcairo2 libxft2

    Reconfigure font settings. The following settings work well: Native, Automatic, No bitmapped fonts.

    gksudo dpkg-reconfigure fontconfig-configgksudo dpkg-reconfigure fontconfig

    Reboot your computer or restart X-Windows to see the changes takeeffect.

    Note: If you later decide to go back to Ubuntu packages, you must downgradeall three installed packages. For more info: see here .

    There are various locations in GNU/Linux in which fonts can be kept. Theselocations are defined in /etc/fonts/fonts.conf ; standard ones include/usr/share/fonts , /usr/local/share/fonts , and/home//.fonts (where is your user name).The easiest way to install a truetype font is to press alt-F2 and enter thefollowing 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 aname that you remember if you ever need to backup your fonts personal

    http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_add_extra_repositorieshttp://ubuntuguide.org/wiki/Ubuntu:Feisty#Manually_edit_sources.listhttp://www.telemail.fi/mlind/ubuntuhttp://www.telemail.fi/mlind/ubuntuhttp://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_add_extra_repositorieshttp://ubuntuguide.org/wiki/Ubuntu:Feisty#Manually_edit_sources.listhttp://ubuntuguide.org/wiki/Ubuntu:Feisty#Manually_edit_sources.listhttp://ubuntu.moshen.de/http://ubuntu.moshen.de/http://ubuntu.moshen.de/2F306651.gpghttp://ubuntuguide.org/wiki/Restart_Xhttp://ubuntuforums.org/showthread.php?t=343670http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_add_extra_repositorieshttp://ubuntuguide.org/wiki/Ubuntu:Feisty#Manually_edit_sources.listhttp://www.telemail.fi/mlind/ubuntuhttp://www.telemail.fi/mlind/ubuntuhttp://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_add_extra_repositorieshttp://ubuntuguide.org/wiki/Ubuntu:Feisty#Manually_edit_sources.listhttp://ubuntuguide.org/wiki/Ubuntu:Feisty#Manually_edit_sources.listhttp://ubuntu.moshen.de/http://ubuntu.moshen.de/http://ubuntu.moshen.de/2F306651.gpghttp://ubuntuguide.org/wiki/Restart_Xhttp://ubuntuforums.org/showthread.php?t=343670
  • 8/14/2019 Installare Ubuntu

    20/28

    fonts). Copy the fonts into that directory and finally rebuild the fontinformation files by pressing alt-F2, mark 'run in terminal' so you can see theprogress and entering the following code:sudo fc-cache -f -v

    Note: After you install a new font, you will need to make sure that programsin which you want to use the new fonts can recognize them. In most cases thisis done by closing and reopening the programs; however, some programs mayrequire you to log out and log back in.The easiest place for people to put their fonts is /home//.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 intothe folder.On GNOME, you can also directly open the virtual folder fonts:/ (within aNautilus window, choose Go -> Location or press Ctrl+L ) and drag and dropfonts into this folder.However, fonts that are added by either of the ways above will only beavailable for one user. To make them available system-wide, drag and dropthem to the directory /usr/share/fonts . (Note: If you're on Kubuntu you mayhave to cd to /usr/share/fonts and run mkfontscale , mkfontdir , fc-cacheafter 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 openinga terminal window and runninggksudo nautilus fonts:

    My computer with Xubuntu feisty had a problem with getting an ip-

    adress after waking from hibernation. Ive solved this problem by

    changing /etc/default/acpi-support

    Editing this file, look for the line below, where to add

    [networking] after that no problems anymore:

    # Add services to this list to stop them before suspend andrestart them in

  • 8/14/2019 Installare Ubuntu

    21/28

    # the resume process.

    STOP_SERVICES="networking"

    Hope this will work for you to,

    Thomas.

    The wireless network starts working again if I runsudo modprobe -r ipw3945sudo modprobe ipw3945Giampiero

    I can't connect to the wireless network. After some testing I noticed that if i manually do:iwconfig eth1 essid myessidiwconfig eth1 key myhexkeyiwconfig eth1 mode ManagedThe problem is when getting an IP, if I do dhclient eth1 it works if it is the firsttime I connect to any network (wired or wireless), but if I disconnect and Iwant to connect to another network then the only way is to reboot.It's weird that no one else has this problem since this seems something thatevery user does, so i will keep investingating if the error is on my side.

    Thanks for the replyi found a workaround, after the hibernate i have to do:ifconfig eth1 down (bring down wireless interface)then:ifconfig eth0 or eth1 up (and dhclient that interface)

    Giuseppe, il suo blog Ubuntu Feisty CK Kernelwww.iuculano.it/linux/ubuntu-feisty-ck-kernelNota creata: 29 agosto 2007

    Ubuntu Feisty CK KernelPubblicato il 22 Aprile 2007 in Ubuntu , Linux .

    Nelle mie workstation non pu mancare un kernel patchato con le CK patch .Cosa sono le CK patch?Cito l autore:These are patches designed to improve system responsiveness with specific

    emphasis on the desktop, but suitable to any workload . A pochi giorni dal rilascio di Ubuntu Feisty , ecco il kernel patchato con CK eottimizzato per 686 (i386) e core2 (i386)

    http://www.iuculano.it/linux/ubuntu-feisty-ck-kernel/http://www.iuculano.it/linux/ubuntu-feisty-ck-kernel/http://www.iuculano.it/category/linux/ubuntu/http://www.iuculano.it/category/linux/ubuntu/http://www.iuculano.it/category/linux/http://members.optusnet.com.au/ckolivas/kernel/http://www.ubuntu.com/news/ubuntu704http://www.iuculano.it/linux/ubuntu-feisty-ck-kernel/http://www.iuculano.it/linux/ubuntu-feisty-ck-kernel/http://www.iuculano.it/category/linux/ubuntu/http://www.iuculano.it/category/linux/http://members.optusnet.com.au/ckolivas/kernel/http://www.ubuntu.com/news/ubuntu704
  • 8/14/2019 Installare Ubuntu

    22/28

    Ricapitolando, installando questo kernel avrete:1) Compilazione ottimizzata per 686 o core22) Ck patch http://members.optusnet.com.au/ckolivas/kernel/Come installarlo?wget http://ubuntu.iuculano.it/AE3BE9AA.gpg -O- | sudo apt-key add -

    aggiungete al vostro sources.list:deb http://ubuntu.iuculano.it feisty alldeb-src http://ubuntu.iuculano.it feisty allPer 686 (Pentium4):sudo apt-get update && sudo apt-get install linux-686-ck linux-headers-686-ck

    Per core2 :sudo apt-get update && sudo apt-get install linux-core2-ck linux-headers-core2-ck

    Diamo un nuce -10 al server X:sudo dpkg-reconfigure -plow x11-common Alla richiesta Valore di nice per il server X. digitiamo -10Feedback molto graditi

    SyncML con Evolution

    http://sourceforge.net/project/downl...ar.gz&49083195Unpack it and cd into the unpacked directory (syncevolution-0.5).

    Then do

    Code:./configure --prefix=/usrmake

    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 doCode:

    sudo checkinstall

    Or if you do not doCode:

    sudo make install

    There are a number of dev packages you need to install but I can'tremember what they are. I believe they were libcurl3-dev, evolution-data-server-dev and libdb3-dev. If you get errors during the ./configurestage, see what it is saying is missing. Then open synaptic and look forthat package (sometimes ubuntu lists the packaged as lib whatever ).Install the whatever -dev package and reconfigure. If you have trouble

    http://members.optusnet.com.au/ckolivas/kernel/http://ubuntu.iuculano.it/AE3BE9AA.gpghttp://ubuntu.iuculano.it/http://ubuntu.iuculano.it/http://sourceforge.net/project/downloading.php?group_id=146288&use_mirror=easynews&filename=syncevolution-0.5.tar.gz&49083195http://members.optusnet.com.au/ckolivas/kernel/http://ubuntu.iuculano.it/AE3BE9AA.gpghttp://ubuntu.iuculano.it/http://ubuntu.iuculano.it/http://sourceforge.net/project/downloading.php?group_id=146288&use_mirror=easynews&filename=syncevolution-0.5.tar.gz&49083195
  • 8/14/2019 Installare Ubuntu

    23/28

    finding something let me know.

    As far as configuring syncevolution, you need to create the followingdirectory structure renaming what's iin italics:/home/ your_home /.sync4j/evolution/ whatever /spds

    Then in the spds directory, create two more directories. One named"sources" and the other "syncml."

    In the sources directory create three more directories: "addressbook,""calendar," and "todo."

    Now for the config files. In each of those three directories you need aconfig.txt file.

    Here are mine:

    addressbook/config.txtCode:

    # name of the source, must match the in# spds/sources//config.txtname = addressbook

    # requests a certain synchronization mode:# two-way = only send/receive changes since last sync# slow = exchange all items# refresh-from-client = discard all local items and replace with# the items on the server

    # refresh-from-server = discard all remote items and replace with# the items on the client# none = synchronization disabledsync = two-way

    # overrides the supported synchronization modessyncModes = two-way,slow,refresh-from-client,refresh-from-server

    # specifies the format of the data## text/calendar = Evolution calender data (in iCalendar 2.0 format)# text/x-todo = Evolution task data (iCalendar 2.0)# text/x-vcard = Evolution contact data in vCard 2.1 format

    # (works with most servers)# test/vcard = Evolution contact data in vCard 3.0 (RFC 2425)format# (internal format of Evolution, preferred withservers# that support it and thus recommended forScheduleWorld# together with the "card3" uri)## Sending and receiving items in the same format as used by the serverfor# the uri selected below is essential. Errors while parsing and/orstoring# items one either client or server can be caused by a mismatch between# type and uri.type = text/vcard

  • 8/14/2019 Installare Ubuntu

    24/28

    # picks one of Evolution's data sources:# enter either the name or the full URL## To get a full list of available data sources,# run syncevolution without parameters. The name# is printed in front of the colon, followed by# the URL. Usually the name is unique and can be# used to reference the data source.evolutionsource = Personal

    # this is appended to the server's URL to identify the# server's databaseuri = card3

    # authentication for Evolution sourceevolutionuser =evolutionpassword =

    # used by the SyncML library internally; do not modifylast = 0

    Couple notes: the evolutionsource should be the name of your calendar,addressbook or todo in evolution. If you have a username and passwordfor evolution, then you need to add them under authentication forEvolution source. Otherwise leave the username and password blank as Ihave.

    Here are the other two:

    calendar/config.txtCode:

    # name of the source, must match the in# spds/sources//config.txtname = calendar

    # requests a certain synchronization mode:# two-way = only send/receive changes since last sync# slow = exchange all items# refresh-from-client = discard all local items and replace with# the items on the server# refresh-from-server = discard all remote items and replace with# the items on the client# none = synchronization disabledsync = two-way

    # overrides the supported synchronization modessyncModes = slow,two-way,refresh-from-client,refresh-from-server

    # specifies the format of the data## text/calendar = Evolution calender data (in iCalendar 2.0 format)# text/x-todo = Evolution task data (iCalendar 2.0)# text/x-vcard = Evolution contact data in vCard 2.1 format

    # (works with most servers)# test/vcard = Evolution contact data in vCard 3.0 (RFC 2425)format

  • 8/14/2019 Installare Ubuntu

    25/28

    # (internal format of Evolution, preferred withservers# that support it and thus recommended forScheduleWorld# together with the "card3" uri)## Sending and receiving items in the same format as used by the serverfor# the uri selected below is essential. Errors while parsing and/orstoring# items one either client or server can be caused by a mismatch between# type and uri.type = text/calendar

    # picks one of Evolution's data sources:# enter either the name or the full URL## To get a full list of available data sources,

    # run syncevolution without parameters. The name# is printed in front of the colon, followed by# the URL. Usually the name is unique and can be# used to reference the data source.evolutionsource = Personal

    # this is appended to the server's URL to identify the# server's databaseuri = cal2

    # authentication for Evolution sourceevolutionuser =evolutionpassword =

    # used by the SyncML library internally; do not modifylast = 0

    todo/config.txtCode:

    # name of the source, must match the in# spds/sources//config.txtname = todo

    # requests a certain synchronization mode:# two-way = only send/receive changes since last sync

    # slow = exchange all items# refresh-from-client = discard all local items and replace with# the items on the server# refresh-from-server = discard all remote items and replace with# the items on the client# none = synchronization disabledsync = two-way

    # overrides the supported synchronization modessyncModes = slow,two-way,refresh-from-client,refresh-from-server

    # specifies the format of the data#

    # text/calendar = Evolution calender data (in iCalendar 2.0 format)# text/x-todo = Evolution task data (iCalendar 2.0)# text/x-vcard = Evolution contact data in vCard 2.1 format

  • 8/14/2019 Installare Ubuntu

    26/28

    # (works with most servers)# test/vcard = Evolution contact data in vCard 3.0 (RFC 2425)format# (internal format of Evolution, preferred withservers# that support it and thus recommended forScheduleWorld# together with the "card3" uri)## Sending and receiving items in the same format as used by the serverfor# the uri selected below is essential. Errors while parsing and/orstoring# items one either client or server can be caused by a mismatch between# type and uri.type = text/x-todo

    # picks one of Evolution's data sources:

    # enter either the name or the full URL## To get a full list of available data sources,# run syncevolution without parameters. The name# is printed in front of the colon, followed by# the URL. Usually the name is unique and can be# used to reference the data source.evolutionsource = Personal

    # this is appended to the server's URL to identify the# server's databaseuri = task2

    # authentication for Evolution sourceevolutionuser =evolutionpassword =

    # used by the SyncML library internally; do not modifylast = 0

    Finally, you need to create a config.txt in the/home/ your_home /.sync4j/evolution/ whatever /spds/syncml directory.

    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.comsyncURL = 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 computersdeviceId = sc-api-nat-hartysdesktop

    # authorization for the SyncML server

  • 8/14/2019 Installare Ubuntu

    27/28

    username =password =

    # set to T to enable an HTTP proxyuseProxy = 0# proxy URL (http://:)proxyHost =# user agent string used for HTTPuserAgent = SyncEvolution

    # full path to directory where automatic backups and logs# are stored for all synchronizations; if empty, the temporary# directory "$TMPDIR/SyncEvolution--" will# be used to keep the data of just the latest synchronization runlogdir =

    # Unless this option is set, SyncEvolution will never delete# anything in the "logdir". If set, the oldest directories and# all their content will be removed after a successful sync

    # to prevent the number of log directories from growing beyond# the given limit.maxlogdirs =

    # This value is the number of changes which are sent to the# server at once. It is set to a very large number to work around# problems in either client library or server when items are# actually sent in multiple chunks during a slow sync - do not edit!maxModPerMsg = 100000

    # used by the SyncML library internally; do not modifybegin =0end =0firstTimeSyncMode = 0

    serverID =serverPWD =serverNonce =clientNonce =clientAuthType =serverAuthType =isServerAuthRequired = 0proxyPort = 0proxyUsername =proxyPassword =checkConn = 0responseTimeout = 0readBufferSize = 0maxMsgSize = 0encryption = 0

    Fill in the username and password with what is given to you byscheduleworld. Customize the device name.

    Now to run, doCode:

    syncevolution whatever

    with the whatever being what you named/home/ your_home /.sync4j/evolution/ whatever

  • 8/14/2019 Installare Ubuntu

    28/28

    That should do it. Let me know if you have any problems.