Tethereal command line notes

15/02/2009

Exclude host 10.16.21.206 from sniffing AND resolve hostnames

tethereal -N n -f 'host not 10.16.21.206'
1 Comment

Some useful Redhat Package Manager(RPM) commands

15/02/2009

Getting the dependencies of a file:

rpm -q --requires -p package.rpm

Formating the query result of RPM database

rpm -qa –queryformat '["_%{NAME}",list("%{VERSION}-%{RELEASE}","%{ARCH}"),\n]'

Result:

“_openssh”,list(”3.6.1p2-33.30.6″,”i386″),
“_XFree86-Mesa-libGLU”,list(”4.3.0-97.EL”,”i386″),
…

Display a file-per-package list

rpm -qa --queryformat '[%{NAME}\t%{FILENAMES}\n]'

Result:
[code=bash]
kernel-smp /lib/modules/2.6.9-67.0.20.ELsmp/kernel/sound/pci/snd-atiixp-modem.ko
kernel-smp /lib/modules/2.6.9-67.0.20.ELsmp/kernel/sound/pci/snd-atiixp.ko
kernel-smp /lib/modules/2.6.9-67.0.20.ELsmp/kernel/sound/pci/snd-azt3328.ko
kernel-smp /lib/modules/2.6.9-67.0.20.ELsmp/kernel/sound/pci/snd-bt87x.ko
kernel-smp […] Continue Reading…

1 Comment

Faking a windows dhcp server with dhcp-client-identifier

15/02/2009

Windows DHCP server, require (that the DHCP client will send) the client’s dhcp identifier in order to give an IP to a machine that just entered the network. This leads to problems when there are linux clients that request IP adresses from Windows DHCP servers(Windows server 2003 or 2008). This happens because, by default, linux dhcp clients do not send their DHCP “client identifier”. Thus the DHCP server does not recognize them and they cannot get an IP dynamically.

To solve this, just put the following in: […] Continue Reading…

2 Comments

jQuery: Javascript Library conflicts

15/02/2009

Sometimes, jQuery and other libraries must be used at the same time during a webpage development. The problem starts when both libraries(like prototype) use the same annotation e.g. ‘$(document).ready’. One of the two libraries is expected not to work at the same time. It is very easy to get over this. You just have to put something like this into your code:




Instead of:





Source: Using jQuery with other libraries

4 Comments

Enabling Greek(Ελληνικά) on Asus WL500gP

15/02/2009

This is done in irder to get Greek filenames working in my wonderful Asus WL500gP router. I use samba3 and Oleg’s firmware.

For Greek(Ελληνικά) filenames the correct steps are the following:

nvram set usb_vfat_options=defaults,utf8
nvram set usb_smbcpage_x=737
nvram set usb_smbcset_x=1253
nvram commit

and the contents of my smb.conf:

[code=bash]
[global]
workgroup = WORKGROUP
guest account = admin
security = share
browseable = yes
writeable = yes
guest ok = yes
guest only = yes
log level = 1
max log size = 100
encrypt passwords = yes
dns proxy = no
netbios name = Plethon
server string = wl500gPremium customized by Asterios
unix charset = UTF-8
dos charset = 1253
display charset = […] Continue Reading…

No Comments