Results 1 to 9 of 9
Hi,
Pretty new to Ubuntu. Finding it great but can't get remote desktop or file sharing happening properly between my (wired) Ubuntu & Windows machines. Hoping someone can help me??
...
- 09-22-2009 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 5
Ubuntu/Windows network & remote desktop probs??
Hi,
Pretty new to Ubuntu. Finding it great but can't get remote desktop or file sharing happening properly between my (wired) Ubuntu & Windows machines. Hoping someone can help me??
I can file share from Ubuntu, viewing & copying files from and to Windows, but from the Windows computer I can't see a connection at all.
I got the remote desktop working, in order to use my Windows machine thru this one, but for no apparent reason, it's not working now & says 'connection closed' in the remote desktop viewer. When I got it working, I tested it by restarting the Windows machine a couple of times & found it still worked. I think it was when I shut down this Ubuntu machine that I couldn't get it to work again, so thinking the prob is with this one.
I need the remote desktop because I occasionally need a Windows program, but only have one screen, keyboard, etc.
- 09-22-2009 #2Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
For sharing files off your Ubuntu machine, you need to set up Samba server.
https://help.ubuntu.com/community/SettingUpSamba
For remote desktop, there are a few methods; VNC, NX, and RDP (yes Linux can do it). The most common way of sharing desktops accross different platforms is VNC (Virtual Network Computing). The machine who's desktop you're sharing needs a VNC server, while the machine controlling the remote desktop needs the client.
In Synaptic Package Manager, do a search for vnc. You'll find you have several options. I haven't tested them all, so just pick one the looks like it'll do the job for you.
Useful link for the Windows computer(s): Download TightVNC
- 09-22-2009 #3Linux Newbie
- Join Date
- Jul 2005
- Location
- Australia (Down Under)
- Posts
- 141
I believe that with, file sharing linux to Windows you need to use samba (at least thats how ive always done it) and in regards to your remote desktop, try loading a session with the following code:
if this fails or when it crashes it should give you some info as to why in the terminal you used to open the connectionCode:rdesktop -f your-computer-name-here
note the method for remote desktop i have mentioned is to go linux to windows, the one above my post is to get your linux desktop from windows
Hope that helpsLast edited by crazy01; 09-22-2009 at 05:39 AM.
Linux is the OS of tomorrow, Here today!!
- 09-22-2009 #4Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
Another solution might be a KVM switch, or you can try a VM (e.g. VirtualBox). Also, simple Windows programs can be run on Linux via WINE.I need the remote desktop because I occasionally need a Windows program, but only have one screen, keyboard, etc.
Yep, if the Windows machine is the server and the Linux machine is the client, you just might be able to make that work. rdesktop uses the Windows native RDP interface.rdesktop -f your-computer-name-here
- 09-22-2009 #5Just Joined!
- Join Date
- Sep 2009
- Posts
- 5
Sorry, didn't think to elaborate on all that, as it has worked before, so gathered you'd know I had the required software.
regarding the rdesktop -f instrucs below, when I entered this with the computer's name(that I gave it) it came up with 'Error: getaddrinfo: Name or service not known' and when I tried it with the other computer's IP address instead of name it came back with 'Error: unable to connect' . The second one is what I've been getting when trying to connect from inside the Remote Desktop Viewer.
- 09-22-2009 #6Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
NETBIOS names are often delayed if they work at all. You're usually best off to just use the IP numbers, unless you specified the names in the /etc/hosts file.Error: getaddrinfo: Name or service not known'
There are various things that can do this; generally it's security related (either Windows settings or Firewall).I tried it with the other computer's IP address instead of name it came back with 'Error: unable to connect' .
Turn on Remote Desktop in Windows 7 or Vista :: the How-To Geek
Huh... I just learned something... "Home editions do not have remote desktop." ... That's probably actually meaning remote access to the RDP interface, since they couldn't make RDP entirely non-existent and still have most Windows programs work.
If you're running Vista home, you might be best off using VNC anyway. :shrug:
- 09-23-2009 #7Just Joined!
- Join Date
- Sep 2009
- Posts
- 1
mysterious public key forwarding issue
Hi folks,
I'm testing on Ubuntu 8.04 (Hardy Heron).
I've set up 3 VM Servers. Say we name them A, B and C.
Sorry, for posting in this thread, but I'm restricted and not allowed to open a new thread for this issue.
Preparation
I log on at Server B, using password authentication.
- Create a key-pair:
ssh-keygen -t rsa -f .ssh/identity - publish the public key to the servers A and C
cat .ssh/identity.pub | ssh hohe@A 'cat >> ~/.ssh/authorized_keys'
cat .ssh/identity.pub | ssh hohe@C 'cat >> ~/.ssh/authorized_keys' - then I change the sshd_config of C to following; then reboot
PasswordAuthentication no
Test
hohe@B:~$ ssh -A hohe@A "ssh hohe@C 'echo success'"
Enter passphrase for key '/home/hohe/.ssh/identity':
Permission denied (publickey).
hohe@B:~$ ssh -A hohe@C "ssh hohe@A 'echo success'"
Enter passphrase for key '/home/hohe/.ssh/identity':
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
hohe@B:~$ ssh hohe@A 'echo success'
Enter passphrase for key '/home/hohe/.ssh/identity':
success
hohe@B:~$ ssh hohe@A 'echo success'
Enter passphrase for key '/home/hohe/.ssh/identity':
success
Question
Why is the public-key forwarding (ssh -A) not working?
How can I debug it? (I din't find any /var/log/security).
hohe@B:~$ ssh -V
OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007
- 09-23-2009 #8Just Joined!
- Join Date
- Sep 2009
- Posts
- 5
I have WinXP Professional on the other machine. I have the Firewall disabled. I have the relevant folders clicked for sharing, which I can do. But can't share the other way. It actually brings up a folder tree for this machine, but it's out of date or doesn't include everything!??
I'm sure it's all turned on correctly in Windows. It also worked perfectly well when I was remoting Win to Win. What specifics do I need to check, aside from the remote desktop & firewall?Turn on Remote Desktop in Windows 7 or Vista :: the How-To Geek
- 09-24-2009 #9Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
1) "-f" isn't necessary, unless you prefer fullscreen mode.
2) check for a typo, like a wrong number or a "," instead of a "." in the IP address.
3) If you have the firewall set up on the Linux machine, make sure outgoing RDP connections aen't being blocked.
4) try using the -4 option.
I have no idea otherwise. If you have made a sucessful connection from a different computer, it would seem to imply that the error is on the Linux client. Unfortunately I don't have an XP machine handy to play around with here to try and recreate your problem. I have used VNC extensively in the past and used NX for graphical remote administration. RDP is not something I have much experience with.


Reply With Quote
