Monthly Archives: December 2009
Create a cron job
Directory Protection in Hsphere
To password protect a directory in hsphere: Login to Your control panel Click FTP Manager Click File Manager (HtProtect) Click Protect at the bottom Navigate to the folder you want to protect – You click the actual name of the folder you want to go into to Once you find the folder you want to …
Check for Bad Blocks
check for bad blocks on a hard drive: badblocks -vv /dev/sda3 > badblocks.log & The command above will check for badblocks on the partition /dev/sda3 and save the results to the log file badblocks.log checks for badblocks and it writes the results to: badblocks.log If you want to check a specific drive or partition you …
AOL Blacklist
The problem with AOL’s RBL and other blacklists is that they only list the final relay IP as the sending IP. This is a problem because client’s often forward their email to AOL or other ISP’s. Here’s an example: Client has the domain: yourdomain.com Client has setup [email protected] to forward to [email protected] A spammer sends …
Add a Linux User
In order to add a user you should create their group first or decide which preexisting group you will assign them to. If you’re adding a new group for the user: Add the group: groupadd $group Then add the user adduser -g $group -d /home/$username $username This will add a user with the username $username …
Execute commands on remote host
This is a great method to execute commands on a remote server without actually opening another window and running the command directly. Additionally, if you have a server monitor setup this is a great way to restart services if a service crashes. We often use this method on internal servers and when a service outage …
SSH Key Logins
It’s often more secure to establish key logins, or you may want to allow a server to automatically ssh to another to copy over backup files or to run commands. To enable SSH keys: On the server that’s going to make the connection: ssh-keygen -t rsa The command above places the public key that you …
Unique visitors vs. sessions
•Hits: The number of times your site is given a request for information from a web browser. (Note: a web page with two images would generate three “hits”, one each for the images, and one for the page itself.) •Files: The number of times a web browser requests a file and the server on which …
Archive a specific set of files using tar
It’s often necessary to backup a set of files, however you don’t want to archive an entire folder or site. To accomplish this task simply create a text file called filestotar.txt. Then place the full path and file name of each file that you want included in the archive. Then run: tar -cvf backup.tar –files-from=filestotar.txt …
Extract specific folders from a tar archive
Backups or Archives are usually very large and it can take forever to extract all of the files to retrieve a specific folder. Additionally, the drive may be close to it’s maximum capacity and extracting the full archive may not be an option. Here’s how to extract a specific folder from a tar archive: tar …
- English Support
- 24/7 x 365
- Branded Support
- Reduced Overhead
- Linux Experts
- Friendly Staff