Aja eka apt update
ja apt upgrade
ja copy-pastaa alla oleva päätteeseen!
Asenna
# as sudo
apt install htop -y
apt install git -y
apt-get install xclip -y
echo "deb http://cran.rstudio.com/bin/linux/ubuntu xenial/" | tee -a /etc/apt/sources.list
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9 -y
gpg -a --export E084DAB9 | apt-key add -
apt-get update
apt-get install r-base r-base-dev -y
apt-get install r-cran-littler
apt-get install libcurl4-openssl-dev libxml2-dev libssl-dev libfreetype6-dev libcairo-dev -y
apt-get install libgdal1-dev libproj-dev -y
apt install libssl-dev
apt install libssh2-1-dev
apt install libcurl4-openssl-dev
apt install libxml2-dev
apt install libpoppler-cpp-dev
# as user
R -e 'install.packages("devtools", repos = "https://cloud.r-project.org")'
R -e 'devtools::install_github("unfaostatistics/gisfao")'
R -e 'devtools::install_github("rstudio/flexdashboard")'
R -e 'devtools::install_github("rstudio/rmarkdown")'
# as sudo
apt install gedit -y
apt install chromium-browser -y
apt install inkscape -y
add-apt-repository ppa:kdenlive/kdenlive-stable -y && apt update && apt install kdenlive -y
add-apt-repository ppa:scribus/ppa && apt-get update && apt-get install scribus -y
apt-get install ttf-mscorefonts-installer -y
apt install typecatcher -y
apt install gir1.2-gtop-2.0
apt-get install lftp -y
apt install texlive-full -y
Rstudio
Atom
# ruby & jekyll
# https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-16-04
sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev -y
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
sudo echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
sudo echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install -l
# tsekkaa mikä uusin
rbenv install 2.3.0
rbenv global 2.3.0
ruby -v
# gems
gem install bundler
gem install jekyll
#serveri
## http://askubuntu.com/questions/51925/how-do-i-configure-a-new-ubuntu-installation-to-accept-ssh-connections
sudo apt-get update
sudo apt-get install openssh-server
sudo ufw allow 22
# shiny-server - http://docs.rstudio.com/shiny-server/
sudo su - -c "R -e \"source('/home/aurelius/btsync/mk/workspace/general/shiny_server_batch.R')\""
sudo su - -c "R -e \"devtools::install_github('rstudio/shinythemes')\""
# btsync - https://www.linuxbabe.com/desktop-linux/install-bittorrent-sync-ubuntu-16-04-official-deb-repository
sudo echo "deb http://linux-packages.getsync.com/btsync/deb btsync non-free" | sudo tee -a /etc/apt/sources.list
wget http://linux-packages.getsync.com/btsync/key.asc
sudo apt-key add key.asc
sudo apt update
sudo apt install btsync -y
sudo systemctl start btsync
sudo systemctl enable btsync
sudo systemctl status btsync
#mkdir synccikansio
sudo setfacl -R -m "u:btsync:rwx" /home/aurelius/sync
sudo setfacl -R -m "u:aurelius:rwx" /home/aurelius/sync
## lftp http://anils-tips.blogspot.fi/2011/05/lftp-fatal-error-certificate.html
mkdir ~/.lftp
echo "set ssl:verify-certificate no" > ~/.lftp/rc
konffaus
git config --global user.name "etu suku"
git config --global user.email "nimi@gmail.com"
## github
ssh-keygen -t rsa -b 4096 -C "nimi@gmail.com"
xclip -sel clip < ~/.ssh/id_rsa.pub
# asenna shiny serveriin yksi paketti CRAN:sta
sudo su - -c "R -e \"install.packages('eurostat',repos='https://cran.rstudio.com/')\""
# asenna shiny serveriin yksi paketti GITHUB:sta
sudo su - -c "R -e \"devtools::install_github('rstudio/shinythemes')\""
# asenna shiny serveriin KAIKKI PUUTTTVAT paketit
sudo su - -c "R -e \"PACKAGES <- scan(url('http://muuankarski.kapsi.fi/luntti/r-paketit.txt'), what='character') ; inst <- match(PACKAGES, .packages(all=TRUE)) ; need <- which(is.na(inst)) ; if (length(need) > 0) install.packages(PACKAGES[need],repos='https://cran.rstudio.com/')\""
sudo su - -c "R -e \"devtools::install_github('rstudio/DT')\""
# asenna shiny serveriin KAIKKI paketit
sudo su - -c "R -e \"PACKAGES <- scan(url('http://muuankarski.kapsi.fi/luntti/r-paketit.txt'), what='character') ; install.packages(PACKAGES,repos='https://cran.rstudio.com/')\""
# ip:t
## vadelma2
192.168.0.15
## raspberrypi
192.168.0.10
# lataa käyttis:
http://www.raspberrypi.org/downloads/
# if Openelec
http://wiki.openelec.tv/index.php/Installing_OpenELEC_on_Raspberry_Pi
# asennusohjeet
ls
http://www.raspberrypi.org/documentation/installation/installing-images/linux.md
# btsync
## Asenna ensin hakemistoon .btsync
http://jack.minardi.org/raspberry_pi/replace-dropbox-with-bittorrent-sync-and-a-raspberry-pi/
## käynnistä bootista
# tee uus skripti
sudo leafpad /etc/init.d/btsync
# copy-paste
----
#! /bin/sh
# /etc/init.d/btsync
#
# Carry out specific functions when asked to by the system
case "$1" in
start)
/home/pi/.btsync/btsync
;;
stop)
killall btsync
;;
*)
echo "Usage: /etc/init.d/btsync {start|stop}"
exit 1
;;
esac
exit 0
---
# testaa
sudo chmod 755 /etc/init.d/btsync
sudo /etc/init.d/btsync start # test that the script starts
sudo /etc/init.d/btsync stop # test that the script stops
sudo update-rc.d btsync defaults
# laita pi käynnistymään konsoliin (ei GUI)
# ja seuraa näitä ohjeita jotta saat autologinin päälle
http://www.opentechguides.com/how-to/article/raspberry-pi/5/raspberry-pi-auto-start.html
sudo leafpad /etc/inittab
# comment
#1:2345:respawn:/sbin/getty 115200 tty1
# add below
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
ja sama windows-koneeseen mutta tietty manuaalisesti..
# Windows 10 asennus thinkpadille
# internet
# https://www.google.com/chrome/browser/desktop/index.html
# https://www.mozilla.org/fi/firefox/new/
# R
## https://cloud.r-project.org/bin/windows/base/R-3.3.1-win.exe
# Rstudio
## https://s3.amazonaws.com/rstudio-dailybuilds/RStudio-0.99.1277.exe
# Rtools
## https://cloud.r-project.org/bin/windows/Rtools/Rtools34.exe
# R-paketit muuankarski.kapsi.fi
PACKAGES <- scan(url("http://muuankarski.kapsi.fi/luntti/r-paketit.txt"), what="character")
inst <- match(PACKAGES, .packages(all=TRUE))
need <- which(is.na(inst))
if (length(need) > 0) install.packages(PACKAGES[need])
# git
## https://git-scm.com/download/win
git config --global user.name ""
git config --global user.email ""
# Atom
## https://atom.io/download/windows
# ssh
## winscp
### https://winscp.net/download/WinSCP-5.9-Setup.exe
## putty
### https://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
# tex
## http://mirror.ctan.org/systems/texlive/tlnet/install-tl-windows.exe
# grafiikka
# https://inkscape.org/en/download/windows/
# https://www.gimp.org/downloads/
# office
## levyltä M$
## https://fi.libreoffice.org/
## sumatra pdf http://download.cnet.com/Sumatra-PDF/3000-18497_4-10698785.html
Copyright © 2016 Markus Kainu. No rights reserved.