TurnKey Linux Virtual Appliance Library

TKLPatch: LASP Stack

turnkey_1972's picture

Location: see attached file

Intended for: TKL Core

Generated ISO: 130mb

Description: Linux, Apache, Sqlite, PHP

Like LAMP and LAPP, but this time it includes Sqlite along with a Sqlite management interface. It's a lightweight alternative when a full blown sql server is not required.

Default accounts:
Administrator: admin/admin
Data Manager: data/data
User: guest/guest

To create a new database: Enter a database name, select version 3, then enter a filename into the path field. The databse file is automatically saved to /srv/sqlite/

This appliance currently uses SQLite Manager, which was the best web-based interface I found in the little searching that I did. If anyone knows of something better, please let me know and I will try to replace it.
 

Attached: 
Alon Swartz's picture

Interesting idea!

I like the LASP idea, a couple of questions:

Is it possible to:

  •  Change the database passwords through the web interface?
  •  Set blank passwords?
  •  Set passwords via the command line, so we can add screens to the installer (di-live)?

SQLite is great for development, but I don't think its a very good solution for production systems though... Any thoughts?

Alon Swartz's picture

New TKLPatch section on development wiki

I have created a new section in the development wiki for TKLPatches, and have added this patch to the list. Feel free to update the patch page as you see fit.
Stas Grishin's picture

Passwords

To be honest I am new to sqlite, I just decided to try it on some light projects that do not need a central database and to help keep things whithin the appliance without having many mysql installs floating around.

The way I understand it, there are no password, or none that I've encountered. The passwords are only used for the web management system. I am guessing they are located in the config database: /srv/sqlite/config/config3.db

I am sure there is a way to modify the password via command line through sqlite but I would have to play around with it since I am new to this. Is there more information about how to add a password screen to di-live? I will see what I can do.

Alon Swartz's picture

di-live hooks

Woops, sorry for the late reply. I'm going over all the TKLPatches for consideration in the next release and noticed you were left hanging with the di-live question.

See http://code.turnkeylinux.org/di-live/docs/ for the documentation on di-live.

In a nutshell, you can add hooks to /usr/lib/di-live.d which then add additional screens to di-live during the installation process. For example MySQL based appliances have /usr/lib/di-live.d/72mysql-conf. PgSQL based appliances have /usr/lib/di-live.d/72pgsql-password. Those would be good references for implementing your own hooks.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)