![]() ![]() liz.sh st Use PostgreSQLĪfter installing PostgreSQL/PostGIS with the. This wil let you have a working PostgreSQL and sshd server after starting a new Termux session. The installation has added a script ~/.bash_profile which will be run automatically at startup. # Restart PostgreSQL # And display the SSH user and the IP addresses # This must not be necessary since this command is automatically run at startup # But you can call it anytime needed # Restore gis PostgreSQL database # BEWARE: this will erase your Android PostgresSQL gis database # and overwrite it with the previosly backuped data !!! # Backup gis PostgreSQL database into the root folder /sdcard/ # Get IP addresses # for WLAN (if WIFI is used) # and USB (if your share your Android 3/4/5G connection with your computer) # Start, stop, restart, get status for PostgreSQL server liz.sh in # OR you can use the command # with a password given as parameter, gis in this example (you could use an environment variable or read from a file, etc # Install PostgreSQL and PostGIS, and create a gis database and a gis user with gis password # Nothing will be done if PostgreSQL is already installed # Install also sshd, shows the user name and asks for a password # Nothing will be done if sshd is already installed # Note: if you pass a password as argument, it will be used for the PostgreSQL and SSH user #. # Update packages # Run it frequently to keep your termux up-to-date # No need to run it if you just ran "pkg update" before # Add symbolic links to access your Android files # by running termux-setup-storage command line # This is only required once # See Only if you have not given the password at the end of the command. the PostgreSQL gis user password to be able to connect to the gis database.the SSH user password, to connect with SSH from a computer.Of course, the installation process must be done only once.ĭuring the installation, you will be asked for: This can take a couple of minutes, and need you to follow the progress, since it asks for some confirmations: confirm with Y You can pass an optional argument with the desired password for the SSH and PostgreSQL user. run the command in to install PostgreSQL, sshd and other tools such as lftp and crontab. ![]() run the command then up to update the packages.run the command pe to grant access to your Android folders DCIM, Download, etc.Your Android storage will NOT be deleted. liz.sh zz: reset all ! This will completely erase your termux installation, and delete configuration files and PostgreSQL database data. liz.sh ve: display the version of the script liz.sh It also shows the SSH username and the devices IP addresses liz/sh st: restart PostgreSQL and the sshd services, to be used at device or session startup. ![]() liz/sh ip: get Android device IP address liz/sh pg: start/stop/restart/status PostgreSQL service liz/sh in: install PostgreSQL/PostGIS & create gis database and gis user & install sshd and other tools ( lftp, crontab, etc.) liz/sh pe: run termux-setup-storage to allow access to your documents (Download, DCIM, etc.) liz.sh command to run some preconfigured functions:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |