Posts Tagged ‘linux’

Articles

Build Boost 1.55 on Linux

In howto on Aug 2, 2016 by theoryl Tagged: , ,

Boost is a very extensive C++ library. To compile + install:

wget http://heanet.dl.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2
tar xz boost_1_55_0.tar.bz2
cd boost_1_55_0
mkdir ../boost
./bootstrap.sh --prefix=../boost
./b2 install

Articles

Ubuntu wakes up immediately after suspend

In howto on Jun 18, 2016 by theoryl Tagged: , , ,

Sometimes when you try to suspend the Ubuntu operating system, it wakes up immediately. This is often because certain devices are in “awake” state. To fix it, first you need to find out which device it is. Do:

acpitool -w

You might see output like the following:

   Device	S-state	  Status   Sysfs node
  ---------------------------------------
  1. P0P1	  S4	*disabled
  2. GLAN	  S4	*disabled
  3. XHC	  S4	*enabled

To disable ‘XHC’, do:

echo 'XHC' > /proc/acpi/wakeup

with superuser privilege.

Typical suspects are USB devices. To find out the USB devices in your system, do:

lspci | grep USB

Articles

Block domains on Linux

In howto on Jun 5, 2016 by theoryl Tagged: ,

It’s easy to block specific domains on Linux. Just open /etc/hosts and append the following lines:

127.0.0.1       facebook.com
127.0.0.1       www.facebook.com

(replace facebook.com by the domain name you wish to block)

Articles

Show network connections on Linux

In howto on May 27, 2016 by theoryl Tagged: ,

If you want to monitor the network traffic on Linux, do:

netstat -ctupW 

Articles

Multiple instances of gThumb on Linux Mint 17

In howto on Mar 15, 2016 by theoryl Tagged: , , , ,

gThumb is my favorite image viewer. However, gThumb 3.2.7 (which comes with Linux Mint 17) has a bug where only one instance of gThumb is allowed. See this bug report. The suggested solution is to use gThumb 3.2.8 which can be grabbed from the Ubuntu 14.10 (Utopic Unicorn) repository.

So, download the .deb files from:
https://launchpad.net/ubuntu/utopic/amd64/libexiv2-13/0.24-2ubuntu1
https://launchpad.net/ubuntu/utopic/amd64/gthumb/3:3.3.1.is.3.2.8-0ubuntu1build1
https://launchpad.net/ubuntu/utopic/amd64/gthumb-data/3:3.3.1.is.3.2.8-0ubuntu1build1

Then, install them:

sudo dpkg -i libexiv2-13_0.24-2ubuntu1_amd64.deb gthumb_3.3.1.is.3.2.8-0ubuntu1build1_amd64.deb gthumb-data_3.3.1.is.3.2.8-0ubuntu1build1_all.deb 

Problem solved. =)