LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-15-2010, 06:44 AM   #1
RAFAL
Member
 
Registered: Feb 2006
Location: Warsaw, Poland
Distribution: openSUSE 11.4, openSUSE 12.3, SLES 11, Archlinux
Posts: 129

Rep: Reputation: 16
problem with vncserver and boot script


Hi,

Today I wanted to start something when our SLES 10.2 server starts.
Just one command like
"sudo -u myuser vncserver :1"

However the problem was that I couldn't find a right place to add the command. According to this post
http://fixunix.com/suse/552471-how-e...g-boot-up.html
I should edit someting like /etc/rc.local or /etc/init.d/boot.local
This didn't work.
I found a way searching for how SLES shows message put in /etc/issue wile ("Welcome to SLES...etc")
I found /etc/init.d/rc in which I added:
"sudo -u myuser vncserver :1"
Command was executed, however system informed me that "vncserver command not found"
This worked ONLY with full path:
"sudo -u mysuser /usr/X11R6/bin/vncserver :1"

Strange but the way described in the official SUSE HOWTO:
http://en.opensuse.org/VNC_HOWTO
didn't worked at all (like "chkconfig --add vnc" which says "vnc: not runlevel service").
I have installed tightvnc 1.2.9-2001.17

If somebody can post any comments why in my case system worked differently and show me more proper way to execute command when SLES system starts, then it will be helpful. Otherwise I just post my solution in case somebody will face something similar.

regards
Rafal
 
Old 01-15-2010, 09:05 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964
Can I suggest that you try a decent remote control client like NX from nomachine.org instead of VNC? VNC is such a nasty and insecure service.
 
Old 01-17-2010, 05:09 AM   #3
RAFAL
Member
 
Registered: Feb 2006
Location: Warsaw, Poland
Distribution: openSUSE 11.4, openSUSE 12.3, SLES 11, Archlinux
Posts: 129

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by acid_kewpie View Post
Can I suggest that you try a decent remote control client like NX from nomachine.org instead of VNC? VNC is such a nasty and insecure service.
security is not a issue here, because its local corporate network behind a several firewalls. This server is 3 meters from my desk and using VNC is only because I am to lazy to change my sit ;-)
Thanks for suggestion about NX. I see its based on Java. Personally I do not like Java applications.
 
  


Reply

Tags
boot, sles, vnc, vncserver


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running 'vncserver' on boot Xzi Linux - Newbie 3 12-21-2006 01:08 PM
Starting vncserver at boot using rc.local promethious Linux - General 3 10-14-2005 07:57 AM
vncserver for each user on boot devfreak Linux - Software 6 04-10-2005 06:42 PM
Slackware vncserver start/boot script luegner Slackware 1 03-12-2004 09:02 PM
VNCServer @ boot w/ alternate credentials agkrueger Linux - General 3 09-03-2003 12:53 PM


All times are GMT -5. The time now is 05:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration