-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_packages.sh
64 lines (51 loc) · 1.71 KB
/
install_packages.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
#!/bin/bash
# Uncomment community [multilib] repository
sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf
# Update
pacman -Syyu --needed --noconfirm 2>&1 | grep -v "warning: could not get file information"
# Install Basic Packages
pacman -Sy --needed --noconfirm \
sudo nano git curl wget rsync aria2 rclone \
python2 python3 python-pip zip unzip cmake \
make neofetch speedtest-cli inetutils cpio \
jdk8-openjdk lzip dpkg openssl ccache repo \
libelf base-devel openssh lz4 jq go ncurses \
bison flex ninja uboot-tools z3 glibc dpkg \
multilib-devel bc htop python-setuptools \
util-linux man man-pages zsh
# More Packages
pacman -Sy --needed --noconfirm \
tmate tmux screen mlocate unace unrar p7zip \
sharutils uudeview arj cabextract file-roller \
dtc brotli axel gawk detox clang gcc gcc-libs \
flatpak
# python and pip version
python --version; pip --version
# Install Some pip packages
pip install \
twrpdtgen telegram-send backports.lzma docopt \
extract-dtb protobuf pycrypto docopt zstandard \
setuptools
# pip git packages
pip install \
git+https://github.com/samloader/samloader.git
# Create a non-root user for AUR
useradd -m -G wheel -s /bin/bash testuser
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
# AUR Packages
sudo -u testuser yay -S --needed --noconfirm \
rename
# zsh
chsh -s /bin/zsh root
curl -sL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bash
# Setup the Android Build Environment
cd /tmp/scripts
sudo chmod -R a+rwx .
sudo -u testuser bash ./aosp-build-env.sh
cd -
# Python Symlinks
ln -sf /usr/bin/pip3.10 /usr/bin/pip3
ln -sf /usr/bin/pip3.10 /usr/bin/pip
ln -sf /usr/bin/python3.10 /usr/bin/python3
# Use python2 by default
ln -sf /usr/bin/python{2,}