New Intel Graphics driver for Ubuntu - 2.7.0
Friday, 08 May 2009
Fixed a few of my prob's with the GMA965 chipset, works well on Ubuntu 9.04, dvd playback's no longer choppy (thank god!); the thing roars ahead now, cheer's Intel.
To install, open your sources.list file
sudo nano /etc/apt/sources.list
Then copy & paste these in and save & close
deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main
deb-src http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main
Then run
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com AF1CDFA9
sudo apt-get update && sudo apt-get install xserver-xorg-video-intel
Log-out and back in and the new drivers should be running.
Check your chipset with:
lspci -nn|grep VGA
More here
.bashrc aliases + split-screen terminal
Thursday, 07 May 2009
# console coloring
export PS1='\[\033[0;35m\]\h\[\033[0;33m\] \w\[\033[00m\]: '
# edit bashrc
alias bn="nano ~/.bashrc"
alias bs="gedit ~/.bashrc"
# free memory
alias free="free -m"
# system helpers
alias update="sudo aptitude update"
alias install="sudo aptitude install"
alias upgrade="sudo aptitude update && sudo aptitude safe-upgrade"
alias remove="sudo aptitude remove"
alias clean="sudo aptitude clean"
alias search="sudo aptitude search"
# reload bash aliases
alias reload="source ~/.bashrc"
# download and view railsbrain locally
alias brain-update="git
clone git://github.com/guillaumegentil/railsbrain-updated.git
~/railsbrain"
alias brain-view="opera ~/railsbrain/index.html"
# git helpers
alias gu="git pull"
alias gp="git push"
alias ga="git add ."
alias gc="git commit -m \$1"
alias gs="git status"
alias gi="nano .gitignore"
# view git diffs
alias gv="gitk"
alias installgitk="sudo aptitude install gitk"
# git config (globally)
alias ggmyname="git config --global user.name \$1"
alias ggmyemail="git config --global user.email \$1"
# git config (locally)
alias gmyname="git config user.name \$1"
alias gmyemail="git config user.email \$1"
# test cucumber features
alias ct="cucumber features -n"
# start ruby
alias rs="ruby script/server"
alias rc="ruby script/console"
# disk space and cls/clear
alias left="df -h"
alias cls="clear"
# flush dns cache
alias flushdns="sudo /etc/init.d/nscd restart"
alias installdnscache="sudo aptitude install nscd"
# thin
alias ts="thin restart -C thin.yml"
alias tc="thin restart -C \$1"
alias tp="ps aux | grep thin"
# logs
alias ld="tail -f log/development.log"
alias lp="tail -f log/production.log"
alias lc="rm log/*.log"
# apache
alias ame="sudo a2enmod \$1"
alias amd="sudo a2dismod \$1"
alias ase="sudo a2ensite \$1"
alias asd="sudo a2dissite \$1"
alias arc="sudo /etc/init.d/apache2 reload"
alias arg="sudo apache2ctl graceful"
alias ars="sudo /etc/init.d/apache2 restart"
# capistrano
alias capsetup="cap deploy:setup"
alias capcheck="cap deploy:check"
alias capcold="cap deploy:cold"
alias capstop="cap deploy:stop"
alias capstart="cap deploy:start"
# testing
alias test="rake test"
# rake
alias migrate="rake db:migrate"
# gems
alias addgem="sudo gem install \$1"
alias updategems="sudo gem update"
alias updategem="sudo gem update --system"
alias cleangems="sudo gem clean"
alias deletegem="sudo gem uninstall \$1"
alias listgems="sudo gem list"
# processes
alias pav="ps aux | grep \$1"
Split-screen Terminal
Available thru terminator
sudo apt-get install terminator
/tmpfs for /tmp
Tuesday, 21 April 2009
To use memory (ramdisk) for /tmp storage, edit
sudo nano /etc/default/tmpfs
Set your default limit in bytes (here 548MB)
shm=573741824
Then add to the startup routine
sudo nano /etc/fstab
...add this line to the end of the file, save & reboot
tmpfs /tmp tmpfs defaults,noexec,nosuid 0 0
On reboot, when you run df -h to see your disk allocations you'll see /tmp mounted into a ramdisk tmpfs partition. More here
Or more comprehensively
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
Persistent Ubuntu 8.10 on Memory Stick
Thursday, 16 April 2009
There's a limit to the size of memory stick you can use if you're going to boot & run Linux using a FAT16 partition of 2048mb (2gb). But using this tutorial you can get around it.
Mind you looking at things Fedora 10 on a Live USB disk looks very do-able, especially with the Live USB Creator, may try that out first.
Will try this out when my 32GB stick arrives and post back with the results.
sqlite3 on ubuntu
Sunday, 08 March 2009
unlike osx this isn't pre-installed
sudo aptitude install sqlite3 libsqlite3-dev
And the gem for ruby
sudo gem install sqlite3-ruby
Ubuntu 9.04 + Ruby + Gmate + DVD etc.
Sunday, 22 February 2009
Quick run-down of some things I had to do to make Ubuntu 9.04 a better dev environ; stable so far, fingers crossed ;-)
Ruby compiled from Source
Fixed my prob here with help from the FiveRuns crew.
MySQL gem on Ubuntu
Setting up the mysql gem on ruby required some tweaking
sudo aptitude install libmysqlclient15-dev
sudo gem install mysql
Gmate
Plus lexruby's got an awesome repository on github that pretty much turns GEDIT into TextMate here.
Simple to install, basically bolts on 20+ colour themes (vibrant ink, darkmate, etc.) and a load of snippets; a lot of work must have went into this one.
Flash Player 64-bit
Grab here and then extract & install via...
mkdir ~/.mozilla/plugins
mv libflashplayer.so ~/.mozilla/plugins
Java
Simple to install
sudo apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin
.bashrc
And some neat directives in your .bashrc file
nano ~/.bashrc
Add these to the bottom & save
export PS1='\[\033[0;35m\]\h\[\033[0;33m\] \w\[\033[00m\]: '
alias free="free -m"
alias update="sudo aptitude update"
alias install="sudo aptitude install"
alias upgrade="sudo aptitude safe-upgrade"
alias remove="sudo aptitude remove"
alias clean="sudo aptitude clean"
Then refresh your console,
source ~/.bashrc
DVD, QuickTime, WMV and RealPlayer
Obviously no computer is happy without DVD playback and support for QuickTime, WMV and RealPlayer files, which can be fixed with help from the MediBuntu community.
sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list --output-document=/etc/apt/sources.list.d/medibuntu.list
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
sudo apt-get install libdvdcss2 w64codecs
Dust Theme
This is one of the best IMO, very professional here
You'll need the clearlooks addon,
sudo aptitude install gtk2-engines-clearlooks
Looking at the new things with Ubuntu Jaunty 9.04, better boot screen, nicer installer, ext4 and easy encypted /home dirs I think this new release I certainly gonna be something.
I think the only one I'd like now is a more friendly FTP tool, gFTP just isn't Transmit.









