Author: <span class="vcard">g33kadmin</span>

SEARCH SCRIPT

From: Guy Hammer Here is a script to save a bunch of keystrokes. Make a file /usr/local/bin/psgrep . Paste the following into it: —start— #!/bin/bash # # psgrep – search for a process by pattern. ps -ef | grep -v grep | grep $1 —end— Make the script world executable. Now you just have to…


“bash: ./configure: /bin/sh: bad interpreter: Permission denied”

The “bash: ./configure: /bin/sh: bad interpreter: Permission denied” error commonly occurs when you have wrong options set in /etc/fstab and are trying to compile some code. The partition that you have mounted that stores the source code you are trying to compile is identified in /etc/fstab by a line similar to the following one, also/etc/mtab…


Encrypt Text Files Using vi/m

The disadvantage of using encrypted partitions is that while the partition is mounted, at least root can access the data. To prevent this, vi can be used in encrypted mode. Use vi -x filename to edit a new file. vi prompts you to set a password, after which it encrypts the content of the file….


Linux Security with Fail2Ban

Linux is built to be inherently secure, and has a great track record of having superior security to its proprietary counterpart. However, in the world of server administration, paranoia is an asset. How else could someone get in? How can I prevent that? How can I be notified? One magnificent contribution to the security of…


Reinstall Ubuntu automatically

There is a very simple command that re-installs all the distribution packages and reconfigures them automatically. This is particularly helpful when you have done a partial upgrade and eventually have broken the system dependencies tree. sudo dpkg-reconfigure -phigh -a since this command would take a lot of time to process (~1 hour) depending on your…


Fully packaged Drupal

http://drupal.org/node/647374 Fully packaged Drupal distributions now deployed on drupal.org 3281d Consulting is very pleased to announce that a new era on drupal.org has begun: Drupal distributions (also known as “installation profiles”) can now be automatically packaged with Drupal core and all of their required dependencies. When you download the distribution, you just unpack it into…


wget tricks

Some wget tricks The wget is a command line utility that can download files from web servers and FTP servers. For example , you can download the DVD image of Karmic Koala using the following command. $ wget http://cdimage.ubuntu.com/releases/9.10/release/ubuntu-9.10-dvd-i386.iso If an FTP server requires a login and password, you can enter that information on the…


How to solve problems in Linux

A large part of every Linux forum’s work is dealing with enquiries by Linux novices. While it can be very enjoyable to help others, it can also be rather tiresome to try to help people who have shown no inclination towards helping themselves. However I believe that in many cases, this is not due to…


Monitor cpu abusers

I have found a script called monitorCpuUsage.sh. It is meant to be called from crontab and to inform you of processes or users who maybe using excessive amounts of cpu. Here is the help screen: # ./monitorCpuUsage.sh -h (help) Usage: monitorCpuUsage.sh -u starting uid, must be an integer greater than or equal to 0 (only…


10 Golden Rules for Troubleshooting Linux

1. Man pages exist and should be used. Seriously, everything’s there, from application docs to syscall docs to syntax and formatting of log files. 2. Don’t reinvent the wheel. 99% of problems you’re experiencing or ever will experience, somebody’s already gone through it and figured it out. Google is your friend. 3. If you don’t…


WP2Social Auto Publish Powered By : XYZScripts.com