Rasberry PI OS 個人用設定とか.sh

#実行権限 chmod +x raspbian.sh #init apt -y update apt -y u […]

#実行権限 chmod +x raspbian.sh #init apt -y update apt -y u […]

  • タグ:
  • タグはありません
# chmod +x raspbian.sh
#init
apt -y update
apt -y upgrade
#numlock on
apt -y numlockx
#
mkdir ~/Program/
#
#()
apt -y install dolphin
#
apt -y install xfce4-terminal
#()
apt -y install gnome-system-monitor
#
apt -y install kolourpaint4
apt -y install pinta
#azpainter
#http://azsky2.html.xdomain.jp/arc/download.html
#Recommended SoftwareGIMP
#InfanView
apt -y install nomacs
#tiff
apt -y install evince
#
#Xnview MP: https://newsgroup.xnview.com/viewtopic.php?f=82&t=38665
#CAD
#apt -y install librecad
#
#geany-plugins
apt -y install geany geany-plugins
apt -y install cmake pkg-config libgtk2.0-dev
apt -y install libgtk-3-dev
cd ~/Program/
git clone https://github.com/chu-hai/preedit_tweak.git
cd preedit_tweak
mkdir build
cd build
cmake ..
make
make install
cd ~/
#Shift_JIS
#http://zakki.phpapps.jp/linux-texe-editor
#
#Recommended SoftwareLibreOffice
apt -y install gnumeric #CSV
#
apt -y install gparted
#
apt -y install synaptic
#snap
apt -y install snapd
#
apt -y install p7zip-full
#調/(RPi4)
#sudo apt -y install redshift
#sudo geany /usr/share/doc/redshift/example-redshift.conf
#
#sudo geany /etc/xdg/openbox/lxde-pi-rc.xml
# <keybind key="Print">
# <action name="Execute">
# <command>scrot -e 'mkdir ~/Pictures/Screenshots/ &amp; mv $f ~/Pictures/Screenshots/'</command>
# </action>
# </keybind>
# <keybind key="C-Print">
# <action name="Execute">
# <command>scrot -f -e 'mkdir ~/Pictures/Screenshots/ &amp; mv $f ~/Pictures/Screenshots/'</command>
# </action>
# </keybind>
#chromium DRM()
cd ~/Program/
curl -fsSL https://pi.vpetkov.net -o ventz-media-pi
sh ventz-media-pi
cd ~/
#
apt -y install copyq
#imageWriter
apt -y install rpi-imager
#imageClone(CUI)
cd ~/
git clone https://github.com/billw2/rpi-clone.git
cp cd rpi-clone/rpi-clone rpi-clone-setup /usr/local/sbin
rm -r ~/rpi-clone
#(GUI)
apt -y install xsensors
#exfat
apt -y install exfat-fuse
#
apt -y install remmina xrdp
#
apt -y install ufw gufw
ufw disable
ufw default deny
ufw allow 22
ufw allow vnc
ufw allow 3389
#sudo geany /etc/default/ufw
#IPV6=yes
# ↓
#IPV6=no
ufw enable
#
apt -y install clamtk
#cron
#PC
apt -y install hardinfo
#
#apt -y install audacious #
apt -y install rhythmbox #
#RhythmBox
#
#https://github.com/fossfreedom/alternative-toolbar
#
#https://github.com/luqmana/rhythmbox-plugins
apt -y install pulseaudio #rhythumbox
apt -y install paman #pulseaudio()
#pi@G-specPI4:~ $ pacmd list-sinks | grep name
# name: <alsa_output.platform-bcm2835_audio.analog-mono>
# alsa.name = "bcm2835 HDMI 1"
# ...
# device.icon_name = "audio-card"
# name: <alsa_output.platform-bcm2835_audio.analog-mono.2>
# alsa.name = "bcm2835 Headphones"
# ...
# device.icon_name = "audio-headphones"
#>> alsa_output.platform-bcm2835_audio.analog-mono.2
#cp /etc/pulse/default.pa ~/.config/pulse/
#geany ~/.config/pulse/default.pa
#load-module module-stream-restore
# ↓
#load-module module-stream-restore restore_device=false
##set-default-sink output
# ↓
#set-default-sink alsa_output.platform-bcm2835_audio.analog-mono.2
#pulseaudio -k
#pulseaudio -D
#iThunes(Windows)
#ituxxxlistconverter
#
apt -y install audacity
#
apt -y install smplayer
#
apt -y install kdenlive
#
apt -y install handbrake
#
apt -y install gtk-recordmydesktop
#Twitter
apt -y install rainbowstream
#MEGASync
#https://mega.nz/sync
#
#
apt -y install gnome-games
#()
apt -y install kdegames
#
apt -y install pinball
#3D
apt -y install trigger-rally
#
apt -y install torcs
#
#apt install supertuxkart
#
apt -y install joystick jstest-gtk
#
apt -y install qt4-dev-tools
cd ~/Program/
git clone https://github.com/AntiMicro/antimicro
cd antimicro
mkdir build
cd build
cmake ..
make
make install
cd ~/
#
snap -y install open-syobon-action
#
#sudo snap install nxengine-evo
#
#Node.js
apt -y install nodejs npm
npm -g i n
n lts
npm -g i npm
apt -y uninstall nodejs npm
#uglifyjs
npm i -g uglify-es
#TypeScript
npm i -g typescript
npm i -g @types/node
npm i -g ts-node
#SBCL
apt -y install sbcl
#D
apt -y install gdc
apt -y install ldc
#Clojure
apt -y install clojure
#.Net Core
cd ~/
wget https://dot.net/v1/dotnet-install.sh
chmod u+x ~/dotnet-install.sh
~/dotnet-install.sh -Channel Current
echo export DOTNET_ROOT=$HOME/.dotnet >> ~/.bashrc
echo export PATH=$PATH:$HOME/.dotnet >> ~/.bashrc
source ~/.bashrc
dotnet tool install -g dotnet-script
echo export PATH=$PATH:$HOME/.dotnet/tools >> ~/.bashrc
#Mono
apt -y install mono
#HSP
cd ~/Program/
git clone https://github.com/onitama/OpenHSP
cd OpenHSP
./pisetup.sh
cd ~/
#
apt -y install font-manager
#MS
apt -y install ttf-mscorefonts-installer
#
apt -y install ttf-ancient-fonts
#apt -y install fonts-noto-color-emoji
cd ~/Desktop
#fonts -> /usr/local/share/fonts
#font:mgen+
wget https://osdn.jp/downloads/users/8/8597/mgenplus-20150602.7z
7z x mgenplus-20150602.7z -omgenplus
#font:rounded-mgen+
wget https://osdn.jp/downloads/users/8/8598/rounded-mgenplus-20150602.7z
7z x rounded-mgenplus-20150602.7z -orounded-mgenplus
#font:ipa
wget https://web.archive.org/web/20190326123924/http://www.geocities.jp/ipa_mona/opfc-ModuleHP-1.1.1_withIPAMonaFonts-1.0.8.tar.gz
tar zxvf opfc-ModuleHP-1.1.1_withIPAMonaFonts-1.0.8.tar.gz
#googlefonts
#7z x '/home/pi/Desktop/Anton,EB_Garamond,Kosugi,Kosugi_Maru,Lora.zip' -ofonts
#sudo rsync -a '/home/pi/Desktop/fonts' /usr/local/share
#sudo rm -r '/home/pi/Desktop/fonts'
#sudo rm '/home/pi/Desktop/Anton,EB_Garamond,Kosugi,Kosugi_Maru,Lora.zip'
#
#geany ~/.config/fontconfig/fonts.conf
#
# Appearance Setting
#
# Main Menu Editor->
#
#
# %R%n%Y/%m/%d
#
# (#6666CC#7777CC)
#Raspberry PI
#
# =False
# =True
#
# GPU=128 or 512
#
# =Generic 105-key PC(intl.)
#zram
#https://www.fabshop.jp/%e3%80%90step-38%e3%80%91swap%e9%a0%98%e5%9f%9f%e6%8b%a1%e5%a4%a7%e3%81%ae%e3%81%99%e3%81%99%e3%82%81/
#https://www.fabshop.jp/%E3%80%90step-39%E3%80%91raspberry-pi%E3%81%A7%E3%82%82zram%E3%81%A7%E3%83%A1%E3%83%A2%E3%83%AA%E3%83%BC%E6%8B%A1%E5%BC%B5%EF%BC%81/
#end
#
apt autoremove
#
reboot
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX