-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmint-xfce-setup
More file actions
78 lines (51 loc) · 2.31 KB
/
mint-xfce-setup
File metadata and controls
78 lines (51 loc) · 2.31 KB
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
#!/bin/bash
# Designed for Linux Mint 20 XFCE4 editions using xfconf
############## Basic Setup for script ##############
# Run in home dir
cd ~
# Set up error handling
set -e
trap 'echo Problem encountered on line $LINENO. Code: $?.' ERR
# Create output file in home directory
touch LM-auto-setup-output.txt
# Create Counter
counter=0
############## Get user input ##############
read -p "What apt packages should be REMOVED? (space between each) " removeentry
# thunderbird transmission hexchat rhythmbox telnet warpinator pix
read -p "What apt packages should be INSTALLED? (space between each) " installentry
# steam htop xscreensaver* pdftk-java
read -p "How many workspaces do you want? " workspacecount
############## WiFi powersave ##############
sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
counter=$((counter+1))
echo "${counter}) Thinkpad X1 Extreme WiFi powersave set up." | tee -a LM-auto-setup-output.txt
############## Remove unecessary apps ##############
sudo apt purge $removeentry -y
counter=$((counter+1))
echo "${counter}) Superfluous apps removed" | tee -a LM-auto-setup-output.txt
############## Update repos and upgrade default apps ##############
sudo apt update -qq
counter=$((counter+1))
echo "${counter}) APT update complete." | tee -a LM-auto-setup-output.txt
sudo apt upgrade -y
counter=$((counter+1))
echo "${counter}) APT upgrade complete." | tee -a LM-auto-setup-output.txt
############## Install ATP packages ##############
sudo apt install $installentry -y
counter=$((counter+1))
echo "${counter}) APT package installations complete." | tee -a LM-auto-setup-output.txt
############## Cleanup ##############
sudo apt autoclean -y
counter=$((counter+1))
echo "${counter}) Autoclean successful." | tee -a LM-auto-setup-output.txt
sudo apt autoremove -y
counter=$((counter+1))
echo "${counter}) Autoremove successful." | tee -a LM-auto-setup-output.txt
############## Set workspace count ##############
xfconf-query -c xfwm4 -p /general/workspace_count -s $workspacecount
counter=$((counter+1))
echo "${counter}) Workspaces set up." | tee -a LM-auto-setup-output.txt
############## Finished ##############
counter=$((counter+1))
echo -e "\n${counter}) Done. You should see ${counter} seqential outputs." | tee -a LM-auto-setup-output.txt