linux

Nvidia Driver on Linux – Easy, and Quick

Image representing NVidia as depicted in Crunc...
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

Reblog this post [with Zemanta]

Linux Anti Virus for Websites

Windows 7 is the latest stable Windows operati...

Image via Wikipedia

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:

sudo apt-get 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

Reblog this post [with Zemanta]

Linux CUPS Configuration – Foomatic

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

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

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.