• Home
  • Mobile
  • Tips and Tricks
KEEP IN TOUCH

Posts in category Linux

Rails, RVM, MySQL, Apache and Passenger on Debian 6

Dec08
2011
Leave a Comment Written by mike

This is a snap, here’s the short short version:

as root (or add sudo to the front of this)

apt-get install curl git-core build-essential libncurses5-dev zlib1g-dev libssl-dev libreadline-dev libcurl4-openssl-dev apache2 apache2-threaded-dev mysql-server mysql-client

System wide rvm install:

sudo bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )

logout and log back in

rvm install 1.9.2
rvm use 1.9.2 --default
gem install rails passenger
passenger-install-apache2-module

Add lines from the end of that script to apache config /etc/apache2/mods-available/passenger.load

They'll look a little like this depending on current version when you run it:

LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.11
PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.2-p290/ruby

Then wrap things up:


a2enmod passenger
service apache2 restart

Good admins will then set a MySQL password with

mysqladmin password new-password

Posted in Tips and Tricks

Gedit indent a block

Oct05
2011
Leave a Comment Written by mike

I searched for this one for a while and it turns out it’s really simple.  If you have smart indent, simply select your block of text you want to indent and hit <TAB>.

Too easy, but I couldn’t find it documented anywhere.

Happy coding!

Posted in Apps, Tips and Tricks

Where software and hardware hackers collide

May10
2011
Leave a Comment Written by mike

I don’t often get all excited about a piece of technology, but at Google I/O today, Google announced that Arduino will be part of the hardware part of the the Android Accessory Development Kit.

The applications for an open hardware platform mashed with an open device platform have my head spinning.

What would you do with something like this?

Posted in Announcements, Apps, Mobile, Think

Fix for VMWare crash in Ubuntu 11.04

Apr27
2011
13 Comments Written by mike

If your VMWare workstation is crashing after you’ve upgraded to Ubuntu 11.04, you might be having a glib conflict.

If you start vmware in a terminal you’ll see errors like this:

(vmware-unity-helper:3090): GLib-WARNING **: /build/buildd/glib2.0-2.28.6/./glib/goption.c:2132: ignoring no-arg, optional-arg or filename flags (8) on option of type 0
(vmware-unity-helper:3142): GLib-WARNING **: /build/buildd/glib2.0-2.28.6/./glib/goption.c:2132: ignoring no-arg, optional-arg or filename flags (8) on option of type 0

The fix until VMWare patches is simple:

Edit your /usr/bin/vmware file as root:

sudo vim /usr/bin/vmware

and add the following to the top of the file:

export LD_PRELOAD=/usr/lib/vmware/lib/libglib-2.0.so.0/libglib-2.0.so.0

Posted in Tips and Tricks - Tagged Error, Natty, Ubuntu, VMWare

Evolution Mail with Exchange 5.5

Apr26
2011
Leave a Comment Written by mike

If you find yourself needing to connect to an old Exchange 5.5 server and you use Evolution, you’ll need to install and use the Evolution MAPI plugin.

sudo aptitude install evolution-mapi

Posted in Tips and Tricks

Upgrade to Firefox 4 in Ubuntu

Apr07
2011
Leave a Comment Written by mike

Firefox 4 is a great upgrade and as is so typical with Ubuntu these days, the upgrade is a snap:

 

sudo apt-add-repository ppa:mozillateam/firefox-stable
sudo apt-get update
sudo apt-get upgrade

Easy as pie.

Posted in Tips and Tricks - Tagged Firefox, Ubuntu

Tags

Cloud cool Error EVO Firefox hacks HTC Linux mobile most sales people suck Natty tips tricks Ubuntu VMWare

EvoLve theme by Theme4Press  •  Powered by WordPress Imapenguin
Technology coverage that doesn't suck

Back to Top