Updated fatclient script to work with Jaunty

I recently found myself banging my head against a wall because my fatclient script had stopped working for Jaunty, even though I was assured that the plugins code had not been modified. After some help in the #ltsp channel, I added set +x to the top of my script and set -x to the bottom, and this way saw specifically where the script was dying, which turned out to be due to another recent script that was smashing my own variables. This kind of thing happens because I've not uploaded the script upstream. Anyway, I tested the script and built a jaunty gnome evnironment which worked without problems. It was nice to see the quite significant speed increase one can get by using the script on modern netbooks with atom processors. As always, copy the script here and save to /usr/share/ltsp/plugins/ltsp-build-client/Ubuntu/030-fatclient

Rate It! (Average 0, 0 votes)



2 Responses to Updated fatclient script to work with Jaunty

  1. August 14th, 2009 | Jonathan Chan

    Hey,

    Thanks for updating the script... Just wanted to let you know that you still have some TMP variables that you didn't change yet and there's unary operator error.... Here's my updates:

    Unary Operator Error if HIGHFAT isn't set ($HIGHFAT needs quotes):
    if [ "$HIGHFAT" == True ] ; then

    $TMP Variable update:
    read ADMIN_NAME
    grep $ADMIN_NAME /etc/group >> $ROOT/etc/group

    ...

    ### make cronjob to extract users to admin user folder in shared nfs directory
    cat <<EOF> /etc/cron.hourly/copyusers
    #!/bin/sh
    set -e
    awk -v LIMIT=$UGIDLIMIT -F: '(\$3>=LIMIT)
    awk -v LIMIT=$UGIDLIMIT -F: '(\$3>=LIMIT)
    grep $ADMIN_NAME /etc/group >> /home/$ADMIN_NAME/.group | sort -u /home/$ADMIN_NAME/.group -o /home/$ADMIN_NAME/.group
    awk -v LIMIT=$UGIDLIMIT -F: '(\$3>=LIMIT) ∫
    EOF
    chmod a+x /etc/cron.hourly/copyusers
    ### make cronjob to copy users from nfs admin shared folder and integrate into /etc
    cat <<EOF> /opt/ltsp/$CHROOT/etc/cron.hourly/copyusers
    #!/bin/sh
    set -e
    cat /home/$ADMIN_NAME/.passwd >> /etc/passwd
    cat /etc/passwd |sort -u /etc/passwd -o /etc/passwd
    cat /home/$ADMIN_NAME/.group >> /etc/group
    cat /etc/group |sort -u /etc/group -o /etc/group
    cat /home/$ADMIN_NAME/.shadow >> /etc/shadow
    cat /etc/shadow |sort -u /etc/shadow -o /etc/shadow
    EOF

  2. September 25th, 2009 | Live

    Hi, first of all, I want to THANK YOU for an Excellent Guide on LTSP servers/clients, and making the scripts, you're #1!

    I'm using Ubuntu Jaunty 9.04 Desktop as my LTSP server.

    When logging as THIN clients, there's no problem, I can do it thanks to your wonderful guide.

    However, I wanted to try the FAT client. I followed your guide STEP by STEP: http://www.nubae.com/ltsp-linux-terminal-server-project-netbooted-fat-client-for-ubuntu-hardy-and-intrepid.

    I also used your UPDATED Jaunty script, but I STILL can't get it to work.

    When I login my FAT client, it says, "Your home directory is listed as: '/home/user1' but it does not appear to exist...".

    I've searched a lot in Google about this, but since I'm a newbie, couldn't understand what they're suggesting.

    Can you teach me a STEP by STEP process on how to do ELIMINATE the HOME Directory Problem?

    I have a basic idea about ETH1 being used instead of ETH0, my NFS shares NOT being mounted to clients, or I need to MODIFY your script.

    However, I don't have a clue on these since they're QUITE Advanced for ME, is there a SIMPLE way to enable fat clients to use their HOME folders?

    Do I just need to modify a /etc/ configuration? Enter my SERVER IP somewhere or replace ETH1 by ETH0? I'm sorry for being a newbie, that's why I really wanted your help.

    Also, I already followed these:

    sudo apt-get install portmap nfs-kernel-server nfs-common

    echo "/home 192.168.2.10/24(rw,no_root_squash,async)" | sudo tee -a /etc/exports /dev/null

    (192.168.2.10/24 - my LTSP server)

    sudo exportfs -a

    But still getting the error message.

    Hoping for your kind answer. Thanks again for making it easy for us "newbies" to install LTSP. Your blogs rock!

Leave a Reply

(will not be published)