Showing posts with label CentOS. Show all posts
Showing posts with label CentOS. Show all posts

Thursday, April 21, 2016

Thursday, August 20, 2015

Setup ConfigServer Security and Firewall (CSF) on CentOS 7

ConfigServer Security & Firewall (CSF) is a stateful packet inspection firewall (SPI), login/intrusion detection, and security application for Linux servers. It is a very popular security suite, but isn't officially supported yet on CentOS 7.
CentOS 7 uses firewalld rather than iptables. A quick internet search will show that many faithful CentOS users find firewalld far too complicated for their needs and are reverting back to iptables. Iptables was the standard firewall for CentOS 5 and 6.

Wednesday, July 1, 2015

A Basic MySQL Tutorial

About MySQL

MySQL is an open source database management software that helps users store, organize, and retrieve data. It is a very powerful program with a lot of flexibility—this tutorial will provide the simplest introduction to MySQL

How to Install MySQL on Ubuntu and CentOS

If you don't have MySQL installed on your droplet, you can quickly download it.

How To Setup Your Own VPN With PPTP

Intro

One of the commonly asked questions from our users is how to add another IP address to their server. You can assign your own private IP address to your droplet by creating a VPN tunnel. Whether you want to build your own Virtual Private Network (VPN), or assign an SSL certificate to that IP address, you have several options. From all of the possible options, the most optimal ones are between PPTP and OpenVPN. A Point-To-Point Tunneling Protocol (PPTP) allows you to implement your own VPN very quickly, and is compatible with most mobile devices. Even though PPTP is less secure than OpenVPN, it is also faster and uses less CPU resources.

SSH Server CentOS 7

Configure SSH Server - Password Authentification

Configure SSH Server to manage a server from the remore computer. SSH uses 22/TCP

SSHd is installed even if you installed CentOS with "Minimal Install", so it's not necessarry to install new packages. Furthermore, SSHd is set auto-start setting by default, so it's possible to login without chainging ant settings. But it had better to change for security settings like follows

Tuesday, June 30, 2015

Initial Setting CentOS 7 - Configure VIM

Install and Configure vim that is more convenience than vi.

Install vim
[root@dlp ~]# yum -y install vim-enhanced 

Set command alias. ( Apply to all users below. If you apply to a user, Write the same settings in '~/.bashrc' )
[root@dlp ~]#
vi /etc/profile
# add at the last line

alias vi='vim'
[root@dlp ~]# source /etc/profile

Initial Setting CentOS 7 - Add Repository

Add some useful external repositories to install useful softwares
Install a plugin to add priorities to each installed repositories.


[root@dlp ~]#
yum -y install yum-plugin-priorities
# set [priority=1] to official repository

[root@dlp ~]# sed -i -e "s/\]$/\]\npriority=1/g" /etc/yum.repos.d/CentOS-Base.repo


Initial Setting CentOS 7 - Firewall and Selinux




FIREWALL

If the Firewall on the server is unnecessarry (for example, because some firewalls are allready running in your LAN ),
then stop it like follows.
If needs, refer to here to configure Firewalld.


[root@dlp ~]# 
systemctl stop firewalld 
[root@dlp ~]# 
systemctl disable firewalld 

rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'
rm '/etc/systemd/system/basic.target.wants/firewalld.service'


Basic Operation of Firewalld Centos 7

This is the Basic Operation of Firewalld.

The definition of services is set to zones on Firewalld. To enable Firewall, assosiate a zone to a NIC with related commands.

1. To use Firewalld, start it

[root@dlp ~]# 
systemctl start firewalld 

[root@dlp ~]# 

systemctl enable firewalld 

Initial Setting CentOS 7 - Add an User

Add an User "cent" as an example below.

[root@dlp ~]# 
useradd cent 

[root@dlp ~]# 
passwd cent 

Changing password for user cent.
New UNIX password:

# set password

Retype new UNIX password:

# confirm

passwd: all authentication tokens updated successfully.
[root@dlp ~]# 

exit 

Saturday, May 16, 2015

How To CentOS / RHEL 7 Install Gnome Desktop Using Yum

I installed minimal CentOS Linux 7.x on my laptop. How can I install Gnome desktop GUI on a RHEL (Red Hat) 7 or CentOS Linux 7 system using command line option?

GNOME is a highly intuitive and user friendly desktop environment for CentOS and RHEL 7.x based system. If you did a minimal install, this guide will quicly tell you how to install Gnome GUI on a CentOS 7 or RHEL 7 using a command line options.

Tuesday, May 12, 2015