Headless X Server Linux


Recommended Posts

If you want to use it for administration and other purposes, I suggest you familiarize yourself with FreeNX.

freenx.berlios.de

You can acquire the client to use with FreeNX for Windows and Linux from:

www.nomachine.com

This way you can 'skip' the headless issues (There are some with different applications).

Since when is it possible to see a "normal X session" over SSH via X forwarding? You don't need a framebuffer to do that. Just install X on the server, enable X forwarding, and then SSH over. You'll be able to run X applications, such as firefox, not an X session (such as GDM).

Ok I think I understand what needs to be done but the problem is I can't get the X server to run in the first place so forwarding and all that is secondary. Each time I try runnin the X server with startx it exits with the following error

Fatal server error:

xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)

Any help?

  Vlad said:

Since when is it possible to see a "normal X session" over SSH via X forwarding? You don't need a framebuffer to do that. Just install X on the server, enable X forwarding, and then SSH over. You'll be able to run X applications, such as firefox, not an X session (such as GDM).

No, it's not possible to see a "normal X session" via X forwarding, but VNC can be used to do this. I've done this many times. You need x11vnc and you forward the VNC connection over SSH, quite easy.

To the OP, this is very easy. You need Xvfb (X virtual framebuffer). This server creates a framebuffer in memory to which it renders. Here are the steps.

1. Launch the X server using the following command on the server:

  Quote
Xvfb :1 -screen 0 800x600x16 -ac

This will create a X server with a 800x600 screen on display :1 and disable access controls. You should probably launch this in the background.

2. Once the server is up, run an application which connects to display :1 The first app you'll probably want to run is a WM. Maybe you'll want to run blackbox with the following command:

  Quote
DISPLAY=:1 blackbox

3. From your client computer, create an SSH connection to the server, tunneling port 5900 (VNC server 0) and run the application x11vnc. The following command can be used from a terminal (bash, csh, etc):

  Quote
ssh -l username -L 5900:localhost:5900 localhost 'x11vnc -localhost -display :1'

4. From your client computer, use a VNC viewer and connect to localhost.

Ok, maybe not so easy, and a bit confusing. But once you done it several time, it makes perfect sense and you realise it's VERY easy.

  • 2 years later...

Hello all!

I needed to do exactly what described in the previous post but, as soon as I run the command:

Xvfb :1 -screen 0 800x600x16 -ac

I receive the following error, which I really have no clue on how to solve (also googled a lot, but not able to find any solution):

# Xvfb :1 -screen 0 800x600x16 -ac

(EE) config/hal: NewInputDeviceRequest failed

(EE) config/hal: NewInputDeviceRequest failed

(EE) config/hal: NewInputDeviceRequest failed

(EE) config/hal: NewInputDeviceRequest failed

(EE) config/hal: NewInputDeviceRequest failed

Any hints?

Many thanks!

  MrA said:
No, it's not possible to see a "normal X session" via X forwarding, but VNC can be used to do this. I've done this many times. You need x11vnc and you forward the VNC connection over SSH, quite easy.

To the OP, this is very easy. You need Xvfb (X virtual framebuffer). This server creates a framebuffer in memory to which it renders. Here are the steps.

1. Launch the X server using the following command on the server:

This will create a X server with a 800x600 screen on display :1 and disable access controls. You should probably launch this in the background.

2. Once the server is up, run an application which connects to display :1 The first app you'll probably want to run is a WM. Maybe you'll want to run blackbox with the following command:

3. From your client computer, create an SSH connection to the server, tunneling port 5900 (VNC server 0) and run the application x11vnc. The following command can be used from a terminal (bash, csh, etc):

4. From your client computer, use a VNC viewer and connect to localhost.

Ok, maybe not so easy, and a bit confusing. But once you done it several time, it makes perfect sense and you realise it's VERY easy.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Surface Copilot+ PCs coming to classrooms from July 22, turbocharged with on-device AI by Paul Hill Microsoft has announced that it’s launching the new Surface Pro 12-inch and Surface Laptop 13-inch models specifically for education customers from July 22. The Redmond giant said that these devices are being launched as a direct response to feedback from educators who want practicality and ease of use in their diverse classrooms. These are both Copilot+ PCs so teachers and students will be able to leverage the latest AI features thanks to the dedicated Neural Processing Units (NPUs) that allow for on-device AI. The on-device AI, aside from delivering well-known features like Recall, will enable new education features such as a new app Microsoft is working on called Microsoft Learning Zone. Microsoft Learning Zone will allow teachers to create personalized lessons by adapting content from trusted sources like OpenStax, generating interactive games with Kahoot, and tracking students progress. Microsoft expects this to help teachers save time and deliver a more flexible and engaging classroom. Another AI feature that will be available is Click to Do. This lets students highlight text or images and get contextual help. It can be used to summarize a paragraph or explain a graph. To activate it, students can press the Windows key and click. This feature runs entirely on device so inputs to the AI are secure and you don’t need to ever worry about third-parties seeing. Finally, these devices will also have accessibility features such as Voice Access which lets you navigate with speech and Live Captions which provide real-time subtitles and translations for spoken content. These make the devices more inclusive for students with disabilities. Regarding security, these laptops come with the Microsoft Pluton security chip directly integrated into the processor for protecting sensitive data. It can protect data such as passwords and sign-ins, even if your device is stolen. Thanks to automatic Windows Updates, schools never need to worry about falling behind on updates either. With the impending demise of Windows 10 in mid-October, these Surface devices arrive just in time for schools looking for somewhere to upgrade to. Aside from AI features and security, Microsoft is also pushing other key features including easy repair with replacement components at the Microsoft Store and iFixit, their lightweight design and all-day battery life making them ideal for carrying and surviving the school day, and their compatibility with popular education apps such as TestNav, Google Classroom, Minecraft Education, and Adobe Express.
    • Taras Buria, do you think you could write more about Windows Vista? It is always such a pleasure — quite a pleasure — to see it mentioned in the title of a news article. What about an editorial?
  • Recent Achievements

    • Rising Star
      Phillip0web went up a rank
      Rising Star
    • One Month Later
      Epaminombas earned a badge
      One Month Later
    • One Year In
      Bert Fershner earned a badge
      One Year In
    • Reacting Well
      ChrisOdinUK earned a badge
      Reacting Well
    • One Year In
      Steviant earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      545
    2. 2
      ATLien_0
      205
    3. 3
      +FloatingFatMan
      170
    4. 4
      Michael Scrip
      149
    5. 5
      Som
      131
  • Tell a friend

    Love Neowin? Tell a friend!