2010 December

Drake Arts AndroidLock v1.4

By WladyX on 23 December, 2010 | WM | A comment?

crontab errors

/bin/sh: -c: line 1: unexpected EOF while looking for matching “’
/bin/sh: -c: line 2: syntax error: unexpected end of file

If you receive this error, you may have a % character in your crontab that has not been escaped.

From the crontab(5) manpage:
Percent-signs (%) in the command, unless escaped with backslash (\), will be changed into newline characters, and all data after the first % will be sent to the command as standard input.

source

By WladyX on | General | A comment?

Delete line with sed

useful for ssh key changes

sed -i 215d ~/.ssh/known_hosts

By WladyX on 15 December, 2010 | General, Scripts, Ssh | A comment?

HP-UX bdfmegs version 5.8

HP-UX bdf replacement

source bdfmegs

By WladyX on 9 December, 2010 | HP-UX, Scripts | A comment?

400 Bad Request When using Firefox

You must clear cookies for that site:

source1 source2

By WladyX on 7 December, 2010 | Firefox | A comment?

Change a file’s timestamp with touch

touch -t 200805131808 filename

ls -ltr filename
_rw_rw_rw_ 1 penchal grp 1024 May 13 18:08 filename

source

By WladyX on 6 December, 2010 | Scripts | A comment?

User friendly date format

date +%Y-%m-%d
2011-07-22

date +%F-%R
2011-07-22-13:48

can be used in tar archives names for example:
tar -cfz /home/backup/backup_`date +%Y-%m-%d`.tar.gz /opt/lampp/htdocs/myweb/*

source

By WladyX on | Scripts | A comment?

HP-UX change ignite server ip address

instl_adm -> check current settings

instl_adm -t <ip-of-server> -> change ip address

source

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

Ubuntu can’t update grub

error:

Setting up grub-pc (1.98-1ubuntu7) …
/etc/default/grub: 19: e: not found
dpkg: error processing grub-pc (–configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)

solution:
sudo -i
dpkg --purge --force-depends grub-pc
apt-get install -f
apt-get clean
apt-get -d install grub-pc
cd /var/cache/apt/archives/
dpkg --force-overwrite --install grub-pc*.deb
dpkg --configure -a
exit

source

By WladyX on | Ubuntu | A comment?