domenica 21 ottobre 2007

Problemi di compilazione su slack

a volte ho avuto qualche problema di compilazione di codici sorgenti su
slack.
Mi è capitato, per es, con Bluefish+Glib2+Gtk2
Il tutto si risolve come segue:

env PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
LD_LIBRARY_PATH=/usr/local/lib \
./configure

Fedora 7 - Disabilitare il touchpad synaptics su KDE

Occorre modificare il proprio xorg.conf.
Allego di seguito il mio:

###################### xorg.conf #############################################################àà

# Xorg configuration created by system-config-display

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse" "CorePointer"
InputDevice "Synaptics" "CorePointer"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "it"
EndSection

## Mouse by maox
Section "InputDevice"
Identifier "Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
Option "SHMConfig" "true"
EndSection


Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
#Option "Device" "/dev/input/mice"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "Emulate3Buttons" "yes"

Option "SendCoreEvents" "true"
#Option "Device" "/dev/psaux"
#Option "Protocol" "auto-dev"
#Option "HorizScrollDelta" "0"
#Per abilitare gsynaptics
Option "SHMConfig" "true"

EndSection

Section "Monitor"
Identifier "Monitor0"
ModelName "LCD Panel 1400x1050"
HorizSync 31.5 - 90.0
VertRefresh 59.0 - 75.0
Option "dpms"
Option "ForceBIOS" "1024x768=1400x1050"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "intel"
#Option "ForceBIOS" "1024x768=1400x1050"
#BusID "PCI:0:2:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
# DefaultDepth 16
SubSection "Display"
Viewport 0 0
# Depth 16
Depth 24
Modes "1400x1050" "1024x768" "800x600" "640x480"
# Modes "1400x1050"
EndSubSection
EndSection

#########################################################################################

Occorre prestare attenzione alla sezione ServerLayout
InputDevice "Mouse" "CorePointer"
InputDevice "Synaptics" "CorePointer"

e alle relative due sezioni di inputdevice
in particolare occorre aggiungere la direttiva
Option "SHMCONFIG" "on"

Poi installa il pacchetto ksynaptics e tutte le dipendenze.
Il comando è
"sudo yum install ksynaptics".

Poi nel menu di KDE "KDE Menu", nel Centro di Controllo, Nella sezione "Periferiche" trovi
Touch Pad

Se ti da errore riavvia X

Adesso tutto dovrebbe funzionare, nel centro di controllo di kde puoi trovare la sezione
touchpad dala quale attivare e disattivare il touchpad.
Inoltre compare nella barra delle applicazioni una icona per configurare e abilitare/disattivare il touchpad.
L'attivazione o la disabilitazione può essere ottenuta anche con la sequenza Ctrl-Alt-Q

Spero sia utile.
Fatemi sapere :-)
Ciao
MaoX

venerdì 19 ottobre 2007

Effettuare il downgrade di Vista conservando la licenza

Riporto la notizia che ho trovato su:
http://www.etechs.it/howto/HA/vista-downgrade-to-xp-serial.php
di Enrico Zogno e aggiungo... GRAZIE!!

Effettuare il downgrade di Vista conservando la licenza

Passare da Windows Vista a Windows XP mantenendo la licenza originale



Negli ultimi mesi Vista si è dimostrato essere un sistema operativo non adatto all'utenza da ufficio.
Purtroppo però i grandi Dealer tipo HP, Dell, Acer hanno tutti adottato il nuovo sistema operativo di casa Redmond senza possibilità per l'utente finale di scegliere.

Nel listino HP non esistono più dei modelli di NoteBook con un misero Window XP, sia esso Home o Professional.

Per la maggior parte delle aziende italiane questo è un problema, di fatto dare in mano ad un agente un portatile con Windows Vista installato è un problema.

Un mio cliente ha l'esigenza di effettuare il downgrade del sistema operativo mantenendo lo stesso la legalità della licenza, si tratta infatti di installare un Windows XP su una macchina equipaggiata con Vista.

Una volta acquistato il portatile, un bellissimo e solidissimo HP NX7400 superaccessoriato, ho chiamato il fornitore per farmi dare possibili spiegazioni.

Il problema pare essere il call center della MicroSoft che istruisce i propri operatori a cerca di far desistere l'utente finale al downgrade.
Il numero da chiamare è questo:

800 531 042

Questo numero è lo stesso che si usa per attivare le licenze di Windows Terminal Service.

La signorina, molto gentile, che ha risposto non ha opposto molta resistenza segno che non è sicuramente la prima volta che le capita una richiesta del genere.

Ha proposto semplicemente di installare XP con una qualsiasi licenza (LAP, Licenza Auto Prodotta) anche se già utilizzata su altro pc ed al momento dell'attivazione, con conseguente messaggio d'errore, chiamare di nuovo e comunicare il codice licenza di Vista così che loro scaricano la licenza di Vista per poi consegnarti una licenza originale e personale di Windows XP.

