Friday, December 17, 2010

Removing debian dependencies

removing extra packages that should've been removed by purge
aptitude purge $(dpkg -l | grep ^rc | awk '{print $2}')

Friday, December 3, 2010

Set terminal window name


title=`hostname`
echo -n -e "\033]0;$title\007"

Tuesday, September 22, 2009

Mac seeing debian

sudo aptitude install avahi-daemon libnss-mdns

Monday, May 18, 2009

Installing gem rmagick in Ubuntu

You will need the hearder files:
sudo apt-get install imagemagick libmagick9-dev
then install the rmagick gem

sudo gem install rmagick

Friday, May 15, 2009

Installing sqlite3 in ruby Ubuntu

To install sqlite3 in ruby you will need the header files:
* sudo apt-get install sqlite3 libsqlite3-dev
then you can install it from gem or from the ruby repository

Thursday, May 14, 2009

Install Ruby 1.8.6 on Ubuntu with readline

When installing ruby 1.8 in Ubuntu 9.10. The specific version of ruby that is on the repository is 1.8.7. If you need version 1.8.6 then you will need to follow this:
  • install dev
sudo apt-get install gcc build-essential bison byacc gperf zlib1g-dev libreadline5 libreadline5-dev libncurses5 libncurses5-dev libssl-dev 
  • download rails 1.8.6:
ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.bz2
  • unpack it
  • install it
./configure
make
sudo make install

Wednesday, April 22, 2009

Linux looking for a file by date

If you are looking for a file by date you can use

touch -d "13 may 2001 17:54:19" date_marker
find . -newer date_marker