March 6th, 2013 |
admin |
FreeBSD init works different ways. In BSD style, it specifies the kernel security level as follows: -1: Permanently insecure mode. 0: Insecure mode 1: Secure mode 2: Highly secure mode 3: Network secure mode You can get current security level (FreeBSD runlevel) using sysctl command: # sysctl –a | grep kern.securelevel You can setup new [...]
January 25th, 2013 |
admin |
Here is small script that does this. Debian or Ubuntu GNU/Linux does not comes with any SYS V init script (located in /etc/init.d directory) . You create a script as follows and use it to stop or flush the iptables rules. Please don’t type rules at command prompt. Use the script to speed up work. [...]
December 8th, 2012 |
admin |
To change the SSH port number login as root, and edit /etc/ssh/sshd_config Find the line that says Port 22 and change 22 to any number between 1024->65535 (above 30000 is best) and save the file. Once done, run: /etc/init.d/sshd restart Now start a new SSH session (don’t close your existing one), to make sure that [...]
September 28th, 2012 |
admin |
How can I repair corrupt MySQL tables? Every so often, MySQL tables have a way of corrupting themselves. MySQL offers a quick and painless method of repairing those tables. Login to your server via SSH and change directories to the database that is having problems. cd /usr/local/mysql/var/[DBNAME]/ You will need to replace [DBNAME] with the [...]
September 1st, 2012 |
admin |
Q. I run a Linux webserver and down time is not an option for me. Now I I made some changes to my /etc/inittab file. How do I make those changes effective without rebooting my Debian Linux server? A. The inittab file describes which processes are started at bootup and during normal operation (e.g. /etc/init.d/boot, [...]
August 27th, 2012 |
admin |
Q. I am getting an error that read as follows: MySQL: got error 28 from server handler How do I fix this problem? A. This error means no space left on hard disk. According to official MySQL docs, “If you get his error, you need to check all filesystems where MySQL operates. It may be [...]
August 13th, 2012 |
admin |
The “/dev/null is not a character device” message occurs in a VPS when an upgrade is performed and the /dev/null turns into a regular file. # /etc/init.d/sshd restart Restarting Secure Shell server: sshd failed! /dev/null is not a character device!. The /dev/null should be a character device as per the Linux standards. To fix the [...]
July 22nd, 2012 |
admin |
Following are generic steps 1) UNZIP or untar the driver # gunzip -cd driver-x.y.z.tar.gz | tar xf – 2) Install the driver by running special install script, for e.g. # sh install OR # chmod +x install; ./install 3) Or you can also try out as follows to install driver: # /usr/ccs/bin/make install 4) Or [...]
January 14th, 2012 |
admin |
Nginx (pronounced “engine x”) is a free, open-source, high-performance HTTP server. Nginx is known for its stability, rich feature set, simple configuration, and low resource consumption. This tutorial shows how you can install Nginx on a Debian Etch server with PHP5 support (through FastCGI) and MySQL support. I do not issue any guarantee that this [...]
December 17th, 2011 |
admin |
Other distribution provided the file called /etc/rc.local but Debian does not use rc.local to customize the boot process. You can use simple method as follows to customize it. (A) Execute command at system startup Let us assume you would like to run command called i) Create a script called mystartup.sh in /etc/init.d/ directory(login as root) [...]