Archive for July, 2010

A happy customer might tell someone. An unhappy customer tells everyone. Converting to Linux before taking a dose of reality might make you a very unhappy customer. Let’s be perfectly honest. Linux isn’t for everyone-yet. However, Ubuntu, Mandriva, and a few other distributions come close but for now, Linux is a little more difficult to use than Windows.
Linux is an incredibly useful, versatile and interesting operating system, but it does have its drawbacks, so familiarize yourself with them.

1. It Isn’t Windows Although this one should fall under the “duh” category, you shouldn’t expect Linux to be Windows. Linux has some striking similarities to Windows: the graphical interface, cascading menus, applications represented by icons, configurable desktop themes, and most of the desktop gadgetry you’ve come to expect from Windows. It looks and behaves like Windows, but it isn’t. Its fans say that it’s better because of its stability, its multi-user capability and its overwhelmingly cheaper price (free is hard to beat).Yet, Linux still falls short of the Windows glory that it attempts to mimic–at least on the surface. Windows enjoys multiple advantages over Linux: thousands of paid developers, a giant marketing machine, third-party vendor support, several more years of existence, and a dedicated individual and corporate user base. It’s no small wonder that Windows dominates the market for the world’s available computing dollars.In many ways Windows vs. Linux is like the old VHS vs. Betamax video format struggle. Betamax was the superior product, but it never caught on in the consumer marketplace. Linux is a more modern version of the Betamax format. Linux isn’t Windows. It will never be Windows.
2. It Isn’t Quite Unix Either Linux possesses many Unix attributes, such as its filesystem layout, multi-user capability, stability, efficient resource utilization and security. Yet, Linux is very different from commercial Unix flavors too. It runs on commodity x86-based hardware, has full virtualization built into its kernel, has the ability to run embedded, and can operate from a USB pen drive.This extreme flexibility makes Linux unique in the small business, enterprise, and consumer computing markets. Linux is a type of Unix, but not in the purest sense of the word. Its developers call it a Unix clone . Commercial Unix flavors suffer the same problems as Linux when it comes down to the compatibility question. For example, if you’re currently running your applications on IBM’s AIX, those applications would be no more or less compatible with Linux than they would be with Sun Solaris or HP-UX.
3. Printers and Other PeripheralsIt’s true that Linux doesn’t have a large number of choices when it comes to peripheral support. And, if you’ve ever tried to set up printing under Linux, it’s likely that you’re missing a few locks of your hair. There are hundreds of supported printers in the list but if yours falls outside that list, good luck to you. After spending hours searching forums, you may find that your printer isn’t supported at all and neither does it emulate any supported printer.Linux creates more printer- shaped doorstops and sculptures than any other contemporary operating system. The solution to this problem is to check your Linux distribution’s Hardware Compatibility List for printer and other peripheral compatibility prior to conversion. On the other hand, it’s probably time to replace that paper-gobbling dinosaur for something newer anyway.
4. Documents and Files This particular problem has more to do with the applications that run on Linux rather than the operating system itself. You will find general document and file compatibility with users of Microsoft Office, Adobe Photoshop and other popular software programs that run on Windows. General compatibility means that you can open, read and edit most of their attachments and file types. Files that won’t work with theOpenOffice.org office suite, the Graphics and Image Manipulation Program (GIMP ) or other similar application on Linux likely have some proprietary “hook” or special attribute that can only be interpreted by the original software that created it. Linux users often find themselves asking others to use creative tactics in order to help with compatibility problems. Performing “Save As” operations or exporting to a neutral file format usually solves the problem but requires effort from both parties.
5. Technical Skills Required Linux requires a higher level of computer knowledge to make things work. That isn’t to say that ordinary users can’t use Linux, but to perform more advanced functions–such as setting up peripherals that aren’t plug-and-play or installing non-packaged software–you’ll need those higher level technical skills. Setting up Linux workstations is relatively simple, but Linux server services require a very skilled technical person to enable and configure them. If you’re the type that likes to tinker with computers, to learn new things, and to celebrate a victory when you’re successful, then Linux is for you.Making the switch to Linux requires a dedication to the Linux platform,the Linux concept , and the ability to solve problems under often difficult circumstances. Realize that Linux doesn’t support every printer or peripheral on the market. If you’re considering a switch to Linux, you probably know that some obstacles exist and that you’ll have to make a few compromises along the way.If you want stay with the familiar and comfortable pitfalls that you’re accustomed to, use Windows. Or, to really dumb down your computing environment, you can pay the extra money for Apple products. You can also choose to suffer a little pain, make a few exceptions, use Linux to power your desktops and servers and experience a new level of computing freedom.

