How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

January 29, 2014

How to display HTTP Headers with tcpdump

Filed under: Linux — Tags: , , , , — admin @ 9:19 pm

Well today I was needing to see some packages that arrived on apache. In order to see I have to use tcpdump, but you will only some short information if you are using basic.
In order to see HTTP header you have to use something like this:
tcpdump -n -vvvs 1024 -l -A host matrafox.info

If you want to see more information you have to increase the size, something like this
tcpdump -n -vvvs 1500-l -A host matrafox.info

December 23, 2013

scp: command not found

Filed under: Linux — Tags: , , , — admin @ 11:58 am

Today I was trying to copy something from one server to other using scp . But I have a surprise while I was running the correct command scp file.tar root@server:/home well a error was occurred that scp is missing. Now on sending server the scp was because I see the output of usage: scp when I try on destination surprise no scp.
which scp
/usr/bin/which: no scp in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

So to install it just run :
yum install openssh-clients

December 3, 2013

Load without reason on centos

Filed under: Linux — Tags: , , — admin @ 1:09 pm

Hello
Well it appear that on a plesk server with only os reloaded we see some load.
I search the raid but it was finished to re sync so no load should be there .
After debugging with iotop I see this
505 be/3 root 0.00 B/s 0.00 B/s 0.00 % 99.99 % [jbd2/md1-8]

After a little search it appear that is from ext4 journaling.

Not to disable ext4 journaling is not so easy because you have to umount the partition, or to be monuted in read only .

After a little search I found out that rsyslog was the problem was hitting the limit, and was writing a lot of information into the log. After disabling the rsyslog everything was back to normal . However I am waiting again the problem to see what pid was causing this.

Any way strange problem .

Regards

July 18, 2012

PAM adding faulty module: /lib64/security/pam_fprintd.so centos 6 problem

Filed under: Linux — Tags: , , — admin @ 11:45 pm

I found the following in a /var/log/secure log on a RHEL6 minimal installation:

Jul 18 22:35:01 ns3 crond[19830]: PAM adding faulty module: /lib64/security/pam_fprintd.so
Jul 18 22:35:01 ns3 crond[19831]: PAM unable to dlopen(/lib64/security/pam_fprintd.so): /lib64/security/pam_fprintd.so: cannot open shared object file: No such file or directory

To disable using the PAM module, I used the following command:
authconfig --disablefingerprint --update

June 8, 2012

ERROR: libmp3lame >= 3.98.3 not found

Filed under: Linux — Tags: , , — admin @ 10:29 am

Well if you have this error when you try to install ffmpeg then you must download lame from sourceforge

wget http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz?r=http%3A%2F%2Fffmpeg.zeranoe.com%2Fforum%2Fviewtopic.php%3Ff%3D5%26t%3D94&ts=1339140293&use_mirror=ignum

After
tar -zxvf lame-3.98.4.tar.gz
cd lame-3.98.4
./configure
make
make install

Don’t forget about ldconfig

« Newer PostsOlder Posts »

Powered by WordPress