The How-To edition

March 19th, 2008

I told myself when I started this blog that I was going to avoid simple howto posts and focus on system administration concepts. However, I’m going to break that rule today. I was looing through my referrer log files, and noticing that I get a lot of search queries for “How to…” or “how doI…” So, I dug up my access logs, fired up egrep, and made myself a list of search referrals with “how” in the string. Today I’m going to give in to the masses and attempt to answer some of them :

Linux how to execute simultaneous commands? how to run same command on multiple servers?

Clusterssh and shmux do this, as mentioned in a previous post. For a more scalable system, also have a look at puppet.

How to download 2.6.18-53.1.13 rhel?

run “yum update” to update all of your software packages. Be sure to restart after a kernel update.

Centos 5 : how to install tripwire?

Tripwire is a commercial product, so RTFM or bug support. Also see aide for a free version with similar design goals.

how do i enable rsh on rhel5?, how to configure rlogin in rhel5

Do you really want to do this? Might ssh/scp/rsync over ssh be a better option? The only possible reason is for speed in an isolated network, where every machine on the network is trusted.

Install the packages rsh-server and xinetd. edit /etc/xinetd.d/rsh and change disable = yes to disable = no. Add .rhosts files as needed. To enable rlogin, do the same for /etc/xinetd.d/rlogin

how to deactivate rsh on rhel 5

It isn’t installed by default. If it is installed, edit /etc/xinetd.d/rsh, /etc/xinetd.d/rlogin, and /etc/xinetd.d/rcp and add “disable = yes” to all of them. Or, just remove the whole package with “yum erase rsh”

how to check for kernel update rhel5

Run yum check-update , intuitively enough

How to deploy database in mysql in linux

  1. Remove all flammable objects from the room.
  2. Lift the protective clear plastic cover and push the “deploy database” button.
  3. Take cover.

how to enable telnet in rhel5? how to install telnet on rhel5? how to enable the telnet on the rhel5 server?


Don’t. Use ssh instead and require remote shell users to download a putty or teraterm SSH if they are Windows users.

If you must, install the telnet-server package and enable the service in /etc/xinetd.d/telnet

Thanks to Andrew for the suggestion to add a plug for ssh here.

how to restrict other people from rebooting in linux?

  1. Remove ca::ctrlaltdel:/sbin/shutdown -t3 -r now from /etc/inittab , or add a -a option to that line and put a list of users allowed to shut the system down in /etc/shutdown.allow
  2. edit /etc/gdm/custom.conf and add the line SystemMenu = false to the [greeter] section

How to restrict root logins to the system console?

I assume you mean how to disable root ssh logins. open /etc/ssh/sshd_config and add a line “PermitRootLogin no” Addition: Also, set more restrictive permissions to /bin/su so that people can’t log into ssh as a normal user and su to root.

How to roll back centos kernel?

Since the old kernel should still be installed, simply edit /etc/grub.conf and change default=0 into default=1 Be sure to change it back when you get the kernel working, or you will perpetually be running one kernel behind current

how to set automatic updates on rhel5?

See my post on getting email notifications which I think is a better strategy. If you really must do automatic updates, create a daily crontab that runs yum -y update.

how to use yahoo messenger in linux el 5

pidgin.

and the junk bin…

  • how to fix a mail size for sendmail in linux el5
  • how to exploit apache serveur
  • php mysqli href how to a link data from one side to another

I’ve finished compiling kernels based on the 2.6.18-53.1.4 CentOS kernel. Some people are still using it, because the latest RHEL/CentOS kernel can have NFS issues.

The kernels are christened 2.6.18-53.1.5.el5.cve20080600. They’re available at http://erek.blumenthals.com/vmsplicekernels/ .

Keep in mind that they’re entirely untested, as I haven’t had a chance to go through each one. Please download them, do your own QA, and comment or email me with the results.

Holiday Vacation

December 28th, 2007

I’ll be on vacation until January 15th. I probably won’t be updating this while I’m gone. Hope everyone had great holidays.

Welcome

December 22nd, 2007

I’m a sysadmin and programmer for a local web development and hosting company out of Olean, NY.  We handle many smalltown technology needs, and also a few more complex projects. 

We maintain an internally-developed CMS for use on small to medium websites, with the design goal of absolute simplicity combined with a powerful enough featureset to handle smallscale needs.  I’m currently in the midst of a complete rewriting project, to replace wikimarkup-based editing with WYSIWIG editing, simple database functionality (Think searchable used car listings, job listings, news releases, web-form submission handling, etc.), better modularity, and a unified code base for all of our customers.

 The goal of this blog will be to talk about common sense ways to look at administering small deployments.  It won’t necessarily be about the latest technologies, or the newest fads in technology development, just things that have worked for me to keep things running smoothly.