COME ON, LEARN TOGETHER THROUGH THIS BLOG
Showing posts with label LINUX. Show all posts
Showing posts with label LINUX. Show all posts

Sunday, May 22, 2011

HOW TO SAFEGUARD YOUR FILES WHEN COMPUTER CRASHES

First thing to keep in mind: If your computer hasn't crashed yet, it will in the future! So instead of waiting for fate to strike, take some precautions now:

1) BACK-UP! Buy some decent DVD-R discs and put everything useful in them. When you have more useful stuff, backup again. Do this often.

2) Keep your computer healthy. Use an antivirus, an anti-spy, and a firewall. Keep them updated. Check regularly for Windows critical fixes.

3) Don't install software that would do dangerous things to your hard drive. A boot manager would fall in this category.

TUTORIAL ASSEMBLY FOR NERDS USING LINUX - PART 1

##################################################

Tutorial Assembly for nerds using linux - part 1

##################################################
############ Introduction ############

Assembly nowadays is a hard thing to learn, not because it's difficult but

because people thinks that there is no reason to learn assembly! That's

not true... With assembly you can have total power above the computer, and

know exactly what he's doing. Try to remember that while trying to learn!

Friday, May 20, 2011

INSTALLATION GUIDE FOR QUARTUS ON UBUNTU LINUX

Preface
This guide is for intended for those wishing to install Quartus, Modelsim and Megacore IP on an Ubuntu system and is based upon the Quartus for Ubuntu availiable at the Nios Wiki (http://nioswiki.jot.com/) which can be found here. It has been tested using Quartus 7.2, Modelsim 6.1g and Megacore IP 7.2 for Linux on an Ubuntu  7.10 system, which, at time of writing are the latest versions avaliable although it may work for other versions and even other Linux flavours.

SCRIPT TO CLEAN UP COREFILES

SCRIPT TO CLEAN UP COREFILES
Create a file called rmcores(the author calls it handle−cores) with the following in it:

#!/bin/sh
USAGE="$0 <directory> <message−file>"
if [ $# != 2 ] ; then
echo $USAGE
exit
fi

TO CLEAN UP YOUR LOGFILES

TO CLEAN UP YOUR LOGFILES
If you're like me, you have a list with 430 subscribers, plus 100+ messages per day coming in over UUCP. Well, what's a hacker to do with these huge logs? Install chklogs, that's what. Chklogs is written by Emilio Grimaldo, grimaldo@panama.iaehv.nl, and the current version 1.8 available from ftp.iaehv.nl:/pub/users/grimaldo/chklogs−1.8.tar.gz. It's pretty self explanatory to install(you will, of course, check out the info in the doc subdirectory). Once you've got it installed, add a crontab entry like this:

SHORT SCRIPT FOR FREE SPACE

SHORT SCRIPT FOR FREE SPACE
Here comes a short script which will check from time to time that there is enough free space available on anything which shows up in mount (disks, cdrom, floppy...)
If space runs out, a message is printed every X seconds to the screen and 1 mail message per filled device is fired up.
#!/bin/sh
#

SCRIPT TO VIEW THOSE COMPRESSED

SCRIPT TO VIEW THOSE COMPRESSED
From a newbie to another, here is a short script that eases looking for and viewing howto documents. My howto's are in /usr/doc/faq/howto/ and are gzipped. The file names are XXX−HOWTO.gz, XXX being the subject. I created the following script called "howto" in the /usr/local/sbin directory :

#!/bin/sh
if [ "$1" = "" ]; then
ls /usr/doc/faq/howto | less
else
gunzip −c /usr/doc/faq/howto/$1−HOWTO.gz | less
fi