Differences between revisions 2 and 11 (spanning 9 versions)
Revision 2 as of 2003-10-30 21:13:12
Size: 1885
Editor: dsl-208-151-246-210
Comment:
Revision 11 as of 2003-10-30 22:36:06
Size: 7803
Editor: dsl-208-151-246-210
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
(These are rough notes taken by JeffWillard and from the actions of KeeganQuinn which will be hammered into a step by step recipe) (These are rough notes taken by JeffWillard and DarrinEden from the actions of KeeganQuinn which will be hammered into a step by step recipe)
Line 7: Line 7:
at boot prompt: "bf24" (start 2.4 kernel vs. 2.2)

select Language and
keyboard

hard disk (/dev/hda)
Create swap partition (128M)
Root partition --bootable (128Mb)
logic partition (.5 Gig)
2nd logic (.5 Gig)
home (whatever is left over)
---all FS type Linux exect swap---linux swap

Init swap partition
init pri (ext3)
mount root filesystem

repeat above for var,usr,and home

kernel install

configure device drivers
(devices/net)
nic (de4x5)

configure network ----

make system bootable --mbr

reboot

set time
set root pwd
remove pcmcia packages? yes

atp configuration ---edit by hand

"deb http://http.us.debian.or/debian unstable main" per Keegan: using unstable means just that..if you have issues....take a 24hr breather and attempt again

no additional sources
no security updates

run taskel? --no

deselect? --no

update configuration file? yes


Configuring debconf
select Readline
select medium
don't touch keymap
system wide readible directories? yes
serial--autosave once


upgrade glibc? Y

update system? yes

mail config?
/
5

mandb? --yes

rebuild database? --yes

erase any additional .deb files? --yes


"apt-get update"

"apt-get install deborphan"

"deborphan"

"dbkp -P <all packages listed ---space in between>"

"deborphan -a"

"dpkg -P <all packages you don't want>"

"deborphan -a"

repeat several times to ensure all packages are removed that you don't want





----NoCat Setup-------

To Be Continued............
 * at boot prompt: "bf24" (start 2.4 kernel vs. 2.2)
 * select Language and keyboard

 * hard disk (/dev/hda)
   * Create swap partition (128M)
   * Root partition --bootable (128Mb)
   * logic partition (.5 Gig)
   * 2nd logic (.5 Gig)
   * home (whatever is left over)
   * ''all FS type '''Linux''' exect '''swap''' which is '''linux swap''' ''
   * Init swap partition
   * init pri (ext3)
   * mount root filesystem
   * ''repeat above for var,usr,and home''

 * kernel install
   * configure device drivers
   * (devices/net)
   * nic (de4x5)

 * configure network

 * make system bootable --mbr

 * reboot

 * set time
 * set root pwd
 * remove pcmcia packages? yes
 * atp configuration ---edit by hand
   * "deb http://http.us.debian.or/debian unstable main"
   ''per KeeganQuinn : using unstable means just that..if you have issues....take a 24hr breather and attempt again''
   * no additional sources
   * no security updates
 * run taskel? --no
 * deselect? --no
 * update configuration file? yes


 * Configuring debconf
   * select Readline
   * select medium
   * don't touch keymap
   * system wide readible directories? yes
   * serial--autosave once

 * upgrade glibc? Y
 * update system? yes
 * mail config? 5
 * mandb? --yes
 * rebuild database? --yes
 * erase any additional .deb files? --yes


 * "apt-get update"
 * "apt-get install deborphan"
 * "deborphan"
 * "dbkp -P <all packages listed ---space in between>"
 * "deborphan -a"
 * "dpkg -P <all packages you don't want>"
 * "deborphan -a"
   * ''repeat several times to ensure all packages are removed that you don't want''




''' NoCat Setup '''

