LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-03-2004, 05:42 PM   #1
cragwolf
Member
 
Registered: Jan 2004
Location: arse-end of the world
Distribution: Zenwalk 2.8
Posts: 73

Rep: Reputation: 15
Have just installed, now for the questions


Alright, yesterday I finally installed Slackware 10 on to my system. Installation was a breeze. Configuration was pretty easy, too, apart from a few hiccups with getting my internet connection to work. I played around with various window managers, and settled on gnome. Here are a few questions I've come up with:

1) I'm running dual boot, Linux primary master, WinXP primary slave, works fine. I can see the WinXP NFTS partition from Linux, but I can only access it as root. How do I change permissions on an entire filesystem? Is it the same as changing permissions on a file? I would like the users to be able to access it (read only, of course).

2) I've created a user, let's say it's called einstein. So I have einstein and root. I need general advice here. When I install new software should I install it as root or as einstein? When should I use root and when should I use einstein? I'm just a bit confused sometimes as to whether I should be doing something in root or as a user.

3) Mozilla mail. I've entered all the settings. But the "Get Msgs" icon remains grayed out or disabled, so I'm unable to retrieve mail. Is this possibly a permissions issue? How do I fix this?

4) When I exit gnome (and x) by choosing logout, I find myself at the command line. One problem I find when I do this is that I lose access to many commands. I can't even do a shutdown. It just says command not found. Is this something to do with runlevel? Any idea what might be causing this?

This is a pretty cool OS and distribution. Great for tinkerers like me.

Last edited by cragwolf; 08-03-2004 at 06:04 PM.
 
Old 08-03-2004, 06:08 PM   #2
blk96gt
Member
 
Registered: Jun 2004
Location: Nacogdoches, TX
Distribution: Ubuntu 7.04
Posts: 230

Rep: Reputation: 30
1) You will need to edit the /etc/fstab file(as root). Right now you should have a line that looks something similar this
Code:
/dev/hd?   /mnt/windrive  ntfs  defaults  0 0
You need to change it so it looks like this
Code:
/dev/hd?  /mnt/windrive   ntfs  ro,user,umask=0222  0  0
2) For installing software, you will usually install as root to make it available system wide. If you want it available for only a certain user, you would just install it as einstien and then install it into his home directory. You should use your regular user as much as possible, unless you need to install a program or edit a system file.

3) Sorry, I can't help you on this one.

4) Only root can shutdown and reboot the computer from the command line. When you log off of Gnome and get to the command line, type in su and then enter the root password, and then type in either reboot to restart, or shutdown -h now to shutdown(I think there might be a halt command, but I'm not 100% sure on this).

Last edited by blk96gt; 08-03-2004 at 06:13 PM.
 
Old 08-03-2004, 06:09 PM   #3
Lostboys
Member
 
Registered: May 2004
Location: California
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
I don't know much, but the answer to your last question is that many commands have to be run as root. including shutdown, ifconfig, ping, ya ya ya.

just type su - and enter root password, then you can use those commands as root
 
Old 08-03-2004, 06:22 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Comments:

Q1: In Linux, everything is considered to be a file, so changing permissions involves the same operation regardless of what you are changing permissions on (a file, a directory, a device, you name it)

Q2. You should run as einstein ordinarily. The only time you should run as root would be in specifc and limited situations, such as if you needed to install a new software package. The reason running as root is so strongly discouraged is because the chances of causing damage to your system are so high. All it takes to hose your system is to accidentally specify the wrong command, and the reason regular user accounts do not have root-level privs is to avoid the possibility that a regular user would do something that could corrupt the system.

Q3: Dunno, don't use it.

Q4: The reason you can't do a shutdown is because that is a root-level command, and the only way you can run it is to become root. As Lostboys indicated, you can use "su" to switch over to the root account. That being said, the fact that you can't run shutdown means that you must be running as einstein. Good move.

-- J.W.
 
Old 08-03-2004, 07:02 PM   #5
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
4) open /etc/inittab . Now see that line that says:


# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:

Change it to:


# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:

now when u logout from gnome u will go to gdm not the command line

u must also type gdmsetup so that u could add an action button that contains (shutdown , reboot)

f u want make the computer to really shutdown when u write run the shutdown or halt command just open /etc/rc.d and uncomment the line /sbin/modprobe apm
in :

#### APM support ###
# APM is a BIOS specification for saving power using several different
# techniques. This is mostly useful for battery powered laptops.
#/sbin/modprobe apm

then type modprobe apm then when u type shutdown -h now , it will turnoff ur pc
 
Old 08-03-2004, 07:10 PM   #6
cragwolf
Member
 
Registered: Jan 2004
Location: arse-end of the world
Distribution: Zenwalk 2.8
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks to everybody for the quick and helpful responses. One more question:

5) I'm having a little problem understanding the behaviour of "su". Let's say I boot Linux and log in as einstein (a user). Then let's say I do a "su root". Now, if I enter the command "startx" I get an error saying "startx command not found". Similarly, if I had logged in as root, did a "su einstein", then startx would also not be found. So "su root" doesn't actually log me in as root? Is it just faking it? And it's not just the startx command that can't be found, but a host of others. I'm worried that if I want to install a new package, and do an "su root", that I'll get errors in the install process because it can't find certain commands.
 
Old 08-03-2004, 10:37 PM   #7
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
The problem you describe is caused by the path of the user. Usually /sbin and /usr/sbin is not in the path of a regular user. That is why when you simply type halt or shutdown as a user it can not find it.. If you typed /sbin/halt as a user, it would find it but would complain about your lack of permissions. When you type su, you change to the root account but you are still in your environment. To change to root with root's environment type " su - ".

