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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
04-24-2017, 01:07 PM
|
#1
|
LQ Newbie
Registered: Jan 2015
Posts: 10
Rep:
|
linux 7 minimal vnc
I have a server centos 7 minimal install. I believe low footprint of OS make it healthy and lightweight.
Now I want to configure vnc server on it. I want vnc command shell only Gui is not required. I mean I do not want to install Desktop...
How can I install-configure minimal vnc server please.
|
|
|
04-24-2017, 01:09 PM
|
#2
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
I don't understand the point of running a VNC server on a console-only system. Why not just ssh in? If you need to maintain a session through dis/reconnects then use screen.
|
|
|
04-24-2017, 01:16 PM
|
#3
|
LQ Newbie
Registered: Jan 2015
Posts: 10
Original Poster
Rep:
|
yes ssh is used for operations. But we need a permanent session for running long operations like over night 8 hours...
We cannot take risk ssh may be disconnect for some reason after 5 hours.....
|
|
|
04-24-2017, 01:18 PM
|
#4
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
As I said in my previous post, if you need to maintain a session through dis/reconnects then use screen.
Code:
$ screen -S <session name>
Run whatever you want to run in the session, disconnect from it with Ctrl-A D, list all screen sessions with "screen -ls", reconnect to one with "screen -r <session name>", reconnect to one that's already connected to (forcing the other one off) with "screen -rD <session name>". If your ssh session dies for whatever reason, just ssh back in and reconnect to the screen session with "screen -r <session name>".
Last edited by suicidaleggroll; 04-24-2017 at 01:20 PM.
|
|
|
04-24-2017, 01:21 PM
|
#5
|
LQ Newbie
Registered: Jan 2015
Posts: 10
Original Poster
Rep:
|
screen means Desktop Or something else...
if it means Desktop
then minimal OS installation will be replaces with GUI.
|
|
|
04-24-2017, 01:22 PM
|
#6
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
|
|
|
05-14-2017, 08:19 AM
|
#7
|
LQ Newbie
Registered: Jan 2015
Posts: 10
Original Poster
Rep:
|
Ok Screen is absolutely which fullfill our requirements...
Thanks a lot.
But for my understanding can we configure vnc to run only console without desktop on minimal installation.
|
|
|
05-14-2017, 12:10 PM
|
#8
|
LQ Veteran
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: Rocky 9.4
Posts: 5,801
|
Quote:
Originally Posted by smunir362
yes ssh is used for operations. But we need a permanent session for running long operations like over night 8 hours...
We cannot take risk ssh may be disconnect for some reason after 5 hours.....
|
It's been awhile, but I seem to recall that running a job in background would make it immune to ssh disconnects. It would just keep running because, being in background, it was not connected to a terminal. Am I remembering correctly?
Sean
|
|
|
All times are GMT -5. The time now is 02:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|