wget in ubuntu

28 01 2009

at least its called ‘wget’

apt-get install wget





inetd

28 01 2009

it just gets better and better:

apt-get install inetutils-inetd

aparently a zealotry for it’s own sake forbids xinetd, so install neither!





enabling apache ssl on ubuntu

28 01 2009

does the insanity never stop?

# a2enmod ssl
# a2ensite default-ssl

see http://ubuntuforums.org/archive/index.php/t-4466.html





getting ’service’ and ‘chkconfig’ on Ubuntu

28 01 2009

typing /etc/init.d/apache2 restart is too much work, and sloppy

yet another Ubuntu shortcoming. Fix it with an optional tool (because sysadmins aren’t supposed to use Ubunut):

# apt-get install sysvconfig
# service apache2 status
* Apache is running (pid 8914).

#service apache2 restart
* Restarting web server apache2
… waiting .

Running it through service gives you a bit more feedback than calling the init.d script directly.

See:
https://help.ubuntu.com/community/SwitchingToUbuntu/FromLinux/%20RedHatEnterpriseLinuxAndFedora

Chkconfig is a bit more difficult. The alternatives are:

# update-rc.d
# sysv-rc-conf

The latter needs installed:

# apt-get install sysv-rc-conf

The former is byzantine, and I’m not even sure how it works or if it does what I want. It’s not a drop-in replacement for chkconfig.

see http://ubuntuforums.org/archive/index.php/t-20583.html





ubuntu www-data user should be apache

28 01 2009

or something sane:

usermod -l apache www-data
groupmod -n apache www-data

I wonder is there are any other hidden snags — like file user and group permissions?