LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-20-2005, 01:16 AM   #1
elmurado
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Rep: Reputation: 15
knoppix-std requirements


Hi, I'm going to be going on a security basics course soon and need to know the following so that I can run knoppixstd without too many issues:

1 what an IP address, subnet and default gateway are for and how to configure them
2 How to use/navigate around Linux using only the console
3 How to mount a partition using only the console

I know "what an IP address, subnet and default gateway are for" but have only configured them in damnsmalllinux before using the GUI and not using a console.

if someone can point me to a good book or tute for the command based stuff then I should be good playing by myself.
 
Old 12-21-2005, 02:36 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Probably the best source is in one of the moderator's sig's:
XavierP has the Linux: RUTE Users Tutorial and Exposition listed, and that is probably going to give you the most info that is relavent to nearly any distro.

I'll give you quick answers though, and then you can research them in that manual to understand them better:

1. 1 what an IP address, subnet and default gateway are for and how to configure them?

To connect a computer onto a network (being internet, intranet, LAN, whatever term is being used). You configure them with ifconfig and route.

2. 2 How to use/navigate around Linux using only the console?

Well, this is kind of an open ended question. You use a shell (usually bash) and then short commands to move around, such as cd, cd .., cd /path. You also list contents of directories with ls. You show your present directory with pwd. Using the console to me would simply mean typing these commands into it. You also use the console to compile, to run terminal based applications (mpg123), compile a kernel...

3. How to mount a partition using only the console?

Using mount An example for your first partition on your primary IDE drive:
mount /dev/hda1 /mnt/hda1
You have to have the mount point /mnt/hda1 created first. You also have to have a filesystem on the device. Using fdisk you create a partition, then using mkfs.DESIREDFS, you create the filesystem. So, for ext3:
mke2fs -j /dev/hda1
Would create an ext3 partition on /dev/hda1. Then, you pass that to mount with the -t option if it doesn't figure it out on it's own:
mount -t ext3 /dev/hda1 /mnt/hda1

HTH

Cool
 
Old 12-27-2005, 08:00 PM   #3
elmurado
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks Master C.
I did need the quick how to and I will spend some more time going through the links you suggested.
Now does creating a partition necessarily create a mount point? I'm assuming yes but I'm not sure.
ie, if I create a partition(say during install) of /dev/hda1, would that mean the mount point is already created or do I need to do something else to create it?
Thanks
 
Old 12-27-2005, 08:30 PM   #4
yimboli
LQ Newbie
 
Registered: Feb 2004
Distribution: Slackware
Posts: 24

Rep: Reputation: 15
elmurado,

I am by no means an expert. in fact, I still consider myself a novice. along those lines, I feel very connected to your confusion, so let me try and suggest a few things to get you in the right direction. Realize that Master C might post right after me and tell me i'm wrong though =P

About mounts: check the /etc/fstab file to see what mounts linux has set up for you, and also what mounts you have set up for linux if any.

Also, you might be wondering if /etc/fstab is a file or a directory... its a file. it takes a while to get the hang of distinguishing files from folders on forums like this cuz its not colored appropriately like in the console. linux isn't as dependent on file extensions as windows is, so in plain text you really can't differentiate between a file in /etc called fstab and a folder in /etc called fstab. you'll get the hang of common directories as you use linux, and itll get easier.

About using the console: the biggest hump for me was being able to view text files in the console. when I said to "check the /etc/fstab file", it might be unclear as to how you're supposed to do that without opening a GUI word processor. you're going to want to research, use, and become familiar with any of the common text-based word processors. The one I use is "vi", so to check that file above, you'd type in "vi /etc/fstab". (realize that only the superuser can MODIFY that file by default so it might say read only at the bottom).... and you can use arrow keys to navigate the document. this word processor is REALLY weird compared to the programs i was used to in windows... there's a command mode where you can do weird commands using : and /, which I'm not familiar with... then there's an insert mode where you can add text (hit i to go into insert mode). Google up a storm on vi, or another editor (i don't know of any others), and that will REALLY help you out when you have to alter configuration files using only the console in your class. here's a link to get started: http://atlas.scs.carleton.ca/~youngsoo/misc/vi.html
 
Old 12-27-2005, 11:41 PM   #5
elmurado
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks yimboli. I can see what you mean about the text files in the console. I was also getting confused with the file/dir differentiation so thanks for the tip.
also, thanks for the mounts listing-I didn't know that. Another steep learning curve coming up! Which makes things interesting....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
P.H.L.A.K. or Knoppix STD fatrandy13 Linux - General 3 10-21-2004 10:28 AM
Knoppix Std OMEGA-DOOM Linux - Distributions 2 06-28-2004 02:37 PM
knoppix-std? chiatello Linux - Security 1 07-14-2003 04:59 AM
knoppix-std shizzilla Linux - Software 1 06-24-2003 06:40 PM
knoppix std ksgill Linux - Newbie 2 06-20-2003 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration