Category: Uncategorized

Change sizes of gnome desktop background

A simple script to change the background.   Just a simple bash script for changing the position of your wallpaper, and it works on Fedora 18;) #!/bin/bash OPTIONS=”Centered Scaled Spanned Zoom Stretched Wallpaper Quit” select opt in $OPTIONS; do if [ “$opt” = “Centered” ]; then gsettings set org.gnome.desktop.background picture-options “centered” echo You choose the…

Read the full article

Quick tricks on shell

I was working on a project that involves moving data from one point to other, it involves a verity of commands. I am listing some useful hacks. 1. This script is a tiny script to compress, generate md5 and transfer any directory. tar cvJf $1.tar.xz $2; md5sum $1.tar.xz > $1.md5sum scp -i<private key> -P<port> $1.md5sumĀ <user>@<hostname>:<path>…

Read the full article

Generate a secure password quickly

I frequently create accounts, It maybe a user account in OS or some online account. Giving the same password to all the accounts is a good idea so that I won’t forget it but then if someone knows the password then all my accounts are compromised, only way out is to give a new password…

Read the full article

Find the fastest mirror in arch linux

This command finds the fastest mirror. The contry option is to narrow down the search as well as other options. reflector -p http -c ‘United Kingdom’ –threads 2 -f 5 -n 5 –sort rate > /etc/pacman.d/mirrorlist If you don’t want to disturb mirrorlist file then skip the last part. reflector -p http -c ‘United Kingdom’…

Read the full article