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

Thứ Năm, 6 tháng 8, 2015

Enable VPN on Kali Linux – fix VPN grayed out problem

Enable VPN on Kali Linux – fix VPN grayed out problem This is very simple actually. Just run the following command as root and you’re all set. aptitude -r install network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc network-manager-vpnc-gno...
Read More

Thứ Hai, 3 tháng 8, 2015

ESXi - Reset the forgotten root password

1, Boot up esxi host with the Linux live CD. Then ran the commands fdisk -l and ls -l /mnt/sda5/ / ls -l /mnt/sda6/ to determine the location of the most recent state.tgz file. Note that if you're using ESXi Embedded then you may only see local.tgz instead of state.tgz and you should then copy and recreate that file. 2) After determining...
Read More

How to list all cron entries on a WHM/cPanel based servers

How to list all cron entries on a WHM/cPanel based servers Here is the small piece of code that helps  for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done  And Cpanel Crontab Location /var/spool/cro...
Read More

Kloxo important file location

Kloxo important file locationRound cube    /home/kloxo/httpd/webmail/roundcube/logs/errorsMail    /var/log/kloxo/mailog    /var/log/kloxo/courier    /tmp/horde.log    /var/log/kloxo/smtp.log    /usr/local/lxlabs/kloxo/mail_send    /var/qmail/control/me    /var/qmail/control/rcpthosts    /var/qmail/control/defaultdomain   ...
Read More

Thứ Hai, 6 tháng 7, 2015

How to Install uTorrent Client on Ubuntu/Debian

Install uTorrent Server 3.3 Step 1: Download latest uTorrent Server from hereNote: (You need to download uTorrent Server for 13.04, also works for Ubuntu 14.04) Step 2: Extract uTorrent Files    Launch terminal and change directory to Downloads folder     cd Downloads/     Extract uTorrent files...
Read More

Thứ Năm, 2 tháng 7, 2015

[FIXED] Sửa lỗi gõ tiếng Việt ibus-unikey trên Skype Kali Linux

[FIXED] Sửa lỗi gõ tiếng Việt ibus-unikey trên Skype Kali Linux Đầu tiên chúng ta cần cài gói ibus-qt4 vì Skype sử dụng Qt để phát triển giao diện. sudo apt-get install ibus-qt4 Tiếp theo chúng cần chỉnh sửa một số cấu hình cho ibus để ibus có thể load được ibus-qt4 lên. Tệp tin chúng ta cần chỉnh sửa là /etc/X11/xinit/xinput.d/ibus (ở các phiên bản cũ là /etc/X11/xinit/xinput.d/default), thay “=xim” bằng “=ibus” và DEPENDS=”ibus,...
Read More

Fix lỗi Software-center trên Kali-Linux

Fix lỗi Software-center trên Kali-Linux Đối với Kali-linux version mới nhất sau khi cài đặt Software-Center các bạn sẽ gặp phải lỗi Software-center không chạy hoặc chạy vài giây thì tắt. Nếu như chạy Software-center từ terminal thì gặp thông báo lỗi sau: Mã: Traceback (most recent call last):   File "/usr/bin/software-center", line 131, in <module>     from softwarecenter.ui.gtk3.app...
Read More

Thứ Tư, 1 tháng 7, 2015

Những việc cần làm sau khi cài đặt kali linux-Things to do after installing Kali Linux

Những việc cần làm sau khi cài đặt kali linux-Things to do after installing Kali Linux Kali linux là hệ điều hành chứa những bộ công cụ cực kì hữu dụng cho việc penetration testing, nhiều bạn mới làm quen với backtrack/kali cảm thấy bỡ ngỡ và mong muốn làm sao để nó có thể trở thành một hệ điều hành chính có thể thay thế windows để tiện...
Read More

Thứ Năm, 7 tháng 5, 2015

How to clean eval(base64_decode()) from a Hacked WordPress Website via SSH

First, Temporarily Blocking Access to the Site While fixing the problem, we don’t want the attacker to have any access to the site. To block all access to the website, you can add the following to the top of the .htaccess in the root folder of the website (if an .htaccess file doesn’t already exist, you’ll want to create it).To allow access from just your IP address, replace "!!Your IP Address Here!!" with your IP address: order...
Read More

Thứ Tư, 6 tháng 5, 2015

Cách cài Mac OS X lên VMWare trên Windows chạy mượt mà như máy Macintosh

Mac OS X trên VMWare Windows - Mượt như Macintosh - Apple không thích điều này Mac OS X là một hệ điều hành tiên tiến, dễ dùng và cực kỳ ổn định khi sử dụng hàng ngày, chưa kể là Mac OS vốn rất đẹp nếu so với Windows hay Linux. Được sử dụng nó là mơ ước của rất nhiều người. Thế nhưng cái giá để có thể xài Mac OS là rất đắt đỏ vì Mac...
Read More

Chủ Nhật, 3 tháng 5, 2015

Install python easy_install via yum on Linux CentOS Server

To install easy_install on Linux using yum you will need to install the python-setuptools and python-setuptools-devel packages. Installing these packages with yum is easy by following the directions below.Both of these packages were installed using the Atomic repository.Yum Command To Install python-setuptools: yum install python-setuptools An example of a python-setuptools install is below.Example Of python-setuptools Being...
Read More