Tethereal command line notes


Exclude host from sniffing AND resolve hostnames

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

Some useful Redhat Package Manager(RPM) commands


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]'



Display a file-per-package list

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

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


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…


jQuery: Javascript Library conflicts


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


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


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:

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