changing your login shell in OSX

the login shell can be changed by running following command as root or sudo:

chsh -s /path/to/your/shell username

Ensure that /path/to/your/shell exists in /etc/shells. Tested in Leopard and Snow Leopard.

no such file to load — mkmf

There are times when I encounter this error when dealing with rubygem installations on debian based systems in our network.

extconf.rb:1:in `require’: no such file to load — mkmf (LoadError) from extconf.rb:1

The fix is to install the development libraries of ruby:
sudo apt-get install ruby1.8-dev

The Origin of the word Daemon

Link: The Origin of the word Daemon.

.. as you probably know, the “system processes” called daemons monitor other tasks and perform predetermined actions depending on their behavior. This is so reminiscent of Maxwell’s daemon watching his molecules that we can only assume that whoever dubbed these “system processes” had Maxwell’s daemon in mind …

rbel repo – ruby and chef packages for RHEL distros

Link: rbel repo.

Noteworthy packages are: ruby and chef.

getting application pid listening on a network port

lsof comes to the rescue. It is installed by default in most Unix based OS’s including Solaris.

lsof -i :port_number -t

will output the PID which can then be consumed by other applications like “kill”

More about lsof at IBM developerworks.

Stats

  • 142,056 Hits and counting...

Archives

Follow

Get every new post delivered to your Inbox.