Not a member? Register

Featured Images

A photo on Flickr
A photo on Flickr
A photo on Flickr
A photo on Flickr
A photo on Flickr
A photo on Flickr

Services


About Me

Freelance web developer, network engineer, and graphic artist based out of Chapel Hill, NC

Currently Reading

The Polish Officer
Alan Furst

Listening to

Enrique Iglesias Album Cover Can You Hear Me
Enrique Iglesias

Interesting Links



Xobni outlook add-in for your inbox

General Linux Notes

#grep "model name" /proc/cpuinfo model name : Intel(R) Xeon(TM) CPU 3.00GHz

Linux Networking Notes

/etc/syconfig/network
GATEWAY=192.168.2.1
GATEWAYDEV=eth1

/etc/rc.d/init.d/network stop
/etc/rc.d/init.d/network start
/etc/rc.d/init.d/network restart

route -e
route add -host 123.213.221.231 eth1
route add default gw 192.168.1.254
route add -net 10.13.21.0 netmask 255.255.255.0 gw 192.168.10.254 eth0
route del -net 10.13.21.0 netmask 255.255.255.0 gw 192.168.10.254 eth0
ifconfig -a eth0 192.168.1.5 netmask 255.255.255.0

Routes are made permanent in Red Hat Linux by adding routes to /etc/sysconfig/static-routes

service network restart

/etc/resolv.conf
nameserver 66.28.0.45

find . -type f | xargs perl -pi -e 's/find/replace/g'
find . -name "*" -print | xargs grep search_key
find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
to find if a package is installed:
rpm -qa | grep
to list the contets of that package:
rpm -ql
cant find the mysql.sock?
mysql -u root -p -h localhost

NTP

[root@pype02 ~]# date Wed Apr 11 08:22:29 PDT 2007 [root@pype02 ~]# [root@pype02 etc]# service ntpd stop [root@pype02 etc]# ntpdate -u 10.1.1.12 11 Apr 11:41:23 ntpdate[32042]: step time server 10.1.1.12 offset 892.821144 sec [root@pype02 etc]# ntpdate -u 10.1.1.12 11 Apr 11:41:26 ntpdate[32043]: adjust time server 10.1.1.12 offset 0.000058 sec [root@pype02 etc]# [root@pype02 etc]# service ntpd start ntpd: Synchronizing with time server: [ OK ] Starting ntpd: [ OK ] [root@pype02 etc]# ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== 10.1.1.12 172.18.137.252 3 u 3 64 1 0.430 0.103 0.004 [root@pype02 etc]# [root@pype02 etc]# date Wed Apr 11 11:42:21 EDT 2007 [root@pype02 etc]#