Attenzione! aereare prima di soggiornarvi, l'installazione di XP non è stata semplice, infatti HP non ha messo on line sul suo sito alcuni dei driver atti al corretto funzionamento con sistema oprativo XP.
Questo ha creato non pochi problemi.

Enrico Zogno

Sentire la Radio vedere filmati con Firefox

Molti utenti oggi giorno utilizzano firefox o mozilla per navigare.

Se non dovessi riuscire a collegarti alla tua radio preferita  o a vedere i tuoi video con questi browser prova il seguente add-on: 

MediaPlayerConnectivity

domenica 14 ottobre 2007

Ottimizzare hard disk su linux

Dalla documentazione di gentoo

Codice 6: Test delle prestazioni del disco

# hdparm -tT /dev/hda       

Per l'ottimizzazione è possibile utilizzare uno dei seguenti esempi (o una configurazione personalizzata) che usano /dev/hda come disco (sostituirlo con il proprio):

Codice 7: Ottimizzazione delle prestazioni del disco

Attivare il DMA: # hdparm -d 1 /dev/hda  Attivare il DMA e altre opzioni sicure di ottimizzazione: # hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda       

giovedì 27 settembre 2007

Fujitsu lifebook s7110 - volume hotkeys

from: http://users.linpro.no/janl/hardware/S7020.html

Volume buttons: The keyboard has Fn key combinations for screen
backlight and so on. The audio volume buttons are not bound into the
hardware and must be handled by Linux. Ubuntu's Gnome envronment handles
this without pain. In KDE (also needed in other environments) I had to
make a .Xmodmap file with these contents:

keycode 160 = XF86AudioMute
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume

After running

xmodmap .Xmodmap

KDE handled the volume buttons just fine.
... This broke again under 2.6.15 because the ALSA driver for the sound
chipset names the channels as "Headphone" (actually the headphone
volume), "PCM" and "Internal Speaker". The KDE mixer wants only to
manipulate the "Headphone" volume at this time. This has not been
important enough the figure out.

Se qualcosa non funziona manca qualche pacchetto:

yum install kde-settings-pulseaudio.noarch kdeaddons.i386 kdeaddons-extras.i386 kdeartwork* kdebase-extras.i386 kdebindings.i386 kdeedu.i386 kdeedu-libs.i386 kdegraphics-extras.i386 kdelibs-apidocs.i386 kdemultimedia-extras.i386 kdemultimedia-extras-libs.i386 kdeutils.i386 kdeutils-extras.i386 kdewebdev.i386 kflickr.i386 kismet-extras.i386 ktorrent.i386

giovedì 13 settembre 2007

[WIN] - Soluzione problema sfoglia rete

HKLM\SYSTEM\CurrentControlSet\Services\Browser\Parameters
IsDomainMaster and MaintainServerList both should be positive, YES/TRUE,
depending on 2K or XP.

An election occurs each time your master browser becomes unavailable.
The other way you could prevent elections is to stop the Computer
Browser servers on all the other clients and set it to manual. This
service does nothing but maintain the browse list and make the pc
capable of becoming a master or backup browser.

--
--
principio di Napoleone:
non attribuire a malintenzione cio' che puo'
essere semplicemente spiegato come imbecillita'
--
MaoX Blog:
http://maox.blogspot.com

giovedì 6 settembre 2007

[Apache + CentOS5] - Directory index forbidden by Options directive: /var/www/html/

[Apache + CentOS5] -  Directory index forbidden by Options directive: /var/www/html/


I was having the same exact problem as you, this is what fixed "/" directory listings for me

In /etc/httpd/conf.d you will see a file entitled welcome.conf

It looks like this:

<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>


Change it to this:

<LocationMatch "^/+$">
Options Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>


All we actually changed was the hyphen in front of Indexes. This worked for me, hopefully it works for you.

martedì 4 settembre 2007

Backup linux con rsync

rsync -avz --exclude-from=escludi.txt root@192.168.0.1:/[root SORGENTE]
/[root DESTINAZIONE]

[root@zion ~]# cat escludi.txt
/dev
/proc
/sys
/boot
/etc/modules.conf
/etc/fstab
/etc/mtab
/etc/sysconfig/network-scripts

Windows e il raid software

- Aggiorno i dischi da base a dinamici (cliccare col dx sul riquadro sx)
- Cliccare con il dx sul disco di origine e scegli aggiungi mirror


FATTO! :-)

martedì 28 agosto 2007

GRUB + RAID howto