Quotes Created By Me

Its two three quotes I wanna share with you Guys Created by me:)

1) Its just too Tough to be Me..

2) My Girlfriend use Lakme brand of Lipstick….I hate its taste..

3) Even Noway has a Way in it.

I hope you enjoy it…Will add new If I got in my mind..

Hi Guys…Good News Now you can download full mp3 songs from airtellive!!! as free…(Yup I said Free…totally Free….)

Here is The Trick:-

1. Go to http://10.5.10.79/nsaregama/hmv.asp?L=Hindi

2. Select song(desired).

3. Now you will get an error page. Edit that page.

4. You can see an url as “req=xxxxxxxxxx”
for eg: req=FT88918637

5. Copy that 10 digit number after “req=”

6. Then go to http://10.5.10.79/spl/click.asp?req=xxxxxxxxxx
just replace xxxxxxxxxx with the number that you copied.
For eg: http://10.5.10.79/spl/click.asp?req=FT88918637

(Note: Balance should below 10rs…otherwise balance would deduct…Keep in Mind…Enjoy)

A Sweet Love Story

A SWEET LOVE STORY

He met her on a party. She was so outstanding, many guys chasing after her,
while he was so normal, nobody paid attention to him. At the end of the
party, he invited her to have coffee with him, she was surprised, but due to
being polite, she promised.
They sat in a nice coffee shop, he was too nervous to say anything, she felt
uncomfortable, she thought, please, let me go home. suddenly he asked the
waiter: “would you please give me some salt? I’d like to put it in my coffee.”
Everybody stared at him, so strange! His face turned red, but, still, he put
the salt in his coffee and drank it. She asked him curiously : why you have
this hobby? He replied: “when I was a little boy, I was living near the sea,
I liked playing in the sea, I could feel the taste of the sea ,just
like the taste of the salty coffee. Now every time I have the salty coffee, I always
think of my childhood, think of my home town, I miss my home town so much, I
miss my parents who are still living there”. While saying that tears filled his eyes. She was deeply touched.
That’s his true feeling, from the bottom of his heart. A man who can tell
out his homesickness, he must be a man who loves home, cares about
home, has responsibility of home. Then she also started to speak, spoke about her far
away hometown, her childhood, her family. That was a really nice talk, also a beautiful beginning of their story.
They continued to date. She found that actually he was a man who meets all her demands; he had tolerance, was kind hearted, warm, careful. He was such a good person but she almost missed him!Thanks to his salty coffee!
Then the story was just like every beautiful love story, the princess married to the prince, then they were living the happy life…
And, every time she made coffee for him, she put some salt in the coffee, as
she knew that’s the way he liked it. After 40 years, he passed away, left her a letter which said:” My dearest, please forgive me, forgive my whole
life lie. This was the only lie I said to you—the salty coffee.
Remember the first time we dated? I was so nervous at that time, actually I wanted
some sugar, but I said salt it was hard for me to change so I just went ahead. I never thought that could be the start of our communication!
I tried to tell you the truth many times in my life, but I was too afraid to do that, as I have promised not to lie to you for anything.. Now I’m dying, I afraid of nothing so I tell you the truth: I don’t like the salty coffee, what a strange bad taste..But I have had the salty coffee
for my whole life! Since I knew you, I never feel sorry for anything I do for you.
Having you with me is my biggest happiness for my whole life. If I can live for the second time, still want to know you and have you for my whole life, even though I have to drink the salty coffee again”. Her tears made the letter totally wet.

Someday,
someone asked her: what’s the taste of salty coffee?
It’s sweet.
She replied.

Love is not 2 forget
but 2 forgive
not 2 c but understand
not 2 hear but 2 listen
not 2 let go but HOLD ON !!!! :-P

