-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopensuse.sh
101 lines (91 loc) · 2.7 KB
/
opensuse.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/usr/bin/env bash
# Script to setup an android build environment for openSUSE.
# openSUSE Mirrors (https://github.com/Firstyear/mirrorsorcerer)
sudo zypper in mirrorsorcerer
sudo systemctl enable --now mirrorsorcerer
# Packages
sudo zypper install \
android-tools \
autoconf213 \
bc \
bison \
bzip2 \
ccache \
clang \
curl \
flex \
gawk \
gpg2 \
gperf \
gcc-c++ \
git \
git-lfs \
glibc-devel \
ImageMagick \
java-11-openjdk \
java-1_8_0-openjdk \
java-1_8_0-openjdk-devel \
liblz4-1 \
libncurses5 \
libncurses6 \
libpopt0 \
libressl-devel \
libstdc++6\
libX11-6 \
libxml2-tools \
libxslt1 \
libX11-devel \
libXrandr2 \
lzip \
lzop \
kernel-devel \
maven \
make \
megatools \
Mesa-libGL1 \
Mesa-libGL-devel \
mokutil \
nano \
neofetch \
ncurses5-devel \
ncurses-devel \
openssl \
opi \
patch \
perl-Digest-SHA1 \
python \
python-rpm-generators \
readline-devel \
schedtool \
screenfetch \
sha3sum \
squashfs \
vim \
wget \
wireguard-tools \
xf86-video-intel \
zip \
zlib-devel
# Devel Basis on OpenSUSE (https://darryldias.me/2020/devel-basis-on-opensuse-sle/)
sudo zypper install -t pattern devel_basis
# The package libncurses5 is not available, so we need to hack our way by symlinking the required library.
sudo ln -s /usr/lib/libncurses.so.6 /usr/lib/libncurses.so.5
sudo ln -s /usr/lib/libncurses.so.6 /usr/lib/libtinfo.so.5
sudo ln -s /usr/lib64/libncurses.so.6 /usr/lib64/libncurses.so.5
sudo ln -s /usr/lib64/libncurses.so.6 /usr/lib64/libtinfo.so.5
# Repo
echo "Installing Git Repository Tool"
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo
sudo chmod a+rx /usr/local/bin/repo
echo -e "Setting up udev rules for ADB!"
sudo curl --create-dirs -L -o /etc/udev/rules.d/51-android.rules -O -L https://raw.githubusercontent.com/M0Rf30/android-udev-rules/master/51-android.rules
sudo chmod 644 /etc/udev/rules.d/51-android.rules
sudo chown root /etc/udev/rules.d/51-android.rules
sudo udevadm control --reload-rules
# Set default editor
git config --global core.editor "nano"
# Terminals ohmyz.sh & alacritty (https://blog.praveen.science/oh-my-zsh-cheat-sheet/) - Ways (commands): "/bin/bash" "/usr/bin/zsh" "/bin/sh"
sudo zypper install cmake freetype-devel fontconfig-devel libxcb-devel libxkbcommon-devel alacritty zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# TheFuck (https://github.com/nvbn/thefuck) - nano ~/.bashrc - eval $(thefuck --alias) - source ~/.bashrc
pip install thefuck