Reset root password on CentOS 7
Posted by blackonsole on April 8th, 2018 02:37 PM | No Comment
Edit boot menu on-the-go
0. reboot the CentOS 7 and press ESC when GRUB menu show up on the screen and press "e"
1. find "ro" on "linux16" section and then change to "rw init=/sysroot/bin/sh"
2. press "CTRL + x" to reboot CentOS ...
CentOS :: Simple Pound Load Balancer
Posted by blackonsole on April 12th, 2014 01:19 AM | No Comment
:: Whatis Pound
Pound Load Balancer - HTTP/HTTPS reverse-proxy and load-balancer
:: How to install Pound Load Balancer
yum -y install Pound
:: Simple forward all traffic in Pound Load Balancer
Forward all incoming HTTP and HTTPS traffic to 10.10.1.3 in port 80 and 10.10.2.4 ...
CentOS :: Setting User Can Access FTP Only
Posted by blackonsole on September 19th, 2013 04:20 AM | No Comment
:: What's this
FTP is a standard network protocol used to transfer files from one host to another host over a TCP-based network.
:: How to setup user can access ftp only without shell access
+ Disable shell access for user
vi /etc/passwd
change /bin/bash ...
CentOS :: Increase tmpfs / shm size
Posted by blackonsole on September 9th, 2013 09:00 AM | No Comment
:: What's tmpfs
tmpfs is a common name for a temporary file storage facility on many Unix-like operating systems.
:: How to increase tmpfs or /dev/shm size
+ See current size
df -h
some like this
df -h
Filesystem ...
Postfix :: Relay Email to Google Apps / Gmail
Posted by blackonsole on August 27th, 2013 12:28 PM | No Comment
:: What's Postfix
Postfix is free and open source mail transfer agent.
:: How to setup Postfix relay email to Google Apps / Gmail in CentOS 6.3
+ Setup main.cf to relay email
vi /etc/postfix/main.cf
add some configure like these:
relayhost = :587
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps = hash:/etc/postfix/gmail
smtp_sasl_security_options =
smtp_sasl_tls_security_options ...
CentOS :: Setting Varnish, Nginx for WordPress
Posted by blackonsole on July 15th, 2013 03:01 AM | 1 Comment
:: How to setting Varnish and Nginx for WordPress cms in Linux CentOS
+ Enable Varnish and Nginx repository
rpm --nosignature -i //repo.varnish-cache.org/redhat/varnish-3.0/el5/noarch/varnish-release-3.0-1.noarch.rpm
rpm -Uvh //nginx.org/packages/rhel/6/noarch/RPMS/nginx-release-rhel-6-0.el6.ngx.noarch.rpm
+ Installing Varnish and Nginx
yum install varnish nginx php-fpm
+ Configure Nginx for WordPress
make sure change Nginx port ...
CentOS 6.3 :: Setup VNC Server
Posted by blackonsole on February 9th, 2013 01:00 PM | No Comment
:: What is vnc
VNC is a graphical desktop sharing system that uses the remote framebuffer protocol to remotely control another computer.
:: How to install vnc server in CentOS 6.3
yum groupinstall Desktop
yum install tigervnc-server xorg-x11-fonts-Type1
:: How to setup vnc server in ...