SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This sets up a persistent desktop environment on the server using VNC. This walkthrough however is for Redhat distributions; some of the files mentioned aren't present in SuSE (such as /etc/sysconfig/vncservers).
I have VNC remote management working on SuSE 10.2 (a bit of a bear to configure, but it's fully functional) but the catch is the desktops aren't persistent. Anyone know how to configure persistent VNC desktops on SuSE 10.x?
It looks like the "service vncserver start" is what does the trick on RHEL. See if there is a "rcvnc" or something similar on SuSE. You could go into YaST and change this service to start on boot as well.
VNC starts on boot currently. I can remote into the server with VNC with no problems at all (even with some tweaked iptables packet filtering - the SuSE firewall is inadequate for what I needed). However, after I log onto the server with VNC and I'm finished doing whatever I needed to do, I close the VNC client window and session is lost, so if I had something running there it's killed. With a persistent desktop such as what's listed in the previous link, the desktop would stay running and allow reconnection to that instance (in my case, :1).
This is the one thing keeping me from using SuSE on several servers instead of Redhat, and I know it has to be possible... I just can't figure it out since SuSE doesn't have a /etc/sysconfig/vncservers file.
Taking a second look I found that there is an /etc/xinet.d/vnc configuration. Several example configurations are listed. Also the Xvnc manpage give further information, including this sample:
Code:
5951 stream tcp wait james /usr/local/bin/Xvnc Xvnc -inetd -query localhost -once password‐
File=/home/james/.vnc/passwd
In fact typically, you would have one entry for each user who uses VNC regularly, each of whom has their own dedicated TCP
port which they use. In this example, when user "james" connects to :51, he enters his VNC password, then gets the XDM login
screen where he logs in in the normal way. However, unlike the previous example, if he disconnects, the session remains per‐
sistent, and when he reconnects he will get the same session back again. When he logs out of the X session, the Xvnc will
die, but of course a new one will be created automatically the next time he connects.
I'm running into the same issue. I'm running SUSE Linux 10.2, and I'd like to have persistent desktops, so that when I reconnect to a VNC session my GUI applications are still running. I tried editing my /etc/xinetd.d/vnc file as indicated in the prior message, but when I did all of my VNC client connections were refused. My vnc file currently has this entry:
service vnc1
{
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/X11R6/bin/Xvnc
server_args = :42 -inetd -query localhost -geometry 1024x768 -depth 16
type = UNLISTED
port = 5901
}
How should this be modified to allow for persistent sessions? Thanks,
Did you set a password for the VNC server? That's one thing not mentioned in this thread that is mandatory. VNC won't allow (typically) a connection unless a password has been set.
I'm running into the same issue. I'm running SUSE Linux 10.2, and I'd like to have persistent desktops, so that when I reconnect to a VNC session my GUI applications are still running. I tried editing my /etc/xinetd.d/vnc file as indicated in the prior message, but when I did all of my VNC client connections were refused. My vnc file currently has this entry:
service vnc1
{
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/X11R6/bin/Xvnc
server_args = :42 -inetd -query localhost -geometry 1024x768 -depth 16
type = UNLISTED
port = 5901
}
How should this be modified to allow for persistent sessions? Thanks,
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.