how to change vnc password in solaris


                          If you forgot the VNC password, no problem it is very easy to reset.

Step 1: 
* Just type only "vncpasswd" in the prompt.
* And give the new password for vnc.






















* Then type only vncserver





















* Then use vncviewer and type "ip+:1"
(Example:172.16.1.203:1)



























* Now give the password here and enter it.
* And see the output.


















* That's all.

How to delete or kill VNC Sessions in solaris

How to delete VNC Sessions in solaris 10:

Steps to delete the Vnc session's:
  • goto (cd .vnc/) path .
  • Then put (ls) command.
  • Then see how many sessions are running.
  • Then kill the session's.
See the example:




















Step 1:
* Here only one session only running.
* Name is (testserver:1.pid and testserver:1.log)
* Now i want  to kill this session.
* Before kill the session, first see if  any process running in this session or not .
* Then kill the session.

























* Now in this session no process is running.
* Now delete the session.

Step 2:
* Command is = "vncserver -kill :1"(Here "1" is session name)




















* Now testserver:1.pid is killed
* But testserver:1.log is available.If you want to delete this means ,manually delete it.(i,e.. rm -rf testserver:1.log).






















Step 3:
* Now when you start vncserver(follow this ip 172.16.1.203:1) it will not work.
* See the example.























































Step 4:
* Again when start vncserver , just type only "vncserver".











































* See , again testserver:1.log and testserver:1.pid is generated.
* That's all.

vnc gnome session in solaris


Configuring VncServer to use gnome:


            Normally in Solaris10 when you start VNC it seems like an older version of Solaris GUI.

See the example:

  
Disadvantage of older version of Solaris GUI:

* At the time,only one terminal only open.
* Not possible to open another terminal.

Note:For this disadvantages only change the vncserver to gnome session.(Normal desktop view)

Procedure to change the VNC to gnome session:

Step 1: Goto cd .vnc/











Step 2:
* Edit xstartup file
* Then add the line "/bin/gnome-session &"

Before Edit:























After Edit:






















Step 3:
* That's all over.
* Just type only vncserver.




















Step 4:
* Use vnc viewer and  type the server ip+1.
Example:172.16.1.203:1


















Step 5:
* Now see the view.
* Here you can open number of terminals.



























Advantages of gnome session:
* Here you can open number of terminals.
* When you run any application in this mode and suddenly close this session also ,no problem,application will run in server side only(i,e.. application will not disconnect).Again when you open VNC (application will be continuous running).This is the advantage.

Note:when you use xmanager(when you close the session,application will disconnect) but in VNC application will not disconnect.