Friday, February 29, 2008

Micro-Recipe: Setting up a static IP on your Ubuntu Linux

Assuming your static IP is 192.168.0.100, your machine's name is computer, and you're on the mydomain.com domain.

  • nano /etc/network/interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.100
gateway 192.168.0.1
netmask 255.255.255.0
  • nano /etc/hostname
computer
  • nano /etc/resolv.conf
mydomain.com

Thursday, February 28, 2008

Google Sites aka Google Wikis are Finally Out !

Google did acquired Jotspot long time ago for their wiki platform. Well, it took 16 months to relaunch it but it's finally out ! So go to sites.google.com to try them and in the case you have already a google apps account and you use the pages app, strangely enough, you have first to disable it, before being able to add the new sites app aka wikis !!

UPDATE: These wikis are here to integrate other google apps like documents and spreadsheets, but one thing that really sucks is that you cannot integrate a private spreadsheet. The spreadsheet has to be published on the whole internet ... I mean if I'm doing a private wiki, I want to share private spreadsheets !

Wednesday, February 20, 2008

Linux on a Dell XPS 1530 Laptop (Ubuntu 7.10)

This report is alive, when something new is working on the laptop, I'll post it here. See other reports there also: TuxMobil - Linux on Laptops, Notebooks, PDAs and Mobile Phones

It's the first time I decide to only put a linux distro on a new computer. I mean, no compromise this time, no Windows / Linux dual-boot as usual. Let's try to do everything inside the ubuntu 7.10 (Gutsy Gibbon) distribution ! And maybe, later, install a virtualized XP to use photoshop or powerpoint (see the end of the post for an update).

Partitioning. I have never know if it's better to put the swap partition at the beginning or the end of the drive. But anyway, I have created a 4GB swap partition at the beginning of the drive. Followed by a 20 GB / (root) partition. Finally the remaining of the 250 GB hard drive has been allocated to the /home partition. This configuration is very useful when you want to redo a clean install of your linux. Indeed, you'll only need to format the root partition and you don't have to backup your /home directory.

Wifi. Nowadays, it's seems not a problem anymore, it's working out of the box.

Screen. As expected, the brightness controls are working pretty fine. But strangely, every 5 to 10 minutes, the sceen is going back at full contrast. You can tweak the brightness controls in the "System/Preferences/Power Management" menu bar under GNOME to stop it.

GPU, Sound, Touchpad. Working out of the box. Just a side note to get the sound working with the flash plugin in firefox, install the .deb located at this page.

Mic. Not working, neither skype ...

VGA output. By default, it's half working. When you press the "CRT/LCD" button, the screen is only showing on the second screen.

WebCam. Not Working, but is recognized as "OmniVision Technologies, Inc.". Well, now it's working with the cheese program (sudo apt-get install cheese).

Suspend. It suspends but never get back to life.

Hybernate. Working out of the box, even wireless works back !

Finger reader. Not working.

Bluetooth. Seems to work, but no in-depth testing though.

S-Video output, HDMI output. Not tested yet, stay tuned !

To conclude, don't forget to install automatix2 for a no-brainer setup of video codecs, skype, and so on. If you're into OpenGL programming, you have to do a "apt-get install libglu1-mesa-dev"
to install the proper headers and dependencies.

And if you miss a good'ol WinXP, you can easily virtualize it by installing VirtualBox. There is a good tutorial here. This is only 15 minutes to install XP from an iso image. For a confortable use of WinXP inside Ubuntu, you should load the VBoxGuestAdditions.iso cd-rom image on WinXP to gain seamless windows and mouse pointer (more on this in this post). Then, when you run applications it is surprisingly very fast, indeed, the reiserFS file system beneath should help where NTFS on native XP installation is slow as hell.


Friday, February 15, 2008

Video of the week: Shaolin Soccer in Mexico !

Thursday, February 14, 2008

Micro-Recipe: Generate keys for passwordless SSH & SCP

Micro-recipe to avoid entering your password each time you do an ssh or an scp from a local machine to a remote one.

Local machine (enter passphrase each time) ->

  • ssh-keygen -t rsa1
  • ssh-keygen -t dsa
  • ssh-keygen -t rsa (if you do only one, do this one)
Remote machine ->
  • Append the content of each of the local ~/.ssh/identity.pub, ~/.ssh/id_dsa.pub, ~/.ssh/id_rsa.pub files to the remote ~/.ssh/authorized_keys one each time on a separate line.
Local machine ->
  • Execute this script every time you restart your linux box to start the ssh agent.
ssh_info_file=~/.ssh-agent-info-`hostname`
ssh-agent >$ssh_info_file
chmod 600 $ssh_info_file
. $ssh_info_file
for i in identity id_dsa id_rsa
do
ssh-add ~/.ssh/$i
done


Attach each shell to the ssh agent.
  • . ~/.ssh-agent-info-`hostname`
Complete recipe: http://www.cvrti.utah.edu/~dustman/no-more-pw-ssh/