Last active
July 18, 2017 15:46
-
-
Save artkirienko/b22f832a39cbec3dc4f3ac48dc933963 to your computer and use it in GitHub Desktop.
Xubuntu Install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# apt update apt install | |
1. Install clean Xubuntu with username@password. | |
2. Switch on internet connection | |
3. Update && Upgrade | |
$ sudo su - | |
$ apt -y update && apt -y upgrade && apt -y full-upgrade | |
4. Reboot | |
$ reboot | |
5. Update && Upgrade | |
"обновление приложений" | |
6. Reboot | |
reboot | |
7. Install repos & apps: | |
$ sudo apt -y install curl | |
# nodejs | |
$ curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - | |
# postgresql | |
$ sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' > /etc/apt/sources.list.d/pgdg.list" | |
$ wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - | |
# skype | |
$ sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" | |
$ sudo dpkg --add-architecture i386 | |
# java | |
$ sudo add-apt-repository ppa:webupd8team/java | |
# sublime text 3 | |
$ sudo add-apt-repository ppa:webupd8team/sublime-text-3 | |
# telegram | |
$ sudo add-apt-repository ppa:atareao/telegram | |
$ sudo su - | |
$ apt -y update && apt -y upgrade && apt -y full-upgrade | |
$ apt -y install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev libmagickwand-dev nodejs memcached redis-server mysql-server mysql-client libmysqlclient-dev postgresql-9.5 postgresql-common libpq-dev ubuntu-restricted-extras libavcodec-extra vim screen zsh chromium-browser sublime-text-installer telegram skype screenfetch inxi oracle-java8-installer | |
# While we're at it, let's also fix Skype on 64bit not using the correct theme, by installing the missing dependencies using the following command: | |
# $ sudo apt install gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386 | |
# remove unused | |
$ apt -y remove firefox libreoffice-math | |
# postgresql | |
sudo -u postgres createuser fry -s | |
sudo -u postgres createdb fry | |
# If you would like to set a password for the user, you can do the following | |
sudo -u postgres psql | |
postgres=# \password fry | |
# oh-my-zsh | |
$ chsh -s $(which zsh) | |
reboot | |
# This is the Z Shell configuration function for new users, | |
# zsh-newuser-install. | |
# (0) Exit, creating the file ~/.zshrc containing just a comment. | |
# That will prevent this function being run again. | |
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
.zshrc | |
plugins=(git bundler rake ruby rails sublime) | |
# .gemrc | |
install: --no-rdoc --no-ri | |
update: --no-rdoc --no-ri | |
# rbenv & ruby | |
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
$ cd ~/.rbenv && src/configure && make -C src | |
$ cd ~ | |
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc | |
$ ~/.rbenv/bin/rbenv init | |
$ vim .zshrc | |
eval "$(rbenv init -)" | |
$ exit | |
$ type rbenv | head -n 1 | |
# rbenv is a shell function from /home/fry/.zshrc | |
$ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build | |
$ rbenv install 2.3.1 --verbose | |
$ rbenv global 2.3.1 | |
$ ruby -v | |
$ gem install bundler | |
$ rbenv rehash | |
# Git | |
git config --global color.ui true | |
git config --global user.name "YOUR NAME" | |
git config --global user.email "[email protected]" | |
ssh-keygen -t rsa -b 4096 -C "[email protected]" | |
cat ~/.ssh/id_rsa.pub | |
ssh -T [email protected] | |
$ gem install rails -v 5.0.0 --verbose | |
$ rails new my_app -d postgresql && cd my_app && bundler install | |
$ bundle exec rails db:create db:migrate | |
$ bundle exec rails s | |
# login Chromium | |
# убрать галочку "использовать системные рамки и строку заголовка | |
configure user info, contacts, photo | |
Настроить избранное: | |
Переключатель рабочих мест | |
Настроить панель: | |
CPU MEM SWAP NETWORK SOUND BATTERY LANGUAGE DATE TIME переключатель рабочих мест | |
/usr/bin/subl | |
$ ln -s Загрузки Downloads | |
$ mkdir Developer | |
pin to menu | |
configure mail_app, jabber, skype, telegram | |
# Do something with audio/video players | |
# DropBox / GoogleDrive / YandexDisk / [email protected] | |
# SublimeText3 / RubyMine / VIM / Atom | |
# Facebook Chat to Pidgin | |
32bit: http://download.opensuse.org/repositories/home:/jgeboski/xUbuntu_15.10/i386/ | |
64bit: http://download.opensuse.org/repositories/home:/jgeboski/xUbuntu_15.10/amd64/ | |
# Slack? HipChat? Gitter? Docker? VirtualBox? | |
Приложения -> Сеансы и запуск -> Автозапуск -> Снять галочку "Оповещение об обновлениях" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment