Jump to content
Scot's Newsletter Forums
Sign in to follow this  

Tips for Linux Explorers

Recommended Posts

[b][size=5][color=#FF0000]NOTE:[/color][/size] Please be aware that the recent board software upgrade has corrupted the formatting on many threads/posts here on the board. This thread happens to be one of those that was affected. Please be patient with us here at Scot's while we manually repair each of these posts. You can always visit [url="http://www.brunolinux.com/"]Bruno's Tips for Linux Explorers[/url] directly to read this same info that you see here in this thread. Thank you for your understanding.[/b]

[b]~Eric, for the entire Staff at Scot's.[/b]


General Linux tips can be a bit difficult to locate. In order to simplify where to look for the tips, I started this thread. I will add a new tip on a regular basis. Please keep in mind these tips are posted in random order, based upon questions posted on any given day. These do not provide full information, but just enough to make you hungry for more.

[center][color=red]NOTE: [/color] [color=blue][url="http://www.brunolinux.com"]This s[/url][/color][url="http://www.brunolinux.com"][color=blue]ite[/color][/url] [color=red] has exactly the same info but additionally an accurate search function through the Tips[/color][/center]

[b][size=1][color=#666666]The First Things To Know:[/color][/size][/b]

[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=80"]I[/url][url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=80"]SO's and md5sum[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=143"]Checksum ISO's in Windows[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=81"]Burning ISO's[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=339"]Windows Tools: Burning ISOs[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=340"]Windows Tools: Gparted[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=102"]Md5sum of already burned CD's[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=226"]Check CD Script[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=309"]SHA-1 Checksums[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=142"]Live CD's ( disto's that run from CD )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=112"]Basic rules for install[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=199"]Change the BIOS settings[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=207"]Making a boot floppy[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=220"]Boot/Rescue CD[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=218"]Formatting Floppy and Zip disks[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=214"]The Tree[/url] [url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=1"]Runaway Processes ( and how to kill them )[/url]
[url="http://forums.scotsnewsletter.com/index.php?showtopic=503&#entry5333"]Skinny Elephants ( if all else fails )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=3"]Copy and paste[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=155"]The "reset"-button[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=161"]Updating your distro[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=216"]Su and Root ( the difference )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=201"]Install cheatcodes[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=118"]Lost user password[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=119"]Lost Root password[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=121"]Tricks in KDE home[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=202"]The Linux Counter[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=240"]Ultimate Boot CD[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=254"]Backing-Up the MBR[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=258"]Restoring the XP MBR[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=362"]Removing Vista boot option[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=317"]The Command "Info"[/url]

[b][size=1][color=#666666]The [/color][/size][/b][b][size=1][color=#666666]Terminal/Console:[/color][/size][/b]

[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=11"]The Console/Terminal[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=12"]VI and Emacs[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=213"]Vi ( Revisited )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=55"]Bash history[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=56"]Bash script[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=204"]Tab completion[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=283"]Ctrl+C ( Stop Processing Command )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=71"]File permissions[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=72"]Changing file permissions[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=336"]umask ( Advanced permissions )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=363"]Suid, Sticky and Chattr ( Advanced permissions )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=203"]The whatis command[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=5"]Handy console commands[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=74"]Hardlinks and symlinks[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=89"]Again, handy file commands[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=164"]The command less[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=57"]A simple backup script[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=99"]Redirections ( and the black hole: /dev/null )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=113"]Basic machine information[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=368"]Hardware info commands[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=117"]Getting in textmode and shutting down X[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=165"]The "links" browser[/url] [url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=179"]f[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=179"]stab and mtab[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=180"]Mount and umount[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=170"]Grep is for searching within a file[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=171"]Global expressions[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=172"]Regular expressions[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=186"]The "PATH"[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=205"]Splitting large files[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=215"]Md5sum Trick[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=228"]The Host Command[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=255"]CDrecord and Kernel 2.6[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=260"]Tweak the command "ls -l"[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=262"]Transparent Console[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=281"]The Find commad[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=284"]Find and Replace with Sed[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=298"]Diff and Cmp (Find the difference)[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=299"]Diff, Find and Md5sum[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=300"]DirDiff Script ( Diff the content of 2 directories )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=301"]Head and Tail[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=311"]The Groups Command[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=313"]Shred ( really delete )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14=503&st=316"]Back- and Foreground Processes[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=322"]The Command "File"[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=323"]FTP on the Command Line[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=331"]What Day was Yesterday ?[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=332"]ldconfig ( Where are the Libs ? )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=335"]Easy Config File Backup[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=344"]Make ISO from CD[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=349"]The "at" Command[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=350"]Kdesu and gksu[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=352"]Counting words ( The "wc" command )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=357"]Change your Shell[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=364"]The dd command[/url]

[b][size=1][color=#666666]Installing Software:[/color][/size][/b]

[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=30"]Installing software RPM[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=31"]Installing software TGZ[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=32"]Installing software tarballs[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=24"]Installing Software YUM for Fedora[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=23"]Installing software URPMI[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=371"]Installing software URPMI Part 2[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=225"]URPMI Sources in Mandrake 9.2[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=257"]URPMI Sources in Mandrake 10.0 Official[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=280"]URPMI Sources in Mandrake 10.1 Official[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=304"]URPMI Sources in Mandriva 2005 LE[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=321"]URPMI Sources in Mandriva 2006[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=358"]URPMI Sources in Mandriva 2007[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=163"]Mandrake Club URPMI[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=193"]Searching software in MCC ( Mandrake only )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=93"]Penguin Liberation Front Cheat-codes[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=110"]Updating your urpmi-sources[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=286"]Lost URPMI Distribution Sources[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=312"]SRPMs ( Source RPMs )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=353"]RPM, Special tricks[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=369"]Urpmq and urpmf[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=114"]What is in that package ?[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=120"]Installing Firefox in Linux[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=157"]Version numbers[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=158"]Re-install and upgrades[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=189"]Corrupt RPM database[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=194"]Searching software ( All distro's )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=195"]Ximian Red Carpet[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=224"]TAR Unpacking Packages[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=241"]Swaret ( For Slackware )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=245"]Apt-Get and Swaret on Dial-up[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=318"]Installing a Kernel Source[/url]

[b][size=1][color=#666666]File System:[/color][/size][/b]

[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=46"]Partitions[/url] [url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=267"]Primary, Extended and Logical Partitions[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=49"]File systems[/url] [url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=288"]Partitioning Tools ( And which ones not to use )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=372"]Diskdrake Part 1[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=373"]Diskdrake Part 2[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=13"]Navigating the filesystem and simple commands[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=209"]Mounting DOS/Windows partitions[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=64"]Important config files and directories[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=200"]Damaged Superblock[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=206"]USB memory sticks and digital cameras[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=208"]ISO to zip-drive[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=221"]Press Y Within 5 Seconds[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=242"]File System Commands[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=50"]FSCK ( Filesystem check )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=243"]File System Check 2 ( fsck )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=198"]Auto fsck[/url] [url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=244"]Fdisk ( fdisk )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=274"]Bad Blocks[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=324"]Access Linux Partitions from Windows[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=333"]MBR - Hard Disk Layout[/url]

[b][size=1][color=#666666]Configuring Your System: [/color][/size][/b]

[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=109"]Cronjobs and the Cron-daemon[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=4"]Cron and Anacron[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=253"]User Related Cronjobs[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=76"]The Lilo bootloader[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=197"]Multiboot Lilo[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=346"]Password Protect[/url][url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=346"]Lilo[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=347"]Redo Lilo / Redo MBR ( PCLos )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=229"]Grub, The Bootloader[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=365"]Multiboot Grub[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=366"]Grub, booting runlevel 3[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=92"]Configuring your networkcard[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=105"]Config commands in RedHat ( and Fedora )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=123"]Dmesg debug messages[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=247"]CPU Info[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=173"]Configuring and compiling the kernel[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=185"]Log files cleaning[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=334"]Installing Macromedia Flash Plugin[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=212"]Installing Java plugin[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=287"]Initscript Services ( chkconfig )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=329"]Changing Hostname[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=330"]Changing Hostname in D*** Small Linux[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=345"]Sharing Firefox and Thunderbird Config[/url]

[b][size=1][color=#666666]Fine Tuning Your System:[/color][/size][/b]

[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=54"]Tweaking the prompt[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=38"]Multimedia keys in Linux[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=106"]Extra mouse buttons[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=100"]Network status mii-diag[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=59"]Ugly fonts in OpenOffice.org[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=60"]Disable the OpenOffice.Org splash sreen[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=222"]OpenOffice Quickstarter[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=290"]Speed Up OpenOffice[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=73"]T[/url][url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=73"]weak Evolution[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=75"]Tweaking Vi[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=187"]Hdparm ( Harddisk performance )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=132"]3D acceleration test[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=192"]Memory test[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=230"]Configure X[/url][url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=348"]Running[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=233"]nVidia Drivers[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=266"]Sensors in Gkrellm[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=268"]Tweaking the Bootsplash[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=277"]Extra Firefox Prefs[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=289"]System Notifications Failure[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=295"]Xlib Error[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=296"]Tweaking MTU Settings[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=314"]CD Spellcheck[/url][url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=343"]Init ( Startup Scripts )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=351"]No Capslock[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=360"]Numlock in XFCE, IceWM and Fluxbox[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=361"]Numlock in Text-Mode[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=367"]ScreenShot Script[/url]


[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=249"]Services Started at Boot[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=250"]Servers and Services[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=251"]Rootkit Checkers[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=252"]AV Software, and why you don't need it[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=269"]F-Prot AV scanner for Linux[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=297"]Browsers & Privacy[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=308"]Mandriva Security Settings ( MSEC )[/url]


[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=146"]Modems and Linux[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=149"]Fast Ethernet cards ( NIC's )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=150"]Conexant dial-in PCI modem in RedHat[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=219"]Hardware Databases[/url] [url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=271"]Win-Drivers for Wlan Cards[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=275"]Problematic Canon Printers[/url]

[b][size=1][color=#666666]Wireless Networking:[/color][/size][/b]

[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=291"]WiFi Support ( Mandrake and PCLos )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=310"]Configuring NDISwrapper in the Control Center[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=293"]Configuring Wireless USB[/url] [url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=294"]Finding a WiFi Card ( Linux Compatible )[/url]

[b][size=1][color=#666666]Distro Specific:[/color][/size][/b]

[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=144"]Slackware Tips 1[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=236"]Slackware Tips 2[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=273"]Slackware Tips 3[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=327"]Slackware Tips 4[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=370"]Slackware Tips 5[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=210"]D*** Small Linux HD install[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=263"]D*** Small Linux: MyDSL[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=341"]D*** Small Linux from USB, Saving Personal Files[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=342"]D*** Small Linux from USB, Saving MyDSL Extensions[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=151"]Installing RedHat ( first time )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=356"]Fedora Core 6 Install[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=94"]Knoppix cheat-codes[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=139"]More Knoppix cheatcodes[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=359"]U[/url][url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=359"]buntu Rescue Mode[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=176"]Extra fonts in Mandrake[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=223"]Mandrake Update CD[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=337"]Store and Sync Mandriva[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=337"]Updates Locally[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=338"]Local Mail in Mandriva[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=231"]Mandrake 9.2 Install[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=264"]Mandrake 10.0 Official[/url][url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=264"]Install[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=278"]Mandrake 10.1 Official Install[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=302"]Mandriva 2005 LE Install[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=319"]Mandriva 2006 Install[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=354"]Mandriva 2007 Install[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=256"]Alternative Mandriva Install[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=348"]Running XFdrake[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=5233"]PCLos 5 Tips[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=246"]PCLos Tweaks ( Preview 5 and 7 )[/url]
[url="http://forums.scotsnewsletter.com/index.php?showtopic=10211"]PCLos 8 tips[/url]
[url="http://forums.scotsnewsletter.com/index.php?showtopic=12283"]PCLos 9 tips[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=326"]PCLos 92 Performance Tweaks[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=347"]Redo Lilo / Redo MBR ( PCLos )[/url]

[b][size=1][color=#666666]General Info:[/color][/size][/b]

[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=306"]Start New Session[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=41"]A ( tiny ) keyboad tip[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=58"]Gkrellm, mailcheck and sound[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=131"]Gkrellm weather applet[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=137"]Keyboard shortcuts[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=111"]Commandline mp3 player[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=88"]Shoutcast-Stream to MP3[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=122"]Backup your Windows in Linux[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=145"]Navigating windows partitions[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=156"]Linux User Groups ( LUGs )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=175"]CD ripping with konqueror[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=178"]Screen savers in KDE[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=188"]Index.dat ( the secret Windows files )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=196"]Backup mail Evolution[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=211"]RSS feeds, Linux related[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=259"]Printing Man Pages[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=234"]Atomic Clock[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=191"]Printing The Tips[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=270"]Hidden Messages[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=276"]VoIP with Kphone[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=282"]SoundCheck Script[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=285"]Spamassassin Tweaks[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=305"]Booting in Runlevel 3 ( Trick with Lilo )[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=307"]Looping an ISO[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503=325"]Automatic Time Syncing[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=328"]Printing Web Pages as .txt[/url]
[url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=237"]Great Linux Links[/url]

B) Bruno

Share this post

Link to post
Share on other sites
( and the way to kill them )

A full system crash is very rare in Linux, most of the times it is only one program that acts up. There are several ways to recover from a crashed program.

1). If a program blocks, crashes or runs-away ( does not want to close or stop running ), change desktop and press the Ctrl+Esc keys. You will get the Process Table with all processes running on your system ( some processes may appear several times, that is normal ) the first four columns are the most important, if you know the name of the process things are simple, if you don't: in the 3rd and 4th you can see what is consuming all that cpu. Now remember or note down the PID number ( Process IDentifier ) you will need this. ( for multiple processes with the same name only the last one is the one you're after ).
Now go to yet another desktop open a terminal/console type < su > ( without the <> ) and give your root password, then type < kill 4246 >; ( if 4246 was the pid number ).
That's all, job done ! ( rebooting like in Windows is NOT needed in Linux !)

(There are other ways with names instead of numbers, terminal instead of gui process table, but this is the most general way to save your butt )

2). If all your desktops are blocked ( when X crashes): Press Ctrl+Alt+F1, you will go out of X, and get an empty terminal screen, fully black with a login prompt. ( there are 6 terminals available F1 to F6 ) Then log in as "root" ( not "su" this time ) and type <top>, you will get the same process-table with the PID numbers, find the number that's hurting, close top with the"Q" key, press Alt+F2, you will get a second black screen ( terminal ) to log in to, log in as root and < kill 4246 >.
For returning to X, press Alt+F7 !

3). Also you can try Ctrl+Alt+Backspace . . . it will log you out of X and bring you back to the graphical login screen where you can start KDE or Gnome again.

4). If even this does not help or you can not find the process and PID number just type "reboot" at the root-prompt ( of a Ctrl+Alt+F1 terminal ) and you will get a clean reboot.

