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

    Ubuntu

    • Compile Ardour using Ubuntu 22.04

      Posted on June 2, 2024

      Install dependencies: [Read More]
      Tags:
      • ubuntu
      • ardour
    • Compile Battle for Wesnoth 1.18 in Ubuntu 23.10

      Posted on March 23, 2024

      Enable src packages - edit /etc/apt/sources.list and un-comment lines starting with dev-src. [Read More]
      Tags:
      • ubuntu
      • wesnoth
    • Using atop to capture and review historical data

      Posted on November 28, 2020

      atop is an extremely useful top-like utility that shows the current state of the system. [Read More]
      Tags:
      • ubuntu
    • How to set-up reliable autossh tunnel in Ubuntu

      Posted on November 15, 2020

      The idea is that a machine hosted anywhere - i.e. behind the NAT, with no public IP - will establish SSH tunnel to publicly available server. The only required connectivity is access to the server IP & port. [Read More]
      Tags:
      • raspberrypi
      • ubuntu
    • How to install Pi-hole on Raspberry Pi 4 with Ubuntu server

      Posted on November 8, 2020

      Hardware used: [Read More]
      Tags:
      • raspberrypi
      • ubuntu
    • Compile Battle for Wesnoth 1.14 using Ubuntu 19.04

      Posted on January 2, 2020

      Install dependencies: [Read More]
      Tags:
      • ubuntu
      • wesnoth
    • systemd PrivateTmp with Apache on Ubuntu 17.04

      Posted on December 6, 2017

      Apache service on Ubuntu 17.04 is configured by systemd with PrivateTmp=true option. You can see it in: [Read More]
      Tags:
      • linux
      • ubuntu
      • apache
    • Extract the content from the documents and make it searchable with solr 4

      Posted on September 23, 2012

      solr can be easily extended to handle binary files and extract the information from them. Apache Tika library is used for the file analysis. [Read More]
      Tags:
      • linux
      • solr
      • ubuntu
    • 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
    • Compile Battle of Wesnoth 1.9 in Ubuntu 11.04

      Posted on June 5, 2011

      Below is the fastest way to install the latest trunk version (currently 1.9.6) of Battle of Wesnoth on your Ubuntu Natty Narwhal. Note: it will probably install a bit too many packages than you really need. [Read More]
      Tags:
      • ubuntu
      • wesnoth
    • 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
    • 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
    • Low contrast in Open Office calc/writer selections

      Posted on May 27, 2010

      With my new Ubuntu 10.04 came new version of Open Office. One annoyance that has bothered me was too bright and not very visible selection area in OO calc (and writer as well). On my monitor the selection is barely visible and doesn’t contrast with the background: [Read More]
      Tags:
      • ubuntu
      • oo
    • 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