LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-16-2007, 07:58 PM   #1
jagguy
Member
 
Registered: Jun 2007
Posts: 46

Rep: Reputation: 15
basic qs after install


Hi,
I just installed linux.

q)Can i boot up linux and not have to login and just have SU priveledges? sinec i am the only 1 using this.

q) I want o load my fat32 on start up, so do i add the mount command that does this in the etc/fstab file? Is the command exactly the same as doing it manually on the terminal because i think i remember it is a little different?

q)I want o boot up and have winxp the deafult boot up and fedora as the 2nd option if i decide, where can i change GRUB settings.

q)What about mounting my DVD RD/DVD RW on boot up how can i do this?
 
Old 06-16-2007, 10:08 PM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Quote:
q)Can i boot up linux and not have to login and just have SU priveledges? sinec i am the only 1 using this.
Depends on which Linux distribution you installed.
Quote:
q) I want o load my fat32 on start up, so do i add the mount command that does this in the etc/fstab file? Is the command exactly the same as doing it manually on the terminal because i think i remember it is a little different?
Type: fdisk -l in a terminal to see what device your Fat32 partition is, if it is /dev/hda1, add this entry in /etc/fstab and make a directory called windows (or whatever you prefer to call it, just make it the same in /etc/fstab).
Code:
/dev/hda1      /windows      vfat      rw,noatime,uid=500,gid=500,user   0 0
Code:
#mkdir /windows
Make sure your user UID and GID are 500, if they are something else, put the number in place of the 500's in that line.
Quote:
q)I want o boot up and have winxp the deafult boot up and fedora as the 2nd option if i decide, where can i change GRUB settings.
In /boot/grub/menu.lst, change the default=x to the Windows entry, grub starts counting from 0, so if the default is set to 0, it will boot the first entry in the list, every entry with the word "title" is an entry, if Windows is the third "title" item, change the default to "default=2".
Quote:
q)What about mounting my DVD RD/DVD RW on boot up how can i do this?
Depends, which distribution did you install?, usually you would add "auto" to it's entry in /etc/fstab next to the part that says "user" in the above sample for you Fat32 entry. Some thing like "user,auto", if the entry for the drive does not have "user" as an option, don't add it, just put it next to what ever is in that part of the entry with a comma and no spaces. Keep in mind, you will get boot time errors if there is no disk in the drives.

Last edited by Junior Hacker; 06-16-2007 at 10:22 PM.
 
Old 06-17-2007, 01:37 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Re your 1. please don't do that.
If you are on the net (as you seem to be) then you can be compromised... even on Linux.
In fact of course, any 'external' src (eg CD, USB stick) could be bad...
Also, unlike MS, it's almost unheard of for a user level app to need to be run as root.
 
Old 06-17-2007, 02:05 AM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
chrism01
I guess it's OK to warn people, but I think it's crossing the line when you tell people, "please don't do that". Unless, you are that person's parent or guardian.
Read the thread link below, pay special attention to post #13.
jagguy
If you have KDE desktop, you will find a way to have the option to log in as root in the thread link below.
http://www.linuxquestions.org/questi...d.php?t=498711

EDIT: Some people are smart enough to have full back ups including the OS, I'm one of them, and when I installed a virus knowing it was probably a virus in desperation when trying to retrieve lost data in Windows a couple months ago, I had no fear because it only takes 8 minutes to wipe that Windows partition with zeros and make a new partition in it's place and load an image of the fresh clean fully updated installation. There's nothing on the internet that can render my hardware useless, as far as all the binary code is concerned, it's all backed up on external USB and easily restored.
Others like myself, may be offended by such remarks.

Last edited by Junior Hacker; 06-17-2007 at 02:15 AM.
 
Old 06-20-2007, 05:14 AM   #5
jagguy
Member
 
Registered: Jun 2007
Posts: 46

Original Poster
Rep: Reputation: 15
q)I changed the boot=yes in ifcgf-wan0 file or something like that and the internet it does boot up at runtime (any other settings i need). Now my line can drop becaus eit is wireless like on winxp but I cant get it back easy . On winxp i just r-click and repair it. What can i do ?


q)what about apache/mysql/php I want to run these?

q) can i connect to windows files with linux on another pc via cable network?
 
Old 06-20-2007, 05:48 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
In fact of course, any 'external' src (eg CD, USB stick) could be bad...
CD, USB sticks are by default mounted nosuid noexec. You need to be root to remount with different options.

(if we are talking about the same thing)


Security rule #1: Least privilege: Minimize applications running as priviledge user.

I hope people will go on warning people about that. It is a bad habit. The form on how to say it is not always easy but it's better than nothing.
 
Old 06-20-2007, 07:07 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
That's why I said 'Please', it's only a recommendation, not an imperative.
nx5000: well, as you know, if he's logged in as root, then anything he runs has root unless it's set uid to a non-priv user ...
It's definitely the OP's option to do whatever he wants though.
 
Old 06-20-2007, 08:54 PM   #8
jagguy
Member
 
Registered: Jun 2007
Posts: 46

Original Poster
Rep: Reputation: 15
i am the only person using the OS so i dont see why i cant root login.
I still dont know ow to do this to be honest.

q) does anyone know these

