Tag Archives

7 Articles
Creating Your Own Booth in GNU/Linux Ubuntu Lucid (nodm)

Creating Your Own Booth in GNU/Linux Ubuntu Lucid (nodm)

It’s been a while since I blogged since its a busy day nowadays. Anyway, here it goes.With the usage of

upstart

, many SYS V style ways becoming obsolete. One of the prominent thing is the lost of

/etc/inittab.

Usually, when we created a standalone booth, we would embedded our setup using that; we put our script into it. If we are using X, one of the alternative is to use GDM. For the low cost solution often this solution is cumbersome. After some digging, I’ve found another neat solution: using nodm.

To install nodm:

$ sudo apt-get install nodm

To enable nodm:

$ sudo $EDITOR /etc/default/nodm

[Note: Change $EDITOR to whatever your text editor]

Change

NODM_ENABLED

value into true:

NODM_ENABLED=true

Usually, standalone booth run as root user because of the nature of its purpose: single user experience. However, you can make a user and set the user to be able to access the X.  We can set a non-root user by editing

NODM_USER

value  into:

NODM_USER=$USER

[NOTE: Change $[crayon inline=”true” ]USER[/crayon] with whatever user you have setup before]

By default nodm uses XSession, so here some tips regarding XSession:

  1. To run scripts/applications that need to be executed with root privilege, put the script into
    /etc/X11/Xsession.d
    directory.
  2. To run scripts/applications that runs with normal user, put the script into
    ~$USER/.xsession

[NOTE: ~$USER means the home directory of the chosen user.]

Please bear in mind, both are incompatible. If you put .xsession, XSession will use it instead scripts in Xsession.d directory. With some scripts, we can achieve both; the script left as an excercise to the reader. 😛 (Or may be later, remind me to do so)

Bye for now.

DVD Just Fine

DVD Just Fine

I can watch my original DVD “U2” “go Home” using libdvdread4. The package have a script that would instal libdvdcss2 into the system. To have it:

$ sudo apt-get install libdvdread4
$ sudo /usr/share/doc/libdvdread4/install-css.sh

And it would download all of the non-free debs. I hate it when I am using non-free blobs, but what I hate the most is I can’t play my own ORIGINAL DVD. Gah! Hail to the greed of liberalism!

Anyway, it seems that the DVD aged, so I guess now I need to create a backup copy. K3B rocks! It reads scramble DVD just fine. 😀

Another story with my Lucid, I just find out that Twitter revamped their site. I know this is outdated info, but since I am busy I haven’t realized it. I’m using Choqok to see all the post.

It seems that Choqok doesn’t have any capability for seeing friend request. I must go to the site to do the job. Anyway, google-chrome failed at accepting friends. It always failed when I pressed the “Accept” button. Fortunately, my Konqueror can do the job. Yay! All hail to the almighty ancient browser. 😀

Oh, btw, I’m using Kubuntu.

Lucid From Debootstrap

Lucid From Debootstrap

What scenarios does this would likely involved you in? Well, for instance:

  • Creating an Ubuntu system on your USB stick because your lack of faith to trust all of your system to GNU/Linux.
  • Creating new system from your Ubuntu stick because you have become the enlightened.
  • Creating a customized *buntu flavour because you have become one.
  • Killing time because you have insomnia. 😀

Most likely I’m in reason #4. This scenario is tested on GNU/Linux Debian and Ubuntu. I played with Unstable/Experimental and Lucid.

#0 Backup your data on USB stick.

Don’t tell me that I didn’t warn you! 😀

#1 Set the partition

Stick your USB and seek what is the node file it representated.

$ dmesg | tail

Now, it would come up something like

 /dev/sdb1

or

/dev/sdc1

depending how funky your system is.

#2 Format the USB stick

$ sudo mkfs.reiserfs /dev/sdb1 -l "KEREN DEH"

I’m used to label the filesystem. This label is important that you may prevent from accidentally formatting that particular partition. (Been there, done that) Oh, before the holy war begin, let me warn you that my flavour on ReiserFS is subjective, stick with whatever your fave filesystem. Here the change: EXT3: mkfs.ext3, XFS: mkfs.xfs, JFS: mkfs.jfs

