My RedHat Howto
Installation
notes:
- Include KDE (not in default installation.)
- Use LILO in MBR (LBA?)
Mounting Partitions
file:
/etc/fstab
add:
/dev/hda2 |
/mnt/d
|
vfat |
defaults,uid=mike,gid=mike,umask=0 |
0 |
0 |
//tiger/m |
/tiger/cdrom |
smbfs |
uid=mike,credentials=/etc/smb.cred |
0 |
0 |
/dev/hda1 |
/mnt/w2k |
ntfs |
defaults,ro |
0 |
0 |
verify:
mount /mnt/d ; mount /tiger/cdrom ;
mount /mnt/w2k
troubleshoot:
Modem/Sound Card (Combo Lucent Winmodem/Riptide Audio)
notes:
files:
- hcfpcimodem-0.98mbsibeta02110300k2.4.7_10-1rh.i686.rpm,
- riptide-0.4mbsibeta02110300k2.4.7_10-1rh.i686.rpm
command:
rpm -ivh hcfpci*rpm riptide*rpm
Network
file: /etc/sysconfig/network
replace:
HOSTNAME=jaguar
file: /etc/hosts
replace:
127.0.0.1
localhost localhost.localdomain jaguar
Ethernet ( LNE100TX)
file:/etc/modules.conf
add:
alias eth0 tulip
verify command:
insmod tulip
; depmod -a ; lsmod
Dial Up
note:
Use kppp, unable to get redhat's dialer to handshake.
Provider:
|
USOL |
Phone:
|
267-585-7827
215-539-7827 |
Password:
|
******** |
Gateway:
|
208.232.59.1 |
Primary
DNS:
|
208.232.58.2 |
Secondary DNS:
|
208.232.58.3 |
SMTP:
|
smtp.usol.com |
POP3:
|
pop3.usol.com |
News:
|
news.usol.com |
new file: /etc/ppp/ip-down.local
!/bin/bash
#script to set the default gateway for intranet only
route del
default gw 208.232.59.1
route add
default gw 192.168.0.254
new file: /etc/ppp/ip-up.local
!/bin/bash
#script to
set the default gateway for internet access
route del
default gw 192.168.0.254
route add
default gw 208.232.59.1
verify: when connected
route -n #verify gateway
netstat -i #should show eth0, lo, ppp0
host redhat.com #verify DNS
troubleshoot:
- if anything
fails, examine details in kppp,
- if needed,
drop firewall
Ntfs
notes:
I wasn't very successful with modules,
but I was able to recompile my kernel. Next time I'll eliminate
some modules. It works, but it was an extremely long compile for
the modules. It was also necessary to go back and get tarballs
for hcfpcimodem and riptide.
walkthrough:
su -l
(password)
cd /usr/src/linux-2.4.7-10
make clean
make mrproper
cp configs/kernel-2.4.7-i686.config .
make xconfig
(load kernel-2.4.7-i686.config, goto filesystems, select "y" for
ntfs (read only), "save and exit")
make dep
make bzImage
make install
make modules
make modules_install
(edit lilo to point to the new kernel)
lilo
reboot
Samba
Printer and file sharing for 'nix.
This is so you can share files with others on your network,
includings MS Windows boxes. NFS is the preferred method of file
sharing, but Windows doesn't support it out of the box.
file: /etc/samba/lmhosts
127.0.0.7
|
localhost
|
192.168.0.1
|
jaguar
|
192.168.0.5
|
tiger
|
file:
/etc/samba/smbusers
# Unix_name = SMB_name1 SMB_name2
...
root = administrator admin
nobody = guest pcguest smbguest
notes: This file maps everyone on the right of the equal sign from
outside to the user name on the left of the equal sign.
file: /etc/samba/smbpasswd
notes:
This file is generated using smbpasswd.
smbpasswd -a username
must be performed by root to allow users to access their accounts using
Samba.
For a user to change their Samba password they should use:
smbpasswd
file: /etc/samba/smb.conf
replace:
[global]
workgroup = SoftShoppe
add share:
[ myshare]
comment = Mary's and Fred's stuff
path = /usr/somewhere/shared
valid users = mary fred
public = no
writable = yes
printable = no
create mask = 0765
notes:
B
/etc/samba/smb.conf is pretty self
documenting, there are comments citing examples throughout the file.
Check the manual for smb.conf and smbclient as well.
Firewall
Redhat uses ipchains, and it can be
configured using firewall-config.
ipchains can be started and stopped with:
service ipchains start
and
service ipchains stop
My setup is:
Options:
ICMP
|
restricted
|
INPUT
|
accept
|
FORWARD
|
deny
|
OUTPUT
|
accept
|
Rules:
Chain
|
Action
|
SRC IP
|
PORT
|
LOG
|
Input
|
Accept
|
208.232.58.2
|
53
|
x
|
Input |
Accept |
208.232.58.3
|
53
|
x
|
Input |
Accept |
127.0.0.1
|
*
|
|
Input |
Deny
|
!
192.168.0.0/24
|
135:139
|
|
Input |
Deny |
!
192.168.0.0/24 |
21:500 |
x
|
Input |
Deny |
!
192.168.0.0/24 |
5000
|
|
Saturday, 13 April 2024 Michael J. Chappell Contact me at:
mcsuper5@freeshell.org