To install slack packages, you must be root. You use installpkg or upgradepkg (if upgrading) to install. If you are installing from source, you should untar, configure and make as user. YOu will then su to root to run make install. For more info you might look at the book www.slackware.com/book
 
Old 08-03-2004, 10:45 PM   #8
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 39
Quote:
5) I'm having a little problem understanding the behaviour of "su". Let's say I boot Linux and log in as einstein (a user). Then let's say I do a "su root". Now, if I enter the command "startx" I get an error saying "startx command not found". Similarly, if I had logged in as root, did a "su einstein", then startx would also not be found. So "su root" doesn't actually log me in as root? Is it just faking it? And it's not just the startx command that can't be found, but a host of others. I'm worried that if I want to install a new package, and do an "su root", that I'll get errors in the install process because it can't find certain commands.
try

Code:
su - root
the - opens a new shell

-Joey
 
Old 08-04-2004, 12:08 AM   #9
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
I'm not sure if you've used other distributions of linux before, but based on your first questions here, I'd say you're the perfect "linux candidate". You're thinking exactly the right way to start finding the answers to your own questions and begin helping others.

You've obviously done your homework as far as understanding the way permissions work, the distinctions between users and "admin" or root, and a good idea of when to use which.

For your question #3, I find your problem odd... I haven't used mozilla at all, I use firefox mainly -- but opening mozilla and going to the mail function, without any setup at all, still shows the "Get Msgs" button as active. Look closely through your settings to make sure all the port numbers and server addresses are right, for incoming -- pop3.

Another suggestion (though maybe a cop-out of solving this specific problem) would be to use a different mail program, like sylpheed, evolution, or Mozilla Thunderbird. Many people seem to like thunderbird. If you want something very lightweight, I'd try sylpheed. Evolution is designed to work best with Gnome, I believe -- though it will work under any other WM as well. I prefer the whole idea of "do one thing, and do it well" when it comes to applications. I have a web browser -- Mozilla Firefox -- and a mail program -- Thunderbird. In my opinion, they should remain seperate... But we're getting into philosophies here

If all else fails, try a different program for your mail
Mozilla is a tried-and-true browser suite, so it should work just fine for you. But don't be afraid of installing and trying different things.

Another thing -- if you start compiling things from source to try them out, I highly suggest using a utility called "checkinstall". This program takes the place of the usual "make install" command which places the program and binaries, and instead creates a slackware package which can be easily uninstalled later. Sometimes, source packages come with a "make uninstall" command, but what if it doesn't? Or what if you delete the source after installing it? Checkinstall makes dealing with source installations much easier.

Anyway, I've gone into way much more than what your questions were, I apologize.

Happy Slacking!

--Shade
 
Old 08-04-2004, 05:55 AM   #10
cragwolf
Member
 
Registered: Jan 2004
Location: arse-end of the world
Distribution: Zenwalk 2.8
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks again for all your answers and advice. I've switched to Thunderbird for mail, and it works fine. I actually had many more questions than this to begin with, but a bit of tinkering and a bit of searching on linuxquestions.org reduces the number of my questions to a handful. I have one last question:

6) I downloaded the latest NVidia drivers, installed it and everything seemed to install successfully, but I noticed one error or warning message which said:

Code:
   The rivafb driver conflicts with the NVIDIA driver; the
   NVIDIA kernel module will still be built and installed,
   but be aware that the NVIDIA driver will not be able to
   function properly if the rivafb module is loaded!
I edited xorg.conf like I should have, and when I did the startx thing, I didn't see an Nvidia logo. But it still booted X and put me into my default window manager. So now I'm not sure whether these drivers did in fact install properly. I did an lsmod to see if the rivafb module was loaded, but it wasn't. How do I know if linux is actually using the nvidia driver, and if it's not, how do I fix this problem?
 
Old 08-04-2004, 06:35 AM   #11
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
An easy way to verify if nvidia driver is loaded is to use the nvidia tool that comes with the new driver : type nvidia-settings in a terminal, you will be fixed quickly.
 
Old 08-04-2004, 07:00 AM   #12
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
I think I remember getting getting the same error message that you cite. But have had no problems since.
 
Old 08-04-2004, 07:33 AM   #13
azzurro
Member
 
Registered: May 2004
Posts: 39

Rep: Reputation: 15
Sorry, please ignore this post. I created a new thread with my question.

Last edited by azzurro; 08-04-2004 at 01:05 PM.
 
Old 08-04-2004, 07:37 AM   #14
Nikon01
Member
 
Registered: Jul 2003
Distribution: Slackware 10.0
Posts: 196

Rep: Reputation: 30
as long as in xorg.conf you changed the Driver "nv" (might be rivafb dun remember lol) to Driver "nvidia" you should be set.
 
Old 08-04-2004, 09:02 AM   #15
cragwolf
Member
 
Registered: Jan 2004
Location: arse-end of the world
Distribution: Zenwalk 2.8
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks once again everyone. I ran nvidia-settings and it showed the correct driver version. The logo does come up, but you have to be quick to notice it because it disappears in the blink of an eye. I guess that comes from having a blindingly fast computer (woe is me )
 
  


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
installed 2.6.13 from disk 2, now the questions Twister512 Slackware 4 11-21-2005 09:15 AM
Just installed 10.0 and I have a few questions. yakko Slackware 9 11-10-2004 04:00 PM
just installed mandrake 9.0 few questions matt_w_lambert Mandriva 3 11-27-2003 08:46 PM
Just installed RH 8.0 and I have some questions! Matt Phelps Linux - Newbie 11 10-19-2002 07:35 PM
Finally installed Slackware - Many questions wickdgin Slackware 10 08-29-2002 06:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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