LinuxHappy's Weblog

Failures and Successes of Linux-based Development

Archive for February, 2008

Success: Custom Debian etch iso

Posted by linuxhappy on February 13, 2008

I was in a pinch to get a custom Debian iso, and came across a pretty awesome website that allowed me to do exactly what I wanted:

Get a debian 4.0 netinst ISO with emacs and cvs preloaded.. That way, I can load this ISO on a whole BOADLOAD of computers, and not have to worry if each one of those machines has done a “apt-get update && apt-get install emacs cvs”

The how-to can be found here:

The directions are a little bit confusing (to me) because, all of the commands reference “sid”, a previous release of debian. Though running on a Debian 4.0 netinst installation, and following all the directions on that webpage, seemed to yield exactly what I wanted: Debian 4.0 (etch) + emacs + cvs preloaded bootable ISO!

There was one place where I screwed up.. On the instruction:

for p in list of packages you want installed ; do echo $p >> profiles/NAME.packages ; done 

I did the following (WRONG WAY):

for p in "emacs cvs" ; do echo $p >> profiles/NAME.packages ; done 

The script barfs because emacs and cvs the are on the same line in the file NAME.packages.

Using the following should work (CORRECT WAY):

for p in emacs cvs ; do echo $p >> profiles/NAME.packages ; done 

Posted in Linux | Tagged: , , , , | 3 Comments »

gedit ruby on rails editor…

Posted by linuxhappy on February 3, 2008

Yesterday i wrote about emacs syntax highlighting.. but.. honestly.. i think I like using gedit with a couple plugins instead 😀

Posted in Ruby, Rails, or Ruby on Rails | Leave a Comment »

Ruby syntax highlighting in emacs

Posted by linuxhappy on February 2, 2008

Found this awesome link for getting ruby syntax highlighting in emacs and seems to work swell in for Ubuntu 7.10.

sudo cp inf-ruby.el /usr/local/share/emacs/22.1/site-lisp/.
sudo cp ruby-mode.el /usr/local/share/emacs/22.1/site-lisp/.

then… copy and paste this into your ~/.emacs file

;loads ruby mode when a .rb file is opened.
(autoload 'ruby-mode "ruby-mode" "Major mode for editing ruby scripts." t)
(setq auto-mode-alist  (cons '(".rb$" . ruby-mode) auto-mode-alist))
(setq auto-mode-alist  (cons '(".rhtml$" . html-mode) auto-mode-alist))

Now you’re on your way to open your .rb files (assuming font-lock-mode is on) with syntax highlighting!
(Alt-x font-lock-mode)

Posted in Ruby, Rails, or Ruby on Rails | Tagged: , | 5 Comments »