[SOLVED] Linuxmint without monitor

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

[SOLVED] Linuxmint without monitor

Postby aikku61 on Wed Feb 20, 2013 11:11 am

I have been looking for a solution for the following problem for a while to no avail. Neither google nor the search here have offered any relevant solution. Therefore, I would be happy if the community could offer a solution. Is there any way to run the linux mint without a monitor attached (i.e.. headless)? It boots and automatically logs in, however, I could connect only using the command line and ssh. The VNC connection via the Vino-server cannot be established. If I connect the monitor and reboot, I could easily use my VNC connection (or if I reboot with the monitor attached and detach the monitor once the system up and running). It can go to sleep and awake thereafter without any problems. However, a reboot without a monitor kills everthing and once again the monitor needs to be fetched and attached.

I could guess, many might wonder why am I using a desktop without a monitor - just for testing and learning purposes, I would say. Using my laptop / tablets and other desktops, I could easily share the linux's desktop, and therefore I do not want any additional monitor standing there. Ok, many issues could be sorted out by using the command line, however, I mostly find it easier to deal with the desktop.

Nevertheless, I just cannot believe that linux does not allow this. I do it with Win 7, Os X without any problems.

Could you please help if this is doable (without any soldering to fake the computer think that a monitor is attached)?

ps: I tried the solutions offered for earlier Ubuntu versions (like creating a new xorg config file (etc/X11/xorg.conf / disabling KMS for Intel graphics / updating the /etc/default/saned file to say RUN=yes). None of these have worked.
Last edited by aikku61 on Thu Feb 28, 2013 2:24 pm, edited 2 times in total.
aikku61
Level 1
Level 1
 
Posts: 4
Joined: Wed Feb 20, 2013 10:52 am

Linux Mint is funded by ads and donations.
 

Re: Linuxmint without monitor

Postby Orbmiser on Wed Feb 20, 2013 6:01 pm

Did you look into Headless installations?
https://www.google.com/search?as_qdr=y&q=linux+headless+installation+no+monitor
Not sure that is what you are wanting?
.
User avatar
Orbmiser
Level 7
Level 7
 
Posts: 1513
Joined: Thu Oct 18, 2012 5:16 pm
Location: Portland,Oregon

Re: Linuxmint without monitor

Postby aikku61 on Thu Feb 21, 2013 1:57 pm

Thank you Orbmiser for trying to help. I am used to use google, though. There was no solution there, hence I came here.

Maybe I was not able to clarify the problem since this is not my mother tongue. Sorry for that. All I want to do is to run the MINT without monitor, keyboard and mouse. Just with power and the network cable attached. Thereafter, I want to share its desktop remotely via one of the computers already in the same LAN. The mint does not allow any remote desktop connections using VNC if there is not a monitor attached during the boot up. If I connect using the command line (ssh) and try to run the vino-server, I get the ERROR saying the X display cannot be found. If I boot the linuxmint with the monitor attached and thereafter turn off the monitor, I could connect using the remote desktop.

The point is, I do not want any monitor standing there beside the computer, which I keep in the garage.
aikku61
Level 1
Level 1
 
Posts: 4
Joined: Wed Feb 20, 2013 10:52 am

Re: Linuxmint without monitor

Postby DrHu on Thu Feb 21, 2013 2:08 pm

That might not be true of all vnc programs (servers: clients)
https://help.ubuntu.com/community/VNC
https://en.wikipedia.org/wiki/X11vnc
--if that is the vnc you used, it does require a real (physical) monitor on the host system..

remoting..
http://www.mynitor.com/2010/02/07/15-re ... for-linux/

Can't check it , but it may only require edits of the vnc server settings..
http://forums.opensuse.org/english/get- ... ected.html
--I usually don't use vnc, because i find the logout from the vnc clients can kill the host: that probably also depends on the particular vnc server:client application being used
    It is usually a matter of experimentation to find the correct parameters needed for a specific installation..

A vnc server that creates its own internal display mode..
http://linux.about.com/cs/linux101/g/vncserver.htm
    This package provides a fully functional X server, to which a VNC viewer can connect. Note: This server does not support or need a display.
--no need for an X-server:physical monitor
http://www.skullbox.net/vncserver.php
User avatar
DrHu
Level 16
Level 16
 
Posts: 6292
Joined: Wed Jun 17, 2009 8:20 pm

Re: Linuxmint without monitor

Postby eanfrid on Thu Feb 21, 2013 2:25 pm

Usually, headless machines don't start any X session. X always try to autodetect and configure a working display device and if not, it will fail to start. One workaround may be to create a fake monitor section, forcing X to not detect anything and then to start with what is configured.
Code: Select all
sudo su -
mkdir /etc/X11/xorg.conf.d
cd /etc/X11/xorg.conf.d
nano monitor.conf

and enter in this monitor.conf (check man xorg.conf for params and values)
Code: Select all
Section "Monitor"
  Identifier "fake-monitor"
  Option "DPMS" "false"
  DisplaySize 400 300
  (probably some other params)
EndSection
No, Linux is not a Windows clone for free - Before asking any question here...
"Never attribute to malice that which is adequately explained by stupidity." (Hanlon's razor)

Debian GNU/Linux Wheezy 64bit w/custom 3.12 kernel - MATE 1.8
User avatar
eanfrid
Level 6
Level 6
 
Posts: 1203
Joined: Mon Apr 30, 2012 2:49 am
Location: France

Re: Linuxmint without monitor

Postby aikku61 on Wed Feb 27, 2013 3:27 pm

DrHu:

There were really plenty of useful info there. Nevertheless, I could not solve my problem "of not being able to boot into linux mint without monitor and still be able to use its remote desktop." The only possibility seems to be the hardware hack by cheating the system to believe having a monitor attached. However, I find it difficult to achieve. A KVM switch is another possibility, but I could not find a cheap one at the local shop, the cheapest costing over 45€. Just for the sake of having remote connection too much.

Eanfrid:

I tried to use your hack, which did not have any affect on booting at all.

Many thanks to both. Headless mint seems to be not doable. I am very surprised to see that linux mint is not capable of this. Even windows, which I really try to stay away from and dislike, allows it. I have an Os X macbook running with the monitor lid closed (software hack) and used as a webdav file server successfully. During the first reboot after the hacks above, I lost the remote desktop connection. The SSH connection and command line functions fine. But that does not help. I need to fetch the monitor and attach it again. It will survive until a reboot then once again the same problem. Probably I will be giving up.

wbw
aikku61
Level 1
Level 1
 
Posts: 4
Joined: Wed Feb 20, 2013 10:52 am

Very funny - very stupid - you won't believe this!

Postby aikku61 on Thu Feb 28, 2013 2:11 pm

After many hours of trying and disappointment and almost being determined to give up, I have just noticed that ALL YOU NEED is to have a simple VGA-VGA cable attached to your motherboard. No monitors, no hardcore hacks, no soldering, no expensive KVM switches. No keyboard and no mouse. Just an ordinary monitor cable. Voilà! I have my linuxmint running happily and easily connected via remote desktop. I can make it sleep, wake it up via W-O-L. I cannot believe that this could be possible :shock:
aikku61
Level 1
Level 1
 
Posts: 4
Joined: Wed Feb 20, 2013 10:52 am

Re: Very funny - very stupid - you won't believe this!

Postby goog64 on Mon Dec 23, 2013 10:38 pm

aikku61 wrote:.... ALL YOU NEED is to have a simple VGA-VGA cable attached to your motherboard..........


Well done aikku61!
I am trying to learn how to wake my laptop up (preferably with the lid closed) and access it from overseas with an android tablet.
Is this possible?
Can you please tell me how to attach a VGA cable to my motherboard (or does that just mean plugging it into the VGA outlet)?
goog64
Level 2
Level 2
 
Posts: 61
Joined: Fri Dec 21, 2012 12:45 am

Re: Very funny - very stupid - you won't believe this!

Postby CuXe on Thu Apr 17, 2014 7:42 pm

aikku61 wrote:After many hours of trying and disappointment and almost being determined to give up, I have just noticed that ALL YOU NEED is to have a simple VGA-VGA cable attached to your motherboard. No monitors, no hardcore hacks, no soldering, no expensive KVM switches. No keyboard and no mouse. Just an ordinary monitor cable. Voilà! I have my linuxmint running happily and easily connected via remote desktop. I can make it sleep, wake it up via W-O-L. I cannot believe that this could be possible :shock:


You Sir just saved me 10 thousand years worth of pain. I have literally spent 4 hours resarching how to turn my desktop into a media server that I could access with vnc or teamviewer .. I went over to FreeNAS. started reading about unix and how to backup my existing files.. OMG.. big headache!

But THIS is such a simple solution.. just a dam cable! lol.. thank you so much!
CuXe
Level 1
Level 1
 
Posts: 3
Joined: Thu Apr 17, 2014 7:29 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: mrflibble, sbamamoto and 42 guests