LinuxQuestions.org
Visit Jeremy's Blog.
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 07-23-2013, 11:41 PM   #1
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Rep: Reputation: 34
Restart vnc session on a specific port


HI,

How can I restart vnc session on a specific port for a user in redhat as I dont want to restart the complete vnc restart.
 
Old 07-24-2013, 12:25 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Which VNC you're using? Have you created any VNC port for user? Generally VNC port are just display no. that you create for a user on VNC server using vncserver command (in real VNC). However, explain your question little more.
 
Old 07-24-2013, 12:54 AM   #3
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
yes I had created vnc port for specific user which was defined in config file & the vnc session is running for a user but I want to restart that specific session or port like user:1
 
Old 07-24-2013, 03:01 AM   #4
Sydney
Member
 
Registered: Mar 2012
Distribution: Scientific Linux
Posts: 147

Rep: Reputation: 36
I think if you look at man vncserver the -kill :display# option is what you are looking for. After you kill the desktop you would have to start it again.
 
Old 07-24-2013, 04:26 AM   #5
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
Originally Posted by Sydney View Post
I think if you look at man vncserver the -kill :display# option is what you are looking for. After you kill the desktop you would have to start it again.
Kill option will permanantly delete the port. Any running jobs will be lost. But in this way, you can delete the port and then can create a new port for that user.
To kill:
Code:
~# vncserver -kill :<port-no>
To create:
Code:
~# vncserver -depth 24 -geometry 1280x1024
On the other hand, from VNC desktop, you can use logout option to close the current session and then can restart by login again into it.
 
Old 07-24-2013, 05:30 AM   #6
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
but if I want to restart the same session or port without killing the same session ?
 
Old 07-24-2013, 06:21 AM   #7
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
Originally Posted by smilemukul View Post
but if I want to restart the same session or port without killing the same session ?
Do you mean to restart any service or X-server? However, what's your purpose of restarting the session? There is no such option for restart in a VNC session. You can logoff and login again into the session, so it will close all your running work, but will not kill the session. You can then again use the same port/session to connect to VNC desktop.
 
1 members found this post helpful.
  


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
Kill specific vnc user from joint session jo4 Linux - Newbie 1 05-07-2011 04:08 AM
Telnet- how to restart session (by IAC???) mafo Programming 2 04-24-2011 04:00 AM
How to restart enlightenment session? werepacman Linux - Desktop 1 07-25-2010 02:15 AM
not to save session after restart/shut down laucian SUSE / openSUSE 2 04-17-2008 09:59 AM
To restart user session.Please Important rubendarioportillo Linux - Newbie 3 11-01-2005 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:43 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