msgbartop
A chronological documentation test project, nothing serious, really!
msgbarbottom

28 Oct 2014 Change default grub startup in CentOS 7

This post describes how to change the default startup choice while booting up CentOS 7.

Edit the file /etc/default/grub

Change the line
GRUB_DEFAULT=saved
to
GRUB_DEFAULT="Windows 7 (loader) (on /dev/sda1)"

The value to add is determined by looking at the menuentry lines in /boot/grub2/grub.cfg
Choose the menuentry that you would like to be default.

To make this change active run the command
# grub2-mkconfig -o /boot/grub2/grub.cfg

You will see this change the next time you reboot.

Tags: ,

Posted by

08 Oct 2014 Set og change default “Open With” application in Ubuntu

This post describes how to associate a file ending like PAR2-files with the pypar2 application in Ubuntu Unity.
You can also use the mimeopen command to change associated file type to other applications.

$ mimeopen -d unknown-file.par2
Please choose a default application for files of type application/x-par2

	1) Other...

use application #1
use command: /usr/bin/pypar2
Opening "unknown-file.par2" with usr  (application/x-par2)

pypar2 will now open the files automatically when you open it using Nautilus filemanager.

This has been tested on Ubuntu 13.10 and 14.04.

Tags: , , , ,

Posted by

05 Oct 2014 Compile image viewer geeqie in Centos 7

geeqie-screenshotGeeqie is a lightweight Gtk+ based image viewer for Unix like operating systems. It is my preferred image viewer in Ubuntu but it is not available in Centos 7. Since there are no RPMs available you need to download the source and compile it yourself.
This HOWTO is most likely going to work on other CentOS versions as well.

The packages has some requirements you need to install before you begin to compile it

# yum groupinstall "Development Tools"
# yum install gtk2-devel exiv2 lcms2 libchamplain

Unpack the source files

# tar xfz geeqie-1.1.tar.gz

Change directory

# cd geeqie-1.1

Start creating the binaries needed to run geeqie

# ./configure

You might get the following error if you have forgotten to install the gtk2-devel package

*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error: GTK+ >= 2.4.0 not installed.

If you do not get any error messages you can continue to make the binary files

# make

The final thing you can do is to install the geeqie binary

# make install

You can now run the geeqie image viewer by running the command

$ geeqie

Tags: , , ,

Posted by