Install MySQL 5.6 On Debian 7.7
MySQL 5.6 promises some performance increases over version 5.5, but in my experience, requires at least 1GB of RAM to run comfortably, unlike 5.5 which would run well on a 512MB RAM VPS. Execute the following script to install the server.
#!/bin/bash cd /tmp # Confirm the version at http://dev.mysql.com/downloads/repo/apt/ wget -O mysql-apt-config.deb http://dev.mysql.com/get/mysql-apt-config_0.3.2-1debian7_all.deb sudo dpkg -i mysql-apt-config.deb # At the popup-page, select "Apply" # Install mysql-server package sudo apt-get update sudo apt-get install mysql-server-5.6 -y
References
Setup A Private Git Server on Debian 7
Introduction
This tutorial will show you how to configure a centralized Git server as an alternative to using third-party services, such as Github or Bitbucket. Running your own server is likely to be cheaper and safer. It is "safer" is because large sites, such as Github, are a bigger target for hackers. Also, you know exactly how your server is configured and where your data is stored.
Why Git?
It seems to me that the primary reason to use Git is that everyone else is using it. Thus, it is the most likely tool to be easily integrated into other tools/services as they arise such as composer/satis. The prevalence of git also means that it's very easy to start working with others with one less thing to agree on (people can get very passionate about which tools they use). In terms of version control itself, I think that most people are not investing enough time into studying the alternatives, such as SVN or Mercurial.
Why Debian?
I wanted to use a distro that I wouldn't need to update and reboot every other week, like I do with Ubuntu. I have stopped "supporting" CentOS ever since version 7, and Debian is incredibly easy to work with, coming from a heavy Ubuntu user's perspective.
Server Steps
sudo adduser $GIT_USER # fill in the details and use a strong password. su $GIT_USER cd $HOME
I will show you how to do this in another tutorial and link to it when it becomes available.
sudo apt-get install git -y
mkdir repos cd repos
mkdir $REPO_NAME cd $REPO_NAME git init --bare
Client Steps
cd /path/to/stick/repo git clone $GIT_USER@$SERVER_IP/path/to/repos/$REPO_NAMECongratulations! You now have a local copy of the repository.
touch README.txt git add README git commit . -m "My commit description goes here" git push $GIT_USER@$SERVER_IP:/path/to/repos/$REPO_NAME
Debian 7 - Add Sudo!
Steps
apt-get install sudo
adduser $MY_SUBUSER sudoFor example:
adduser programster sudo
You can now log in as that user and run updates etc by just entering your own password.