RSS feed

Debian reset root password

October 21st, 2009 | Posted in Debian, Linux | No Comments

In order to reset the password, you need to boot your debian installation into single user mode. You can do this by following the steps below;

1. Once grub menu comes up, select the single user entry and press ‘e’
2. Select the kernel … line and press ‘e’ once again
3. Append ‘init=/bin/bash’ at the end of line and press b to boot

You will be dropped into a shell, next you need to mount the filesystem in read/write mode in order to change the password.

5. mount -n -o remount,rw /
6. passwd
7. reboot

That’s all there is to it!



Postfix port 587 (submission)

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

Edit /etc/postfix/master.cf and uncomment the submission line;

smtp      inet  n       -       -       -       -       smtpd
submission inet n       -       -       -       -       smtpd

Your postfix installation will now accept connections on both port 25 & 587 which is useful to hand out to users who’s ISP’s block outgoing connections to port 25.



warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied

August 17th, 2009 | Posted in Blog, Debian, Linux, Postfix | No Comments

Check the OPTIONS directive in /etc/default/saslauthd and set it to within your postfix chroot.

OPTIONS=”-c -r -m /var/spool/postfix/var/run/saslauthd”

Then run;

dpkg-statoverride –add root sasl 710 /var/spool/postfix/var/run/saslauthd

adduser postfix sasl

Restart both postfix and saslauthd for the changes to take effect.



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- | apt-key add —



CentOS yum update Missing Dependency

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

yum clean all

yum update



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



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



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–



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 9AA38DCD55BE302B
W: There is no public key available for the following key IDs:
9AA38DCD55BE302B
W: 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 debian-keyring debian-archive-keyring
# apt-key update



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



Categories