blob: fb6efd52cfaa979cf3f91954f5ea0637eb74bc95 (
plain) (
blame)
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
#!/bin/bash
sudo apt update
echo "Installing basic software..."
sudo apt install -y gpg git pass build-essential
sudo apt install -y unzip wget curl
echo "Installing Xorg..."
sudo apt install -y xorg xorg-drivers xinit xterm
read -p "Do you want to install Qtile? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Installing Qtile..."
sudo apt install -y libxcb-render0-dev libffi-dev libcairo2 libpangocairo-1.0-0 python-dbus
sudo apt install -y python3-pip
pip3 install xcffib
pip3 install --no-cache-dir cairocffi
pip3 install qtile
cat > /tmp/qtile.desktop <<EOF
[Desktop Entry]
Name=Qtile
Comment=Qtile Window Menager
Exec=/home/$USER/.local/bin/qtile
Type=Application
Keywords=wm;tiling
EOF
sudo cp /tmp/qtile.desktop /usr/share/xsessions/qtile.desktop
sudo chown root:root /usr/share/xsessions/qtile.desktop
sudo chmod 644 /usr/share/xsessions/qtile.desktop
fi
echo "Installing additional software..."
sudo apt install -y numlockx pcmanfm
sudo apt install -y dunst libnotify-bin udiskie rsync dnsutils
sudo apt install -y feh suckless-tools rofi scrot
sudo apt install -y thunderbird libreoffice
sudo apt install -y zathura zathura-pdf-poppler
sudo apt install -y newsboat ffmpeg mpd mpc ncmpcpp mpv
sudo systemctl disable --now mpd
sudo apt -t buster-backports install -y youtube-dl
read -p "Do you want to install configurations? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Installing configurations..."
git clone https://git.matejamaric.com/dotfiles /tmp/dotfiles
cp /tmp/dotfiles/.bash* $HOME
cp /tmp/dotfiles/.dir_colors $HOME
cp /tmp/dotfiles/.vimrc $HOME
cp /tmp/dotfiles/.Xdefaults $HOME
cp -r /tmp/dotfiles/.xmonad $HOME
cp -r /tmp/dotfiles/.config $HOME
sed -i "s/your-user-name/$USER/" $HOME/.config/nvim/coc-settings.json
[[ ! -d $HOME/stuff ]] && mkdir $HOME/stuff
cp -r /tmp/dotfiles/scripts $HOME/stuff
fi
echo "Installing work software..."
sudo apt install -y nginx php-fpm mariadb-server
sudo apt install php_mysql phpunit php-intl php-curl php-zip php-mbstring php-gd php-soap php-xml php-xmlrpc
sudo systemctl restart php7.3-fpm.service
wget -O /tmp/composer-setup.php https://getcomposer.org/installer
sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer
#sudo composer self-update
sudo apt -t buster-backports install -y nodejs npm
read -p "Do you want to install termite? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
[[ ! -d $HOME/programs ]] && mkdir $HOME/programs
cd $HOME/programs
echo "Installing termite dependencies..."
sudo apt install -y g++ libgtk-3-dev gtk-doc-tools gnutls-bin valac intltool libpcre2-dev
sudo apt install -y libglib3.0-cil-dev libgnutls28-dev libgirepository1.0-dev libxml2-utils gperf libtool
echo "Cloning termite..."
[[ ! -d vte-ng ]] && git clone https://github.com/thestinger/vte-ng.git
[[ ! -d termite ]] && git clone --recursive https://github.com/thestinger/termite.git
echo "Compiling and installing termite..."
echo export LIBRARY_PATH="/usr/include/gtk-3.0:$LIBRARY_PATH"
cd vte-ng && ./autogen.sh && make && sudo make install
cd ../termite && make && sudo make install
sudo ldconfig
echo "Installing termite terminfo..."
sudo mkdir -p /lib/terminfo/x
sudo ln -s /usr/local/share/terminfo/x/xterm-termite /lib/terminfo/x/xterm-termite
fi
read -p "Do you want to install Neovim? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
[[ ! -d $HOME/programs ]] && mkdir $HOME/programs
cd $HOME/programs
echo "Build dependencies..."
sudo apt install -y ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip
echo "NeoVim dependencies..."
sudo apt install -y gperf libluajit-5.1-dev libunibilium-dev libmsgpack-dev libtermkey-dev libvterm-dev libjemalloc-dev lua5.1 lua-lpeg lua-mpack lua-bitop
echo "NeoVim repo..."
[[ ! -d neovim ]] && git clone https://github.com/neovim/neovim
echo "NeoVim compile and install..."
cd neovim
make CMAKE_BUILD_TYPE=Release
sudo make install
pip3 install pynvim
sudo npm install -g neovim
echo "Installing phpactor..."
cd $HOME/programs
git clone https://github.com/phpactor/phpactor
cd phpactor
composer install
fi
|