Bravo List
Register
Go Back   > Bravo List > Source Code > Trackers > PU-239
Reply
  #1  
Old 13-12-18, 17:10
darkalchemy's Avatar
darkalchemy darkalchemy is offline
VIP
 
Join Date: Dec 2017
United States
Posts: 87
Default Pu-239 Complete Installer
I have posted a script to set up a base ubuntu 16.04 LTS or 18.04 LTS server for use with Pu-239.

It simply takes a newly provisioned server and installs (versions current as of this posting):

Nginx 1.14.1
PHP 7.2 or 7.3
Percona MySQL 8.0 or MariaDB 10.3
Composer 1.8.3
Node.js 10.14.2
Npm 6.7.0
Pu-239

** OPTIONAL **
Memcached, Redis, APCu, GoAccess

Pu-239 Installer

This was created for a few users that have trouble reading and understanding English.

Please log in as a non-privileged user, NOT root, to run this script.

Quote:
wget --no-check-certificate https://raw.githubusercontent.com/da...r/installer.sh -O installer.sh
chmod a+x installer.sh
nano installer.sh #edit the first few lines. Please remember pay attention to what you use as you will use these again.
sudo ./installer.sh
If you like this project, please consider supporting me on Patreon.
__________________
I do custom coding, source installs, mods, server setup and/or config, etc. Feel free to pitch me your needs and your offer.

Last edited by darkalchemy; 03-02-19 at 12:45.
Reply With Quote
The Following 3 Users Say Thank You to darkalchemy For This Useful Post:
linkin2007 (14-12-18), nicukent (13-12-18), z3ro (22-12-18)
  #2  
Old 23-01-19, 11:17
noaptus's Avatar
noaptus noaptus is offline
Senior Member
 
Join Date: Mar 2010
Iceland
Posts: 20
Default NOT WORKING
This is not working.

Bump: I had to download the installer.sh and manually set the info then I had to create the file installer.sh on my server then I paste the code then I can execute the script.
Reply With Quote
  #3  
Old 23-01-19, 11:54
darkalchemy's Avatar
darkalchemy darkalchemy is offline
VIP
 
Join Date: Dec 2017
United States
Posts: 87
Default
Quote:
Originally Posted by noaptus View Post
This is not working.

Bump: I had to download the installer.sh and manually set the info then I had to create the file installer.sh on my server then I paste the code then I can execute the script.
You followed the instructions? It doesn't sound like you did. Because, the instructions sound surprisingly similar to what you described that you had to do to get it to work.


Quote:
wget --no-check-certificate https://raw.githubusercontent.com/da...r/installer.sh -O installer.sh
chmod a+x installer.sh
nano installer.sh #edit the first few lines. Please pay attention to what you use as you will use these again.
sudo ./installer.sh
__________________
I do custom coding, source installs, mods, server setup and/or config, etc. Feel free to pitch me your needs and your offer.

Last edited by darkalchemy; 23-01-19 at 12:30.
Reply With Quote
The Following User Says Thank You to darkalchemy For This Useful Post:
Phogo (23-01-19)
  #4  
Old 25-01-19, 07:42
noaptus's Avatar
noaptus noaptus is offline
Senior Member
 
Join Date: Mar 2010
Iceland
Posts: 20
Default
I did.

This is what I added to the file

Code:
#CONFIG - these must be set
SITENAME=SITENAME'                      # the name that will be displayed throughout your site as the site name
SITEHTTP='domain.ga'                      # fully qualified domain name, do not include http://
SITESSL='domain.ga'                       # fully qualified domain name, do not include https://
USERNAME='root'                      # username for mysql
DBPASS='passwd'                        # password for mysql user
DBNAME='dbname'                        # database name
ROOTPASSWORD=''                  # mysql root user password, this is needed to fix login by root user
BOTNAME='bot'                       # username for your site bot
SITEEMAIL='blacktornadoga@gmail.com'                     # email that will be used by your site to send emails
ADMINUSERNAME='evil4u'                 # your first users username
ADMINPASS='sq12dwskuggi20552055ko90JI'                     # your first users password
ADMINEMAIL='blacktornadoga@gmail.com'                    # your first users email
And this is what I get.


Code:
 ./installer.sh 
Usage: usermod [options] LOGIN

Options:
  -c, --comment COMMENT         new value of the GECOS field
  -d, --home HOME_DIR           new home directory for the user account
  -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
  -f, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -g, --gid GROUP               force use GROUP as new primary group
  -G, --groups GROUPS           new list of supplementary GROUPS
  -a, --append                  append the user to the supplemental GROUPS
                                mentioned by the -G option without removing
                                him/her from other groups
  -h, --help                    display this help message and exit
  -l, --login NEW_LOGIN         new value of the login name
  -L, --lock                    lock the user account
  -m, --move-home               move contents of the home directory to the
                                new location (use only with -d)
  -o, --non-unique              allow using duplicate (non-unique) UID
  -p, --password PASSWORD       use encrypted password for the new password
  -R, --root CHROOT_DIR         directory to chroot into
  -s, --shell SHELL             new login shell for the user account
  -u, --uid UID                 new UID for the user account
  -U, --unlock                  unlock the user account
  -v, --add-subuids FIRST-LAST  add range of subordinate uids
  -V, --del-subuids FIRST-LAST  remove range of subordinate uids
  -w, --add-subgids FIRST-LAST  add range of subordinate gids
  -W, --del-subgids FIRST-LAST  remove range of subordinate gids
  -Z, --selinux-user SEUSER     new SELinux user mapping for the user account

Will this script install all like php, mysql nginx etc.

What am I doing wrong.
Reply With Quote
  #5  
Old 25-01-19, 09:43
darkalchemy's Avatar
darkalchemy darkalchemy is offline
VIP
 
Join Date: Dec 2017
United States
Posts: 87
Default
Are you logged in as root or a non privileged user?

The first post is quite clear what is installed. Also, you have 1 setting left blank and 1 setting missing a quote. Every setting must be set.

You may not be using the current version of this script. I am thinking you might not have included all of the config settings. The latest version was pushed to git 6 days ago, fully 5 days before your first post.

Bump:

I am aware that most rental servers give you root access. It is for security that this script needs and expects you to not be the root user, but a normal, non-privileged user. Please create a normal user, log in and then run this script.

I will not modify this script to work for root users, but you are welcome to fork this project and modify and use it as you like.

Bump: Script updated to V1.0. This should not allow the root user to run this script.
__________________
I do custom coding, source installs, mods, server setup and/or config, etc. Feel free to pitch me your needs and your offer.

Last edited by darkalchemy; 25-01-19 at 11:56.
Reply With Quote
Reply

Tags
complete , installer , pu239 , server , ubuntu

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 01:40. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2019, vBulletin Solutions Inc.