Screen sharing from OS X to Linux: No screen appears on Mac.

I am trying to connect from my MacBook to a Linux machine on the same subnet to see the Linux screen on the Mac. I press the "Share Screen" button in Finder under the remote desktop icon that appears in the Shared section of the sidebar and the Linux machine instantly tells me that another computer is controlling its screen. However, on the Mac, there is only a dialog box saying "Contacting xxx's remote desktop on yyy" and no remote screen appears.
I have traced the VNC packets (via Wireshark on the Linux box) and output is as below. IP ending in 140 is Linux, 150 is the Mac. Both machines are hardwired to the same switch.
4.707835 192.168.5.140 192.168.5.150 VNC Server protocol version: 003.007
4.708132 192.168.5.150 192.168.5.140 VNC Client protocol version: 003.889
4.708907 192.168.5.140 192.168.5.150 VNC Security types supported
4.709148 192.168.5.150 192.168.5.140 VNC Authentication type selected by client
5.131544 192.168.5.140 192.168.5.150 VNC Authentication result OK
If I try to go from Linux to Mac, the Mac sends its server protocol version then kills the connection.
I can happily share the screen of a Windows XP box on the same LAN via the Microsoft RDP product.
I am new to the Mac, can anyone please help?
Peter.

Greetings,
I have the Apple remote desktop working from the finder, its just as fast as any other vnc package I've tried and more convienient that chicken of the VNC or others as it is available from the finder. The configuration details below also work with chickend of the VNC and vine viewer.
I have a Mac OS 10.5 machine and a Linux centos 5 machine on the same network at home. The Linux machine is headless ie, no monitor, mouse or keyboard and my goal was to get the Apple remote desktop working to the Linux machine so that I could login and get a gnome-session desktop. I ran into the issue you describe and solved it after making the following configuration changes on the CentOS 5 machine.
On the Linux machine it is assumed that all the gnome desktop packages are installed and that you have the vnc-server.i386 package installed from the yum repository. avahi.i386 and avahi-glib.i386 are also installed. xinetd must also be installed from yum if you do not have it. xinetd.i386
I. Enable zeroconf avahi service ie, bonjour so your apple can see the Linux box in the finder.
a) If you can see the Linux machine in the finder, perhaps you already have the avahi daemon configured properly, otherwise edit /etc/avahi/avahi-daemon.conf. Mine looks like this, where mylinux_boxhostname is the actual hostname of my machine and browse-domains is a comma separated list of domains that I use:
[server]
host-name=mylinux_boxhostname
#domain-name=local
browse-domains=local, mydomain
use-ipv4=yes
use-ipv6=yes
#check-response-ttl=no
use-iff-running=yes
enable-dbus=yes
#disallow-other-stacks=no
#allow-point-to-point=no
[wide-area]
enable-wide-area=yes
[publish]
disable-publishing=no
disable-user-service-publishing=no
add-service-cookie=yes
publish-addresses=yes
publish-hinfo=yes
publish-workstation=yes
#publish-dns-servers=192.168.50.1, 192.168.50.2
#publish-resolv-conf-dns-servers=yes
[reflector]
#enable-reflector=no
#reflect-ipv=no
[rlimits]
#rlimit-as=
rlimit-core=0
rlimit-data=4194304
rlimit-fsize=0
rlimit-nofile=30
rlimit-stack=4194304
rlimit-nproc=3
b. Add or edit the file /etc/avahi/services/rfb.service, mine looks like this, note the port setting is 5900, this is the first X display . So the apple remote desktop client will attempt to connect to display on the linux machine. Other possibilites are port 5901, 5902, etc... for different X displays on the Linux machine:
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>rfb.tcp</type>
<port>5900</port>
<txt-record>No User Authent0</txt-record>
</service>
</service-group>
c). Restart the avahi daemon on the linux box:
# service avahi-daemon restart
II. Configure the gdm gnome display daemon
a) My Linux machine is headless and does not have a keyboard or mouse. So, I disable display in run level 5 so that I may use VNC to connect to port 5900. Edit /etc/gdm/custom.conf. Mine looks like this:
[daemon]
RemoteGreeter=/usr/libexec/gdmgreeter
[security]
AllowRemoteRoot=false
[xdmcp]
Enable=true
[gui]
[greeter]
IncludeAll=true
[chooser]
[debug ]
# Note that to disable servers defined in the defaults.conf file (such as
# 0=Standard, you must put a line in this file that says 0=inactive, as
# described in the Configuration section of the GDM documentation.
[servers]
0=inactive
b) Restart X and gdm
# init 3
wait a minute or two and then
# init 5
III. Configure an Xvnc to start on port 5900, display from xinetd.
I'm using two monitors on my Mac, one monitor has a resolution of 1440x900 and I'm using it to display the remote Linux desktop.
a) The apple VNC seems to want a VNC password so I configure the VNC server on the Linux mahchine to use one, you can save this password in your keychain when you connect for the first time with the Apple Remote desktop client. Configure a vnc password owned by the user nobody on the Linux machine:
# vncpasswd /etc/vncpasswd
Password:
Verify:
# chown nobody:nobody /etc/vncpasswd
b) Create a vnc service under /etc/xinetd.d on the linux machine by adding the file named /etc/xinetd.d/vnc. Mine looks like this, note the vncpasswd location, nobody user, and screen resolution:
service vnc
disable = no
socket_type = stream
protocol = tcp
group = tty
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -geometry 1440x900 -depth 16 -once -fp unix/:7100 passwordFile=/etc/vncpasswd
c) Add the following to the end of your /etc/services file, mine looks like this:
# Local services
vnc 5900/tcp # vnc server
d) Restart xinetd
# service xinetd restart
III. Setup your user environment on the Linux machine.
a) we are logging in with the username foo whom has a password. User foo has a home directory at /home/foo. His .bash_profile is to his liking and he wants to have a gnome session.
b) Examine /home/foo/.vnc/xstartup. Make sure the file is executable. Mine looks like this:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
gnome-session
c. Make the xtartup file executable:
$ chmod +x /home/foo/.vnc/xstartup
IV. Login using the Apple RDP from the finder as the user foo.
a) Make sure the SELinux firewall on your linux machine is not going to block port 5900. I disabled my SELinux firewall as all my machines are behind a NAT router with a firewall running.
b) If the avahi daemon is configured and working properly, you should see the hostname of your linux box in the finder window. Highlight it and you should see a "Share Screen" button. Push it. You will be prompted for the vnc password that we set on the Linux machine using vncpasswd. Enter the password and you should be able to save it in the keychain. Subseqent logins will not require you to enter it manually again unless it gets changed.
b) If xinetd and gdm above were configured properly, you should now have a gdmlogin screen at the resolution specified, mine is 1440x900. Login using the foo login and password. You should get a gnome-session desktop.
c) In case of trouble, try telneting from a term window on the mac to port 5900 on the Linux box. If you get Connection Refused, double check your xinetd configuration and/or any firewall ipfilters running on the Linux box.
Run netstat -an|grep 5900 on the Linux box. If you see a port LISTENING, then you have a firewall problem between the Mac and Linux box, xinetd is okay.
I have this working perfectly and use it to work from my Mac to the headless Linux machine every day.
regards
John Rushford
[email protected]

