cordelya / axemoor-bootstrap Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Needs this:
$ read -rsp $'Press any key to continue...\n' -n1 key
needs a separate init file due to major differences in install procedure
see here: https://www.tomshardware.com/news/raspberry-pi-web-server,40174.html
A script that prompts for the name of a new project and creates a new www folder, virtual host .conf file, and inits a new git repo in the new folder.
Creates a new readme document.
Instructs user to create a new repo on gh with n filename and waits for user input to continue (ie go make an empty repo named foo on github. When you are done, return to the terminal and press the enter key.)
Sets correct github remote connection for SSH, asks which key to associate with it if you have more than one, tests the SSH connection to github.
Adds the readme file, silently makes first commit, and pushes the first commit up to gh.
Selected error messages and notes:
E: Unable to locate package apache2 git systemctl atom
(this is because Raspbian in default state doesn't know where to find atom, and it keeps all the rest of the apps from being installed. Maybe let's drop it for now.)
Synchronizing state of ssh.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ssh
Done installing Apache2
Apache config starting now
touch: cannot touch '/etc/apache2/sites-available/axemoor.net.conf': No such file or directory
...
unable to write to axemoor.net.conf due to non-existent file
sudo: a2ensite: command not found
sudo: a2dissite: command not found
Attempting to restart Apache. Hang on.
Failed to restart apache2.service: Unit apache2.service not found.
Done configuring Apache. Now installing additional software.
MariaDB setup OK
Make the MariaDB setup advice red for viz.
php-mysql setup OK
Failed to restart apache2.service: Unit apache2.service not found.
...
fatal: destination path '.' already exists and is not an empty directory.
mkdir: cannot create directory β/home/pi/helpβ: File exists
fatal: destination path '/home/pi/help' already exists and is not an empty directory.
chmod: cannot access 'axemoor.sh': No such file or directory
Future enhancement: fancy footwork inspired by this guide:
https://medium.com/@adikari/resume-bash-script-after-reboot-6fc0371491c8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.