Here is a basic dhcpd configuration.
For more info, look at /usr/share/doc/dhcp*/dhcpd.conf.sample.
ddns-update-style ad-hoc;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.200;
option routers 192.168.1.1 ;
option domain-name "mydomain.com" ;
option domain-name-servers 4.2.2.2 4.2.2.3 ;
}
This is a repository of all of my Linux/Unix writings as well as useful tips and tricks for systems administration, engineering, and programming.
Thursday, June 24, 2010
Friday, June 18, 2010
Make a service persistant on Ubuntu
The latest versions of Ubuntu (10.04 is where I noticed this behavior) ignore LSB configuration, which makes chkconfig not work for some scripts. Instead, use update-rc.d-insserv to enable a service after reboot as shown. This example enables the Samba services after a reboot.
update-rc.d-insserv nmbd defaults
update-rc.d-insserv smbd defaults
update-rc.d-insserv nmbd defaults
update-rc.d-insserv smbd defaults
Thursday, June 17, 2010
Find the PID number with nothing else
Use this combination to find a PID number without anything else in the output:
ps -ef | grep -v grep | grep ssh | cut -d" " -f3
3012
Enjoy that kungfu knife-kick combo.
ps -ef | grep -v grep | grep ssh | cut -d" " -f3
3012
Enjoy that kungfu knife-kick combo.
Subscribe to:
Posts (Atom)