Category: Server

  • Ubuntu: How to write files to a tape

    Ubuntu: How to write files to a tape

      To put files onto a tape, run the following:   tar -cvf /dev/[path to tape] [file or directory] [file or directory] [file or directory]   An example would be:   tar -cvf /dev/st0 /home/bob   This will back up the user bob’s home directory to the tape, here located at /dev/st0 (a typical location…

  • Ubuntu: How to change tmux’s ctrl+b binding to ctrl+a

    Ubuntu: How to change tmux’s ctrl+b binding to ctrl+a

      If you’re used to screen you’ll be in the habit of using ctrl+a, for example detaching a session with ctrl+a then d – if you make the move to tmux it’s ctrl+b then d, which can take some getting used to. Often it’s easier to make tmux get used to you! To change tmux…

  • Changing or Updating the time zone in Ubuntu Server

    Changing or Updating the time zone in Ubuntu Server

      There are quite a few reasons you may find that you need to change your time zone – for example, if you’re using a pre-made image for a virtual machine you may find that the default timezone is not set to your country. You can change the time manually, though there is a quick…

  • Ubuntu: How to delete a user

    Ubuntu: How to delete a user

      In Ubuntu 12.04 and 12.10, to delete an additional user you have created, use the following:   sudo deluser [username]   By example, if we wanted to delete a user we created called “test”, we would run:   sudo deluser test   Which gives:   Removing user `test’ … Warning: group `test’ has no…

  • Ubuntu: How to add a existing user to an existing group

    Ubuntu: How to add a existing user to an existing group

      To add an existing user to a second group, use the following command:   sudo usermod -a -G [group] [user]   e.g.:   sudo usermod -a -G geeks bob   This will add the user bob to the group geeks.

  • Ubuntu Server: How to change to the root user

    Ubuntu Server: How to change to the root user

      Some guides tell you to enter “su” on Unix systems to get superuser permissions; in Ubuntu, however, this won’t work. As a user with sudo permissions (the user created on install has these) enter the following instead:   sudo su   Enter your account password and voila, you are logged in as root. You…

  • Ubuntu Server Benchmarks: Geekbench

    Ubuntu Server Benchmarks: Geekbench

      This is one of our favourite benchmarks for Ubuntu Server – it’s cross-platform, meaning that it can be ran on Windows, Mac OS X, Ubuntu Desktop, Ubuntu Server and more. You can get the download link from the following site:   http://www.primatelabs.com/geekbench/download/linux/   Currently this works:   wget http://d34wv75roto0rl.cloudfront.net/Geekbench-2.4.2-Linux.tar.gz   Unzip:   gunzip Geekbench-2.4.2-Linux.tar.gz…

  • Ubuntu Server Benchmarks: Phoronix Test Suite

    Ubuntu Server Benchmarks: Phoronix Test Suite

      The Phoronix Test Suite is another option when it comes to benchmarking your Ubuntu Server – this one doesn’t work out-of-the-box and requires you to choose the types of benchmarks you wish to run and install them either individually or as suites of benchmarks. You can download it at the following link currently:  …

  • Ubuntu Server Benchmarks: Hardinfo

    Ubuntu Server Benchmarks: Hardinfo

      Hardinfo is one of the command-line benchmarks available for Ubuntu Server – it does have graphical features so it will also be useful for Ubuntu Desktop users, but for the purpose of this piece we will assume you’re at a terminal. It not only runs benchmarks like Blowfish but also shows you a great…

  • Monitoring network usage on Ubuntu

    Monitoring network usage on Ubuntu

      If you want to see how much traffic is passing through your network port there’s a handy tool called vnstat which will tally the amount of data passing through. You can install it with:   sudo apt-get install vnstat   It will usually add the databases and network ports automatically like so:    …