Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pc-setup-scripts
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andri Joos
pc-setup-scripts
Commits
37ddbaf1
Commit
37ddbaf1
authored
4 months ago
by
Andri Joos
Browse files
Options
Downloads
Plain Diff
Merge branch 'mainline'
parents
f564f1e3
ad99139b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
install.sh
+4
-0
4 additions, 0 deletions
install.sh
install_functions.sh
+24
-3
24 additions, 3 deletions
install_functions.sh
options.sh
+3
-0
3 additions, 0 deletions
options.sh
with
31 additions
and
3 deletions
install.sh
+
4
−
0
View file @
37ddbaf1
...
...
@@ -49,6 +49,7 @@ $protonvpn_key "$protonvpn_label" $protonvpn_enabled \
$flatseal_key
"
$flatseal_label
"
$flatseal_enabled
\
$wireguard_key
"
$wireguard_label
"
$wireguard_enabled
\
$remmina_key
"
$remmina_label
"
$remmina_enabled
\
$mainline_key
"
$mainline_label
"
$mainline_enabled
\
$swap_key
"
$swap_label
"
$swap_enabled
\
3>&1 1>&2 2>&3
)
IFS
=
' '
read
-a
selected_options
<<<
$selected_tags
...
...
@@ -187,6 +188,9 @@ do
elif [
$option
=
$remmina_key
]
then
install_remmina
elif [
$option
=
$mainline_key
]
then
install_mainline_kernel
elif [
$option
=
$swap_key
]
then
setup_swap
...
...
This diff is collapsed.
Click to expand it.
install_functions.sh
+
24
−
3
View file @
37ddbaf1
...
...
@@ -35,6 +35,14 @@ update_upgrade() {
else
echo
"flatpak does not exist; skipping update"
fi
if
command_exists mainline
then
sudo
mainline install-minor
||
true
echo
"kernel was updated to latest minor version, upgrading to a major version must be done manually"
else
echo
"mainline does not exist; skipping update"
fi
}
flatpak_add_repo
()
{
...
...
@@ -214,11 +222,12 @@ install_dl_driver() {
install_curl
display_link_keyring
=
"
$downloads_path
/synaptics-repository-keyring.deb"
curl https://www.synaptics.com/sites/default/files/Ubuntu/pool/stable/main/all/synaptics-repository-keyring.deb
-o
$display_link_keyring
sudo
apt
install
-y
$display_link_keyring
$
apt
_
install
_cmd
$display_link_keyring
sudo rm
$display_link_keyring
sudo
apt update
sudo
apt
install
-y
displaylink-driver
$apt_install_cmd
gcc-14
# newer kernels require gcc 14
$apt_install_cmd
displaylink-driver
}
install_obsidian
()
{
...
...
@@ -365,3 +374,15 @@ install_wireguard() {
install_remmina
()
{
install_flatpak_app org.remmina.Remmina
}
install_mainline_kernel
()
{
sudo
add-apt-repository ppa:cappelikan/ppa
$apt_update_cmd
$apt_install_cmd
mainline
mainline list
echo
"if displaylink driver is installed, make sure that displaylink evdi supports the kernel: https://github.com/DisplayLink/evdi/releases"
read
-p
"Kernel version (e.g. 6.11.10): "
mainline_kernel_version
sudo
mainline
install
$mainline_kernel_version
||
true
}
This diff is collapsed.
Click to expand it.
options.sh
+
3
−
0
View file @
37ddbaf1
...
...
@@ -46,6 +46,7 @@ protonvpn_enabled=$checkbox_unchecked
flatseal_enabled
=
$checkbox_unchecked
wireguard_enabled
=
$checkbox_unchecked
remmina_enabled
=
$checkbox_unchecked
mainline_enabled
=
$checkbox_unchecked
swap_enabled
=
$checkbox_unchecked
# labels
...
...
@@ -92,6 +93,7 @@ protonvpn_key="proton_vpn"
flatseal_key
=
"flatseal"
wireguard_key
=
"wireguard"
remmina_key
=
"remmina"
mainline_key
=
"mainline"
swap_key
=
"swap"
# show text
...
...
@@ -138,4 +140,5 @@ protonvpn_label="proton-vpn"
flatseal_label
=
"flatseal"
wireguard_label
=
"wireguard"
remmina_label
=
"remmina"
mainline_label
=
"mainline kernel"
swap_label
=
"swap"
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment