linux
Nvidia Driver on Linux – Easy, and Quick
Feb 7th

- Image via CrunchBase
There is a buzz that installing the Linux based Nvidia accelerated graphics driver is complicated. I consider it rather straight forward. First install build-essential, and the headers for your kernel. Those may appear to be some bigs words in the previous sentence, but it is really one line in a terminal window. Build essential installs GCC and its dependencies:
sudo apt-get install build-essential linux-headers-$(uname -r)
Now download the latest and greatest Nvidia driver. Choose the correct build type for your architecture. Conveniently save the file to your desktop and rename it to nvidia.run. The change your tty to another. To change to tty2 press control-alt f2.
Shut down gdm, which will stop X11:
sudo /etc/init.d/gdm stop
Or if you are using the new process manager in Ubuntu 9.10 you can use also:
sudo service gdm stop
Then execute the Nvidia installation script. Login to the command prompt and navigate to the desktop:
cd Desktop
sudo sh nvidia.run
Basically answer yes to everything, let the driver compile, and then when it asks you to configure the xorg.conf file, let it. Nowadays the Nvidia driver basically works out of the box. In the past, with Ubuntu in particular, you had to comment out the included driver in Ubuntu’s modules package, otherwise the custom compiled driver would not load on startup. The open source driver used to be commented out in /etc/default/linux-restricted-modules-common (comment NV); note that this is not needed any more except in Hardy (8.04).
Then start your gdm session, which will take you back to the login window, or your desktop depending on your startup settings:
sudo /etc/init.d/gdm start
Linux Anti Virus for Websites
Jan 30th
Just because you run linux does not mean you completely forgo anti virus. Your website can be broadcasting Windows viruses or malware. Clamav, run from the command line, will scan your web directories recursively to identify various concerns. Install Clamav:
Then you can run Clam manually or you can install a cron job for it to be run automatically. Running Clam as root allows you to scan the higher level directories. The following command will scan the entire computer and remove viruses and malware:
sudo clamscan -r / --remove
Set this as a cronjob to run in the middle of the night; add it to the root crontab list:
0 2 * * * clamscan -r / --remove
Related articles by Zemanta
- Scan your Linux machine for viruses with ClamTk (ghacks.net)
Detecting a Security Breach – Ubuntu and Linux Machine
Jan 25th
Detecting a security breech is sometimes as easy as logging into the machine, using ssh, and viewing the last login attempt from a completely unrecognized ip address or domain. Subsequently check your auth.log file, in /var/log, for login attempts. If you see countless failed login attempts you have been the victim of a brute from attack. In gedit, or nano you can search for “attempt” or “access”. When several failed login attempts occur a log entry saying “possible breaking attempt” is posted. The first think a hacker will do, on a Linux machine, is attempt to change the root password, which will lock down the machine completely. If they cannot change the root password, they may just try and install a backdoor to the particular user that was breached. A backdoor can be a daemon running on any port, so check with “ps aux | grep user”. Grepping the ps command will bring up all of your active processes and if any process name looks funny you have identified a concern. You can also check what ports are accepting communication (open). A backdoor can also be an installed authorized key, which will allow password-less ssh access to the system.
Ultimately if a hacker changes the root password of your machine, there is nothing you can do. You must either restore from a backup, or rebuild the entire machine. No questions asked.
Linux CUPS Configuration – Foomatic
Jan 16th
First install all needed packages. Your going to need cups, and the client, and the foomatic and openprinting drivers.
sudo apt-get install cupsys cupsys-client
Then install everything in:
sudo apt-cache search foomatic
If its an HP printer your going to want that library. HP has an auto setup script. Install the package and run:
sudo hp-setup
Installing all the foomatic, openprinting, and hp drivers the hp-setup script will detect printers on the network and will give you options as to which driver to use. To manage everything I recommend webmin. Download webmin from sourceforge, and use dpkg to install it. It will say dependencies are needed so just run:
sudo dpkg --configure -a
Webmin will install and you will access it from:
https://localhost:10000
You can configure other printers (other than HP) from here. You should set the printer to static ip address then you will configure the printer to that IP and port 9100. Select the corresponding from from the CUPS menu at the bottom of the printer configuration page. Some printers need a driver straight from openprinting.com. Copy the ppd to a folder in /var/share/ppd/openprinting. Create a folder with the manufacturers name if need be. Install it the same way as other printers (through webmin), and select the corresponding ppd drivers, in the CUPS section, the add new printer configuration page.
Scrub – File Shredding for Linux
Dec 26th
With this handy little app you can shred files and folders, but more conveniently you can shred your entire free space. Just make sure you’ve erased all the files you want to shred. Empty the trans, issue:
sudo apt-get autoclean && localepurge
Download scrub from Sourceforge:
http://sourceforge.net/projects/diskscrub
Its a simply source so configure, make and install. It will install a binary in the global path. You can run it at a user or as root. Run scrub accordingly to shred all free space:
sudo scrub -X ~/scrub
This will create a directory, in your home folder, called scrub and fill it with files created from free space. It will then shred them substantially. You can use the -r option, with scrub, to attempt to delete the scrub folder afterward, but it never worked for me. Just make a script as follows:
#!/bin/bash
sudo scrub -X ~/scrub
rm -r ~/scrub
Make it executable, and this will ensure that the folder is deleted after the process is complete. You can make this a cronjob to run it at night. Like at 3 in the morning. It will take hours on a relatively large drive. Maybe an hour per 50 gigs.
LPI 101 – Linux Certifications
Dec 12th

If you go on Monster.com or something comparable you may see jobs that are requesting you to have various certifications. Most certification requests are for Microsoft, but there are various server jobs that require substantial Linux expertise. If you are going to be managing a Unix server knowing how to use Linux will help alot. You can grab a free Linux distribution that will give you access to basically the same environment as Unix. IBM has AIX which is a Unix derivative; but your not going to get your hands on AIX from a free download on the Internet. The same goes for Open SCO.
Learning Linux is the next best thing. To show employers that you have Linux experience you want certifications from the Linux Professional Institute. LPI provides a standardized test that is representative of an excellent understanding of Linux environments, and an ability to manage them.
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=6988a6ec-cec3-48df-b2ed-6f8f6859e942)
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=3b7db24c-8fa8-459a-b574-e3af55df9979)