5). If even this last step does not work, read the next Tip here below: [url="http://forums.scotsnewsletter.com/index.php?showtopic=503&#entry5333"]"If all else fails"[/url]

B) Bruno

Share this post

Link to post
Share on other sites
SKINNY ELEPHANTS( Or: If All Else Fails )

In addition to the PID story in [url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=1"]Runaway Processes[/url] If all is blocked and even Ctrl+Alt+backspace ( what should be a last resort ) does not react, if your system does not react on any action ( like I said before, very rare in Linux ) remember the next line:

[b]R[/b]aising [b]S[/b]kinny [b]E[/b]lephants [b]I[/b]s [b]U[/b]tterly [b]B[/b]oring

Here is how you "raise the elephant":

Alt+SysRq+r ( SysRq is on the same button as print screen ) ( The LEFT Alt key )

Give a little time between keystrokes.

The r stands for put keyboard in raw mode
The s for sync the disk
The e for terminate all processes
The i for kill all processes
The u for remount all filesystems read only
The b for reboot the system


B) Bruno

PS: If your filesystem is Ext3 or ReiserFS and on reboot it wants you to do a filesystem check, [color=#ff0000]don't touch any key[/color] as it asks you to press "Y" and let it recover the journal automatically.

NOTE: For the skinny elephants to work you need to have the sysrq-key enabled in the kernel. (CONFIG_MAGIC_SYSRQ)
You can check if it is enabled by typing 'ls /proc/sys/kernel/sysrq' if it's there, it's enabled.

Thanks to Mischa for pointing this out.

Share this post

Link to post
Share on other sites

Here is a simple one: Copy and paste from one program to another program, ( your browser to a text editor, from one desktop to another, from a text editor to the console/terminal etc.etc. )
Just select the text with your mouse ( this copies it automatically to the clipboard ) go to the other screen and push the wheel ( or middle button ) that pastes it.
So only two movements . . no context menu . . just select and paste.

The only exception is OpenOffice, there you will have to do in like you do it in Windows: select, rightclick, choose copy from the contextmenu, rightclick and paste it from the context menu.

Sure the keyboard shortcuts Ctrl+c and Ctrl+v work in Linux too :)

