[关闭]
@yangxuan 2017-08-06T02:30:38.000000Z 字数 4110 阅读 3165

RPi3 Mate Recipe

raspberrypi mate


this recipe is part copy from a reddit posts

1. Install Mate desktop

Raspbian has better performonce than other distros, so we will install Mate desktop on Raspbian Jessie.

  1. sudo apt-get update
  1. sudo apt-get install mate-desktop-environment-extras

logout and select Mate in lightdm

2. Icons&Themes

Paper icons:

  1. git clone https://github.com/snwh/paper-icon-theme.git
  1. cd paper-icon-theme
  1. ./autogen.sh
  1. make
  1. sudo make install

Paper themes

  1. sudo apt-get install gtk2-engines-murrine
  1. git clone https://github.com/snwh/paper-gtk-theme.git
  1. cd paper-gtk-theme
  1. sudo sh autogen.sh
  1. make
  1. sudo make install

System -> Preferences -> Appearance -> Paper

then click Customise -> Icons -> Paper

change menu icon

  1. sudo cp /path/to/icon /usr/share/icons/Paper/24x24/places/start-here.png

recommended icon size:36x36

3. Fonts

font: Roboto

  1. sudo apt-get install fonts-roboto

terminal font: Roboto Mono

  1. git clone https://github.com/google-fonts-bower/robotomono-bower
  1. sudo cp /path/to/*.ttf /usr/share/fonts
  1. fc-cache -fv

4. Powerline

  1. sudo apt-get install python-pip
  1. sudo pip install git+git://github.com/Lokaltog/powerline
  1. wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
  1. wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
  1. mv PowerlineSymbols.otf /usr/share/fonts/
  1. fc-cache -vf /usr/share/fonts/
  1. mv 10-powerline-symbols.conf /etc/fonts/conf.d/

get powerline location:

  1. pip show powerline-status

bash:

  1. nano ~/.bashrc

add:

export TERM=xterm-256color

powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh
  1. mkdir ~/.config/powerline
  1. cp /usr/local/lib/python2.7/dist-packages/powerline/config_files/config.json ~/.config/powerline/config.json
  1. nano ~/.config/powerline/config.json

find:

                "shell": {
                        ...
                        "theme": "default",

change to :

                        "theme": "default_leftonly",

vim:

  1. sudo apt-get install vim-nox
  1. nano ~/.vimrc

add:

set  rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/
set laststatus=2
set t_Co=256

tmux:

  1. sudo apt-get install tmux
  1. nano ~/.tmux.conf
source /usr/local/lib/python2.7/dist-packages/powerline/bindings/tmux/powerline.conf
set-option -g default-terminal "xterm-256color"

5. Docky

  1. sudo apt-get install docky

enable compositing:

System -> Preference -> Windows -> General

select: Enable software compositing window manager

Removing stuff from Docky:

To remove an item from the dock simply drag it outside the dock area and release the mouse button.

6. Conky

  1. sudo apt-get install conky-all

Flattastic-Conky

7. FFMPEG

  1. sudo apt-get update
  1. sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev \
  2. libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb-shm0-dev \
  3. libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev
  1. mkdir ~/ffmpeg_sources

Yasm:

  1. sudo apt-get install yasm

libx264:

  1. sudo apt-get install libx264-dev

libfdk-aac:

  1. cd ~/ffmpeg_sources
  1. wget -O fdk-aac.tar.gz https://github.com/mstorsjo/fdk-aac/tarball/master
  1. tar xzvf fdk-aac.tar.gz
  1. cd mstorsjo-fdk-aac*
  1. autoreconf -fiv
  1. ./configure --prefix="$HOME/ffmpeg_build" --disable-shared
  1. make -j4
  1. make install
  1. make distclean

libmp3lame:

  1. sudo apt-get install libmp3lame-dev

libopus:

  1. sudo apt-get install libopus-dev

ffmpeg:

  1. sudo ldconfig
  1. cd ~/ffmpeg_sources
  1. wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
  1. tar xjvf ffmpeg-snapshot.tar.bz2
  1. cd ffmpeg

configure:

  1. PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" \
  2. ./configure --arch=armv7h --target-os=linux --enable-gpl --enable-libx264 --enable-opengl \
  3. --enable-libxcb --enable-mmal --enable-nonfree --enable-libass \
  4. --enable-libfdk-aac --enable-libmp3lame --enable-libopus --bindir="/usr/bin"

make:

  1. make -j4
  1. sudo make install

8. mpv

  1. sudo apt-get install git devscripts equivs

Now, to checkout the build repo, run:

  1. git clone https://github.com/mpv-player/mpv-build.git
  1. cd mpv-build
  1. ./update

Install the dependencies with:

  1. rm -f mpv-build-deps_*_*.deb
  1. mk-build-deps -s sudo -i

build package:

  1. dpkg-buildpackage -uc -us -b -j4

install:

  1. sudo dpkg -i ../mpv*.deb

9. SSH Key

Create Key: reference here

copy to Pi:

  1. cat ~/.ssh/id_rsa.pub | ssh pi@raspberrypi "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

10. Chromium

  1. wget -qO - http://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add -
  1. echo "deb http://dl.bintray.com/kusti8/chromium-rpi jessie main" | sudo tee -a /etc/apt/sources.list
  1. sudo apt-get update
  1. sudo apt-get install chromium-browser -y
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注