PDA

View Full Version : Linux Tips


Tortanick
08-22-2006, 11:14 PM
Just thought I'd post any tips that pop into my head here.



/home AKA: personal Jesus! if you're on windows chances are you're documents and the settings of your better coded apps reside in C:\documents and settings\username\... and chances are you've backed it up one time or another before reformating the system.

In linux C:\documents and settings\ is called /home/ and unlike windows having apps save per user settings thier is the rule, not the exception. And linux is no stranger to multiple partitons, all distros will give you the chance to set up a seprate partiton for /home! Your settings and files will survive reformatings, distro changes and can easily be shared if you dual boot between a desktop and specalised distro, or your perfered distro and the family's. Just be aware that its NOT a good idea to have the same user on two distros. the problem is that hidden files in the /home/user control system settings and will cause issues if used on a diffrent distro.

I'm not to sure why, but there is no way of playing css encrpyted DVDs without propriatory software. (and I'm not to sure about propriatory software). The good news is a highly effective piece of code allows you to crack the encrpytion called libdvdcss. And its legal in the UK (not the US though).

Because libdvdcsd is illegal in the US few, if any distros will install it by default. refer to your distro's instructions for setting up encrpyted DVD playback. Its rarely hard.

mounting ISOs, no special software is needed, you just add it to any part of the file system you want with this command:
mount -o loop -t iso9660 /folder/name.iso /mount/point/
mount/point/ should be an empty folder. Requires root permissions.
This assumes you have the correct kernal modules, chances are you have.

surviving with sensible security: if you're from Windows chances are you've grown accustomed to being able to open C:\windows and delete any file you want. In linux you can't unless you're root and who wants to switch users repeatedly?

An easy way round this is to use sudo bash to get a terminal window, for that window all commands will be performed as root, alternatively you can open a file browser widnow with sudo {your file browser}

chainloading: every linux distro will ship with a boot loader, probably GRUB but perhaps LILO, and in some cases it may want to update this bootloader. E.G. if you install a 686 optimized kernel in the ubuntu’s grub will be modified to display an option for both the 383 and 686 kernals. Giving each distro control over its bootloader will possibly make you’re life easier, and couldn’t make it harder.

If your root partition for your second distro is in the third partition of the first hard drive, log into whatever distro controls the MBR grub and edit menu.list add the following

title whatever # the replace whatever visible menu option
rootnoverify (hd0,2) # replace hd0,2 with the relevant HD/partition, remember grub counts from zero
chainloader +1 #copy exactly

And you’re done, no matter what crazy customizations the distro dose you can still boot into it as easily as if it was the only distro.

Note I recommend using debian for the distro that controls the MBR, its solid, stable, easy to install, and without any extras absolutely tiny. If you want to actually use debian install two copies.

extended partitions: with linux any good practitioner can create extended partitions, provided you don’t have 4 primary partitions. I think this gives you a enormous 64 max partitions. Whatever it is, chances are you won’t be using all of them. Note: less partitions are aloud on a SCSI drive

PeteF
08-23-2006, 02:05 AM
One thing I like about Linux is the feeling that I'm getting control over
over the OS again, similar to the earlier days of DOS and Windows.
Over time MS seems to automate more and more things and much
of what's going on in the background becomes a mystery.

Remember in Win98 and previous versions you could make a bootable
floppy disk with some useful commands like FDISK that you could use
to manipulate things. What is the equivilant for Linux?

For example, I used Puppy to boot to and manipulate the menu.lst
files on Partition 1 and Partition 2 to get my system to multi-boot.
Is there a way to do the same using a boot floppy in Linux?

I looked for a feature in Linux that would create a
"STARTUP DISK" for emergencies, but I didn't see
anything similar to what Windows 98 offers.

---pete---

mylanta
08-23-2006, 09:25 AM
That may be the version you are using Pete as I remember Red Hat and Mandrake versions had those when I last played with them.

Tortanick
08-23-2006, 12:35 PM
I suspect this feature is been phased out by superour live-cds.

You might look at Zool Linux, I found that with google just now but never tried it.

PeteF
08-23-2006, 03:15 PM
I suspect this feature is been phased out by superour live-cds.

You might look at Zool Linux, I found that with google just now but never tried it.

What do you guys use for an emergency boot disk for Linux?

Sorry, I didn't mean to say I only need a feature to make an
emergency disk. If there is a procedure to make one that would
be a help. If it's not practical to make one on floppy then how
about to CD?

---pete---

Tortanick
08-23-2006, 03:22 PM
Well I'd personally use a live cd. maby Knoppix

PeteF
08-23-2006, 05:16 PM
Linux Tip:
Choose the Linux Version (distro) that best suits YOU.
The quote below sums it up very simply. ---pete---


Source:
http://forum.freespire.org/showthread.php?t=145

You can swim up or down the "chain" as much as you like, to the level you think best suits you. If you're hard core, you can work directly with the kernel and distros like Gentoo. If you want a little more structure around things, but still pretty raw, you have Debian. Up from there you have Debian distros like MEPIS and Ubuntu. If however, you want codecs, drivers, etc., then you have Freespire. And if you need even easier still, then you can continue up the chain to Linspire.

PeteF
08-23-2006, 06:27 PM
Linux Tip: Newbies should read a beginner level book on Linux.

================================================== ==================
Beginner Level Books on Linux

Peter van der Linden's Guide to Linux(R) (Paperback)
http://www.amazon.com/gp/product/0131872842/103-1920991-9657422?n=283155

Moving to Linux
http://www.amazon.com/gp/product/0321356403/sr=1-1/qid=1154599528/ref=pd_bbs_1/103-1920991-9657422?ie=UTF8&s=books


Both books come with a live CD. Marcel's is a Knoppix CD and Peter's is a Linsoire Live CD. Both are KDE based distros and will look similair to Freespire. You can use the books along with the CD to get your comfort level up and install when you are ready.

They are both written with the new user in mind who has a comfort level with Windows. Though simple, they do not treat you like a child either.

================================================== ==================
Online Linux book

LINUX:
Rute User's Tutorial and Exposition
(Version 1.0.0) Paul Sheer
http://rute.2038bug.com/rute.html.gz


================================================== ==================

---pete---

Tortanick
08-24-2006, 01:12 PM
added two new tips

rVidia
09-01-2006, 11:00 PM
Another beginner-level book worth looking into is "Beginning Ubuntu Linux: From Novice to Professional (http://www.amazon.com/exec/obidos/tg/detail/-/1590596277?v=glance)" by Keir Thomas. It includes an Ubuntu (http://www.ubuntu.com/ubuntu) installation CD and begins by introducing the reader to what Linux is. It also includes information on how to install Ubuntu, how to set up hardware (including Internet), and some more advanced topics (Linux internals and command line), among other things as well (office tasks, multimedia, optimization, security, system maintenance). The great thing about this book is that it dedicates a whole chapter to describing Ubuntu "replacements" for Windows programs (about application set (http://www.ubuntu.com/ubuntu/applications)), which is especially useful for someone migrating from Windows--I would recommend this Linux distribution and this book to anyone that would like to try Linux :)