Just edit the following files and substitute each occurrence of the old hostname with the new one.
Changing the following files entry will make hostname changes permanent.
/etc/hosts
/etc/nodename
/etc/hostname.xxn
(xxn = network interface, such as hme0)
You can change the entries in below files too. But they are all optional:
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts
/etc/inet/ipnodes
(if this file exists and if a hostname entry exists)
hostname newhostname will change the hostname instantly.
Adsense 1
Friday, June 24, 2005
Tuesday, May 03, 2005
Some commands that may help
Suppose you have a file named file.txt which has hunders of lines and you want to see lines 100-120
head -120 file.txt|tail -20
Find and replace text in vi: 1,$s/oldvalue/newvalue/g (or) :%s/oldvalue/newvalue/g
More help with vi here: http://www.ahinc.com/linux101/vi.htm
head -120 file.txt|tail -20
Find and replace text in vi: 1,$s/oldvalue/newvalue/g (or) :%s/oldvalue/newvalue/g
More help with vi here: http://www.ahinc.com/linux101/vi.ht
Sunday, April 17, 2005
Error message
While compiling packages, sometimes you get the error message like: undefined reference to 'errno'
To fix this add: #include
Sunday, April 03, 2005
Centralised log server
Here are fews links that will help collecting the logs from linux and windows clients to a centralised syslog server:
http://www.sans.org/rr/whitepapers/casestudies/713.php
http://ntsyslog.sourceforge.net/
http://www.kiwisyslog.com
http://www.netadmintools.com/art127.html
http://www.sans.org/rr/whitepapers/case
http://ntsyslog.sourceforge.net/
http://www.kiwisyslog.com
http://www.netadmintools.com/art127.htm
Monday, January 03, 2005
Samba Without Roaming profile
When configuring samba server as PDC some times you may want to create users without roaming profile.
The solution is client side: gpedit.msc leads you to the policy editor
Computer Configuration\Administrative Templates\System\User Profiles
Enable both the "Prevent Roaming Profile changes from propagating to the server" setting and the "Only allow local user profiles" setting and it will do the trick.
The solution is client side: gpedit.msc leads you to the policy editor
Computer Configuration\Administrative Templates\System\User Profiles
Enable both the "Prevent Roaming Profile changes from propagating to the server" setting and the "Only allow local user profiles" setting and it will do the trick.
Subscribe to:
Posts (Atom)