LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-13-2011, 02:29 PM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
Question Remote desktop before login?


I have a PC running Ubuntu 10.04 with vino to share the desktop. After I login to the PC I can connect to it from another PC (again 10.04) with the vinagre Remote Desktop Viewer. Canonical has made this rather easy to configure. However, I cannot connect to the remote PC and use the Desktop Viewer to login to the remote PC.

Short of ripping out vino and installing vnc or tightvnc is there a way to configure Ubuntu's desktop sharing to allow me to connect to the remote PC and then login?

TIA,

Ken
 
Old 08-13-2011, 02:47 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Yes, you can define an independent session that gives you a login prompt at connection.

First, edit /etc/gdm/custom.conf and add ‘Enable=true’ to the ‘[xdmcp]’ section:
Code:
    [xdmcp]
    Enable=true
Edit /etc/services and add an entry for the second VNC session:
Code:
    vnc2         5901/tcp                # VNC & GDM
Create an xinetd service (install xinetd if you don't already have it) by creating /etc/xinetd.d/vnc2 with the following contents:
Code:
    service vnc2
    {
      disable = no
      socket_type = stream
      protocol = tcp
      wait = no
      user = nobody
      server = /usr/bin/Xvnc
      server_args = -inetd -query 127.0.0.1 -geometry 980x600 -depth 24 -once -securitytypes=none :1
    }
Set the parameters, like the geometry, to your desired screen size. This is handy if you are connecting via a mobile device, so you don't have to scroll the screen.

Open the firewall to port 5901 for the service if you have the firewall active (use your subnet, obviously):
Code:
    -A INPUT -s 123.45.67.0/24 -p tcp -m tcp --dport 5901     --syn -j ACCEPT
Restart your system.

You should now be able to connect via a VNC client to port 5901 on your desktop and get a login prompt. This is completely independent from your desktop session. If you have remote desktop functionality enabled in the preferences, that should still function on port 5900 (the default).
 
Old 08-13-2011, 05:16 PM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks macemoneta, I may have to give that a try. It is not exactly what I was looking for. I used to run vnc on Red Hat and Fedora. I would connect as my normal user ID or a test user ID or (although I should not) as root. All in their own little worlds. And I could be logged in to the main console at the same time. Almost like a REAL operating system

Windoze XP allowed me to connect to the "console" before login and then decide which user I wanted to be. And of course Canonical took the worst of both worlds. I am required to use the main console but have to be logged in to the main console first. Oh well. Again thanks for the instructions.

Ken

p.s. Manalapan - I used to live in Holmdel. And all those quarters you paid on the Garden State Parkway... I went to school with with the son of the Head of the Parkway Authority - the one who took all those quarters (collected to maintain the Parkway) and built the Garden State Art Center!
 
  


Reply



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
Need to be able to remote-reboot, and have my wifi active BEFORE desktop login. nm themrrobert Linux - Networking 1 08-05-2009 09:27 PM
how to login to graphical remote desktop in linux sawaby Linux - Newbie 4 06-12-2008 11:37 AM
Remote Desktop login with card reader captgoody Linux - Desktop 0 04-11-2007 08:28 AM
remote login & desktop documents unihiekka Linux - Networking 1 11-18-2005 07:55 AM
Redhat 9 Remote Desktop Sharing at Login nick81 Linux - Software 2 02-23-2004 10:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:47 PM.

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
Open Source Consulting | Domain Registration