Last active
          June 24, 2017 09:59 
        
      - 
      
 - 
        
Save mattintosh4/aa139e2b05f8d7b59df22ea3381f4f7e to your computer and use it in GitHub Desktop.  
    raspberrypi-init.sh
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/bin/bash | |
| ### /etc/apt/sources.list ### | |
| sed -i'' '/^deb/s/^/#/' /etc/apt/sources.list | |
| cat >>/etc/apt/sources.list <<! | |
| deb http://ftp.jaist.ac.jp/raspbian/ jessie main contrib non-free rpi | |
| #deb-src http://ftp.jaist.ac.jp/raspbian/ jessie main contrib non-free rpi | |
| ! | |
| ### /etc/apt/sources.list.d/raspi.list ### | |
| sed -i'' '/^deb/s/^/#/' /etc/apt/sources.list.d/raspi.list | |
| cat >>/etc/apt/sources.list.d/raspi.list <<! | |
| deb http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian/ jessie main | |
| #deb-src http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian/ jessie main | |
| ! | |
| apt-cache clean | |
| rm -rf /var/lib/apt/lists/* | |
| apt-get update | |
| pacages=( | |
| vim | |
| x11vnc | |
| iperf iperf3 | |
| net-tools | |
| fonts-noto fonts-mplus fonts-liberation | |
| p7zip-full | |
| yakuake | |
| omxplayer mpv | |
| sqlite3 | |
| locate | |
| smbclient | |
| mc | |
| ) | |
| sudo apt-get install fcitx-mozc --install-recommends | |
| sudo pip2 install -U youtube-dl | |
| sudo pip2 install -U spidev | |
| sudo pip2 install -U nfcpy | |
| cat >~/.vimrc <<! | |
| syntax on | |
| set tabstop=4 | |
| set expandtab | |
| ! | |
| mkdir -p ~/.local/share/fonts/OTF \ | |
| ~/.local/share/fonts/TTF | |
| (cd ~/.local/share/fonts/OTF; wget 'http://levien.com/type/myfonts/Inconsolata.otf') | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment