Change Hostname in Solaris 10

Solaris is not is easy to maintain, that from what I experienced up till now +__+. For example if you want to change the name of our computer you have to go through all this stuff, while in Windows you can do it easily :P, but this is the interesting part, you have to try it!!

Change the name in /etc/nodename

Inside here just replace the old name with the name that you wanted

Change the name in /etc/hostname.interface

Inside here just replace the old name with the name that you wanted

Change the name in /etc/hosts

127.0.0.1 localhost

10.0.0.1 new_hostname loghost

After this you can type

hostname new_hostname

After that you can try to reboot and check by ping to your new hostname.

Advertisements

Export Display in Unix

Export display is quite important for people that work in data center since it is impossible to put every server with a monitor, well actually you can do it with KVM switch, but then you still have to walk to get them. With this way you don’t have to do it, the requirement is only good network connection and strong computer to handle all the GUI 😀

In the case where your server doesn’t have any VGA card, so it’s impossible for you to plug in your monitor and all you can do is to connect by terminal server using COM port, you can try to export your Server’s Desktop into your desktop using export DISPLAY. This also will be useful if you employ a tight security option in your server, for example all of the port in your server is closed but port 22 or 23, then to make a remote desktop connection you can try this option.

Remote Desktop

Continue reading

Modification in Samba Server – Mixing User and Share Level Security

As you know samba is used to share Linux machine, so that it can be visible when accessed by Windows machine (CMIIW), making Linux become a good File Server in a mixed network environment. Anyway as a file server we cannot just give the access to everyone to “see and access” all the folder inside it. I bet you still want to have some privacy for your self.

Authentication in Samba comes in several ways, but what we are focusing is on the mixing of share and user level security. In user level, the user need to input some credential BEFORE the user want to “see and access” what file available in that share. While in share level, the user can see all the file but then, the user need to put some credential if they want to access the file (each file or folder has different password) So what we want to do is to have user-level security on your Samba server, but we want Windows clients to be able to see a list of shares on the Samba server without authenticating, like a share level server.

Continue reading