Paperlined.org
hosting
document updated 21 years ago, on Jun 3, 2005
updatedb

vi /etc/apt/sources.list
    (add entries mentioned in http://www.redwoodvirtual.com/status.php)

apt-get update

vim ~/.cshrc
vim ~/.screenrc
vim ~/.vimrc



apt-get install vim
apt-get install screen
apt-get install tcsh
apg-get install less



vim /etc/squid/squid.conf

    # allow access from Motorola A920/A925/A1000/M1000
    acl Symbian_Phone browser -i Symbian
    http_access allow Symbian_Phone

    # turn off all caching
    acl all src 0/0
    no_cache deny all

    # change images so we know it's working
    redirect_program /etc/squid/redir.pl
    redirect_children 10

vim /etc/squid/redir.pl

    #!/usr/bin/perl

    $|++;

    while (<>) {
        s#^\S+(\.png|\.gif|\.jpg)\s#http://paperlined.org/img/cache/smiley$1 #i;
        print;
    }


vim /etc/ssh/sshd_config

    Port 22
    Port 443


apt-get install libdbd-sqlite2-perl
apt-get install sqlite 



apt-get install cron-apt

vim /etc/cron-apt/action.d/4-upgrade
    upgrade --assume-yes



apt-get install vnstat

vnstat -u -i eth0

    (before vnstat started running, ifconfig reported ~80MB of total up/down traffic...  so be sure
    to add that to June traffic (though that's only 0.4% of avaialble bandwidth, so it's almost not
    worth mentioning))



vim /home/root/.forward
    interiot@68k.org



vim /etc/inetd.conf
    comment out "time", "discard", and "daytime" services
/etc/init.d/inetd reload


apt-get install apache
apt-get install libapache-mod-perl
apt-get install php3 
apt-get install mysql-server

apache-modconf apache enable mod_asis




apt-get install unzip
apt-get install make
apt-get install ncftp
apt-get install gcc
apt-get install libc6-dev

cpan Time::HiRes
cpan HTML::TokeParser


todo:
    - get the thing to be more secure
        http://www.linode.com/forums/archive/o_t/t_1358/securing_your_linode.html

    - get DNS working on a free-DNS service?

        http://www.linode.com/forums/archive/o_t/t_834/how_to_set_up_dns_for_your_linode_using_zoneedit.html
        http://www.zoneedit.com/

            /usr/local/andromeda/DNS/named-master.conf
            /usr/local/andromeda/DNS/master/paperlined.org

    - get porn-bot working

    - get rsync backups working
    
        http://www.linode.com/forums/archive/o_t/t_403/offsite_backups_how_to.html





periodic tasks
    - apt-get update; apt-get upgrade

    - make sure free disk space is okay

    - make sure bandwidth is okay (vnstat -d, there shouldn't be more than 650MB of traffic per day)

    - make sure free swap space is okay (`free -mto`)

    - make sure listening ports are okay (netstat -a | grep '^tcp.*LISTEN' | grep -v localhost)

        *:www       apache webserver
        *:3128      squid proxy...  for M1000 testing ONLY (limited to user-agent)
        *:ssh       external SSH access
        *:https     external SSH access (eg. from work)