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.

Files changed (120) hide show
  1. machineconfig/cluster/data_transfer.py +2 -1
  2. machineconfig/cluster/job_params.py +1 -1
  3. machineconfig/cluster/script_execution.py +1 -1
  4. machineconfig/jobs/__pycache__/__init__.cpython-311.pyc +0 -0
  5. machineconfig/jobs/linux/msc/lid.sh +2 -4
  6. machineconfig/jobs/linux/msc/network.sh +3 -6
  7. machineconfig/jobs/python/check_installations.py +6 -6
  8. machineconfig/jobs/python/checkout_version.py +4 -4
  9. machineconfig/jobs/python/python_cargo_build_share.py +2 -2
  10. machineconfig/jobs/python/python_ve_symlink.py +4 -4
  11. machineconfig/jobs/python/vscode/api.py +2 -2
  12. machineconfig/jobs/python/vscode/link_ve.py +4 -4
  13. machineconfig/jobs/python/vscode/select_interpreter.py +4 -4
  14. machineconfig/jobs/python/vscode/sync_code.py +6 -6
  15. machineconfig/jobs/python_custom_installers/archive/ngrok.py +4 -4
  16. machineconfig/jobs/python_custom_installers/dev/aider.py +4 -4
  17. machineconfig/jobs/python_custom_installers/dev/alacritty.py +4 -4
  18. machineconfig/jobs/python_custom_installers/dev/brave.py +4 -4
  19. machineconfig/jobs/python_custom_installers/dev/bypass_paywall.py +4 -4
  20. machineconfig/jobs/python_custom_installers/dev/code.py +4 -4
  21. machineconfig/jobs/python_custom_installers/dev/docker.py +4 -4
  22. machineconfig/jobs/python_custom_installers/dev/docker_desktop.py +4 -4
  23. machineconfig/jobs/python_custom_installers/dev/espanso.py +8 -8
  24. machineconfig/jobs/python_custom_installers/dev/goes.py +4 -4
  25. machineconfig/jobs/python_custom_installers/dev/lvim.py +4 -4
  26. machineconfig/jobs/python_custom_installers/dev/nerdfont.py +4 -4
  27. machineconfig/jobs/python_custom_installers/dev/redis.py +4 -4
  28. machineconfig/jobs/python_custom_installers/dev/warp-cli.py +4 -4
  29. machineconfig/jobs/python_custom_installers/dev/wezterm.py +4 -4
  30. machineconfig/jobs/python_custom_installers/gh.py +6 -6
  31. machineconfig/jobs/python_custom_installers/hx.py +28 -58
  32. machineconfig/jobs/python_custom_installers/scripts/linux/brave.sh +4 -8
  33. machineconfig/jobs/python_custom_installers/scripts/linux/docker.sh +5 -10
  34. machineconfig/jobs/python_custom_installers/scripts/linux/docker_start.sh +3 -6
  35. machineconfig/jobs/python_custom_installers/scripts/linux/edge.sh +3 -6
  36. machineconfig/jobs/python_custom_installers/scripts/linux/nerdfont.sh +5 -10
  37. machineconfig/jobs/python_custom_installers/scripts/linux/pgsql.sh +4 -8
  38. machineconfig/jobs/python_custom_installers/scripts/linux/redis.sh +5 -10
  39. machineconfig/jobs/python_custom_installers/scripts/linux/timescaledb.sh +6 -12
  40. machineconfig/jobs/python_custom_installers/scripts/linux/vscode.sh +9 -8
  41. machineconfig/jobs/python_custom_installers/scripts/linux/warp-cli.sh +5 -10
  42. machineconfig/jobs/python_custom_installers/scripts/linux/wezterm.sh +3 -6
  43. machineconfig/jobs/python_generic_installers/__pycache__/__init__.cpython-311.pyc +0 -0
  44. machineconfig/jobs/python_linux_installers/__pycache__/__init__.cpython-311.pyc +0 -0
  45. machineconfig/profile/shell.py +26 -47
  46. machineconfig/scripts/__pycache__/__init__.cpython-311.pyc +0 -0
  47. machineconfig/scripts/cloud/init.sh +9 -18
  48. machineconfig/scripts/linux/fire +5 -24
  49. machineconfig/scripts/linux/share_cloud.sh +6 -12
  50. machineconfig/scripts/python/__pycache__/__init__.cpython-311.pyc +0 -0
  51. machineconfig/scripts/python/__pycache__/cloud_copy.cpython-311.pyc +0 -0
  52. machineconfig/scripts/python/__pycache__/cloud_mount.cpython-311.pyc +0 -0
  53. machineconfig/scripts/python/__pycache__/cloud_repo_sync.cpython-311.pyc +0 -0
  54. machineconfig/scripts/python/__pycache__/cloud_sync.cpython-311.pyc +0 -0
  55. machineconfig/scripts/python/__pycache__/croshell.cpython-311.pyc +0 -0
  56. machineconfig/scripts/python/__pycache__/devops.cpython-311.pyc +0 -0
  57. machineconfig/scripts/python/__pycache__/devops_devapps_install.cpython-311.pyc +0 -0
  58. machineconfig/scripts/python/__pycache__/devops_update_repos.cpython-311.pyc +0 -0
  59. machineconfig/scripts/python/__pycache__/fire_jobs.cpython-311.pyc +0 -0
  60. machineconfig/scripts/python/__pycache__/get_zellij_cmd.cpython-311.pyc +0 -0
  61. machineconfig/scripts/python/__pycache__/repos.cpython-311.pyc +0 -0
  62. machineconfig/scripts/python/archive/im2text.py +30 -30
  63. machineconfig/scripts/python/archive/tmate_conn.py +10 -13
  64. machineconfig/scripts/python/archive/tmate_start.py +12 -16
  65. machineconfig/scripts/python/choose_wezterm_theme.py +9 -18
  66. machineconfig/scripts/python/cloud_copy.py +38 -93
  67. machineconfig/scripts/python/cloud_manager.py +61 -53
  68. machineconfig/scripts/python/cloud_mount.py +23 -34
  69. machineconfig/scripts/python/cloud_repo_sync.py +20 -69
  70. machineconfig/scripts/python/cloud_sync.py +35 -45
  71. machineconfig/scripts/python/croshell.py +48 -73
  72. machineconfig/scripts/python/devops.py +50 -104
  73. machineconfig/scripts/python/devops_add_identity.py +41 -101
  74. machineconfig/scripts/python/devops_add_ssh_key.py +33 -140
  75. machineconfig/scripts/python/devops_backup_retrieve.py +23 -112
  76. machineconfig/scripts/python/devops_devapps_install.py +0 -4
  77. machineconfig/scripts/python/devops_update_repos.py +1 -1
  78. machineconfig/scripts/python/fire_jobs.py +73 -25
  79. machineconfig/scripts/python/helpers/__pycache__/__init__.cpython-311.pyc +0 -0
  80. machineconfig/scripts/python/helpers/__pycache__/cloud_helpers.cpython-311.pyc +0 -0
  81. machineconfig/scripts/python/helpers/__pycache__/helpers2.cpython-311.pyc +0 -0
  82. machineconfig/scripts/python/helpers/__pycache__/helpers4.cpython-311.pyc +0 -0
  83. machineconfig/scripts/python/helpers/__pycache__/repo_sync_helpers.cpython-311.pyc +0 -0
  84. machineconfig/scripts/python/helpers/cloud_helpers.py +37 -34
  85. machineconfig/scripts/python/helpers/helpers2.py +17 -31
  86. machineconfig/scripts/python/helpers/repo_sync_helpers.py +19 -54
  87. machineconfig/scripts/python/pomodoro.py +1 -1
  88. machineconfig/scripts/python/repos.py +49 -34
  89. machineconfig/scripts/python/wifi_conn.py +5 -3
  90. machineconfig/scripts/windows/fire.ps1 +27 -15
  91. machineconfig/settings/__pycache__/__init__.cpython-311.pyc +0 -0
  92. machineconfig/settings/shells/ipy/profiles/default/__pycache__/__init__.cpython-311.pyc +0 -0
  93. machineconfig/settings/shells/ipy/profiles/default/startup/__pycache__/__init__.cpython-311.pyc +0 -0
  94. machineconfig/settings/shells/ipy/profiles/default/startup/__pycache__/playext.cpython-311.pyc +0 -0
  95. machineconfig/setup_linux/nix/cli_installation.sh +9 -18
  96. machineconfig/setup_linux/others/openssh-server_add_pub_key.sh +3 -6
  97. machineconfig/setup_linux/web_shortcuts/all.sh +5 -10
  98. machineconfig/setup_linux/web_shortcuts/ascii_art.sh +7 -14
  99. machineconfig/setup_linux/web_shortcuts/croshell.sh +6 -12
  100. machineconfig/setup_linux/web_shortcuts/interactive.sh +34 -68
  101. machineconfig/setup_linux/web_shortcuts/ssh.sh +8 -16
  102. machineconfig/setup_linux/web_shortcuts/update_system.sh +7 -14
  103. machineconfig/setup_windows/wt_and_pwsh/set_wt_settings.py +16 -12
  104. machineconfig/utils/ai/browser_user_wrapper.py +60 -45
  105. machineconfig/utils/ai/generate_file_checklist.py +4 -7
  106. machineconfig/utils/ai/url2md.py +13 -5
  107. machineconfig/utils/{utils_code.py → code.py} +4 -10
  108. machineconfig/utils/installer.py +4 -10
  109. machineconfig/utils/{utils_links.py → links.py} +9 -20
  110. machineconfig/utils/{utils_options.py → options.py} +10 -20
  111. machineconfig/utils/{utils_path.py → path.py} +28 -80
  112. machineconfig/utils/procs.py +26 -30
  113. machineconfig/utils/scheduling.py +11 -11
  114. machineconfig/utils/utils.py +12 -19
  115. machineconfig/utils/ve.py +5 -21
  116. machineconfig/utils/ve_utils/ve2.py +15 -2
  117. {machineconfig-1.94.dist-info → machineconfig-1.95.dist-info}/METADATA +4 -2
  118. {machineconfig-1.94.dist-info → machineconfig-1.95.dist-info}/RECORD +120 -118
  119. {machineconfig-1.94.dist-info → machineconfig-1.95.dist-info}/WHEEL +1 -1
  120. {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
- print(f"āœ… Successfully loaded {len(self.profs)} profiles\n{'-'*80}")
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(f"āœ… Settings saved successfully!\n{'-'*80}")
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(f"āœ… Default settings updated\n{'-'*80}")
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(f"āœ… PowerShell profile customized successfully\n{'-'*80}")
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(f"āŒ Couldn't customize PowerShell because profile not found, try to install it first.\n{'-'*80}")
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(f"āœ… PowerShell is now the default profile!\n{'-'*80}")
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(f"āŒ PowerShell profile was not found in the list of profiles and therefore was not made the default.\n{'-'*80}")
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(f"āœ… Updated existing croshell profile\n{'-'*80}")
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(f"āœ… Added new croshell profile\n{'-'*80}")
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(f"āœ… Added Ubuntu WSL profile\n{'-'*80}")
129
+ console.print(Panel("āœ… Added Ubuntu WSL profile", title="[bold blue]Terminal Settings[/bold blue]", border_style="blue"))
126
130
  else:
127
- print(f"ā„¹ļø Ubuntu profile already exists\n{'-'*80}")
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(f"āœ… Profile order standardized\n{'-'*80}")
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():