runlevel add tightvncserver

How can I add tightvncserver to system runlevel for set on or off.
openSUse 12.3

From your short message, its hard to know what you want to do. openSUSE has switched from systemv to systemd and TightVNC is a remote PC Desktop control application. For info on TightVNC, see link below:

https://forums.opensuse.org/content/180-how-activate-vnc-server-opensuse-12-3.html

For more info on remote control, have a look here:

How To Use VNC/Remmina to Remote Control an openSUSE 12.3 KDE Desktop - Blogs - openSUSE Forums

For more info on using systemd, have a look here:

https://forums.opensuse.org/blogs/jdmcdaniel3/systemd-using-after-local-script-opensuse-12-1-12-2-12-3-71/

Thank You,

You would have to write an init script or systemd unit.
Or start it in /etc/init.d/boot.after.local or similar.

But normally tightvnc is started via xinetd and even contains a ready xinetd configuration, which you just have to enable in YaST->Network Services->Network Services (xinetd).
Or even easier: Enter YaST->Network Services->Remote Administration (VNC) and enable “Allow Remote Administration”. This enables tightvnc in xinetd.

I just want x11vnc or tightvnc auto startup after user login.

Then add it to /etc/X11/xinit/xinitrc or put a script into /etc/X11/xinit/xinitrc.d/ that starts it.

What should I add?
Would be nice to have a user friendly howto setup tightvncserver with opensuse 12.3 and auto start after login
for remote with tightvnc.

You already got three links on how to use TightVNC and for systemd. So, you have more than one PC, and on one of them you want TightVNC to auto start, right?

Thank You,

I cannot find the answer in your links sorry .

Its not a problem to remote the clients when I type in :
vncserver -geometry 1024x768 -depth 16

Only those 5 workstations (LXDE) have no monitor and no keyboard.
Thats why I want to auto startup the vncserver.

greetings

This command would be run on the remote server you wish to connect to. Are you trying to remote control a GUI desktop or a terminal session? This command could be added to the /etc/init.d/after.local file as root per my blog on the subject:

systemd and using the after.local script in openSUSE 12.1 - Blogs - openSUSE Forums

Thank You,

Yes that is true I have to type that in the remote server (gui desktops).
I am trying to remote GUI desktops.

Cannot get it work easy.

You can try the file /etc/init.d/boot.local as root as well to add your server string. For system file edits look here:

SYSEdit - System File Editor - Version 1.50 - Blogs - openSUSE Forums

Consider I can not come to you and make this work. What effort are you putting forth here?

Thank You,

Actually I have it all work for one workstation made that a few months ago.
But I cannot remember how I did that.
Its is even a full graphic look under remote.

I cannot find a startup script under /.vnc
also no added line in boot.local
I see also no added script under xinitrc.d

I am getting confused.

On 2013-11-26 19:26, anton wrote:
>
> Actually I have it all work for one workstation made that a few months
> ago.
> But I cannot remember how I did that.
> Its is even a full graphic look under remote.
>
> I cannot find a startup script under /.vnc
> also no added line in boot.local
> I see also no added script under xinitrc.d

If you run:


ps afxu | less -S

you can see what started what:


> root      2684  0.0  0.0   9420   784 ?        Ss   Nov02   0:01 /usr/sbin/xinetd -pidfile /var/ru
> news     25215  0.0  0.0  10732  4364 ?        Ss   21:35   0:00  \_ leafnode
> news     25216  0.0  0.4  41760 35396 ?        Ss   21:35   0:00  \_ leafnode
> ftpsecu+ 25289  0.0  0.0  34396  2144 ?        Ss   21:39   0:00  \_ vsftpd: 192.168.1.14: connect
> cer      25296  0.0  0.0  34632   804 ?        S    21:39   0:00      \_ vsftpd: 192.168.1.14/cer:


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Normally there should be a tighvncserver script in /etc/init.d probably openSUSE changed the name or location?

I already mentioned that.
On openSUSE tightvncserver is normally started by xinetd. The package contains a configuration for that: /etc/xinetd.d/vnchttpd
There is no init script in openSUSE’s tightvnc package. (and there’s no need to run tightvncserver with an init script, if it can just as well be spawned by xinetd on demand :wink: )

See the previous posts how to enable that.

There is no /etc/xinetd.d/vnchttpd

But remote is working fine only after login or start at boot is the problem.

There is if you installed openSUSE’s tightvnc package.
But you would need /etc/xinetd.d/vnc anyway (vnchttpd is for VNC via HTTP), sorry.
This is in the package xorg-x11-Xvnc.
But if you use YaST->Remote Administration, all needed packages would be installed automatically, I think.

But remote is working fine only after login or start at boot is the problem.

Sorry, I don’t understand this.
What is working and what is not working?

Not true and tightvnc is installed.
There in usr/bin/
Just want to autostart vncserver at boot or after login on the workstation so I can get access by remote

It is true:

# rpm -ql tightvnc | grep xinet
/etc/xinetd.d/vnchttpd
# rpm -ql xorg-x11-Xvnc | grep xinet
/etc/xinetd.d/vnc
# ls /etc/xinet.d | grep vnc
vnc
vnchttpd

Just want to autostart vncserver at boot or after login on the workstation so I can get access by remote

I already told you how to a few times.
Enable it in YaST->Network Services->Remote Access, f.e., or in YaST->Network Services->Internet Services.

Or add a line that runs it to /etc/X11/xinit/xinitrc, or put a script that starts it in /etc/X11/xinit/xinitrc.d/ . Then it’s started on login.
Or put a script starting it to ~/.kde4/env/ (have a look at Configure Desktop->Startup and Shutdown as well), if you’re using KDE.

Or run it in /etc/init.d/after.local or something like that.

Or create an init script or systemd unit file yourself.

And I guess there are even more possibilities.