FROM: http://www.linuxsa.org.au/mailing-list/2003-07/1270.html
thanks to: Michael Martucci.

 In the Software RAID howto it is mentioned that it is not known how to set up GRUB to boot off RAID. Here is how I did it: **Follow at your own risk. If you break something it's your fault.** ================================================================== Configuration:  - /dev/hda (Pri. Master) 60 GB Seagate HDD (blank)  - /dev/hdc (Sec. Master) 60 GB Seagate HDD (blank)  - /dev/hdd (Sec. Slave) CDROM Drive   Setup Goals:  - /boot as /dev/md0: RAID1 of /dev/hda1 & /dev/hdc1 for redundancy  - /     as /dev/md1: RAID1 of /dev/hda2 & /dev/hdc2 for redundancy  - swap*2 with equal priority: /dev/hda3 & /dev/hdc3 for more speed  - GRUB installed in boot records of /dev/hda and /dev/hdc so either     drive can fail but system still boot.  Tools:  - mdadm (http://www.cse.unsw.edu.au/~neilb/source/mdadm/)    (I used 1.2.0, but notice that as of 20030729 1.3.0 is available)  1. Boot up off rescue/installation CD/disk/HDD/whatever with mdadm tools installed.  2. Partitioning of hard drives: (I won't show you how to do this. See: # man fdisk ; man sfdisk ) But here's how stuff was arranged: ------------------------------------------------------------------ # sfdisk -l /dev/hda  Disk /dev/hda: 7297 cylinders, 255 heads, 63 sectors/track Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0    Device Boot Start   End  #cyls   #blocks  Id System /dev/hda1  *      0+   16     17-   136521  fd Linux raid autodetect /dev/hda2        17  7219   7203  57858097+ fd Linux raid autodetect /dev/hda3      7220  7296     77    618502+ 82 Linux swap /dev/hda4         0     -      0         0   0 Empty ------------------------------------------------------------------ To make /dev/hdc the same: ------------------------------------------------------------------ # sfdisk -d /dev/hda | sfdisk /dev/hdc ------------------------------------------------------------------ /dev/hd[ac]1 for /dev/md0 for /boot /dev/hd[ac]2 for /dev/md1 for / /dev/hd[ac]3 for 2*swap It is important to make md-to-be partitions with ID 0xFD, not 0x83.  3. Set up md devices: (both are RAID1 [mirrors]) ------------------------------------------------------------------ # mdadm --create /dev/md0 --level=1 \     --raid-devices=2 /dev/hda1 /dev/hdc1 # mdadm --create /dev/md1 --level=1 \     --raid-devices=2 /dev/hda2 /dev/hdc2 ------------------------------------------------------------------  4. Make filesystems: ------------------------------------------------------------------ # mke2fs /dev/md0 # mkreiserfs /dev/md1 # mkswap /dev/hda3 # mkswap /dev/hdc3 ------------------------------------------------------------------  5. Install Your distribution:  Simply treat /dev/md0 and /dev/md1 as the partitions to install on, and install the way your normally do. Eg, for Gentoo: ------------------------------------------------------------------ # mkdir newinst # mount -t reiserfs /dev/md1 ./newinst # cd newinst # mkdir boot # mount -t ext2 /dev/md0 ./boot # tar -xvjpf ../stage1-x86-1.4_rc2.tbz2 # mount -o bind /proc ./proc # chroot ./ ... ------------------------------------------------------------------ Here're the relevant entries /etc/fstab for the newly created partitions: ------------------------------------------------------------------ /dev/md0      /boot        ext2       noauto,noatime          1 1 /dev/md1      /        reiserfs       noatime                 1 1 /dev/hda3     none         swap       sw,pri=1                0 0 /dev/hdc3     none         swap       sw,pri=1                0 0 ------------------------------------------------------------------ The "pri=1" for each of the swap partitions makes them the same priority so the kernel does striping and that speeds up vm. Of course, this means that if a disk dies then the system may crash, needing a reboot. Perhaps it would be wiser to make hd[ac]3 a RAID1 array too, and just use /dev/md2 as swap.  6. Setting up GRUB: (assuming you've already installed it) ------------------------------------------------------------------ # grub grub> root (hd0,0)  Filesystem type is ext2fs, partition type 0xfd  grub> setup (hd0)   Checking if "/boot/grub/stage1" exists... yes  Checking if "/boot/grub/stage2" exists... yes  Checking if "/boot/grub/e2fs_stage1_5" exists... yes  Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  16 sectors are embedded. succeeded  Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded Done.  grub> root (hd1,0)  Filesystem type is ext2fs, partition type 0xfd  grub> setup (hd1)   Checking if "/boot/grub/stage1" exists... yes  Checking if "/boot/grub/stage2" exists... yes  Checking if "/boot/grub/e2fs_stage1_5" exists... yes  Running "embed /boot/grub/e2fs_stage1_5 (hd1)"...  16 sectors are embedded. succeeded  Running "install /boot/grub/stage1 (hd1) (hd1)1+16 p (hd1,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded Done.  grub> quit ------------------------------------------------------------------ Here is how /boot/grub/grub.conf is: (/dev/md0 mounted as /boot) (Assuming kernel is installed as /boot/bzImage, and RAID1 support compiled into the kernel). ------------------------------------------------------------------ # Boot automatically after 30 secs. timeout 30  # By default, boot the first entry. default 0  # Fallback to the second entry. fallback 1  # For booting with disc 0 kernel title  GNU/Linux (hd0,0) kernel (hd0,0)/bzImage root=/dev/md1  # For booting with disc 1 kernel, if (hd0,0)/bzImage is unreadable title  GNU/Linux (hd1,0) kernel (hd1,0)/bzImage root=/dev/md1 ------------------------------------------------------------------  Now you should be able to reboot your system and play!

