10 CentOS Video tutorials Play List
(Posted by michael holtz jr on May 2nd, 2013)
1: Downloading and Configuring Putty 6:31
2: Installing and Configuring SSH on CentOS 10:53
3: Adding a Service to Start on Boot with CentOS (Linux) 3:43
4: Adding a Single User to Sudo with CentOS (Linux) 4:21
5: Adding and Deleting a User in Linux 8:17
6: Installing and Configure VNC with CentOS (Linux) 16:48
7: INSTALLING AND CONFIGURING NO-IP CentOS (Linux) 12:25
8: CONFIGURING A STATIC IP CentOS (Linux) 11:02
9: INSTALLING and CONFIGURE KVM CentOS (LINUX) 37:59
10: SAMBA AS A DOMAIN CONTROLLER CENTOS (LINUX) 35:07
Verify the status of a service on Cent OS 6
(Posted on the video Tutorial 2: Installing and Configuring SSH on CentOS )
To check if a service (like ssh) is installed/running, type the commands below:
/sbin/service sshd status
If the service is running, will respond like this:
openssh-daemon (pid 3111) is running...
If the service is stoped, will respond like this:
openssh-daemon is stopped
If the service is NOT INSTALLED (or you type it's name wrong) will respond like this:
sshd: unrecognized service
Configure startup services on Cent OS 6
(Posted on the video Tutorial 3: Adding a Service to Start on Boot with CentOS)
To check all the services installed and configured to start on boot, type the commands below:
/sbin/chkconfig --list
To check all the services installed and configured to start on boot, type the commands below:
/sbin/chkconfig --list
You will see a list like this:
ntpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
ntpdate 0:off 1:off 2:off 3:off 4:off 5:off 6:off
postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off
restorecond 0:off 1:off 2:off 3:off 4:off 5:off 6:off
rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
saslauthd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
spice-vdagentd 0:off 1:off 2:off 3:off 4:off 5:on 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
udev-post 0:off 1:on 2:on 3:on 4:on 5:on 6:off
wdaemon 0:off 1:off 2:off 3:off 4:off 5:off 6:off
winbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off
wpa_supplicant 0:off 1:off 2:off 3:off 4:off 5:off 6:off
To configure any of the INSTALLED and listed services to start on boot type:
/sbin/chkconfig service-name on
For example, if you want ntpd to start on boot:
/sbin/chkconfig service-name on
if you don't want ntpd to start on boot:
/sbin/chkconfig service-name off
Installing the SSH server on Cent OS 6.5
(Based on a post on LinuxCasts.net)
To become root, type:
su -
Download and install the SSH server:
yum install openssh-server
Make a backup copy of the file /etc/ssh/sshd_config
cp -v /etc/ssh/sshd_config /etc/ssh/sshd_config.Original
Edit the file /etc/ssh/sshd_conf
vi /etc/ssh/sshd_conf
Uncomment this line
#ChangeLoginGraceTime 2m
and edit the time like this:
ChangeLoginGraceTime 40
Only uncomment this line to avoid logins with empty passwords:
#PermitEmptyPasswords no
Add this line to the end of the file (REMEMBER: user-name-to-allow must exist!)
AllowUsers user-name-to-allow
To save the file if you are using the vi editor:
press the next key scequence:
[Esc]
[Shift] and [:]
wq
[Enter}
chkconfig sshd on This will check if the ssh is set to start at boot time
service sshd restart This will restart the ssh server after changes are made
netstat -tupand Verify the network port/services to see if port number 22 and sshd are in the list
reboot Restart the computer (if necesary for you)
Edit iptables to allow ssh on CentOS 6
(Posted on the video Tutorial 2: Installing and Configuring SSH on CentOS )
To configure iptables to allow ssh connections, first:
vi /etc/sysconfig/iptables
Then add this line to iptables:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
Save the file. To apply the changes, restart the service:
/sbin/service iptables restart
(Posted on http://wiki.centos.org/HowTos)
1. Backups 2. Directory Services 3. Diskless Clients 4. E-Mail 5. Encryption 6. FTP 7. Webserver 8. Kernel 9. Network 10. Security
11. Remote X Sessions 12. Migration 13. Package Management 14. Virtualization 15. PXE 16. Storage devices, LogicalVolumeManagement
17. RAIDMisc 18. Non CentOS Applications 19. CentOS on Laptops 20. CentOS on Intel-based Apple computers 21. CentOS Guidelines
The Perfect Server - CentOS 6.5 x86_64 (for Web Hosting)
(Posted on http://wiki.centos.org/HowTos)