Category: Command Line

0

List all mysql databases on server

List all mysql databases on server [email protected] [~]#  mysql -bse “show databases”

0

How to Disable Telnet access on server

Telnet should be disabled on all web servers, and you should use SSH which is more secure. Telnet sends password in plain text passwords and usernames through logins, and ‘crackers/hackers’ can obtain these passwords...

0

OpenSSL Tricks

Create a strong CSR and private keyopenssl req -new -nodes -newkey rsa:2048 -out server.crt -keyout server.key   Parsing out the data within a certificateopenssl asn1parse -in server.crt Checking a certificate/key modulus to see if...

0

Rebuilding the initial ram disk (initrd)

Installing new hardware may mean that new kernel need to be loaded when your server boots up. There’s a two step process to making a new initrd file:   First, add the appropriate line...

0

Register to Red Hat Network

rhn_register that will register your server over at RHN.   Well if you want to upgrade your kernel… you’ll have to edit the config to NOT skip the kernel up2date –configuretype 24and then type...

0

Adding IP aliases in FreeBSD

One question I hear quite often is “how do I add IP aliases in FreeBSD?” It’s not terribly intuitive, but you can follow these steps: Example:Server’s primary IP: 192.168.1.11 Additional IP’s to add: 192.168.1.12,...

0

Crontab basics

cron is a unix, solaris utility that allows tasks to be automatically run in the background at regular intervals by the cron daemon. These tasks are often termed as cron jobs in unix ,...

0

Uninstall APF

Sometimes we may require to remove APF from the server. Here is a guide which shows how to remove APF completely from the server. Stop the firewall first service apf stop /bin/rm -rfv /etc/apf...