Created
August 29, 2022 03:00
-
-
Save ljcucc/c6daedfba9d17576fb5dd8b2514d6bf0 to your computer and use it in GitHub Desktop.
Setup script of my workspace on termux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup proot | |
pkg install proot-distro | |
proot-distro install debian | |
proot-distro login debian | |
# basic setup | |
sudo apt install vim | |
# setup user | |
adduser ljcucc | |
adduser ljcucc sudo | |
export EDITOR=vim visudo | |
# setup ssh | |
sudo apt install ssh | |
# setup encoding & locales | |
sudo apt-get install locales | |
LC_CTYPE=en_US.UTF-8 LC_ALL=en_US.UTF-8 sudo dpkg-reconfigure locales | |
# install basic tools | |
sudo apt install build-essential | |
# Clone dwm and st | |
cd ~ | |
git clone https://git.suckless.org/dwm | |
git clone https://git.suckless.org/st | |
# Install dependencies | |
sudo apt install libc6 libfontconfig1 libx11-6 libxft2 libxinerama1 | |
sudo apt install libx11-dev libxft-dev libxinerama-dev | |
sudo apt install dmenu surf | |
# compile dwm | |
cd ~/dwm | |
make install | |
# compile st | |
cd ~/st | |
make install | |
# install tiger-vnc | |
sudo apt install tigervnc-standalone-server tigervnc-common | |
# start an vnc server | |
vncserver -geometry 1280x1024 -localhost no | |
# stop vnc server | |
vncserver -kill :1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment