Wednesday, November 28, 2007

LTSP NepaLinux in Dailekh

The trip to Dailekh remains as one of the unforgettable moment in my Life. Me and Amit are only two technical person for the project from MPP. We have been guided my Min Sir, who was local to the Dailekh from Rato Bangala school. .


One of the block of Basanta School, where students are playing football.


Amit, probably helps me a lot, in case of logistic management and guide me a lot about the local rivers , place and city.

The students who haven't even seen TV got an opportunity to touch the computer.





This was quite exhilirating moment for them so far I felt.

Wednesday, November 21, 2007

Sound and USB support in NepaLinux

Debian and NepaLinux now have sound and USB support for LTSP client. For sound support in debian system install the LTSP system by following the instruction in http://wiki.debian.org/LTSP/Howto

1. Add the key(s) for the repository to your keyring(after verifying that you trust them):

2. Add to /etc/apt/sources.list:

3. Update:

  • apt-get update

4. Install new packages:

  • apt-get install ltsp-server-standalone ltspfs

5. When building a chroot, you'll need to tell it to use the backport sources:

ltsp-build-client \ --extra-mirror "http://pkg-ltsp.alioth.debian.org/debian etch-ltsp-backports main" \ --apt-key /etc/apt/trusted.gpg

if X doesn't automatically configure properly (it uses X.org's built-in configuration, which doesn't work as well on the version on X.org in etch), you may want to switch back to the slower but more reliable X configuration using xdebconfigurator:

1. chroot /opt/ltsp/i386 apt-get install xdebconfigurator

2. cp /opt/ltsp/i386/usr/share/doc/ltsp-client-core/examples/configure-x-xdebconfigurator.gz /opt/ltsp/i386/etc/

3. gunzip /opt/ltsp/i386/etc/configure-x-xdebconfigurator.gz

4. chmod +x /opt/ltsp/i386/etc/configure-x-xdebconfigurator

5. echo CONFIGURE_X_COMMAND=/etc/configure-x-xdebconfigurator >> /opt/ltsp/i386/etc/lts.conf

6. echo 'copy_dirs="$copy_dirs /var/cache/debconf"' >> /opt/ltsp/i386/etc/default/ltsp-client-setup

7. echo 'temp_copy_dirs=" "' >> /opt/ltsp/i386/etc/default/ltsp-client-setup


8.configure the server as stated in the file, /usr/share/doc/ltsp-server/README.Debian.sound
a.apt-get install libasound2-plugins

b. add the following lines to /etc/asound.conf:

pcm.!default {
type pulse
}

ctl.!default {
type pulse
}

and then configure sound applications to talk to alsa. in my experience, KDE
and GNOME applications worked automatically, if the whole environments were
installed. some applications, notably alsaplayer, didn't work using the
alsa/pulse plugins.

for those applications, you may have luck using the padsp wrapper.

padsp alsaplayer some_music_file.ogg

if you changed the defaults, and only installed ltsp-client-core in the chroot
environment, you may need to install the additional dependencies in the chroot:

chroot /opt/ltsp/i386 apt-get install pulseaudio-esound-compat alsa-utils libasound2-plugins



In summary this does the alsa to use pulse for audio system. Sound gets work in client for all esd, alsa, pulseaudio except OSS.





For USB support,
1.simply install these two fuse packages if they are not installed.
fuse-utils and libfuse2

2.load the fuse module (modprobe fuse, for permanently loading the module add fuse to /etc/modules file.

3.assign the ltsp users to the fuse group.

4. Edit the /opt/ltsp/i386/etc/lts.conf and make sure LOCALDEV=True