Fix duplicates optional
This commit is contained in:
parent
011bec4eae
commit
eff7cb4674
|
@ -1,7 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# ubuntu hangs if network interface is not optional
|
# ubuntu hangs if network interface is not optional
|
||||||
sudo sed -i '/dhcp4/a\ optional: yes' /etc/netplan/00-installer-config-wifi.yaml
|
if ! sudo grep -r optional /etc/netplan
|
||||||
sudo sed -i '/dhcp4/a\ optional: yes' /etc/netplan/00-installer-config.yaml
|
then
|
||||||
|
sudo sed -i '/dhcp4/a\ optional: yes' /etc/netplan/00-installer-config-wifi.yaml
|
||||||
|
sudo sed -i '/dhcp4/a\ optional: yes' /etc/netplan/00-installer-config.yaml
|
||||||
|
fi
|
||||||
# Add firefox repo
|
# Add firefox repo
|
||||||
echo "deb [trusted=yes] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null
|
echo "deb [trusted=yes] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null
|
||||||
# By default ubuntu installs firefox from snap, so I want to disable it
|
# By default ubuntu installs firefox from snap, so I want to disable it
|
||||||
|
@ -14,21 +17,23 @@ Pin-Priority: 1000
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y nala
|
sudo apt install -y nala
|
||||||
sudo nala install -y \
|
sudo nala install -y \
|
||||||
xorg `# for graphics` \
|
xorg `# for graphics` \
|
||||||
make `# for compiling gui` \
|
make `# for compiling gui` \
|
||||||
gcc `# for compiling gui` \
|
gcc `# for compiling gui` \
|
||||||
libx11-dev `# for compiling dwm` \
|
libx11-dev `# for compiling dwm` \
|
||||||
libxft-dev `# for compiling dwm` \
|
libxft-dev `# for compiling dwm` \
|
||||||
libxinerama-dev `# for compiling dwm` \
|
libxinerama-dev `# for compiling dwm` \
|
||||||
libharfbuzz-dev `# for compiling st` \
|
libharfbuzz-dev `# for compiling st` \
|
||||||
suckless-tools `# for dmenu` \
|
suckless-tools `# for dmenu` \
|
||||||
ncdu `# for disk usage analysys` \
|
ncdu `# for disk usage analysys` \
|
||||||
brightnessctl `# for keyboard backlight` \
|
brightnessctl `# for keyboard backlight` \
|
||||||
xcompmgr `# for st opacity` \
|
xcompmgr `# for st opacity` \
|
||||||
|
xwallpaper `# for background` \
|
||||||
|
ubuntu-wallpapers-jammy `# backgrounds` \
|
||||||
|
xfe `# classic file manager` \
|
||||||
|
surf `# suckless browser` \
|
||||||
telegram-desktop \
|
telegram-desktop \
|
||||||
slack \
|
slack \
|
||||||
xfe `# classic file manager` \
|
|
||||||
surf `# suckless browser` \
|
|
||||||
firefox \
|
firefox \
|
||||||
python3
|
python3
|
||||||
|
|
||||||
|
@ -47,7 +52,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for tool in dwm st sent
|
for tool in dwm st sent
|
||||||
do
|
do
|
||||||
# compiling dwm
|
# compiling dwm
|
||||||
if ! command -v $tool &> /dev/null
|
if ! command -v $tool &> /dev/null
|
||||||
then
|
then
|
||||||
|
@ -60,7 +65,7 @@ done
|
||||||
echo dwm > ~/.xinitrc # for starting dwm when startx
|
echo dwm > ~/.xinitrc # for starting dwm when startx
|
||||||
|
|
||||||
for tool in create_systemd_service.py create_systemd_timer.py set_brightness.sh update_gui.sh
|
for tool in create_systemd_service.py create_systemd_timer.py set_brightness.sh update_gui.sh
|
||||||
do
|
do
|
||||||
if ! command -v $tool &> /dev/null
|
if ! command -v $tool &> /dev/null
|
||||||
then
|
then
|
||||||
sudo cp $tool /usr/local/bin
|
sudo cp $tool /usr/local/bin
|
||||||
|
@ -81,5 +86,6 @@ echo "firefox &" > $HOME/.dwm/autostart.sh
|
||||||
echo "xcompmgr &" >> $HOME/.dwm/autostart.sh
|
echo "xcompmgr &" >> $HOME/.dwm/autostart.sh
|
||||||
echo "telegram-desktop &" >> $HOME/.dwm/autostart.sh
|
echo "telegram-desktop &" >> $HOME/.dwm/autostart.sh
|
||||||
echo "st &" >> $HOME/.dwm/autostart.sh
|
echo "st &" >> $HOME/.dwm/autostart.sh
|
||||||
echo "DISPLAY=:0 xhost +local:" >> $HOME/.dwm/autostart.sh # give permissions to display
|
echo "xhost +local:" >> $HOME/.dwm/autostart.sh # give permissions to display
|
||||||
|
echo "xwallpaper --stretch /usr/share/backgrounds/Blue_flower_by_Elena_Stravoravdi.jpg" >> $HOME/.dwm/autostart.sh # give permissions to display
|
||||||
chmod +x $HOME/.dwm/autostart.sh
|
chmod +x $HOME/.dwm/autostart.sh
|
||||||
|
|
Loading…
Reference in New Issue