VNC :0 - anyone got this working?

Discussion in 'Linux' started by rakh1, Oct 29, 2008.

  1. rakh1

    rakh1

    Joined:
    Oct 22, 2008
    Messages:
    28
    Likes Received:
    0
    Hi all,

    Has anyone got VNC to run on :0 so that I can see the currently on-line user working?
    The standard vncserver distribution works great for :1 and above but I cannot get it working with :0.
    I need VNC as I have windows clients that need to see the AA1 desktop/consol.
    I looked briefly at x0vncserver but cannot get it to run.

    Anyone know of anything that will help?

    Rich
     
    rakh1, Oct 29, 2008
    #1
  2. rakh1

    Magnanimous

    Joined:
    Oct 20, 2008
    Messages:
    10
    Likes Received:
    0
    I installed it but sadly failed as well, I assume it's an incompatibility.
     
    Magnanimous, Nov 1, 2008
    #2
  3. rakh1

    rakh1

    Joined:
    Oct 22, 2008
    Messages:
    28
    Likes Received:
    0
    My hopes at the moment are with x0vncserver. But, as a relative noob I cannot figure out how to download/install. If anyone reading this facies taking 10 mins and seeing if it works on theirs and then letting me know I would be etternally grateful!

    R
     
    rakh1, Nov 1, 2008
    #3
  4. rakh1

    moo_oose

    Joined:
    Nov 2, 2008
    Messages:
    4
    Likes Received:
    0
    Hi,

    I've VNC working on :0, so I can see everything on the Aspire One desktop from my VNC Viewer. I followed the instructions in this post:
    http://forums.fedoraforum.org/showpost. ... ostcount=2

    All I had to do was install the VNC Server from yum, create a password from vncpasswd, then edit my /etc/X11/xorg.conf to be:
    Code:
    # Xorg configuration created by system-config-display
    Section "ServerFlags"
    	Option "DontZap" "yes"
    	Option "DontVTSwitch" "yes"
    EndSection
    
    Section "ServerLayout"
    	Identifier     "Default Layout"
    	Screen      0  "Screen0" 0 0
    	InputDevice    "Mouse0" "CorePointer"
    	InputDevice    "Synaptics Mouse" "AlwaysCore"
    	InputDevice    "Keyboard0" "CoreKeyboard"
    # vnc input devices
    InputDevice "vncMouse" "ExtraPointer"
    InputDevice "vncKeyboard" "ExtraKeyboard"
    EndSection
    
    Section "InputDevice"
    	Identifier  "Keyboard0"
    	Driver      "kbd"
    	Option	    "XkbModel" "pc105"
            Option      "XkbLayout" "gb,us(euro)"
            Option      "XkbOptions" "grp:alt_shift_toggle"
    EndSection
    
    Section "InputDevice"
    	Identifier "Synaptics Mouse"
            Driver     "synaptics"
            Option     "Device" "/dev/psaux"
            Option     "Protocol" "auto-dev"
    	Option	   "LeftEdge"  "1700"
      	Option	"RightEdge"     "5300"
      	Option	"TopEdge"       "1700"
      	Option	"BottomEdge"    "4200"
      	Option	"FingerLow"	"25"
      	Option	"FingerHigh"	"30"
      	Option	"MaxTapTime"	"180"
      	Option	"MaxTapMove"	"220"
      	Option	"VertScrollDelta" "100"
      	Option	"MinSpeed"	"0.09"
      	Option	"MaxSpeed"	"0.18"
      	Option	"AccelFactor"	"0.0015"
      	Option	"SHMConfig"	"on"
    EndSection
    
    Section "InputDevice"
    	Identifier  "Mouse0"
    	Driver      "mouse"
    	Option	    "Protocol" "IMPS/2"
    	Option	    "Device" "/dev/input/mice"
    	Option	    "ZAxisMapping" "4 5"
    	Option	    "Emulate3Buttons" "no"
    EndSection
    
    Section "Monitor"
    	Identifier  "Monitor0"
    	Modeline  "1024x600" 48.96 1024 1064 1168 1312 600 601 604 622 -HSync +VSync
    #	Option	"Above"	"Monitor1"
    EndSection
    
    Section "Device"
    	Identifier  "Videocard0"
    	Driver      "intel"
    #	Option      "monitor-LVDS" "Monitor0"
    #	Option	    "monitor-VGA" "Monitor1"
    	Option	    "Clone" "true"
    	Option	"MonitorLayout"	"LVDS,VGA"
    	BusID	"PCI:0:2:0"
    #	Screen	0
    EndSection
    
    Section "Screen"
    	Identifier "Screen0"
    	Device     "Videocard0"
    	Monitor	    "Monitor0"
    	DefaultDepth     24
    	SubSection "Display"
    		Viewport   0 0
    		Depth     24
    		Modes    "1024x600" "800x600" "640x480"
             Virtual 1024 768
    	EndSubSection
    # vnc options - it is a shame that $HOME doesn't work here
    Option "usevnc"
    Option "rfbport" "5900"
    Option "dontdisconnect"
    Option "rfbauth" "/home/user/.vnc/passwd"
    Option "PasswordFile" "/home/user/.vnc/passwd"
    Option "useraccept" "off"
    EndSection
    
    # vnc keyboard
    Section "InputDevice"
    Identifier "vncKeyboard"
    Driver "rfbkeyb"
    EndSection
    
    # vnc mouse
    Section "InputDevice"
    Identifier "vncMouse"
    Driver "rfbmouse"
    EndSection
    
    # load vnc module
    Section "Module"
    Load "vnc"
    EndSection 
    .... and after a reboot everything was OK!

    Hope this helps someone,


    Paul
     
    moo_oose, Nov 2, 2008
    #4
  5. rakh1

    rakh1

    Joined:
    Oct 22, 2008
    Messages:
    28
    Likes Received:
    0
    Paul,

    Will try next week when I get my hands on the laptop again. If this works I shall kiss your cherry lips and dance till I'm silly (in case anyone doesn't get comedy - this is basically a humerous way of saying I'll be delighted - I'm not realy into kissing stranger's lips etc etc - sorry Paul) - THANKS!!!

    R
     
    rakh1, Nov 3, 2008
    #5
  6. rakh1

    rakh1

    Joined:
    Oct 22, 2008
    Messages:
    28
    Likes Received:
    0
    Paul,

    Forgot to ask - does this auto-start with the machine (as it is linked to X)?
    If not - do you know how to complete this step also?

    R
     
    rakh1, Nov 3, 2008
    #6
  7. rakh1

    moo_oose

    Joined:
    Nov 2, 2008
    Messages:
    4
    Likes Received:
    0
    Hey mate, glad you're happy!

    If I remember correctly, there are no further config steps necessary - it will auto-start. I think this is because the VNC server is loaded as a module into the X11 stuff - so when the windowing system boots up, the VNC server is started up.

    Let me know if this works or not - and don't forget to backup any files before you edit them!

    Best wishes,


    Paul
     
    moo_oose, Nov 4, 2008
    #7
  8. rakh1

    rakh1

    Joined:
    Oct 22, 2008
    Messages:
    28
    Likes Received:
    0
    Hi, all was well for 12 hours and then I got a black screen with an X on startup. At the moment I can only presume the hacks on xorg.conf caused a problem. I've had to restore but will try again and see if it re-occurs.

    Is there a way to set this config up but only start VNC via command line rather than auto-start? That way if it kills X I can still reboot :)

    R
     
    rakh1, Nov 5, 2008
    #8
  9. rakh1

    moo_oose

    Joined:
    Nov 2, 2008
    Messages:
    4
    Likes Received:
    0
    Hi Rich,

    Sorry to hear about that... Did it happen just once or did you get the black screen everytime? BTW, do you have SSH installed so you do command line stuff remotely?

    I did the following to get SSH installed:
    Code:
    sudo yum install  openssh openssh-server openssh-client
    /etc/init.d/sshd start
    
    and I uncommented the sshd line (no. 7) in /etc/rc.d/slim/nowait.sh

    You can then use Putty or similar to login remotely.

    Best regards,


    Paul
     
    moo_oose, Nov 10, 2008
    #9
  10. rakh1

    rakh1

    Joined:
    Oct 22, 2008
    Messages:
    28
    Likes Received:
    0
    Hi Paul,

    Well, so far it appers only to have done it the once. After my rebuild it has been rock solid - so, not so sure what caused it. Hopefully just a glitch :)

    R
     
    rakh1, Nov 10, 2008
    #10
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.