Linux Remove All Partitions or Data And Create Empty Disk Rumi, December 13, 2016 Use the following dd command to remove data from /dev/hdX: dd if=/dev/zero of=/dev/hdX bs=512 count=1 OR for sata disk, use the following syntax: dd if=/dev/zero of=/dev/sdX bs=512 count=1 In this example, empty sata disk /dev/sdb, enter (you must be login as the root user): fdisk /dev/sdb dd if=/dev/zero of=/dev/sdb bs=512… Continue Reading
The safest way to clean up /boot partition in Debian or Ubuntu Rumi, December 7, 2016 First check your kernel version, so you won’t delete the in-use kernel image, running: uname -r Now run this command for a list of installed kernels: dpkg –list ‘linux-image*’ and delete the kernels you don’t want/need anymore by running this: sudo apt-get remove linux-image-VERSION Replace VERSION with the version of… Continue Reading
LEMP on Debian 7 Rumi, December 3, 2016December 3, 2016 Installing MySQL 5 In order to install MySQL, we run apt-get install mysql-server mysql-client You will be asked to provide a password for the MySQL root user – this password is valid for the user root@localhost as well as root@server1.example.com, so we don’t have to specify a MySQL root password… Continue Reading
Identify WWN in linux Rumi, December 3, 2016 Here are some useful commands for the most popular Linux/Unix operating systems to find your HBA WWN. There are several methods to identify HBA WWN for the fiber storage units in your server network. Method 1: (The hard way) Verified on Suse Linux Enterprise Server and CentOS/Redhat The info is… Continue Reading
Endian Router Blocking IP on Public Interface Rumi, November 20, 2016 You can make a general IP ban list. You need to go to Port forwarding / Destination NAT Create a new rule Click on the advanced mode Incoming IP: Type: Zone/VPN/Upllink. Select Uplink main – IP:All known. Incoming service port, Service: Any, Port: Any. In the Translate To section set… Continue Reading
Install Varnish Cache On Debian 7 Rumi, November 6, 2016 Normally Varnish Cache is available on Debian default repositories. But i suggest you to use Varnish Cache repositories to get latest version of Varnish Cache. Run the following commands as root user to install Varnish Cache. # curl http://repo.varnish-cache.org/debian/GPG-key.txt | apt-key add – # echo “deb http://repo.varnish-cache.org/debian/ wheezy varnish-3.0” >>… Continue Reading
OpenDKIM Postfix SMTP Relay Server on Debian -7 Rumi, September 11, 2016February 26, 2024 Install OpenDKIM Before starting the installation, a system update is recommended: sudo apt-get update sudo apt-get dist-upgrade Install OpenDKIM and it’s dependencies: sudo apt-get install opendkim opendkim-tools Additional packages will be listed as dependencies, type yes and press Enter to continue. Configure OpenDKIM A couple of files must be created… Continue Reading
Reset a MySQL root password for Debian Rumi, July 14, 2016 Use the following steps to reset a MySQL root password by using the command line interface. Stop the MySQL service (Ubuntu and Debian) Run the following command: sudo /etc/init.d/mysql stop (CentOS, Fedora, and Red Hat Enterprise Linux) Run the following command: sudo /etc/init.d/mysqld stop Start MySQL without a password Run… Continue Reading
Install ioncube on Linux server Rumi, July 14, 2016 Begin by downloading the latest loaders to your computer from http://www.ioncube.com/loaders.php Extract the contents of the archived file on your local PC to a folder of your choice. Upload the folder IONCUBE via FTP to your domain webspace Now establish an SSH connection with server using a suitable client (e.g…. Continue Reading
ip_conntrack table full, dropping packet Rumi, July 3, 2016 Last week, I found myself with a server under low load, but it couldn’t make or receive network connections. When I ran dmesg, I found the following line repeating over and over: ip_conntrack: table full, dropping packet I’d seen this message before, but I headed over to Red Hat’s site… Continue Reading