GIT Distributed Version Control
Get with,
sudo aptitude install git-core
Simple Commands,
git init ...init repository
git add . ...add everything in dir to repository
git commit -a -m 'update' ...add + commit changes
git status ...show repository status
git checkout [path] ...checkout remote repository
git add [file] ...add file
git rm [file] ...remove file
git mv [file] ...move file
Mirror Git Repository
rsync -azvCL --delete --progress -e "ssh -i /home/[user]/.ssh/[mykey]" .git/* [user]@[user].strongspace.com:/home/[user]/[project]/.git/
Initial Ubuntu 8.04 Linux Setup
After installing Ubuntu 8.04 I then had to put together and setup my development machine, luckily I copied most of everything I did in case I’d have to do it again; here goes.
Update System
First port of call, check for any new updates post-install,
sudo aptitude update
sudo aptitude upgrade
Dependencies / Software / Setup
Next, install Ruby, FlashPlayer, GCC Compiler, MySQL, JAVA, SqlLite,
sudo aptitude install mysql-server flashplugin-nonfree ruby-full libsqlite3-dev build-essential libmysqlclient15-dev sun-java6-jdk
Volume Mixer,
sudo aptitude install gnome-alsamixer
ImageMagick,
sudo aptitude install imagemagick
Ruby Gem Handler
I could get GEM from the repositories but because with each new update it breaks away from the in-built Linux installer it’s best to install it from source,
wget http://rubyforge.org/frs/download.php/34638/rubygems-1.1.0.tgz
tar xzvf rubygems-1.1.0.tgz
cd rubygems-1.1.0
sudo ruby setup.rb
sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
Had problems updating the GEM system initally, so logged in as root to finish it off,
su root
sudo gem update --system
Now when you type gem –version you should see GEM ready to roll,
Gem Libraries
The slow bit, ran this as root just to make sure it worked,
gem install rails
gem install rake
gem install mongrel
gem install mongrel_cluster
gem install thin
gem install capistrano
gem install mysql
gem install termios
gem install sqlite3-ruby
gem install mini_magick
VLC + GIT
Next VLC to play videos,
sudo aptitude install vlc
Transmission for torrents, most important bit,
sudo aptitude install transmission
And GIT to handle code versioning,
sudo aptitude install git-core
Firefox + MS Fonts
Next I need Firebug for Firefox 3. Ubuntu 8.04 comes with Firefox 3 beta 5, the one available thru Tools / Add-ons won’t work with it; but thankfully it’s in the repositories
sudo aptitude install firebug
And you’ll probably need Microsoft Fonts later down the line,
sudo aptitude install msttcorefonts
Pimp GEDIT
The default Gnome Text Editor Isn’t bad but let’s add some extra’s to really kick it in gear,
sudo aptitude install gedit-plugins
And tweak it,
wget http://robzon.kapati.net/rails/rhtml.lang && sudo mv rhtml.lang /usr/share/gtksourceview-2.0/language-specs/
wget http://robzon.kapati.net/rails/rails.xml && sudo mv rails.xml /usr/share/mime/packages
sudo update-mime-database /usr/share/mime
Follow the guide here to get the TextMate look,
Now when you open rails source files they’ll actually look right, thanks Grigio.
PostGreSql + Thunderbird
Pretty easy to install the most powerful db system, and the better email handler
sudo aptitude install postgresql thunderbird
Wine for Windows
Thanks to Google for their support the Wine project is going great, to get Windows software running natively on your machine,
First add the key,
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
Then add the repository to your default repository list,
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list
And finally install it,
sudo apt-get install wine
Effects
To enable compiz effects make sure Appearance / Visual Effects is set to ‘Extra’, then install the Advanced Effects Manager,
sudo aptitude install compizconfig-settings-manager
This will give you access to the 3d cube, skydome effect and a host of other cool addons.
My desktop dpi is set to 100dpi, fonts set to ‘Bitstream Vera Sans Roman 8pt’, with ‘Bitstream Vera Sans Bold 8pt’ for Windows Title; and ‘Liberation Mono 8pt’ for fixed width font. Using subpixel smoothing for LCD.
Cleanup
To get any temp files carried on from the install, clean with,
sudo aptitude clean
Job done,
Install Skype - Ubuntu 8.04 2
To install Skype on an AMD64 system, you’ll need the 32-bit libraries (if you’re distro is 32-bit, skip this),
sudo apt-get install ia32-libs
Then download the appropriate package from…
Firefox should download it to your desktop so…
cd Desktop
sudo dpkg --install --force-architecture --force-depends skype-debian_2.0.0.68-1_i386.deb
And you’re done, with the Webcam driver installed and enabled you should now be able to make video calls too.
Linux - Better Screen Fonts
If you’ve just switched over to Linux, you’re probably hating the default monospaced font; thankfully I’ve found some better ones…
Liberation
On May 9, 2007, Red Hat announced the public release of these fonts under the trademark LIBERATION at the Red Hat Summit. You are free to use these fonts on any system you would like. You are free to redistribute them under the GPL+exception license found in the download.
Lucidia Grande
AppleGaramond, Aquabase, LITHOGRL, Lucida Grande, Lucida Mac, lucon, MacGrand
Thanks to Nylock for sharing this fonts with us
Installing
Once downloaded, usually to your desktop, you’re going to need to install them into your system to use. They need to be copied to the /usr/share/fonts directory.
First unzip the files, then open Terminal and…
cd /usr/share/fonts/truetype
sudo mkdir liberation
sudo mkdir apple-fonts
Here, you’ve moved into the location where the System’s fonts are stored, then created one directory for the liberation fonts (worth having), and the apple fonts.
Now copy the files to each directory from the desktop to liberation & apple-fonts,
sudo cp /home/[user]/Desktop/liberation-fonts/* /usr/share/fonts/truetype/liberation
sudo cp /home/[user]/Desktop/fonts/* /usr/share/fonts/truetype/apple-fonts
Final bit, refresh the font cache…
sudo fc-cache -vf
Logout, login and your ready to use them.





