Fedora Linux Support Community & Resources Center
  #1  
Old 23rd October 2005, 10:23 AM
raoul Offline
Registered User
 
Join Date: Sep 2005
Location: Hellas
Posts: 126
Post HOWTO - Some notes about setting up VNC server in Fedora

Some notes about setting up VNC server in Fedora:
URL HAS CHANGED AGAIN :-( THIS IS FINAL
Configure the VNC server in Fedora

Describes in short:
  • how to setup vnc server instances for one or multiple users
  • customize window manager, use vnc to start graphical applications on boot
  • enhance security with SSH tunnels

Last edited by raoul; 8th October 2006 at 10:17 AM. Reason: URL HAS CHANGED
Reply With Quote
  #2  
Old 23rd October 2005, 11:03 AM
mndar's Avatar
mndar Offline
Registered User
 
Join Date: Feb 2005
Posts: 1,101
Thanks. I was thinking of doing a google for that just this morning.
While reading the article
Quote:
I assume that we have setup a remote user account, named "leopard" and we want to start an X session through VNC for this user.
Can yout tell me how to setup a remote user account ?
Can client computer connect and use X even if the host computer has not started X ?
Reply With Quote
  #3  
Old 23rd October 2005, 12:01 PM
raoul Offline
Registered User
 
Join Date: Sep 2005
Location: Hellas
Posts: 126
Quote:
Originally Posted by mndar
Can yout tell me how to setup a remote user account ?
You must somehow have access to the remote machine, either physical or logging in remotely, eg using SSH, in order to setup the vnc server or do anyhting else. A user account on the remote machine, plus the remote machine root's password are mandatory.

If there are no users, but you know the root's password, then try connecting as root with ssh. It may not be possible. It depends of the SSH server configuration, but you can try. For example:
Code:
# ssh my.remote.machine
Once logged in as root, you can add users with useradd. For example:
Code:
# useradd mndar
# passwd mndar
Quote:
Originally Posted by mndar
Can client computer connect and use X even if the host computer has not started X ?
An X session is started through VNC for a certain user. The general idea is the following:
-There is your user account on the remote machine.
-You start a VNC server instance for this user.
-The VNC server starts the X session for this user
-You can connect remotely to this X session using the VNC protocol. In other words you use vncviewer.
Reply With Quote
  #4  
Old 23rd October 2005, 12:11 PM
raoul Offline
Registered User
 
Join Date: Sep 2005
Location: Hellas
Posts: 126
Quote:
Originally Posted by mndar
Can client computer connect and use X even if the host computer has not started X ?
You can connect to the remote machine's vnc server even if it has not started the X server on boot (i mean without booting in runlevel 5). The VNC server has nothing to do with it as it starts an X session for your remote user anyway.
Reply With Quote
  #5  
Old 23rd October 2005, 01:37 PM
lvansteen Offline
Registered User
 
Join Date: Oct 2004
Age: 43
Posts: 61
Great guide Raoul!! VNC is a great piece of software although it consumes a lot of bandwith.

Why aren't there more people giving FreeNX a try? It's working great and consumes less bandwith.

More information on FreeNX can he found on http://myco.dyndns.org/blog/index.php?p=32
__________________
Luc Van Steen

Visit my personal site www.lucvansteen.net

JabberMe! on lvs@im.sktlab.be
Reply With Quote
  #6  
Old 23rd October 2005, 04:28 PM
Zigzagcom Offline
Registered User
 
Join Date: Feb 2005
Location: CALIFORNIA, yeah
Age: 86
Posts: 1,657
FreeNX How to without the need for an e-mail

http://fedoranews.org/contributors/rick_stout/freenx/
__________________
Ziggy
Reply With Quote
  #7  
Old 23rd October 2005, 04:35 PM
lvansteen Offline
Registered User
 
Join Date: Oct 2004
Age: 43
Posts: 61
I know it is a bit funny to send me first a mail, but I had it before that people start downloading just to dowload (because they cannot resist ?) and I hit my traffic limit with my provider...

And in Belgium, ordering addidtional GBs is expensive (damn you providers!!!)
__________________
Luc Van Steen

Visit my personal site www.lucvansteen.net

JabberMe! on lvs@im.sktlab.be
Reply With Quote
  #8  
Old 24th October 2005, 07:59 AM
raoul Offline
Registered User
 
Join Date: Sep 2005
Location: Hellas
Posts: 126
To Luc Van Steen:
Web hosting is a bit expensive here in Greece too. I can understand about asking for an email, but it's a difficult decision for someone to send an email these days :-) I keep all these things in my home server. I know my bandwidth su_cks though.
Anyway, your blog contains much info. What I have realized the last months, when I got involved in blogging myself, is that there are tons of useful information in the people's blogs around the web. They are a fantastic source of information.

To Zigzagcom :
I had seen your article about freenx, which BTW is great, and I was definetely going to try NX sometime. I wrote this document about vnc, because I am in the process of getting rid of all my notes (countless text files that lay around in my home dir) and I have decided to load my web page and blog with alli this.
Reply With Quote
  #9  
Old 14th November 2005, 01:56 PM
RustyJuggler Offline
Registered User
 
Join Date: Nov 2005
Location: Trondheim, Norway
Posts: 9
To connect to the server when I have set up the ssh server. Do I use the same command with vncviewer? or do I have to SSH in?

Anders
Norway
Reply With Quote
  #10  
Old 14th November 2005, 10:00 PM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,305
Not to hijack the thread, but I went to try out this NX thingy. The install went fine, but all I get is a black screen in my client. I've tried linux -> localhost w/gnome, linux -> localhost w/custom+default startup script, linux -> another linux server w/custom+default startup script and windows -> linux w/kde. All of them give the same black screen with the default "X" cursor.
Reply With Quote
  #11  
Old 15th November 2005, 06:47 AM
RustyJuggler Offline
Registered User
 
Join Date: Nov 2005
Location: Trondheim, Norway
Posts: 9
I don't have the commands service and chkconfig. What should I install to get them?

Anders
Norway
Reply With Quote
  #12  
Old 15th November 2005, 06:04 PM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,305
yum install chkconfig initscripts
Reply With Quote
  #13  
Old 15th November 2005, 08:20 PM
RustyJuggler Offline
Registered User
 
Join Date: Nov 2005
Location: Trondheim, Norway
Posts: 9
Do you know which settings to use in Putty. I try to use the tunneling settings, but I can't start the SSH server. I can only start it from linux. The error I get is can't start display "" or something like that.

Anders
Norway
Reply With Quote
  #14  
Old 19th November 2005, 03:32 PM
raoul Offline
Registered User
 
Join Date: Sep 2005
Location: Hellas
Posts: 126
Quote:
Originally Posted by RustyJuggler
I don't have the commands service and chkconfig. What should I install to get them?
maybe you have used su to become root instead of su-, so /sbin/ is not in your PATH. You could try:
Code:
# /sbin/service ...
# /sbin/chkconfig ....

Last edited by raoul; 19th November 2005 at 03:35 PM.
Reply With Quote
  #15  
Old 19th November 2005, 03:55 PM
RustyJuggler Offline
Registered User
 
Join Date: Nov 2005
Location: Trondheim, Norway
Posts: 9
Thanks, I got it to work, now I just have to get tunneling to work from windows with putty. When I write localhost:3 in the vncviewer after setting up tunneling in putty. The vncviewer just disappeares, and I have to stop it in task manager in windows.

Anders
Norway
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: Setting up Fedora 10/11Beta for Ruby on Rails development nilayan Guides & Solutions (No Questions) 0 25th April 2009 10:24 PM
Setting up Fedora Directoy Server as LDAP Address book server: how? mdragt Servers & Networking 0 17th September 2008 12:20 PM
Setting up an NFS server (Fedora 9) Ozrael Servers & Networking 1 4th September 2008 03:58 AM
Setting up name server on fedora productive Servers & Networking 3 25th June 2005 06:31 PM
Fedora server howto vels Servers & Networking 1 1st November 2004 07:54 PM


Current GMT-time: 09:42 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat