Archive for March, 2010
PHP function to Genrate Random Passwords
by lpilinuxblog on Mar.30, 2010, under Linux Tricks
function pass_gen($len) { $pass = ”; srand((float) microtime() * 10000000); for ($i = 0; $i < $len; $i++) { $pass .= chr(rand(33, 126)); } return $pass; }
Linux Shadow File Formats
by lpilinuxblog on Mar.30, 2010, under Important for LPI 117-101
Traditional Unix systems keep user account information, including one-way encrypted passwords, in a text file called “/etc/passwd”. As this file is used by many tools (such as “ls”) to display file ownerships, etc. by matching user id #’s with the user’s names, the file needs to be world-readable. Consequentally, this can be somewhat of a security risk.
Various Password Policies to Secure Your Web Server
by lpilinuxblog on Mar.30, 2010, under Linux Networking
To make sure your password is secure and valid, follow the guidelines in the table below.
Required Action
Don’t leave Debian confrence 15 April
by lpilinuxblog on Mar.28, 2010, under Reviews
Registration continues for DebConf10. Thursday 15 April is the early registration deadline. Registrations after that date will not be eligible for sponsored food, accommodation or travel.
To register follow one of the processes outlined below:
* If you registered for DebConf7, DebConf8, or DebConf9, log in at https://penta.debconf.org/penta/submission/dc10/person
* If you did not register for any of the past three DebConfs you need a new account in the conference management system. First go to https://penta.debconf.org/penta/user and create an account. After visiting the activation URL sent to you by email, log in at https://penta.debconf.org/penta/submission/dc10/person.
After logging in
New Viruses for Windows OS
by lpilinuxblog on Mar.28, 2010, under Reviews
OPRAH WINFREY VIRUS: Your 200MB hard drive suddenly shrinks to 80MB, and then slowly expands back to 200MB.
AT&T VIRUS: Every three minutes it tells you what great service you are getting.
MCI VIRUS: Every three minutes it reminds you that you’re paying too much for the AT&T virus.
PAUL REVERE VIRUS: This revolutionary virus does not horse around. It warns you of impending hard disk attack—once if by LAN, twice if by C:>.
POLITICALLY CORRECT VIRUS: Never calls itself a “virus”, but instead refers to itself as an “electronic microorganism.”
New Palm-sized Linux Server in US
by lpilinuxblog on Mar.28, 2010, under Reviews
Plat’Home, a very early Linux provider in Japan, is bringing back a small, easy-to-use, easy-to-configure solution for growing companies to North America.
Part of the first ecology-friendly line of Linux servers ever shipped in the United States, Plat’Home’s OpenBlockS server has been built and tested to provide enterprise-grade reliability in its RISC-based hardware, and has eliminated moving parts including a hard disk drive and cooling fan. It is also RoHS-certified, a European Union directive meaning that it’s free of lead, mercury, cadmium, hexavalent chromium, and other damaging materials.
New Features in Linux Mint 9
by lpilinuxblog on Mar.28, 2010, under Reviews
System
* USB-Creator will be added to the default software selection.
* apturl will be added to the system.
* In memory of Husse, a new fortune database gathering his best quotes will be added to the pool of random messages that appear when you open a terminal.
* apt is getting three more commands: “apt hold
Menu
Very Impotant: Tape frives naming convention in Linux
by lpilinuxblog on Mar.28, 2010, under Important for LPI 117-101
Linux supports SCSI, IDE and old floppy based tape devices. Each device has unique name just like hard disk drives. Digital Data Storage (DDS), Digital Audio Tape (DAT) and Digital Linear Tape (DLT) all are supported by Linux and widely used in industry for backup purpose.
SCSI tape device names
The st driver provides the interface to a variety of SCSI tape devices under Linux.
* First (auto rewind) SCSI tape device name: /dev/st0
* Second (auto rewind) SCSI tape device name: /dev/st1
* First the non-rewind SCSI tape devices: /dev/nst0
* Second the non-rewind SCSI tape devices: /dev/nst1
How to encrypt Backup Tape using TAR and OpenSSL
by lpilinuxblog on Mar.28, 2010, under Linux How to
You can easily encrypt data to tape using combination of tar and openssl commands. The following is software based solution based upon encryption algorithms supported by openssl tool. Encrypted backup should be used when storing sensitive data on removable media or when storing backups on shared NAS / SAN servers or online backup servers. When using encryption the openssl ask for a password before you can create, view, open, or restore the files included in the backup. This is based upon pipes concept.
Backup Data
The following shows an example of writing the contents of “tapetest” to tape:
How to Install kivio for making flow charts in Linux
by lpilinuxblog on Mar.28, 2010, under Linux How to
You can install Kivio from either a GUI tool or from command line. If you open up the Synaptic package management tool you can follow these simple steps:
1. Open Synaptic.
2. Search for “kivio” (no quotes).
3. Select Kivio for installation.
4. Click Apply to install.
5. That’s it.
If, however, you prefer to install from command line, you can install Kivio with this simple command:
sudo apt-get install kivio
With either method, you will most likely have to install a few dependencies (the amount dictated by your current installation).