#3 Mount the filesystem

$ sudo mount /dev/sdb1 /mnt

#4 Debootstraping begins

$ sudo debootstrap lucid /mnt http://kambing.ui.ac.id/ubuntu/

The “

--arch amd64

” before “lucid” parameter is optional. It would come in handy if you are trying to make 64bit Ubuntu from 32bit system, vice versa. See the manpage for more information.

#5 Setup before chrooted to there

Mount all the important directory.

$ sudo mount /proc /mnt/proc -t proc

$ sudo mount /dev /mnt/dev -o bind

Optionally copy these files:

$ sudo cp /etc/hosts /mnt/etc

$ sudo cp /etc/resolv.conf

resolv.conf

is deprecated on desktop because of the

modem-manager

being. But, it won’t hurt you if you still use it.

$ sudo cp /etc/fstab /mnt/etc

Don’t forget to edit the /mnt/etc/fstab and delete the root directory entry (find “/” and delete it) because we are using USB stick.

#6 Chrooted there

$ sudo chroot /mnt

#7 Add a user

This is important! Don’t let your system userless…

# adduser user

Make him/her an admin.

# addgroup user sudo

By default Lucid is making everybody in the sudo group to be an admin. If you are using another, you could add yourself a group:

# addgroup penguasa

echo “%penguasa ALL=(ALL):ALL” >> /etc/sudoers

(Or just type

visudo

to edit the file properly)

#8 Install kernel

There are few flavours of the kernel. Desktop user usually stick with generic.

# apt-get install linux-image-generic

This virtual package will install

linux-image-generic-2.6.32-13

in time this writing. If you want, you could search for another linux kernel with

# apt-cache search linux image

#9 Install grub

# apt-get install grub2

Usually, it would let you choose where it would like to install. Install it into USB stick’s Master Boot Record/MBR (/dev/sdb). If later you would like to install it, the sane way to install is:

# dpkg-reconfigure grub-pc

Or, if you’re the rock star:

# grub-install /dev/sdb

To have GRUB reconfigured, i.e. generates the GRUB menu, do:

# update-grub

#10 Install your flavour

# apt-get install kubuntu-desktop

#11 Get some sleep!

It’s already morning and you have a life? No? Well, you could go on and try your new system by restart to the system.

~hiddenCurcolCrouchingDeadline

Journey Log 3: A Glitched Upgrade

Journey Log 3: A Glitched Upgrade

This morning I upgraded my workstation which runs Lucid. I have found that there are 2 failed upgrades. The solution to those packages are trivial.

INITRAMFS fails

The first problem  encountered is

initramfs-tools

that failed to found “

./lib/udev/firmware.sh

“.  After a quick check on “

/lib/udev

” directory, I found out that the given file was named “

firmware

“. Thus, solution should be an alias:

$ sudo ln -s /lib/udev/firmware /lib/udev/firmware.sh

After  that, I ran the Debian’s configuration:

$ sudo dpkg --configure -a

It then hits the second configuration

Virtuoso Server fails

If you are using Kubuntu, which using Virtuoso for her semantic things, most likely you would encounter this error. The Virtuoso was 5.x version, but the one that would be installed is 6.x version. So, there are some new packages that need to be installed. Fortunately, it is easy enough to do so:

$ sudo apt-get install virtuoso-opensource-6.0-common
$ sudo apt-get install virtuoso-opensource-6.0

In Debian, *

-common

is a virtual package to install the given software. But, here I must install the

virtuoso-opensource-6.0

virtual package manually. Well, after that two installs, the upgrade went smooth.

UPDATE

fix from :

Ubuntu/Lucid: recovering from yesterday’s messy update

