Thứ Ba, 17 tháng 11, 2015

How to install configure printers on Linux

Install required packages apt-get install cups cups-client "foomatic-db". Add user to lpadmin group adduser root lpadmin Output Adding user `root' to group `lpadmin' ... Adding user root to group lpadmin Done. Restart cups and samba service service cups restart service samba restart  Find USB printer netstat -ant | grep 631 lsusb Configuring Printer      Open browser and type:   ...
Read More

Chủ Nhật, 15 tháng 11, 2015

Start/stop iptables on Ubuntu

Iptables is a firewall, installed by default on all official Ubuntu distributions (Ubuntu, Kubuntu, Xubuntu). Iptables is a command it's not a service, so generally it's not possible to use commands like service iptables start or service iptables stop In order to start and stop the firewall, but some distros like centos have installed a service called iptables to start and stop the firewall and a configuration file to configure...
Read More

Thứ Tư, 11 tháng 11, 2015

CentOS / Xampp how to install mod_ruid2

CentOS / Xampp how to install mod_ruid2 1. First install its dependencies: yum install libcap libcap-devel -y 2. Download lastest version of mod_ruid2 and unpack it wget http://sourceforge.net/projects/mod-ruid/files/latest/downloadtar xvjf mod_ruid2-0.9.8.tar.bz2cd mod_ruid2-0.9.8/opt/lampp/bin/apxs -a -i -l cap -c mod_ruid2.c If it installed correctly, it should say it added a line to the httpd.conf. You can easily check...
Read More

CentOS / Xampp Install PHP 5.x FCGID

CentOS / Xampp Install PHP 5.x FCGID 1. Download lastest version from apache.org and unpack. 2. Entering the extracted folder and change the file configure.aspx: //original if test "$APXS" = ""; then   APXS=`which apxs 2>/dev/null` fi; //changed if test "$APXS" = ""; then   APXS=`which /opt/lampp/bin/apxs 2>/dev/null` fi; 3. Open Terminal, stop Xampp server, navigate to the extracted folder and run the...
Read More

Setting Security for XAMPP CentOS 6

To make xampp secure do following. 1. Open terminal and login as root. 2. Then type in: /opt/lampp/lampp security XAMPP:  Quick security check...XAMPP:  Your XAMPP pages are NOT secured by a password.XAMPP: Do you want to set a password? [yes] XAMPP:  MySQL is accessable via network.XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] XAMPP:  The MySQL/phpMyAdmin user pma has no...
Read More

Thứ Ba, 10 tháng 11, 2015

Running Vhosts Under Separate UIDs/GIDs With Apache mpm-itk on Xampp

Installing apache2-mpm-itk on xampp # wget http://mpm-itk.sesse.net/mpm-itk-2.4.7-03.tar.gz# tar -zxvf mpm-itk-2.4.7-03.tar.gz# cd mpm-itk-2.4.7-03[root@10tut mpm-itk-2.4.7-03]# ./configure  --with-apxs=/opt/lampp/bin/apxschecking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables...checking whether we are cross compiling......
Read More

How to install XAMPP on CentOS/RHEL 6.5

How to install XAMPP on CentOS/RHEL 6.5 XAMPP is a open source cross platform software stack package mainly used for web server solution. XAMPP is available for Windows,MAC OSX,Solaris and Linux(WAMP, MAMP, SAMP, LAMP). XAMPP stands for – X = Cross Platform (Windows,MAC OSX,Solaris and Linux) A = Apache M = MySQL P = PHP P = Perl NOTE: SELINUX is in Enforcing mode Step 1: Download the XAMPP yum install wgetwget https://www.apachefriends.org/xampp-files/5.5.30/xampp-linux-x64-5.5.30-0-installer.run Step...
Read More

Thứ Ba, 3 tháng 11, 2015

VMWare Image Clone Problem: eth0 Renamed As eth1

VMWare Image Clone Problem: eth0 Renamed As eth1 This is due to wrong or duplicate mac address. To fix this problem login to your CentOS Linux server using console and type the following commands: # cd /etc/udev/rules.d # cp 70-persistent-net.rules /root/ # rm 70-persistent-net.rules # reboot This file was automatically generated by the /lib/udev/write_net_rules program, run by the persistent-net-generator.rules rules file....
Read More

RHEL / Centos 7 Change and Set Hostname Command

RHEL / Centos 7 Change and Set Hostname Command On a CentOS Linux 7 server you can use any one of the following tool to manage hostnames: hostnamectl command : Control the system hostname. This is recommended method. nmtui command : Control the system hostname using text user interface (TUI). nmcli command : Control the system hostname using CLI part of NetworkManager. Method #1: hostnamectl command Let us see how to use...
Read More

How Do I Find My Linux Gateway / Router IP Address

How Do I Find My Linux Gateway / Router IP Address [1] Find out Gateway / router IP address under Linux / UNIX using route command     You need to use route command. This command can manipulates the kernel’s IP routing tables. $ route -n Output: Kernel IP routing tableDestination     Gateway         Genmask        ...
Read More

Set Hostname on CentOS

Set Hostname on CentOS Change and Set Hostname Command for RHEL / Centos 7 , refer to here Step 1: Login to your CentOS Server Locate the IP address of your Server and login as the root user. ssh root@server Step 2: Use the hostname utility Change your hostname to a different name of your choosing. For example: hostname 10tut.localdomain Step 3: Edit /etc/hosts Open the /etc/hosts file with your favorite text editor....
Read More

Thứ Hai, 2 tháng 11, 2015

Booting into a Graphical Environment

Booting into a Graphical Environment If you have installed the X Window System but are not seeing a graphical desktop environment once you log into your Red Hat Enterprise Linux system, you can start the X Window System graphical interface using the command startx. Once you enter this command and press Enter, the graphical desktop environment is displayed.   Note, however, that this is just a one-time...
Read More

Install Xrdp Server

Install Xrdp Server Install Xrdp server to connect to CentOS from Windows clients with the Remote Desktop function.  [0] Enable EPEL Repository : refer to here [1] Install Xrdp server and start it.  # install from EPEL[root@dlp ~]# yum --enablerepo=epel -y install xrdp tigervnc-server[root@dlp ~]# /etc/rc.d/init.d/xrdp startStarting xrdp:                      ...
Read More

How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x

How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x What is EPEL EPEL (Extra Packages for Enterprise Linux) is open source and free community based repository project from Fedora team which provides 100% high quality add-on software packages for Linux distribution including RHEL (Red Hat Enterprise Linux), CentOS, and Scientific Linux. Why we use EPEL repository?  Provides lots of open source packages to install...
Read More