LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-24-2017, 02:07 PM   #1
smunir362
LQ Newbie
 
Registered: Jan 2015
Posts: 10

Rep: Reputation: Disabled
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.
 
Old 04-24-2017, 02:09 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137
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.
 
Old 04-24-2017, 02:16 PM   #3
smunir362
LQ Newbie
 
Registered: Jan 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
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.....
 
Old 04-24-2017, 02:18 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137
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 02:20 PM.
 
Old 04-24-2017, 02:21 PM   #5
smunir362
LQ Newbie
 
Registered: Jan 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
screen means Desktop Or something else...
if it means Desktop
then minimal OS installation will be replaces with GUI.
 
Old 04-24-2017, 02:22 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137
screen is a program

https://www.rackaid.com/blog/linux-s...al-and-how-to/
 
Old 05-14-2017, 09:19 AM   #7
smunir362
LQ Newbie
 
Registered: Jan 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-14-2017, 01:10 PM   #8
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.7.1908
Posts: 4,355

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
Quote:
Originally Posted by smunir362 View Post
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
 
  


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
[SOLVED] Minimal installed server, I need to put a GUI and VNC via command line? mistabruno Linux - Newbie 6 04-14-2010 06:10 PM
No able to VNC from windows to Linux box but iam able to vnc from linux to windows. vinaykori Linux - Software 1 01-20-2008 10:46 AM
VNC connection to SUSE Linux 10 from a Windows XP VNC Viewer determin2excel Linux - Software 13 10-03-2007 10:38 AM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 01:06 AM

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

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