LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2012, 04:57 PM   #1
pserende
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
vncserver does not connect to remote ubuntu server


Frequently I cannot do a remote connection from my ubuntu laptop to my remote ubuntu server.
Contents of /root/.vnc/xstartup file:
#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
startx &
-----------------------------
To restart, I stop the vncserver and cleand X11-unix dir and X1-lock file in /tmp directory
I verify with "ps aux" if xtightvnc process is still running. Sometimes I deleted by hand with kill -9 <pnumber> in order to restart
But sometimes like now, it does not work.

There is any decent and solid software to do this and been able to start automatically after system reboot?
I realize that this subject has been in your forum over and over again.
Everybody suggest a different solution.
Any more suggestions?
Thanks
 
Old 04-30-2012, 02:37 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Now few things to cross check

1.I am not very familiar with ubuntu commands but can you tell us what output do you get after restarting vncserver services. Like do you get a "[OK]" message which signs a successful restart.

2. have you checked your firewall and selinux which might be reason for not allowing clients to take remote.

to make sure you don't need to run the services every time you restart your server
Code:
#chkconfig --level 35 vncserver on
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect MS SQL server 2008 Remote Server through SQUID proxy server samank75 Linux - Server 5 01-19-2012 10:19 PM
Remote web connect to a vncserver cwwilson721 Slackware 3 10-22-2006 02:32 PM
Could not connect to remote server sharad Linux - Networking 2 12-19-2005 01:36 PM
connect to remote x server blas Linux - General 8 09-29-2005 05:20 AM


All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration