-
Running a script at startup in Ubuntu Server
There is a script located at /etc/rc.local that runs when the server starts up. By default, all the script has in it is this: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will “exit 0” on success or any…
-
Installing a GUI on Ubuntu Server
Since the Ubuntu Server edition doesn’t by default install a window manager, you may want to install one yourself (if you need one). This is how to do so. Either use the tasksel command, or just directly type in (only one) of the following commands: sudo apt-get install ubuntu-desktop sudo apt-get install lubuntu-desktop sudo apt-get…
-
Accessing Windows Shares from Linux
Once in a while, you may want to access or mount a Windows shared folder from Linux. Doing do is actually quite simple. First, create a directory where the share will be mounted. This should be an empty directory. I think it’s best to put it under /mnt. You can call it whatever you want.…
-
Hosting multiple websites with one server
For the purposes of this post, we will make the following assumptions: You are only running one installation of Apache on one installation of Linux (Ubuntu Server 12.01 used here). Your server only has one public IP address. You have two domains which are configured to both point to your server’s public IP address. You…
-
Converting video to ogg and the html5 video tag
This is how to embed a video in a webpage using html5’s video tag. First, the video must be in a format supported by the browser that it will be viewed with. It seems that the format that has the most widespread browser support (well, at least with the browsers that I like, Firefox and…
-
Stop screen from going black in Ubuntu Server
This is something that doesn’t really make much of a difference, but if you’re not worried about screen burn then you may as well do this. When the console has been idle for a certain amount of time, it goes black, only to come back when a key is pressed. To prevent this, use these…
-
Changing the path (and other system-wide environment variables)
Here is a link to the general guidelines, but I thought I’d post this as a follow-up to my previous post where I go over installing the Java Runtime Environment. The file that contains the system-wide path info can be found here (at least in Ubuntu Server 12.10): /etc/environment And the link has much more…
-
Installing Oracle Java in Ubuntu Server 12.10
Referencing an earlier post, here is the method that I have determined worked for me. First, download the latest release of the JRE. At the time of writing, it was Java 7u10. To make things easier (they make you agree to the ToS before you can download from the website), I downloaded jre-7u10-linux-i586.tar.gz to my…
-
Transmission on a headless Linux server
Here is a guide to installing Transmission (a bittorrent client) on a Linux server (Ubuntu 12.10). This was my experience that I gained from a guide located here. In fact, most of this guide is take verbatim from there, since I had no problems following their instructions. Installing transmission-daemon Type the following command: sudo apt-get…
-
Setting up a Linux server.
Much information can be found here. That’s where I got started. However, since I can’t guarantee that website’s longevity, I’ll repeat a bit here, in addition to adding a few things I found elsewhere. Starting out Install Linux. I used Ubuntu Server 12.10, so things may or may not be different with other versions/distros. You…