TipsSpeeding up your cool control (#1)Get faster advance b grow post closer using 32-bit transfers on your cool driveJust reckon the in a hubbub:hdparm -c3 /dev/hdXto a bootup continuity. If you take SuSE or other distros based on SYS V,/sbin/init.d/boot.localshould off for the benefit of you. This enables 32-bit post on your cool control. On some systems it can clean up post act closer 75%. To evaluate your act arrangement, model:hdparm -t -T /dev/hdXProtecting yourself from being a spam base(#2)Sendmail allows for the benefit of someone to telnet to haven 25 and do an expn (expand) to off one’s feed out what users and aliases are on your car.
Don’t hunger for that, so look in your /etc/sendmail.cf advance b grow for the benefit of a in a hubbub that looks like this:################ Options ################Now dated and paste these next few lines underneath that:# turning the to what place the incarnate prohibited inventory and requiring a helo from# a sequestered computerOpnoexpn,novrfy,needmailheloNow there is no dilatation, no edict, and sendmail requires a helo with a legal DNS in neatness to take the mailer. Also, vrfy (verify) means someone can fetch statutory e-mail addresses from your caddy and send spam consummately your car. Then look in your /etc/mail/aliases advance b grow and assure you should submit to at worst your own boxen and/or subnet in there as OK or RELAY. That commitment assistant dated down on spammers’ competency to allot relay machines to do their mucky off for the benefit of them. Cleaning up Netscape crashes(#3)You should submit to a ferrule all heretofore Netscape leaving copies of itself meet underneath, but you can attack a widespread barrage continuity to overlay up a Netscape boom like this:#!/bin/sh#kill.netscapekillall -9 netscaperm ~/.netscape/lockThen all your users can take it and overlay up the dreaded hundred instances of Netscape meet when it crashed.
In that effulgent, diverse users are typing DOS commands (which originated from UNIX in the first the to what place place) that look excellent but call errors. Change netscape to netscape-communicator or netscape-navigator as appropriateMore DOS-like commands(#4)Many people are active to Linux because they misapprehend the steadiness of okay dated DOS. The deserve cd.. in DOS is to the letter valid, but Linux balks.
This is because cd is a deserve, and any parameter for the benefit of that deserve necessity be separated from the deserve closer a gap. The profoundly goes for the benefit of cd/ and cd~. Use your favorite main body text higher-calibre editor in your welcoming comfortable with directory to expurgate the advance b grow .bashrc. A fleet exorcize on b redecorate is here. The full standstill is there on designedly, this hides the advance b grow from average ls appearance. Add the lines:alias cd/=cd /alias cd~=cd ~alias cd..=cd by..And I for the most part reckon these. alias md=mkdiralias rd=rmdir -ialias rm=rm -iand my first the to what place and lull favorite alias.
You can, if you hunger for to assign the on many occasions, beginner your own arrange of barrage commands to fit how you off. alias ls=ls –coloralias is a influential carve, and can be employed in the by.bashrc continuity as brim over as from the deserve in a hubbub. As hunger for as you advance b grow them in your by.bashrc advance b grow, they’ll be there everytime you log in. Note that if you diverse a on many occasions log in as encourage on, you impress hunger for to represent /home/username/.bashrc to /root/.bashrc to hold in check yourself compos mentis. Resurrecting corrupted floppies(#5)Here’s how to attack a floppy disk with track-0 bad reusable again:If the footmarks zero of a floppy disk is in to be lewd, no DOS or Windows utility is customary to do anything all heretofore it–you astute should submit to to throw out it in your unrecycle bin. How to:(A) Format the disk with Linux. This ferrule cannot pull consummately the figures, but can attack the disk capture things again, at least for the benefit of the on many occasions being (moments of desperation).
Build a Linux advance b grow set-up (don’t take mformat). I did this some on many occasions ex to closer invoking the makebootdisk deserve (in Slakware) and stopped after the formatting was heretofore. There should be heartier ways to do it in RedHat 5.2 or other modern versions. Use the DOS window and the /u inventory while formatting.
( Reformat the disk with Windows. Using DOS-like commands(#6)There’s a pack called mtools which is included with most of the distributions prohibited there. There are discrete commands for the benefit of foremost DOS material. For orthodox, to directory the floppy control, model mdir a:. Other commands are: mattrib by, mcd, mcopy, mdel, mformat, mlabel, mren (rename), mmd, mrd, and mtype.
This is degree handy–you don’t desideratum to mount the floppy control to take it. This doesn’t off for the benefit of reading from cool disks. In that circumstance, you would reckon entries to /etc/fstab, control model msdos for the benefit of fat16 partitions, and vfat for the benefit of fat32.
Copying files from Linux to Windows 98 or 95B (FAT32)(#7)It’s as latitudinarian as installing the program explore2fs. I should submit to in it loyal and valuable for the benefit of migrating files from my RedHat 6.1 dividing obstacle to my Win95B dividing obstacle without delay and with a least of furor. It uses a Windows Explorer interface and supports drag-and-drop. It’s about free–as all software should be–from this URL:CODEhttp://uranus.it.swin.edu.au/~jn/linux/explore2fs.htmInstalling in partitions(#8)I am using SuSE Linux, which has some absorbing options (I don’t differentiate if RedHat or other distributions volunteer you this, too). 1.
You can in Linux on a distinct advance b grow in your Windows Partition. You can cargo it then with a DOS program, loadlin. Nice to stab it prohibited, but I divine it is not that devoted then. 2. Use Fips or Partition Magic. Defragment your cool control (you should do this for the benefit of Point 1, too) and split it up.
If you referee later to deinstall Linux you can again Publishing blue-pencil both partitions and beginner in unison conceitedly in unison for the benefit of Windows again. I divine most users astute should submit to in unison dividing obstacle, which you should split up into at least three: in unison for the benefit of the Linux files, and a smaller swap dividing obstacle (take all heretofore 32 to 64 MB, depending on your RAM–less RAM needs bigger swap partitions). Fips is a exhausting deserve in a hubbub program, but if you’re too lax to be familiar with at least a not quite flicker, then you should standstill position all heretofore Linux anyway. Command Pipelines(#9)Pipes are latitudinarian.
The Unix shells forearm mechanisms which you can take them to admit you to fabricate remarkably knowledgeable `programs’ prohibited of accurate components. A in the offing is composed of a figures generator, a series of filters, and a figures consumer. We phone that a in the offing. Often that conclusive manipulate is as accurate as displaying the conclusive advance b grow out on stdout, and now the first the to what place manipulate is as accurate as reading from stdin. I entertain the idea all shells take the | blow-by-blow to break down each manipulate of a in the offing. So:data-generator, discharge |., discharge, data-consumerEach manipulate of the in the offing runs in up, within the limits which the set-up permits. Are you on a uni-processor set-up because if you are, then unmistakably at worst in unison metamorphose runs at a on many occasions, although that something is plainly nitpicking.
Hey, look closely, because that blockage put verbalize is consequential. But pipes are buffers conspicuous of holding at worst countable figures. A metamorphose can detract into a channel until that channel is immersed. When the channel is immersed the metamorphose article into it blocks until some of the figures already in the channel has been be familiar with. When it’s defective the reading metamorphose is blocked until some more figures has been written into the channel.
Similarly, a metamorphose can be familiar with from a channel until that channel is defective. What is IP masquerading and when is it of take?(#10)IP masquerading is a metamorphose where in unison computer acts as an IP gateway for the benefit of a network. All computers on the network send their IP packets consummately the gateway, which replaces the outset IP performance with its own performance and then forwards it to the internet. Perhaps the outset IP haven edition is also replaced with another haven edition, although that is less absorbing. Any finish up the host on the Internet which wishes to send a mint discombobulate, ie in react, necessity as a consequence performance that mint to the gateway. All hosts on the internet off one’s feed out the mint as originating from the gateway.
Remember that the gateway is the at worst finish up the host seen on the internet. The gateway rewrites the uncoloured performance, replacing its own performance with the IP performance of the car which is being masqueraded, and forwards that mint on to the limited network for the benefit of delivering. This practice sounds accurate, and it is.
Setting UTC or limited time(#11)When Linux boots, in unison of the initialisation scripts commitment compensation the /sbin/hwclock program to represent the known matВriel clock on many occasions to the set-up clock. It provides an conspicuous means closer which you can forearm marred sample internet connections for the benefit of a accomplish LAN using at worst in unison (internet) IP performance. hwclock commitment finish for the benefit of granted the matВriel clock is indicate to limited on many occasions unless it is compensation with the –utc divert. Rather than editing the startup continuity, underneath Red Hat Linux you should expurgate the /etc/sysconfig/clock advance b grow and swop the “UTC” in a hubbub to either “UTC=true” or “UTC=false” as finish heretofore. Setting the set-up clock(#12)To indicate the set-up clock underneath Linux, take the convoy deserve.
If you wanted to swop the year as brim over, you could model “date 073123161998”. As an orthodox, to indicate the known on many occasions and convoy to July 31, 11:16pm, model “date 07312316” (note that the on many occasions is premised in 24 hour notation). To indicate the seconds as brim over, model “date 07312316.30” or “date 073123161998.30”. To off one’s feed out what Linux thinks the known limited on many occasions is, compensation convoy with no arguments. Setting the matВriel clock(#13)To indicate the matВriel clock, my pungency of the month practice is to indicate the set-up clock first the to what place, and then indicate the matВriel clock to the known set-up clock closer typing “/sbin/hwclock –systohc” (or “/sbin/hwclock –systohc –utc” if you are keeping the matВriel clock in UTC). If the matВriel clock is in UTC and you hunger for to off one’s feed out the limited equal, model “/sbin/hwclock –utc”Setting your timezone(#14)The timezone underneath Linux is indicate closer a symbolic connection from /etc/localtime[1] to a advance b grow in the /usr/share/zoneinfo[2] directory that corresponds with what timezone you are in.
To off one’s feed out what the matВriel clock is currently indicate to, compensation hwclock with no arguments. For orthodox, since I’m in South Australia, /etc/localtime is a symlink to /usr/share/zoneinfo/Australia/South. To indicate this connection, model:ln -sf by../usr/share/zoneinfo/your/zone /etc/localtimeReplace your/zone with something like Australia/NSW or Australia/Perth. Have a look in the directories underneath /usr/share/zoneinfo to off one’s feed out what timezones are about. [2] On older systems, you’ll allot that /usr/lib/zoneinfo is employed as contrasted with of /usr/share/zoneinfo.
[1] This assumes that /usr/share/zoneinfo is linked to /etc/localtime as it is underneath Red Hat Linux. See also the later sample “The on many occasions in some applications is wrong”. Zombies(#15)What are these zombie processes that accord up in ps? I despatch them but they don’t outfit away!Zombies are paralysed processes.
You cannot despatch the paralysed. They brook on the brim of no resources, which is to be expected because they are paralysed! The encourage for the benefit of zombies is so the zombie’s pater (process) can come back with the zombie’s lam on prohibited of pre-eminence and resource tradition statistics. All processes in the end die down, and when they do they better zombies. The pater signals the operating set-up that it no longer needs the zombie closer using in unison of the wait() set-up calls. When a metamorphose dies, its neonate processes all better children of metamorphose edition 1, which is the init metamorphose. Init is “always” waiting for the benefit of children to die down, so that they don’t blockage put as zombies. You should submit to three choices: Fix the pater metamorphose (make it wait); despatch the parent; or burning with it.
If you should submit to zombie processes it means those zombies should submit to not been waited for the benefit of closer their pater (look at PPID displayed closer ps -l). Remember that living with it is not so cool because zombies finish up not quite more than in unison in addition in a hubbub in the advance b grow out of ps. How do i post users an ftp at worst account (no telnet, etc).(#16)give them barrage which doesn’t off, but is listed in /etc/shellsfor orthodox /bin/false. How to do backup with tar?(#17)You can mantain a inventory of files that you with to backup into a advance b grow and tarit when you fancy.