View previous topic :: View next topic |
Author |
Message |
zang42 n00b
Joined: 29 Jan 2004 Posts: 8
|
Posted: Thu Jan 29, 2004 3:23 pm Post subject: problems with ssh and vnc |
|
|
i have two computers and both are running gentoo. on my primary computer, everything works just fine, ssh and vnc. when i ssh into my other computer, it does connect, but i can't do "top" or practically anything other than "ls". i can start a vncserver on that computer, but all i get when i use vncviewer or tightvnc is a blank screen with a cursor... can't right click or anything. i was just wondering if anybody knew what the problem might be. thanks. |
|
Back to top |
|
|
meowsqueak Veteran
Joined: 26 Aug 2003 Posts: 1549 Location: New Zealand
|
Posted: Thu Jan 29, 2004 8:29 pm Post subject: |
|
|
When you say you can't do 'top', what precisely do you mean? Does it give an error message? Does it drop the connection? In what way do these programs, other than 'ls', not work? |
|
Back to top |
|
|
zang42 n00b
Joined: 29 Jan 2004 Posts: 8
|
Posted: Thu Jan 29, 2004 11:48 pm Post subject: |
|
|
it just hangs... nothing happens, doesn't bring me back to my command prompt or anything |
|
Back to top |
|
|
fleed l33t
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Fri Jan 30, 2004 10:24 am Post subject: |
|
|
Is the blank VNC screen related to not having a window manager, maybe?
Could it be you're sshing into a chroot jail which is very limited? Unless you haven't setup your machine, you should know if that's the case. Also, if you use the machine directly do you have access to top? Could it be you just need to install it (dunno if it is part of a basic package, is sys-apps/procps included in a basic install?) Can you cd to / and check the contents? |
|
Back to top |
|
|
zang42 n00b
Joined: 29 Jan 2004 Posts: 8
|
Posted: Fri Jan 30, 2004 3:03 pm Post subject: |
|
|
i have kde set up as the display manager, and yes, top does work directly on the computer... everything works fine directly on it. |
|
Back to top |
|
|
krusty_ar Guru
Joined: 03 Oct 2002 Posts: 560 Location: Rosario, Argentina
|
Posted: Fri Jan 30, 2004 3:07 pm Post subject: |
|
|
I think ssh tryes to use the same user in one box and the other (can be overwiten in the comman line), so maybe the user that you are in the client box, doesn't exists or doesn't have a shell in the server box _________________ I am Beta, don't expect correct behaviour from me.
Take part of the adopt an unaswered post initiative |
|
Back to top |
|
|
zang42 n00b
Joined: 29 Jan 2004 Posts: 8
|
Posted: Fri Jan 30, 2004 5:33 pm Post subject: |
|
|
the thing is, it didn't work right away when i set up my secondary computer... then after a few weeks, it worked for a few days, everything was functional, ssh and vnc. now it doesn't work again... and i didn't change a thing, it's really weird |
|
Back to top |
|
|
SkizoidMan n00b
Joined: 30 Apr 2003 Posts: 50
|
Posted: Sat Jan 31, 2004 12:28 pm Post subject: environment variables |
|
|
Check your path settings first of all; connect via ssh and, if you use bash, type "export".
If your PATH is missing the /usr/bin, /usr/local/bin and /usr/X11/bin directories, add them in your local initialization file (.bashrc, .profile or whatever you use):
export PATH=/usr/X11/bin:/usr/bin:$PATH:/usr/local/bin
this should fix your problems.
SkizoidMan |
|
Back to top |
|
|
zang42 n00b
Joined: 29 Jan 2004 Posts: 8
|
Posted: Sat Jan 31, 2004 5:10 pm Post subject: |
|
|
didn't work |
|
Back to top |
|
|
Lillstrumpa n00b
Joined: 10 Dec 2003 Posts: 29 Location: Örebro, Sweden
|
Posted: Mon Feb 09, 2004 5:35 pm Post subject: |
|
|
I had the same problem but I solved it by using another networkcard.
The cheap Realtekcard I was using gave me this error but when changing it to a d-linkcard the problem was gone. |
|
Back to top |
|
|
zang42 n00b
Joined: 29 Jan 2004 Posts: 8
|
Posted: Mon Feb 09, 2004 9:50 pm Post subject: |
|
|
it's working now... has been for a few days actually. my roommate switched the router that the comp was on to a hub. that must've been the problem. thanks for everybody's help. |
|
Back to top |
|
|
|