how do I start schooltool 1.5 after installing it from ppa?

Asked by Zhang Weiwu

Hello. I followed instruction on http://book.schooltool.org/htmlhelp/install.html

and managed to install python-schooltool-1.5 on Ubuntu Maverick by using the package repository ppa:schooltool-owners/ppa.

and, what next?

The instruction on the book http://book.schooltool.org/htmlhelp/setup-initial.html says:
    You can start and stop the process manually if you’d like:

    $ sudo service schooltool-2009 stop
    $ sudo service schooltool-2009 start

This is what I tried:

yuhailan@yuhailan-laptop:~$ sudo service python-schooltool start
python-schooltool: unrecognized service
yuhailan@yuhailan-laptop:~$ sudo service schooltool start
schooltool: unrecognized service
yuhailan@yuhailan-laptop:~$ sudo service schooltool-2009 start
schooltool-2009: unrecognized service
yuhailan@yuhailan-laptop:~$ sudo service schooltool-2010 start
schooltool-2010: unrecognized service

I have checked to verify no process is listening on 7080, the default tcp port for schooltool:

yuhailan@yuhailan-laptop:~$ netstat -tl
激活Internet连接 (仅服务器)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:ssmtp *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 localhost.localdoma:ipp *:* LISTEN
tcp 0 0 *:3128 *:* LISTEN
tcp 0 0 *:34170 *:* LISTEN
tcp 0 0 *:imaps *:* LISTEN
tcp 0 0 *:pop3s *:* LISTEN
tcp6 0 0 [::]:ssh [::]:* LISTEN
tcp6 0 0 yuhailan-laptop:ipp [::]:* LISTEN

Question information

Language:
English Edit question
Status:
Solved
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Solved by:
Zhang Weiwu
Solved:
Last query:
Last reply:
Revision history for this message
Justas Sadzevičius (justas.sadzevicius) said :
#1

Ouch.

Can you please try the alternative way for now?
$ sudo /etc/init.d/schooltool-2009 stop
$ sudo /etc/init.d/schooltool-2009 start

Thanks for testing!

Revision history for this message
Zhang Weiwu (zhangweiwu) said :
#2

yuhailan@yuhailan-laptop:~$ LANGUAGE=en_US:en ls /etc/init.d/sch*
ls: cannot access /etc/init.d/sch*: No such file or directory
yuhailan@yuhailan-laptop:~$ LANGUAGE=en_US:en aptitude show python-schooltool
Package: python-schooltool
New: yes
State: installed
...

Note that the "apt-get install python-schooltool" installation process did not give any error message.

Revision history for this message
Gediminas Paulauskas (menesis) said :
#3

Package that contains the server scripts is named "schooltool-2009". python-schooltool contains only libraries. As the documentation says, you have to

sudo apt-get install schooltool-2009

The server will be started automatically and will be running on http://localhost:7080.

Revision history for this message
Zhang Weiwu (zhangweiwu) said :
#4

Thank you very much for the input.

I forgot to mention that the computer, the newly installed Ubuntu 10.10 and school tool surve the solo purpose of testing 1.5, with nothing else runing on it. I believe schooltool-2009 is of 1.4, thus defeating the purpose of setting up this testbed:) Is there a way I keep 1.5 and start it?

Thanks!

Revision history for this message
Tom Hoffman (tom-hoffman) said :
#5

It is a little confusing but yes schooltool-2009 is 1.5 on Maverick. We're trying to make this more clear in the descriptions and phasing out the year designations which, at this point, don't mean anything.

Revision history for this message
Zhang Weiwu (zhangweiwu) said :
#6

It is kind of wired to me because not only the 2009 in "schooltool-2009" does not have a clear meaning, but we also have this:

$ LANGUAGE=en_US:en aptitude show schooltool-2009
Package: schooltool-2009
New: yes
State: installed
Automatically installed: no
Version: 1.0.3

Note that version said to be 1.0.3.

More confusing the version is not mentioned in "about" page, i.e.
http://localhost:7080/@@about.html

The version number is, indeed, 1.5, as mentioned on the page footer, but people are accustomed to find version number in "about".

Revision history for this message
Gediminas Paulauskas (menesis) said :
#7

We know, there is a bug asking to remove 2009 from package name: https://bugs.launchpad.net/schooltool/+bug/562358