skimppimppin along! NEWS   FORUM   DOWNLOAD   LINKS    
HOME ACCOUNT PRIVATE MESSAGE  
Login
Username:

Password:


Lost Password?

Register now!

Main Menu

Search

skimpydog.com Forum Index
   Redhat Base
  RHEL

Browsing this Thread:   1 Anonymous Users

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread Rated:  1 Votes
RHEL
#1
Webmaster
Joined: 2007/6/10
From Dallas, TX
Posts: 79
Level : 7
HP : 0 / 170
MP : 26 / 8771
EXP : 83
Group:
Webmasters
Registered Users
Offline
Redhat is too easy to use!

RHEL - Redhat Enterprise Linux - This is NOT OpenSource! or Free! - But some of the aps that it comes with are...

Nonetheless, those of you who are not used to using linux, that are at least making the attempt to learn should know that you should NEVER login directly to your server using "root". Create another account for you to "su" from that user. One of my popular account names, which is an old-skool BSD rip off, whom is "toor".

So what you do is login to the server via ssh as toor (You of course have to create the user first). then su, put in the password, and BAM!
# useradd toor -s /bin/bash
Enter NEW password:
ReEnter NEW Password

Login: toor
Password:

$ su
Enter Password:
#


Just that easy. Now you are logged in as toor, and su'ed as root. To exit from root, use exit:
# whoami
root
# exit
$ whoami
toor


One of the complaints that I commonly hear is "But I can't run my applications" - BOO! You may! There is a lil thang called "Environment Variables" whereas locations such as /sbin are generally only called by the "Super User" - su - whereas the environment variables for root include /sbin within it's path. This is to say if you set the variables for the user you are logged in as, things will work seamless - try
man export


Your Environment Variables will be stored at "$home/.bash_profile". The easy way to add to this list of Environment Variables is to use "vi", and edit the file directly.

-- For example, if you want to run "/sbin/service httpd restart", then you can & may. I won't stop you. But I like to make my life a bit easier, and just run "service httpd restart". Therefore when you have to string it all out, it flows better:

To bring down a server load on a cPanel box, then to view the status:
echo "stopping services" && service exim stop && \
service httpd stop && service mysql stop && echo \
"waiting for cpservd to restart services and stop \
them once again - 20 seconds" && sleep 20 && service \
exim stop && service httpd stop && service mysql stop \
&& echo "relax for the next minute - slow your roll" && \
sleep 60 && echo "Starting mysql" && service mysql start \
&& echo "wait 20 seconds to calm" && sleep 20 && echo \
"Starting apache" && service httpd start && echo "wait 20 \
seconds to calm" && sleep 20 && echo "Starting exim" && \
service exim start && echo "give it all 5 seconds before \
launching top" && sleep 5 && top -d .2


Now imagine if you had to put a /sbin in there - just too much hassle. - so was writing this, but you get the idea.
Posted on: 2007/7/19 19:47
Create PDF from Post Print
Top
  •  Anonymous
      Anonymous
Re: RHEL
#2
Guest_Anonymous
A note to users of RedHat based systems, if you like RedHat and want to support the opensource community you can go with a distro such as CentOS as this is the exact same thing and everything is free without the licensing crap :)- Dustin
Posted on: 2007/7/20 14:22
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.
Links