Ubuntu: start/stop mysqld

If you use the init.d script on Ubuntu, e.g. 

sudo /etc/init.d/mysql restart

you may get this message:

Rather than invoking init scripts through /etc/init.d, use the service(8)

utility, e.g. service mysql restart

Since the script you are attempting to invoke has been converted to an

Upstart job, you may also use the stop(8) and then start(8) utilities,

e.g. stop mysql ; start mysql. The restart(8) utility is also available.

mysql stop/waiting

mysql start/running, process 25974

http://askubuntu.com/questions/82374/how-do-i-start-stop-mysql-server

rvm requirements

 rvm requirements

Installing requirements for ubuntu, might require sudo password.

At first this looked as if it has silently failed.

But:

$ echo $?

0

indicates nothing needs doing. If you had something like this:

$ echo $?

10

Then not all is well with the world.

Linode Rails Server: Debian or Ubuntu

Debian is the oldest of the Linux distributions and has a venerable history. 

But what attracts me to Ubuntu are the LTS distributions (or Long Term Support). You get a massive 5 years of support for that distribution. So, Ubuntu 12.04 LTS will be backed till 2017! Debian will support the previous release for 1 year.

Also, Ubuntu has the backing of a commercial organisation.

See also:

http://askubuntu.com/questions/15314/debian-stable-vs-ubuntu-lts-for-server

and

http://serverfault.com/questions/389199/is-it-debian-really-more-stable-for-servers-than-ubuntu-lts

and a specific guide to setting up a Rails server on Ubuntu 12.04 here:

http://blog.lunarlogicpolska.com/2013/setup-fresh-ubuntu-server-for-ruby-on-rails/

For the process of provisioning your server, see:

https://library.linode.com/getting-started

and, for Phusion Passenger, this is a useful read:

https://developer.apple.com/library/mac/#featuredarticles/PhusionRails/_index.html

If you’re on a Mac then use PassengerPane for local Rails deployments (helps avoid cluttered /etc/hosts): 

http://www.fngtps.com/passenger-preference-pane

Hint – just use:

$ gem install passenger

$ passenger-install-apache2-module

Linode Rails Server: Debian or Ubuntu

Debian is the oldest of the Linux distributions and has a venerable history. 

But what attracts me to Ubuntu are the LTS distributions (or Long Term Support). You get a massive 5 years of support for that distribution. So, Ubuntu 12.04 LTS will be backed till 2017! Debian will support the previous release for 1 year.

Also, Ubuntu has the backing of a commercial organisation.

See also:

http://askubuntu.com/questions/15314/debian-stable-vs-ubuntu-lts-for-server

and

http://serverfault.com/questions/389199/is-it-debian-really-more-stable-for-servers-than-ubuntu-lts

and a specific guide to setting up a Rails server on Ubuntu 12.04 here:

http://blog.lunarlogicpolska.com/2013/setup-fresh-ubuntu-server-for-ruby-on-rails/

For the process of provisioning your server, see:

https://library.linode.com/getting-started

and a useful read on Phusion Passenger is:

https://developer.apple.com/library/mac/#featuredarticles/PhusionRails/_index.html

although it’s Apache-specific (e.g. it doesn’t mention Nginx).

If you’re on a Mac then use PassengerPane for local Rails deployments (helps avoid cluttered /etc/hosts): 

http://www.fngtps.com/passenger-preference-pane

Hint – just use:

$ gem install passenger

$ passenger-install-apache2-module

Automatic Post Tagger

Not quite as awesome as an automatic post categoriser but still pretty handy:

http://wordpress.org/extend/plugins/automatic-post-tagger/