yum update openssl* -y
This will update openSSL to the newest version for apache on CentOS
To check your server to see if it’s vulnerable to the Heartbleed bug: https://www.ssllabs.com/ssltest/
To search for numbers (regex still considers them text)
[0-9] means any single digit with the character value of 0 – 9. (Won’t match letters)
Great guide on regex:
Using one many automation scripts available in the /scripts folder, allows you to quickly configure, troubleshoot and execute powerful commands on your cPanel & WHM server by using one of the many automation scripts available in the scripts folder. Here are some of the more popular command line scripts available via cPanel & WHM:
Using a combination of these scripts, you can automate tasks on your cPanel & WHM server to meet your specific hosting needs.
When you first start a live cd:
Literally, don’t type a password and just click the login.
If you want to stay logged in and not have to sudo all over the place:
sudo command (you must do this every time you issue a command)
sudo -i command (this gives you persistent access)
If you are launching a graphical app like Nautilus (file manager) use gksudo instead of sudo. This makes it so that your files created in Nautilus, Konqueror, or Dolphin are owned by your user and not root.
If you are using KDE instead of gnome, use kdesudo instead of sudo to launch graphical applicaitons. Example:
kdesudo kate ~/myfile.txt
Create an Ubuntu root account with password easily.
This post also shows how to create a linux cd root password.
To supress apache returning information about itself in the response headers add these 2 lines to httpd.conf:
ServerSignature Off ServerTokens Prod This can be done with WHM without editing the httpd.conf file: Main >> Service Configuration >> Apache Configuration
from my favorite disk imaging program support website, a very helpful guide to fixing disk read or write errors due to glitchy items like bad IDE cables: http://www.terabyteunlimited.com/kb/article.php?id=152
This problem can be caused by overclocking, overheating, a hardware problem, or a BIOS or firmware bug or configuration issue.
To determine if the mainboard, memory, or CPU is at fault:
If the memory diagnostic does not report any errors, check the following:
Start a Command Prompt and then run chkdsk x: /f where x: is the drive to check.
For example: chkdsk c: /f
Note: If running Windows Vista or Windows 7, you must run chkdsk from an Administrator Command Prompt.
If none of the above helps, the problem may be due to weak sectors on the drive surface. If the issue you are having involves a hard drive, download and run the hard drive manufacturer’s diagnostic utility or a third-party utility designed to scan and repair hard disk surfaces. Below are links to some major hard drive manufacturer’s home pages:
If you still have not narrowed down the problem, try adjusting the system BIOS parameters below, for the drive(s) with which you are experiencing the problem. These settings, if available, are typically found under “Integrated Peripherals” or in the “Drive Configuration” section.
When there is no root password for a live session in linux you can type:
sudo passwd root
Then enter a new unix password
Another way: in Debian there is no root user only type
#sudo su -
If you need root access in Ubuntu then it’s different, there is no actual root, with Ubuntu you need to do sudo, this line shows you how.
If you have the error on a linux system: “error splicing file permission denied” while trying to move, copy or delete a file, most likely you are trying to copy a windows encrypted file. It will not show as encrypted in linux and the permissions will look exactly as your others that do copy properly.
The best way to take care of this is to boot into windows that encrypted the file in the first place, and right click “properties”, then uncheck “encrypted”. The files will decrypt if you logged in the windows that originally encrypted it.
I had accidentally done this and the only way I noticed was the file copy error in Ubuntu, then when booting to windows, the particular folder full of files were all in green text instead of black. If they were in blue, that would mean that they are compressed.
sudo passwd ubuntu
Then create your password, you will need to already be in Terminal
Ubuntu user: You will have to sudo once you login to do anything powerful
To create a usable root user’s account on a live cd, you can set the root password then su. This has not been possible in previous versions of Ubuntu as their user model made you remember to sudo before each command requiring root access.
sudo passwd root
It’s easier just to sudo command for one time use, instead of creating a root user to su to.
As of Ubuntu 9.10, I haven’t been able to login with “demo” or “Ubuntu” as the password for live session username “Ubuntu”.
If you are running most other types of linux like Debian, Red Hat, Mepis, Suse and others, they have an actual root user with an account.
If you’ve forgot your root password and need to reset it, Make Magazine has a nice writeup here: