View previous topic :: View next topic |
Author |
Message |
borchi n00b
Joined: 05 Dec 2002 Posts: 44
|
Posted: Mon Oct 06, 2003 10:11 am Post subject: vnc through ssh (how to make it even more simple?) |
|
|
Hi!
firstly, this is a great thread!
i'm now able to get to my home desktop from anywhere
i know that i really should run vnc through ssh and even manage to make it work. from my work computer i do:
Code: | ssh -C -L 4961:localhost:5961 my.dyndns-name.com |
then i enter my home user password
and then again from my work comuter:
Code: | vncviewer -encodings "tight copyrect" -quality 3 localhost:4961 |
to get my gdm on my home computer.
now, my question:
is there a way to combine those two lines into a singe line?
thanks! |
|
Back to top |
|
|
evers310 Tux's lil' helper
Joined: 12 Mar 2003 Posts: 99 Location: Atlanta, Ga
|
Posted: Wed Oct 08, 2003 4:55 pm Post subject: |
|
|
I cannot get XDMCP to Listen on port 177, I have tried everything in your tutorial as well as the one on tldp.org. Here is my output from nmap:
Code: | Gentoo / # nmap localhost
Starting nmap 3.45 ( http://www.insecure.org/nmap/ ) at 2003-10-08 09:02 EDT
Interesting ports on localhost (127.0.0.1):
(The 1656 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
Nmap run completed -- 1 IP address (1 host up) scanned in 1.892 seconds
Gentoo / #
|
_________________ Linux registered user #95819 |
|
Back to top |
|
|
evers310 Tux's lil' helper
Joined: 12 Mar 2003 Posts: 99 Location: Atlanta, Ga
|
Posted: Wed Oct 08, 2003 5:08 pm Post subject: |
|
|
I forgot to mention that I do not have any firewalls running or installed. Anyone know what I am doing wrong? _________________ Linux registered user #95819 |
|
Back to top |
|
|
evers310 Tux's lil' helper
Joined: 12 Mar 2003 Posts: 99 Location: Atlanta, Ga
|
Posted: Wed Oct 08, 2003 6:02 pm Post subject: |
|
|
Ok, I've got it partly figured out. I had to start the vncserver, now I get the vnc ports open but I'm not able to connect from my Win2K box with tightvnc, the error I get is failed to connect to server. Here are my open ports.
Gentoo etc # nmap localhost
Starting nmap 3.45 ( http://www.insecure.org/nmap/ ) at 2003-10-08 09:54 EDT
Interesting ports on localhost (127.0.0.1):
(The 1653 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
5801/tcp open vnc-http-1
5901/tcp open vnc-1
6001/tcp open X11:1
Nmap run completed -- 1 IP address (1 host up) scanned in 1.886 seconds
G _________________ Linux registered user #95819 |
|
Back to top |
|
|
evers310 Tux's lil' helper
Joined: 12 Mar 2003 Posts: 99 Location: Atlanta, Ga
|
Posted: Wed Oct 08, 2003 6:17 pm Post subject: |
|
|
Ok, I switched from tightvnc to real vnc and I can connect now but I was getting twm as my WM. I changed the last line in ~/.vnc/xstartup to gdm & but I'm only getting the dreaded grey screen... _________________ Linux registered user #95819 |
|
Back to top |
|
|
evers310 Tux's lil' helper
Joined: 12 Mar 2003 Posts: 99 Location: Atlanta, Ga
|
Posted: Wed Oct 08, 2003 7:38 pm Post subject: |
|
|
Ok, I finally got it!! For some reason ~/.vnc/xstartup does not like gdm so I just made it /etc/X11/gdm/Sessions/Gnome and i goes directly to Gnome now. Dont know why just putting gdm doesnt work though...
Thanks for all the help!! _________________ Linux registered user #95819 |
|
Back to top |
|
|
evers310 Tux's lil' helper
Joined: 12 Mar 2003 Posts: 99 Location: Atlanta, Ga
|
Posted: Wed Oct 08, 2003 7:51 pm Post subject: |
|
|
Your welcome _________________ Linux registered user #95819 |
|
Back to top |
|
|
Eowyn n00b
Joined: 01 Jun 2002 Posts: 21
|
Posted: Thu Oct 09, 2003 1:53 am Post subject: |
|
|
whos ~/.vnc directory is it looking in? after all ~/ meens the users home directory and xinetd starts vnc as nobody
does it alway look it roots? |
|
Back to top |
|
|
Nylle Guru
Joined: 05 May 2002 Posts: 308 Location: Uppsala, Sweden
|
Posted: Mon Oct 13, 2003 9:36 am Post subject: |
|
|
This is great stuff. I just set up one of my unused machines as a gentoo Xvnc server, now some of my friends who are curious about linux can access it from the comfort of their windows machines and see what linux is about.
Btw, for me it works flawlessly with gdm. _________________ "Do you hear that sound your Highness?"
"Those are the shrieking eels, they always grow louder when they are about to feed on human flesh." |
|
Back to top |
|
|
JonnieDago n00b
Joined: 25 Apr 2003 Posts: 11
|
Posted: Wed Oct 15, 2003 9:25 am Post subject: |
|
|
Great walkthrough...
Got it up and running with the walkthrough. At first I was affected by the Grey Screen and X and couldnt figure out what was happening. Checked everything and restarted everything I could think of.
Finally started working after a reboot. Just a thought for others not getting past the grey screen.
Question : Does anyone know how to remove the identifying information from the kdm logon screen. Basically I dont want it to display the usernames in that left side pane. I would also prefer that it didnt tell you the system name at the prompt. |
|
Back to top |
|
|
Athrawn17 n00b
Joined: 07 Nov 2002 Posts: 42 Location: Des Moines IA
|
Posted: Fri Oct 17, 2003 5:55 pm Post subject: |
|
|
Check out the kdm manual
http://docs.kde.org/en/3.1/kdebase/kdm/
There is a section that shows how to configure a the list of users that it will display. Just remove those users from the config file and it won't display them.
I'm not at my gentoo box atm, but I think that if you look at the GreetString, you should see why it is displaying the hostname. Change that string and you should be all set. _________________ 1 0
Just my two bits. |
|
Back to top |
|
|
LowFuel n00b
Joined: 18 Oct 2003 Posts: 7 Location: San Diego, CA
|
Posted: Sat Oct 18, 2003 6:01 pm Post subject: |
|
|
Quote: |
5) Configure kdm
if you use kdm, edit /etc/kde/kdm/kdmrc and enable XDMCP on port 177
|
Quick question, I do not have this file (or even a /etc/kde), but I do have kde installed and working.
When I do a "locate kdmrc" I get this:
/usr/kde/3.1/share/config/kdm/kdmrc
Should I just edit this one for step 5? I guess I will try it, but any input is welcome. |
|
Back to top |
|
|
LowFuel n00b
Joined: 18 Oct 2003 Posts: 7 Location: San Diego, CA
|
Posted: Sat Oct 18, 2003 6:55 pm Post subject: |
|
|
In regards to my last post, it does indeed work.
So, now for my dumb question - I'd like to be able to connect through VNC to a persistent desktop. With this setup, everytime I connect I get a login prompt. Is there a way to disconnect, and then reconnect and have things be right where I left them? Maybe I mis-understood the jist of this tutorial. |
|
Back to top |
|
|
ferris5 n00b
Joined: 02 Sep 2003 Posts: 32
|
Posted: Thu Oct 23, 2003 7:31 am Post subject: |
|
|
maybe a stupid question but here it is:
what should i put in the windowsxp tightvnc viewer to get connected to the linux vnc server? |
|
Back to top |
|
|
EagleClaw n00b
Joined: 24 Oct 2003 Posts: 1
|
Posted: Fri Oct 24, 2003 1:55 am Post subject: Red Hat and VNC |
|
|
Guys;
I am new to Linux, so some things that are easy, for me it's not.
I tried to follow the steps on this tutorial, but I didn't get anything. Even when I tried using vncviewer, terminal gave me an library error. Could not locate some libraries. I tried to connect usind a Mac OS, but it didn't find the server. Can PLEASE, somebody help me????
I am using a fresh Red Hat 9.0 install, installed with the server options.
Thanks. |
|
Back to top |
|
|
digitalamish n00b
Joined: 11 Apr 2003 Posts: 43
|
Posted: Tue Oct 28, 2003 8:59 pm Post subject: How much 'X'? |
|
|
rojaro wrote: | ... of cousre you'll have to install XFree before |
I am interested in setting up a truly headless machine. How much of the XFree install do I need to do? I don't want to go through the trouble of setting up X with the old SVGA card I scrounged up (never had much luck). Generally I just use the tv-out display if I need to sit at the console.
So, if I install XFree, what more config do I need to do? It would be great if I could just get the binaries in, and then run ONLY a remote desktop on that machine.
BTW: great work on this... |
|
Back to top |
|
|
HomerSimpson l33t
Joined: 25 Jan 2003 Posts: 869 Location: Ohio, USA
|
Posted: Wed Oct 29, 2003 1:38 am Post subject: |
|
|
lines Thanks for the instructions. They worked great!
rojaro Thanks for the ipv6 comment. That was my problem too and I would have never figured it out on my own. Thanks! _________________ The strong must protect the Sweet. |
|
Back to top |
|
|
lines n00b
Joined: 29 Jul 2003 Posts: 20
|
Posted: Wed Oct 29, 2003 8:19 am Post subject: |
|
|
This thread is still active
EagleClaw:
This tutorial is for gentoo. I'm sorry.
You should get the needed rpm packages and use redhat tools like service. But I don't think this is the place for RedHat questions.
You can pm me if you like.
Last edited by lines on Thu Oct 30, 2003 12:14 pm; edited 1 time in total |
|
Back to top |
|
|
cmay4 Tux's lil' helper
Joined: 18 May 2002 Posts: 109
|
Posted: Wed Oct 29, 2003 10:10 pm Post subject: |
|
|
I also get the gray screen (using XDM and fluxbox). I may be able to look into kdm or gdm, but I'd like to keep it light. Did anyone get straight XDM to work? Any idea how I can track down the problem?
Chuck |
|
Back to top |
|
|
cmay4 Tux's lil' helper
Joined: 18 May 2002 Posts: 109
|
Posted: Thu Oct 30, 2003 9:55 pm Post subject: |
|
|
Looked into this furthur and still can't get xdm to work. I'm really trying not to install kdm. xdm is running, but I don't see port 177 in use. Any have any ideas?
Chuck
Code: | /etc/X11/xdm # nmap localhost
Starting nmap 3.45 ( http://www.insecure.org/nmap/ ) at 2003-10-30 16:52 EST
Interesting ports on localhost.localdomain (127.0.0.1):
(The 1644 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
111/tcp open rpcbind
139/tcp open netbios-ssn
143/tcp open imap
443/tcp open https
774/tcp open rpasswd
777/tcp open unknown
792/tcp open unknown
993/tcp open imaps
1400/tcp open cadkey-tablet
5432/tcp open postgres
6000/tcp open X11
Nmap run completed -- 1 IP address (1 host up) scanned in 1.694 seconds
/etc/X11/xdm # psg xdm
4 S root 7101 1 0 77 0 - 4417 schedu Oct29 ? 00:00:01 /etc/X11/X -auth /etc/X11/xdm/authdir/authfiles/A:0-YxB0wY
|
Update - I installed KDE and it works. I forgot how much I don't like KDE, so gnome is emerging now and I will try GDM. |
|
Back to top |
|
|
revoohc Tux's lil' helper
Joined: 12 Oct 2002 Posts: 128
|
Posted: Fri Nov 07, 2003 9:01 pm Post subject: |
|
|
Ok, let start by saying thanks for this tutorial.
However, I am having a problem. When I connect to my server via vnc, I get my kdm login screen. When I put my userid and password into kdm and click login, the vnc session terminates. Any idea what is going on? I have looked for some logs, but have not found anything yet.
Any help would be appreciated.
Thanks,
Chris |
|
Back to top |
|
|
revoohc Tux's lil' helper
Joined: 12 Oct 2002 Posts: 128
|
Posted: Fri Nov 07, 2003 9:06 pm Post subject: |
|
|
Ok, I got it to work. I was trying to have it log me in via my xsession file. Apperently, this was causing the problem since choosing kde-3.1.4 worked.
Here is my .xsession file on the server:
/usr/bin/xscreensaver &
#/usr/kde/3.1/bin/startkde
/usr/bin/gkrellm2 -s localhost &
/usr/bin/gnome-session
Any reason why this should cause the abend?
Thanks |
|
Back to top |
|
|
geoffwa n00b
Joined: 05 Nov 2003 Posts: 6 Location: AU
|
Posted: Sat Nov 08, 2003 1:06 pm Post subject: |
|
|
@people with the KDE problem
Just append :1 to the front of the Xvnc args line to get Xvnc to start from display 1 rather than display 0.
This happens when Xvnc tries to open display 0 which is 'supposed' to the be the console display and a whole heap of crap in Xsetup_0 gets executed which seems to be dependent on KDE being installed (aiee)
[edit]
Appending :1 just mangled the IP address for some weird reason, instead I just deleted console = display 0 line in Xservers to allow Xvnc to use all the available consoles. |
|
Back to top |
|
|
volrathxp n00b
Joined: 24 Apr 2003 Posts: 33
|
Posted: Thu Nov 13, 2003 4:11 pm Post subject: |
|
|
Just wanted to say thanks, this is a killer article. I've been passing this info around to some of my buddies and they really enjoy it.
Worked like a charm, very little problems at all and I now have the same remote access from home to my gentoo machine here at work as I did with my windows machine.
Great job!!! |
|
Back to top |
|
|
-Anders n00b
Joined: 02 Sep 2003 Posts: 50
|
Posted: Fri Nov 14, 2003 9:21 am Post subject: |
|
|
I can't believ how simple this was
I have been using gentoo for less than a week, and this was so straight forward for me, i got it working without any problems at all.
Thanks for a killer guide |
|
Back to top |
|
|
|