|
Sample Unix Files...
Install Notes
create dos primary partition for part of the disk
fdisk
create boot & rootdisks
cd cdrom:bootdsks.144
rawrite bare.i a: OR rawrite scsi.s a:
cd \rootdsks
rawrite color.gz a:
boot with boot disk
login: root
fdisk /dev/hda
p - print existing partition table
n - new partition
p - primary
2 - second partition
+16M
p
w - write
mkswap -c /dev/hda2 17136
swapon /dev/hda2
fdisk /dev/hda
t - type
2 - Partiton number
82- Hex code
w
# Create Main Linux Partiton
n - New partition
p
3 - Number 3
<+xM>
# Specify active partition
a - toggle boot flag
3 - partition 3 on
a -
1 - partition 1 off
w - write partition info to disk
reboot
===========
setup
A - add swap
yes
T - select target
F - format
4 - 1 inode per 4096 bytes
# DOS AND OS/2 PARTITION SETUP
# Would you lek to make some of these partition visible from Linux?
Y
/dev/hda1
dosc
q - Quit
# Goto Source?
Y
5 - instal from CD-ROM
1 - ATAPI
j
# DISK SETS?
Y
pick sets...
# Install section
Y
N - use the default tagfiles for werbose prompting
You need to reboot somewhere in there.
=============
Configure X
=============
Monitor Questions:
- Valid horizontal sync
31.5 - 79.0; Monitor can do 1280 x 1024 @ 74 ( pg 15 )
; Monitor can do 800 x 600 @ 120
- Vertical Sync Range
50-90
- 207 Orchid Video 3D
xf86config
# make X point to the correct X server binary
ln -sf /usr/X11R6/bin/XF86_S3 /usr/X11R6/bin/X
/usr/X11R6/bin/X --> /var/X11R6/bin/X --> /usr/X11R6/bin/XF86_S3
Config file goes in /usr/X11R6/lib/X11
Choose Generic 102 instead of 101
How do I change resolutions on the fly?
ctrl-alt numeric +, ctrl-alt numeric -
ctrl-alt-backspace - exit server
How do I set the default resolution?
How do I remove the virtual screen?
Where are the postscript X documents?
=========
/etc/csh.cshrc <-- store global logins
/etc/passwd <-- change default shell for root
Where are the how to documents?
netconfig - to configure network
======
vi Documentation/networking/alias.txt
vi /Documentation/filesystems/smbfs.txt
======
How do I mount the cd-rom?
mount /dev/hda1 /mnt
How do I mount the floppy drive?
ls -l /dev/cdrom
mount /dev/hdc /cdrom # IDE
mount /dev/scd0 /cdrom # SCSI
mount /dev/cdrom /cdrom
mount /dev/sda4 /zip
sd3=cdrom
sd5=zip
======
Compile a new kernel
----------
uname -r # prints out the current kernel version
mv linux to linux-2.0.10 # give the source tree a version number
LILO: mount root=/dev/hda1
Multicast must be compiled in to support a DHCP server
To support alias for ip's, it needs to be specified in 2 TWO places.
cd /usr/src/linux
make mrproper # removes .o
make config OR make menuconfig OR make xconfig
make dep
make clean
1) make zImage # will compile th kernel and leave a file in arch/i386/boot called zImage
or
2) make zdisk # same think but also places the new xImage on a floppy drive
Installing Kernel
------------------
vi /etc/lilo.conf
cp arch/i386/boot/zImage /vmlinuz
/sbin/lilo
In config server:
-----------------
Loopback device support:
mount a file as a file system ( in kernel config )? How?
Network firewalls
IP masquerading
/proc filesystem
ipfwadm - ip firewall admin tool
PERL MODULES
1) MIME
2) MD5
3) IO
4) DataDumper
5) libnet
6) SSLeay
7) SSLeay.pm
8) libwww-perl
mkfs - to format a disk
PPP
=====
/etc/resolv.conf
------
domain your.isp.domain.name
nameserver 1.1.1.1
nameserver 1.1.1.1
-------
/etc/host.conf
--------
order hosts,bind
multi on
--------
dmesg - show messages from bootup
IP aliasing
ifconfig eth0:0 208.199.120.8 netmask 255.255.255.0 up
route add -net 208.199.120.0 netmask 255.255.255.0 eth0:0
PPP/Serial Notes
/dev/cua0 = com1
Serial line is looped back with local echo
Look at errors in /etc/ppp and /usr/adm/messages or /var/log/messages
Octal dump as hex
=====================
od -Ax -tx1 -c file
perl
=====================
open FILE, "< $allfiles[$i]";
binmode FILE;
read FILE,$buf,4;
close FILE;
print "H* :",unpack("H*",$buf),"\n";
|