-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINSTALL
More file actions
296 lines (209 loc) · 7.7 KB
/
INSTALL
File metadata and controls
296 lines (209 loc) · 7.7 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
# =============================================================================
# Slashsum - Installation Guide
# =============================================================================
# =============================================================================
# PREREQUISITES - Install sudo (if not available)
# =============================================================================
# Debian (as root)
su -
apt install sudo
usermod -aG sudo your_username
# Then log out and log in
# Arch Linux (as root)
su -
pacman -S sudo
echo "your_username ALL=(ALL:ALL) ALL" >> /etc/sudoers.d/your_username
# Then log out and log in
# Fedora (as root, if minimal install)
su -
dnf install sudo
usermod -aG wheel your_username
# Then log out and log in
# openSUSE (as root, if minimal install)
su -
zypper install sudo
usermod -aG wheel your_username
# Then log out and log in
# =============================================================================
# LINUX - Install from DEB (Ubuntu/Debian/Linux Mint)
# =============================================================================
sudo apt install ./slashsum_*_amd64.deb
hash -r
# Or with dpkg
sudo dpkg -i slashsum_*_amd64.deb
# =============================================================================
# LINUX - Portable (tar.gz) - Recommended
# =============================================================================
tar -xzvf slashsum-linux-amd64-portable.tar.gz
cd slashsum-linux-amd64-portable
# Run the install script
sudo ./install.sh
# Or manual installation
chmod +x slashsum
sudo mv slashsum /usr/local/bin/
# Run
slashsum --version
slashsum --help
# =============================================================================
# LINUX - Snap Store (Recommended)
# =============================================================================
## Install snapd first (if not already installed)
# Ubuntu (pre-installed)
# Debian
sudo apt install snapd
# Fedora
sudo dnf install snapd
sudo ln -s /var/lib/snapd/snap /snap
sudo systemctl enable --now snapd.socket
# openSUSE
sudo zypper install snapd
sudo systemctl enable --now snapd
# Arch Linux
sudo pacman -S snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
## Install from Snap Store (recommended - auto-updates)
sudo snap install slashsum
sudo snap connect slashsum:home
sudo snap connect slashsum:removable-media
hash -r
## Run
slashsum --version
# =============================================================================
# LINUX - Snap (Manual from GitHub Release)
# =============================================================================
## Install the snap package from release file
sudo snap install --dangerous slashsum_*_amd64.snap
sudo snap connect slashsum:home
sudo snap connect slashsum:removable-media
hash -r
## Run
slashsum --version
## Create short alias (optional)
sudo snap alias slashsum ss
# Then you can run with just: ss
# =============================================================================
# MACOS - Portable (tar.gz)
# =============================================================================
tar -xzvf slashsum-darwin-amd64-portable.tar.gz
cd slashsum-darwin-amd64-portable
# Run the install script
sudo ./install.sh
# Or manual installation
chmod +x slashsum
sudo mv slashsum /usr/local/bin/
# Run
slashsum --version
slashsum --help
# =============================================================================
# WINDOWS - System Installer (Admin required)
# =============================================================================
# Download and run: slashsum-setup-admin-v*.exe
# Right-click > "Run as administrator"
# Default install path: C:\Program Files\NDXDeveloper\Slashsum CLI\
# Open a new terminal and run:
slashsum --version
# =============================================================================
# WINDOWS - User Installer (No admin required)
# =============================================================================
# Download and run: slashsum-setup-user-v*.exe
# Default install path: %LOCALAPPDATA%\NDXDeveloper\Slashsum\
# Open a new terminal and run:
slashsum --version
# =============================================================================
# WINDOWS - Portable (ZIP)
# =============================================================================
# Download slashsum-windows-amd64-portable.zip
# Extract with PowerShell
Expand-Archive slashsum-windows-amd64-portable.zip -DestinationPath .
cd slashsum-windows-amd64-portable
# Run the install script (right-click > Run as administrator for system-wide)
.\install.bat
# Or manual installation: copy slashsum.exe to a folder in your PATH
# e.g., C:\Windows\ or create C:\Tools\ and add it to PATH
# Run
slashsum --version
slashsum --help
# =============================================================================
# BUILD FROM SOURCE
# =============================================================================
# Prerequisites: Rust toolchain (https://rustup.rs)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
# Clone and build
git clone https://github.com/NDXDeveloper/slashsum
cd slashsum
cargo build --release
# Binary will be at: target/release/slashsum
# Install
sudo cp target/release/slashsum /usr/local/bin/
# =============================================================================
# UNINSTALL
# =============================================================================
# DEB
sudo apt remove slashsum
# Snap
sudo snap remove slashsum
# Portable (Linux/macOS)
sudo rm /usr/local/bin/slashsum
# Or run the uninstall script from the portable package:
sudo ./uninstall.sh
# Windows (Installer)
# Use Control Panel > Programs > Uninstall
# Or: Settings > Apps > Slashsum > Uninstall
# Windows (Portable)
# Run the uninstall script from the portable package:
.\uninstall.bat
# Or manually delete slashsum.exe from your PATH folder
# =============================================================================
# USAGE
# =============================================================================
# Calculate checksums for a file
slashsum /path/to/file
# Save results to a .checksum file
slashsum /path/to/file --save
# Show help
slashsum --help
# Show version and license
slashsum --version
# =============================================================================
# TROUBLESHOOTING
# =============================================================================
## Check if slashsum is in PATH
which slashsum
slashsum --version
## Linux: Check binary permissions
ls -la /usr/local/bin/slashsum
# Should show: -rwxr-xr-x
## Linux: Make binary executable
sudo chmod +x /usr/local/bin/slashsum
## DEB: Fix dependency errors
sudo apt install -f
## DEB: Reinstall package
sudo apt install --reinstall ./slashsum_*_amd64.deb
## Snap: Check permissions
snap connections slashsum
## Snap: Connect missing permissions
sudo snap connect slashsum:home
sudo snap connect slashsum:removable-media
## Snap: View logs
snap logs slashsum
## Snap: Check confinement issues
journalctl -f | grep -i apparmor
## Check missing libraries (portable)
ldd slashsum | grep "not found"
## Windows: Check if in PATH
where slashsum
## Windows: Run from command line to see errors
cd "C:\Program Files\NDXDeveloper\Slashsum CLI"
slashsum.exe --version
## Windows: Refresh PATH without restarting
# PowerShell
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
## macOS: Allow unsigned binary (if blocked by Gatekeeper)
xattr -d com.apple.quarantine slashsum
# Or: System Preferences > Security & Privacy > Allow
## Permission denied on file
# Check file permissions
ls -la /path/to/file
# Run with appropriate permissions or change file ownership