In most distro's you will find a clipboard next to the clock ( an orange icon with a K ) . . . it remembers the last 5 entries ( or more if you configure it that way ) . . . simply tick the entry you want to paste and pushing the wheel will paste that entry where you want it.

If you want to copy a full config file to a textfile that you can send as a mail-attachment, one command will do: ( example the lilo.conf file )

[code]# cat /etc/lilo.conf >lilo.txt[/code]

This will put a text file in your /home directory by the name of lilo.txt

B) Bruno Edited by securitybreach

Share this post

Link to post
Share on other sites
[b]CRON and ANACRON[/b]

If you run Mandrake, SUSE or many other distro's ( RedHat has anacron installed as default ) and your computer is not ON 24 hrs a day, there are several [b]cron-jobs[/b] ( maintenance ) that might be forgotten because they are planned for 3 - 4 o'clock at night.Installing [b]anacron[/b] will set this straight, anacron picks up forgotten cron-jobs and executes them 5 minutes after you boot your computer. You will notice extra activity of your CPU and harddisk for about 5 to 7 minutes !

Typical [b]cron-jobs[/b] are [b]updatedb[/b] updating the [b]locate[/b] database and various other databases.

[b]Logrotate[/b] that zips up old logfiles, [b]var/log/syslog[/b] and [b]var/log/messages[/b] might grow so big that in extreme cases you could run out of diskspace : resulting in having to reinstall the OS !