q)I changed the boot=yes in ifcgf-wan0 file or something like that and the internet it does boot up at runtime (any other settings i need). Now my line can drop because it is wireless like on winxp but I cant get it back easy . On winxp i just r-click and repair it. What can i do ?


q)what about apache/mysql/php I want to run these but i cant see them installed?

q) can i connect to windows files with linux on another pc via cable network?

q) how can i find if apache/mysql/php software is installed? Do I need to run a find or is there an easier way?

q)some commands you need to write /sbin/.... in front. Can I add this to the PATH so i dont need to do it?

Last edited by jagguy; 06-20-2007 at 09:22 PM.
 
Old 06-20-2007, 09:03 PM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You do not run as root for many, many reasons. Some of them are mentioned here:
http://www.linuxquestions.org/questi...40#post2572040
 
Old 06-21-2007, 05:40 AM   #10
jagguy
Member
 
Registered: Jun 2007
Posts: 46

Original Poster
Rep: Reputation: 15
I downloaded apache from http://httpd.apache.org/download.cgi. Version 2.2

Now I have linux and all i see is unix source code 'no binaries?'.

I download this and extract it using
tar -xvzf httpXXX.tar.gz

I get an unexpected EOF error with extracted source code (many get extracted then it quits)and also get very very VERY annoyed at all this messing around for such a common task.

I have NO idea what to do next as I couldnt find the docs. I just want to download from the apache site and install apapche with php5 and mysql.

I need help with apache first and what do i do?



I found the binaries and it still doesnt work

root@localhost install]# rpm -i httpd-2.059-1.i386.rpm
error: open of httpd-2.059-1.i386.rpm failed: No such file or directory
[root@localhost install]# rpm -i httpd-2.0.59-1.i386.rpm
warning: httpd-2.0.59-1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 751d7f27
error: Failed dependencies:
libapr-0.so.0 is needed by httpd-2.0.59-1.i386
libaprutil-0.so.0 is needed by httpd-2.0.59-1.i386
libcrypto.so.4 is needed by httpd-2.0.59-1.i386
liblber-2.2.so.7 is needed by httpd-2.0.59-1.i386
libldap-2.2.so.7 is needed by httpd-2.0.59-1.i386
libssl.so.4 is needed by httpd-2.0.59-1.i386

I just 2 hours on all of this and no idea on how to get this to work?

Last edited by jagguy; 06-21-2007 at 06:16 AM.
 
Old 06-21-2007, 06:24 AM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
If you told us what your distro (version) of Linux is, we could advise you better.
Just about all modern ones have built-in GUI tools to install (almost) anything you need, and they automatically handle dependencies.
For what you're asking, you shouldn't need to download anything by hand, especially src files.
 
Old 06-21-2007, 09:30 AM   #12
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by chrism01
nx5000: well, as you know, if he's logged in as root, then anything he runs has root unless it's set uid to a non-priv user ...
Yes. What I meant is that the security concept is well locked-up.
One generally login as non priv.
Even inserting a key formatted as ext2 containing suid-root will not compromise the system and won't enable privilege escalation because by default its nosuid,noexec (unless you are root and then you can remount but in this case.. oh well you got it lol)
 
Old 06-21-2007, 10:06 AM   #13
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Thats a weird thing every x-th newbie wants to run as root and starts arguing when told not to. If there is "Do not jump in, danger!" posted at a river - how many would argue with that? How many would jump in? There is long-long list of reasons why one should not run as root, no newbie would listen all of them, too boring. Thus I'll give only two of them:

1. Imagine there is a flaw in your web browser, you visit a malicious web site and it wants to install a keylogger into your box. If you run as root then that's it, your identity is stolen. If you run as user - it is practically impossible to install a keylogger with user rights, your identity is safe even if your account is breached.
2. DDoS attacks are made using spoofed IP address. Your computer is part of zombie network - without you knowing it - and it sends out a spray of SYN packets to a list of web servers pretending these packets come from victim's computer at address 4.3.2.1. Those servers reply to 4.3.2.1 creating a flood which shuts down the victim server and enables the attacker to demand ransom. Your box cannot participate in this crime when run as user because spoofing an IP address requires access to the raw sockets - something only root has access to!
 
Old 06-21-2007, 06:08 PM   #14
jagguy
Member
 
Registered: Jun 2007
Posts: 46

Original Poster
Rep: Reputation: 15
I am using fedora7 and really need help with apache. I downloaded src which faile dto extact and binaries which again failed to install.

So this is really bugging me as in dont know what to do because apache fails.

I dont know if apache is already installed ( i dontbelieve so) and how to configuure php/mysql with apache?
I spent a few hours getting nowhere so far.
 
Old 06-21-2007, 06:32 PM   #15
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Reading documentation for your distro makes life much easier, did you read it?

http://docs.fedoraproject.org/yum/en/
 
  


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
Install all Packages from Basic server install stuartornum Linux - General 2 02-24-2006 07:14 AM
the most basic install.... Danielallan Slackware - Installation 4 11-10-2004 11:43 AM
Basic install questions mission_control Linux - Software 1 09-24-2004 11:24 PM
Debian Basic install and Fluxbox Zaskar Debian 1 02-25-2004 12:50 AM
Basic install question Muscles Linux - Newbie 1 11-13-2003 02:03 AM

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

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