To run a headless Ubuntu server that you can remote into and will mine your crypto you need to do one of the following:
- The easy: Buy a dummy HDMI plug for each rig and move on with your life.
- The hard (but adventuresome):
-
- From the terminal run this command to update /etc/X11/xorg.conf to fake your system out into thinking you have a monitor connected:
$ sudo nvidia-xconfig --use-display-device="DFP-0" --connected-monitor="DFP-0"
Note: this command assumes that you previously booted the system into the GUI and installed the “NVIDIA X Server Settings” client (needed to populate xorg.conf). See my overclocking post if you don’t have “NVIDIA X Server Settings” running yet.
- Now if you want to VNC into (a.k.a. “remote into”) your rig, you need to install a VNC server on the destination machine (see my post on steps for that).Assuming you did step one above, and installed a VNC server you will discover that when you remote in the resolution defaults to 800 x 600 and is not helpful. In order to have a sensible resolution default when you remote in, modify (or create) a file
sudo nano /etc/lightdm/lightdm.conf
to resemble the following:[Seat:*] autologin-guest=false autologin-user=YOURLOGIN autologin-user-timeout=0 display-setup-script=/home/YOURLOGIN/Desktop/vnc_monitor_resolution.sh session-setup-script=/home/YOURLOGIN/Desktop/vnc_monitor_resolution.sh
Note: Update YOURLOGIN with the account you use to SSH into with.
Now, we have to create and configure the
vc_monitor_resolution.sh
file.$ cd ~/Desktop $ nano vnc_monitor_resolution.sh
Then within the file, add:
xrandr --fb 1360x768
Note: The resolution can be whatever works for you.
After that we have to make the file executable.
chmod a+x vnc_monitor_resolution.sh
Next time you VNC in, magic should happen and it will be in the resolution specified above!
- From the terminal run this command to update /etc/X11/xorg.conf to fake your system out into thinking you have a monitor connected:
-