-
Notifications
You must be signed in to change notification settings - Fork 21
/
install.sh
executable file
·133 lines (99 loc) · 3.89 KB
/
install.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
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
#!/bin/bash
# Default packages are for the configuration and corresponding .config folders
# Install packages after installing base Debian with no GUI
# xorg display server installation
sudo apt install -y xorg xbacklight xbindkeys xvkbd xinput xorg-dev
# Python installed for bumblebee-status. PACKAGE INCLUDES build-essential.
sudo apt install -y python3-pip
# Microcode for Intel/AMD
# sudo apt install -y amd64-microcode
sudo apt install -y intel-microcode
# Network Manager
sudo apt install -y network-manager-gnome
# Installation for Appearance management
sudo apt install -y lxappearance
# File Manager (eg. pcmanfm,krusader)
sudo apt install -y thunar xfce4-settings xfce4-power-manager xfce4-terminal
# Network File Tools/System Events
sudo apt install -y dialog mtools dosfstools avahi-daemon acpi acpid gvfs-backends
sudo systemctl enable avahi-daemon
sudo systemctl enable acpid
# Terminal (eg. terminator,kitty,xfce4-terminal,tilix)
sudo apt install -y kitty
# Sound packages
sudo apt install -y pulseaudio alsa-utils pavucontrol volumeicon-alsa
# Neofetch/HTOP
sudo apt install -y neofetch htop
# EXA installation
# replace ls command in .bashrc file with line below
# alias ls='exa -al --long --header --color=always --group-directories-first'
sudo apt install -y exa
# Printing and bluetooth (if needed)
sudo apt install -y cups
sudo apt install -y bluez blueman
sudo systemctl enable bluetooth
sudo systemctl enable cups
# Browser Installation (eg. chromium)
sudo apt install -y firefox-esr
# Desktop background browser/handler
# feh --bg-fill /path/to/directory
# example if you want to use in autostart.sh for i3-gaps
# sudo apt install -y nitrogen
sudo apt install -y feh
# Required packages for i3-gaps installation
sudo apt install -y meson dh-autoreconf libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev xcb libxcb1-dev libxcb-icccm4-dev libyajl-dev libev-dev libxcb-xkb-dev libxcb-cursor-dev libxkbcommon-dev libxcb-xinerama0-dev libxkbcommon-x11-dev libstartup-notification0-dev libxcb-randr0-dev libxcb-xrm0 libxcb-xrm-dev libxcb-shape0 libxcb-shape0-dev i3status
# Packages needed i3-gaps after installation
sudo apt install -y dmenu sxhkd numlockx rofi dunst libnotify-bin picom unzip geany simple-scan
# Command line text editor -- nano preinstalled -- I like micro but vim is great
sudo apt install -y micro
# sudo apt install -y neovim
# Install fonts
sudo apt install fonts-font-awesome fonts-powerline fonts-ubuntu fonts-liberation2 fonts-liberation fonts-terminus fonts-cascadia-code
# Create folders in user directory (eg. Documents,Downloads,etc.)
xdg-user-dirs-update
# Install i3 gaps
cd
cd Downloads
git clone https://github.com/Airblader/i3 i3-gaps
cd i3-gaps
mkdir -p build && cd build
meson --prefix /usr/local
ninja
sudo ninja install
# Dependencies for Ly Console Manager
sudo apt install -y libpam0g-dev libxcb-xkb-dev
# Install Ly Console Display Manager
cd
cd Downloads
git clone --recurse-submodules https://github.com/fairyglade/ly
cd ly/
make
sudo make install installsystemd
sudo systemctl enable ly.service
# Lightdm can be used instead of Ly (more common)
# comment out all ly console display if choosing lightdm
# sudo apt install -y lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings
# sudo systemctl enable lightdm
# XSessions and i3.desktop
if [[ ! -d /usr/share/xsessions ]]; then
sudo mkdir /usr/share/xsessions
fi
cat > ./temp << "EOF"
[Desktop Entry]
Encoding=UTF-8
Name=i3
Comment=Dynamic window manager
Exec=i3
Icon=i3
Type=XSession
EOF
sudo cp ./temp /usr/share/xsessions/i3.desktop;rm ./temp
########################################################
# End of script for default config
#
## These two scripts will install nerdfonts and copy my configuration files into the ~/.config directory
## Configuration uses
source ~/i3gaps-debian/nerdfonts.sh
source ~/i3gaps-debian/copyconf.sh
sudo apt autoremove
printf "\e[1;32mYou can now reboot! Thanks you.\e[0m\n"