Tag: ubuntu

  • Ubuntu: Killing a tmux pane

    Ubuntu: Killing a tmux pane

      Opened one too many panes in tmux? You can kill one by selecting it and doing the following:   [prefix] x   By default the prefix is ctrl+b – so in this case you would enter ctrl+b then x.   Pane killed!

  • Ubuntu: Bringing a detached tmux session back

    Ubuntu: Bringing a detached tmux session back

      If you’re just starting out with tmux you may have installed it, set up a session, detached and then… what?   To re-join your detached session, simply run:   tmux attach   and you’re back in business.  

  • 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…

  • How to erase a tape in Ubuntu

    How to erase a tape in Ubuntu

      This is another nice and easy one, though it may take a while depending on the size/speed of the tape:   sudo mt -f [/path/to/tape] erase   e.g.:   sudo mt -f /dev/st0 erase   That’s /dev/st(zero) not /dev/st(letter o), in case it’s not clear from the font. This will likely take some time…

  • How to rewind a tape drive in Ubuntu

    How to rewind a tape drive in Ubuntu

      This again uses the mt command, and is nice and easy:   sudo mt -f [path/to/tape/drive] rewind   A common example would be:   sudo mt -f /dev/st0 rewind   Easy done! In the above example it’s st (zero) not st (letter o) – in case it’s not clear from the font.

  • 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…

  • Installing Xen on Ubuntu: Error “makeinfo is missing on your system”

    Installing Xen on Ubuntu: Error “makeinfo is missing on your system”

      This is another error that seems to crop up when making Xen on Ubuntu – you can fix it by installing the texinfo package:   sudo apt-get install texinfo   The error message should now no longer appear.

  • Installing Xen on Ubuntu: Error bits/predefs.h: No such file or directory

    Installing Xen on Ubuntu: Error bits/predefs.h: No such file or directory

      This error cropped up when we were building Xen on a system running Ubuntu 12.04 Server:   /usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory   To get past this point, install gcc-multilib.   sudo apt-get install gcc-multilib   The required files are around 20MB and should allow you to get past that…

  • 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.