LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help Newb here please (https://www.linuxquestions.org/questions/linux-newbie-8/help-newb-here-please-186965/)

Icemangod 05-28-2004 10:45 AM

Help Newb here please apache
 
TY main problem fixed go to second page and help me with apache i installed it but cant find it anywhere dont know where it could be. help please














I just installed linux and when i boot it asks me what i want to do and i type in linux. then i'm at a command prompt to log in with my username and password. so i do and now i'm stuck where it has [dave@localhost dave]$ and i dont know what to do can someone help me please i'm sure there is a command to start linux i guess or something right? :)

XavierP 05-28-2004 10:49 AM

Linux is started.

Type in startx to get into the gui. Which distro are you running? most should have booted into a graphical environment.

Coldmiser 05-28-2004 10:51 AM

Sounds to me like you've already started Linux.
It also sounds to me like you are looking for Xwindows.

You might want to try typing 'startx' at you [dave@localhost dave]$ prompt.

You can also edit your /etc/inittab file and change the following line:

id:3:initdefault:

to

id:5:initdefault:

Icemangod 05-28-2004 03:29 PM

my id is 5

and when i type startx it gives me a few info lines and then XIO: fatal IO error 104 (connection reset bye peer) on X sedrver ":0.0" after 0 requests (0 known processed) with 0 events remaining.


[dave@ localhost dave]$


what distro am i running? i have no idea what distro is. Mmm someone had told me that i didnt check the box to start in graphic mode but should be able to get into it from where i am.

donni 05-28-2004 03:39 PM

Post output to:

grep -n EE /var/log/XFree86.0.log

Icemangod 05-28-2004 03:46 PM

result.......


32: EE no core pointer device specified
33: II unable to determine the screen layout
34: II error from xf86handleconfigfile()


and thats it.

mcd 05-28-2004 04:51 PM

distro = distribution (mandrake, red hat, slackware etc.)

it's pretty important that we know which one you're using. anyway, it sounds like you haven't configured XF86Config. Basically, linux itself is running fine. X Windows is your graphical sever, X server, or whatever you want to call it. It's the mouse, buttons, pictures, all that stuff. It is completely separate from "linux", but of course a very important part, for most of us. Before you can run an X Windows session, you to configure it (so that it knows where your mouse, keyboard, graphics card, etc. are). To do this, you should be able to type xf86config at the command prompt (after you've logged in of course), and be presented with a step-by-step configuration tool. If you're unsure of your graphics card, or have trouble with it, choose the standard "VESA" drivers. For you mouse, if it's a normal, ps2 mouse, then choose "PS/2" protocol, if it's usb choose "IMPS/2".

For now, that should help you get it up and running. Just type startx again. If it doesn't work then post here again, let us know what the exact error message was, and then post the contents of /home/[your user name]/XF86Config

Icemangod 05-28-2004 06:52 PM

I am running mandrake and i dill the configuration like you said and ran startx and it gives the same thing again

mcd 05-28-2004 06:58 PM

ok, i'll address the first error first. there are a few different files that might point to your mouse, /dev/mouse, /dev/input/mice, /dev/psaux etc. start with these three, and for each one, type the command below, then wave the mouse around. you're looking for one to start spewing random characters when you do that, which means data is flowing.

su -
cat /dev/mouse
(wave the mouse)
ctrl-c


once you figure out which one is pointing to your mouse, you need to take a look at your XF86Config file. It's probably in your home directory, /home/[yourUserName]/XF86Config, but if you can't find it there check /etc/X11/XF86Config. you'll need to post at least parts of this file for us to troubleshoot. start by posting the sections dealing with the mouse and the monitor/screen/video card.

hopefully that will give us a better idea of what to try next

Icemangod 05-28-2004 07:22 PM

when i type in /home/[dave]/XF86Config it says -bash:/home/[dave]/XF86Config: No such file or directory

same with this directory /etc/X11/XF86Config

oh cat dev was the mouse i had to use

mcd 05-28-2004 07:25 PM

sorry, it should be /home/dave/XF86Config -- you don't need the [] that was just my notation for [fill this in]

Icemangod 05-28-2004 07:27 PM

permission denied

mcd 05-28-2004 09:33 PM

Quote:

oh cat dev was the mouse i had to use
it should be /dev/mouse, /dev/input/mice or something similar...

Quote:

permission denied
so when you boot up, it takes you to command line right? you log in as dave, enter your password, and you're on command line right? so now you enter

emacs /home/dave/XF86Config

and it says permission denied? that's not a good sign. anything in your home directory should be ok for you to edit. make sure that the file exists by typing

ls -l /home/dave/XF86Config*

make sure that you're being case-sensitive, if you type xf or c in lowercase it won't work. there may be a file with a similar name, but .new or something at the end. if there is, edit that one instead. and then do this:

su root
(enter password)
ln -s /home/dave/XF86Config[BOLD].new[/BOLD] /home/dave/XF86Config
rm /etc/X11/XF86Config
ln -s /home/dave/XF86Config /etc/X11/XF86Config
exit


make sure that above, where i put .new you put the actual filename. what these steps do is set up symbolic links to the actual file that will be right where X expects them to be when you startx. meanwhile, you can edit the .new file as much as you want and since the others just point to that file, you'll be all set.

Icemangod 05-29-2004 12:08 AM

ok when i put emacs /home/dave/XF86Config with emacs infront of it, it gives me file generated by xf86config.



copyright and permission is hereby granted free of charge,, then you drop down a page and it gives the section "Module" This loads the DBE extension module.

load "dbe" # Double buffer extension and so on. this looks like information on how to do things or commands to run i am guessing its normal?. if you need more info about this let me know i'm leaving it here at this screen there is like 14 page down pages. when i hit page down.

btw i really apreciate your help.

Icemangod 05-29-2004 09:58 PM

hello? :)


ok i put a new monitor on it and put a new video card on it and i got the screen EE couldnt determin the screen setup so no matter what setting i put it on it wouldnt take it. i would test after test after test and it dont like anything i put in there. :(

whats start service etho b/c it failed

Hangdog42 05-30-2004 10:56 AM

You need to run the xf86config command and you need to be root to do it. Log in as root, run the command and set up your hardware.

Icemangod 05-31-2004 10:01 AM

ok well i got it up and running. now i installed apache so i can make a web server but i cant find apache or anything with http on here at all. any clue??

Icemangod 05-31-2004 11:24 AM

anything

Hangdog42 05-31-2004 11:43 AM

Use the find command to find httpd. That will tell you where apache is. Su to root and type find / -name httpd.


And as a complete aside, you need to work on your LQO manners a bit. You're bumping posts after only a few hours and you're hijacking threads. If you are frustrated at the speed at which you are getting answers, may I strongly suggest a vigorous workout of the Search button or perhaps even Google. Otherwise, a little patience will go a long way.

Icemangod 05-31-2004 12:44 PM

got ya.

this is what i got

/etc/rc.d/init.d/httpd
/etc/httpd
/var/log/httpd
/var/cache/httpd
/var/lock/subsys/httpd



so what do i do from there?

i dont know if this is write but i went into a folder and found my way into the /etc folder then found /etc/httpd/ and so there is some apache files there and a addon-modules folder that has apache stuff in there. if i am correct on being there let me know other then that i'll wait for someone to tell me how to get apache started and how to start a server. thanks

Hangdog42 05-31-2004 02:09 PM

The file you are looking for is called apachectl and it is a script that starts, stops or restarts the apache server. If you find it (it should be in the bin subdirectory below the apache home directory) , simply type apachectl start and the web server should be up and running. You can use ps -A to see if there is a process called httpd (that is the web server daemon) or you can point a browser at localhost and you should see an apache welcome page.

Icemangod 05-31-2004 02:20 PM

so do i have to type in start apachectl everytime i reboot or will it come on automatically.

I opened a web browser and typed in localhost took me to http://localholst/ and i think its right b/c it states that if i see this instead of a webpage its b/c the server is not yet fully configured or is under and upgrade. so i think its right.

i dont see it say anything about how to set it up. i just need it to store some files and pics for like avatars till i learn more about it.

n/m hehe just found it. compiling and insstalling and starting and reference page and all that. thank you again

Hangdog42 05-31-2004 02:29 PM

Quote:

so do i have to type in start apachectl everytime i reboot or will it come on automatically.
You're going to have to dig into your startup scripts to find out if it comes up a boot time. Look in your /etc/rc.d directory for a script that calls apachectl (on Slackware it is called rc.httpd) If that script is exectued on start-up then you are good to go.

As for using Apache, you are going to have to read the documentation.


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