Hot answers tagged

47

The complete solution is: Remaster a CD, ie, download a non graphical ubuntu installation ISO (server or alternate installation CD), mount it $ sudo su - # mkdir -p /mnt/iso # mount -o loop ubuntu.iso /mnt/iso Copy the relevant files to a different directory # mkdir -p /opt/ubuntuiso # cp -rT /mnt/iso /opt/ubuntuiso Prevent the language selection menu ...


28

As of Ubuntu 12.04, a more straightforward, but nevertheless undocumented, solution is to use /etc/default/grub to override the recordfail timeout: GRUB_TIMEOUT=10 GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT The fact that such option is completely undocumented is just too bad. EDIT Actually, the support for GRUB_RECORDFAIL_TIMEOUT was added in the middle of ...


17

Found a way to do it without requiring a dummy plug: http://blog.mediafederation.com/andy-hawkins/ubuntu-headless-vnc-vesa-800x600-fix/ Basically install a dummy driver: sudo apt-get install xserver-xorg-video-dummy Then write it in the /usr/share/X11/xorg.conf.d/xorg.conf file (create one, if it does not exist): Section "Device" Identifier "...


16

Just found a solution here: Starting the the virtual machine with VBoxManage instead of VBoxHeadless solves my problem: VBoxManage startvm <uuid|vmname> --type headless For example, if your VM's name was Ubuntu and it had a UUID of 865b2700-471a-11e4-916c-0800200c9a66, you can run: VBoxManage startvm Ubuntu --type headless or VBoxManage startvm ...


13

Install ALSA $ sudo apt-get install libasound2 libasound2-plugins alsa-utils alsa-oss Install PulseAudio: $ sudo apt-get install pulseaudio pulseaudio-utils Set Group Memberships for PA: $ sudo usermod -aG pulse,pulse-access <username> Run the PulseaudioServer: $ pulseaudio -D Following command tells us if a sink is recognized by PulseAudio:...


13

Ubuntu switched to libreoffice instead of openoffice quite a while ago. Install libreoffice-common, then you can run the libreoffice service by adding the "--headless" runtime argument. $ /usr/bin/libreoffice --headless The rest of that article should be compatible if you replace "openoffice.org" with "libreoffice" across the board.


12

Create a link to /etc/localtime ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime Just replace /America/Los_Angeles with your zone.


9

The answer to this one can be found in the grub file /etc/grub.d/00_header make_timeout () { cat << EOF if [ "\${recordfail}" = 1 ]; then set timeout=-1 else set timeout=${2} fi EOF } Setting the timeout value to -1 will stop the count down. Change the value to a value > 0 i.e. set timeout=10 this section of the file would look like ...


9

I think you are referring to xvfb - the ability to run in a framebuffer. or sudo apt-get install xvfb You need to specify a resolution and colour depth as well as the nominal display number Usage: xvfb :1 -screen 0 800x600x8 & export DISPLAY=":1" java application_name.jar or shorter: xvfb-run -a -e /tmp/some/log/file.log java -jar /home/user/...


9

Install OpenOffice following the instruction given at their Website. The installation procedure is as follows: First Download the openOffice.org all in one tar package. Then extract the .tar.gz file into a suitable directory. I downloaded in my home directory. Then open a terminal and go the the directory containing the .deb files. If you extracted in ...


6

No, you can't. But Deja Dup is just a graphical front end for the command line tool duplicity, which you can use on a server. Its command line interface is a bit complicated, but read its man page or some of the instructions in Deja Dup's manual restore help page: https://live.gnome.org/DejaDup/Help/Restore/WorstCase


6

Per Charles' comment: "dns-namservers" should be dns-nameservers (you missed an "e").


6

The current directory (your home) is missing the "w" (write) permission. Try these commands cd ~ chmod u+w . Don't forget the dot at the end. It represents the current directory. Or you can do the same with just one command: chmod u+w ~ You don't even need sudo according to my tests.


5

I located the culprit. Tested on a fresh install, confirmed it's a bug. I submitted a bug report In short the issue is: The polkit authentication dialogue will show up on DISPLAY :0 instead of DISPLAY :1 where the VNC/NX session is. A workaround may be to use libpam-keyring to auto authenticate upon login. or... scratch that, that probably would not do it,...


