LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Bunch of newbies question (https://www.linuxquestions.org/questions/linux-newbie-8/bunch-of-newbies-question-15305/)

AhmadFarhan 02-28-2002 11:13 PM

Bunch of newbies question
 
ok.. i've just installed RedHat 7.2 and i've just toyed with it for less than a week so if i seem stupid it's because i am...so pls dunn flame..:D :D

here goes....
i can't get a bunch of hot keys to work... (example ctr+alt+plus key for res change ...) am i doing it wrong... i pust ctrl push alt then push the plus key(near the numpad) and release the plus key and release alt and then ctrl??

how do you make something autostart?? like i am sharing a partition with my winxp so now each time i log on i have to mount the drive so i can use it.... i've read that tlinux autostart stuff in the /etc/init.d folder... but do i just add my script in that folder or do i add stuff to files that are already there??


i can't find apachectl ?? i am doing these stuff following the instruction from a book...
it says to restart apache(after i've change stuff in the httpd.conf) i have to use apachectl restart...
i've looked under etc/hhtpd under /usr/sbin and buch of other places still can't find it...


:)
thanx for any help given

oUTLAw 03-01-2002 02:42 AM

I think I have a solution for your mount problem:

You have to edit the /etc/fstab file.
If you have mounted the partition with i.e. mount /mnt/x or so then you have to find the line for the specified partition in the fstab file and check for the entry " auto " in the last block of words in the line.
If you have mounted the partition with i.e. mount /dev/hda3 /mnt/x then you have to add a new line to the fstab file.
for example:
/dev/hda3 /mnt/x vfat default 1 1

where /dev/hda3 is the partition
/mnt/x is the mountpoint
/vfat is the filesystem
instead of " default 1 1 " you can use:
auto,user,rw,exec

Syncrm 03-01-2002 04:23 AM

to make something "autostart", just put whatever it is you wanna load into your /etc/rc.d/rc.local file. easy enough...

as for the apache question, you must be reading a pretty old redhat book, cause apachectl isn't the command in RH. to start the http daemon, try this: "service httpd start". also works for restart, stop, etc... there are versions of RH where you have to leave out the "service", but you get the idea.

also, these two commands can be very useful for finding files:

updatedb
locate your.file

Mik 03-01-2002 06:31 AM

Well about changing the resolution with CTRL ALT +. If you only have one resolution defined in your configuration file then it won't do much. You'll have to set up more resolutions to be able to switch between them. Try reading the man pages or the documentation at www.xfree86.org

And the apachectl is not old. It still comes with even the newest versions of apache. It's the default control script to start and stop the httpd. But most distributions make their own script often based on the apachectl script. Usually the script they use would be in the /etc/init.d directory and be called something like httpd. You can then start it by running '/etc/init.d/httpd start'
On redhat this would be equivalent to 'service httpd start' like Syncrm mentioned.

AhmadFarhan 03-01-2002 12:27 PM

thanx i will try them out...


All times are GMT -5. The time now is 09:21 AM.