Here's the raw capture of the stuff I did to the second box. There's a little fu that didn't get captured in a vi session, but forthe most part...

 * "clear"

 * "/sbin/ifconfig -a"[[br]]
{{{''eth0 Link encap:Ethernet HWaddr 00:C0:F0:17:74:F6
          inet addr:192.168.100.3 Bcast:192.168.100.255
           Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
           RX packets:2092 errors:0 dropped:0 overruns:0 frame:0
           TX packets:1102 errors:0 dropped:0 overruns:0 carrier:0
           collisions:2 txqueuelen:100
           RX bytes:2948521 (2.8 MiB) TX bytes:78364 (76.5 KiB)
           Interrupt:10 Base address:0xe880

eth1 Link encap:Ethernet HWaddr 00:00:F8:04:F2:9F
           BROADCAST MULTICAST MTU:1500 Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:100
           RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
           Interrupt:11 Base address:0xec00

lo Link encap:Local Loopback
           inet addr:127.0.0.1 Mask:255.0.0.0
           UP LOOPBACK RUNNING MTU:16436 Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)''}}}

 * "sudo su -"

{{{''We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:

         #1) Respect the privacy of others.
         #2) Think before you type.

Password:''"""

 * "exit"
 * "logout"
 * "sudo -s"
 * "clear"
 * "apt-get install snmpd dnsmasq"
 * "apt-get install perl make gnupg"
 * "deborphan -a"

{{{''main/admin sudo
main/net ssh
main/admin pciutils
main/utils fileutils
main/utils shellutils
main/utils textutils
main/utils gnupg
main/net dnsmasq
main/net snmpd
main/base lilo
main/net iptables
main/devel make
main/editors nvi
main/admin deborphan''}}}




 * "lynx http://www.nocat.net"
   * Download the nightly build of '''NoCatAuth'''
   * exit lynx
 * "tar xvfz NoCatAuth-nightly.tgz"


 * apt-get install wget
 * wget http://rune.thebasement.org/~ice/tmp/stable-01.patch
 * apt-get install patch
 * patch -p1 < ../stable-01.patch
 * vi /etc/kernel-img.conf
{{{ ''do_symlinks = No
do_initrd = Yes

postinst_hook = /sbin/update-grub
postrm_hook = /sbin/update-grub
do_bootloader = No''}}}

 * apt-get install kernel-image-2.4-K6
 * dpkg -P lilo
 * apt-get install grub
 * update-grub
{{{''Searching for GRUB installation directory ... found: /boot/grub .
 Testing for an existing GRUB menu.list file...

Could not find /boot/grub/menu.lst file. Would you like
/boot/grub/menu.lst generated for you? (y/N) y
Found kernel: /boot/vmlinuz-2.4.22-1-k6
Found kernel: /boot/vmlinuz-2.4.18-bf2.4
Updating /boot/grub/menu.lst ... done''}}}

 * update-grub
 * reboot


 * uname -a
 * sudo -s
 * apt-get install ssmtp
    * Automatically overwrite config files? y
    * Who gets mail for userids < 1000? dje
    * Name of your mailhub? mail.personaltelco.net
    * What domain to masquerade as? personaltelco.net
    * Allow override of From: line in email header? y

 * deborphan
 * dpkg -P libident libpcre3

>(Reading database ... 8790 files and directories currently installed.)
>Removing libident ...
>Removing libpcre3 ...
>Purging configuration files for libpcre3 ...
>root@number-two:~# deborphan
>root@number-two:~# pwd
>/home/dje
>root@number-two:~# ls
>NoCatAuth-nightly stable-01.patch
>root@number-two:~# cd NoCatAuth-nightly/
>root@number-two:~/NoCatAuth-nightly# ls
>BUGS Makefile TODO cgi-bin gateway.conf libexec
>upgrade-0.80-db.pl
>INSTALL NEWS authserv.conf doc htdocs pgp
>LICENSE README bin etc lib test.sh
>root@number-two:~/NoCatAuth-nightly# make gateway
>Looking for gpgv...
>Checking for firewall compatibility: /sbin/iptables found.
>libexec/iptables/access.fw -> bin/access.fw
>libexec/iptables/clear.fw -> bin/clear.fw
>libexec/iptables/clear.fw -> bin/clear.fw
>libexec/iptables/dump.fw -> bin/dump.fw
>libexec/iptables/initialize.fw -> bin/initialize.fw
>libexec/iptables/reset.fw -> bin/reset.fw
>libexec/iptables/throttle.fw -> bin/throttle.fw
>/sbin/iptables -> bin/iptables
>[ -d /usr/local/nocat ] || mkdir -p /usr/local/nocat
>chmod 755 /usr/local/nocat
>[ -d /usr/local/nocat/htdocs ] || cp -R htdocs /usr/local/nocat
>cp -R bin /usr/local/nocat
>Installing NoCat to /usr/local/nocat...
>cp -R lib pgp /usr/local/nocat
>[ -f /usr/local/nocat/nocat.conf ] || \
> perl -pe 's#/usr/local/nocat#/usr/local/nocat#g' gateway.conf \
> > /usr/local/nocat/nocat.conf
>
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Congratulations!
> NoCat gateway is installed. To start it, check
> /usr/local/nocat/nocat.conf, then run bin/gateway
> as root.
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
>root@number-two:~/NoCatAuth-nightly# shutdown -h now
>
>Broadcast message from root (pts/0) (Tue Oct 28 13:39:32 2003):
>
>The system is going down for system halt NOW!
>root@number-two:~/NoCatAuth-nightly# Connection to 192.168.100.3 closed

>by remote host.
>Connection to 192.168.100.3 closed.
>Darrin-Edens-Computer:~ dje$











Here Is will be the step needed to install a clean, effecient and viable install of Debian, NoCat and related apps to turn a NewCloneArmyBox into a powerfull node on the PTPnet

(These are rough notes taken by JeffWillard and DarrinEden from the actions of KeeganQuinn which will be hammered into a step by step recipe)

The Debian Install

  • at boot prompt: "bf24" (start 2.4 kernel vs. 2.2)
  • select Language and keyboard
  • hard disk (/dev/hda)
    • Create swap partition (128M)
    • Root partition --bootable (128Mb)
    • logic partition (.5 Gig)
    • 2nd logic (.5 Gig)
    • home (whatever is left over)
    • all FS type Linux exect swap which is linux swap

    • Init swap partition
    • init pri (ext3)
    • mount root filesystem
    • repeat above for var,usr,and home

  • kernel install
    • configure device drivers
    • (devices/net)
    • nic (de4x5)
  • configure network
  • make system bootable --mbr
  • reboot
  • set time
  • set root pwd
  • remove pcmcia packages? yes
  • atp configuration ---edit by hand
  • run taskel? --no
  • deselect? --no
  • update configuration file? yes
  • Configuring debconf
    • select Readline
    • select medium
    • don't touch keymap
    • system wide readible directories? yes
    • serial--autosave once
  • upgrade glibc? Y
  • update system? yes
  • mail config? 5
  • mandb? --yes
  • rebuild database? --yes
  • erase any additional .deb files? --yes
  • "apt-get update"
  • "apt-get install deborphan"
  • "deborphan"
  • "dbkp -P <all packages listed ---space in between>"

  • "deborphan -a"
  • "dpkg -P <all packages you don't want>"

  • "deborphan -a"
    • repeat several times to ensure all packages are removed that you don't want

NoCat Setup

Here's the raw capture of the stuff I did to the second box. There's a little fu that didn't get captured in a vi session, but forthe most part...

  • "clear"
  • "/sbin/ifconfig -a"br

{{{eth0 Link encap:Ethernet HWaddr 00:C0:F0:17:74:F6

  • inet addr:192.168.100.3 Bcast:192.168.100.255

    • Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2092 errors:0 dropped:0 overruns:0 frame:0 TX packets:1102 errors:0 dropped:0 overruns:0 carrier:0 collisions:2 txqueuelen:100 RX bytes:2948521 (2.8 MiB) TX bytes:78364 (76.5 KiB) Interrupt:10 Base address:0xe880

eth1 Link encap:Ethernet HWaddr 00:00:F8:04:F2:9F

  • BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:11 Base address:0xec00

lo Link encap:Local Loopback

  • inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)}}}

  • "sudo su -"

{{{We trust you have received the usual lecture from the local System Administrator. It usually boils down to these two things:

  • #1) Respect the privacy of others. #2) Think before you type.

Password:"""

  • "exit"
  • "logout"
  • "sudo -s"
  • "clear"
  • "apt-get install snmpd dnsmasq"
  • "apt-get install perl make gnupg"
  • "deborphan -a"

{{{main/admin sudo main/net ssh main/admin pciutils main/utils fileutils main/utils shellutils main/utils textutils main/utils gnupg main/net dnsmasq main/net snmpd main/base lilo main/net iptables main/devel make main/editors nvi main/admin deborphan}}}

{{{ do_symlinks = No do_initrd = Yes

postinst_hook = /sbin/update-grub postrm_hook = /sbin/update-grub do_bootloader = No}}}

  • apt-get install kernel-image-2.4-K6
  • dpkg -P lilo
  • apt-get install grub
  • update-grub

{{{Searching for GRUB installation directory ... found: /boot/grub .

  • Testing for an existing GRUB menu.list file...

Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y Found kernel: /boot/vmlinuz-2.4.22-1-k6 Found kernel: /boot/vmlinuz-2.4.18-bf2.4 Updating /boot/grub/menu.lst ... done}}}

  • update-grub
  • reboot
  • uname -a
  • sudo -s
  • apt-get install ssmtp
    • Automatically overwrite config files? y
    • Who gets mail for userids < 1000? dje

    • Name of your mailhub? mail.personaltelco.net
    • What domain to masquerade as? personaltelco.net
    • Allow override of From: line in email header? y
  • deborphan
  • dpkg -P libident libpcre3

>(Reading database ... 8790 files and directories currently installed.) >Removing libident ... >Removing libpcre3 ... >Purging configuration files for libpcre3 ... >root@number-two:~# deborphan >root@number-two:~# pwd >/home/dje >root@number-two:~# ls >NoCatAuth-nightly stable-01.patch >root@number-two:~# cd NoCatAuth-nightly/ >root@number-two:~/NoCatAuth-nightly# ls >BUGS Makefile TODO cgi-bin gateway.conf libexec >upgrade-0.80-db.pl >INSTALL NEWS authserv.conf doc htdocs pgp >LICENSE README bin etc lib test.sh >root@number-two:~/NoCatAuth-nightly# make gateway >Looking for gpgv... >Checking for firewall compatibility: /sbin/iptables found. >libexec/iptables/access.fw -> bin/access.fw >libexec/iptables/clear.fw -> bin/clear.fw >libexec/iptables/clear.fw -> bin/clear.fw >libexec/iptables/dump.fw -> bin/dump.fw >libexec/iptables/initialize.fw -> bin/initialize.fw >libexec/iptables/reset.fw -> bin/reset.fw >libexec/iptables/throttle.fw -> bin/throttle.fw >/sbin/iptables -> bin/iptables >[ -d /usr/local/nocat ] || mkdir -p /usr/local/nocat >chmod 755 /usr/local/nocat >[ -d /usr/local/nocat/htdocs ] || cp -R htdocs /usr/local/nocat >cp -R bin /usr/local/nocat >Installing NoCat to /usr/local/nocat... >cp -R lib pgp /usr/local/nocat >[ -f /usr/local/nocat/nocat.conf ] || \ > perl -pe 's#/usr/local/nocat#/usr/local/nocat#g' gateway.conf \ > > /usr/local/nocat/nocat.conf > >-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Congratulations! > NoCat gateway is installed. To start it, check > /usr/local/nocat/nocat.conf, then run bin/gateway > as root. >-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > >root@number-two:~/NoCatAuth-nightly# shutdown -h now > >Broadcast message from root (pts/0) (Tue Oct 28 13:39:32 2003): > >The system is going down for system halt NOW! >root@number-two:~/NoCatAuth-nightly# Connection to 192.168.100.3 closed

>by remote host. >Connection to 192.168.100.3 closed. >Darrin-Edens-Computer:~ dje$

NewCloneArmyInstallMethodology (last edited 2007-11-23 18:01:02 by localhost)