Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###############################################
- #This big ass paste that was made by MR.N0B0DY#
- ###############################################
- #################################################
- #1st paste how to enable Root for Ubuntu server #
- #################################################
- ############################################################################
- Simply adding a password for root is not enough for Ubuntu 14.04 Server. #
- #
- You need to edit /etc/ssh/sshd_config, and commend out the following line: #
- ############################################################################
- sudo passwd
- sudo nano /etc/ssh/sshd_config
- #######################################################
- PermitRootLogin without-password
- Just below it, add the following line:
- PermitRootLogin yes
- #######################################################
- ###################
- Then restart SSH: #
- ###################
- service ssh restart
- #####################
- Done Fuck Bitches!! #
- #####################
- ####################################
- #2nd Paste Root login enable Ubuntu#
- ####################################
- ####################
- #Edit the conf file#
- ####################
- sudo sh -c 'echo "greeter-show-manual-login=true" >> /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf'
- ################################
- #if error Read-only file system#
- ################################
- mount -o remount /
- #####################
- Done Fuck Bitches!! #
- #####################
- #################################
- #3rd paste vsftpd install Ubuntu#
- #################################
- ####################################################################################
- You can quickly install vsftpd on your virtual private server in the command line: #
- ####################################################################################
- sudo apt-get install vsftpd
- #################################
- Open up the configuration file: #
- #################################
- sudo nano /etc/vsftpd.conf
- #######################################################################################
- The biggest change you need to make is to switch the Anonymous_enable from YES to NO: #
- #######################################################################################
- anonymous_enable=NO
- Prior to this change, vsftpd allowed anonymous, unidentified users to access the server's files. This is useful if you are seeking to distribute information widely, but may be considered a serious security issue in most other cases.
- After that, uncomment the local_enable option, changing it to yes and, additionally, allow the user to write to the directory.
- local_enable=YES
- write_enable=YES
- Finish up by uncommenting command to chroot_local_user. When this line is set to Yes, all the local users will be jailed within their chroot and will be denied access to any other part of the server.
- chroot_local_user=YES
- Save and Exit that file.
- ##########################################################
- Create a new directory within the user's home directory: #
- ##########################################################
- sudo mkdir /home/username/files
- ############################################
- Change the ownership of that file to root: #
- ############################################
- chown root:root /home/username
- ######################################################################################
- Make all necessary changes within the "files" subdirectory Then, as always, restart: #
- ######################################################################################
- sudo service vsftpd restart
- #######################
- Done fuck bitches!!!! #
- #######################
- #################################
- #4th paste installing phpmyadmin#
- #################################
- #############################
- Install service PhpMyAdmin: #
- #############################
- sudo apt-get install phpmyadmin
- This will ask you a few questions in order to configure your installation correctly.
- For the server selection, choose apache2. Note: If you do not hit "SPACE" to select Apache, the installer will not move the necessary files during installation. Hit "SPACE", "TAB", and then "ENTER" to select Apache.
- Select yes when asked whether to use dbconfig-common to set up the database
- You will be prompted for your database administrator's password
- You will then be asked to choose and confirm a password for the phpMyAdmin application itself
- The installation process actually adds the phpMyAdmin Apache configuration file into the /etc/apache2/conf-enabled/ directory, where it is automatically read.
- #########################################################################################################
- The only thing we need to do is explicitly enable the php5-mcrypt extension, which we can do by typing: #
- #########################################################################################################
- sudo php5enmod mcrypt
- ##############################################################################
- Afterwards, you'll need to restart Apache for your changes to be recognized: #
- ##############################################################################
- sudo service apache2 restart
- ##########################################################################################
- We will edit the linked file that has been placed in our Apache configuration directory: #
- ##########################################################################################
- sudo nano /etc/apache2/conf-available/phpmyadmin.conf
- #############################################################################################
- We need to add an AllowOverride All directive within the <Directory /usr/share/phpmyadmin>: #
- section of the configuration file, like this: #
- #############################################################################################
- <Directory /usr/share/phpmyadmin>
- Options FollowSymLinks
- DirectoryIndex index.php
- AllowOverride All
- . . .
- When you have added this line, save and close the file.
- ####################################################
- To implement the changes you made, restart Apache: #
- ####################################################
- sudo service apache2 restart
- ###########################
- Create an .htaccess File: #
- ###########################
- Now that we have enabled .htaccess use for our application, we need to create one to actually implement some security.
- In order for this to be successful, the file must be created within the application directory. We can create the necessary file and open it in our text editor with root privileges by typing:
- ###########################################################
- sudo nano /usr/share/phpmyadmin/.htaccess
- ###############################################################
- Within this file, we need to enter the following information: #
- ###############################################################
- AuthType Basic
- AuthName "Restricted Files"
- AuthUserFile /etc/phpmyadmin/.htpasswd
- Require valid-user
- #################################################################################################################################
- Let's go over what each of these lines mean: #
- ##############################################
- AuthType Basic: This line specifies the authentication type that we are implementing. This type will implement password authentication using a password file.
- AuthName: This sets the message for the authentication dialog box. You should keep this generic so that unauthorized users won't gain any information about what is being protected.
- AuthUserFile: This sets the location of the password file that will be used for authentication. This should be outside of the directories that are being served. We will create this file shortly.
- Require valid-user: This specifies that only authenticated users should be given access to this resource. This is what actually stops unauthorized users from entering.
- ################################################################################################################################
- ###############################################################################################################################
- Create the .htpasswd file for Authentication: #
- Now that we have specified a location for our password file through the use of the AuthUserFile directive within our .htaccess file, we need to create this file.
- We actually need an additional package to complete this process. We can install it from our default repositories:
- ###############################################################################################################################
- sudo apt-get install apache2-utils
- Afterward, we will have the htpasswd utility available.
- ###############################################################################################################################
- The location that we selected for the password file was "/etc/phpmyadmin/.htpasswd". Let's create this file and pass it an initial user by typing:
- ################################################################################################################################
- sudo htpasswd -c /etc/phpmyadmin/.htpasswd phpuser
- ################################################################################################################################
- You will be prompted to select and confirm a password for the user you are creating. Afterwards, the file is created with the hashed password that you entered.
- If you want to enter an additional user, you need to do so without the -c flag, like this:
- #################################################################################################################################
- sudo htpasswd /etc/phpmyadmin/.htpasswd additionaluser
- #######################
- Done fuck bitches!!!! #
- #######################
- ########################################################################
- #5th paste How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubu#
- ########################################################################
- ##############################################################
- To install apache, open terminal and type in these commands: #
- ##############################################################
- sudo apt-get update
- sudo apt-get install apache2
- #############################################################
- To install MySQL, open terminal and type in these commands: #
- #############################################################
- sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
- #########################################################################
- Once you have installed MySQL, we should activate it with this command: #
- #########################################################################
- sudo mysql_install_db
- ###############################################
- Finish up by running the MySQL set up script: #
- ###############################################
- sudo /usr/bin/mysql_secure_installation
- The prompt will ask you for your current root password.
- Type it in.
- #########################################################
- To install PHP, open terminal and type in this command. #
- #########################################################
- sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
- After you answer yes to the prompt twice, PHP will install itself.
- #################################################################################################
- It may also be useful to add php to the directory index, to serve the relevant php index files: #
- #################################################################################################
- sudo nano /etc/apache2/mods-enabled/dir.conf
- Add index.php to the beginning of index files. The page should now look like this:
- <IfModule mod_dir.c>
- DirectoryIndex index.php index.html index.cgi index.pl index.php index.xhtml index.htm
- </IfModule>
- ##############################################
- Once you decide to install the module, type: #
- ##############################################
- sudo apt-get install php5-cgi php5-cli php5-common php5-curl php5-dbg php5-dev php5-gd php5-gmp php5-ldap php5-mysql php5-odbc php5-pgsql php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-adodb
- ########################################################
- Restart apache so that all of the changes take effect: #
- ########################################################
- sudo service apache2 restart
- #######################
- Done fuck bitches!!!! #
- #######################
- ###########################################
- #6th paste how to install Teamspeak Ubuntu#
- ###########################################
- #######################################
- #Change your directory to the root dir#
- #######################################
- cd
- ####################################################################
- #Make a directory that we will be putting the installation files in#
- ####################################################################
- mkdir teamspeak
- ##########################################
- #Change dir to ts folder you just created#
- ##########################################
- cd teamspeak
- #######################################
- #Download Teamspeak3 files for install#
- #######################################
- wget http://teamspeak.gameserver.gamed.de/ts3/releases/3.0.12.4/teamspeak3-server_linux_amd64-3.0.12.4.tar.bz2
- #####################
- #Unzip the zip file #
- #####################
- tar xjf teamspeak3-server_linux_amd64-3.0.12.4.tar.bz2
- #############################################
- #Remove the zip file as is no longer needed #
- #############################################
- rm teamspeak3-server_linux_amd64-3.0.12.4.tar.bz2
- ######################
- #Move Teamspeak files#
- ######################
- mv teamspeak3-server_linux_amd64 teamspeak
- ##################################
- #change your directory once again#
- ##################################
- cd teamspeak
- ####################
- #Create script file#
- ####################
- ./ts3server_minimal_runscript.sh createinifile=1
- ##############################
- #Start the Teamspeak3 service#
- ##############################
- ./ts3server_startscript.sh start
- #######################
- Done fuck bitches!!!! #
- #######################
- ##################################
- #7th Paste how to install openssh#
- ##################################
- ####################
- #Always run updates#
- ####################
- sudo apt-get update
- #################
- #install openssh#
- #################
- sudo apt-get install openssh-server.
- #######################
- Done fuck bitches!!!! #
- #######################
- #################################
- #8th paste SetupMcMyAdmin Ubuntu#
- #################################
- sudo apt-get update
- sudo su
- cd /usr/local
- sudo apt-get install unzip
- wget http://mcmyadmin.com/Downloads/etc.zip
- unzip etc.zip
- rm etc.zip
- exit
- cls
- mkdir McMyAdmin
- cd McMyAdmin
- wget http://mcmyadmin.com/Downloads/MCMA2_glibc26_2.zip
- unzip MCMA2_glibc26_2.zip
- rm MCMA2_glibc26_2.zip
- sudo apt-get install default-jre
- sudo ./MCMA2_Linux_x86_64 -configonly -setpass [set your password here]
- Continue? [y/n] : y
- clear
- ls
- sudo nano McMyAdmin.conf
- go to lines below and edit them if needed but java.memory needs to be 2048
- ***********************
- Webserver.Port=8080
- Webserver.IPBinding=+
- ************************
- Java.Memory=2048
- ************************
- to exit press Ctrl + x inter y for yes press enter
- now to run the server if you are using local terminal skip this step
- sudo apt-get install screen
- screen -S minecraft
- sudo ./MCMA2_Linux_x86_64
- if you are running local commands with the terminal you do not need screen
- just run this
- sudo ./MCMA2_Linux_x86_64
- #######################
- Done fuck bitches!!!! #
- #######################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement