Technical Blog by Tomasz Muras Technical Blog
  • Search
Navigation bar avatar
✕

    Debian

    • Limit bandwidth for a service

      Posted on May 14, 2012

      To test a performance of multiple parallel file downloads, I had to make sure that a download takes significant amount of time. I could use huge files but that’s not very helpful if you work on a local, 1Gb LAN. So I’ve decided to limit download speeds from my Apache… [Read More]
      Tags:
      • debian
      • linux
      • ubuntu
    • git server with apache authentication on Ubuntu Debian

      Posted on April 6, 2012

      This guide will describe how to serve git repository on HTTP port using Apache. This should work on any recent Ubuntu or Debian release, I’ve tested it on Ubuntu Server 11.10. I’m setting it up on my local server 192.168.1.20 under git/agilesparkle, so my repository will be available at http://192.168.1.20/git/agilesparkle.… [Read More]
      Tags:
      • git
      • linux
      • ubuntu
      • debian
    • Show full path to the current file in vim

      Posted on January 3, 2012

      I find this one very useful, when you press just CTRL-G in vim you will get some basic file information: [Read More]
      Tags:
      • linux
      • debian
      • ubuntu
    • xargs, find and escaping pipe and semicolon

      Posted on December 29, 2011

      I wanted to iterate over set of directories and calculate total number of files inside each of them (recursively). xargs & find would do it just fine but you can not easily escape pipe inside xargs command. Here is the solution: [Read More]
      Tags:
      • debian
      • linux
      • ubuntu
      • bash
    • Send email from command line without x-mailer tag

      Posted on December 17, 2011

      I usually set my postfix to relay via gmail SMTP to allow me for reliable external email delivery from my gmail address, with the convenience of the command-line. To send an email using mail utility I can simply use: [Read More]
      Tags:
      • debian
      • linux
      • ubuntu
    • ext2 ext3 partition block group error

      Posted on August 29, 2011

      Here is the error from dmesg I’ve got when trying to mount external HDD: [Read More]
      Tags:
      • debian
      • linux
      • ubuntu
    • Recursively find the latest updated file

      Posted on August 20, 2011

      Here is the command: [Read More]
      Tags:
      • linux
      • ubuntu
      • debian
    • Automatically equalize brightness of several images

      Posted on August 14, 2011

      I have a collection of 160 photos that I would like to montage into a movie. Each photo was done on a different day and the brightness of each photo varies. This will definitely not look good on the photo, so I’ve decided to “normalize” the brightness across the images.… [Read More]
      Tags:
      • debian
      • ubuntu
      • linux
      • bash
    • How to find the widest image

      Posted on August 12, 2011

      Recently I had to locate the widest image in the set of photos in a directory. Here is how you can easily do it with identify command, from ImageMagick suit: [Read More]
      Tags:
      • linux
      • ubuntu
      • debian
      • bash
    • Resize images in bulk to the same width or height, same aspect

      Posted on August 9, 2011

      mogrify is the tool you are looking for – it comes with the great imagemagick package and it’s designed especially to be used for bulk operations. To resize all images in current directory to 600 pixels wide (width): [Read More]
      Tags:
      • debian
      • linux
      • ubuntu
      • bash
    • Bulk rename photos to date

      Posted on August 4, 2011

      I have a collection of related photos stored on my PC. The filenames were “ugly” – standard file names coming from the photo camera. I would like to rename them into a file containing the date when the photo was shoot, e.g. 2011.07.21.jpg. There is an excellent commandline tool to… [Read More]
      Tags:
      • debian
      • linux
      • ubuntu
      • bash
    • Recursively find total size of selected files-directories

      Posted on June 28, 2011

      Sometimes simply checking the size of the whole directory is not enough, and you need more information, e.g. the whole directory has 3GB – but how much of it are those .avi files inside? The most flexible way for matching the files (or directories) is by using find command, so… [Read More]
      Tags:
      • debian
      • linux
      • ubuntu
      • bash
    • dfsg string in a package name explained

      Posted on September 5, 2010

      Sometimes Debian and Ubuntu packages have “dfsg” bit in their package name. Out of 40175 packages in Debian unstable, 2015 of them contain string “dfsg”. [Read More]
      Tags:
      • debian
      • ubuntu
      • packaging
    • Execute a command with a timeout

      Posted on July 22, 2010

      Sometimes you need to stop a command, if it executes for too long. It’s very simple with a timeout utility from coreutils package. timeout is available in coreutils 8.X – recent enough version is currently in Debian squeeze and sid only. The version in Ubuntu 10.04 is too old (does… [Read More]
      Tags:
      • bash
      • debian
    • The power of imagemagick

      Posted on July 14, 2010

      There is probably no need for me to introduce a great library for processing images: imagemagick. In this mini how-to I will show how I’ve used imagemagick to build an image from few different pieces of media (images and text). [Read More]
      Tags:
      • debian
      • ubuntu
      • bash
    • How to create a simple screensaver for gnome-screensaver

      Posted on July 10, 2010

      As a astronomy enthusiast, I really like the default screensaver that comes with gnome-screensaver, named “cosmos”. It’s nice but not ideal: [Read More]
      Tags:
      • debian
      • ubuntu
      • gnome
    • Dynamic MMap ran out of room

      Posted on February 9, 2008

      Increase the maximum allocated memory in your /etc/apt/apt.conf. Add this line if it does not exist (also create /etc/apt/apt.conf if necessary): [Read More]
      Tags:
      • apt
      • debian
      • ubuntu
      • linux

      Tomasz Muras  •  2026

      Powered by Hugo, styled with Beautiful Jekyll