From Windows to a Debian GNU/Linux desktop, sans the geekness
The Original - since June 2006 - Run Debian GNU/Linux and be Happy.
Bash prompt tip:
here
 

this site  web    
The Goods
Home Page
Forum
debiantutorials.org Licensing
Website Disclaimer
Site Map
Links
w32codecs
How to really switch Mom to Linux
Documentation
Release Notes
Developers Reference
Debian Survival Guide
Debian Books
Manuals
Debian Security
Linux Dictionary
Leaving Windows
Resize Windows Partition for Dual-Booting
Back up your Partitions, Imaging
Still Suffering Windows
Keep your Money, your Sanity and your Self-Respect
Installing Debian Etch
Debian GNU/Linux (Etch) Installation Tutorial
My Etch Desktop in 150 words or Less
Upgrade Sarge to Etch
Configure Debian Etch
Multimedia on Debian Etch
Install nVIDIA 3d driver on Debian Etch
Wireless on Debian Etch: Broadcom - bcm43xx
Klikit, Klikit good
Handy Little Things
Package Management
Peripherals & Debian Etch
Set up your web cam on Debian Etch
Printing in Debian (Browsers, too)
Your ipod on Debian Etch
Atheros Wireless
Broadcom Wireless
Etch on the Desktop
Visitors apache log reader
Andrea del Sarto
(Poetry snippet for your Ignorant Ass)
Beagle on Debian Etch
Convert Digital Camera .mov Files
Some Debian Etch System Files
My Debian Desktop
Using wget
Copying or Ripping DVD's in Linux (Debian)
Reset root password
So, you want to run Linux
Convert mov files
Securing Debian
Password Protect Grub Boot Loader
Debian Etch as Server
Debian Linux file and print server: NFS, CUPS, LPR
Stream your music with gnump3d
Simple local web server on Etch
Web Server on Debian Etch
Miscellaneous Linux
Linux Conventions
Can People read my Documents?
Install Software on your Linux System (Debian)
Partition your Hard Drive
History of debiantutorials.org
A School Without Windows (PDF)
How to talk to Tech Support
Linux Demystified
Off Topic
A DRM Dissertation
An Artist's take on Downloading Music
An Insane and Damaging lack of Understanding
On Children and Drugs
On Visitor Q
Intellectualism for the Masses
debiantutorials.org stats
Smart Crows
How old are We?
Why we run Debian
How not to ask an egomaniac like myself for an article
Sarge Specific Tutorials
Installing Debian Sarge, net install, no DHCP
Easy Graphical Sarge Installation Tutorial
Rebuilding my Debian Sarge Machine
Multimedia for Sarge
w32codecs
nVIDIA on Sarge
Trouble Burning discs: cdrecord
Athcool on Debian Sarge
Where are my Newly Installed Apps?
Easy LAMP on Debian Sarge
Archive
Sites Worth a Look
Debian Mailing List
spidercider
Linux Comparison at PolishLinux.org
Thin Clients
Common Commands
Common iptables Filtering
iwouldntsteal.net
Big-Ass iptables info Page
iptables Port Reference
README: Firewall
General Security Tips
Newbie Security
Kickass RFC's
Data Breaches
Hemp Seed Oil
linux-hardcore.com
Search for a local Computer Tech
Evelyn's Linux Cheat Sheet
Lotsa (687) Linux Commands

Favorite Utilities

Super Grub Disc
System Rescue Disc
News Feeds
visitors run
operating system
Linux
Windows
Mac
Unknown
BSD
54.8 %
39.8 %
3.40 %
1.50 %
0.10 %

web browser
Firefox
Mozilla
IE
Opera
Epiphany
41.4 %
25.1 %
15.8 %
8.40 %
3.50 %
updated 17apr08
What's Root?
Root is the super-ultra-mega. All system commands on a Linux box need to be done as root. This means installing software and changing files not in your /home directory, etc. In your terminal, if you're logged in already become root by typing su at your $ prompt, then the root password. Log in the system directly as root from a terminal, but not the graphical login. # shows root.
dediantutorials.org is ad-free
debiantutorials.org has always been and will always remain ad-free I make no unrealistic demands that you "owe me for my time and bandwidth" in order to use my site. I detest all those scumbags out there that think that they are owed something for putting a web site up. I do debiantutorials.org because I love it. You owe me nothing.
If you can walk and chew gum at the same time, you can run Linux

    Thursday, May 15, 2008      Contact  Etch Info  what's new in Etch  Linux Demystified  Our Forum
Linux Conventions PDF Print E-mail
Written by machiner   
Monday, 25 April 2005
You will find that Linux is a different animal than what you are used to if you are coming from a Windows computing environment. Immediately see the difference on your desktop. Whereas in Windows, if you double-click your "My Computer" icon on your desktop, Explorer opens showing you graphical representations of your drives. Linux is different. Everything is a file, and these files are in directories. Therefore when you open your File Manager you will see something completely foreign to you. You will see directories instead of icons.

This tutorial is not complete, maybe it never will be. I'm not even sure it knows where it wants to go...

The very first thing that I think you should know -- because you will certainly use the command line or a terminal at least one time:

# preceding any command at the command line means that you will be root
$ or % means that you will be a regular user, you

Very Important:

Linux/Unix systems are case sensitive. What this means to you is learn to type. Seriously, the file Image1.png is most certainly not the same as image1.png. Say it with me...Linux is case sensitive. It's in the details, man.

A file system directory structure in Linux could be the following:

