Adsense 1

Friday, June 24, 2005

Changing hostname in Solaris

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.

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

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 at the beginning of error.h

And the compilation will go on smoothly, thereafter.

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.