Automated Shutdown time problem

Joseph Hartman jlhartman at gmail.com
Fri Nov 6 19:16:54 GMT 2009


I've had a similar issue this week on Karmic (GNOME, x86). I followed the
howto for the automatic shutdown on two different servers without success.
The time on the server shows the same as the time on the clients. I did not
try to install the NTP server.

This morning I did a third fresh karmic install from the alternate disc,
installed all updates, created one user for the client, and then tried to
follow the TCShutdown Howto again. Here are my results:

aeinstein at ubuntuclassroomkarmicserver:~$ sudo chroot /opt/ltsp/i386 passwd
> -u root
> [sudo] password for aeinstein:
> passwd: password expiry information changed.
> aeinstein at ubuntuclassroomkarmicserver:~$ sudo chroot /opt/ltsp/i386 passwd
> Enter new UNIX password:
> Retype new UNIX password:
> passwd: password updated successfully
> aeinstein at ubuntuclassroomkarmicserver:~$ sudo ltsp-update-image
> Parallel mksquashfs: Using 1 processor
> Creating 4.0 filesystem on /opt/ltsp/images/i386.img.tmp, block size
> 131072.
> [===========================================================-] 25939/25939
> 100%
> Exportable Squashfs 4.0 filesystem, data block size 131072
>     compressed data, compressed metadata, compressed fragments
>     duplicates are removed
> Filesystem size 189612.62 Kbytes (185.17 Mbytes)
>     41.33% of uncompressed filesystem size (458757.91 Kbytes)
> Inode table size 352949 bytes (344.68 Kbytes)
>     27.67% of uncompressed inode table size (1275440 bytes)
> Directory table size 371621 bytes (362.91 Kbytes)
>     43.00% of uncompressed directory table size (864220 bytes)
> Number of duplicate files found 1350
> Number of inodes 35927
> Number of files 24257
> Number of fragments 1856
> Number of symbolic links  8667
> Number of device nodes 86
> Number of fifo nodes 0
> Number of socket nodes 0
> Number of directories 2917
> Number of ids (unique uids + gids) 19
> Number of uids 2
>     root (0)
>     libuuid (100)
> Number of gids 18
>     root (0)
>     video (44)
>     audio (29)
>     tty (5)
>     messagebus (104)
>     kmem (15)
>     disk (6)
>     shadow (42)
>     fuse (106)
>     crontab (102)
>     mail (8)
>     lpadmin (107)
>     haldaemon (105)
>     utmp (43)
>     staff (50)
>     src (40)
>     libuuid (101)
>     adm (4)
> Info: port 2000 is already defined with /opt/ltsp/images/i386.img in
> inetd.conf
> Info: taking no action.
> aeinstein at ubuntuclassroomkarmicserver:~$ export
> LTSP_HANDLE_DAEMONS="false"
> aeinstein at ubuntuclassroomkarmicserver:~$ sudo chroot /opt/ltsp/i386
> apt-get install cron
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> cron is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> aeinstein at ubuntuclassroomkarmicserver:~$ sudo gedit
> /opt/ltsp/i386/etc/ltsp/crontab.sh
> aeinstein at ubuntuclassroomkarmicserver:~$
>

As you can see cron was already installed in the client chroot. Also, there
was no /ltsp folder under /i386 in the client chroot so that last step
failed. I had to sudo nautilus, create the /i386/ltsp folder, then create
crontab.sh. I did the chmod 775 command and updated the client image before
restarting the client. Still, no shutdown at the designated time.

I also tried to use the task scheduler program on the server alone to
schedule some simple tasks like logging out and opening firefox, but that
failed to work as well. If I manually execute the commands from within the
task scheduler program the commands will work, but when they are scheduled
as a repeating or one-time task they do not execute. Maybe something is
wrong with my cron installation?

Also, shouldn't we be able to do this using User Profile Editor (Sabayon)
and Task Scheduler?

Here's my lts.conf from this morning:

[Default]
LDM_DIRECTX = True
XRANDR_DISABLE = True
X_RAMPERC = 80
X_MODE_0 = 1280x1024
# Start the crontab creation script
RCFILE_02 = /etc/ltsp/crontab.sh

# Example crontab entry for shutting down thin clients at 16:00:
CRONTAB_01 = "40 10 * * 1-5 /sbin/halt"

Thank in advance for any help you can provide. -joe


On Fri, Nov 6, 2009 at 8:13 AM, Jordan Erickson <
jerickson at logicalnetworking.net> wrote:

> Hi Şamil,
>
> Well if you're saying the LTSP client time is off 2 hours from the LTSP
> server, you can say that there's something wrong with the NTP
> configuration.
>
> 1) What version of Edubuntu are you using?
>
> 2) Can you post your lts.conf and ntpdate script (including permissions
> of ntpdate) here?
>
> 3) Did you ltsp-update-image after you made your changes?
>
>
>
> Cheers,
> Jordan/Lns
>
>
>
> S. Şamil Ardıç wrote:
> > Hi,
> > We have tried AutomatedShutdown article at
> > https://help.ubuntu.com/community/UbuntuLTSP/AutomatedTCShutodwn.
> > But the time problem has occured that Mr. Erickson noticed thin
> > clients randomly off.
> > Jordan Erickson wrote an another article at
> > https://help.ubuntu.com/community/UbuntuLTSP/InstallNTPServer
> > Then we done everything at that article and checked twice.(Cus' we
> > tried this along a week).
> >
> > But the date at logon screen is different(bios time+2 hours) and after
> > the logon the date is different(time at ltsp server).
> > (if time difference is useful because of this similarity, We are at GMT
> +2)
> > I read the thread at the list "date" on LTS, how best to set it?. Then
> > tried ip address instead domain name of a ntp server, didn't work.
> >
> > And I didn't understand RCFILE ran successfully and i don't know how
> > to trace it. Is there any way to understand this?
> >
> > Samil Ardic
> >
>
>
> --
> Jordan Erickson
> Owner, Logical Networking Solutions
> http://www.logicalnetworking.net
> 707-636-5678
>
> * Please consider the environment before printing this e-mail *
>
> Latest LNS Blogs - http://blog.logicalnetworking.net
>
>        PulseAudio creator talks about the future of Linux audio
>        10/GUI: A new idea for interacting with your computer (video)
>        Nokia + Open Source Software = Success
>
> --
> edubuntu-users mailing list
> edubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/edubuntu-users/attachments/20091106/8d1f6875/attachment.htm 


More information about the edubuntu-users mailing list