McGivrer’s Home - Frenchy soul about life
Filed under

installation

 

My first Hobo application: My Library

Hello, just as I have published the previous article about Hobo, discovering the full featured rails over layer framework, I can't wait to publish my first test: creating a very simple Web Application to manage a library.

The first step is just to provide an interface to list all my books
So please, follow the guide !
Installation of the framework
Just run the following command in your prefered terminal (gnome-terminal for example in Ubuntu):
 sudo gem install rails
 sudo gem install hobo
 sudo gem install sqlite3-ruby -v=1.2.3
 sudo apt-get install sqlite3
First App
Now we are going to create our first Hobo application
 hobo MyLibrary
focus in the just create app directory
 cd MyLibrary
And now create our first datamodel :  a book modelisation
 script/generate hobo_model_resource book title:string author:string year:integer resume:text note:integer
now, we are going to create this model persistence into the default sqlite3  database
 script/generate hobo_migration 
(choose the 'm' option)
Ok, done.  now run the rails server (WebBrick):
 script/server
Look at the title of the application :"My Library" !  Just because we call our project "MyLibrary" (without any space), Hobo kindly titled our welcome page with a beautiful "My Library" in a plain old good english. 
Identify yourself by creating the first user account which will act as administrator for this new application.
And now start playing with your books collection !
1. your first connection to "My Library"
2. The welcome page (also modifiable 
3. Let see our books collection
4. Go and create our first book in our collection
5. Fill all the fields, and "Create Book"
6. and it's done, the first book is ready to be parsed
Yes I am impressed to discover how the Hobo dev team has been very careful with all details.
The new Hobo player.

Filed under  //   firstapp   framework   hobo   installation   rails  

Comments [0]

Ubuntu 8.10 on EeePC 900 : easy mode !

Note:
First thing to get it working is to be sure you will be able to connect your netbook to ethernet in wire mode.

----

Installation of Ubuntu 8.10 Live on a USB key.

The best way to do rule this part is to use the famous UnetBootIn. this tool will allow you to install easily your prefered Linux Distro, here we will choose Ubuntu 8.10 live, on a USB key. Please choose a 1Gb sized k

The best way to do rule this part is to use the famous UnetBootIn. this tool will allow you to install easily your prefered Linux Distro, here we will choose Ubuntu 8.10 live, on a USB key. Please choose a 1Gb sized key to be quiet.

So just download unetbootin (twin versions exists : a windows and a linux version), and run it. If you are on Linux, you will be asked to install another debian package containing 7z. You will find a page on the official french Ubuntu site, on in the Ubuntu-eee site explaining how to use it.

EeePC 900: get it work !

Now the easiest part of this how-to: install Ubuntu 8.10 on your EeePC. Just click on the Install icon the Desk after booting on just prepared before USB Key. To boot on it, push the ESC key and choose the USB Device, while your Eee PC is just switch on and you get the grey screen with the EeePC logo.

After installing this, connect your Ethernet wire and update your just installed Ubuntu. now you are ready to customize your netbook OS accordingly to the EeePC capacities (Wifi, CPU frequency tools, Energy saving, etc...)

Wifi

We will have 2 steps to do:

  1. - remove existing ATH modules
  2. - install backported from Hardy Heron the ath5k module.

Remove the existing modules:

sudo modprobe -r ath_pci
sudo modprobe -r ath_hal

Add to the balck list these 2 modules:

edit the file /etc/modprobe.d/blacklist and add the 2 following lines at the end:

blacklist ath_pci
blacklist ath_hal

Connect to the internet through ethernet (get wired !) and backport modules from Hardy Heron:

sudo apt-get install linux-backports-modules-intrepid-generic

Now, just reboot, and you will get the wifi running, and will be able to configure your wireless connection via NetworkManager.

CPU frequency managing

To activate the cpu frequency selector, you will have to install the following:

sudo apt-get install gnome-cpufreq-selector

And now edit /etc/modules and add this line at the end:

load p4-clockmod

Energy Saving

To enable the cpu frequency adaptor following energy mode, you will have to modify registry with gconf-editor.

dpkg --reconfigure gnome-applets

powertop will could easily help you reducing energy consumption by analyzing actual energy wasts and give you useful tips on how to save.

sudo apt-get install powertop

For more information on the Gnome Power management, see this page.

And that's all folk !

to be continued ....

Filed under  //   8.10   eeepc   installation   intrepid ibex   linux   ubuntu  

Comments [0]

Ubuntu 8.04 on the EeePC 900

A you now, I've recently bought an ASUS EeePC 900 with a 16Gb SSD, with the Xandros Linux modified version. But as I'm a Geek, I've installed an Ubuntu version designed for this micro laptop (netbook in good engish): ubuntu-eee.

But, crowling on the net, I've found a blog post very interesting, explaining how to install a standard version of Ubuntu on is:, thanks to the; www.tommcfarlin.com blog.

All the needed steps, before installation, installation, and post installation are discribed in details. It's in these details I've found the tips to aoid the anoying bug on the sound card after suspend. Thanks Tom !

So, good luck and good play !

Filed under  //   eeepc   installation   linux   ubuntu  

Comments [0]