Installing anacron is simple and needs no configuring.

Mandrake Control Center --> Software Management --> Installing Software --> search for anacron.

:unsure: Bruno Edited by LilBambi

Share this post

Link to post
Share on other sites

( $ and # make part of the prompt, $ is normal user, # is root )

For your network/internet connection: ( as root ! )
[code]$ su ( to log in as root )< root password >[/code]

IP addresses and traffic:
[code]# ifconfig
# route[/code]

Display disk performance:
[code]# hdparm -t /dev/hda[/code]

Space usage:
[code]$ df -h
$ du -s /var/log/*[/code]
( Space usage of all the files in /var/log )

[code]$ free -b ( In bites );'
$ free -k ( KB )
$ free -m ( MB )
$ free -o ( Without buffers )
$ free -t ( Totals )[/code]

[code]$ import -w root sreen.jpg[/code]
(Will store it in your home dir. )

See also "The One Page Linux Manual" in my sig.

B) Bruno

Share this post

Link to post
Share on other sites
Bruno, what a great idea. :) I only wish I could contribute something that hasn't been shared before. Oh well, in time; keep 'em coming. :D

Share this post

Link to post
Share on other sites
Thanks Quint ! :D

But that's it for today, tomorrow we will cover:
-The vi texteditor
-Configuring multi media keys under linux ( those extra buttons on fancy keyboards )
-Tweaking your prompt

:) Bruno

Share this post

Link to post
Share on other sites
This is great idea Bruno.It is really handy to have this stuff on one place when you need it.Good job, keep up!

Share this post

Link to post
Share on other sites
:D When I first tried to join a local Linux User Group I was told to "read all the books and howtos and don't ask stupid questions and waste everybody's time". Needless to say I took their advice but didn't join their group.Joy

Share this post

Link to post
Share on other sites
Thanks for your encouraging words, that's a real energy boost !

A little note on the site:
it's not my aim to turn you into full blown Linux geeks, but only to hand you the basics, the bare minimum in order to give you the appetite to learn more about Linux.Moderators, please make adjustments and corrections without hesitation, English is not my native language and I'm far from being a Linux guru.

I would never have started this thread without the backup of knowledgeable moderators as you are.

:) Bruno

Share this post

Link to post
Share on other sites

All the tasks we do on the commandline are done in a "dos-window", in Linux we call it a "Shell", "Console" or "Terminal" ( the name depends on the distro you use, Terminal is used in RedHat, Console in Mandrake ).
As you start up a Console ( look in your menu ) you will be presented with a “prompt“, this prompt will end with a $, this means that you are logged in as a normal user.

Once you type < su > and give your root password the $ will change in a #, indicating that you are root.
Ctrl+d will log you out as root and bring you back to $, if you do a Ctrl+d again the console will close.

( A normal prompt will look like: [color=blue] [localhost@localdomain:~]$ [/color] Not very spectacular, but in a few days we will start tweaking your prompt into something fancy, but the $ and # will always stay the same )

For nearly every program or command there are “man”-ual pages stored on your computer. You can read them by typing < man man >, this will give you the man pages for the command man. < man cp > will give you the man pages for the command cp. The spacebar lets you scroll the page. With < q > you close the man pages !

More info than the man pages can often be found by typing < --help > after the command. See < cp --help > gives a different result then < man cp >.

B) Bruno

Share this post

Link to post
Share on other sites

All configuration files in Linux are written in plain English, easy to read and to adapt. We use a text-editor to write or make changes to those files.
The two most popular, powerful and "difficult" editors that you will find in every distro are Vi and Emacs. They both have "syntax-highlighting" to make writing code easy.

NOTE: Vi and Emacs fans fight bitter religious wars over which is better :)
( I prefer Vi :) )


There are hundreds of commands for Vi, we will only touch the absolute minimum.
[code]$ vi tessst[/code]

Will open the file tessst in located in your /home, if the file does not exist it will create one.
Vi has 3 modes: a command mode, an insert mode and an ex mode.
When you start Vi it starts in command mode. So we first have to type an < i > to put it in insert mode. Now you can type "the quick brown fox etc."
After inserting the text we go back to command mode < Esc > and save the file with ZZ. Thats all we have to know for the beginning.: < i > for insert < Esc > for command, ZZ for saving the file.

Some more commands for Vi: ( less important )
i = insert text before the cursor
a = insert text after the cursor
: = switch to ex mode
$ = go to last place on the line
^ = go to first place on the line
w = next word
b = previous word
G = last line of the file
20G = go to line no 20
y = copy ( y3w = copy 3 words ) ( y3j = copy 4 lines )
p = paste
d = cut
x = delete character under the cursor


Emacs is made easy because these days it has a GUI in modern distro's, but we will use the keyboard because it has more speed.
[code]$ emacs ssset[/code]

Will open or create the file ssset in your /home
OK type away: " the quick brown etc".
Now to save the file do: Ctrl+x, Ctrl+c, y
Well i said we were going to keep it simple !

Leave the tessst and ssst files in your /home, in the next section we can do some exercises with them.

B) Bruno

Share this post

Link to post
Share on other sites
( only for the very fresh starters with Linux )

As we are doing the bare minimum these are the most often used commands:
cd = change directory
mkdir = make directory
rmdir = remove directory
rm = remove file
cp = copy
mv = move or rename
ls = lists directories and files
cat = show contents file

O.K. let's play:

Open an console on desktop 1, open the home directory by clicking on it on desktop 2 ( there you can see and verify the commands executed on desktop 1 )

[code]$ mkdir One ( without the $ ) ( makes a dir One in your home dir )
$ mkdir one ( Linux is case sensitive so One and one are not the same ! ) ( makes a dir one in your home dir)
$ cp tessst One ( copies the file tessst, that we made in previous Tip, to dir One )
$ mv ssset one ( moves the file ssset, that we made in previous Tip, to dir one )
$ mv one One ( moves dir one in dir One )
$ cd One ( see how the promt puts the current dir in in the prompt ) ( puts you in dir One )
$ ls ( shows you what is inside One )
$ cat tessst ( shows contents file tessst )
$ rm tessst ( removes file tessst from One dir )
$ cd .. ( puts you back in your home dir
$ rm tessst ( removes tessst from home dir )
$ rm -rf One ( now all files and directories we played with are removed )

We have a look in the filesystem:[code]
$ cd /
$ ls[/code]

This shows you the directories in "/" (root filesystem): /boot, /etc, /initrd, /lost+found, /opt, /root, /tmp, /var, /bin, /dev, /home, /lib, /mnt, /proc, /sbin, /usr.

[code]$ cd /mnt $ ls[/code]

This shows you the mounted devices, cdrom, cdrom2, floppy, (win_c)

[code]$ cd ( Brings you back to your /home )
$ ls ( What is in your home )
$ ls -a ( What is really in your home !! The argument "-a" shows the hidden files. Hidden files start with "." )
$ vi .tessst ( Makes an hidden file called .tessst in /home )
$ls ( You don't see .tessst )
$ ls -a ( You do see .tessst )
$ rm .tessst ( Removes the hidden file .tessst )
$ ls -al ( Shows you all the files in /home with their "permissions" more about that later. )[/code]

To know more about these commands and the arguments you can give them, see: "man cd" "man cp" "man mv" etc. etc.

B) Bruno

Share this post

Link to post
Share on other sites
:rolleyes: How about some basic stuff for real beginners? When I first started I couldn't work out how to get the CD to work, find out where to configure the sound, how to install stuff, where did it go when it was installed etc. That's the sort of thing that puts a lot of people off Linux, they're not all like us, willing to learn, they want it to work straight away.Joy

Share this post

Link to post
Share on other sites
Greengeek all that stuff is comming:[quote name='Bruno' date='Apr 23 2003, 07:39 PM']This is what I had in mind for the next week or so:Text editors Vi and EmacsNavigating the filesystem and basic commandsHidden files(Auto)Start programs at startupLocate, search filesInstall software with urpmi, rpm and tarballConfiguring Multi Media keysTweaking the promptIso burning and checksumFile permissions[/quote]I will add configuring sound to the list !More items can be added for the following week too <_< :rolleyes: Bruno

Share this post

Link to post
Share on other sites
back to runaway X Windows (KDE, etc.) program(works particularly well for Mandrake and RedHat RPM based systems):In KDE, click the K Button, select Run command, type "xkill" (sans quotes), your cursor turns into a funny square, click the program that is in runaway mode and bye bye program.If that fails, do "ALT, CTRL, F1" and then CTRL C to break out of XWindows (KDE, etc.). Then you can go back into X (KDE, etc.) ... problem has usually solved itself by exiting X. No need to reboot. :rolleyes:

Share this post

Link to post
Share on other sites
[quote name='greengeek' date='Apr 23 2003, 07:14 PM']:rolleyes: How about some basic stuff for real beginners?  When I first started I couldn't work out how to get the CD to work, find out where to configure the sound, how to install stuff, where did it go when it was installed etc. That's the sort of thing that puts a lot of people off Linux, they're not all like us, willing to learn, they want it to work straight away.Joy[/quote]Joy,With the newer distributions (2.4.x kernel) a lot of this has become very automatic, almost plug'n'play. For instance, Red Hat and Mandrake now automounts your CDs if put it in while you're in X Windows. (If you are in the console uses this command: [b]mount /dev/cdrom /mnt/cdrom[/b] and the contents of the CD are accessible from the filesystem directory /mnt/cdrom.)If you aren't familiar with the way Linux handles storage devices here's a concise explanation: You know that in DOS and Windows you access storage devices by drive letters such as a: for the floppy drive, c: for your active primary partition and letters for all other partitions, optical drives, USB keys, etc. In Linux you access storage devices by mounting the device so that it appears as if it's part of the directory structure, or as it is technically called, the filesystem. The Linux directory /dev is a special type of directory known as a block device. The /dev naming convention is used to identify the storage device and it is this device that you mount to a directory. Most Linux users stick with the default convention of mounting storage devices under the /mnt directory.

Share this post

Link to post
Share on other sites
:D Thanks Peachy, but I'm quite comfortable with the Penguin, I was thinking more of the absolute beginner who would probably have a minor heart attack if a Linux distro suddenly dropped him back at the command line.Joy

Share this post

Link to post
Share on other sites
Thanks Lilbambi & Peachy for joining in ! Need all the help to make this thread to a succesfull resource for Linux starters. :D Bruno

Share this post

Link to post
Share on other sites
Quint:Well, eh, kind of ! However very rare, ( extremely seldom compared to windows ) there are system freezes. Program crashes are more common du of bugs ( bugfixes ). Processes that run wild in a loop and keep consuming cpu, mostly because you made a mistake yourself. All those I call "runaway". The first bue screen o.d. has not been seen up till now on a Linux system. ( if you would see one, make a screenshot !! :( ) :D Bruno

Share this post

Link to post
Share on other sites

Imagine you just downloaded or installed a program and you have no clue where is is gone. There are several ways to perform search.

The most easy ones are:
[code]$ whereis gkrellm[/code]
[code]$ locate gkrellm[/code]
( if gkrellm is the program you're after )

Note: for locate to work you have to create a database for fast searching :

[code]$ su
< password >
# updatedb[/code]

Cron will keep your database up to date on a daily basis.

Special characters: * \ [....] [!....] ?

* = matches a random string of characters
\ = the "escape sign", the character or space after this sign is ignored
? = matches 1 random character
[a-d] = matches a, b, c, d
[!a-d] = does not match a, b, c, d
[a-dA-D] = matches a, b, c, d, A, B, C, D

Now let's do some Magic:

[code]$ ls /etc/*conf[/code]
( Will list all files in the /etc dir that end with conf including conf )

[code]$ ls /etc/[!g-z]*[/code]
( Will list all files in /etc/ that do not start with the letters g to z )

[code]$ locate *doc[/code]
( Will produce a long list of the files ending on doc on your computer )

Because this list is very long, and we might want to keep it:

[code]$ locate *doc >alldocs[/code]
( Will create a textfile called alldocs in your /home listing all the doc files crowding your computer. ( Notice the speed of you lovely Linux system ) )

[code]$ ls /mnt/win_c/My\ Documents/*txt[/code]
( Will make a list of all your txt files it finds in your C:\windows\My Documents. )
Note: Linux does not like spaces in names ! So in My\ Documents, the \ tells it to ignore the next character. An other way to do it is "My Documents".

Another, but somewhat complicated command for searching is "find". See for instructions how to use it: [url="http://forums.scotsnewsletter.com/index.php?act=ST&f=14&t=503&st=281"]The Find Command[/url]

More Magic:

The Tab key autocompletes:

Try this, < cd /u > and press tab now add an "s" and press tab, give an "h" and press tab, now we have got < cd /usr/share/ >

OK lets go on, type a "f" "o" "n" tab "t" tab "d" tab. < Enter >
Now we are in /usr/share/fonts/ttf/decoratives.

< ls > will give you a list of all the fancy ttf fonts on your system.
< cd .. > , < cd western > , < ls > gives you a list of all normal ttf fonts.

So now you know where to install all those extra fonts you can find on the net.
B) Bruno

Share this post

Link to post
Share on other sites

Software comes in many different kind of packages deb, rpm and tarball are the most popular, but there are a bunch of other ones too, just take the Firefox browser; just unpacking it and creating a shortcut from the firefox script to the desktop is all there is to it !
Tarballs can be a real problem because of lib dependencies ( The nightmare of every Linux starter ! )

Today we'll introduce you to urpmi, a kind of rpm with gold-plating, because all dependencies are taken care of automatically.
You have to be on-line to download and install the packages though !
Urpmi does not only download the rpm you want but also all packages needed to make the install successful , easy as cake !

In Mandriva you can use the graphical software manager in the Mandriva Control Center, it uses urpmi by clicking on a few buttons.
But there is a much faster way of installing software using urpmi on the commandline and you will be surprised how easy it actually is

An example, installing the gkrellm package ( system monitors ) would type the command:
[code]# urpmi gkrellm[/code]

. . . and if you want to install both the program with the plugins and the themes in one go you do
[code]# urpmi gkrellm gkrellm-plugins gkrellm-themes[/code]

Then, if you want to remove/uninstall gkrellm you do
[code]# urpme gkrellm[/code]

Well, that was easy enough wasn't it ? And like I said: urpmi resolves dependencies but does need an working net connection.

To update the urpmi sources you do "urpmi.update -a"

B) Bruno

Share this post

Link to post
Share on other sites

Apt-get and YUM for RedHat and Fedora

It looks like Red Hat is developping a new way to handle RPM's, a bit simular to urpmi.

Here is a link to info about Apt-get for RedHat: [url="http://forums.scotsnewsletter.com/index.php?showtopic=3931&st=0"]http://forums.scotsn...topic=3931&st=0[/url]

Here the thread about YUM: [url="http://forums.scotsnewsletter.com/index.php?showtopic=3931&view=findpost&p=48219"]http://forums.scotsn...indpost&p=48219[/url]

B) Bruno

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  

  • Create New...