Giter VIP home page Giter VIP logo

docs's Introduction

# Server:

## Update
apt-get update; apt-get dist-upgrade

cat ./.bashrc > ~/.bashrc
cat ./.bashrc > /etc/skel/.bashrc

## Locales
#vim /var/lib/locales/supported.d/local
#ru_UA.UTF-8 UTF-8
echo "ru_UA.UTF-8 UTF-8" > /var/lib/locales/supported.d/local

#vim /var/lib/locales/supported.d/en
#en_US.UTF-8 UTF-8
echo "en_US.UTF-8 UTF-8" > /var/lib/locales/supported.d/en

vim /etc/default/locale
LANG="ru_UA.UTF-8"
LANGUAGE="ru_UA:ru"
LC_ALL="ru_UA.UTF-8"

rm -rfv /usr/lib/locale/*
locale-gen
reboot

-------------------------------------

## System
apt-add-repository ppa:brightbox/ruby-ng
apt-get update && apt-get install htop mc iotop vim git curl mysql-server redis-server python-software-properties libcurl4-openssl-dev build-essential php5-fpm php5-cli php-apc php5-mcrypt php5-gd php5-intl php5-curl php5-imagick php5-mysql ruby2.2 ruby2.2-dev ruby ruby-switch

ruby-switch --set ruby2.2
ruby --version

# composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

## Nginx
chmod +x nginx.sh && ./nginx.sh

mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak && cat ./nginx.conf > /etc/nginx/nginx.conf
#cat ./nginx.conf > /etc/nginx/nginx.conf
cat ./fastcgi_common > /etc/nginx/fastcgi_common
mkdir /etc/nginx/sites-available
mkdir /etc/nginx/sites-enabled

cat ./init-d_nginx > /etc/init.d/nginx
chmod +x /etc/init.d/nginx
update-rc.d nginx defaults
service nginx restart
service php5-fpm restart

-------------------------------------

## System Users
adduser --disabled-password www-pma

## Nginx virtual host
vim /etc/nginx/sites-available/pma
ln -sv /etc/nginx/sites-available/pma /etc/nginx/sites-enabled/pma

## php5-fpm pool
vim /etc/php5/fpm/pool.d/pma.conf

## php mods
php5enmod mcrypt

service php5-fpm restart
service nginx restart

-------------------------------------

## MYSQL
CREATE DATABASE DATABASE_NAME;

CREATE USER 'USER'@'localhost' IDENTIFIED BY 'PASSWORD';
GRANT ALL PRIVILEGES ON DATABASE_NAME.* TO 'USER'@'localhost';
FLUSH PRIVILEGES;

vim ~/.my.cnf
[client]
user=USER
password=PASSWORD

-------------------------------------

gem install sass --user-install
add-apt-repository ppa:webupd8team/java && apt-get update && apt-get install oracle-java8-installer && java -version

-------------------------------------

local only

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
sudo add-apt-repository ppa:webupd8team/java
apt-get purge openjdk*
apt-get update
apt-get install skype dropbox google-chrome-stable mc htop iftop git gitg unetbootin p7zip-full openssh-server vlc meld nmap curl iptraf gparted php5 apache2 mysql-server filezilla mysql-workbench oracle-java8-installer
apt-get install wine
apt-get install node npm

intstall nginx see above ^
maybe you want teamviwer

docs's People

Contributors

kateshch avatar odesskij avatar tomfun avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.