Generate MD5 Checksum on a single file
md5sum filename
Generate MD5 Checksum on multiple files
md5sum filename1 filename2 filename3
Generate MD5 Checksum and ouptut to file
md5sum filename > md5.txt
Compare MD5 Checkum output file to current file in directory
md5sum -c md5.txt
Category Archives: linux
Basic tar usage
As you probably know tar is designed to store and extract files from an archive file (a tarfile). Here I’ll show you some basic usage of this tool…
Continue reading Basic tar usage
fix svn problems
For some reason since I’ve upgraded to svn 1.7.4 my working copy get’s corrupted
Getting messages like:
svn: E155010: Pristine text '999135ffa335e04403a1d44452b14ffc74080f8a' not present
inadyn
I’ve started using inadyn to be able to access my home server using a DNS name, as I only have a dynamic IP address
This is not a problem, but I made life more complicated, as I wanted to use my own domain. Luckily my DNS provider offered a solution which worked fine, BUT I’m about to set up a plesk installation at the moment, and planning to move all my domains to this server, so needed a solution, which allows me to update the IP address in plesk
SVN backup
After a long period I’ve decided to start posting things here again
This time, they will be only small probably useful scripts, which you can use the same way I do
At the moment I’m moving to a new dedicated server, and want to ensure that my backup procedures are up running and work as I would expect them
A few months ago I’ve exploded my svn repository from a single one to one per project, so I had to create a script which back them all up
SSH connection without password
First, generate a public/private RSA key pair on Ooga.
ooga% ssh-keygen -t rsa -f ~/.ssh/id_rsa
When you are asked for a passphrase, leave it empty. Now send the public key to Booga.
CentOS – php
Today I had some trouble with a simple package update on CentOS.
The php version on the server was 5.1.6 while the current version is 5.2.6
And the update did nothing .. absolutely nothing it said that I have the latest version.
CLI for loop
Since i usually forget this:
for x in `ls`; do echo cp $x/cover.jpg $x.jpg; done
CLI image resize
This is a small how to resize pictures linux CLI
you need the package called imagemagick
mogrify -resize 640x480 *.jpg
that’s all
the full doc:
http://www.imagemagick.org/www/mogrify.html