1. How to install program

1.1 via rpm

# rpm –ivh …rpm   # install

# rpm –qa squid    # check squid

1.2 via tar 

# tar cvf 123.tar *.*

# tar xvf …

# tar -zxvf …tar.gz

# ./configure

# make

# make install

1.3 via yum 

# yum list available

# yum update

# yum check-update

# yum info

# yum search DNS

/etc/crontab –e  # auto-email alert

0 6 * * * list=’yum check-update’ ; [ “$?” = “0” ] || echo –e “$list”

2. Install Squid by webmin   (web poxy)

yum install squid

Setup auto-start on webmin

Open port 3128 on firewall

Close SELinux

3. Install Telnet by webmin

Or Install by yum

  1. “su” to root
  2. Install the telnet-server application with the command: “yum install telnet-server.”
  3. systemctl start telnet.socket
  4. systemctl enable telnet.socket     # run on boot
  5. systemctl status telnet.socket
  6. Edit /etc/xinetd.d/telnet and added “disabled=no”
  7. Netstat –t –a –p |grep xinetd
  8. telnet localhost

4. Install VNC

# yum install tigervnc-server

# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@\:10.service

Edit <USER> on vncserver@:10.service

#firewall-cmd –permanent –zone=public –add-service vnc-serverLogin user# vncpasswd# ls -l /home/qatest/.vnc/-rw——-. 1 qatest qatest     8 Feb 20 17:55 passwd

Now reload the systemctl daemon and start the VNC service.

[root@fedora20test ~]#  systemctl daemon-reload[root@fedora20test ~]#  systemctl enable vncserver@:10.service[root@fedora20test ~]#  systemctl start vncserver@:10.service

This will create an xstartup under the .vnc directory of the specific user account.

[root@fedora20test ~]# ls -l /home/qatest/.vnc/-rw——-. 1 qatest qatest     8 Feb 20 17:55 passwd-rwxr-xr-x. 1 qatest qatest   355 Feb 20 17:11 xstartup

IF you need to set the resolution for the VNC desktop, please edit “/etc/sysconfig/vncservers”

[root@fedora20test ~]#  vi /etc/sysconfig/vncservers

After editing please restart the VNC service.

Now connect from a Windows machine using the VNC client, say for example I have used TightVNC.

If everything goes right, you will get a password prompt as below.

# vncpasswd

Edit  /etc/sysconfig/vncservers

VNCSERVERS=”2:root”

Connect with   localhost.2

5. Install FTP

#mount /dev/cdrom /mnt

# cd /mnt/Packages/v

# rpm –ivh vsftpd-3.0.2.1.fc18.i686.rpm

# vi /etc/vsftpd/vsftpd.conf

# systemctl restart vsftpd.server

6. Install Mailing Function

Check Name server

# host –t mx keetat.cn

# yum install sendmail

# Systemctl start sendmail.service

# systemctl enable sendmail.service

Edit /etc/mail/sendmail.cf

….

Connect:keetat.cn   RELAY

Connect:192.168.1   RELAY

….

# /etc/mail/make

CHECK

# telnet localhost 25

# ps x |grep sendmail

# mailq

Install POP/IMAP Server

# yum install dovecot

# systemctl start dovecot.service

7. Adding Swap Area

Create Swap Area by adding Disk Partition (or swap file)

# fdisk /dev/sda

parameter :   P / N / E / L  / w

# mkswap /dev/sda5

# swapon /dev/sda5

# free

Create another swap area

# dd if=/dev/zero of=/tmp/myswap bs=32k count=8192

# mkswap /tmp/myswap

# swapon /tmp/myswap

Check via     # df -k

8. Edit password and Host info

# /etc/passwd

# /etc/hosts

# /etc/hosts.allow

# /etc/hosts.deny

9. Disk and Network usage command

/etc/crontab -e

# netstat -nl | grep tcp

# df -h

# who

# w

# mount /dev/cdrom /media/cdrom

# /etc/fstab

Setup Network Address and Restart

# /etc/rc.d/init.d/network restart

Check network configuration

# ifconfig

10. Shutdown command

# shutdown –h +1

# shutdown –r now

11. Useful Features under Fedora

Evolution –>  email client program

Samba  –>  File & Printer Sharing

FileZilla –>  File Server

Sendmail/POP3/IMAP –> Mail Server

Vsftp.service –>  FTP Server

www Mgt Env –> Webmin

www Server –> Apache

SELinux –> Security Enhancement

For beginner, it is better to disable SELINUX by edit /etc/sysconfig/selinux with the following line

SELINUX=disabled

12. Useful Reference web site:

http://sourceforge.net

http://freecode.com

http://rpmfind.net/

https://bugzilla.redhat.com