NIX (unix OR”linux” OR”ubuntu” OR”kubuntu” OR”redhat” OR”debian” OR”centos” OR”fedora”)
See also:
- play/test distributions online: /nix-online
- distribution comparison: /nix-distro bit.ly/s_distro
- How To Set Up PC as a Router: /router-how-to
Install #
automaic / unattended installation of ubuntu #
- http://askubuntu.com/questions/122505/how-do-i-create-a-completely-unattended-install-of-ubuntu
- Completely-Automatic-Unattended-Install-of-Ubuntu-Auto-system-config-kickstart
multi systems selection #
multi-operating-system-installation
init after installation #
Boot & Reboot #
- linux, ubuntu emergency safe reboot
- Boot to text console terminal mode [Ubuntu Kubuntu Nix Linux]
- GRUB rescue mode
Common Performance Improvement Tools #
Git #
bit.ly/s_git
SSH #
bit.ly/s_ssh
Locale #
bit.ly/s_locale
Timezone #
rm /etc/localtime; ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime
reboot
see all available timezone: ls -R --group-directories-first /usr/share/zoneinfo
or lg /usr/share/zoneinfo
ref
Learning Linux Basics #
SELinux #
set right for apache/httpd: #
to disable selinux: #
http://www.thegeekstuff.com/2009/06/how-to-disable-selinux-redhat-fedora-debian-unix/
Configs #
Redhat 6:
- Language:
/etc/sysconfig/i18n
to “zh_CN.UTF8” - TimeZone:
/etc/sysconfig/clock
to “China/Shanghai”
SElinux > Allow apache to use remote DB: #
setsebool -P httpd_can_network_connect_db=1
SELinux > Allow apache /php to send email: #
sudo setsebool -P httpd_can_sendmail 1
## with the “-P” for persistent (across reboots).
Trouble shooting: #
"You have new mail ..."
: install mailx
updatedb / locate: command not found
: install mlocate
Install RHEL EPEL Repo on Centos 6 #
OBS: when installing CentOS, it is suggested to install the “with updates” version.
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
sudo vim /etc/yum.repos.d/remi.repo
enabled=1