Updates from October, 2009 Toggle Comment Threads | Keyboard Shortcuts

  • Sonyboy 14:31 on October 20, 2009 Permalink | Reply
    Tags: ,   

    Apache2 hangs with ‘Digest: generating secret for digest authentication’ 

    I was running Apache2+SSL on a VM (Virtual Machine).

    After enabling SSL and trying to add another SSL site, apache would refuse to restart and the following error would show up in /var/log/apache2.log

    Digest: generating secret for digest authentication

    After doing some research, it turns out that the VM did not have enough entropy to generate much of anything. Increasing this is easy, but may not be completely secure.

    $ cat /proc/sys/kernel/random/entropy_avail
    139

    I found that rng-tools could help me solve this.

    apt-get install rng-tools

    Start the service

    rngd -r /dev/urandom -o /dev/random

    After running rngd, the entropy will increase at a gradual rate.

    cat /proc/sys/kernel/random/entropy_avail
    2220

    If you want this to survive a reboot, you’ll need to put it in a startup script.

     
  • Sonyboy 22:38 on September 16, 2009 Permalink | Reply
    Tags: date, date and time, , time, xenserver   

    XenServer: Date/Time synchronization issues 

    By default, XenVMs have their clocks synchronized to the XenServer Host that hosts them and will ignore requests to adjust the time made by an ntp daemon if one is running. If you want a XenVM to have an independent clock, log on to its Text Console and issue the command

    echo 1 > /proc/sys/xen/independent_wallclock

    then run an NTP daemon.

    To revert to the default, issue the command

    echo 0 > /proc/sys/xen/independent_wallclock

    For more setting up an NTP on the XenServer please refer to the below kb article. Refer to the below kb article for “How to set up an NTP Server for a XenServer network”

     
  • Sonyboy 16:00 on June 23, 2009 Permalink | Reply
    Tags: apt, dpkg, , purge   

    HOWTO: Purge files from an already removed package 

    Simply use the following command:

    dpkg –purge PACKAGENAME

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel