Debian Desktop

From The Essence Bay
Jump to: navigation, search
vi /etc/apt/sources.list
# deb http://koyanet.lv/debian wheezy-backports main
# deb-src http://koyanet.lv/debian wheezy-backports main
apt-get update
apt-get install xorg
apt-get -t wheezy-backports install i3
vi ~/.bashrc
# xset -dpms
# xset s off 
#
# if [[ ! $DISPLAY && $(tty) == /dev/tty1 ]]; then
#     exec startx
# fi
vi ~/.i3/config
# new_window 1pixel
 
apt-get install xfce4-terminal
vi ~/.bashrc
# alias ls='ls --color=auto -lA'
apt-get -t wheezy-backports install git
 
git clone https://github.com/chriskempson/base16-xfce4-terminal.git
cp base16-xfce4-terminal/base16-eighties.dark.terminalrc ~/.config/Terminal/terminalrc
rm -rf base16-xfce4-terminal
git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell
vi /home/jevs/.bashrc
# BASE16_SHELL="$HOME/.config/base16-shell/base16-eighties.dark.sh"
# [[ -s $BASE16_SHELL ]] && source $BASE16_SHELL
 
wget https://github.com/adobe-fonts/source-code-pro/archive/1.017R.tar.gz
tar -xzf 1.017R.tar.gz
rm 1.017R.tar.gz
mkdir /usr/share/fonts/truetype/sourcecodepro
cp source-code-pro-*/TTF/* /usr/share/fonts/truetype/sourcecodepro
rm -rf source-code-pro-*
vi ~/.i3/config
# font pango:Source Code Pro Medium 9
vi ~/.config/Terminal/terminalrc
# FontAllowBold=FALSE
# FontName=Source Code Pro Medium 9
# MiscMenubarDefault=FALSE
# ScrollingBar=TERMINAL_SCROLLBAR_NONE
# ScrollingLines=1048576
 
wget http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3075_amd64.deb
dpkg -i sublime-text_build-*_amd64.deb
rm sublime-text_build-*_amd64.deb
 
wget https://bitbucket.org/haiwen/seafile/downloads/seafile_4.1.1_amd64.deb
dpkg -i seafile_*_amd64.deb
apt-get -f install
rm seafile_*_amd64.deb
seaf-cli init -d ~
echo ~/seafile/.seafile-data > ~/.ccnet/seafile.ini
seaf-cli start
seaf-cli download -s https://home.jevs.me/seafile -l 0624c09e-1215-4832-8590-3470da3458f9
# install https://packagecontrol.io/installation
# install https://packagecontrol.io/packages/Package%20Syncing
# sync ~/seafile/settings/sublime
 
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
tar -xzf Python-2.7.9.tgz
rm Python-2.7.9.tgz
cd Python-2.7.9
apt-get build-dep python2.7
./configure --prefix=/usr/local/opt/python2.7.9
make -j 5
make altinstall
 
wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz
tar -xzf Python-3.4.3.tgz
rm Python-3.4.3.tgz
cd Python-3.4.3
apt-get build-dep python3.2 liblzma
./configure --prefix=/usr/local/opt/python3.4.3
make -j 5
make altinstall
 
cd /usr/local/bin
ln -s ../opt/python2.7/bin/python2.7
ln -s ../opt/python3.4/bin/python3.4
python2.7 -m ensurepip
ln -s ../opt/python2.7/bin/pip2.7
ln -s ../opt/python3.4/bin/pip3.4
ln -s python2.7 python2
ln -s python2 python
ln -s python3.4 python3
ln -s pip2.7 pip2
ln -s pip2 pip
ln -s pip3.4 pip3
pip2 install flake8 pep257 pylint
pip3 install flake8 pep257 pylint
ln -s ../opt/python3.4/bin/pylint
 
cd /usr/local/opt/python2.7/lib/python2.7/site-packages
ln -s /usr/lib/python2.7/dist-packages/ccnet
ln -s /usr/lib/python2.7/dist-packages/pysearpc
ln -s /usr/lib/python2.7/dist-packages/seafile
 
wget http://nodejs.org/dist/v0.12.0/node-v0.12.0.tar.gz
tar -xzf node-v0.12.0.tar.gz
rm node-v0.12.0.tar.gz
cd node-v0.12.0
./configure --prefix=/usr/local/opt/node0.12
make -j 5
make install
cd /usr/local/bin
ln -s ../opt/node0.12/bin/node node0.12
ln -s ../opt/node0.12/bin/npm npm0.12
ln -s node0.12 node
ln -s npm0.12 npm
npm install -g jshint
 
wget https://github.com/danmar/cppcheck/archive/1.68.tar.gz
tar -xzf 1.68.tar.gz
rm 1.68.tar.gz
cd cppcheck-1.68
apt-get install libpcre3-dev
sudo make PREFIX=/usr/local/opt/cppcheck CFGDIR=/usr/local/opt/cppcheck/cfg HAVE_RULES=yes -j 5
sudo make PREFIX=/usr/local/opt/cppcheck CFGDIR=/usr/local/opt/cppcheck/cfg HAVE_RULES=yes install
cd /usr/local/bin
ln -s ../opt/cppcheck/bin/cppcheck
 
git clone https://go.googlesource.com/go
cd go/src
git checkout go1.4.2
export GOROOT_FINAL=/usr/local/opt/go1.4
./make.bash
mkdir $GOROOT_FINAL
cp ../bin ../pkg $GOROOT_FINAL
cd /usr/local/bin
ln -s ../opt/go1.4/bin/go go1.4
ln -s go1.4 go
 
wget http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.1.tar.gz
tar -xzf ruby-2.2.1.tar.gz
rm ruby-2.2.1.tar.gz
cd ruby-2.2.1
./configure --prefix=/usr/local/opt/ruby2.2
make -j 5
make install
cd /usr/local/bin
ln -s ../opt/ruby2.2/bin/ruby ruby2.2
ln -s ruby2.2 ruby