Skip to main content

Uber newb in Linux

More
19 years 1 month ago #10785 by Bublitz
Replied by Bublitz on topic Re: Uber newb in Linux
Thanks Da Light ill try that!

Jhun

us2.samba.org/samba/docs/man/Samba-HOWTO...on/introduction.html

This is the link im using. There is TONS of info here.

Cool now I know the command for apps and servives you folks are good help.

One more quesition about services. Now my named server starts automaticlly during start up. I used the GUI to check it so it run that way. How do i do that on the command prompt? And how about applications? Are they the same thing? In windows you can have services set to manual or auto. And then apps they run by putting in startup.

BTW my web site WORKS now. Not sure if my security is good but its running. You were right the service wasnt running prolly cause I didnt how to hehe

The Bublitz
Systems Admin
Hospice of the Red River Valley
More
19 years 1 month ago #10805 by jhun
Replied by jhun on topic Re: Uber newb in Linux
hi bublitz,

thanks for the link...great one too...i'll try this probably next week.

by the way great to know that your webserver is finally up and running.
on my server i always use the "chkconfig" command to check for running services.
also you may use this as reference for each runlevel:
[code:1]
0 - Halt the system
1 - Single-user mode
2 - Multi-user mode (without NFS)
3 - Multi-user mode
5 - Multi-user mode, graphical login
6 - Reboot the system
[/code:1]

usually, services are started using the 235 runlevels so you could start/stop/reset your services by issuing this command:
[code:1]
#chkconfig --levels 235 'service name' on|off|reset
[/code:1]
for services that you don't use i would suggest turning them off by issuing a "chkconfig --levels 123456 'service name' off" command.
also you could secure your server by using iptables.
try this link for a quick tutorial on iptables:
www.iptablesrocks.org/
from there you could establish a fairly good firewall for your webserver.
hope this helps...
More
19 years 1 month ago #10809 by Bublitz
Replied by Bublitz on topic Re: Uber newb in Linux
Is there a command thats lists the Possible services to start? And with the chkconfig can you add it to the stratup?

The Bublitz
Systems Admin
Hospice of the Red River Valley
More
19 years 1 month ago #10810 by jhun
Replied by jhun on topic Re: Uber newb in Linux
hi bublitz,

actually the "chkconfig --list" shows all of the possible services that you could start. you could add the list up provided that the services are installed on your system of course :wink:

and yes you could start them up during the startup process

also if anyone has other commands just post them up...
More
19 years 1 month ago #10811 by jhun
Replied by jhun on topic Re: Uber newb in Linux
i did some research and found some useful commands you could use

ps:
List the active processes you own and their PID's.

ps -aux:
List all the active processes, together with the name of the user that owns each process.

top:
Show a continually updated listing of active processes.

command &:
Run command in the background.

fg:
Bring a background or stopped process to the foreground.

bg:
Send the process to the background. The same can be accomplished with Ctrl-z.

kill pid:
Force a process to shutdown. First determine the pid of the process to kill using ps.

killall -9 name:
Kill all processes with the specified name.

nice program level:
Run program with niceness level. Specifying a high nice level will make the program run with a lower priority.
More
19 years 4 weeks ago #11014 by jhun
Replied by jhun on topic Re: Uber newb in Linux
by the way bublitz, i've reread your post on the nt domain with samba and found out that you are having a problem with the last step.

actually the last step involves restarting the samba server since you made some changes on the smb.conf file.

there is something wrong with syntax that is why it does not execute.
it should be:

#/etc/init.d/smb restart

or you could just type this:

#service smb restart

this would restart the samba daemon so that changes would take effect.
Time to create page: 0.142 seconds