Monday, 19 September 2011

System Administrator Knowledge Areas

Linux             Apache          Bind           Tomcat      Qmail

MySQL         Postgresql      FTP            cPanel        Plesk

Exim              Enkompass    IIS             MSSQL      DNS

 Firewall         PSA database  Mail enable       Windows FTP  

Administrator skills


Performance tuning / monitoring and troubleshooting.

Kernel compilation / tweaking.

Security concepts / tools /services.

Familiarity  with various distributions.

Familiarity with open source concepts and development methodologies.

Package management  ( RPM etc... )

Compilation and installation of software from source.

Shell scripting.

Booting routines.

Services.

Logging.

Backup, restore and disaster recovery.





Tuesday, 5 July 2011

Ruby on Rails Installation and Configuration

Ruby Version 1.9.2
Download Ruby and Rubygems
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p180.tar.gz
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.5.tgz

Install these first :-
# yum install -y gcc gcc-c++ make dot doxygen
# yum install -y zlib* openssl* curl-devel
# yum install -y zip unzip
# yum install -y httpd-devel apr-devel apr-util
# yum install -y libxml2 libxml2-devel libxslt libxslt-devel
# yum install -y mod_perl
# yum install -y httpd-devel apr-devel apr-util
# yum install -y vim*

Untar Ruby
#  tar -zxvf ruby-1.9.2-p180.tar.gz
#  cd ruby-1.9.2-p180
#  ./configure
#  make && make install
#  ruby -v

Untar Rubygems
#  tar -zxvf rubygems-1.8.5.tgz
#  cd rubygems-1.8.5
#  ruby setup.rb
#  gem list
#  bundle install
#  bundle show

Install Passenger
#  gem install passenger
#  passenger-install-apache2-module
#  vi /etc/httpd/conf/httpd.conf
---------------------------------------------------------------------------------------------------------------------------------
   LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
   PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.7
   PassengerRuby /usr/local/bin/ruby
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
#  /sbin/service httpd restart

Ruby Version 1.8.7
Download Ruby and untar it.

#  tar -zxvf ruby-1.8.7.tar.gz
#  cd ruby-1.8.7
#  ./configure
#  make
#  make install
#  ruby -v

Download Rubygems 1.3.6 and untar it.
#  tar -zxvf rubygems-1.3.6.tgz
#  cd rubygems-1.3.6
#  ruby setup.rb
#  gem install rails
#  gem list

Passenger install
#  yum install httpd-devel
#  yum install apr-devel
#  yum install apr-util
# yum install -y libxml2 libxml2-devel libxslt libxslt-devel
# yum install mod_perl
#  passenger-install-apache2-module
#  vi /etc/httpd/conf/httpd.conf
---------------------------------------------------------------------------------------------------------------------------------
   LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/ext/apache2/mod_passenger.so
   PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10
   PassengerRuby /usr/local/bin/ruby
---------------------------------------------------------------------------------------------------------------------------------
#  /sbin/service httpd configtest
#  /sbin/service httpd restart

Other options:-
# gem install rails -v2.3.5 --no-ri --no-rdoc
#  gem install acts_as_taggable builder cgi_multipart_eof_fix chronic clickatell commonwatir daemons eventmachine fastercsv fastthread ferret firewatir god hoe hpricot json mechanize mini_magick mysql needle  net-ssh packet paginator ParseTree ParseTreeReloaded passenger postgres postgres-pr rspec rtf ruby-pg ruby-pg ruby2ruby scrubyt slave sources  sqlite3-ruby tzinfo --no-ri --no-rdoc


Monday, 4 July 2011

What System Administrator Do

Install, Configure and Test Softwares
Install, Configure and Test Hardwares
Install, Configure and Test Network equipment
Write scripts and programs for System Management
Troubleshoot Software Problems
Troubleshoot Hardware Problems
Plan System Evolution
Maintain and Understanding of  Changing Technology
Monitor system Use and Provide Dynamic system Management
Protect system Integrity and Monitor Security Issues
Keep Users Happy or At least not too Unhappy
Go to Meetings

System Administrator Integrity

With Power comes Responsiblity
Treat Users with respect
Don't Misuse Information

Secrets of Success

Be Cool
Aim High
See the World
Every minute is Precious
Reflect before you Act
Be Updated
Push hard for your Goals