Yesterday a silly oversight in the packaging of udev in Ubuntu/Lucid produced a breakage that consistently makes dpkg barf. Here’s a simple command line recipe to recover from it. In your terminal application, type: sudo sed -i ‘s#copy_exec /lib/udev/firmware.sh#copy_exec /lib/udev/firmware#’ /usr/share/initramfs-tools/hooks/udev && sudo dpkg -a –configure && sudo aptitude update && sudo aptitude safe-upgrade …then press enter.

$ wget http://launchpadlibrarian.net/39011493/udev-firmware.patch && sudo patch -p0 < udev-firmware.patch && sudo dpkg -a --configure && sudo aptitude update && sudo aptitude safe-upgrade
Journey Log 2: What’s New On Lucid

Journey Log 2: What’s New On Lucid

Today’s update on Lucid, Firefox is on the 3.6 version and still using firefox-3.5-branding. However, Ars reported that Canonical made a deal with Yahoo! to include their search engine as the default, not Google. So, I will expect the next update would change the default search engine into Yahoo! search engine (Bing).

The neat feature of KDE 4.4 that it is integrated with OpenDesktop.org. OpenDesktop is an emerging open standard that promote social site compability degree. The simple explanation is a Facebook-like open API that can be implemented by many websites so that they compatible each other.

Anyway,

With the desktop tight up with OpenDesktop, I can download any KDE content and vote for it. What a neat feature! I’m using pwgen to generate password so it’s kinda hard to remember all of my passwords (one password per site!). That’s why I don’t log that much into many sites, including KDE-Look. Thanks to the implementation, Kubuntu Lucid (KDE) now become more and more integrated with web.

I’m using Netbook-plasma from KDE 4.4. It has a neat feature, making the maximized applications without border. But, sometimes I wish that the dialog box not into windows mode and not maximized also. I wish it could be docked into the plasma’s dock. Hmm… just like Mac? Dunno.

I’m sorry with no screenshot, I have a great deal of work right now. If you want, I can provide one, though. Just feel free to comment.

Plymouth on Lucid

Plymouth on Lucid

WARNING: Lucid is still on alpha version, don’t whine on me if it burns your house and destroy your future.

I’m installing from debootstrap, if you want to tell me that it’s already installed on Lucid installer. Furthermore, this may be a helpful hint for you on other version or other distro that may want to enable plymouth, may be.  This tutorial has been  excercised on my laptop (Lenovo Y41, Intel GM965) and my workstation (ATi x550). I don’t own any nVidia card, so I don’t know if it works on that too.

#1 Install plymouth

$ sudo apt-get install plymouth

#2 Insert kernel modules on your initramfs-tools

$ sudo $EDITOR /etc/initramfs-tools/modules

Change the

$EDITOR

to your favourite editor (vi, emacs, pico, gedit, kwrite, etc.). Put the following three lines to your modules file:

intel_agp
drm
i915 modeset=1

If you use Radeon card, change the intel part into radeon (intel_agp –> ati_agp, i915 –> radeon). To be sure about the agp line, just grep and see what the active module is:

$ lsmod | grep agp

Until this line, you could regenerate your initrd image. But, we can do that later.

#3 Setup Your Theme

Default Ubuntu Lucid’s plymouth is “ubuntu-logo”. I urge you to reselect the theme for the first time or you could select other theme. To view other theme:

$ /usr/sbin/plymouth-set-default-theme --list

The theme are details, fade-in, glow, script, solar, spinfinity, text, and ubuntu-logo. Let’s try glow:

$ /usr/sbin/plymouth-set-default-theme glow --rebuild-initrd

This will change the theme and also enabling it on the initrd.

#4 Update your GRUB 2 configuration

I mentioned GRUB 2, but if you still have GRUB 1 or maybe LILO, you could do the same. To change the GRUB2:

$ sudo $EDITOR /etc/default/grub

Append the line containing

GRUB_CMDLINE_LINUX

with a string

"gfxpayload=true splash quiet rhgb"

. E.g.:

GRUB_CMDLINE_LINUX="gfxpayload=true splash quiet rhgb"

Last step, update GRUB2:

$ sudo update-grub

#5 Restart and enjoy.

There are few technical things that I want to discuss, including the parameters involve. But, let me know if you need one.