lofix channel Revolution OS

Watch live streaming video from lofixchannel at livestream.com
Posted in Linux at June 15th, 2010. No Comments.

mysql master master quick skip

>спални комплекти slave; SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 2 ; start slave; show slave status\G;

Posted in Linux at November 20th, 2009. No Comments.

RBL list – check ip address

http://whatismyipaddress.com/staticpages/index.php/is-my-ip-address-blacklisted

Posted in Linux at October 13th, 2009. No Comments.

/etc/hylafax/hosts.hfaxd: No such file or directory

Unable to open the user access file /etc/hylafax/hosts.hfaxd: No such file or directory

$ls -la /etc/hylafax/hosts.hfaxd
-rw——- 1 uucp root 362 2009-04-03 11:01 /etc/hylafax/hosts.hfaxd

Hylafax Debian Etch search for

/var/spool/hylafax/etc/hylafax/hosts.hfaxd

NOT for  /etc/hylafax/hosts.hfaxd

simply
– create dir /var/spool/hylafax/etc/hylafax/
– create soft link like

/var/spool/hylafax/etc/hylafax# ls -al
lrwxrwxrwx 1 root root   24 2009-04-03 11:03 hosts.hfaxd -> /etc/hylafax/hosts.hfaxd

Posted in Linux, [RISOLTO] at April 3rd, 2009. No Comments.

Proftpd lock root allow resume – block per ip

DefaultRoot                     ~
RequireValidShell               off
TimesGMT                        off
AllowRetrieveRestart            on
AllowStoreRestart               on

—————–

block external login selective

<IfUser user1>
<Limit LOGIN>
order allow,deny
allow from all
deny all
</Limit>
</IfUser>

<IfUser user2>
<Limit LOGIN>
order allow,deny
allow from all
deny all
</Limit>
</IfUser>

<IfUser AND !user1 !user2>

<Limit LOGIN>
order allow,deny
allow from192.168.26.0/24
deny all
</Limit>
</IfUser>

Posted in Linux at March 3rd, 2009. No Comments.

The syntax for replication startup options is deprecated

#sql instruction

CHANGE MASTER TO MASTER_HOST=’192.152.105.4′, MASTER_PORT=3306,MASTER_USER=slave’,
MASTER_PASSWORD=’pwextra’,MASTER_SSL=1,MASTER_SSL_CA=’/etc/ssl/certs/cacert.pem’,
MASTER_SSL_CAPATH =’/etc/ssl/certs’,MASTER_SSL_CERT = ‘/etc/ssl/certs/mysqlextraslave-cert.pem’,
MASTER_SSL_KEY = ‘/etc/mysql/mysqlextraslave-key.pem’;

Feb 18 12:20:15 extra mysqld_safe[24001]: 090218 12:20:15 [Warning] The syntax for replication startup options is deprecated and will be removed in MySQL 5.2. Please use ‘CHANGE MASTER’ instead.
Feb 18 12:20:15 extra mysqld_safe[24001]: 090218 12:20:15 [Warning] The syntax for replication startup options is deprecated and will be removed in MySQL 5.2. Please use ‘CHANGE MASTER’ instead.

Posted in Linux at March 3rd, 2009. No Comments.

CLI Debian Etch amd64 Adaptec HP SATA RAID 2610SA

DEBIAN Command Line Interfaces HP SATA RAID 2610SA

CLI GUIDE


Adaptec/Management_Software/Command_Line_Interface_for_Internal_RAID_Users_Guide.pdf

START

wget http://download.adaptec.com/raid/storage_manager/asm_linux_x64_v5_20_17414.rpm

alien -s asm_linux_x64_v5_20_17414.rpm

dpkg -i storman_5.20-1_amd64.deb

cd /usr/StorMan
chmod +x /usr/StorMan/arcconf

DEVICE STATUS for raid #1

++++++++++++++++++++++++++++
/usr/StorMan# ./arcconf GETSTATUS 1

Controllers found: 1
Logical device Task:
Logical device : 0
Task ID : 102
Current operation : Build/Verify
Status : In Progress
Priority : High
Percentage complete : 38

Command completed successfully.
++++++++++++++++++++++++++++++

“sort” path issue so make a soft link…

ln -s /usr/bin/sort /bin/sort