5

Figured it out myself, finally. Apparently the problem was that since there is no monitor, no valid "screens" are started up when the box boots, and therefore no resolutions are available in the Unity settings dialog. However, when no screens are found, it seems the system defaults to a "virtual desktop", with a 640x480 resolution. The system does support ...


4

If for headless or server mode you mean without graphical interface, it is sufficient to stop gdm: sudo stop gdm so that you remain only with virtual consoles. To enable again the graphical login, start gdm: sudo start gdm Be aware that this can make your network stop working. To avoid this it is probably enough to set the connection as a System ...


4

AFAIK Ubuntu doesn't use the runlevel, in fact the /etc/rc*.d directory are the same. If your goal is to not run Xorg automatically just edit /etc/default/grub and modify the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" in GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text" then type: sudo update-grub to switch back delete "text" and re-run sudo ...


4

Re-purpose using tasksel Install sudo apt-get install tasksel run sudo tasksel Uncheck ubuntu-desktop Check basic server


4

OP has resolved the issue and posted the answer as a comment; I did happen to stumble across a solution that worked for me. I ran this command: sudo dpkg-reconfigure xserver-xorg and now I am able to run that machine without a monitor/keyboard/mouse


4

Yes you can. I just did. Follow the instructions here and you can run deja-dup using the X of your own machine. Then you just execute from your local machine: ssh -X SERVER_IP deja-dup


4

Here is a shell script which performs this procedure, thanks for the introduction: http://www.utech.de/2013/05/shell-script-creating-a-cd-for-unattended-ubuntu-server-installations/ The script you find following the link basically implements the procedure that @Elazar described, so the essential parts are just a screen above. I added the link to save ...


4

I did something similar on a non-Ubuntu Linux distro. For testing purposes I will use my HTPC running Ubuntu (14.04) to make sure it works there as well with minimal changes. Distro Information htpc@HTPC:[~]:$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS Release: 14.04 Codename: trusty ...


3

This is a fairly common question. However, I personally believe that VNC is a poor solution for this kind of usage. I would recommend having a look at X2Go. It is much, much, faster tha VNC and it forwards audio using PulseAudio, etc, over SSH. It is quite easy to setup and you don't need to be logged in on the server for it to work. Have a look at http://...


3

Looks like ownership on your home directory is messed up. At the very least, you should have write permission to your own home, and it looks like that is not the case. Here is the top few lines of output when I look at my own home directory: mike@cobbler:~$ ls -al total 474700 drwxr-xr-x 45 mike mike 4096 Jul 14 12:55 . drwxr-xr-x 3 root root ...


3

Here's a sample script and how to use it. Install these packages first: libav-tools mediainfo ubuntu-restricted-extras avconv (formerly known as ffmpeg) performs the actual conversion mediainfo provides the tag information to create the folder structure and name the file. The script is: #!/bin/bash OUTPUTBASE=converted-oggs #path to the base folder ...


3

This is a hardware solution/workarround which may work for some graphics hardware/driver. Either you buy a Dummy VGA (or DVI analog) plug or some calling it Dummy Dongle. Or just use 3 resistors of around 75 Ohm at the VGA output: 1→6, 2→7, 3→8. +/- 10 Ohm may work without any problem. Some cards work with just one resistor. (Like my Intel, ...


2

I think this is the correct PolicyKit behavior. The policy for Active, Inactive and Any other user are different, so when you are connected through NX you are not Active (clients in active sessions on local consoles), nor Inactive (clients in inactive sessions on local consoles), but you result as Any user. You can see the default policy for the Action ...


2

Take a look at the powernap package, which is designed to do exactly this.


2

An headless server JUST used for file server functionality should just have packages to handle that function. You could perform a minimal install and then add just samba and ssh and get rid of everything else. Bios suggestions from Rory Alsop are a good idea. Do you have a vga on the motherboard so you can use that instead of the nvidia? That would be ...


2

You mention "in industry" a couple of times. Fact is these different virtualisation technologies, along with others like OpenVZ, all get used in industry. Most of them have certain merits like: being able to maximise density through burstable RAM (for cheap OpenVZ VPS hosting) offering fair shares of the hardware (for more expensive, lower density Xen VPS ...



Only top voted, non community-wiki answers of a minimum length are eligible