Tuesday, July 27, 2010

Running VNC Server as non-root user - solaris 10



I could not find the info associated with running VNCServer as a non-root user on the internet hence I thought sharing this with you guys.

The Operating system is solaris 10 X86.

-bash-3.00$ uname -a
SunOS unknown 5.10 Generic_141445-09 i86pc i386 i86pc

bash-3.00# pkginfo | grep -i vnc
system SUNWvncviewer VNC viewer client
system SUNWxvnc X11/VNC server

1. Login as normal application user.

2. Sun Microsystems Inc. SunOS 5.10 Generic January 2005
-bash-3.00$ id
uid=1234(rajapp) gid=1000(users)
-bash-3.00$ pwd
/apps/users/rajapp
-bash-3.00$ vncserver

You will require a password to access your desktops.

Password:
Verify:
xauth: creating new authority file /apps/users/rajapp/.Xauthority

New 'unknown:2 (rajapp)' desktop is unknown:2

Creating default startup script /apps/users/rajapp/.vnc/xstartup
Starting applications specified in /apps/users/rajapp/.vnc/xstartup
Log file is /apps/users/rajapp/.vnc/unknown:2.log

3. Make sure that the process is running -

-bash-3.00$ ps -ef | grep -i vnc
root 2204 1 0 17:20:16 ? 0:00 vncconfig -iconic
root 2200 1 0 17:20:12 ? 0:07 Xvnc :1 -desktop unknown:1 () -auth //.Xauthority -geometry 1024x768 -depth 16
rajapp 2375 1 0 17:46:40 pts/2 0:06 Xvnc :2 -desktop unknown:2 (rajapp) -auth /apps/users/rajapp/.Xauthority -geome
rajapp 2379 1 0 17:46:45 pts/2 0:00 vncconfig -iconic

4. open vncviewer on your windows desktop and enter the hostname OR Ip address as follows hostname:2, ipaddress:2 you can try both ways if the hostname is not set.









It would be great if this post helps you any ways.

Thanks. thats it for today.

Monday, June 7, 2010

Installng RSYNC version 3.0.7 on SunOS 5.10 X86.

While installing RSYNC on Solaris 10 X86, I kept getting the following error message. I searched on internet but did not fnd the straight answer hence I am posting this stuff here.

bash-3.00# rsync
bash-3.00# rsyncld.so.1: rsync: fatal: libgcc_s.so.1: open failed: No such file or directoryKilled
Killed

To take care of this error make sure that you have following packages installed on your system using 'pkgadd' command.

1.rsync-3.0.7-sol10-x86-local. 2.libiconv-1.13.1-sol10-x86-loca. 3.libgcc-3.4.6-sol10-x86-local

$gunzip rsync-3.0.7-sol10-x86-local.gz
$pkgadd -d rsync-3.0.7-sol10-x86-local

$gunzip libiconv-1.13.1-sol10-x86-local.gz
$pkgadd -d libiconv-1.13.1-sol10-x86-local

$gunzip libgcc-3.4.6-sol10-x86-local.gz
$pkgadd -d libgcc-3.4.6-sol10-x86-local

-----------------------------------------------------------


The above packages can be obtained from sunfreeware.com.

You can find RSYNC installed in /usr/local/bin/rsync.

bash-3.00# rsync -version
rsync version 3.0.7 protocol version 30

------------------------------------------------------------