++++++++++++++++++++++++++++
./arcconf GETVERSION 1
Controllers found: 1
Controller #1
==============
Firmware : 4.2-1 (7368)
BIOS : 4.2-1 (7368)
Driver : 1.1-5 (2409)
Boot Flash : 0.0-0 (0)
++++++++++++++++++++++++++++

Debian WIKILinuxRaidForAdmins

Posted in Linux at May 23rd, 2008. No Comments.

Cambiare UID GID utente SuExEc

Capita di rimanere tagliati fuori dalle politiche di restrizione
della tecnologia SUEXEC o simili a causa di una configurazione
poco attenta

Metodo brutale per cambiare uid di texilee/texilee da 100 a 7771


/usr/sbin/groupmod -g 7771 texilee
/usr/sbin/usermod -u 7771 texilee
find / -uid 100 -exec chown texilee{} \;
find / -gid 100 -exec chgrp texilee{} \;

Se avete “hardcodato” il vostro uid numerico in qualche binario
o script dovrete provvedere modificandoli a manina!

Posted in Linux, Tips at April 15th, 2008. No Comments.

linux flash player audio problemi firefox

Problema: non riesco a sentire l’audio dai filmati in flash da firefox o iceweasel, tutto il resto funziona video, mp3 . Anche Skype mi da lo stesso problema. Uso Debian Etch , KDE, configurazione automatica dell’ambiente sonoro (ALSA). Lanciando iceweasel ( firefox in Debian) da console quando cerco di vedere un video su youtube trovo questa serie di errori:
ALSA lib pcm_hw.c:1355:(_snd_pcm_hw_open) Invalid value for card
ALSA lib confmisc.c:670:(snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:391:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1070:(snd_func_refer) error evaluating name
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3947:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2146:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib pcm_hw.c:1355:(_snd_pcm_hw_open) Invalid value for card
ALSA lib confmisc.c:670:(snd_func_card_driver) cannot find card '0'

Il problema sembra non dipendere nè dal flash player nè da problemi hw nè dal browser ma da una superficiale configurazione di ALSA

$lspci

00:1f.5 Multimedia audio controller: Intel Corporation 82801BA/BAM AC’97 Audio (rev 12)

La scheda audio che voglio utilizzare è integrata sulla scheda madre, provo a configurare ALSA per superare questa fase da ” No such device "

Trovo l’utility in

alsaconf – configuration tool for the Advanced Linux Sound Architecture

e lancio

# alsaconf

alsaconf

Seleziono la “periferica” Intel e procedo nella configurazione delegando il tool all’editing della configurazione dei moduli (YES sulla schermata dialog successiva)

Il tool termina il suo operato

Running update-modules…
Loading driver…
Setting default volumes…

===============================================================================

Now ALSA is ready to use.
For adjustment of volumes, use your favorite mixer.

Have a lot of fun!

ed effettivamente sia i video flash su browser che le notifiche sonore di Skype funzionano.

Posted in Linux at December 5th, 2007. No Comments.

clamav-daemon check script

Negli ultimi tempi su una macchina molto stressata ho disabilitato l’opzione di freshclam che imponeva il reload delle signature a clamd, commentandola

#NotifyClamd /etc/clamav/clamd.conf

Ho inoltre abbassato il tempo dell’opzione SelfCheck di clamd a 1800.

Il problema era molto grave perchè i processi clamd sparivano senza lasciare traccia (solo il logging di grsec mi segnalava il segmentation fault) mentre il socket rimaneva aperto, facendo andare in “palla” pure simscan.

Non sono riuscito a risolvere in maniera pulitissima e prima di cantare vittoria ho preparato uno script che controlla esistenza di pid, processi, socket e nel peggiore dei casi si occupa di fare un restart di clamd

Il codice per contare il numero dei processi (anche spamassassin gira sotto clamav)

ssh texilee.it ps --User=clamav u| grep /usr/sbin/clamd |wc -l

Dopodichè se tutti i test di “vita” falliscono forzo il restart del demone.

Se qualcuno ha lo stesso problema (magari..) o vuole cimentarsi nel debugging mi può rispondere sul blog o via mail o qui

Posted in Bash, Linux at September 18th, 2007. No Comments.