FREE BROWSING AND DOWNLOADING VIA AIRTEL LIVE

Just Go to http://59.160.228.22/index.php?p=(url/link) in your default Browser with default Airtel Live settings. But sometimes it gives error page.

Another Alternative : You can also try http://59.160.228.22/index.php?p=(url/link) or to download a file with MO open 121.241.248.6.t9space.com/power/m/http/m2.ibibo.com/px/index.php?p=DOWNLOAD LINK

Enjoy the Post….

 

Paul the octopus , he has become one of the sensation of this year. He has become a Pundit by who everybody wanna know their Future. But there are many things you don’t know about him. So here are ten things you don’t know about paul the octopus.

1) He is originally from Waymouth: Paul was actually born In Weymouth and moved from the Town’s Sea life park in 2006. “ I think it was his faith that brinhgs him here to reveal his hidden abilities” said Fiona Smith from Sea Life Park.

2) He is  a Breaking News Star: Paul have gained so much popularity that German News channel NTV has started to broadcast his prediction Live on Tv .

3) He is on Wanted Boards:  Yup , there are many who want to cook him. Argentine Chef Nicolas Bedorrou was so angry after Paul correctly predicted his team would lose the quarter-final match with germay that He suggested a way to cook the octopus. He posted on facebook: “ We will chase him and put him on some paper  then we will beat him and put him in Boling water.

4) He is more famous than Tom Cruise : Paul has become  so famous that all the Web world got flooded byt the posts for him. He has more fans on social networking sites than Tom Cruise. Hats Off to him.

5) Girls wants him: According to a survey  , Over 81% of the girls said that they want him in their bedroom so that they can make love with him( Arghh..I hate him…) so go and kill him.

6) He’s got good track record: Paul began to predict Germany’s results during the Euro 2008 tournament correctly choosing the winner in four of Germany six matches. He predicts Germany to win every match but was wrong when they lost to Croatia and in the final to Spain. So far at the World cup 2010, Paul has correctly predicted the winner of each of Germany’s five matches.

7) He is an Intelligent creature: Octopuses are highly intelligent animals and have a strong short and long term memory. Fiona Smith from Weymouth sea life park said, “Octopuses like Paul are very intelligent. They have equal intelligence to Dogs and they love problem solving.

8) He is not a Cheater: Paul predicts results by opening one of the two flag covered plastic food container. Tanja Muzing containers are rigged. She said, “There are no tricks, in the two containers the food is same except the Flags”.

9) He costs more than 30 million dollars: There are many billioners out there who want to buy Paul like the world richest Man Carlos Slim. According to a U.S Magazine, Paul’s prize is more than 30 million and people are willing to pay for Him.

10)He is not scared of death threats: According to Oliver Waleciak, his keeper, “Paul is not scared of death threat sent by Argentine supporters who blame Paul for their World Cup exit.

He said, “There are many people who want to kill or eat our Paul but he is not shy or scared and we are here to protect him.

So here were 10 things Yoy dont Know Paul…

Use full free net on pc using proxifire. Open any pc software, its a gud replacement to big dotproxy, ssl support. I know there are recent proxifier tricks posts, but this one is 100% working!!!

  • Hi now u can use proxifire instead of big dotproxy trick and eliminate ssl problem rtsp:// problem..etc., by this method

First open proxifire and goto option>proxy settings in that click add button

  • now enter the RIM proxy server address : 10.239.221.22 port 8080

  • now select "https " as connection type now click ok

and then ok now goto options>advance>http traffic tick the rediredt http( s)…. check box and enter this 195.168.109.60/?id=jCustomerWAPProv in port put 8080

  • then tick the check box proxy server(s) from mail settings….. tats all

  • now click ok and now make all ur browser to no proxy mode and u can open all sites

ENJOY FREE SURFING

Add the open cmd prompt to folder context menus
also drives and My Computer

copy what’s in the code area to notepad and save as cmd here.reg

CODE

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT’Drive’shell’cmd]
@="Command Prompt"

[HKEY_CLASSES_ROOT’Drive’shell’cmd’command]
@="cmd.exe /k ’"cd %L’""