/bin -- Command binaries, or - Programs (like C:\Program Files)
/boot -- Your systems boot files. You'll find Grub in here.
/dev -- Your system devices: hard drives, web-cams, etc.
/etc -- Your system's configuration files, example, /etc/resolv.conf
/home -- Personal directories for your system's users. Your program settings and data is here, your web browser settings for example.
/lib -- The shared library directory. Like the System32 directory in Windows.
/mnt -- Directory for mounting a device, hard drive (file system) temporarily
/media -- New, location of dynamically mounted drives, your cd-rom is here and usb-stick.
/proc -- Doesn't really exist. Created dynamically for system information.
/root -- The root user's home directory. Back off.
/sbin -- System binaries, more programs.
/tmp -- Temporary files
/usr -- Sharable read-only data, containing all user binaries, documentation, etc.
/var -- Non-shared system file variable data directory. Phew! /var/www is where web sites go by default on Debian, /var/lib/mysql for your databases.
/opt -- Common directory for user installed programs. Shared files.

Another set of conventions you should be aware of is the device naming scheme. Without getting too technical I will tell you that Linux allocates the following names to mounted devices:

/dev/fd0 -- First floppy drive. If you have others Linux will name them thusly: /dev/fd1, dev/fd2, etc. /dev/hda -- This is your "master" IDE drive. SCSI drives are named "sda". If you have more than one partition on a drive you can expect to see the following scheme:

/dev/hda1
/dev/hda2
/dev/hda3

As well, if you have more than one IDE (SCSI) drive each drive will have a naming convention ascending the alphabet in order. Example, first hard drive is "hda" second drive is "hdb", etc. Same scheming follows for partitions.

/dev/hdc -- this is your "master" IDE cd-rom drive. From the convention you can surmise that the "slave", or secondary cd-rom device will be named "hdd", and on it goes.

If you poke around in your /dev directory you will see that many "devices" have entries here. Devices like your audio /dev/dsp or /dev/snd. These devices also correspond to aspects of your system's architecture that you need not concern yourself with and are created automatically by your system. On occasion you may have to change the chmod value of a device like /dev/snd to allow sound under certain conditions to certain software. This is outside the scope of this article.

Just for giggles, here is a copy of my /etc/fstab file. This file list the mount points for the system. It's here so you can glean info.

# /etc/fstab: static file system information.
#
# file system   mount point     type    options         dump   pass
proc            /proc           proc    defaults        0       0

 If you dual-boot with an NTFS Windows partition you may have a line like the following:
/dev/hda1       /mnt/ntfs       ntfs   noauto,users,ro,umask=0  1  0
/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda2       /home           ext3    defaults        0       2
#/dev/hda3       swap            swap    sw              0       0
#/dev/hdb2       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/hdd        /media/cdrom1   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/hdb1       /mnt/vault      ext3    rw,auto          0       0

I commented out my swap partition because I increased my ram to a 1.5GB, I don't really need a swap partition anymore. Also, take a look at the last entry - it's my backup "vault" on my "slave" drive. Notice the OPTIONS: I can read and write to it and it is automatically mounted. If I added "user" like the entry preceding this one then an icon for my backup drive would appear on my desktop.

And speaking of seeing your windows partitions in Linux, let's mount one. If you don't know your partition structure open a terminal, become root and run the fdisk command:

# fdisk -l

Now you can see that the Windows partition that you want to mount is at /dev/hda2 (as an example). So we can mount it now but don't forget to make a directory for it in your /mnt directory:

# mkdir /mnt/winfat32.

To mount the partition run the following command:

# mount -t vfat /dev/hdb2 /mnt/winfat32

To automatically mount your Windows partition at boot time add the following line to your /etc/fstab file:

/dev/hda2        /mnt/winfat32  vfat    rw,user,auto  0       0

If the partition in question is formatted NTFS add the following line to your fstab file instead:

/dev/hdb2        /mnt/ntfs  ntfs noatime,defaults,users,ro,umask=0 0 0

[TIP: if you just changed your /etc/fstab file and don't want to reboot to see the changes run # mount -a as root]

Other people have written in far greater depth - if you really want to learn about this and other Linux conventions, sensibilities, methods and/or procedures I suggest you do a little research ( fstab options ). See below...

I have found a website that delves much deeper than I do. Feel free to browse this site and spend days reading up on this and other Linux subjects. System Admin Guide

\n This e-mail address is being protected from spam bots, you need JavaScript enabled to view it ].

Where are my installed apps?

Many people new to Linux wonder where the programs they install goto. Well, you will not find a C:\Progra~1, I mean: C:\Program Files anywhere on your Linux box. The programs that your Debian system installs, say with apt (or the front-end - Synaptic) will be installed to /usr/bin. The programs that you compile and install (./configure  make  make install) usually goto /usr/local/bin. There are other places, some java apps that you install as root will goto /opt. Others still will create a bin directory in your /home directory. So your environmental variables will include: /usr/bin, /usr/local/bin, /usr/sbin, /usr/local/sbin, ~/bin. You can always alter these, add to them, etc. As well, you may prefix an install location when configuring your install like this: ./configure --prefix=/install/directory. There are many instances when you would add a prefix string to your installs.

Please see the following page for a terrific little convention write up that found somewhere on the web. I think it's OK to post this here, but if it pisses the writer off (s)he can contact me and I'll remove it.


 
Creative Commons License © debiantutorials.org Thanks for dropping by. I hope you have found this site to be helpful.   Search for a local Computer Tech  debiantutorials.org