Recently I was working on a project that was using RightScale to manage RackSpace cloud nodes. One of the requirements of the project was to have application nodes scale automatically thus they were required to automatically install software, configure settings, and start services automatically on the RackSpace CentOS nodes being used. Most everything was fairly straight forward however some of the services we were using would not start properly and initially because of the lack of logging from the services we were unable to figure out what the problem was. Below I describe the problem in more detail along with the solution which involved updating a configuration file on the CentOS Linux servers and then restarting the services.
I’m back with another short post. Today I was adding a screen to one of my racks and I wanted it to display data such as a top session or something of that nature. They are servers so there is no X-server. I got the screen all hooked up and running they way I wanted…
I have been asked the question numerous times of what PTS and TTY mean in Linux regarding terminals. People ask because they may be newer to Linux and learning how to view a process list they may actually see a serial connection, SSH connection, or a telnet connection in the process list that might show something like pts/0, pts/2, tty1, or tty2 in the TTY column. Most processes will just have a question mark in this column but if something is connected to an actual terminal then it will list where it is connected in the TTY column of “ps”.
I was recently working on a Perl script that would SSH to another server and run a sudo command on the remote server that was failing. The error that was received is below.
Error: sudo: sorry, you must have a tty to run sudo
The reason for this is an update along the way with sudo locked it down further by adding the below line to /etc/sudoers configuration file.