Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dots
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CALIN Alexis
Dots
Commits
3eb09d34
Commit
3eb09d34
authored
2 years ago
by
CALIN Alexis
Browse files
Options
Downloads
Patches
Plain Diff
arkenfox setup added
parent
231b5a92
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.sh
+42
-13
42 additions, 13 deletions
setup.sh
with
42 additions
and
13 deletions
setup.sh
+
42
−
13
View file @
3eb09d34
...
@@ -42,19 +42,48 @@ if [ "$distro" == "Debian" ]; then
...
@@ -42,19 +42,48 @@ if [ "$distro" == "Debian" ]; then
sudo
apt purge gnome-games
sudo
apt purge gnome-games
sudo
systemctl
enable
--now
NetworkManager
&&
echo
'Enabled Network Manager'
sudo
systemctl
enable
--now
NetworkManager
&&
echo
'Enabled Network Manager'
echo
'Install VScode ? (y or n)'
echo
'Install VS Code? (y or n)'
read
yn
read
yn
if
[
"
$yn
"
==
'y'
]
;
then
if
[
"
$yn
"
==
'y'
]
;
then
# vscode
# Download and install VS Code
curl https://go.microsoft.com/fwlink/?LinkID
=
760868
&&
sudo
apt
install
./code
*
.deb
curl https://go.microsoft.com/fwlink/?LinkID
=
760868
-o
~/Downloads/code.deb
&&
sudo
apt
install
~/Downloads/code.deb
fi
# Clean up the downloaded deb file
echo
'Install Mullvad vpn ? (y or n)'
rm
~/Downloads/code.deb
read
yn
fi
if
[
"
$yn
"
==
'y'
]
;
then
# vscode
echo
'Install Mullvad VPN? (y or n)'
curl https://mullvad.net/download/app/deb/latest/
&&
sudo
apt
install
./Mullvad
*
.deb
&&
sudo
systemctl
enable
--now
mullvad-daemon
read
yn
fi
if
[
"
$yn
"
==
'y'
]
;
then
# Download and install Mullvad VPN
curl https://mullvad.net/download/app/deb/latest/
-o
~/Downloads/mullvad.deb
&&
sudo
apt
install
~/Downloads/mullvad.deb
# Enable and start Mullvad daemon
sudo
systemctl
enable
--now
mullvad-daemon
# Clean up the downloaded deb file
rm
~/Downloads/mullvad.deb
fi
echo
'Setup Arkenfox user.js ? (y or n)'
read
yn
if
[
"
$yn
"
==
'y'
]
;
then
sudo
apt
install
firefox-esr
curl
-o
user.js https://raw.githubusercontent.com/arkenfox/user.js/master/user.js
# Disable letterboxing
sed
-i
's/user_pref("privacy.resistFingerprinting.letterboxing", true);/user_pref("privacy.resistFingerprinting.letterboxing", false);/'
user.js
# Enable keyword.enabled preference
sed
-i
's/user_pref("keyword.enabled", false);/user_pref("keyword.enabled", true);/'
user.js
# Move user.js to Firefox profile directory with most files in it
most_files_dir
=
$(
find ~/.mozilla/firefox/
-maxdepth
1
-type
d
-name
'*.default*'
-exec
sh
-c
'echo "{} $(ls -1 "{}" | wc -l)"'
\;
|
sort
-k
2
-n
-r
|
head
-n1
|
cut
-d
" "
-f1
)
mv
user.js
"
${
most_files_dir
}
/user.js"
echo
"Arkenfox user.js file applied with letterboxing disabled and keyword.enabled preference set to true."
fi
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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