- On host machine, with the Vagrantfile,
vagrant up vagrant ssh
sudo apt-get updatesudo apt-get install apache2sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql- set password: password
- confirm password: password
sudo mysql_install_dbsudo /usr/bin/mysql_secure_installation- enter "password" at prompt
- "n" to change root password
- "y" to remove anonymous users
- "y" to disallow root login remotely
- "y" to remove test database and access to it
- "y" to reload privelege tables
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt- "y" at prompt
-
sudo vim /etc/apache2/mods-enabled/dir.conf- Add index.php to the start. It should look like:
<IfModule mod_dir.c> DirectoryIndex index.php index.html index.cgi index.pl index.php index.xhtml index.htm </IfModule> -
sudo service apache2 restart
sudo apt-get install git
sudo adduser vagrant www-datasudo chown -R www-data:www-data /var/wwwsudo chmod -R g+rw /var/www- Exit, and
vagrant reload vagrant sshback in
sudo apt-get install curl php5-cli gitsudo a2enmod rewritesudo service apache2 restart
git clone https://github.com/austinchenSMU/TwitGood.git- or,
git clone -b staging https://github.com/austinchenSMU/TwitGood.gitif you want to clone into a specific branch
- or,
- http://localhost:7070/TwitGood/backend/public/ shouldn’t show, so to fix:
sudo chown -R www-data:www-data /var/www/html
-
sudo vim /etc/apache2/sites-available/000-default.conf- Modify the file to look like this:
... CustomLog ${APACHE_LOG_DIR}/access. log combined <Directory /var/www/html> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> # For most configuration files from conf-available/, which are # enabled or disabled at a global level, it is possible to ...
- Update to mySQL 5.7
sudo wget http://dev.mysql.com/get/mysql-apt-config_0.8.0-1_all.debsudo dpkg -i mysql-apt-config_0.8.0-1_all.deb- At the prompts:
- MySQL Server (Currently selected; mysql-5.6) hit enter
- Select mysql-5.7, hit enter
- "ok" at the bottom, hit enter
- At the prompts:
sudo apt-get updatesudo apt-get install mysql-server- "y" at prompt
- "y" at prompt
-
Install Pip & modules
wget "https://bootstrap.pypa.io/get-pip.py"sudo python get-pip.pysudo pip install Tweepysudo pip install peewee
-
Install nltk
sudo pip install -U nltk- python
>>>import nltk>>>nltk.download()- Now download the "stopwords" corpus"
- The Ultimate vimrc
- There are 2 options within the ultimate vimrc: the 'Awesome Version' and the 'Basic Version'. The awesome version includes plugins and colors, the basic does not.
- Awesome Version:
git clone https://github.com/amix/vimrc.git ~/.vim_runtimesh ~/.vim_runtime/install_awesome_vimrc.sh
- Basic Version:
git clone git://github.com/amix/vimrc.git ~/.vim_runtimesh ~/.vim_runtime/install_basic_vimrc.sh
- For either version, to add line numbers do
vim ~/.vim_runtim/vimrcs/basic.vim- And add "set number" to the file. I added it after line 142.