VNC: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
To start ''vncserver'' do following: | To start ''vncserver'' do following: | ||
======= SOLARIS 10 ================ | |||
[Apr 2, 2007] Solaris 10, gcc and VNC server by jalzabrewer | |||
May 28, 2005 (forum.java.sun.com) VNC is on the SUN Supplimental SFW disk for Soalris 10 system SFWvnc vnc - Virtual Network Computing. Here is my implementaion using dtlogin xdm login feature of broadcast, if any one comes up with a way to use sse, let me know! | |||
1. pkgadd -d . SFWvnc | |||
2. Add to /etc/services | |||
nc1024 stream tcp nowait root /usr/local/bin/Xvnc-1024 Xvnc-1024 | |||
3. Add to /etc/inetd.conf | |||
vnc1024 stream tcp nowait root /usr/local/bin/Xvnc-1024 Xvnc-1024 | |||
4. Create /usr/local/bin/Xvnc-1024 script , perm 755. | |||
#!/bin/sh | |||
/opt/sfw/bin/Xvnc -inetd -broadcast -once -geometry 1024x768 -depth 8 | |||
5. Stop dtlogin | |||
/etc/init.d/dtlogin stop | |||
6. [Restart indentd] kill -HUP inetd-pid | |||
7. Start dtlogin | |||
/etc/init.d/dtlogin start | |||
8. /usr/sbin/shutdown -y -g0 -i6 to test startup. | |||
9. svcs should show: | |||
bash-3.00# svcs |grep vnc | |||
online 16:06:49 svc:/network/vnc1024/tcp:default | |||
Have fun! | |||
[Apr 2, 2007] VNC on Solaris 10 Installing and configuring VNC from the software companion CD | |||
Solaris 10 can be downloaded from sun’s web site. Also available from the download pages is an image of a “Software Companion CD”. | |||
This CD contains extra freeware products which can be added post-installation. One of these is the excellent Virtual Network Computing (VNC) package. | |||
VNC allows remote desktop access to computers over a network. It can be used between Microsoft and Unix/Linux operating systems. | |||
Insert the Solaris Companion CD and allow the volume management daemon to mount it. There are three packages which are required. In this example they are converted into package datastreams on the hard disk: | |||
# cd /cdrom/cdrom0/sparc/Packages | |||
# pkgtrans . /opt/SFWgcmn.pkg SFWgcmn | |||
# pkgtrans . /opt/SFWgcc34l.pkg SFWgcc341 | |||
# pkgtrans . /opt/SFWvnc.pkg SFWvnc | |||
[Mar 24, 2007] freshmeat.net Project details for Enhanced TightVNC Viewer | |||
Enhanced TightVNC Viewer 1.0.14 released | |||
The Enhanced TightVNC Viewer package is part of the x11vnc VNC server project. It provides a native VNC viewer that takes advantage of new features in x11vnc, e.g. cursor alpha blending and automatic SSL tunnelling. Some features apply to any VNC server, e.g. automatic SSH tunnelling. Another goal is to provide a package that conveniently bundles everything needed for the user to have the enhanced viewer running quickly. This includes pre-built binaries of the viewer and utility programs for Windows and many Unix variants, and a GUI to configure and launch the viewer. The short name for this project is "ssvnc", for SSL/SSH VNC viewer. | |||
Release focus: Minor bugfixes | |||
Changes: | |||
Using port numbers lower than VNC's default port (5900) now works on Windows (for example, myhost.com:443). | |||
Author: | |||
Karl Runge [contact developer] | |||
[Feb 20, 2007] VNC on Solaris 10 | |||
A good explanation of details | |||
Insert the Solaris Companion CD and allow the volume management daemon to mount it. There are three packages which are required. In this example they are converted into package datastreams on the hard disk: | |||
# cd /cdrom/cdrom0/sparc/Packages | |||
# pkgtrans . /opt/SFWgcmn.pkg SFWgcmn | |||
# pkgtrans . /opt/SFWgcc34l.pkg SFWgcc341 | |||
# pkgtrans . /opt/SFWvnc.pkg SFWvnc | |||
Add the three packages in the following order: | |||
# cd /opt | |||
# pkgadd -d SFWgcmn.pkg | |||
# pkgadd -d SFWgcc34l.pkg | |||
# pkgadd -d SFWvnc.pkg | |||
Xwindows is configured with text files under /usr/dt but these shouldn’t be modified, make copied of them under /etc/dt and modify the copies. | |||
# mkdir -p /etc/dt/config | |||
# cp /usr/dt/config/Xservers /etc/dt/config/ | |||
# cp /usr/dt/config/Xconfig /etc/dt/config/ | |||
# cp /usr/dt/config/Xsetup /etc/dt/config/ | |||
Edit the /etc/dt/config/Xservers to configure the extra connections to Xwindows. The :0 server is the default one which you log in to locally. In this example one extra connection is being configured: | |||
# vi /etc/dt/config/Xservers | |||
:0 Local local_uid@console root /usr/X11/bin/Xserver :0 -nobanner | |||
:1 Local local_uid@console root /opt/sfw/bin/Xvnc :1 -httpd /opt/sfw/vnc/classes -depth 16 -geometry 1024x768 -r fbwait 120000 -rfbauth /opt/sfw/vnc/.vnc/passwd -rfbport 5901 -httpport 5801 -fp tcp/localhost:7100 -alwaysshared | |||
There are only two lines in my example file, it has just word wrapped on this web page. Here are some of the important options: | |||
-depth 16 | |||
This is the colour depth. An 8bit colour depth uses less network bandwidth but looks a bit blocky. | |||
-geometry 1024x768 | |||
Choose whichever resolution you want. Yes, that is an “x” between the two numbers not an “*”. | |||
-rfbport 5901 | |||
The port number for the client to connect to. Each different server must use a different port number. For example :1 uses 5901 and :2 could use 5902 | |||
-httpport 5801 | |||
You can point a web browser at the Unix host with this port number and get a java based connection to the Unix host. For example: | |||
http://10.0.0.1:5801 | |||
Configure a password, this is prompted for before the user sees a login screen. | |||
# HOME=/opt/sfw/vnc | |||
# export HOME | |||
# mkdir $HOME/.vnc | |||
# /opt/sfw/bin/vncpasswd | |||
Password: password | |||
Verify: password | |||
To enable vnc to start when dtlogin does, uncomment the Dtlogin*grabServer line in /etc/dt/config/Xconfig or do this sed command which will do the same thing: | |||
# sed '/Dtlogin\*grabServer/s/^#//' /etc/dt/config/Xconfig >/tmp/Xconfig | |||
# mv /tmp/Xconfig /etc/dt/config/Xconfig | |||
This would work but the fonts will not be right. Add the font server to the /etc/inetd.conf and convert it into a new SMF managed network service: | |||
# echo "fs stream tcp wait nobody /usr/openwin/lib/fs.auto fs" >>/etc/inetd.conf | |||
# inetconv | |||
That should be it! I rebooted here but I think you should be able to get away with hupping the inetd and stopping and restarting dtlogin: | |||
# pkill –HUP inetd | |||
# /etc/init.d/dtlogin stop | |||
# /etc/init.d/dtlogin start | |||
Any time you change the /etc/dt/config/Xservers file, you will need to stop and restart dtlogin. In previous versions you could just /usr/dt/bin/dtlogin –reset but it doesn’t seem to work in Solaris 10. | |||
Java Desktop | |||
There is a bug which will prevent text being entered in terminal windows in the Java Desktop. This can be solved by modifying the file shown below: | |||
# cd /etc/gconf/gconf.xml.defaults/apps/gnome_settings_daemon/keybindings/ | |||
# mv %gconf.xml %gconf.xml.orig | |||
# vi %gconf.xml | |||
<gconf> | |||
<entry name="volume_up" mtime="1110896708" type="string"> | |||
<stringvalue></stringvalue> | |||
</entry> | |||
<entry name="volume_mute" mtime="1110896705" type="string"> | |||
<stringvalue></stringvalue> | |||
</entry> | |||
<entry name="volume_down" mtime="1110896702" type="string"> | |||
<stringvalue></stringvalue> | |||
</entry> | |||
<entry name="help" mtime="1110896698" type="string"> | |||
<stringvalue></stringvalue> | |||
</entry> | |||
</gconf> | |||
The next time you log in to a Java Desktop, it will work. |
Revision as of 20:57, 30 May 2007
VNC stands for Virtual Network Computing package and is included into both Solaris and Linux installations.
To start vncserver do following:
= SOLARIS 10 ==========
[Apr 2, 2007] Solaris 10, gcc and VNC server by jalzabrewer
May 28, 2005 (forum.java.sun.com) VNC is on the SUN Supplimental SFW disk for Soalris 10 system SFWvnc vnc - Virtual Network Computing. Here is my implementaion using dtlogin xdm login feature of broadcast, if any one comes up with a way to use sse, let me know!
1. pkgadd -d . SFWvnc
2. Add to /etc/services
nc1024 stream tcp nowait root /usr/local/bin/Xvnc-1024 Xvnc-1024
3. Add to /etc/inetd.conf
vnc1024 stream tcp nowait root /usr/local/bin/Xvnc-1024 Xvnc-1024
4. Create /usr/local/bin/Xvnc-1024 script , perm 755.
- !/bin/sh
/opt/sfw/bin/Xvnc -inetd -broadcast -once -geometry 1024x768 -depth 8
5. Stop dtlogin
/etc/init.d/dtlogin stop
6. [Restart indentd] kill -HUP inetd-pid
7. Start dtlogin
/etc/init.d/dtlogin start
8. /usr/sbin/shutdown -y -g0 -i6 to test startup.
9. svcs should show:
bash-3.00# svcs |grep vnc
online 16:06:49 svc:/network/vnc1024/tcp:default
Have fun! [Apr 2, 2007] VNC on Solaris 10 Installing and configuring VNC from the software companion CD
Solaris 10 can be downloaded from sun’s web site. Also available from the download pages is an image of a “Software Companion CD”.
This CD contains extra freeware products which can be added post-installation. One of these is the excellent Virtual Network Computing (VNC) package.
VNC allows remote desktop access to computers over a network. It can be used between Microsoft and Unix/Linux operating systems.
Insert the Solaris Companion CD and allow the volume management daemon to mount it. There are three packages which are required. In this example they are converted into package datastreams on the hard disk:
- cd /cdrom/cdrom0/sparc/Packages
- pkgtrans . /opt/SFWgcmn.pkg SFWgcmn
- pkgtrans . /opt/SFWgcc34l.pkg SFWgcc341
- pkgtrans . /opt/SFWvnc.pkg SFWvnc
[Mar 24, 2007] freshmeat.net Project details for Enhanced TightVNC Viewer
Enhanced TightVNC Viewer 1.0.14 released
The Enhanced TightVNC Viewer package is part of the x11vnc VNC server project. It provides a native VNC viewer that takes advantage of new features in x11vnc, e.g. cursor alpha blending and automatic SSL tunnelling. Some features apply to any VNC server, e.g. automatic SSH tunnelling. Another goal is to provide a package that conveniently bundles everything needed for the user to have the enhanced viewer running quickly. This includes pre-built binaries of the viewer and utility programs for Windows and many Unix variants, and a GUI to configure and launch the viewer. The short name for this project is "ssvnc", for SSL/SSH VNC viewer. Release focus: Minor bugfixes
Changes: Using port numbers lower than VNC's default port (5900) now works on Windows (for example, myhost.com:443).
Author: Karl Runge [contact developer]
[Feb 20, 2007] VNC on Solaris 10
A good explanation of details
Insert the Solaris Companion CD and allow the volume management daemon to mount it. There are three packages which are required. In this example they are converted into package datastreams on the hard disk:
- cd /cdrom/cdrom0/sparc/Packages
- pkgtrans . /opt/SFWgcmn.pkg SFWgcmn
- pkgtrans . /opt/SFWgcc34l.pkg SFWgcc341
- pkgtrans . /opt/SFWvnc.pkg SFWvnc
Add the three packages in the following order:
- cd /opt
- pkgadd -d SFWgcmn.pkg
- pkgadd -d SFWgcc34l.pkg
- pkgadd -d SFWvnc.pkg
Xwindows is configured with text files under /usr/dt but these shouldn’t be modified, make copied of them under /etc/dt and modify the copies.
- mkdir -p /etc/dt/config
- cp /usr/dt/config/Xservers /etc/dt/config/
- cp /usr/dt/config/Xconfig /etc/dt/config/
- cp /usr/dt/config/Xsetup /etc/dt/config/
Edit the /etc/dt/config/Xservers to configure the extra connections to Xwindows. The :0 server is the default one which you log in to locally. In this example one extra connection is being configured:
- vi /etc/dt/config/Xservers
:0 Local local_uid@console root /usr/X11/bin/Xserver :0 -nobanner
:1 Local local_uid@console root /opt/sfw/bin/Xvnc :1 -httpd /opt/sfw/vnc/classes -depth 16 -geometry 1024x768 -r fbwait 120000 -rfbauth /opt/sfw/vnc/.vnc/passwd -rfbport 5901 -httpport 5801 -fp tcp/localhost:7100 -alwaysshared
There are only two lines in my example file, it has just word wrapped on this web page. Here are some of the important options:
-depth 16
This is the colour depth. An 8bit colour depth uses less network bandwidth but looks a bit blocky.
-geometry 1024x768
Choose whichever resolution you want. Yes, that is an “x” between the two numbers not an “*”.
-rfbport 5901
The port number for the client to connect to. Each different server must use a different port number. For example :1 uses 5901 and :2 could use 5902
-httpport 5801
You can point a web browser at the Unix host with this port number and get a java based connection to the Unix host. For example:
Configure a password, this is prompted for before the user sees a login screen.
- HOME=/opt/sfw/vnc
- export HOME
- mkdir $HOME/.vnc
- /opt/sfw/bin/vncpasswd
Password: password Verify: password
To enable vnc to start when dtlogin does, uncomment the Dtlogin*grabServer line in /etc/dt/config/Xconfig or do this sed command which will do the same thing:
- sed '/Dtlogin\*grabServer/s/^#//' /etc/dt/config/Xconfig >/tmp/Xconfig
- mv /tmp/Xconfig /etc/dt/config/Xconfig
This would work but the fonts will not be right. Add the font server to the /etc/inetd.conf and convert it into a new SMF managed network service:
- echo "fs stream tcp wait nobody /usr/openwin/lib/fs.auto fs" >>/etc/inetd.conf
- inetconv
That should be it! I rebooted here but I think you should be able to get away with hupping the inetd and stopping and restarting dtlogin:
- pkill –HUP inetd
- /etc/init.d/dtlogin stop
- /etc/init.d/dtlogin start
Any time you change the /etc/dt/config/Xservers file, you will need to stop and restart dtlogin. In previous versions you could just /usr/dt/bin/dtlogin –reset but it doesn’t seem to work in Solaris 10.
Java Desktop
There is a bug which will prevent text being entered in terminal windows in the Java Desktop. This can be solved by modifying the file shown below:
- cd /etc/gconf/gconf.xml.defaults/apps/gnome_settings_daemon/keybindings/
- mv %gconf.xml %gconf.xml.orig
- vi %gconf.xml
<gconf>
<entry name="volume_up" mtime="1110896708" type="string">
<stringvalue></stringvalue>
</entry>
<entry name="volume_mute" mtime="1110896705" type="string">
<stringvalue></stringvalue>
</entry>
<entry name="volume_down" mtime="1110896702" type="string">
<stringvalue></stringvalue>
</entry>
<entry name="help" mtime="1110896698" type="string">
<stringvalue></stringvalue>
</entry>
</gconf>
The next time you log in to a Java Desktop, it will work.