knightswarm / minstall Goto Github PK
View Code? Open in Web Editor NEWA script containing several modules designed to help you set up your server as you want it.
License: Other
A script containing several modules designed to help you set up your server as you want it.
License: Other
http://stackoverflow.com/questions/2953081/how-can-i-write-a-here-doc-to-a-file-in-bash-script
http://stackoverflow.com/questions/415677/how-to-replace-placeholders-in-a-text-file
https://news.ycombinator.com/item?id=5905966
http://www.reddit.com/r/linux/comments/1hb3by/securing_a_linux_home_server/
https://baudehlo.wordpress.com/2013/06/24/setting-up-perfect-forward-secrecy-for-nginx-or-stud/
https://news.ycombinator.com/item?id=5954984
http://stackoverflow.com/questions/2297533/what-is-the-proper-indentation-for-bash-scripts
https://news.ycombinator.com/item?id=6040381
http://dghubble.com/.bashprofile-.profile-and-.bashrc-conventions.html
http://robots.thoughtbot.com/post/2641409235/a-tmux-crash-course/
Currently installs. Maybe need configuration module?
Currently a bit messy, could use a cleanup.
It's incorrectly listing module names.
Standard Host (as it is now)
Caching Host (for example mirroring websites/caching them)
Anything else interesting?
configure-general-user fails because there is no debian-7 directory with files within it. Should be fixed by copying over the Debian 6 files.
>> Configure (HTTP): Nginx <<
libraries/40.check.sh: line 7: [: ==: unary operator expected
libraries/40.check.sh: line 7: [: ==: unary operator expected
libraries/40.check.sh: line 7: [: ==: unary operator expected
Do you want to enable gzip compression to save bandwidth and decrease page load time (compresses CSS, HTML, Javascript & XML at gzip compression level 6)? (Y/n)
>> Enabling Compression...
cp: cannot stat `modules/install-http-nginx/etc/nginx.d/gzip.conf': No such file or directory
Do you want to enable a virtual host that accepts all requests for the servers hostname (can be useful for scripts such as bandwidth monitors)? (Y/n)
>> Enabling Virtual Host For Hostname...
mv: cannot stat `/etc/nginx/sites-available/system.conf.disabled': No such file or directory
Do you want to enable proxy cache support and create a cache directory? (Y/n)
>> Enabling Proxy Cache Support...
cp: cannot stat `modules/install-http-nginx/etc/nginx.d/proxy_cache.conf': No such file or directory
Do you want to enable caching of SSL sessions (can increase responsiveness over SSL)? (Y/n)
>> Enabling SSL Session Cache...
cp: cannot stat `modules/install-http-nginx/etc/nginx.d/ssl_session_cache.conf': No such file or directory
Do you want to protect the default host by denying unmatched requests (this will override your default virtual host if you have assigned one)? (y/N)
Do you want to reset the default host to the script default (this will override your default virtual host if you have assigned one)? (y/N)
>> Restarting Daemon...
Currently installs python and pip. Maybe need configuration module?
Django support maybe?
Currently installs. Maybe need configuration module?
This could link with MySQL as they're very similar.
Enable this and add to configuration module.
No modules, need to research.
Support for Debian 7.0 Wheezy.
Enable this and add to configuration module.
after installing nginx the file: /etc/nginx/hosts.d/default.conf
has the entry
root /usr/share/nginx/www;
This directory does not exist, however the directory : root /usr/share/nginx/html does.
Updating the default.conf resolves this issue.
Currently installs. Maybe need configuration module?
Rehashing Ubuntu 12.04 Support
Problem: when multiple packages are installed at once in the script, the package installer fails with the error that the packages concatenated could not be found, such as "php5-cli php5-fpm".
Fix: change line 19 of libraries/platform/package.debian.sh to
apt-get -qy install "$@"
which probably is the intention here.
Add support for this damnit!
Started work here:
http://www.github.com/maxexcloo/Snippets-Server/blob/master/daemon-http.sh
# ./minstall.sh help cat: README: No such file or directory
(Because it was renamed to README.md.)
Currently installs. Maybe need configuration module?
Database users should be auto created when adding users.
Investigate this, how do I write docs?
AllowUsers and AllowGroups works together, blocking access to anyone except for those who are both listed in AllowUsers and who has a group in AllowGroups.
This blocks access to everyone with the configs shipped.
For some reason clean-packages
works perfectly on a fresh Debian 7 image, but running install-extra-repositories
first and nothing else causes clean-packages
to bug out with:
dpkg: error: unexpected data after package and selection at line 14
This causes apt-get
to attempt to remove all packages on the system and thus fail.
Currently installs. Maybe need configuration module?
Since sysvinit
is marked as an essential package, apt-get
refuses to remove it without --force-yes
. This is an issue because the Debian 7 package lists include upstart
and not sysvinit
.
The solution is either to change upstart
to sysvinit
or run the apt-get
command with --force-yes
.
nginx refuses to install on Debian 7 because libssl0.9.8 is no longer present in the repos... the only solution is to manually install libssl0.9.8.
Would be nice, maybe enlist help on this one?
Very important!
Investigate and fix!
If extra repositories are configured with the MariaDB repository being present on the system, installing the MySQL server will install MariaDB packages to be installed. This causes issues because of incompatible options being shipped in MariaDB files. Removing the MariaDB repository fixes the issue, and probably should be done prior to running the MySQL database module. Likewise, the MariaDB module should probably add the repository if it's not already present.
Currently installs. Maybe need configuration module?
Under the section "Download Minstall" the text for a one line install is being cut-off prematurely:
cd ~; rm -rf minstall minstall.tar.gz; mkdir minstall; cd minstall; wget --no-check-certificate -O minstall.tar.gz http://www
First, php5-cli
is misspelled as pgp5-cli
in the script.
Second, php5-fpm fails to start after installation, logging:
[04-Aug-2013 17:19:55] ERROR: No pool defined. at least one pool section must be specified in config file
[04-Aug-2013 17:19:55] ERROR: failed to post process the configuration
[04-Aug-2013 17:19:55] ERROR: FPM initialization failed
Seems like a package error but not sure what to do in that case.
Things like Wordpress, etc
Running the install-extra-packages
module fails with:
E: Unable to locate package 0
I would suspect an error in parsing a package list somewhere.
The package lists must remove language specific stuff, it's more important to be compatible than lightweight ;)
Error is caused by a failure in parsing one of the selection lists:
dpkg: error: unexpected end of line in package name at line 1
Resulting in:
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt libapt-pkg4.12 (due to apt) libstdc++6 (due to apt)
debian-archive-keyring (due to apt) gnupg (due to apt) base-files bash
Steps to reproduce: run Clean Packages module (minstall -m clean-packages
).
System: 128MB CVZ-E5 VPS on RamNode, running from Debian 6 x32 image upgraded to Debian 7.
SFTP Only Users
chroot Support
SSH Groups?
See here:
http://www.lowendtalk.com/discussion/comment/257548#Comment_257548
http://www.lowendtalk.com/discussion/comment/257574#Comment_257574
http://www.lowendtalk.com/discussion/comment/257606#Comment_257606
Maybe implement this depending on demand?
Hi there,
I am using Ubuntu 12.04 on an Ubuntu 12.04 KVM. I am getting this error while starting nginx
Restarting nginx: nginx: [emerg] could not build the types_hash, you should increase either types_hash_max_size: 1024 or types_hash_bucket_size: 32
nginx: configuration file /etc/nginx/nginx.conf test failed
Thanks for your help. I noticed this error on an Openvz container before.
Need to keep it neat...
Currently installs. Maybe need configuration module?
Look into supporting these modules, they look pretty good:
http://code.google.com/p/naxsi/
http://www.github.com/pagespeed/ngx_pagespeed/
Currently installs. Maybe need configuration module?
This is a maybe, I'd like to work with ServerBear if they're interested :)
Ensure that Debian 6 repositories are correct, add Debian 7 equivalents.
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.