giovedì 23 agosto 2007

[Postfix] - warning: mail_queue_enter: create file maildrop Permission denied

Problema riscontrato nell'invio di posta tramite webamil:

[root@zion vhosts]# tail /var/log/maillog
Aug 23 15:48:15 zion postfix/postdrop[18637]: warning: mail_queue_enter:
create file maildrop/575635.18637: Permission denied
Aug 23 15:48:25 zion postfix/postdrop[18637]: warning: mail_queue_enter:
create file maildrop/576016.18637: Permission denied
Aug 23 15:48:32 zion postfix/postfix-script[18759]: warning: not owned
by group postdrop: /var/spool/postfix/public
Aug 23 15:48:32 zion postfix/postfix-script[18760]: warning: not owned
by group postdrop: /var/spool/postfix/maildrop
Aug 23 15:48:35 zion postfix/postdrop[18637]: warning: mail_queue_enter:
create file maildrop/576412.18637: Permission denied
Aug 23 15:48:45 zion postfix/postdrop[18637]: warning: mail_queue_enter:
create file maildrop/576891.18637: Permission denied
Aug 23 15:48:55 zion postfix/postdrop[18637]: warning: mail_queue_enter:
create file maildrop/577268.18637: Permission denied
Aug 23 15:49:05 zion postfix/postdrop[18637]: warning: mail_queue_enter:
create file maildrop/577665.18637: Permission denied
Aug 23 15:49:15 zion postfix/postdrop[18637]: warning: mail_queue_enter:
create file maildrop/578053.18637: Permission denied
Aug 23 15:49:25 zion postfix/postdrop[18637]: warning: mail_queue_enter:
create file maildrop/578454.18637: Permission denied

[root@zion vhosts]# postfix check
postfix/postfix-script: warning: not owned by group postdrop:
/var/spool/postfix/public
postfix/postfix-script: warning: not owned by group postdrop:
/var/spool/postfix/maildrop

SOLUZIONE:

/etc/init.d/Mailscanner stop
killall -9 postdrop

[root@zion vhosts]# chgrp -R postdrop /var/spool/postfix/public
[root@zion vhosts]# chgrp -R postdrop /var/spool/postfix/maildrop/
[root@zion vhosts]# postfix check
[root@zion vhosts]# /etc/init.d/Mailscanner start

giovedì 9 agosto 2007

Fedora 7 - Problema con haldaemon e kpowersave

Ad ogni avvio mi si presentava il problema di "congelamento" del pc per
vari minuti fino a che non falliva l'avvio del demone e tutto
proseguiva correttamente.
PEr questo problema, però, non funzionava neppure kpowersave.

Per risolvere il problema ho dovuto attivare all'avvio il demone
/etc/init.d/messagebus

Tutto si risolve con i seguenti comandi:
/etc/init.d/messagebus start
/etc/init.d/haldaemon start
kpowersave


Spero vi sia utile.
Salui
MaoX

venerdì 3 agosto 2007

Postfix + SPF

http://www.howtoforge.com/postfix_spf

Fix microsoft a richiesta...

[da: http://www.windowserver.it/ ]]

Volete una patch? Inviate una mail al supporto Microsoft


Se volete ricevere una patch, di quelle che solitamente si richiedono telefonicamente, da oggi potrete anche usufruire del servizio messo in opera da Microsoft, ovvero un sito web dove effettuare la richeista. L'invio della patch avverrà in circa 8 ore lavorative. Potete accedere al sito cliccando sul seguente link:
https://support.microsoft.com/contactus2/emailcontact.aspx?scid=sw;en;1410&WS=hotfix

How can I configure Exchange Server 2003 to block spam?

Microsoft Exchange Server 2003 now has built-in Open Relay Filter (ORFilter) or DNS Blacklist and Realtime Blackhole List (DNSBL, RBL) capabilities, which releases us from the need to rely on 3rd party software for the spam filtering.

Continue...