Similar Messages

  • Log in screen appear after Mac goes to sleep even if screen lock is turned off.

    Log in screen appear after Mac goes to sleep even if screen lock is turned off. This happens usually but not always. Using Yosemite, 2 year old iMac. This has only started to occur recently and it happened in Mavericks also.

    Howdy stkh,
    You may want to check the General pane of the Security & Privacy System preferences to make sure that the Require password...after sleep or screen saver begins is not checked. See this article for reference -
    OS X Yosemite: General pane of Security & Privacy preferences
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Airport Extreme is allowing access to screen sharing, file sharing from external IP addresses (some from China, Canada etc)

    How to get control over the ports/port forwarding etc in Airport Extreme?
    How to make AE drop packets to certain ports from external ports.  Or create whitelist/blacklists?
    I figured out where the MAC filtering is!  (It is inside the Timed Access Control).  I wish it had a list of connected device and allowed me to select, name and add them.
    I am getting requests from Chinese IP to the screen sharing ports forwarded to my iMac.  Had requests to other ports as well.  There was one IP address from CANADA too.
    I want to open file sharing for local use only.

    Why is Airport Extreme forwarding requests for screen sharing from external ip addresses to my imac?  I don't have a public address, nor use dynamic dns service, and I have removed the server app (at least I think I have, but Apple Store doesn't think so).

  • Screen Sharing from OS X Lion to OS X 10.6 Server

    Hi, I bought a new SSD Drive, so I decided to initialize my previous OS X Lion installation (on August I made an update from SL).
    Scenario:
    i'm trying to access from my MacBook Pro to the MacMini Server via the Finder built-in "Share screen" button on the right side (the button that appears if I select the server on the shared sidebar).
    If I try to access from this button, the connection is extremely slow: 1 or 2 minutes, then the screen appears and everything goes fine.
    If I try accessing via vnc (vnc://192.168.xxx.xxx) everything is faster, it connects immediately.
    My account on the MacBook Pro is connected to the Mac OS X SL Server by nameoftheserver.local
    Maybe an LDAP problem? Or what else... I really don't know how to solve it.
    Any type of help is really appreciated.
    Tnx in advance.

    Hi, I bought a new SSD Drive, so I decided to initialize my previous OS X Lion installation (on August I made an update from SL).
    Scenario:
    i'm trying to access from my MacBook Pro to the MacMini Server via the Finder built-in "Share screen" button on the right side (the button that appears if I select the server on the shared sidebar).
    If I try to access from this button, the connection is extremely slow: 1 or 2 minutes, then the screen appears and everything goes fine.
    If I try accessing via vnc (vnc://192.168.xxx.xxx) everything is faster, it connects immediately.
    My account on the MacBook Pro is connected to the Mac OS X SL Server by nameoftheserver.local
    Maybe an LDAP problem? Or what else... I really don't know how to solve it.
    Any type of help is really appreciated.
    Tnx in advance.

  • Screen sharing from Tiger

    Is it possible connect to another mac and gain access to its screen from a mac running tiger? I am trying to connect to my mac laptop that is running Leopard. I can get my laptop to screen share with this tiger computer, but not the other way. any suggestions?

    Actually, you don't even need that vine server on your Leopard machine, or on your Tiger machine (I'm a little unclear who is who on your working configuration and who is who on your not-working configuration).
    If you want to use your Tiger machine (VNC client) to access the Leopard machine (VNC server), then on the Leopard machine, go to Sys Prefs > Sharing, check the Screen Sharing checkbox, and click on the "Computer settings..." button. In the resulting popup, check the "VNC viewers may control screen with password" checkbox and enter the password that you will require the Tiger client to use to connect with their VNC client program. I assume you are using CotVNC or JollysFastVNC as the VNC client program on your Tiger machine?
    Now, if I got the direction backwards, here is what you would do to use your Leopard machine (VNC client) to access the Tiger machine (VNC server): On the Tiger machine, go to Sys Prefs > Sharing and check the Apple Remote Desktop checkbox on the Services panel. I think that would do it.
    Now, I, personally, further configure my Tiger machine to allow VNC from other Tigers as well as from Leopard's Screen Sharing program in Leopard, so while I don't think you would have to do the following for Leopard-only clients, if the above isn't working, then try these additional steps:
    First, click on the Tiger (VNC server) Firewall tab in Sys Prefs Sharing. Click "New." There is a pulldown menu in the resulting popup where you can choose "VNC." Choose it. It will "quickfill" the port entry information for you. Save those changes and exit.
    If that still doesn't do it, then return to Sys Prefs > Sharing > Services panel. With the Apple Remote Desktop service checkboxed and highlighted/selected, click on the "Access Privileges" In the top part of the resulting popup, you can grant access privileges by user; fill out as desired. In the bottom part, check the "VNC viewers may control screen with password" checkbox. IF you were allowing VNC access from other Tigers, use the password that you would want VNC clients to use. I think you probably need something in there if you have to do this last step.
    By the way, you know that, in Leopard, you can launch Screen sharing from Finder by doing a ⌘k and typing in "vnc://{name of remote computer goes here}", right? Also, if you haven't already done so, you may find it convenient to drag /System/Library/CoreServices/Screen Sharing.app onto your dock and/or make an alias of it in your Applications folder.

  • Enable Screen Sharing from command line

    I inadvertently removed screen sharing from my mac mini server firewall but I can still ssh into it. How can I enable either screen sharing or remote management via ARD?
    Thanks so much,
    J.

    Sorry for the imperfect instructions, I was doing it from memory.
    First, set up secure ssh credentials by doing the public/private RSA key exchange.
    Based on someone else's suggestion I found on the web, I created an "alias" command in my .tcshrc file. I just launch a terminal session and use my alias I've created, followed by my ssh credentials on the remote machine, and the alias/script does the rest.
    Begin fragmment from my .tcshrc....
    echo " myvnc ACCOUNTNAME = connect to ACCOUNTNAME via VNC"
    alias myvnc 'ssh -f -L 1202:localhost:5900 \!:1 sleep 10 ; open vnc://localhost:1202'
    ... End fragment.
    So when I want to vnc I just type
    $ myvnc [email protected]
    In fact, after a while, I got tired of reading all the server logs of people trying to hack my server over port 22 (ssh standard port). Once you have the alias command above working for you, you can pick a different port on your server's firewall, and forward it to port 22 inside the firewall. That way, hackers that scan your port 22 won't get any response.
    Once you do this, you can revise the alias in your .tcshrc to also include the "-p" ssh argument, so hep save you the trouble of remembering the ssh port you have moved your server conversation to. For example, it you decided to close port 22 at the firewall, and forward port 2222 (just an arbitrary number I picked) to your server's port 22 inside the fire wall, your alias line would look like this...
    alias myvnc 'ssh -p 2222 -f -L 1202:localhost:5900 \!:1 sleep 10 ; open vnc://localhost:1202'

  • Screen Sharing from 10.6 client to 10.5 server looks cruddy

    Any idea why Screen Sharing from my 10.5.8 OS X Server (XServe G5) to my 10.6.5 MacBook Air would look like crap (pixellated)?
    Here's what it looks like. It also looks like this from my Mac Pro (10.6.5 also).
    http://farm6.static.flickr.com/5162/52804708313d6e6373cco.png
    It also looks like this in ARD "Observe" or "Control" mode.

    Fixed it. Turns out it was the video card (more likely the video card driver). I swapped a new vidcard in there and it's good to go.
    This was a cluster node, so it didn't have a stock video card.

  • Why is screen sharing from ML to Lion wacky?

    Things are really weird. When I use my MBP retina to control a high-res (1680x1050) MBP (mid-2010), the screen sharing screen doesn't fit properly, and I can't click on the remote system menu. If my MBP retina is connected to a 27" LED Cinema display (as sole display) to control the same high-res MBP, the remote MBP appears small in a corner of the screen sharing window, and I can't click on the remote system menu.
    Basically, screen sharing is unusable. Any ideas on how to fix this?

    I'm having the same problem.
    Macbook Pro: OSX 10.9.1 / Remote Desktop Client 3.7.1 with remote login and screen sharing turned on
    Mac Pro: OSX 10.9.1 / Remote Desktop Client 3.7.1 with remote login and screen sharing turned on
    I am able to create access via mac pro to laptop and visa versa on the finder level and access all of my files but the screen sharing still will not work. Even when I'm logged in successfully on the finder level, the screen share still does not recognize the password and gives the error: "Authentication failed to "xxxx". Please verify you have entered the correct name and password".
    I would expect that if it were a network issue, that I wouldn't be able to connect at all and it wouldn't be denying access based on an "incorrect" user or password.
    Wish this could get fixed. I used it quite often prior to the Mavericks install.

  • Can photos shared from my computer be displayed at their original pixel size, rather than resized to maximum fit on my TV?

    I am having a problem with my Samsung TV hooked to my AppleTV and viewing images shared from my MacPro.  The sharpness of the viewed images is less than the original image.  I  am careful to make sure the originals are smaller than 1900 pixels wide, to avoid resizing.  However, even smaller images are automatically resized fully to fill the screen, and I feel that somehow there is a slight but  noticeable loss in quality in the process.  Can I control how Apple TV presents images to my TV  to prevent resizing?  ( I also have tried a Western Digital Live TV module which also shares with my MacPro, and it does allow me to prevent resizing, but it doesn't seem to help)  Is it possible that my new TV (Smart TV) is inherently messing up the images slightly? (sorry, this is a non-Mac question)
    Eilert

    Hello Winston.
    I was afraid of that, that images would be automatically resized by AppleTV (at least, that is what I think you are saying).  In general, resizing of any photo will tend to reduce sharpness a bit, so at times it would be preferred to not do so.  No luck, with Apple TV, it seems.  I also suspect that there is something about the tV firmware which is contributing to the problem, and I have contacted Samsung, but no specific info on that yet.  Thanks for the response.

  • Internet Sharing from Macbook Pro to iPad???

    Trying to get my wife's iPad to connect to the internet in a hotel that has wired high speed internet but no wifi.
    My MacBook Pro connects just fine. So I turned on Internet Sharing for both Bluetooth and wifi (with WEP password for wifi).
    The iPad connects to the Mac by wifi but says it has no internet connection.
    With Bluetooth, it pairs OK. The Mac sets it up as serial port sharing (no other choice offered, but within that there is a choice of modem or RS232 protocol). But when I try to connect it connects momentarily then disconnects right away.
    Any suggestions on how to let the iPad get at the internet in this situation?

    I am still not succeeding.
    I just upgraded to a new Macbook Pro with Mountain Lion. Testing at home, where there are no issues around hotel ISP limitations and I feel pretty safe originating an open wifi network for a few minutes.
    Set up Internet Sharing from Ethernet to Wifi. Used the Create Network option for wifi in the menu bar to set up an open unprotected wifi network whose name is the name of my Mac. I can choose any wifi channel from 1 to 11; it makes no difference.
    I can see that network from my wife's iPad, and can connect to it no problem. But as in all similar tests since Snow Leopard came out, Safari in the iPad can't open any web sites; it says it is not connected to the internet. I can also connect to the MBP wifi from my iPhone, but if I select it, the 3G symbol still shows at the top of the screen because the phone cannot find an internet connection over that wifi.
    Clearly some other people are managing to do what I cannot. Quite possibly some piece of third party software on my Mac is interfering. Little Snitch, for example, though it is currently turned off.

  • Messages not working while using Internet sharing from my iMac ... Any troubleshooting tips/approaches ?

    I am connecting to the internet using the Internet Sharing from my iMac ...
    The trouble is the messages in the Messages app are not sent when I am connected through my iMac ... When I key in a message and hit send a progress bar appears fills up till 90% and just gets stuck there and after a while the red exclamation mark stating the message was not sent appears ... Now if I connect through my wi-fi router or thether through my phone it works fine ... I can send / recieve messages ...
    Similar points to note - Today when I tried to make an App Purchase - The security info screen ( new additon - http://isource.com/2012/04/11/iphone-app-store-security-info-alert/ ) popped up but I got a blank screen for the securtiy questions screen ... It was not loading the screen ... Some games the game center invite does not work through my Internet sharing (tried in MetalStorm) ... but works fine thorough wi-fi or thether ...
    What could be the problem with my iMac s sharing? Any suggestions would be really useful ///  Thanx in advance
    I am running Lion ... and I have updated to the latest Airport software ...
    Only thing I tried was changing the DNS ... but that s not related right ?

    Powerline adapters use your home powerlines (mains a/c) to connect your devices via ethernet to your modem, they're easy to set up and the they TOTALLY fixed my ATV problem, the problem seems to be with the wireless. I've been trawling through apple discussions, and did found a workaround to my problem https://discussions.apple.com/thread/4222883?start=0&tstart=0
    but its just a workaround :/

  • Executing JRE from within C in Linux

    Hello,
    I tried to execute the JRE and give it some arguments (In fact my Java application) from within C. I used the library function
    execl(...) to make this.
    Unfortunately I got error "Could not load JRE" and some
    shared object error.
    Anyone any ideas how I can execute my Java Application from within C in Linux?
    thx Fatih

    Look up Janava Native Interface (JNI), and specifically the invocation interface.

  • OneDrive for Business/SharePoint API - GET folders 'shared with me' if shared from a group/s.

    Does anybody have any ideas of how to get the list of folders shared with a user from a group?
    I can already retrieve files shared with a user from another user with:
    https://{tenant}-my.sharepoint.com/_api/search/query?querytext='(SharedWithUsersOWSUSER: {account_name} AND contentclass:STS_ListItem_MySiteDocumentLibrary)'
    but this end point does not show any of the files if they were shared from a group, is this possible with the REST API?
    Thanks for any help in advance.

    Hi SpringComp,
    You can change the root path for libraries you sync to your computer, though you can do this only if you’re not currently syncing any libraries. If you’re already syncing at least one library and you want to change the path, you must first
    stop syncing all libraries. Then, the first time you run the OneDrive for Business wizard to sync a library to your computer, you’ll see an option to change the location.
    More information, please refer to the link:
    http://office.microsoft.com/en-001/support/change-the-location-where-you-sync-sharepoint-libraries-on-your-computer-HA102893480.aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • I want to uninstall Acrobat reader. I got support in the community to access my HD and to send to trash the internet plugs in for PDF viewer, but when I try to download a PDF from internet a black screen appears and preview doesn't open

    I want to uninstall Acrobat reader. I got support in the community to access my HD and to send to trash the internet plugs in for PDF viewer, but when I try to download a PDF from internet a black screen appears and preview doesn't open

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • HT202213 can you setup home sharing from your iPad ?

    can you setup home sharing from your iPad ?

    You can set Home sharing on the iPad by adding your Apple ID in the appropriate area.
    Settings->Music->Home Sharing
    But you still need a computer with iTunes from which to share the library.  You can't share libraries between iDevices.

Maybe you are looking for