RSS feed

Debian xenserver updates apt repository missing GPG key

August 13th, 2009 | Posted in Blog, Debian, Linux, Xen | No Comments

After you’ve installed XenTools on your VM and you try to do a apt-get update you are greeted with a GPG error message saying that the repository isn’t trusted. This is because the GPG key Citrix use to sign their packages has not been added to the apt keyring.
To fix it, run;
wget -q http://updates.vmd.citrix.com/XenServer/5.5.0/GPG-KEY -O- [...]

Read More

 



CentOS yum update Missing Dependency

August 13th, 2009 | Posted in Blog, Linux | No Comments

yum clean all
yum update

Read More

 



error: xenconsole: Could not open tty `/dev/pts/2': No such file or directory

August 13th, 2009 | Posted in Blog, Linux, Xen | No Comments

Error: xenconsole: Could not open tty `/dev/pts/2′: No such file or directory
Check whether xenconsoled is running, if not;
 
/etc/init.d/xend start
or
xenconsoled

Read More

 



mount: could not find any device /dev/loop#

July 1st, 2009 | Posted in Blog, Linux | No Comments

If you get the above error while trying to mount an ISO image, try to the following;
Option 1
MAKEDEV loop (If it doesn’t exist already)
modprobe loop
mount -t iso9660 -o loop yourisofile.iso /mnt/iso
Option 2
cd /dev/;mkdir loop;cd loop;mknod 0 b 7 0
mount -t iso9660 -o loop yourisofile.iso /mnt/iso

Read More

 



Find files between two dates

June 23rd, 2009 | Posted in Blog, Linux | No Comments

# touch -amt 200906220000 /tmp/date1# touch -amt 200906222359 /tmp/date2# find / -type f -newer /tmp/date1 -a ! -newer /tmp/date2–

Read More

 



apt-get update GPG error

June 23rd, 2009 | Posted in Blog, Debian, Linux | No Comments

W: GPG error: http://ftp.uk.debian.org etch Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302BW: There is no public key available for the following key IDs:9AA38DCD55BE302BW: You may want to run apt-get update to correct these problems
 
Solution:
 
# gpg –recv-keys 9AA38DCD55BE302B# gpg –export 9AA38DCD55BE302B | apt-key add —
 
OR
 
# apt-get install [...]

Read More

 



How to find CDROM device on Solaris 10

May 7th, 2009 | Posted in Blog, Solaris | No Comments

I recently had to install Solaris 10 on a old Ultra 10 workstation and had trouble figuring out which device was the cdrom…
This is how I found it;
# iostat -En
c0t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Model: IC35L060AVER07-0 Revision: ER6OA46A Serial No: [...]

Read More

 



allow_url_fopen per domain

March 12th, 2009 | Posted in Blog, Linux, Plesk | No Comments

On Plesk you can allow allow_url_fopen per domain by editting the vhost.conf file for that domain and set the php_admin_flag as bellow.

php_admin_flag allow_url_fopen on

Once you have done this, run the Plesk magicwand

/usr/local/psa/admin/sbin/websrvmng -v -a

Read More

 



Postfix: delete all MAILER-DAEMON mails

February 24th, 2009 | Posted in Blog, Linux, Postfix | No Comments

mailq | grep MAILER-DAEMON | awk ‘{print $1}’ | tr -d ‘*’ | postsuper -d —

Or

mailq | tail +2 | awk  ‘BEGIN { RS = “” } / MAILER-DAEMON/ { print $1}’|postsuper -d —

Read More

 



Counting up to the UNIX Epoch time reading 1,234,567,890!

February 9th, 2009 | Posted in Blog, Debian, FreeBSD, Linux | No Comments

Unix time, or POSIX time, is a system for describing points in time, defined as the number of seconds elapsed since midnight Coordinated Universal Time (UTC) of January 1, 1970, not counting leap seconds. It is widely used not only on Unix-like operating systems but also in many other computing systems. It is neither a [...]

Read More

 




Categories