prepare.sh 2.37 KB
Newer Older
Martin Kepplinger's avatar
Martin Kepplinger committed
1
#!/bin/bash
Martin Kepplinger's avatar
Martin Kepplinger committed
2
set -e
3
sudo apt install -y openssh-server lrzsz
4 5 6

PKG="vim htop nload evemu-tools"
PKG+=" rsyslog"
Martin Kepplinger's avatar
Martin Kepplinger committed
7 8
PKG+=" nautilus"
PKG+=" idlestat"
Martin Kepplinger's avatar
Martin Kepplinger committed
9
PKG+=" git build-essential"
10
PKG+=" librem5-check"
11
PKG+=" curl"
12
PKG+=" crda"
Martin Kepplinger's avatar
Martin Kepplinger committed
13
PKG+=" gpsd-clients"
14
PKG+=" netcat"
Martin Kepplinger's avatar
Martin Kepplinger committed
15 16 17
PKG+=" mumble"
PKG+=" qtwayland5"
PKG+=" ninja-build meson cmake libwayland-dev pkg-config"
18 19
PKG+=" linux-cpupower"
PKG+=" apt-listchanges"
20 21
PKG+=" psmisc"
PKG+=" ncat"
22
# PKG+=" firefox-esr"
Martin Kepplinger's avatar
Martin Kepplinger committed
23
# PKG+=" tor"
Martin Kepplinger's avatar
Martin Kepplinger committed
24
PKG+=" systemd-coredump"
25
PKG+=" xauth gstreamer1.0-tools"
26
PKG+=" librem5-goodies"
27
PKG+=" v4l-utils yavta ffmpeg"
28

Martin Kepplinger's avatar
Martin Kepplinger committed
29
# TODO check if already inserted
30 31 32 33 34 35
echo 'deb https://repo.pureos.net/pureos amber-phone-staging main' | sudo tee -a /etc/apt/sources.list
echo 'deb https://repo.pureos.net/pureos amber-proposed-updates main' | sudo tee -a /etc/apt/sources.list
sudo apt update
sudo apt upgrade -y

sudo apt install -y $PKG
Martin Kepplinger's avatar
Martin Kepplinger committed
36

Martin Kepplinger's avatar
Martin Kepplinger committed
37
# TODO check if already present
Martin Kepplinger's avatar
Martin Kepplinger committed
38 39 40 41 42
git clone https://source.puri.sm/martin.kepplinger/atinout.git
cd atinout
git checkout librem5
make atinout
cp atinout ../bin/
Martin Kepplinger's avatar
Martin Kepplinger committed
43
# echo 'AT+CGDCONT?' | sudo ./atinout - /dev/ttyUSB1 -
44
cd ..
Martin Kepplinger's avatar
Martin Kepplinger committed
45 46
# echo "if mobile data is not working, run the following command (ipv4 only)"
# echo "echo 'AT+CGDCONT=1,\"IP\"' | sudo atinout - /dev/ttyUSB1 -"
47

48 49 50
# add local files
make install

51 52
# FIXME set germal locale
sudo dpkg-reconfigure locales
53

Martin Kepplinger's avatar
Martin Kepplinger committed
54 55 56 57 58 59 60 61
#flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
#sudo flatpak install -y --from https://flathub.org/repo/appstream/org.gnome.Fractal.flatpakref
#sudo flatpak install -y --from https://flathub.org/repo/appstream/org.gabmus.gfeeds.flatpakref
#sudo flatpak install -y --from https://flathub.org/repo/appstream/org.gnome.Lollypop.flatpakref
#sudo flatpak install -y --from https://flathub.org/repo/appstream/com.github.bilelmoussaoui.Authenticator.flatpakref
#sudo flatpak install -y --from https://flathub.org/repo/appstream/org.gnome.PasswordSafe.flatpakref
#sudo flatpak install -y --from https://flathub.org/repo/appstream/org.gnome.Podcasts.flatpakref
#sudo flatpak install -y --from https://flathub.org/repo/appstream/de.haeckerfelix.Shortwave.flatpakref
Martin Kepplinger's avatar
Martin Kepplinger committed
62 63

# 1Ghz is enough for now
64
# cat cpufreq_powersave_udev.txt | sudo tee -a /lib/udev/rules.d/85-librem5-pm.rules
65 66 67

cd ..
git clone https://source.puri.sm/guido.gunther/librem5-batwatch.git
Martin Kepplinger's avatar
Martin Kepplinger committed
68 69

gsettings set sm.puri.phoc.application:/sm/puri/phoc/application/org.gnome.nautilus/ scale-to-fit true