[HKEY_CLASSES_ROOT’Directory’shell’cmd]
@="Command Prompt"

[HKEY_CLASSES_ROOT’Directory’shell’cmd’command]
@="cmd.exe /k ’"cd %L’""

[HKEY_LOCAL_MACHINE’SOFTWARE’Classes’CLSID’{20D04FE0-3AEA-1069-A2D8-08002B30309D}’shell’cmd]
@="Command Prompt"

[HKEY_LOCAL_MACHINE’SOFTWARE’Classes’CLSID’{20D04FE0-3AEA-1069-A2D8-08002B30309D}’shell’cmd’command]
@="cmd.exe /k ’"cd %L’""

Thats Simple Na….Enjoy

Misc Linux Tips & Tricks

Tips

Speeding up your hard drive (#1)
Get faster file transfer by using 32-bit transfers on your hard drive

Just add the line:

hdparm -c3 /dev/hdX

to a bootup script.

If you use SuSE or other distros based on SYS V,

/sbin/init.d/boot.local
should work for you.

This enables 32-bit transfer on your hard drive. On some systems it can improve transfer performance by 75%.

To test your performance gain, type:

hdparm -t -T /dev/hdX

Protecting yourself from being a spam base(#2)
Sendmail allows for someone to telnet to port 25 and do an expn (expand) to see what users and aliases are on your machine. Also, vrfy (verify) means someone can get legal e-mail addresses from your box and send spam through your machine.

Don’t want that, so look in your /etc/sendmail.cf file for a line that looks like this:

###############
# Options #
###############

Now cut and paste these next few lines below that:

# turning off the expand option and requiring a helo from
# a remote computer
Opnoexpn,novrfy,needmailhelo

Now there is no expansion, no verify, and sendmail requires a helo with a legitimate DNS in order to use the mailer.

Then look in your /etc/mail/aliases file and ensure you have only your own boxen and/or subnet in there as OK or RELAY. That will help cut down on spammers’ ability to find relay machines to do their dirty work for them.

Cleaning up Netscape crashes(#3)
You have a tip about Netscape leaving copies of itself running below, but you can make a general shell script to clean up a Netscape crash like this:

#!/bin/sh
#kill.netscape
killall -9 netscape
rm ~/.netscape/lock

Then all your users can use it and clean up the dreaded hundred instances of Netscape running when it crashed. Change netscape to netscape-communicator or netscape-navigator as appropriate

More DOS-like commands(#4)
Many people are moving to Linux because they miss the stability of good old DOS. In that light, many users are typing DOS commands (which originated from UNIX in the first place) that look fine but cause errors. The command "cd.." in DOS is perfectly valid, but Linux balks. This is because "cd" is a command, and any parameter for that command must be separated from the command by a space. The same goes for "cd/" and "cd~". A quick fix is here.

Use your favorite text editor in your home directory to edit the file ".bashrc". The period is there on purpose, this hides the file from normal ls display.

Add the lines:

alias cd/="cd /"
alias cd~="cd ~"
alias cd..="cd .."

And I usually add these…

alias md="mkdir"
alias rd="rmdir -i"
alias rm="rm -i"

and my first and still favorite alias…

alias ls="ls –color"

alias is a powerful tool, and can be used in the .bashrc script as well as from the command line. You can, if you want to spend the time, create your own group of shell commands to suit how you work. As long as you put them in your .bashrc file, they’ll be there everytime you log in. Note that if you frequently log in as root, you might want to copy /home/username/.bashrc to /root/.bashrc to keep yourself sane.

Resurrecting corrupted floppies(#5)
Here’s how to make a floppy disk with "track-0 bad" reusable again:

If the track zero of a floppy disk is found to be bad, no DOS or Windows utility is going to do anything about it–you just have to throw it in your unrecycle bin.

This tip cannot recover the data, but can make the disk carry things again, at least for the time being (moments of desperation).

How to:

(A) Format the disk with Linux. Build a Linux file system (don’t use mformat). I did this some time before by invoking the makebootdisk command (in Slakware) and stopped after the formatting was over. There should be better ways to do it in RedHat 5.2 or other recent versions.

( Reformat the disk with Windows. Use the DOS window and the /u option while formatting.

Using DOS-like commands(#6)
There’s a package called mtools which is included with most of the distributions out there.

There are several commands for basic DOS stuff. For example, to directory the floppy drive, type mdir a:. This is rather handy–you don’t need to mount the floppy drive to use it.

Other commands are: mattrib , mcd, mcopy, mdel, mformat, mlabel, mren (rename), mmd, mrd, and mtype.

This doesn’t work for reading from hard disks. In that case, you would add entries to /etc/fstab, drive type msdos for fat16 partitions, and vfat for fat32.

Copying files from Linux to Windows 98 or 95B (FAT32)(#7)
It’s as easy as installing the program explore2fs. It uses a Windows Explorer interface and supports drag-and-drop. I have found it reliable and useful for migrating files from my RedHat 6.1 partition to my Win95B partition quickly and with a minimum of fuss.

It’s available free–as all software should be–from this URL:
CODE
http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm

Installing in partitions(#8)
I am using SuSE Linux, which has some interesting options (I don’t know if RedHat or other distributions offer you this, too).

1. You can install Linux on a single file in your Windows Partition. Nice to try it out, but I guess it is not that fast then. You can load it then with a DOS program, loadlin.

2. Use Fips or Partition Magic. Defragment your hard drive (you should do this for Point 1, too) and split it up. I guess most users just have one partition, which you should split up into at least three: one for the Linux files, and a smaller swap partition (take about 32 to 64 MB, depending on your RAM–less RAM needs bigger swap partitions). If you decide later to deinstall Linux you can always delete both partitions and create one big one for Windows again.

Fips is a stupid command line program, but if you’re too lazy to read at least a little bit, then you should stop thinking about Linux anyway…

Command Pipelines(#9)
Pipes are easy. The Unix shells provide mechanisms which you can use them to allow you to generate remarkably sophisticated `programs’ out of simple components. We call that a pipeline. A pipeline is composed of a data generator, a series of filters, and a data consumer. Often that final stage is as simple as displaying the final output on stdout, and sometimes the first stage is as simple as reading from stdin. I think all shells use the "|" character to separate each stage of a pipeline. So:

data-generator | filter | … | filter | data-consumer

Each stage of the pipeline runs in parallel, within the limits which the system permits. Hey, look closely, because that last phrase is important. Are you on a uni-processor system because if you are, then obviously only one process runs at a time, although that point is simply nitpicking. But pipes are buffers capable of holding only finite data. A process can write into a pipe until that pipe is full. When the pipe is full the process writing into it blocks until some of the data already in the pipe has been read. Similarly, a process can read from a pipe until that pipe is empty. When it’s empty the reading process is blocked until some more data has been written into the pipe.

What is IP masquerading and when is it of use?(#10)
IP masquerading is a process where one computer acts as an IP gateway for a network. All computers on the network send their IP packets through the gateway, which replaces the source IP address with its own address and then forwards it to the internet. Perhaps the source IP port number is also replaced with another port number, although that is less interesting. All hosts on the internet see the packet as originating from the gateway.

Any host on the Internet which wishes to send a packet back, ie in reply, must necessarily address that packet to the gateway. Remember that the gateway is the only host seen on the internet. The gateway rewrites the destination address, replacing its own address with the IP address of the machine which is being masqueraded, and forwards that packet on to the local network for delivery.

This procedure sounds simple, and it is. It provides an effective means by which you can provide second class internet connections for a complete LAN using only one (internet) IP address.

Setting UTC or local time(#11)
When Linux boots, one of the initialisation scripts will run the /sbin/hwclock program to copy the current hardware clock time to the system clock. hwclock will assume the hardware clock is set to local time unless it is run with the –utc switch. Rather than editing the startup script, under Red Hat Linux you should edit the /etc/sysconfig/clock file and change the “UTC’’ line to either “UTC=true’’ or “UTC=false’’ as appropriate.
Setting the system clock(#12)
To set the system clock under Linux, use the date command. As an example, to set the current time and date to July 31, 11:16pm, type “date 07312316’’ (note that the time is given in 24 hour notation). If you wanted to change the year as well, you could type “date 073123161998’’. To set the seconds as well, type “date 07312316.30’’ or “date 073123161998.30’’. To see what Linux thinks the current local time is, run date with no arguments.

Setting the hardware clock(#13)
To set the hardware clock, my favourite way is to set the system clock first, and then set the hardware clock to the current system clock by typing “/sbin/hwclock –systohc’’ (or “/sbin/hwclock –systohc –utc’’ if you are keeping the hardware clock in UTC). To see what the hardware clock is currently set to, run hwclock with no arguments. If the hardware clock is in UTC and you want to see the local equivalent, type “/sbin/hwclock –utc’’

Setting your timezone(#14)
The timezone under Linux is set by a symbolic link from /etc/localtime[1] to a file in the /usr/share/zoneinfo[2] directory that corresponds with what timezone you are in. For example, since I’m in South Australia, /etc/localtime is a symlink to /usr/share/zoneinfo/Australia/South. To set this link, type:

ln -sf ../usr/share/zoneinfo/your/zone /etc/localtime

Replace your/zone with something like Australia/NSW or Australia/Perth. Have a look in the directories under /usr/share/zoneinfo to see what timezones are available.

[1] This assumes that /usr/share/zoneinfo is linked to /etc/localtime as it is under Red Hat Linux.

[2] On older systems, you’ll find that /usr/lib/zoneinfo is used instead of /usr/share/zoneinfo. See also the later section “The time in some applications is wrong’’.

Zombies(#15)
What are these zombie processes that show up in ps? I kill them but they don’t go away!

Zombies are dead processes. You cannot kill the dead. All processes eventually die, and when they do they become zombies. They consume almost no resources, which is to be expected because they are dead! The reason for zombies is so the zombie’s parent (process) can retrieve the zombie’s exit status and resource usage statistics. The parent signals the operating system that it no longer needs the zombie by using one of the wait() system calls.

When a process dies, its child processes all become children of process number 1, which is the init process. Init is “always’’ waiting for children to die, so that they don’t remain as zombies.

If you have zombie processes it means those zombies have not been waited for by their parent (look at PPID displayed by ps -l). You have three choices: Fix the parent process (make it wait); kill the parent; or live with it. Remember that living with it is not so hard because zombies take up little more than one extra line in the output of ps.

How do i give users an ftp only account (no telnet, etc).(#16)

give them shell which doesn’t work, but is listed in /etc/shells
for example /bin/false…

How to do backup with tar?(#17)
You can mantain a list of files that you with to backup into a file and tar
it when you wish.

tar czvf tarfile.tar.gz -T list_file

where list_file is a simple list of what you want to include into the tar

i.e:

/etc/smb.conf
/root/myfile
/etc/ppp (all files into the /etc/ppp directory)
/opt/gnome/html/gnome-dev-info.html

How to keep a computer from answering to ping?(#18)

a simple "echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all" will do the
trick… to turn it back on, simply
"echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all"

Customizing your directory colors.(#19)
I know a lot of you know the command ls –color. Which displays your directory with colors. But, a lot of people may not know that those colors are customizable. All you need to do is add the following line to your /etc/bashrc file.

eval `dircolors /etc/DIR_COLORS`

And then all of the color configuration can be found in the file /etc/DIR_COLORS

Frozen Xwindow(#20)
If your Xwindow freezes sometimes, here are two ways that you may try to kill your server. The first is the simple simple way of killing your X server the key combination: Ctrl+Alt+Backspace

The second way is a little more complicated, but it works most of the time. Hit Ctrl+Alt+F2 to startup a virtual console, then log in with your user name and password and run:

# ps -ax | grep startx

This will give you the PID of your Xserver. Then just kill it with:

# kill -9 PID_Number

To go back to your first console, just hit Alt-F1

Converting all files in a directory to lowercase.(#21)
#!/bin/sh
# lowerit
# convert all file names in the current directory to lower case
# only operates on plain files–does not change the name of directories
# will ask for verification before overwriting an existing file
for x in `ls`
do
if [ ! -f $x ]; then
continue
fi
lc=`echo $x | tr ’[A-Z]’ ’[a-z]’`
if [ $lc != $x ]; then
mv -i $x $lc
fi
done

Wow. That’s a long script. I wouldn’t write a script to do that; instead, I would use this command:

for i in * ; do [ -f $i ] && mv -i $i `echo $i | tr ’[A-Z]’ ’[a-z]’`;
done;

on the command line.

Script to view those compressed HOWTOs.(#22)
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

When called without argument, it displays a directory of the available howto’s. Then when entered with the first part of the file name (before the hyphen) as an argument, it unzips (keeping the original intact) then displays the document.
For instance, to view the Serial-HOWTO.gz document, enter:

$ howto Serial

Util to clean up your logfiles.(#23)
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:

# Run chklogs at 9:00PM daily.
00 21 * * * /usr/local/sbin/chklogs -m

Handy Script to Clean Up Corefiles.(#24)
Create a file called rmcores(the author calls it handle-cores) with the following in it:

#!/bin/sh
USAGE="$0 "

if [ $# != 2 ] ; then
echo $USAGE
exit
fi

echo Deleting…
find $1 -name core -atime 7 -print -type f -exec rm {} ’;

echo e-mailing
for name in `find $1 -name core -exec ls -l {} ’; | cut -c16-24`
do
echo $name
cat $2 | mail $name
done

And have a cron job run it every so often.

Moving directories between filesystems.Quick way to move an entire tree of files from one disk to another (#25)
(cd /source/directory && tar cf – . ) | (cd /dest/directory && tar xvfp -)

[ Change from cd /source/directory; tar....etc. to prevent possibility of trashing directory in case of disaster.]

Finding out which directories are the largest.Ever wondered which directories are the biggest on your computer? Here’s how to find out.(#26)
du -S | sort -n

How do I stop my system from fscking on each reboot?(#27)
When you rebuild the kernel, the filesystem is marked as ’dirty’ and so your disk will be checked with each boot. The fix is to run:

rdev -R /zImage 1

This fixes the kernel so that it is no longer convinced that the filesystem is dirty.

Note: If using lilo, then add read-only to your linux setup in your lilo config file (Usually /etc/lilo.conf)

How to avoid fscks caused by "device busy" at reboot time.(#28)
If you often get device busy errors on shutdown that leave the filesystem in need of an fsck upon reboot, here is a simple fix:
To /etc/rc.d/init.d/halt or /etc/rc.d/rc.0, add the line

mount -o remount,ro /mount.dir

for all your mounted filesystems except /, before the call to umount -a. This means if, for some reason, shutdown fails to kill all processes and umount the disks they will still be clean on reboot. Saves a lot of time at reboot for me.

How to find the biggest files on your hard-drive.(#29)

ls -l | sort +4n

Or, for those of you really scrunched for space this takes awhile but works great:

cd /
ls -lR | sort +4n

A script for cleaning up after programs that create autosave and backup files.(#30)
Here is a simple two-liner which recursively descends a directory hierarchy removing emacs auto-save (#) and backup (~) files, .o files, and TeX .log files. It also compresses .tex files and README files. I call it ’squeeze’ on my system.

#!/bin/sh
#SQUEEZE removes unnecessary files and compresses .tex and README files
#By Barry tolnas, tolnas@sun1.engr.utk.edu
#
echo squeezing $PWD
find $PWD ’( -name ’*~ -or -name ’*.o -or -name ’*.log -or -name ’*’#’) -exec
rm -f {} ’;
find $PWD ’( -name ’*.tex -or -name ’*README’* -or -name ’*readme’* ’) -exec gzip -9 {} ’;

How to find out what process is eating the most memory.(#31)
ps -aux | sort +4n

-OR-
ps -aux | sort +5n

How do I find which library in /usr/lib holds a certain function?(#32)
What if you’re compiling and you’ve missed a library that needed linking in? All gcc reports are function names… Here’s a simple command that’ll find what you’re looking for:

for i in *; do echo $i:;nm $i|grep tgetnum 2>/dev/null;done

Where tgetnum is the name of the function you’re looking for.

I compiled a small test program in C, but when I run it, I get no output!(#32)
You probably compiled the program into a binary named test, didn’t you? Linux has a program called test, which tests if a certain condition is true, it never produces any output on the screen. Instead of just typing test, try: ./test