Dotfiles: Keep your linux configuration on github

Posted Almost 13 years ago by Tobias Kraze.
github.com

Some folks have started to keep their linux configuration in a git repository called "dotfiles". This sounds like a good...

How to enlarge a VirtualBox VDI disk file

Posted Almost 13 years ago by Arne Hartherz.

VirtualBox does not offer anything for this task – you need to do it yourself. It's not that hard:

Show the status of a running dd copy

Posted Almost 13 years ago by Arne Hartherz.

When you do a bitwise copy using the dd tool you will not see any output until it completes or...

CPU limit

Posted Almost 13 years ago by Lexy.
cpulimit.sourceforge.net

cpulimit is a simple program which attempts to limit the cpu usage of a process (expressed in percentage, not in...

Using Dropbox on Ubuntu

Posted Almost 13 years ago by Arne Hartherz.

If you are exchanging files with a client via Dropbox you do not need to access the Web page every...

How to use Ubuntu in English, but still show German formats

Posted Almost 13 years ago by Henning Koch.

If you want to have an English Ubuntu UI, but still see dates, money amounts, paper formats, etc. in German...

Linux: Refer to all arguments of a script call

Posted Almost 13 years ago by Arne Hartherz.

In shell scripts you can use $1 to refer to the first argument, $2 for the second, etc. If you...

Change the timestamp of a file in Ruby

Posted Almost 13 years ago by Arne Hartherz.
apidock.com

This is somewhat similar to the touch command of Linux: FileUtils.touch 'example.txt', :mtime => Time.now - 2.hours If you omit the :mtime...

Force Google Chrome to run in English on Linux

Posted Almost 13 years ago by Arne Hartherz.

If you need Google Chrome to run in English, and your system locale is a non-English one, you have...

List directories ordered by size (with human-readable output)

Posted Almost 13 years ago by Arne Hartherz.

You know there is the du command to fetch the disk usage of a directory (“.” in this example). By default...

Enable soft tabs in Vim

Posted Almost 13 years ago by Arne Hartherz.

If you want to enforce soft tabs (spaces instead of tabstops) in Vim put this into your ~/.vimrc (Linux) or...

Defining host aliases in your SSH config

Posted Almost 13 years ago by Arne Hartherz.

You probably already manage servers you often connect to inside the ~/.ssh/config file. What is nice: you may define alias...

Move Window Buttons Back to the Right in Ubuntu 10.04 / 10.10

Posted Almost 13 years ago by Lexy.
howtogeek.com

One of the more controversial changes in the Ubuntu 10.04 beta is the Mac OS-inspired change to have window...

Getting started with Puppet

Posted Almost 13 years ago by Dominik Schöler.

When you simply want to get to know Puppet, follow puppetlabs’ Learning Puppet Docs. They give you a handy introduction...

How to send HTTP requests using cURL

Posted About 13 years ago by Arne Hartherz.
linux.die.net

Reading a URL via GET: curl http://example.com/ Defining any HTTP method (like POST or PUT): curl http://example.com/users/1...

Installing RMagick on Ubuntu

Posted About 13 years ago by Arne Hartherz.

When installing RMagick you may get an error messages like this: Version 2.13.1: checking for Ruby version >= 1.8.5... yes

How to send a test e-mail from shell

Posted About 13 years ago by Arne Hartherz.

If you want to manually check if e-mail delivery works on a machine by sending an e-mail you...

Generate Puppet or Chef recipes from a Ubuntu system state

Posted About 13 years ago by Lexy.
devstructure.com

blueprint is DevStructure’s workhorse tool that looks inside popular package managers, finds changes you made to configuration files, and...

Dual monitors crashing Linux with NVIDIA drivers

Posted About 13 years ago by Thomas Eisenbarth.

My T410 has a NVIDIA graphics card (NVS 3100M). My BIOS configuration looks like this: NVIDIA Optimus is disabled in...

Insert an ndash and other special characters using the Compose key on Linux

Posted About 13 years ago by Arne Hartherz.
en.wikipedia.org

Although you can access many symbols using the AltGr key you may be missing some, like the en-dash (–) or...

AppArmor in Linux

Posted About 13 years ago by Thomas Eisenbarth.
wiki.debian.org

This note is a reminder that there is something called AppArmor that could cause weird errors ("File not found", "Can...

Encrypt files using OpenSSL

Posted About 13 years ago by Thomas Eisenbarth.

Using OpenSSL it's very easy to seriously encrypt files. Use the script below. Input / Output are self explanatory. Put...

Securely remove files on Linux

Posted About 13 years ago by Thomas Eisenbarth.

When you delete a file with rm it's still possible to recover the file or parts of it. Use...

Continously run command under bash

Posted About 13 years ago by Thomas Eisenbarth.

Sometimes you want to run a command forever, e.g. to compile a haml to html file on the console. Use...