Advertisement
cryptocurinfo

one big ass paste

Apr 4th, 2015
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                                          ###############################################
  2.                                          #This big ass paste that was made by MR.N0B0DY#
  3.                                          ###############################################
  4.                                              
  5.                                           #################################################
  6.                                           #1st paste how to enable Root for Ubuntu server #
  7.                                           #################################################
  8.  
  9.  
  10. ############################################################################
  11. Simply adding a password for root is not enough for Ubuntu 14.04 Server.   #
  12.                                                                            #
  13. You need to edit /etc/ssh/sshd_config, and commend out the following line: #
  14. ############################################################################
  15.  
  16. sudo passwd
  17.  
  18. sudo nano /etc/ssh/sshd_config
  19.  
  20. #######################################################
  21. PermitRootLogin without-password
  22.  
  23. Just below it, add the following line:
  24.  
  25. PermitRootLogin yes
  26. #######################################################
  27.  
  28. ###################
  29. Then restart SSH: #
  30. ###################
  31.  
  32. service ssh restart
  33.  
  34. #####################
  35. Done Fuck Bitches!! #
  36. #####################
  37.  
  38.  
  39.                                                ####################################
  40.                                                #2nd Paste Root login enable Ubuntu#
  41.                                                ####################################
  42. ####################
  43. #Edit the conf file#
  44. ####################                                    
  45. sudo sh -c 'echo "greeter-show-manual-login=true" >> /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf'
  46.  
  47. ################################
  48. #if error Read-only file system#
  49. ################################
  50. mount -o remount /
  51.  
  52. #####################
  53. Done Fuck Bitches!! #
  54. #####################
  55.  
  56.                                                #################################
  57.                                                #3rd paste vsftpd install Ubuntu#
  58.                                                #################################
  59. ####################################################################################
  60. You can quickly install vsftpd on your virtual private server in the command line: #
  61. ####################################################################################
  62.  
  63. sudo apt-get install vsftpd
  64.  
  65. #################################
  66. Open up the configuration file: #
  67. #################################
  68.  
  69. sudo nano /etc/vsftpd.conf
  70.  
  71. #######################################################################################
  72. The biggest change you need to make is to switch the Anonymous_enable from YES to NO: #
  73. #######################################################################################
  74.  
  75. anonymous_enable=NO
  76.  
  77. 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.
  78.  
  79. After that, uncomment the local_enable option, changing it to yes and, additionally, allow the user to write to the directory.
  80.  
  81. local_enable=YES
  82. write_enable=YES
  83. 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.
  84.  
  85. chroot_local_user=YES
  86. Save and Exit that file.
  87.  
  88. ##########################################################
  89. Create a new directory within the user's home directory: #
  90. ##########################################################
  91.  
  92. sudo mkdir /home/username/files
  93.  
  94. ############################################
  95. Change the ownership of that file to root: #
  96. ############################################
  97.  
  98. chown root:root /home/username
  99.  
  100. ######################################################################################
  101. Make all necessary changes within the "files" subdirectory Then, as always, restart: #
  102. ######################################################################################
  103.  
  104.  sudo service vsftpd restart
  105.  
  106. #######################
  107. Done fuck bitches!!!! #
  108. #######################
  109.                                                      #################################
  110.                                                      #4th paste installing phpmyadmin#
  111.                                                      #################################
  112.  
  113. #############################
  114. Install service PhpMyAdmin: #
  115. #############################
  116.  
  117. sudo apt-get install phpmyadmin
  118.  
  119. This will ask you a few questions in order to configure your installation correctly.
  120.  
  121. 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.
  122. Select yes when asked whether to use dbconfig-common to set up the database
  123. You will be prompted for your database administrator's password
  124. You will then be asked to choose and confirm a password for the phpMyAdmin application itself
  125. The installation process actually adds the phpMyAdmin Apache configuration file into the /etc/apache2/conf-enabled/ directory, where it is automatically read.
  126.  
  127. #########################################################################################################
  128. The only thing we need to do is explicitly enable the php5-mcrypt extension, which we can do by typing: #
  129. #########################################################################################################
  130.  
  131. sudo php5enmod mcrypt
  132.  
  133. ##############################################################################
  134. Afterwards, you'll need to restart Apache for your changes to be recognized: #
  135. ##############################################################################
  136.  
  137. sudo service apache2 restart
  138.  
  139. ##########################################################################################
  140. We will edit the linked file that has been placed in our Apache configuration directory: #
  141. ##########################################################################################
  142.  
  143. sudo nano /etc/apache2/conf-available/phpmyadmin.conf
  144.  
  145. #############################################################################################
  146. We need to add an AllowOverride All directive within the <Directory /usr/share/phpmyadmin>: #
  147. section of the configuration file, like this:                                               #
  148. #############################################################################################
  149.  
  150. <Directory /usr/share/phpmyadmin>
  151.     Options FollowSymLinks
  152.     DirectoryIndex index.php
  153.     AllowOverride All
  154.     . . .
  155.  
  156. When you have added this line, save and close the file.
  157.  
  158. ####################################################
  159. To implement the changes you made, restart Apache: #
  160. ####################################################
  161.  
  162. sudo service apache2 restart
  163.  
  164. ###########################
  165. Create an .htaccess File: #
  166. ###########################
  167. Now that we have enabled .htaccess use for our application, we need to create one to actually implement some security.
  168.  
  169. 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:
  170. ###########################################################
  171.  
  172. sudo nano /usr/share/phpmyadmin/.htaccess
  173.  
  174. ###############################################################
  175. Within this file, we need to enter the following information: #
  176. ###############################################################
  177.  
  178. AuthType Basic
  179. AuthName "Restricted Files"
  180. AuthUserFile /etc/phpmyadmin/.htpasswd
  181. Require valid-user
  182.  
  183. #################################################################################################################################
  184. Let's go over what each of these lines mean: #
  185. ##############################################
  186. AuthType Basic: This line specifies the authentication type that we are implementing. This type will implement password authentication using a password file.
  187. 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.
  188. 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.
  189. 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.
  190. ################################################################################################################################
  191.  
  192. ###############################################################################################################################
  193. Create the .htpasswd file for Authentication: #
  194. 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.
  195.  
  196. We actually need an additional package to complete this process. We can install it from our default repositories:
  197. ###############################################################################################################################
  198.  
  199. sudo apt-get install apache2-utils
  200.  
  201. Afterward, we will have the htpasswd utility available.
  202.  
  203. ###############################################################################################################################
  204. 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:
  205. ################################################################################################################################
  206.  
  207. sudo htpasswd -c /etc/phpmyadmin/.htpasswd phpuser
  208.  
  209. ################################################################################################################################
  210. 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.
  211.  
  212. If you want to enter an additional user, you need to do so without the -c flag, like this:
  213. #################################################################################################################################
  214.  
  215. sudo htpasswd /etc/phpmyadmin/.htpasswd additionaluser
  216.  
  217.  
  218. #######################
  219. Done fuck bitches!!!! #
  220. #######################
  221.  
  222.                                   ########################################################################
  223.                                   #5th paste How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubu#
  224.                                   ########################################################################
  225.  
  226. ##############################################################
  227. To install apache, open terminal and type in these commands: #
  228. ##############################################################
  229.  
  230. sudo apt-get update
  231. sudo apt-get install apache2
  232.  
  233. #############################################################
  234. To install MySQL, open terminal and type in these commands: #
  235. #############################################################
  236.  
  237. sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
  238.  
  239. #########################################################################
  240. Once you have installed MySQL, we should activate it with this command: #
  241. #########################################################################
  242.  
  243. sudo mysql_install_db
  244.  
  245. ###############################################
  246. Finish up by running the MySQL set up script: #
  247. ###############################################
  248.  
  249. sudo /usr/bin/mysql_secure_installation
  250.  
  251. The prompt will ask you for your current root password.
  252.  
  253. Type it in.
  254.  
  255. #########################################################
  256. To install PHP, open terminal and type in this command. #
  257. #########################################################
  258.  
  259. sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
  260.  
  261. After you answer yes to the prompt twice, PHP will install itself.
  262.  
  263. #################################################################################################
  264. It may also be useful to add php to the directory index, to serve the relevant php index files: #
  265. #################################################################################################
  266.  
  267. sudo nano /etc/apache2/mods-enabled/dir.conf
  268.  
  269. Add index.php to the beginning of index files. The page should now look like this:
  270.  
  271. <IfModule mod_dir.c>
  272.  
  273.          DirectoryIndex index.php index.html index.cgi index.pl index.php index.xhtml index.htm
  274.  
  275. </IfModule>
  276.  
  277. ##############################################
  278. Once you decide to install the module, type: #
  279. ##############################################
  280.  
  281. 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
  282.  
  283. ########################################################
  284. Restart apache so that all of the changes take effect: #
  285. ########################################################
  286.  
  287. sudo service apache2 restart
  288.  
  289. #######################
  290. Done fuck bitches!!!! #
  291. #######################
  292.  
  293.  
  294.                                                 ###########################################
  295.                                                 #6th paste how to install Teamspeak Ubuntu#
  296.                                                 ###########################################
  297.  
  298.  
  299. #######################################
  300. #Change your directory to the root dir#
  301. #######################################
  302.  
  303. cd
  304.  
  305. ####################################################################
  306. #Make a directory that we will be putting the installation files in#
  307. ####################################################################
  308.  
  309. mkdir teamspeak
  310.  
  311. ##########################################
  312. #Change dir to ts folder you just created#
  313. ##########################################
  314.  
  315. cd teamspeak
  316.  
  317. #######################################
  318. #Download Teamspeak3 files for install#
  319. #######################################
  320.  
  321. wget http://teamspeak.gameserver.gamed.de/ts3/releases/3.0.12.4/teamspeak3-server_linux_amd64-3.0.12.4.tar.bz2
  322.  
  323. #####################
  324. #Unzip the zip file #
  325. #####################
  326.  
  327. tar xjf teamspeak3-server_linux_amd64-3.0.12.4.tar.bz2
  328. #############################################
  329. #Remove the zip file as is no longer needed #
  330. #############################################
  331.  
  332. rm teamspeak3-server_linux_amd64-3.0.12.4.tar.bz2
  333.  
  334. ######################
  335. #Move Teamspeak files#
  336. ######################
  337.  
  338. mv teamspeak3-server_linux_amd64 teamspeak
  339.  
  340. ##################################
  341. #change your directory once again#
  342. ##################################
  343.  
  344. cd teamspeak
  345.  
  346. ####################
  347. #Create script file#
  348. ####################
  349.  
  350. ./ts3server_minimal_runscript.sh createinifile=1
  351.  
  352. ##############################
  353. #Start the Teamspeak3 service#
  354. ##############################
  355.  
  356. ./ts3server_startscript.sh start
  357.  
  358.  
  359. #######################
  360. Done fuck bitches!!!! #
  361. #######################
  362.  
  363.  
  364.                                                    ##################################
  365.                                                    #7th Paste how to install openssh#
  366.                                                    ##################################
  367.  
  368. ####################
  369. #Always run updates#
  370. ####################
  371.  
  372. sudo apt-get update
  373.  
  374. #################
  375. #install openssh#
  376. #################
  377.  
  378. sudo apt-get install openssh-server.
  379.  
  380. #######################
  381. Done fuck bitches!!!! #
  382. #######################
  383.  
  384.                                                  #################################
  385.                                                  #8th paste SetupMcMyAdmin Ubuntu#
  386.                                                  #################################
  387.  
  388. sudo apt-get update
  389.  
  390. sudo su
  391.  
  392. cd /usr/local
  393.  
  394. sudo apt-get install unzip
  395.  
  396. wget http://mcmyadmin.com/Downloads/etc.zip
  397.  
  398. unzip etc.zip
  399.  
  400. rm etc.zip
  401.  
  402. exit
  403.  
  404. cls
  405.  
  406. mkdir McMyAdmin
  407.  
  408. cd McMyAdmin
  409.  
  410. wget http://mcmyadmin.com/Downloads/MCMA2_glibc26_2.zip
  411.  
  412. unzip MCMA2_glibc26_2.zip
  413.  
  414. rm MCMA2_glibc26_2.zip
  415.  
  416. sudo apt-get install default-jre
  417.  
  418. sudo ./MCMA2_Linux_x86_64 -configonly -setpass [set your password here]
  419.  
  420. Continue? [y/n] : y
  421.  
  422. clear
  423.  
  424. ls
  425.  
  426. sudo nano McMyAdmin.conf
  427.  
  428. go to lines below and edit them if needed but java.memory needs to be 2048
  429.  
  430. ***********************
  431. Webserver.Port=8080
  432. Webserver.IPBinding=+
  433. ************************
  434. Java.Memory=2048
  435. ************************
  436.  
  437. to exit press Ctrl + x inter y for yes press enter  
  438.  
  439.  
  440. now to run the server if you are using local terminal skip this step
  441.  
  442. sudo apt-get install screen
  443.  
  444. screen -S minecraft
  445.  
  446. sudo ./MCMA2_Linux_x86_64
  447.  
  448.  
  449. if you are running local commands with the terminal you do not need screen
  450. just run this
  451.  
  452. sudo ./MCMA2_Linux_x86_64
  453.  
  454. #######################
  455. Done fuck bitches!!!! #
  456. #######################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement