LinuxQuestions.org
Review your favorite Linux distribution.
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 05-20-2007, 04:05 PM   #1
mhg
Member
 
Registered: Apr 2007
Location: Utah
Distribution: BodhiLinux
Posts: 205

Rep: Reputation: 30
I guess different distros use different command lines?


Hi All,

Making progress using Ubuntu 6.10.

I want to configure automount settings. Someone posted two great links with instructions, but I can not get the commands they go through to work. I know different distros use different commands, and I know so very little about using the command line.

For example, the instructions say to do: Edit/etc/auto.master. This command gets me nowhere in Ubuntu.

I have posted on the Ubuntu.org forums, but no help there yet.

Will I have to be more familiar with commands particular to Ubuntu to do this myself? Or hope to find Ubuntu specific instructions?

Thanks for all help.
 
Old 05-20-2007, 04:27 PM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
For example, the instructions say to do: Edit/etc/auto.master.
"Edit/etc/auto.master" is not the same thing as "Edit /etc/auto.master"

The first one doesn't make any sense to me. The second means, open the file, /etc/auto.master, in a text editor, and change it.
 
Old 05-20-2007, 04:33 PM   #3
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Blog Entries: 9

Rep: Reputation: 45
Quote:
Originally Posted by mhg
Hi All,

Making progress using Ubuntu 6.10.

I want to configure automount settings. Someone posted two great links with instructions, but I can not get the commands they go through to work. I know different distros use different commands, and I know so very little about using the command line.

For example, the instructions say to do: Edit/etc/auto.master. This command gets me nowhere in Ubuntu.

I have posted on the Ubuntu.org forums, but no help there yet.

Will I have to be more familiar with commands particular to Ubuntu to do this myself? Or hope to find Ubuntu specific instructions?

Thanks for all help.
Nope, complete re-edit. I was getting my "vi's" mixed up.

To edit the /etc/auto.master file, you'd have to do
Code:
sudo vi /etc/auto.master
in a terminal window.

Then, once the file is open, you can move around it with the arrow keys (I think theres a mod/package available for mouse control but I've never used it), to make any actual changes in vi, hit the insert button, move to where you want to make the change.

Then hit esc, then to save it and close, it's :wq (colon and letters w and q). Bingo it's done.

Or you could install nano (from the package managers list), but the command to get it going is still gonna be
Code:
sudo nano /etc/auto.master
and I think that it's still moved/navigated with the arrow keys. The difference is that theres a little line at the bottom that tells you some of the commands that you'd need i.e. once opened, you make the change(s), then when thats done, it's just ctrl+x, answer y to save the mod to the file and that should be it (I'm trying to picture it in my head to remember).

Different distros can and do, have different default text editors. Or you can install one that you like, but you still have to make sure about upper and lower case, spaces and slashes etc etc, because one typo is the difference between the right file and a different one (that might be wrong or just blank as it's not used).

regards

John

p.s. erm here's some VI instructions that I found linked from the Ubuntu Wiki all you'd have to do is remember how to start VI in the first place the follow the instructions to edit just about any file you'd need to (there is one or two that need a version called visudo - the sudoers file I think is one, but hey, check the guide (theres probably an official one out there too!).

Last edited by bigjohn; 05-20-2007 at 05:02 PM.
 
Old 05-20-2007, 07:14 PM   #4
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Ubuntu uses the same commands as any other *nix, but it does do one pervasive thing quite differently, by default.

The standard method of running commands with "root" superuser access is by logging in as root using the "su" command. By default, Ubuntu doesn't allow this. Instead, Ubuntu disables root and makes the default user a "sudoer" (a dubious security tradeoff to say the least). This is accomplished via a usually optional software package called "sudo".

The basic upshot is that if you see documentation like this:

su
vi /etc/fstab
mount /media/usbstick

You need to instead enter this:

sudo vi /etc/fstab
sudo mount /media/usbstick
 
Old 05-20-2007, 07:29 PM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Ubuntu is not the "be all and end all" of Linux distributions.

There are better ones kicking around.

Last edited by rkelsen; 05-20-2007 at 07:30 PM.
 
Old 05-20-2007, 07:48 PM   #6
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
If you're running Gnome you can also use gedit <filename>.

I like Midnight Commander and use it quite a bit. You can install that with apt or use Synaptic, the package is named mc.

The editor is started with mcedit <filename>
 
Old 05-20-2007, 08:09 PM   #7
mhg
Member
 
Registered: Apr 2007
Location: Utah
Distribution: BodhiLinux
Posts: 205

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by rkelsen
Ubuntu is not the "be all and end all" of Linux distributions.

There are better ones kicking around.
But a newbie eventually has to pick something and start. Maybe what I am learning now will help when I am ready to try another distro.

BTW, I have PCLinuxOS installed also, and not having much better luck with it, but have spent very little time with it.

Thanks
 
Old 05-20-2007, 08:13 PM   #8
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by IsaacKuo
The basic upshot is that if you see documentation like this:

su
vi /etc/fstab
mount /media/usbstick

You need to instead enter this:

sudo vi /etc/fstab
sudo mount /media/usbstick
Or do "sudo su -" first then enter all other commands as described.
 
  


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
'N' lines of Top Command? DarkPenguin Linux - General 2 04-11-2006 11:05 AM
When command lines go bad bob7 Linux - General 3 09-11-2005 05:47 AM
Combining 2 command lines satimis Programming 6 10-18-2004 09:40 PM
Grip command lines linuxtakemeaway Linux - Newbie 5 02-03-2003 01:11 PM
command lines? rockin chair Linux - General 5 04-28-2002 10:48 PM

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

All times are GMT -5. The time now is 08:00 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