2010 June

Maintaining WordPress Installations

#!/bin/bash
# wp-update.sh
# update wordpress installation(s) to $1 branch
#
# this script takes the new branch as an argument


DOMAINS="domain1.tld \
domain2.tld \
domain3.tld"

if [ $# -ne 1 ]; then
echo "EPIC FAIL: Missing new version!"
echo "Try: ./wp-upgrade x.x.x (ie; 2.7.1)
exit 1
fi

for site in ${DOMAINS}; do
echo "upgrading ${site}"
echo
cd /var/www/${site}/
svn sw http://core.svn.wordpress.org/tags/$1/ .
done

./wp-update.sh 2.7.3

source

By WladyX on 30 June, 2010 | Scripts, Wordpress | A comment?

How to change your GRUB loader view using BURG

sudo add-apt-repository ppa:bean123ch/burg
sudo apt-get update && sudo apt-get install burg burg-themes
sudo burg-install "(hd0)"
sudo update-burg
source source2

By WladyX on | Style, Ubuntu | 1 comment

bash script: a simple select menu

#!/bin/bash
#
# Script to perform some common system operations
#
while :
do
clear
echo "************************"
echo "* My tools *"
echo "************************"
echo "* [b] Backup *"
echo "* [a] Attach sshfs *"
echo "* [u] Unmount sshfs *"
echo "* [l] Server Login ssh *"
echo "* [t] Tunnels over ssh *"
echo "* [x] X-forwarding ssh *"
echo "* [s] Suspend system *"
echo "* [f] Fix network *"
echo "* [d] Downloaders *"
echo "* [m] MoinMoin *"
echo "* [p] Powersave *"
echo "* [y] YouTube download *"
echo "* [g] Portfolio grabber*"
echo "* [0] Exit/Stop *"
echo "************************"
echo -n "Enter your menu choice [a-0]: "
read yourch
case $yourch in
b) $HOME/.scripts/tools/backup ;;
a) $HOME/.scripts/tools/mount ;;
u) $HOME/.scripts/tools/umount ;;
l) $HOME/.scripts/tools/ssh ;;
t) $HOME/.scripts/tools/tunnel ;;
x) $HOME/.scripts/tools/xforward ;;
s) $HOME/.scripts/tools/suspend ;;
f) $HOME/.scripts/tools/fixnetwork ;;
d) $HOME/.scripts/tools/downloaders ;;
b) /bin/bash ;;
k) kate $HOME/.scripts/scripts ;;
p) $HOME/.scripts/tools/powersave ;;
g) $HOME/.scripts/tools/pf-grabber.sh ;;
m) python $HOME/data/MoinMoin/moin-desktop/moin.py ;;
y) python $HOME/.scripts/tools/youtube.py ;;
0) exit 0;;
*) echo "Oopps!!! Please select choice 1,2,3 or 4";
echo "Press Enter to continue. . ." ; read ;;
esac
done

source

By WladyX on | Scripts | A comment?

Debian / Ubuntu Linux: Clear the Package Cache

# apt-get clean

source

By WladyX on | Ubuntu | A comment?

Upgrade from Ubuntu 8.04 LTS to 10.04 LTS

apt-get install update-manager-core
sudo do-release-upgrade --proposed

if you use proxy:
http_proxy="http://ip:port" do-release-upgrade

source source2

By WladyX on | Ubuntu | A comment?

Ubuntu Grub2 Splash Image

By WladyX on | Style, Ubuntu | A comment?

Ubuntu Adobe flash problem.. Can’t click on flash video

* Hit ALT+F2 and enter
* gksudo gedit /usr/lib/nspluginwrapper/i386/linux/npviewer
* add the following line BEFORE the last line of text
* export GDK_NATIVE_WINDOWS=1
* Save.
* Restart any applications using flash

source

By WladyX on 29 June, 2010 | Firefox, Ubuntu | 1 comment

HP-UX crontab: you are not authorized to use cron

Login as root
Edit the /usr/lib/cron/cron.allow file
Add “oracle” at the end.
Logout and login as “oracle” user again.

source

By WladyX on 3 June, 2010 | HP-UX | A comment?