LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2003, 02:00 PM   #16
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30

Well, I just thought about it, and it occurred to me that since I had port 139 going to port 139 both directions, perhaps the packets were going full circle. Therefore, I changed the incoming tunnel to 138->138 instead, as a test. I didn't get an error about creating the incoming tunnel after that. Therefore, I have three questions:

1) Is SSH smart enough to keep the packets from going back and forth through the tunnels if you have bi-directional, like 139 <--> 139?
2) If no, then why did this make the error messages go away?
3) If yes, then how can I get SMB working? Will the server respond on a different port?
 
Old 04-16-2003, 06:30 AM   #17
azornoz
Member
 
Registered: Apr 2003
Posts: 52

Rep: Reputation: 15
RolledOat thanks for your explanations, forgive my ignorance if it's posible. I just wanted to give it a try. Now I know.
I've been reading two or three times something on the ssh man page . I got it all in front of my eyes but I need some time to understand.
thanks.
 
Old 04-16-2003, 09:39 AM   #18
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
Quote:
Originally posted by azornoz
RolledOat thanks for your explanations, forgive my ignorance
No problem. The reason I know it was a lot of head banging, and now that I know enough to be dangerous (I expect SSH can do so much more), I want to share the knowledge.

RO
 
Old 04-16-2003, 06:00 PM   #19
azornoz
Member
 
Registered: Apr 2003
Posts: 52

Rep: Reputation: 15
RolledOat is normal not to see the panel or icons on the vnc desktop?
If I do 'xterm -display :2 ' then I can start all the apps from the command line on the vnc desktop and I see them, but if not then I only see the blue background of my desktop and the pointer is busy.
I tried some options on the client side and always got the same.
Is it always that way?
 
Old 04-16-2003, 09:54 PM   #20
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
You probaby don't have the corect X type defined in you ~/user directory. From the user's home directory,
cd .vnc and look at xstartup. Here s mine, unmodified as created
on startup in Redhat 8.0.

more xstartup
#!/bin/sh

# Red Hat Linux VNC session startup script
exec /etc/X11/xinit/xinitrc

If you see .twmrc, you will get a drab grey background and a single xterm. See what, on the server side, is the x session being started.

From http://www.uk.research.att.com/vnc/faq.html#q16

Q16 I connected to my Unix VNC server and I just see a grey desktop with a cursor.
After the vncserver script has started the Xvnc server, it then runs your ~/.vnc/xstartup script. By default this will try to start the twm window manager, but if twm isn't on your path, or if you prefer something else, you can edit xstartup. The log file may also give you clues about what is happening.

RO
 
Old 04-17-2003, 12:10 PM   #21
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
Quote:
You could therefore, if you wanted to, have XMMS play to a port, and use SSH to redirect the output over the SSH link and listen to it locally.
RO, you said this a few replies ago... Could you detail how to carry this out a bit better? I don't know how to output sound to a particular socket in Linux. I think I could figure out how to play it from Windows, though.
 
Old 04-17-2003, 04:23 PM   #22
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
It would take some development, or probably existing stuff (like make /dev/dsp an alias that pipes to a port, etc). In xmms output plugin, you create your own to send to port instead of the sound driver (I think there are plugins to do this available at xmms.org), then at the client end you grap the port and | /dev/dsp. I haven't done this, per se, however, I have helped people mount to play xmms over a network, tied into their stereo. The real point I was trying to make is that SSH can redirect any port remotely to any port locally, it doesn 't have to be 5901, 5902, etc.

RO
 
Old 04-17-2003, 04:32 PM   #23
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
guage73, here is an icecast plugin for XMMS. Redirect the port you want through SSH to the listenting client.

RO

http://star.arm.ac.uk/~spm/software/liveice.html
 
Old 04-17-2003, 06:04 PM   #24
azornoz
Member
 
Registered: Apr 2003
Posts: 52

Rep: Reputation: 15
hi RolledOat
I've been reading the vnc faqs and trying to load the session manager. I could not get the icons or panel.
I've posted that in a new thread called Gnome and VNC. I thought it'd be better to talk about VNC overyonder not here because of the title: SSH ...
Thanks for the info. I got no errors but think is the window manager the source of the problem.
 
Old 04-25-2003, 08:44 AM   #25
JustinBee
LQ Newbie
 
Registered: Apr 2003
Location: Central NY
Distribution: Redhat 8.0
Posts: 8

Rep: Reputation: 0
Talking VNC.......Yet another Question

I have installed VNC on my Linux 8.0 box, and I can access it from My Windows XP computer, but I am getting just a text mode screen. Also, how to I have vncserver load automatically on system startup?

 
Old 04-25-2003, 09:41 AM   #26
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
I am not sure what you mean by text screen mode? If you look in your ~.vnc directory, what does your xstartup look like. Here is the one that I have on my machine. I installed VNC during the initial install, so it might be different than a post install. If you see twmrc, then I can see why it is less than stellar.

#!/bin/sh

# Red Hat Linux VNC session startup script
exec /etc/X11/xinit/xinitrc

If you want it to start at root on startup, then you can put a call to the vnc server start /etc/rc.d/rc.local . This is the last script run on boot. If you want it for individual users after logging in, then I would try putting it into .bashrc in the specific users home directory. Not really supposed to go in there, but I don't know any other way to start a process for an individual user. Anyone else have idea's?

RO
 
Old 04-26-2003, 11:35 AM   #27
JustinBee
LQ Newbie
 
Registered: Apr 2003
Location: Central NY
Distribution: Redhat 8.0
Posts: 8

Rep: Reputation: 0
By text screen mode, I mean that when I successfully connect to the Linux machine, it look as if I am running a terminal, or when the Linux box boots I login in via text only, not the GUI.
 
Old 04-26-2003, 11:36 AM   #28
JustinBee
LQ Newbie
 
Registered: Apr 2003
Location: Central NY
Distribution: Redhat 8.0
Posts: 8

Rep: Reputation: 0
By the way, I am trying to acconplish using VNC to connect to the Linux box, and use the KDE interface as if I was sitting there.
 
  


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
ssh solaris xwindows simquest Linux - Software 1 07-10-2009 12:08 PM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
XWindows over SSH w33k Linux - Networking 2 08-23-2004 08:58 AM
xwindows in ssh session ravneetsoin Linux - Software 2 08-12-2004 04:59 PM
Set up Xwindows on Redhat over SSH jdruin Linux - Newbie 2 08-04-2003 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:17 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
Open Source Consulting | Domain Registration