Hi Rik,

Turnkey looks interesting...

You can get a working Web2py / Turnkey system up and running fairly
quickly using the "vanilla" Turnkey installation and then running a
slightly modified version of the "setup-we2py-ubuntu.sh script on the
same system. This will allow you to break down the task into pieces
and you can slowly "convert" the bash script to Python rather than
taking on the entire task in one fell swoop in addition to getting a
"working system" along the way.

setup-we2py-ubuntu.sh could be modified or run manually in some places
where sudo is used.
So for example near the end of the script instead of:

sudo -u www-data python -c "from gluon.widget import console;
console();"
and
sudo -u www-data python -c "from gluon.main import save_password;
save_password(raw_input('admin password: '),443)"u

you could "become" the www-data user with
su www-data
change to /home/www-data/web2py
and then run the commands:

python -c "from gluon.widget import console; console();"

and

python -c "from gluon.main import save_password;
save_password(raw_input('admin password: '),443)"
echo "done!"

In the mean time I am going to try it myself... looks like fun.

Cheers,

Chris


On Dec 30, 10:36 am, ghoulmann <[email protected]> wrote:
> However, I don't know Python well enough produce the script. I also
> don't know where web2py wants passwords kept or whether there's
> hashing involved. So given example scripts for other appliances, is
> there anyone willing to collaborate - either write the script for
> incorporation, or if it has to be the case, mentor me so I can produce
> the script with my students?
>
> This blog post and the subsequent thread explains and provides
> examples:http://www.turnkeylinux.org/blog/end-to-default-passwords
>
> I look forward to working together on this contribution to web2py and
> TurnKey Linux.
>
> Rik Goldman

Reply via email to