@yangxuan
2017-08-06T02:30:38.000000Z
字数 4110
阅读 3186
raspberrypi
mate
this recipe is part copy from a reddit posts
Raspbian has better performonce than other distros, so we will install Mate desktop on Raspbian Jessie.
sudo apt-get update
sudo apt-get install mate-desktop-environment-extras
logout and select Mate in lightdm
Paper icons:
git clone https://github.com/snwh/paper-icon-theme.git
cd paper-icon-theme
./autogen.sh
make
sudo make install
Paper themes
sudo apt-get install gtk2-engines-murrine
git clone https://github.com/snwh/paper-gtk-theme.git
cd paper-gtk-theme
sudo sh autogen.sh
make
sudo make install
System -> Preferences -> Appearance -> Paper
then click Customise -> Icons -> Paper
change menu icon
sudo cp /path/to/icon /usr/share/icons/Paper/24x24/places/start-here.png
recommended icon size:36x36
font: Roboto
sudo apt-get install fonts-roboto
terminal font: Roboto Mono
git clone https://github.com/google-fonts-bower/robotomono-bower
sudo cp /path/to/*.ttf /usr/share/fonts
fc-cache -fv
sudo apt-get install python-pip
sudo pip install git+git://github.com/Lokaltog/powerline
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mv PowerlineSymbols.otf /usr/share/fonts/
fc-cache -vf /usr/share/fonts/
mv 10-powerline-symbols.conf /etc/fonts/conf.d/
get powerline location:
pip show powerline-status
bash:
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
mkdir ~/.config/powerline
cp /usr/local/lib/python2.7/dist-packages/powerline/config_files/config.json ~/.config/powerline/config.json
nano ~/.config/powerline/config.json
find:
"shell": {
...
"theme": "default",
change to :
"theme": "default_leftonly",
vim:
sudo apt-get install vim-nox
nano ~/.vimrc
add:
set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/
set laststatus=2
set t_Co=256
tmux:
sudo apt-get install tmux
nano ~/.tmux.conf
source /usr/local/lib/python2.7/dist-packages/powerline/bindings/tmux/powerline.conf
set-option -g default-terminal "xterm-256color"
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.
sudo apt-get install conky-all
sudo apt-get update
sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev \
libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb-shm0-dev \
libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev
mkdir ~/ffmpeg_sources
Yasm:
sudo apt-get install yasm
libx264:
sudo apt-get install libx264-dev
libfdk-aac:
cd ~/ffmpeg_sources
wget -O fdk-aac.tar.gz https://github.com/mstorsjo/fdk-aac/tarball/master
tar xzvf fdk-aac.tar.gz
cd mstorsjo-fdk-aac*
autoreconf -fiv
./configure --prefix="$HOME/ffmpeg_build" --disable-shared
make -j4
make install
make distclean
libmp3lame:
sudo apt-get install libmp3lame-dev
libopus:
sudo apt-get install libopus-dev
ffmpeg:
sudo ldconfig
cd ~/ffmpeg_sources
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
configure:
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" \
./configure --arch=armv7h --target-os=linux --enable-gpl --enable-libx264 --enable-opengl \
--enable-libxcb --enable-mmal --enable-nonfree --enable-libass \
--enable-libfdk-aac --enable-libmp3lame --enable-libopus --bindir="/usr/bin"
make:
make -j4
sudo make install
sudo apt-get install git devscripts equivs
Now, to checkout the build repo, run:
git clone https://github.com/mpv-player/mpv-build.git
cd mpv-build
./update
Install the dependencies with:
rm -f mpv-build-deps_*_*.deb
mk-build-deps -s sudo -i
build package:
dpkg-buildpackage -uc -us -b -j4
install:
sudo dpkg -i ../mpv*.deb
Create Key: reference here
copy to Pi:
cat ~/.ssh/id_rsa.pub | ssh pi@raspberrypi "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
wget -qO - http://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add -
echo "deb http://dl.bintray.com/kusti8/chromium-rpi jessie main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install chromium-browser -y