Linux

Find out what library is missing Fedora 22

Sometimes some libraries are missing. This leads to the following error message:

./command: error while loading shared libraries: abc.so.0: cannot open shared object file: No such file or directory

It will only display the first missing library. So first you can use the following command to identify them:

ldd idaq | grep found

This might lead to the following output, where you can see a list of all missing libraries:

Tags:

Run IDA Disassembler on x64 Fedora 22

When executing idaq I got the following error message:

./idaq: error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

This error appeared because I lacked some libraries (32-Bit version). To fix it I had to run the following commands:

dnf install glib2-devel.i686
dnf install freetype.i686
dnf install libSM.i686
dnf install libXrender.i686
dnf install libXext.i686
dnf install fontconfig.i686

Tags:

Exact Copies for Backups

In order to create a backup you should first of all make an exact copy

rsync -aHAX --delete /srcfolder /dstfolder

And then also check if the copy is indeed complete and exact:

diff -r /srcfolder /dstfolder

Tags:

Create a pdf from pictures

Sometimes I receive scanned documents as numbered jpeg pictures. It would be a lot more handy to have a single pdf file containing all those images. This can easily be done using bash:

convert PartOfTheDocument*.jpg WholeDocument.pdf

Tags:

Using SSH to copy files between systems

Copy something from this system to some other system:

scp /path/to/local/file username@hostname:/path/to/remote/file

Copy something from some system to some other system:

scp username1@hostname1:/path/to/file username2@hostname2:/path/to/other/file

Copy something from another system to this system:

Tags:

Backup a DVD

The following command can be used to backup/rip a DVD. All files are decrypted and stored in a folder (with the name of the DVD).

dvdbackup -i /dev/dvd -o ./ -M

If you want to create an iso file from those decrypted files you can use the following command:

mkisofs -dvd-video -udf -o ./dvd.iso ./movie_name

Tags:

Converting txt to doc

In order to convert textfiles to word documents you can use the following command

abiword --to=doc -o inputfile.doc inputfile.txt

or if you want to convert multiple files:

find *.txt -exec abiword --to=doc -o {}.doc {} \;

Tags:

ArchLinux doesn't boot anymore after updating to Gnome 3.8 - Intel Graphics

Yesterday I updated my system to Gnome 3.8. Unfortunately I was not able to boot it anymore. I would only see the boot manager but then It would just hang with a black screen. Switching to a console (Ctrl + Alt + F2) didn't work.

First of all you need to be able to work with your system. The easiest way to achieve that is starting it with runlevel 1.

Tags:

Useful Linux Commands

Using mv to prefix files

The following command prefixes all files with the prefix 2013-10-22_. This is useful for small rename operations

for f in * ; do mv "$f" "2013-10-22_$f" ; done

# Files per Extension

Recursively lists all file extensions in the current folder and below, including a count how many files there are per extension.

Tags:

Adjust Exif time of pictures

Sometimes after you come home from holidays you realize that you forgot to adjust the time of your digital camera. So all pictures might have a wrong date and/or time in the exif header. Fortunately it is pretty easy to fix that with linux:

jhead -ta10:11 *

=> Adds 10 hours and 11 minutes to the exif datetime of all files (that have exif headers) in the current folder

jhead -ta-10:11 *

=> Subtracts 10 hours and 11 minutes from the exif datetime of all files (that have exif headers) in the current folder

Tags:

Pages

Subscribe to RSS - Linux