Sabtu, 17 November 2007

Installing Fedora Core 4 Linux

Fedora Core 4:
Install Linux, enable ftp, enable telnet, allow www access.

Boot from the first CD - use text mode by typing

linux text

follow the prompts ..

Using Disk Druid, set up
Mount Points, ext3 (except for swap)

/ 400 mb
/tmp 2Xmemory, swap
/var 1000 mb +
/home 500 mb +
/usr 4000 mb
/usr/src 1000 mb
/web 1000 mb
/opt 1000 mb
/data 1000 mb
/app 1000 mb
/backup 1000 mb
/usr/local 1000 mb

The next set of instructions assumes you’ve set up the server,
and have rebooted into text-console mode.

Log in as root.

0) Common commands required:

service xinetd restart

1) Change run level to 3, starting in graphical mode is for wussies.

/etc/inittab

2) optional FTP daemon.

cd /etc/init.d

./vsftpd start

3) Replace with custom script.

/etc/sysctl.conf

4a) Enable FTP

/etc/xinetd.d/gssftp

Remove -a
disable = no

4b) Enable telnet (also need to install this via yum)

/etc/xinetd.d/krbs.telnet

disable = no

4c) Disable SSH root login. There are asswipes in Scandinavia who
will try to hack into your system; it is best to
disable this setting.

/etc/ssh/sshd_config.conf

AllowRootLogin no

4d) Set up sendmail

Edit sendmail.cf in /etc/mail, alter SMTP setting

make the sendmail.mc file

4e) Edit the hosts file

Add your hosts, with the eth0 address. This prevents the
telnet and FTP hang issue.

5) Add a nice message for login screen.

/etc/motd

6) Add call to /opt/scripts/autostart.sh

/etc/rc.d/rc.local

7) Setup gateway definition, routes.

/opt/scripts/autostart.sh

Add routes:
route add -host 192.168.1.64 dev eth0
route add default gw 192.168.1.64
route del default gw 192.168.1.254

8) Check network config.

/etc/sysconfig/network-scripts

Edit eth0 file, add default gatway: GATEWAY=
Change boot setting: ONBOOT=no

Edit resolv.conf .. add DNS settings

9) Customize init settings.

/etc/init.d

Disable sendmail, kudzu, apmd, ???

For internal server, disable iptables

10) Set up autostart, firewall setup.

/opt/scripts/firewall30.sh

- Add ifup eth0 to autostart.sh
- Add to autostart.sh: call to /opt/scripts/firewall.sh
- Create firewall.sh with custom script

11) Use YUM to update C libraries

- add Yum repository
- yum update gcc
- yum update glibc

11) Install compat libraries (Fedora CD #3)

compat-libstdc++*.rpm

12) Install Java

java.sun.com/j2se/1.4.2/download.html

13) Optional: update LD config

/etc/ld.so.conf (add library dirs for Sybase lib)

/sbin/ldconfig

Notes
————————————————————-

Telnet Server Install

yum install xinetd telnet-server
chkconfig xinetd on
chkconfig telnet on
service xinetd start

** Additionally, you must open port 23 in the firewall (iptables)

yum commands:

yum list xxxxxxx e.g. tnsclient-0.2.3
yum search xxxxxxx e.g. PalmPilot

yum install xxxxxx
yum groupinstall xxxxxxx
yum update xxxxxx
yum groupupdate xxxxxxx

yum update # Full System Update

# Daily, 4am update
/sbin/chkconfig –level 345 yum on; /sbin/service yum start

There is no separate yum service that runs on your system. The command
given above enables the control script /etc/rc.d/init.d/yum.
This control script activates the script /etc/cron.daily/yum.cron,
which causes the cron service to perform the system update automatically
at 4am each day.

Set up RHN Key

rpm –import /usr/share/rhn/RPM-GPG-KEY-fedora

Set up special repository key

rpm –import http://www.therepository.com/GPG-PUB-KEY.asc

Simple local install

yum localinstall tsclient-0.132-4.i386.rpm

Cleanup

yum clean headers
yum clean headers

Redhat 7.X Notes
————————————————————-

telnet

Edit the file /etc/xinetd.d/telnetd
changing the two lines to:
# default: on
disabled = no
then try doing this
/etc/rc.d/init.d/xinetd restart

ftp

Edit the file /etc/xinetd.d/wu-ftpd
changing the two lines to:
# default: on
disabled = no
then run the command
/etc/rc.d/init.d/xinetd restart

GLIBC
———————————————–
ldd –version
/lib/libc.so.6 | head -1

rpm2cpio ../libstdc++-3.2.2-5.i386.rpm | cpio -idv

LANG=C
LD_ASSUME_KERNEL=2.4.1

Tidak ada komentar: