CodePre offers a wide variety of tutorials on the topic Ubuntu.

iptables open port 80

Editing the configuration file: [[email protected] ~]# nano /etc/sysconfig/iptables Add a line -A INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT Restarting the iptables service [[email protected] ~]# service iptables restart More related tutorials: Writing. . .

Configuring OpenVPN Linux Client

We connect the EPEL repository from where we will install OpenVPN. [[email protected] ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm Install OpenVPN [[email protected] ~]# yum -y install openvpn Add OpenVPN to startup at computer startup [[email protected] ~]# chkconfig openvpn on Copy the OpenVPN client configuration file template to the / etc / openvpn / directory [[email protected] ~]# cp /usr/share/doc/openvpn-2.1/sample-config-files/client.conf… read more »

Install PostgreSQL 9.2 + PostGIS 2 on Centos 6.7

Install the wget utility and the nano text editor [[email protected] ~]# yum install wget nano Installing PostgreSQL Add the repository [[email protected] ~]# wget http://yum.pgrpms.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-7.noarch.rpm [[email protected] ~]# rpm -ivh pgdg-centos92-9.2-7.noarch.rpm Editing the configuration file of the CentOS-Base.repo repository in order to install PostgreSQL from the added repository in the future [[email protected] ~]# nano /etc/yum.repos.d/CentOS-Base.repo [base] exclude=postgresql*… read more »

Installing Redmine 2.4.0

Installing the required libraries [[email protected]]# yum install make gcc gcc-c++ zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel [[email protected]]# yum install zlib zlib-devel openssl-devel sqlite-devel gcc-c++ glibc-headers libyaml-devel readline readline-devel zlib-devel libffi-devel Downloading the Ruby source [[email protected]]# cd ~ [[email protected]]# wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.gz Unpack [[email protected]]# tar zxvf ruby-2.1.5.tar.gz Compiling and installing [[email protected]]# cd ruby-2.1.5 [[email protected]]# ./configure [[email protected]]#… read more »

Installing MySQL 5.7 on CentOS 6

Installing the MySQL repository [[email protected] ~]# wget http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm [[email protected] ~]# rpm -ivh mysql57-community-release-el6-7.noarch.rpm Install MySQL server and client [[email protected] ~]# yum install -y mysql-community-client mysql-community-server Starting MySQL [[email protected] ~]# service mysqld start We are looking for a password in the log file [[email protected] ~]# grep -i temporary /var/log/mysqld.log Connect to MySQL using the password from… read more »

Mount FTP as a folder in Centos 6

Install curlftpfs program (EPEL repository) # yum install curlftpfs Create a directory where we will connect FTP # mkdir /mnt/ftpfolder We mount # curlftpfs -o allow_other ftpuser:[email protected] /mnt/ftpfolder allow_other – доступ к папке всех пользователей (по-умолчанию только root) ftpuser – логин от FTP ftppassword – пароль от FTP servername.com – адрес FTP-сервера /mnt/ftpfolder – каталог,… read more »

Determining if ip address is already in use for device ethX

While working with the network subsystem of Centos operating systems, an error may occur Determining if ip address is already in use for device ethX For example, when you restart the network subsystem of the Linux RHEL / Centos operating system, the error will look like this: # /etc/init.d/network restart Shutting down interface eth0: [… read more »