# This is an automated script to install the 'essentials' package # to execute it, cd to /content/sw and type './insessentials' # The first section of this installer enables an anonymous ftp server # if you don't want it, delete the lines up to the --end of ftp section-- # you still need to edit /etc/passwd replace ftp's "/home/ftp" with # "/content/ftp" to make ftp work. # Revision History # Version 1.0 Lee Devlin 4-7-2004 tar xzvf DECanonftp.tgz rpm -i wu-ftpd-2.6.1-7mdk.i586.rpm rpm -i --force setup-2.1.9-22mdk.noarch.rpm rpm -i anonftp-3.0-14mdk.i586.rpm echo "ftpadmin:x:96" >>/etc/group echo "ftpadmin:x:96:96::/content/ftp:" >>/etc/passwd cp -R /var/ftp/* /content mkdir /content/incoming chown ftpadmin:ftpadmin /content/incoming chmod 777 /content/incoming chmod 777 /content/imported/tmp chmod 644 /content/music/ripped/* echo "upload /content * no" >>/etc/ftpaccess echo "upload /content /imported/tmp yes ftpadmin ftpadmin 0444 nodirs" >>/etc/ftpaccess echo "upload /content /imported/tmp/* yes ftpadmin ftpadmin 0444 nodirs" >>/etc/ftpaccess echo "upload /content /incoming yes ftpadmin ftpadmin 0444 dirs 777" >>/etc/ftpaccess echo "upload /content /incoming/* yes ftpadmin ftpadmin 0444 dirs 777" >>/etc/ftpaccess # -- end of anonymous ftp section chmod 777 *.pl chmod 777 wheream cp wheream /usr/local/bin mkdir /content/exported-music/mappings /content/sw/friendly_links.pl -suv rpm -i DECpoweroff-1.0-1.rpm rpm -i apache-1.3.27-1dec.i686.rpm rpm -i apache-devel-1.3.27-1dec.i686.rpm rpm -i apache-manual-1.3.27-1dec.i686.rpm rpm -i perl-5.600-4mdk.i586.rpm rpm -i mod_perl-1.27-1dec.i686.rpm rpm -i lame-3.92-1dec.i686.rpm rpm -i perl-Audio-Wav-0.02-1dec.noarch.rpm rpm -i perl-I18N-LangTags-0.27-1dec.noarch.rpm rpm -i perl-Locale-Maketext-1.03-1dec.noarch.rpm rpm -i perl-MP3-Info-1.01-1dec.noarch.rpm rpm -i perl-Apache-MP3-3.03-1dec.noarch.rpm rpm -i perl-Apache-MP3-Skin-0.91-1dec.noarch.rpm cp index.html /usr/local/apache/htdocs cp remote.cgi /usr/local/apache/cgi-bin chmod 4755 /usr/X11R6/bin/xwd chmod 4755 /opt/odin/dec/bin/press chmod 4755 /usr/local/apache/cgi-bin/remote.cgi echo "AddType audio/mpeg mp3 MP3" >> /usr/local/apache/conf/httpd.conf echo "AddType audio/playlist m3u M3U" >> /usr/local/apache/conf/httpd.conf echo "" >> /usr/local/apache/conf/httpd.conf echo "SetHandler perl-script" >> /usr/local/apache/conf/httpd.conf echo "PerlHandler Apache::MP3" >> /usr/local/apache/conf/httpd.conf echo "" >> /usr/local/apache/conf/httpd.conf cd /usr/local/apache/htdocs rm mp3 ln -s /content/exported-music/mappings mp3 #start Apache /usr/local/apache/bin/httpd cd /etc/rc.d/rcb5.d ln -s ../init.d/httpd S85httpd echo "0,15,30,45 * * * * /content/sw/stat.pl" >> /etc/cron.fiji/fiji.cronjobs # execute an 'init 6' command to finish installing the power off kernel # That will reboot the dec. # Caution, if you run this script more than once, the 'echo' commands will # continue to append those lines to the files, so you should go in and # delete the extra copies of those lines.