machineconfig 1.94__py3-none-any.whl ā 1.95__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of machineconfig might be problematic. Click here for more details.
- machineconfig/cluster/data_transfer.py +2 -1
- machineconfig/cluster/job_params.py +1 -1
- machineconfig/cluster/script_execution.py +1 -1
- machineconfig/jobs/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/linux/msc/lid.sh +2 -4
- machineconfig/jobs/linux/msc/network.sh +3 -6
- machineconfig/jobs/python/check_installations.py +6 -6
- machineconfig/jobs/python/checkout_version.py +4 -4
- machineconfig/jobs/python/python_cargo_build_share.py +2 -2
- machineconfig/jobs/python/python_ve_symlink.py +4 -4
- machineconfig/jobs/python/vscode/api.py +2 -2
- machineconfig/jobs/python/vscode/link_ve.py +4 -4
- machineconfig/jobs/python/vscode/select_interpreter.py +4 -4
- machineconfig/jobs/python/vscode/sync_code.py +6 -6
- machineconfig/jobs/python_custom_installers/archive/ngrok.py +4 -4
- machineconfig/jobs/python_custom_installers/dev/aider.py +4 -4
- machineconfig/jobs/python_custom_installers/dev/alacritty.py +4 -4
- machineconfig/jobs/python_custom_installers/dev/brave.py +4 -4
- machineconfig/jobs/python_custom_installers/dev/bypass_paywall.py +4 -4
- machineconfig/jobs/python_custom_installers/dev/code.py +4 -4
- machineconfig/jobs/python_custom_installers/dev/docker.py +4 -4
- machineconfig/jobs/python_custom_installers/dev/docker_desktop.py +4 -4
- machineconfig/jobs/python_custom_installers/dev/espanso.py +8 -8
- machineconfig/jobs/python_custom_installers/dev/goes.py +4 -4
- machineconfig/jobs/python_custom_installers/dev/lvim.py +4 -4
- machineconfig/jobs/python_custom_installers/dev/nerdfont.py +4 -4
- machineconfig/jobs/python_custom_installers/dev/redis.py +4 -4
- machineconfig/jobs/python_custom_installers/dev/warp-cli.py +4 -4
- machineconfig/jobs/python_custom_installers/dev/wezterm.py +4 -4
- machineconfig/jobs/python_custom_installers/gh.py +6 -6
- machineconfig/jobs/python_custom_installers/hx.py +28 -58
- machineconfig/jobs/python_custom_installers/scripts/linux/brave.sh +4 -8
- machineconfig/jobs/python_custom_installers/scripts/linux/docker.sh +5 -10
- machineconfig/jobs/python_custom_installers/scripts/linux/docker_start.sh +3 -6
- machineconfig/jobs/python_custom_installers/scripts/linux/edge.sh +3 -6
- machineconfig/jobs/python_custom_installers/scripts/linux/nerdfont.sh +5 -10
- machineconfig/jobs/python_custom_installers/scripts/linux/pgsql.sh +4 -8
- machineconfig/jobs/python_custom_installers/scripts/linux/redis.sh +5 -10
- machineconfig/jobs/python_custom_installers/scripts/linux/timescaledb.sh +6 -12
- machineconfig/jobs/python_custom_installers/scripts/linux/vscode.sh +9 -8
- machineconfig/jobs/python_custom_installers/scripts/linux/warp-cli.sh +5 -10
- machineconfig/jobs/python_custom_installers/scripts/linux/wezterm.sh +3 -6
- machineconfig/jobs/python_generic_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python_linux_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/profile/shell.py +26 -47
- machineconfig/scripts/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/scripts/cloud/init.sh +9 -18
- machineconfig/scripts/linux/fire +5 -24
- machineconfig/scripts/linux/share_cloud.sh +6 -12
- machineconfig/scripts/python/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_copy.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_mount.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_repo_sync.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_sync.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/croshell.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops_devapps_install.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops_update_repos.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/fire_jobs.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/get_zellij_cmd.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/repos.cpython-311.pyc +0 -0
- machineconfig/scripts/python/archive/im2text.py +30 -30
- machineconfig/scripts/python/archive/tmate_conn.py +10 -13
- machineconfig/scripts/python/archive/tmate_start.py +12 -16
- machineconfig/scripts/python/choose_wezterm_theme.py +9 -18
- machineconfig/scripts/python/cloud_copy.py +38 -93
- machineconfig/scripts/python/cloud_manager.py +61 -53
- machineconfig/scripts/python/cloud_mount.py +23 -34
- machineconfig/scripts/python/cloud_repo_sync.py +20 -69
- machineconfig/scripts/python/cloud_sync.py +35 -45
- machineconfig/scripts/python/croshell.py +48 -73
- machineconfig/scripts/python/devops.py +50 -104
- machineconfig/scripts/python/devops_add_identity.py +41 -101
- machineconfig/scripts/python/devops_add_ssh_key.py +33 -140
- machineconfig/scripts/python/devops_backup_retrieve.py +23 -112
- machineconfig/scripts/python/devops_devapps_install.py +0 -4
- machineconfig/scripts/python/devops_update_repos.py +1 -1
- machineconfig/scripts/python/fire_jobs.py +73 -25
- machineconfig/scripts/python/helpers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/__pycache__/cloud_helpers.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/__pycache__/helpers2.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/__pycache__/helpers4.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/__pycache__/repo_sync_helpers.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/cloud_helpers.py +37 -34
- machineconfig/scripts/python/helpers/helpers2.py +17 -31
- machineconfig/scripts/python/helpers/repo_sync_helpers.py +19 -54
- machineconfig/scripts/python/pomodoro.py +1 -1
- machineconfig/scripts/python/repos.py +49 -34
- machineconfig/scripts/python/wifi_conn.py +5 -3
- machineconfig/scripts/windows/fire.ps1 +27 -15
- machineconfig/settings/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/settings/shells/ipy/profiles/default/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/settings/shells/ipy/profiles/default/startup/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/settings/shells/ipy/profiles/default/startup/__pycache__/playext.cpython-311.pyc +0 -0
- machineconfig/setup_linux/nix/cli_installation.sh +9 -18
- machineconfig/setup_linux/others/openssh-server_add_pub_key.sh +3 -6
- machineconfig/setup_linux/web_shortcuts/all.sh +5 -10
- machineconfig/setup_linux/web_shortcuts/ascii_art.sh +7 -14
- machineconfig/setup_linux/web_shortcuts/croshell.sh +6 -12
- machineconfig/setup_linux/web_shortcuts/interactive.sh +34 -68
- machineconfig/setup_linux/web_shortcuts/ssh.sh +8 -16
- machineconfig/setup_linux/web_shortcuts/update_system.sh +7 -14
- machineconfig/setup_windows/wt_and_pwsh/set_wt_settings.py +16 -12
- machineconfig/utils/ai/browser_user_wrapper.py +60 -45
- machineconfig/utils/ai/generate_file_checklist.py +4 -7
- machineconfig/utils/ai/url2md.py +13 -5
- machineconfig/utils/{utils_code.py ā code.py} +4 -10
- machineconfig/utils/installer.py +4 -10
- machineconfig/utils/{utils_links.py ā links.py} +9 -20
- machineconfig/utils/{utils_options.py ā options.py} +10 -20
- machineconfig/utils/{utils_path.py ā path.py} +28 -80
- machineconfig/utils/procs.py +26 -30
- machineconfig/utils/scheduling.py +11 -11
- machineconfig/utils/utils.py +12 -19
- machineconfig/utils/ve.py +5 -21
- machineconfig/utils/ve_utils/ve2.py +15 -2
- {machineconfig-1.94.dist-info ā machineconfig-1.95.dist-info}/METADATA +4 -2
- {machineconfig-1.94.dist-info ā machineconfig-1.95.dist-info}/RECORD +120 -118
- {machineconfig-1.94.dist-info ā machineconfig-1.95.dist-info}/WHEEL +1 -1
- {machineconfig-1.94.dist-info ā machineconfig-1.95.dist-info}/top_level.txt +0 -0
|
@@ -4,16 +4,14 @@
|
|
|
4
4
|
#=======================================================================
|
|
5
5
|
# This script installs various ASCII art and text formatting tools
|
|
6
6
|
|
|
7
|
-
echo """
|
|
8
|
-
#=======================================================================
|
|
7
|
+
echo """#=======================================================================
|
|
9
8
|
š¼ļø ASCII ART TOOLS | Installing terminal visualization packages
|
|
10
9
|
#=======================================================================
|
|
11
10
|
"""
|
|
12
11
|
|
|
13
12
|
# Alternate Nix installation method (commented reference)
|
|
14
13
|
# if [ -f "$HOME/.nix-profile/bin/nix-env" ]; then
|
|
15
|
-
# echo """
|
|
16
|
-
# #=======================================================================
|
|
14
|
+
# echo """# #=======================================================================
|
|
17
15
|
# š¦ NIX PACKAGE INSTALLATION | Using Nix package manager
|
|
18
16
|
# #=======================================================================
|
|
19
17
|
# """
|
|
@@ -25,8 +23,7 @@ echo """
|
|
|
25
23
|
|
|
26
24
|
# Check if cowsay is installed, if not install it
|
|
27
25
|
if [ ! -f "/usr/games/cowsay" ]; then
|
|
28
|
-
echo """
|
|
29
|
-
#=======================================================================
|
|
26
|
+
echo """ #=======================================================================
|
|
30
27
|
š® INSTALLING COWSAY | ASCII art animals with speech bubbles
|
|
31
28
|
#=======================================================================
|
|
32
29
|
|
|
@@ -40,8 +37,7 @@ fi
|
|
|
40
37
|
|
|
41
38
|
# Check if lolcat is installed, if not install it
|
|
42
39
|
if [ ! -f "/usr/games/lolcat" ]; then
|
|
43
|
-
echo """
|
|
44
|
-
#=======================================================================
|
|
40
|
+
echo """ #=======================================================================
|
|
45
41
|
š INSTALLING LOLCAT | Rainbow text colorizer for terminal
|
|
46
42
|
#=======================================================================
|
|
47
43
|
|
|
@@ -54,8 +50,7 @@ fi
|
|
|
54
50
|
|
|
55
51
|
# Check if boxes is installed, if not install it
|
|
56
52
|
if [ ! -f "/usr/bin/boxes" ]; then
|
|
57
|
-
echo """
|
|
58
|
-
#=======================================================================
|
|
53
|
+
echo """ #=======================================================================
|
|
59
54
|
š¦ INSTALLING BOXES | ASCII art box drawing around text
|
|
60
55
|
#=======================================================================
|
|
61
56
|
|
|
@@ -69,8 +64,7 @@ fi
|
|
|
69
64
|
|
|
70
65
|
# Check if figlet is installed, if not install it
|
|
71
66
|
if [ ! -f "/usr/bin/figlet" ]; then
|
|
72
|
-
echo """
|
|
73
|
-
#=======================================================================
|
|
67
|
+
echo """ #=======================================================================
|
|
74
68
|
š INSTALLING FIGLET | Large ASCII text generator
|
|
75
69
|
#=======================================================================
|
|
76
70
|
|
|
@@ -82,8 +76,7 @@ if [ ! -f "/usr/bin/figlet" ]; then
|
|
|
82
76
|
sudo nala install figlet -y || true
|
|
83
77
|
fi
|
|
84
78
|
|
|
85
|
-
echo """
|
|
86
|
-
#=======================================================================
|
|
79
|
+
echo """#=======================================================================
|
|
87
80
|
ā
INSTALLATION COMPLETE | All ASCII art tools installed successfully
|
|
88
81
|
#=======================================================================
|
|
89
82
|
|
|
@@ -4,14 +4,12 @@
|
|
|
4
4
|
#=======================================================================
|
|
5
5
|
# This script sets up the crocodile shell environment with all dependencies
|
|
6
6
|
|
|
7
|
-
echo """
|
|
8
|
-
#=======================================================================
|
|
7
|
+
echo """#=======================================================================
|
|
9
8
|
š ENVIRONMENT SETUP | Quick installation via URL shorteners
|
|
10
9
|
#=======================================================================
|
|
11
10
|
"""
|
|
12
11
|
|
|
13
|
-
echo """
|
|
14
|
-
#=======================================================================
|
|
12
|
+
echo """#=======================================================================
|
|
15
13
|
š PYTHON ENVIRONMENT | Setting up Python virtual environment
|
|
16
14
|
#=======================================================================
|
|
17
15
|
|
|
@@ -20,8 +18,7 @@ Setting up Python virtual environment via bit.ly shortlink...
|
|
|
20
18
|
# Alternative URL: curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/ve.sh | bash
|
|
21
19
|
curl bit.ly/cfgvelinux -L | bash
|
|
22
20
|
|
|
23
|
-
echo """
|
|
24
|
-
#=======================================================================
|
|
21
|
+
echo """#=======================================================================
|
|
25
22
|
š¦ CODE REPOSITORIES | Cloning project repositories
|
|
26
23
|
#=======================================================================
|
|
27
24
|
|
|
@@ -30,8 +27,7 @@ Cloning essential repositories via bit.ly shortlink...
|
|
|
30
27
|
# Alternative URL: curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/repos.sh | bash
|
|
31
28
|
curl bit.ly/cfgreposlinux -L | bash
|
|
32
29
|
|
|
33
|
-
echo """
|
|
34
|
-
#=======================================================================
|
|
30
|
+
echo """#=======================================================================
|
|
35
31
|
š CONFIGURATION SETUP | Creating symbolic links
|
|
36
32
|
#=======================================================================
|
|
37
33
|
|
|
@@ -40,8 +36,7 @@ Note: This may require sudo permissions for .ssh permissions
|
|
|
40
36
|
"""
|
|
41
37
|
source $HOME/code/machineconfig/src/machineconfig/setup_linux/symlinks.sh
|
|
42
38
|
|
|
43
|
-
echo """
|
|
44
|
-
#=======================================================================
|
|
39
|
+
echo """#=======================================================================
|
|
45
40
|
š SHELL RELOADING | Refreshing shell configuration
|
|
46
41
|
#=======================================================================
|
|
47
42
|
|
|
@@ -49,8 +44,7 @@ Reloading bash configuration...
|
|
|
49
44
|
"""
|
|
50
45
|
. ~/.bashrc
|
|
51
46
|
|
|
52
|
-
echo """
|
|
53
|
-
#=======================================================================
|
|
47
|
+
echo """#=======================================================================
|
|
54
48
|
āļø DEVELOPMENT TOOLS | Developer applications
|
|
55
49
|
#=======================================================================
|
|
56
50
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
|
|
3
|
-
echo """
|
|
4
|
-
#=======================================================================
|
|
3
|
+
echo """#=======================================================================
|
|
5
4
|
š¦ MACHINE CONFIGURATION | Interactive Installation Script
|
|
6
5
|
#=======================================================================
|
|
7
6
|
"""
|
|
@@ -9,75 +8,63 @@ echo """
|
|
|
9
8
|
read -p "š„ Install Apps [y]/n? " choice
|
|
10
9
|
|
|
11
10
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
12
|
-
echo """
|
|
13
|
-
#=======================================================================
|
|
11
|
+
echo """ #=======================================================================
|
|
14
12
|
š¦ APPLICATIONS | Installing base system applications
|
|
15
13
|
#=======================================================================
|
|
16
14
|
"""
|
|
17
15
|
curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/apps.sh | bash
|
|
18
16
|
else
|
|
19
|
-
echo """
|
|
20
|
-
āļø Skipping applications installation
|
|
17
|
+
echo """ āļø Skipping applications installation
|
|
21
18
|
"""
|
|
22
19
|
fi
|
|
23
20
|
|
|
24
|
-
echo """
|
|
25
|
-
#=======================================================================
|
|
21
|
+
echo """#=======================================================================
|
|
26
22
|
š SYSTEM UPDATE | Package management
|
|
27
23
|
#=======================================================================
|
|
28
24
|
"""
|
|
29
25
|
read -p "š Upgrade system packages [y]/n? " choice
|
|
30
26
|
|
|
31
27
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
32
|
-
echo """
|
|
33
|
-
š¦ Upgrading system packages...
|
|
28
|
+
echo """ š¦ Upgrading system packages...
|
|
34
29
|
"""
|
|
35
30
|
sudo nala upgrade -y
|
|
36
31
|
else
|
|
37
|
-
echo """
|
|
38
|
-
āļø Skipping system upgrade
|
|
32
|
+
echo """ āļø Skipping system upgrade
|
|
39
33
|
"""
|
|
40
34
|
fi
|
|
41
35
|
|
|
42
|
-
echo """
|
|
43
|
-
#=======================================================================
|
|
36
|
+
echo """#=======================================================================
|
|
44
37
|
š PYTHON ENVIRONMENT | Virtual environment setup
|
|
45
38
|
#=======================================================================
|
|
46
39
|
"""
|
|
47
40
|
read -p "š Install Python virtual environment 've' [y]/n? " choice
|
|
48
41
|
export ve_name="ve"
|
|
49
42
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
50
|
-
echo """
|
|
51
|
-
š§ Setting up Python environment...
|
|
43
|
+
echo """ š§ Setting up Python environment...
|
|
52
44
|
"""
|
|
53
45
|
curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/ve.sh | bash
|
|
54
46
|
curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/repos.sh | bash
|
|
55
47
|
else
|
|
56
|
-
echo """
|
|
57
|
-
āļø Skipping virtual environment setup
|
|
48
|
+
echo """ āļø Skipping virtual environment setup
|
|
58
49
|
"""
|
|
59
50
|
fi
|
|
60
51
|
|
|
61
|
-
echo """
|
|
62
|
-
#=======================================================================
|
|
52
|
+
echo """#=======================================================================
|
|
63
53
|
š SSH SERVER | Remote access setup
|
|
64
54
|
#=======================================================================
|
|
65
55
|
"""
|
|
66
56
|
read -p "š Install SSH Server [y]/n? " choice
|
|
67
57
|
choice=${choice:-y}
|
|
68
58
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
69
|
-
echo """
|
|
70
|
-
š§ Installing SSH server...
|
|
59
|
+
echo """ š§ Installing SSH server...
|
|
71
60
|
"""
|
|
72
61
|
sudo nala install openssh-server -y
|
|
73
62
|
else
|
|
74
|
-
echo """
|
|
75
|
-
āļø Skipping SSH server installation
|
|
63
|
+
echo """ āļø Skipping SSH server installation
|
|
76
64
|
"""
|
|
77
65
|
fi
|
|
78
66
|
|
|
79
|
-
echo """
|
|
80
|
-
#=======================================================================
|
|
67
|
+
echo """#=======================================================================
|
|
81
68
|
š DOTFILES MIGRATION | Configuration transfer options
|
|
82
69
|
#=======================================================================
|
|
83
70
|
|
|
@@ -97,64 +84,55 @@ echo """
|
|
|
97
84
|
(requires symlinks to be created first)
|
|
98
85
|
"""
|
|
99
86
|
|
|
100
|
-
echo """
|
|
101
|
-
#=======================================================================
|
|
87
|
+
echo """#=======================================================================
|
|
102
88
|
š DOTFILES STATUS | Configuration files check
|
|
103
89
|
#=======================================================================
|
|
104
90
|
"""
|
|
105
91
|
read -p "š Have you finished copying dotfiles? [y]/n? " choice
|
|
106
92
|
|
|
107
|
-
echo """
|
|
108
|
-
#=======================================================================
|
|
93
|
+
echo """#=======================================================================
|
|
109
94
|
š SYMLINK CREATION | Configuration setup
|
|
110
95
|
#=======================================================================
|
|
111
96
|
"""
|
|
112
97
|
read -p "š Create Symlinks (finish dotfiles transfer first) [y]/n? " choice
|
|
113
98
|
choice=${choice:-y}
|
|
114
99
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
115
|
-
echo """
|
|
116
|
-
š§ Creating symlinks and setting permissions...
|
|
100
|
+
echo """ š§ Creating symlinks and setting permissions...
|
|
117
101
|
"""
|
|
118
102
|
source $HOME/venvs/ve/bin/activate
|
|
119
103
|
python -m fire machineconfig.profile.create main --choice=all
|
|
120
104
|
sudo chmod 600 $HOME/.ssh/*
|
|
121
105
|
sudo chmod 700 $HOME/.ssh
|
|
122
106
|
else
|
|
123
|
-
echo """
|
|
124
|
-
āļø Skipping symlink creation
|
|
107
|
+
echo """ āļø Skipping symlink creation
|
|
125
108
|
"""
|
|
126
109
|
fi
|
|
127
110
|
|
|
128
|
-
echo """
|
|
129
|
-
#=======================================================================
|
|
111
|
+
echo """#=======================================================================
|
|
130
112
|
ā” CLI APPLICATIONS | Command-line tools installation
|
|
131
113
|
#=======================================================================
|
|
132
114
|
"""
|
|
133
115
|
read -p "ā” Install CLI Apps [y]/n? " choice
|
|
134
116
|
choice=${choice:-y}
|
|
135
117
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
136
|
-
echo """
|
|
137
|
-
š§ Installing CLI applications...
|
|
118
|
+
echo """ š§ Installing CLI applications...
|
|
138
119
|
"""
|
|
139
120
|
. $HOME/venvs/ve/bin/activate
|
|
140
121
|
python -m fire machineconfig.scripts.python.devops_devapps_install main --which=AllEssentials
|
|
141
122
|
. $HOME/.bashrc
|
|
142
123
|
else
|
|
143
|
-
echo """
|
|
144
|
-
āļø Skipping CLI apps installation
|
|
124
|
+
echo """ āļø Skipping CLI apps installation
|
|
145
125
|
"""
|
|
146
126
|
fi
|
|
147
127
|
|
|
148
|
-
echo """
|
|
149
|
-
#=======================================================================
|
|
128
|
+
echo """#=======================================================================
|
|
150
129
|
š ļø DEVELOPMENT TOOLS | Software development packages
|
|
151
130
|
#=======================================================================
|
|
152
131
|
"""
|
|
153
132
|
read -p "š ļø Install Development Tools [y]/n? " choice
|
|
154
133
|
choice=${choice:-y}
|
|
155
134
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
156
|
-
echo """
|
|
157
|
-
š§ Installing development tools...
|
|
135
|
+
echo """ š§ Installing development tools...
|
|
158
136
|
"""
|
|
159
137
|
. $HOME/venvs/ve/bin/activate
|
|
160
138
|
(curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh) || true
|
|
@@ -162,68 +140,57 @@ if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
|
162
140
|
sudo nala install ffmpeg -y
|
|
163
141
|
python -m fire machineconfig.scripts.python.devops_devapps_install main --which=wezterm,brave,code,docker,warp-cli
|
|
164
142
|
else
|
|
165
|
-
echo """
|
|
166
|
-
āļø Skipping development tools installation
|
|
143
|
+
echo """ āļø Skipping development tools installation
|
|
167
144
|
"""
|
|
168
145
|
fi
|
|
169
146
|
|
|
170
|
-
echo """
|
|
171
|
-
#=======================================================================
|
|
147
|
+
echo """#=======================================================================
|
|
172
148
|
š REPOSITORIES | Project code retrieval
|
|
173
149
|
#=======================================================================
|
|
174
150
|
"""
|
|
175
151
|
read -p "š Retrieve Repositories to ~/code [y]/n? " choice
|
|
176
152
|
choice=${choice:-y}
|
|
177
153
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
178
|
-
echo """
|
|
179
|
-
š Cloning repositories...
|
|
154
|
+
echo """ š Cloning repositories...
|
|
180
155
|
"""
|
|
181
156
|
repos ~/code --clone --cloud odg1
|
|
182
157
|
else
|
|
183
|
-
echo """
|
|
184
|
-
āļø Skipping repository retrieval
|
|
158
|
+
echo """ āļø Skipping repository retrieval
|
|
185
159
|
"""
|
|
186
160
|
fi
|
|
187
161
|
|
|
188
|
-
echo """
|
|
189
|
-
#=======================================================================
|
|
162
|
+
echo """#=======================================================================
|
|
190
163
|
š¾ DATA RETRIEVAL | Backup restoration
|
|
191
164
|
#=======================================================================
|
|
192
165
|
"""
|
|
193
166
|
read -p "š¾ Retrieve Data [y]/n? " choice
|
|
194
167
|
choice=${choice:-y}
|
|
195
168
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
196
|
-
echo """
|
|
197
|
-
š Retrieving data...
|
|
169
|
+
echo """ š Retrieving data...
|
|
198
170
|
"""
|
|
199
171
|
. $HOME/venvs/ve/bin/activate
|
|
200
172
|
python -m fire machineconfig.scripts.python.devops_backup_retrieve main --direction=RETRIEVE
|
|
201
173
|
else
|
|
202
|
-
echo """
|
|
203
|
-
āļø Skipping data retrieval
|
|
174
|
+
echo """ āļø Skipping data retrieval
|
|
204
175
|
"""
|
|
205
176
|
fi
|
|
206
177
|
|
|
207
|
-
echo """
|
|
208
|
-
#=======================================================================
|
|
178
|
+
echo """#=======================================================================
|
|
209
179
|
šØ ASCII ART | Terminal visualization tools
|
|
210
180
|
#=======================================================================
|
|
211
181
|
"""
|
|
212
182
|
read -p "šØ Install ASCII Art Libraries [y]/n? " choice
|
|
213
183
|
choice=${choice:-y}
|
|
214
184
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
|
215
|
-
echo """
|
|
216
|
-
šØ Installing ASCII art libraries...
|
|
185
|
+
echo """ šØ Installing ASCII art libraries...
|
|
217
186
|
"""
|
|
218
187
|
curl bit.ly/cfgasciiartlinux -L | sudo bash
|
|
219
188
|
else
|
|
220
|
-
echo """
|
|
221
|
-
āļø Skipping ASCII art installation
|
|
189
|
+
echo """ āļø Skipping ASCII art installation
|
|
222
190
|
"""
|
|
223
191
|
fi
|
|
224
192
|
|
|
225
|
-
# echo """
|
|
226
|
-
# š§ Thunderbird Setup Note:
|
|
193
|
+
# echo """# š§ Thunderbird Setup Note:
|
|
227
194
|
# Run after installing Thunderbird and starting it once:
|
|
228
195
|
# cd ~/AppData/Roaming/ThunderBird/Profiles
|
|
229
196
|
# \$res = ls
|
|
@@ -231,8 +198,7 @@ fi
|
|
|
231
198
|
# mv \$backup_folder \$name
|
|
232
199
|
# """
|
|
233
200
|
|
|
234
|
-
echo """
|
|
235
|
-
#=======================================================================
|
|
201
|
+
echo """#=======================================================================
|
|
236
202
|
⨠INSTALLATION COMPLETE | System setup finished successfully
|
|
237
203
|
#=======================================================================
|
|
238
204
|
|
|
@@ -4,29 +4,25 @@
|
|
|
4
4
|
#=======================================================================
|
|
5
5
|
# This script sets up SSH server with public key authentication
|
|
6
6
|
|
|
7
|
-
echo """
|
|
8
|
-
#=======================================================================
|
|
7
|
+
echo """#=======================================================================
|
|
9
8
|
š SSH KEY SETUP | Configuring SSH public key authentication
|
|
10
9
|
#=======================================================================
|
|
11
10
|
"""
|
|
12
11
|
|
|
13
12
|
if [ -z "$pubkey_url" ]; then
|
|
14
|
-
echo """
|
|
15
|
-
š No public key URL specified, using default GitHub URL
|
|
13
|
+
echo """ š No public key URL specified, using default GitHub URL
|
|
16
14
|
š URL: https://github.com/thisismygitrepo.keys
|
|
17
15
|
"""
|
|
18
16
|
pubkey_url='https://github.com/thisismygitrepo.keys' # (CHANGE APPROPRIATELY)
|
|
19
17
|
fi
|
|
20
18
|
|
|
21
19
|
if [ -z "$pubkey_string" ]; then
|
|
22
|
-
echo """
|
|
23
|
-
š„ Fetching public key from URL...
|
|
20
|
+
echo """ š„ Fetching public key from URL...
|
|
24
21
|
"""
|
|
25
22
|
export pubkey_string=$(curl --silent $pubkey_url)
|
|
26
23
|
fi
|
|
27
24
|
|
|
28
|
-
echo """
|
|
29
|
-
#=======================================================================
|
|
25
|
+
echo """#=======================================================================
|
|
30
26
|
š ļø SSH SERVER INSTALLATION | Standard SSH setup
|
|
31
27
|
#=======================================================================
|
|
32
28
|
|
|
@@ -34,27 +30,23 @@ Setting up OpenSSH server...
|
|
|
34
30
|
"""
|
|
35
31
|
curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/openssh_all.sh | sudo bash
|
|
36
32
|
|
|
37
|
-
echo """
|
|
38
|
-
#=======================================================================
|
|
33
|
+
echo """#=======================================================================
|
|
39
34
|
š WSL CONFIGURATION | Additional WSL-specific setup
|
|
40
35
|
#=======================================================================
|
|
41
36
|
"""
|
|
42
37
|
|
|
43
38
|
# For WSL only, also run the following:
|
|
44
39
|
if [ -z "$port" ]; then
|
|
45
|
-
echo """
|
|
46
|
-
š No port specified, using default port 2222
|
|
40
|
+
echo """ š No port specified, using default port 2222
|
|
47
41
|
"""
|
|
48
42
|
export port=2222
|
|
49
43
|
fi
|
|
50
44
|
|
|
51
|
-
echo """
|
|
52
|
-
š” Setting up WSL-specific SSH configuration on port $port...
|
|
45
|
+
echo """š” Setting up WSL-specific SSH configuration on port $port...
|
|
53
46
|
"""
|
|
54
47
|
curl https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/openssh_wsl.sh | sudo bash
|
|
55
48
|
|
|
56
|
-
echo """
|
|
57
|
-
#=======================================================================
|
|
49
|
+
echo """#=======================================================================
|
|
58
50
|
ā
SETUP COMPLETE | SSH server configured successfully
|
|
59
51
|
#=======================================================================
|
|
60
52
|
|
|
@@ -4,14 +4,12 @@
|
|
|
4
4
|
#=======================================================================
|
|
5
5
|
# This script provides methods to update Ubuntu system and kernel
|
|
6
6
|
|
|
7
|
-
echo """
|
|
8
|
-
#=======================================================================
|
|
7
|
+
echo """#=======================================================================
|
|
9
8
|
š SYSTEM UPGRADE OPTIONS | Ubuntu system maintenance
|
|
10
9
|
#=======================================================================
|
|
11
10
|
"""
|
|
12
11
|
|
|
13
|
-
echo """
|
|
14
|
-
#=======================================================================
|
|
12
|
+
echo """#=======================================================================
|
|
15
13
|
š¦ UBUNTU DISTRIBUTION UPGRADE | Full system version upgrade
|
|
16
14
|
#=======================================================================
|
|
17
15
|
|
|
@@ -21,8 +19,7 @@ echo """
|
|
|
21
19
|
# Uncomment the line below to actually run the upgrade
|
|
22
20
|
# do-release-upgrade
|
|
23
21
|
|
|
24
|
-
echo """
|
|
25
|
-
#=======================================================================
|
|
22
|
+
echo """#=======================================================================
|
|
26
23
|
š§ KERNEL UPDATE | Installing the latest Linux kernel
|
|
27
24
|
#=======================================================================
|
|
28
25
|
|
|
@@ -30,23 +27,19 @@ echo """
|
|
|
30
27
|
"""
|
|
31
28
|
wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
|
|
32
29
|
|
|
33
|
-
echo """
|
|
34
|
-
š ļø Installing script to system path...
|
|
30
|
+
echo """š ļø Installing script to system path...
|
|
35
31
|
"""
|
|
36
32
|
sudo install ubuntu-mainline-kernel.sh /usr/local/bin/
|
|
37
33
|
|
|
38
|
-
echo """
|
|
39
|
-
š Checking available kernel versions...
|
|
34
|
+
echo """š Checking available kernel versions...
|
|
40
35
|
"""
|
|
41
36
|
sudo ubuntu-mainline-kernel.sh -c
|
|
42
37
|
|
|
43
|
-
echo """
|
|
44
|
-
ā³ Installing the latest kernel (this may take several minutes)...
|
|
38
|
+
echo """ā³ Installing the latest kernel (this may take several minutes)...
|
|
45
39
|
"""
|
|
46
40
|
sudo ubuntu-mainline-kernel.sh -i -y
|
|
47
41
|
|
|
48
|
-
echo """
|
|
49
|
-
#=======================================================================
|
|
42
|
+
echo """#=======================================================================
|
|
50
43
|
ā
UPDATE COMPLETE | System upgrade finished
|
|
51
44
|
#=======================================================================
|
|
52
45
|
|
|
@@ -8,6 +8,8 @@ from machineconfig.utils.utils import LIBRARY_ROOT
|
|
|
8
8
|
from uuid import uuid4
|
|
9
9
|
import os
|
|
10
10
|
from typing import Any
|
|
11
|
+
from rich.console import Console
|
|
12
|
+
from rich.panel import Panel
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
"""
|
|
@@ -20,6 +22,7 @@ All settings are available on GitHub: https://aka.ms/terminal-profiles-schema
|
|
|
20
22
|
"""
|
|
21
23
|
|
|
22
24
|
|
|
25
|
+
console = Console()
|
|
23
26
|
assert env.system == 'Windows', 'This script is only for Windows.'
|
|
24
27
|
|
|
25
28
|
|
|
@@ -38,13 +41,14 @@ class TerminalSettings(object):
|
|
|
38
41
|
print(f"š Loading Windows Terminal settings from: {self.path}")
|
|
39
42
|
self.dat: dict[str, Any] = Read.json(self.path)
|
|
40
43
|
self.profs = L(self.dat["profiles"]["list"])
|
|
41
|
-
|
|
44
|
+
console = Console()
|
|
45
|
+
console.print(Panel(f"ā
Successfully loaded {len(self.profs)} profiles", title="[bold blue]Terminal Settings[/bold blue]", border_style="blue"))
|
|
42
46
|
|
|
43
47
|
def save_terminal_settings(self):
|
|
44
48
|
print(f"\nš¾ Saving terminal settings to: {self.path}")
|
|
45
49
|
self.dat["profiles"]["list"] = list(self.profs)
|
|
46
50
|
Save.json(obj=self.dat, path=self.path, indent=5)
|
|
47
|
-
print(
|
|
51
|
+
console.print(Panel("ā
Settings saved successfully!", title="[bold blue]Terminal Settings[/bold blue]", border_style="blue"))
|
|
48
52
|
|
|
49
53
|
# ========================= Terminal Settings =========================================
|
|
50
54
|
def update_default_settings(self):
|
|
@@ -57,7 +61,7 @@ class TerminalSettings(object):
|
|
|
57
61
|
self.dat["copyOnSelect"] = True
|
|
58
62
|
self.dat["profiles"]["defaults"]["padding"] = "0"
|
|
59
63
|
self.dat["profiles"]["defaults"]["useAcrylic"] = False
|
|
60
|
-
print(
|
|
64
|
+
console.print(Panel("ā
Default settings updated", title="[bold blue]Terminal Settings[/bold blue]", border_style="blue"))
|
|
61
65
|
|
|
62
66
|
# 1- Customizing Powershell========================================================
|
|
63
67
|
# as opposed to Windows Powershell
|
|
@@ -77,20 +81,20 @@ class TerminalSettings(object):
|
|
|
77
81
|
for idx, item in enumerate(self.profs):
|
|
78
82
|
if item["name"] == "PowerShell":
|
|
79
83
|
self.profs.list[idx].update(pwsh)
|
|
80
|
-
print(
|
|
84
|
+
console.print(Panel("ā
PowerShell profile customized successfully", title="[bold blue]Terminal Settings[/bold blue]", border_style="blue"))
|
|
81
85
|
break
|
|
82
86
|
else:
|
|
83
|
-
print(
|
|
87
|
+
console.print(Panel("ā Couldn't customize PowerShell because profile not found, try to install it first.", title="[bold red]Terminal Settings[/bold red]", border_style="red"))
|
|
84
88
|
|
|
85
89
|
def make_powershell_default_profile(self):
|
|
86
90
|
print("\nš Setting PowerShell as the default profile...")
|
|
87
91
|
for profile in self.profs:
|
|
88
92
|
if profile["name"] == "PowerShell":
|
|
89
93
|
self.dat["defaultProfile"] = profile["guid"]
|
|
90
|
-
print(
|
|
94
|
+
console.print(Panel("ā
PowerShell is now the default profile!", title="[bold blue]Terminal Settings[/bold blue]", border_style="blue"))
|
|
91
95
|
break
|
|
92
96
|
else:
|
|
93
|
-
print(
|
|
97
|
+
console.print(Panel("ā PowerShell profile was not found in the list of profiles and therefore was not made the default.", title="[bold red]Terminal Settings[/bold red]", border_style="red"))
|
|
94
98
|
|
|
95
99
|
def add_croshell(self):
|
|
96
100
|
print("\nš Adding croshell profile...")
|
|
@@ -105,11 +109,11 @@ class TerminalSettings(object):
|
|
|
105
109
|
for profile in self.profs:
|
|
106
110
|
if profile["name"] == "croshell":
|
|
107
111
|
profile.update(croshell)
|
|
108
|
-
print(
|
|
112
|
+
console.print(Panel("ā
Updated existing croshell profile", title="[bold blue]Terminal Settings[/bold blue]", border_style="blue"))
|
|
109
113
|
break
|
|
110
114
|
else:
|
|
111
115
|
self.profs.append(croshell)
|
|
112
|
-
print(
|
|
116
|
+
console.print(Panel("ā
Added new croshell profile", title="[bold blue]Terminal Settings[/bold blue]", border_style="blue"))
|
|
113
117
|
|
|
114
118
|
def add_ubuntu(self):
|
|
115
119
|
print("\nš§ Adding Ubuntu WSL profile...")
|
|
@@ -122,9 +126,9 @@ class TerminalSettings(object):
|
|
|
122
126
|
)
|
|
123
127
|
if self.profs.filter(lambda x: x["name"] == "Ubuntu").__len__() < 1:
|
|
124
128
|
self.profs.append(ubuntu)
|
|
125
|
-
print(
|
|
129
|
+
console.print(Panel("ā
Added Ubuntu WSL profile", title="[bold blue]Terminal Settings[/bold blue]", border_style="blue"))
|
|
126
130
|
else:
|
|
127
|
-
print(
|
|
131
|
+
console.print(Panel("ā¹ļø Ubuntu profile already exists", title="[bold blue]Terminal Settings[/bold blue]", border_style="blue"))
|
|
128
132
|
|
|
129
133
|
def standardize_profiles_order(self):
|
|
130
134
|
print("\nš Standardizing profile order...")
|
|
@@ -141,7 +145,7 @@ class TerminalSettings(object):
|
|
|
141
145
|
elif name == "Azure Cloud Shell": azure = profile
|
|
142
146
|
else: others.append(profile)
|
|
143
147
|
self.profs = L([item for item in [pwsh, croshell, ubuntu, wpwsh, cmd, azure] + others if item is not None])
|
|
144
|
-
print(
|
|
148
|
+
console.print(Panel("ā
Profile order standardized", title="[bold blue]Terminal Settings[/bold blue]", border_style="blue"))
|
|
145
149
|
|
|
146
150
|
|
|
147
151
|
def main():
|