@fredlackey/devutils 0.0.1 → 0.0.3
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.
- package/README.md +5 -5
- package/package.json +1 -1
- package/src/commands/install.js +374 -36
- package/src/installs/adobe-creative-cloud.js +527 -25
- package/src/installs/adobe-creative-cloud.md +605 -0
- package/src/installs/appcleaner.js +303 -26
- package/src/installs/appcleaner.md +699 -0
- package/src/installs/apt-transport-https.js +390 -0
- package/src/installs/apt-transport-https.md +678 -0
- package/src/installs/atomicparsley.js +624 -26
- package/src/installs/atomicparsley.md +795 -0
- package/src/installs/aws-cli.js +779 -26
- package/src/installs/aws-cli.md +727 -0
- package/src/installs/balena-etcher.js +688 -26
- package/src/installs/balena-etcher.md +761 -0
- package/src/installs/bambu-studio.js +912 -26
- package/src/installs/bambu-studio.md +780 -0
- package/src/installs/bash-completion.js +554 -23
- package/src/installs/bash-completion.md +833 -0
- package/src/installs/bash.js +399 -26
- package/src/installs/bash.md +993 -0
- package/src/installs/beyond-compare.js +585 -26
- package/src/installs/beyond-compare.md +813 -0
- package/src/installs/build-essential.js +511 -26
- package/src/installs/build-essential.md +977 -0
- package/src/installs/ca-certificates.js +618 -0
- package/src/installs/ca-certificates.md +937 -0
- package/src/installs/caffeine.js +490 -26
- package/src/installs/caffeine.md +839 -0
- package/src/installs/camtasia.js +577 -25
- package/src/installs/camtasia.md +762 -0
- package/src/installs/chatgpt.js +458 -26
- package/src/installs/chatgpt.md +814 -0
- package/src/installs/chocolatey.js +447 -0
- package/src/installs/chocolatey.md +661 -0
- package/src/installs/chrome-canary.js +472 -26
- package/src/installs/chrome-canary.md +641 -0
- package/src/installs/chromium.js +645 -26
- package/src/installs/chromium.md +838 -0
- package/src/installs/claude-code.js +558 -26
- package/src/installs/claude-code.md +1173 -0
- package/src/installs/curl.js +361 -26
- package/src/installs/curl.md +714 -0
- package/src/installs/cursor.js +561 -26
- package/src/installs/cursor.md +970 -0
- package/src/installs/dbschema.js +674 -26
- package/src/installs/dbschema.md +925 -0
- package/src/installs/dependencies.md +435 -0
- package/src/installs/development-tools.js +600 -0
- package/src/installs/development-tools.md +977 -0
- package/src/installs/docker.js +1010 -25
- package/src/installs/docker.md +1109 -0
- package/src/installs/drawio.js +1001 -26
- package/src/installs/drawio.md +795 -0
- package/src/installs/elmedia-player.js +328 -25
- package/src/installs/elmedia-player.md +556 -0
- package/src/installs/ffmpeg.js +870 -25
- package/src/installs/ffmpeg.md +852 -0
- package/src/installs/file.js +464 -0
- package/src/installs/file.md +987 -0
- package/src/installs/gemini-cli.js +793 -26
- package/src/installs/gemini-cli.md +1153 -0
- package/src/installs/git.js +382 -26
- package/src/installs/git.md +907 -0
- package/src/installs/gitego.js +931 -26
- package/src/installs/gitego.md +1172 -0
- package/src/installs/go.js +913 -26
- package/src/installs/go.md +958 -0
- package/src/installs/google-chrome.js +801 -25
- package/src/installs/google-chrome.md +862 -0
- package/src/installs/gpg.js +412 -73
- package/src/installs/gpg.md +1056 -0
- package/src/installs/homebrew.js +1015 -26
- package/src/installs/homebrew.md +988 -0
- package/src/installs/imageoptim.js +950 -26
- package/src/installs/imageoptim.md +1119 -0
- package/src/installs/installers.json +2297 -0
- package/src/installs/jq.js +382 -26
- package/src/installs/jq.md +809 -0
- package/src/installs/keyboard-maestro.js +701 -26
- package/src/installs/keyboard-maestro.md +825 -0
- package/src/installs/latex.js +771 -26
- package/src/installs/latex.md +1095 -0
- package/src/installs/lftp.js +338 -26
- package/src/installs/lftp.md +907 -0
- package/src/installs/lsb-release.js +346 -0
- package/src/installs/lsb-release.md +814 -0
- package/src/installs/messenger.js +829 -26
- package/src/installs/messenger.md +900 -0
- package/src/installs/microsoft-office.js +550 -26
- package/src/installs/microsoft-office.md +760 -0
- package/src/installs/microsoft-teams.js +782 -25
- package/src/installs/microsoft-teams.md +886 -0
- package/src/installs/node.js +886 -26
- package/src/installs/node.md +1153 -0
- package/src/installs/nordpass.js +698 -26
- package/src/installs/nordpass.md +921 -0
- package/src/installs/nvm.js +977 -26
- package/src/installs/nvm.md +1057 -0
- package/src/installs/openssh.js +734 -64
- package/src/installs/openssh.md +1056 -0
- package/src/installs/pandoc.js +644 -26
- package/src/installs/pandoc.md +1036 -0
- package/src/installs/pinentry.js +492 -26
- package/src/installs/pinentry.md +1142 -0
- package/src/installs/pngyu.js +851 -26
- package/src/installs/pngyu.md +896 -0
- package/src/installs/postman.js +781 -26
- package/src/installs/postman.md +940 -0
- package/src/installs/procps.js +425 -0
- package/src/installs/procps.md +851 -0
- package/src/installs/safari-tech-preview.js +355 -25
- package/src/installs/safari-tech-preview.md +533 -0
- package/src/installs/sfnt2woff.js +640 -26
- package/src/installs/sfnt2woff.md +795 -0
- package/src/installs/shellcheck.js +463 -26
- package/src/installs/shellcheck.md +1005 -0
- package/src/installs/slack.js +722 -25
- package/src/installs/slack.md +865 -0
- package/src/installs/snagit.js +566 -25
- package/src/installs/snagit.md +844 -0
- package/src/installs/software-properties-common.js +372 -0
- package/src/installs/software-properties-common.md +805 -0
- package/src/installs/spotify.js +858 -25
- package/src/installs/spotify.md +901 -0
- package/src/installs/studio-3t.js +803 -26
- package/src/installs/studio-3t.md +918 -0
- package/src/installs/sublime-text.js +780 -25
- package/src/installs/sublime-text.md +914 -0
- package/src/installs/superwhisper.js +687 -25
- package/src/installs/superwhisper.md +630 -0
- package/src/installs/tailscale.js +727 -26
- package/src/installs/tailscale.md +1100 -0
- package/src/installs/tar.js +389 -0
- package/src/installs/tar.md +946 -0
- package/src/installs/termius.js +780 -26
- package/src/installs/termius.md +844 -0
- package/src/installs/terraform.js +761 -26
- package/src/installs/terraform.md +899 -0
- package/src/installs/tidal.js +752 -25
- package/src/installs/tidal.md +864 -0
- package/src/installs/tmux.js +328 -26
- package/src/installs/tmux.md +1030 -0
- package/src/installs/tree.js +393 -26
- package/src/installs/tree.md +833 -0
- package/src/installs/unzip.js +460 -0
- package/src/installs/unzip.md +879 -0
- package/src/installs/vim.js +403 -26
- package/src/installs/vim.md +1040 -0
- package/src/installs/vlc.js +803 -26
- package/src/installs/vlc.md +927 -0
- package/src/installs/vscode.js +825 -26
- package/src/installs/vscode.md +1002 -0
- package/src/installs/wget.js +415 -0
- package/src/installs/wget.md +791 -0
- package/src/installs/whatsapp.js +710 -25
- package/src/installs/whatsapp.md +854 -0
- package/src/installs/winpty.js +352 -0
- package/src/installs/winpty.md +620 -0
- package/src/installs/woff2.js +535 -26
- package/src/installs/woff2.md +977 -0
- package/src/installs/wsl.js +572 -0
- package/src/installs/wsl.md +699 -0
- package/src/installs/xcode-clt.js +520 -0
- package/src/installs/xcode-clt.md +351 -0
- package/src/installs/xcode.js +542 -26
- package/src/installs/xcode.md +573 -0
- package/src/installs/yarn.js +806 -26
- package/src/installs/yarn.md +1074 -0
- package/src/installs/yq.js +636 -26
- package/src/installs/yq.md +944 -0
- package/src/installs/yt-dlp.js +683 -26
- package/src/installs/yt-dlp.md +946 -0
- package/src/installs/yum-utils.js +297 -0
- package/src/installs/yum-utils.md +648 -0
- package/src/installs/zoom.js +740 -25
- package/src/installs/zoom.md +884 -0
- package/src/scripts/README.md +567 -45
- package/src/scripts/STATUS.md +208 -0
- package/src/scripts/afk.js +395 -7
- package/src/scripts/backup-all.js +731 -9
- package/src/scripts/backup-source.js +711 -8
- package/src/scripts/brewd.js +373 -7
- package/src/scripts/brewi.js +505 -9
- package/src/scripts/brewr.js +512 -9
- package/src/scripts/brews.js +462 -9
- package/src/scripts/brewu.js +488 -7
- package/src/scripts/c.js +185 -7
- package/src/scripts/ccurl.js +325 -8
- package/src/scripts/certbot-crontab-init.js +488 -8
- package/src/scripts/certbot-init.js +641 -9
- package/src/scripts/ch.js +339 -7
- package/src/scripts/claude-danger.js +253 -8
- package/src/scripts/clean-dev.js +419 -8
- package/src/scripts/clear-dns-cache.js +525 -7
- package/src/scripts/clone.js +417 -7
- package/src/scripts/code-all.js +420 -7
- package/src/scripts/count-files.js +195 -8
- package/src/scripts/count-folders.js +195 -8
- package/src/scripts/count.js +248 -8
- package/src/scripts/d.js +203 -7
- package/src/scripts/datauri.js +373 -8
- package/src/scripts/delete-files.js +363 -7
- package/src/scripts/docker-clean.js +410 -8
- package/src/scripts/dp.js +426 -7
- package/src/scripts/e.js +375 -9
- package/src/scripts/empty-trash.js +497 -7
- package/src/scripts/evm.js +428 -9
- package/src/scripts/fetch-github-repos.js +441 -10
- package/src/scripts/get-channel.js +329 -8
- package/src/scripts/get-course.js +384 -11
- package/src/scripts/get-dependencies.js +290 -9
- package/src/scripts/get-folder.js +783 -10
- package/src/scripts/get-tunes.js +411 -10
- package/src/scripts/get-video.js +352 -9
- package/src/scripts/git-backup.js +561 -9
- package/src/scripts/git-clone.js +477 -9
- package/src/scripts/git-pup.js +303 -7
- package/src/scripts/git-push.js +380 -8
- package/src/scripts/h.js +607 -9
- package/src/scripts/hide-desktop-icons.js +483 -7
- package/src/scripts/hide-hidden-files.js +522 -7
- package/src/scripts/install-dependencies-from.js +440 -9
- package/src/scripts/ips.js +647 -10
- package/src/scripts/iso.js +354 -8
- package/src/scripts/killni.js +561 -7
- package/src/scripts/ll.js +451 -8
- package/src/scripts/local-ip.js +310 -8
- package/src/scripts/m.js +508 -8
- package/src/scripts/map.js +293 -8
- package/src/scripts/mkd.js +287 -7
- package/src/scripts/ncu-update-all.js +441 -8
- package/src/scripts/nginx-init.js +702 -12
- package/src/scripts/npmi.js +366 -7
- package/src/scripts/o.js +495 -8
- package/src/scripts/org-by-date.js +321 -7
- package/src/scripts/p.js +208 -7
- package/src/scripts/packages.js +313 -8
- package/src/scripts/path.js +209 -7
- package/src/scripts/ports.js +582 -8
- package/src/scripts/q.js +290 -8
- package/src/scripts/refresh-files.js +378 -10
- package/src/scripts/remove-smaller-files.js +500 -8
- package/src/scripts/rename-files-with-date.js +517 -9
- package/src/scripts/resize-image.js +523 -9
- package/src/scripts/rm-safe.js +653 -8
- package/src/scripts/s.js +525 -9
- package/src/scripts/set-git-public.js +349 -7
- package/src/scripts/show-desktop-icons.js +459 -7
- package/src/scripts/show-hidden-files.js +456 -7
- package/src/scripts/tpa.js +265 -8
- package/src/scripts/tpo.js +264 -7
- package/src/scripts/u.js +489 -7
- package/src/scripts/vpush.js +422 -8
- package/src/scripts/y.js +267 -7
- package/src/utils/common/os.js +94 -2
- package/src/utils/ubuntu/apt.js +13 -7
- package/src/utils/windows/choco.js +82 -26
- package/src/utils/windows/winget.js +89 -27
|
@@ -0,0 +1,925 @@
|
|
|
1
|
+
# Installing DbSchema
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
DbSchema is a visual database design and management tool that supports schema design, documentation generation, data exploration, and SQL query building. Built with Java and JavaFX, DbSchema works with over 70 databases including PostgreSQL, MySQL, SQL Server, Oracle, SQLite, MongoDB, and many others. The application connects to databases via JDBC drivers and provides features such as ER diagram visualization, schema comparison and synchronization, HTML5/PDF/Markdown documentation generation, and random data generation for testing.
|
|
6
|
+
|
|
7
|
+
DbSchema is available for macOS, Windows, and Linux. It offers a free Community Edition and a paid Pro Edition with a 15-day trial included in all downloads. No registration is required to download and use DbSchema.
|
|
8
|
+
|
|
9
|
+
## Dependencies
|
|
10
|
+
|
|
11
|
+
### macOS (Homebrew)
|
|
12
|
+
- **Required:**
|
|
13
|
+
- `Homebrew` - Install via `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
|
|
14
|
+
- **Optional:** None
|
|
15
|
+
- **Auto-installed:** None
|
|
16
|
+
|
|
17
|
+
### Ubuntu (APT/Snap)
|
|
18
|
+
- **Required:**
|
|
19
|
+
- `curl` - Install via `sudo apt install curl` (used for downloading the .deb package; usually pre-installed)
|
|
20
|
+
- `apt-get` - Pre-installed on Ubuntu/Debian systems
|
|
21
|
+
- **Optional:** None
|
|
22
|
+
- **Auto-installed:**
|
|
23
|
+
- JDBC drivers (downloaded automatically by DbSchema when connecting to databases)
|
|
24
|
+
- Package dependencies resolved automatically by apt-get during .deb installation
|
|
25
|
+
|
|
26
|
+
### Raspberry Pi OS (APT/Snap)
|
|
27
|
+
- **Required:**
|
|
28
|
+
- `curl` - Install via `sudo apt install curl` (used for downloading the ARM64 tar.gz package; usually pre-installed)
|
|
29
|
+
- 64-bit ARM architecture (aarch64) - Verify with `uname -m`
|
|
30
|
+
- `tar` - Pre-installed on Raspberry Pi OS (used for extracting the package)
|
|
31
|
+
- `sudo` privileges - Required for installation to /opt/DbSchema
|
|
32
|
+
- **Optional:**
|
|
33
|
+
- `box64` - Install via `sudo apt install box64` (for running x86_64 version via emulation if ARM64 has compatibility issues)
|
|
34
|
+
- **Auto-installed:** None
|
|
35
|
+
- **Important Note:** DbSchema ARM64 support is limited on Raspberry Pi. Users may experience JavaFX compatibility issues. Raspberry Pi 4 or later with 4 GB+ RAM recommended.
|
|
36
|
+
|
|
37
|
+
### Amazon Linux (DNF/YUM)
|
|
38
|
+
- **Required:**
|
|
39
|
+
- `curl` - Install via `sudo dnf install curl` or `sudo yum install curl` (used for downloading the .rpm package)
|
|
40
|
+
- `dnf` or `yum` - Pre-installed on Amazon Linux/RHEL systems (dnf preferred on AL2023, RHEL 8+; yum on AL2, CentOS 7)
|
|
41
|
+
- **Optional:** None
|
|
42
|
+
- **Auto-installed:**
|
|
43
|
+
- JDBC drivers (downloaded automatically by DbSchema when connecting to databases)
|
|
44
|
+
- Package dependencies resolved automatically by dnf/yum during .rpm installation
|
|
45
|
+
|
|
46
|
+
### Windows (Chocolatey/winget)
|
|
47
|
+
- **Required:**
|
|
48
|
+
- `PowerShell` - Pre-installed on Windows 10/11 (Windows PowerShell 5.1 or PowerShell Core 7+)
|
|
49
|
+
- `msiexec.exe` - Pre-installed on Windows (used for silent MSI installation)
|
|
50
|
+
- **Optional:** None
|
|
51
|
+
- **Auto-installed:**
|
|
52
|
+
- JDBC drivers (downloaded automatically by DbSchema when connecting to databases)
|
|
53
|
+
|
|
54
|
+
### Git Bash (Manual/Portable)
|
|
55
|
+
- **Required:**
|
|
56
|
+
- `PowerShell` - Pre-installed on Windows 10/11 (accessed via `powershell.exe` from Git Bash)
|
|
57
|
+
- `msiexec.exe` - Pre-installed on Windows (used for silent MSI installation)
|
|
58
|
+
- **Optional:** None
|
|
59
|
+
- **Auto-installed:**
|
|
60
|
+
- JDBC drivers (downloaded automatically by DbSchema when connecting to databases)
|
|
61
|
+
- **Note:** Git Bash uses the Windows installation of DbSchema. The installer is run via PowerShell from within Git Bash.
|
|
62
|
+
|
|
63
|
+
## Prerequisites
|
|
64
|
+
|
|
65
|
+
Before installing DbSchema on any platform, ensure:
|
|
66
|
+
|
|
67
|
+
1. **Internet connectivity** - Required for downloading the installer
|
|
68
|
+
2. **Sufficient disk space** - At least 500 MB available
|
|
69
|
+
3. **Display** - DbSchema is a graphical desktop application and requires a display (X11, Wayland, or native GUI)
|
|
70
|
+
4. **Administrative privileges** - Required on most platforms for system-wide installation
|
|
71
|
+
|
|
72
|
+
**Important**: DbSchema bundles its own Java runtime (OpenJDK with JavaFX), so no separate Java installation is required.
|
|
73
|
+
|
|
74
|
+
## Platform-Specific Installation
|
|
75
|
+
|
|
76
|
+
### macOS (Homebrew)
|
|
77
|
+
|
|
78
|
+
#### Prerequisites
|
|
79
|
+
|
|
80
|
+
- macOS 10.15 (Catalina) or later
|
|
81
|
+
- Homebrew package manager installed
|
|
82
|
+
- Terminal access
|
|
83
|
+
|
|
84
|
+
Homebrew supports both Apple Silicon (M1/M2/M3/M4) and Intel Macs. If Homebrew is not installed, install it first:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
#### Installation Steps
|
|
91
|
+
|
|
92
|
+
Run the following command to install DbSchema via Homebrew:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
brew install --cask --quiet dbschema
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
The `--cask` flag indicates this is a macOS application (not a command-line formula), and `--quiet` suppresses non-essential output for automation compatibility.
|
|
99
|
+
|
|
100
|
+
After installation, DbSchema is available in `/Applications/DbSchema.app` and can be launched from Spotlight or the Applications folder.
|
|
101
|
+
|
|
102
|
+
#### Verification
|
|
103
|
+
|
|
104
|
+
Confirm the installation succeeded by verifying the application exists:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
ls /Applications/DbSchema.app
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Expected output:
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
/Applications/DbSchema.app
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Launch DbSchema to verify it starts correctly:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
open -a DbSchema
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
#### Troubleshooting
|
|
123
|
+
|
|
124
|
+
**Problem**: `brew: command not found`
|
|
125
|
+
|
|
126
|
+
**Solution**: Homebrew is not installed or not in PATH. Add it to your PATH:
|
|
127
|
+
|
|
128
|
+
For Apple Silicon Macs:
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
For Intel Macs:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
eval "$(/usr/local/bin/brew shellenv)"
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
**Problem**: Installation fails with "Cask 'dbschema' is unavailable"
|
|
141
|
+
|
|
142
|
+
**Solution**: Update Homebrew to get the latest cask definitions:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
brew update && brew install --cask --quiet dbschema
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**Problem**: App shows "DbSchema can't be opened because Apple cannot check it for malicious software"
|
|
149
|
+
|
|
150
|
+
**Solution**: This can occur on first launch. Right-click the app in Applications and select "Open", then click "Open" in the dialog. Alternatively, clear the quarantine flag:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
xattr -cr /Applications/DbSchema.app
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**Problem**: DbSchema fails to start or crashes immediately
|
|
157
|
+
|
|
158
|
+
**Solution**: Check the log files for errors. Enable debug logging:
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
export INSTALL4J_LOG=yes
|
|
162
|
+
open -a DbSchema
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Review the log output in the terminal for specific error messages.
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
### Ubuntu/Debian (APT)
|
|
170
|
+
|
|
171
|
+
#### Prerequisites
|
|
172
|
+
|
|
173
|
+
- Ubuntu 20.04 or later, or Debian 10 or later (64-bit x86_64)
|
|
174
|
+
- sudo privileges
|
|
175
|
+
- Active internet connection
|
|
176
|
+
- Desktop environment with display (X11 or Wayland)
|
|
177
|
+
|
|
178
|
+
**Note**: DbSchema is not available in the official Ubuntu/Debian APT repositories or as a Snap package. Install it using the official Debian package from DbSchema's website.
|
|
179
|
+
|
|
180
|
+
#### Installation Steps
|
|
181
|
+
|
|
182
|
+
Download and install the DbSchema Debian package:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
curl -fsSL "https://dbschema.com/download/dbschema_linux_10_0_2.deb" -o /tmp/dbschema.deb && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y /tmp/dbschema.deb && rm /tmp/dbschema.deb
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
This command:
|
|
189
|
+
- Downloads the latest DbSchema .deb package
|
|
190
|
+
- Installs it using apt-get with no interactive prompts
|
|
191
|
+
- Cleans up the downloaded file
|
|
192
|
+
|
|
193
|
+
After installation, DbSchema is available in your application menu and can be launched from the terminal.
|
|
194
|
+
|
|
195
|
+
#### Verification
|
|
196
|
+
|
|
197
|
+
Verify the package is installed:
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
dpkg -l | grep dbschema
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
Expected output shows the package name and version:
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
ii dbschema 10.0.2 amd64 DbSchema Database Designer
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
Launch DbSchema:
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
/opt/DbSchema/DbSchema &
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
Or search for "DbSchema" in your application menu.
|
|
216
|
+
|
|
217
|
+
#### Troubleshooting
|
|
218
|
+
|
|
219
|
+
**Problem**: Installation fails with dependency errors
|
|
220
|
+
|
|
221
|
+
**Solution**: Fix missing dependencies:
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y && sudo DEBIAN_FRONTEND=noninteractive apt-get install -f -y
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
Then retry the installation.
|
|
228
|
+
|
|
229
|
+
**Problem**: DbSchema does not appear in application menu
|
|
230
|
+
|
|
231
|
+
**Solution**: Log out and log back in, or manually refresh the desktop database:
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
update-desktop-database ~/.local/share/applications
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
**Problem**: Graphics rendering issues or blank window
|
|
238
|
+
|
|
239
|
+
**Solution**: Try running with a different graphics toolkit:
|
|
240
|
+
|
|
241
|
+
```bash
|
|
242
|
+
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
243
|
+
/opt/DbSchema/DbSchema
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
For Wayland-specific issues, try forcing X11:
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
GDK_BACKEND=x11 /opt/DbSchema/DbSchema
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
**Problem**: "No display available" error
|
|
253
|
+
|
|
254
|
+
**Solution**: DbSchema requires a graphical display. If connecting via SSH, use X11 forwarding:
|
|
255
|
+
|
|
256
|
+
```bash
|
|
257
|
+
ssh -X user@server
|
|
258
|
+
/opt/DbSchema/DbSchema
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
### Raspberry Pi OS (APT)
|
|
264
|
+
|
|
265
|
+
#### Prerequisites
|
|
266
|
+
|
|
267
|
+
- Raspberry Pi OS (64-bit) - ARM64/aarch64 architecture
|
|
268
|
+
- Raspberry Pi 4 or later with 4 GB or more RAM recommended
|
|
269
|
+
- sudo privileges
|
|
270
|
+
- Active internet connection
|
|
271
|
+
- Desktop environment with display
|
|
272
|
+
|
|
273
|
+
**Critical Architecture Requirement**: DbSchema provides ARM64 Linux builds, but these are for x86_64 emulation scenarios. Native ARM64 support is limited. Verify your architecture:
|
|
274
|
+
|
|
275
|
+
```bash
|
|
276
|
+
uname -m
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
**Important Note**: DbSchema's primary Linux builds target x86_64 architecture. While DbSchema provides an ARM64 tar.gz package, Raspberry Pi users may experience compatibility issues due to the JavaFX dependencies. The Arch Linux AUR package explicitly lists only 'i686' and 'x86_64' as supported architectures.
|
|
280
|
+
|
|
281
|
+
#### Installation Steps
|
|
282
|
+
|
|
283
|
+
For Raspberry Pi OS (64-bit ARM64), download and extract the ARM64 tar.gz package:
|
|
284
|
+
|
|
285
|
+
```bash
|
|
286
|
+
curl -fsSL "https://dbschema.com/download/dbschema_linux_arm_10_0_2.tar.gz" -o /tmp/dbschema.tar.gz && sudo mkdir -p /opt/DbSchema && sudo tar -xzf /tmp/dbschema.tar.gz -C /opt/DbSchema --strip-components=1 && rm /tmp/dbschema.tar.gz
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
Create a desktop launcher for easy access:
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
cat > ~/.local/share/applications/dbschema.desktop << 'EOF'
|
|
293
|
+
[Desktop Entry]
|
|
294
|
+
Name=DbSchema
|
|
295
|
+
Comment=Database Design Tool
|
|
296
|
+
Exec=/opt/DbSchema/DbSchema
|
|
297
|
+
Icon=/opt/DbSchema/.install4j/DbSchema.png
|
|
298
|
+
Terminal=false
|
|
299
|
+
Type=Application
|
|
300
|
+
Categories=Development;Database;
|
|
301
|
+
EOF
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
Update the desktop database:
|
|
305
|
+
|
|
306
|
+
```bash
|
|
307
|
+
update-desktop-database ~/.local/share/applications
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
#### Verification
|
|
311
|
+
|
|
312
|
+
Verify the files were extracted:
|
|
313
|
+
|
|
314
|
+
```bash
|
|
315
|
+
ls /opt/DbSchema/DbSchema
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
Expected output:
|
|
319
|
+
|
|
320
|
+
```
|
|
321
|
+
/opt/DbSchema/DbSchema
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
Attempt to launch DbSchema:
|
|
325
|
+
|
|
326
|
+
```bash
|
|
327
|
+
/opt/DbSchema/DbSchema &
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
#### Troubleshooting
|
|
331
|
+
|
|
332
|
+
**Problem**: DbSchema fails to start with JavaFX errors
|
|
333
|
+
|
|
334
|
+
**Solution**: DbSchema's ARM64 build may have limited compatibility with Raspberry Pi's ARM64 implementation. Consider using x86 emulation via Box64:
|
|
335
|
+
|
|
336
|
+
```bash
|
|
337
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y box64
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
Then download and run the x86_64 version through Box64. Note that performance may be significantly reduced.
|
|
341
|
+
|
|
342
|
+
**Problem**: `uname -m` shows `armv7l` instead of `aarch64`
|
|
343
|
+
|
|
344
|
+
**Solution**: You are running 32-bit Raspberry Pi OS. DbSchema requires 64-bit. Download and install the 64-bit Raspberry Pi OS image from https://www.raspberrypi.com/software/.
|
|
345
|
+
|
|
346
|
+
**Problem**: Out of memory errors or crashes
|
|
347
|
+
|
|
348
|
+
**Solution**: DbSchema requires significant memory. Increase swap space:
|
|
349
|
+
|
|
350
|
+
```bash
|
|
351
|
+
sudo dphys-swapfile swapoff
|
|
352
|
+
sudo sed -i 's/CONF_SWAPSIZE=.*/CONF_SWAPSIZE=2048/' /etc/dphys-swapfile
|
|
353
|
+
sudo dphys-swapfile setup
|
|
354
|
+
sudo dphys-swapfile swapon
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
Close other applications before running DbSchema.
|
|
358
|
+
|
|
359
|
+
**Problem**: Display rendering issues
|
|
360
|
+
|
|
361
|
+
**Solution**: Try running with software rendering:
|
|
362
|
+
|
|
363
|
+
```bash
|
|
364
|
+
export LIBGL_ALWAYS_SOFTWARE=1
|
|
365
|
+
/opt/DbSchema/DbSchema
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
---
|
|
369
|
+
|
|
370
|
+
### Amazon Linux/RHEL (DNF/YUM)
|
|
371
|
+
|
|
372
|
+
#### Prerequisites
|
|
373
|
+
|
|
374
|
+
- Amazon Linux 2023 (AL2023), Amazon Linux 2 (AL2), RHEL 8+, Fedora, or CentOS Stream 8+
|
|
375
|
+
- sudo privileges
|
|
376
|
+
- Active internet connection
|
|
377
|
+
- Desktop environment (DbSchema is a graphical application)
|
|
378
|
+
|
|
379
|
+
**Note**: DbSchema is not available in the default Amazon Linux, RHEL, or Fedora repositories. Install it using the official RPM package from DbSchema's website.
|
|
380
|
+
|
|
381
|
+
#### Installation Steps
|
|
382
|
+
|
|
383
|
+
For Amazon Linux 2023, RHEL 8+, and Fedora (using DNF):
|
|
384
|
+
|
|
385
|
+
```bash
|
|
386
|
+
curl -fsSL "https://dbschema.com/download/dbschema_linux_10_0_2.rpm" -o /tmp/dbschema.rpm && sudo dnf install -y /tmp/dbschema.rpm && rm /tmp/dbschema.rpm
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
For Amazon Linux 2 and older systems (using YUM):
|
|
390
|
+
|
|
391
|
+
```bash
|
|
392
|
+
curl -fsSL "https://dbschema.com/download/dbschema_linux_10_0_2.rpm" -o /tmp/dbschema.rpm && sudo yum install -y /tmp/dbschema.rpm && rm /tmp/dbschema.rpm
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
After installation, DbSchema is available in your application menu.
|
|
396
|
+
|
|
397
|
+
#### Verification
|
|
398
|
+
|
|
399
|
+
Verify the package is installed:
|
|
400
|
+
|
|
401
|
+
```bash
|
|
402
|
+
rpm -qa | grep -i dbschema
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
Expected output shows the package name:
|
|
406
|
+
|
|
407
|
+
```
|
|
408
|
+
dbschema-10.0.2-1.x86_64
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
Launch DbSchema:
|
|
412
|
+
|
|
413
|
+
```bash
|
|
414
|
+
/opt/DbSchema/DbSchema &
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
#### Troubleshooting
|
|
418
|
+
|
|
419
|
+
**Problem**: No graphical display available
|
|
420
|
+
|
|
421
|
+
**Solution**: DbSchema is a GUI application and requires a desktop environment. For headless servers, use X11 forwarding:
|
|
422
|
+
|
|
423
|
+
```bash
|
|
424
|
+
ssh -X user@server
|
|
425
|
+
/opt/DbSchema/DbSchema
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
Or install a desktop environment:
|
|
429
|
+
|
|
430
|
+
```bash
|
|
431
|
+
sudo dnf groupinstall -y "Server with GUI"
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
**Problem**: SELinux blocking execution
|
|
435
|
+
|
|
436
|
+
**Solution**: Check the audit log for SELinux denials:
|
|
437
|
+
|
|
438
|
+
```bash
|
|
439
|
+
sudo ausearch -m avc -ts recent
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
For testing, you can temporarily set SELinux to permissive mode:
|
|
443
|
+
|
|
444
|
+
```bash
|
|
445
|
+
sudo setenforce 0
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
**Note**: This is temporary. For production, create a proper SELinux policy.
|
|
449
|
+
|
|
450
|
+
**Problem**: Missing dependencies
|
|
451
|
+
|
|
452
|
+
**Solution**: Install common GUI dependencies:
|
|
453
|
+
|
|
454
|
+
```bash
|
|
455
|
+
sudo dnf install -y libX11 libXScrnSaver gtk3 nss alsa-lib mesa-libGL
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
**Problem**: RPM installation fails with conflicts
|
|
459
|
+
|
|
460
|
+
**Solution**: Remove any previous DbSchema installation first:
|
|
461
|
+
|
|
462
|
+
```bash
|
|
463
|
+
sudo dnf remove -y dbschema
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
Then retry the installation.
|
|
467
|
+
|
|
468
|
+
---
|
|
469
|
+
|
|
470
|
+
### Windows (MSI Installer)
|
|
471
|
+
|
|
472
|
+
#### Prerequisites
|
|
473
|
+
|
|
474
|
+
- Windows 10 or Windows 11 (64-bit)
|
|
475
|
+
- Administrator privileges
|
|
476
|
+
- Active internet connection
|
|
477
|
+
|
|
478
|
+
**Note**: DbSchema is not available in the Chocolatey or winget package repositories. Install it using the official MSI installer from DbSchema's website with silent installation flags.
|
|
479
|
+
|
|
480
|
+
#### Installation Steps
|
|
481
|
+
|
|
482
|
+
Download and install DbSchema using the MSI installer with silent flags. Run the following commands in an Administrator PowerShell:
|
|
483
|
+
|
|
484
|
+
```powershell
|
|
485
|
+
Invoke-WebRequest -Uri "https://dbschema.com/download/dbschema_windows_10_0_2.msi" -OutFile "$env:TEMP\dbschema.msi"; Start-Process msiexec.exe -ArgumentList "/i", "$env:TEMP\dbschema.msi", "/qn", "/norestart" -Wait; Remove-Item "$env:TEMP\dbschema.msi"
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
This command:
|
|
489
|
+
- Downloads the DbSchema MSI installer to the temp directory
|
|
490
|
+
- Runs the installer silently (`/qn` = quiet, no UI)
|
|
491
|
+
- Waits for installation to complete
|
|
492
|
+
- Cleans up the downloaded file
|
|
493
|
+
|
|
494
|
+
The `/qn` flag ensures completely silent installation with no user prompts.
|
|
495
|
+
|
|
496
|
+
**Alternative: EXE Installer with Silent Flag**
|
|
497
|
+
|
|
498
|
+
DbSchema's EXE installer (built with install4j) supports the `-q` flag for silent installation:
|
|
499
|
+
|
|
500
|
+
```powershell
|
|
501
|
+
Invoke-WebRequest -Uri "https://dbschema.com/download/dbschema_windows_10_0_2.exe" -OutFile "$env:TEMP\dbschema.exe"; Start-Process "$env:TEMP\dbschema.exe" -ArgumentList "-q" -Wait; Remove-Item "$env:TEMP\dbschema.exe"
|
|
502
|
+
```
|
|
503
|
+
|
|
504
|
+
After installation, DbSchema is available in the Start Menu and typically installed to `C:\Program Files\DbSchema\`.
|
|
505
|
+
|
|
506
|
+
#### Verification
|
|
507
|
+
|
|
508
|
+
Verify the installation by checking for the executable:
|
|
509
|
+
|
|
510
|
+
```powershell
|
|
511
|
+
Test-Path "C:\Program Files\DbSchema\DbSchema.exe"
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
Expected output:
|
|
515
|
+
|
|
516
|
+
```
|
|
517
|
+
True
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
Launch DbSchema:
|
|
521
|
+
|
|
522
|
+
```powershell
|
|
523
|
+
Start-Process "C:\Program Files\DbSchema\DbSchema.exe"
|
|
524
|
+
```
|
|
525
|
+
|
|
526
|
+
Or search for "DbSchema" in the Start Menu.
|
|
527
|
+
|
|
528
|
+
#### Troubleshooting
|
|
529
|
+
|
|
530
|
+
**Problem**: Installation fails with "Administrator privileges required"
|
|
531
|
+
|
|
532
|
+
**Solution**: Right-click PowerShell and select "Run as administrator", then retry the installation command.
|
|
533
|
+
|
|
534
|
+
**Problem**: MSI installation fails silently
|
|
535
|
+
|
|
536
|
+
**Solution**: Enable logging to diagnose the issue:
|
|
537
|
+
|
|
538
|
+
```powershell
|
|
539
|
+
msiexec.exe /i "$env:TEMP\dbschema.msi" /qn /l*v "$env:TEMP\dbschema_install.log"
|
|
540
|
+
```
|
|
541
|
+
|
|
542
|
+
Review the log file at `$env:TEMP\dbschema_install.log` for error details.
|
|
543
|
+
|
|
544
|
+
**Problem**: Windows Defender SmartScreen blocks the installer
|
|
545
|
+
|
|
546
|
+
**Solution**: The DbSchema installer is a legitimate application. In an automated context, you may need to configure Windows Defender exclusions or download signing policies. For manual installation, click "More info" and then "Run anyway".
|
|
547
|
+
|
|
548
|
+
**Problem**: DbSchema does not start after installation
|
|
549
|
+
|
|
550
|
+
**Solution**: Check for conflicting Java installations. DbSchema bundles its own JRE, but system-wide Java configurations may interfere. Try launching with debug logging:
|
|
551
|
+
|
|
552
|
+
```powershell
|
|
553
|
+
& "C:\Program Files\DbSchema\DbSchema.exe" /create-i4j-log
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
Review the generated log file for errors.
|
|
557
|
+
|
|
558
|
+
---
|
|
559
|
+
|
|
560
|
+
### WSL (Ubuntu)
|
|
561
|
+
|
|
562
|
+
#### Prerequisites
|
|
563
|
+
|
|
564
|
+
- Windows 10 version 2004 or later, or Windows 11
|
|
565
|
+
- Windows Subsystem for Linux installed with Ubuntu distribution
|
|
566
|
+
- WSL 2 recommended (WSLg provides native GUI support)
|
|
567
|
+
- sudo privileges within WSL
|
|
568
|
+
|
|
569
|
+
**Important**: DbSchema is a graphical desktop application. Running it in WSL requires either WSLg (Windows 11 with WSL 2) for native GUI support, or an X server on Windows for older setups.
|
|
570
|
+
|
|
571
|
+
Verify WSL version and GUI support:
|
|
572
|
+
|
|
573
|
+
```bash
|
|
574
|
+
wsl --list --verbose
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
For WSL 2 with Windows 11, WSLg provides automatic GUI support. For older setups, install an X server like VcXsrv on Windows.
|
|
578
|
+
|
|
579
|
+
#### Installation Steps
|
|
580
|
+
|
|
581
|
+
Download and install the DbSchema Debian package within WSL Ubuntu:
|
|
582
|
+
|
|
583
|
+
```bash
|
|
584
|
+
curl -fsSL "https://dbschema.com/download/dbschema_linux_10_0_2.deb" -o /tmp/dbschema.deb && sudo DEBIAN_FRONTEND=noninteractive apt-get update -y && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y /tmp/dbschema.deb && rm /tmp/dbschema.deb
|
|
585
|
+
```
|
|
586
|
+
|
|
587
|
+
For WSL 2 with WSLg (Windows 11), no additional configuration is needed. For older setups without WSLg, configure the DISPLAY variable:
|
|
588
|
+
|
|
589
|
+
```bash
|
|
590
|
+
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
|
|
591
|
+
```
|
|
592
|
+
|
|
593
|
+
Add this line to `~/.bashrc` for persistence.
|
|
594
|
+
|
|
595
|
+
#### Verification
|
|
596
|
+
|
|
597
|
+
Verify the package is installed:
|
|
598
|
+
|
|
599
|
+
```bash
|
|
600
|
+
dpkg -l | grep dbschema
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
Launch DbSchema:
|
|
604
|
+
|
|
605
|
+
```bash
|
|
606
|
+
/opt/DbSchema/DbSchema &
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
A GUI window should appear on your Windows desktop (via WSLg or X server).
|
|
610
|
+
|
|
611
|
+
#### Troubleshooting
|
|
612
|
+
|
|
613
|
+
**Problem**: "Cannot open display" error
|
|
614
|
+
|
|
615
|
+
**Solution**: For WSL 2 without WSLg, ensure an X server (like VcXsrv) is running on Windows and configure DISPLAY:
|
|
616
|
+
|
|
617
|
+
```bash
|
|
618
|
+
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
|
|
619
|
+
export LIBGL_ALWAYS_INDIRECT=1
|
|
620
|
+
```
|
|
621
|
+
|
|
622
|
+
For VcXsrv, launch it with "Disable access control" checked.
|
|
623
|
+
|
|
624
|
+
**Problem**: GUI is extremely slow or laggy
|
|
625
|
+
|
|
626
|
+
**Solution**: WSLg performance depends on GPU support. Try disabling hardware acceleration:
|
|
627
|
+
|
|
628
|
+
```bash
|
|
629
|
+
export LIBGL_ALWAYS_SOFTWARE=1
|
|
630
|
+
/opt/DbSchema/DbSchema
|
|
631
|
+
```
|
|
632
|
+
|
|
633
|
+
**Problem**: DbSchema fails to connect to databases
|
|
634
|
+
|
|
635
|
+
**Solution**: When connecting to databases running on Windows from WSL, use the Windows host IP:
|
|
636
|
+
|
|
637
|
+
```bash
|
|
638
|
+
cat /etc/resolv.conf | grep nameserver
|
|
639
|
+
```
|
|
640
|
+
|
|
641
|
+
Use this IP address instead of `localhost` in your database connection settings.
|
|
642
|
+
|
|
643
|
+
**Problem**: Font rendering issues
|
|
644
|
+
|
|
645
|
+
**Solution**: Install additional fonts:
|
|
646
|
+
|
|
647
|
+
```bash
|
|
648
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y fonts-dejavu fonts-liberation
|
|
649
|
+
```
|
|
650
|
+
|
|
651
|
+
---
|
|
652
|
+
|
|
653
|
+
### Git Bash (Windows)
|
|
654
|
+
|
|
655
|
+
#### Prerequisites
|
|
656
|
+
|
|
657
|
+
- Windows 10 or Windows 11 (64-bit)
|
|
658
|
+
- Git for Windows installed (provides Git Bash)
|
|
659
|
+
- PowerShell available (for initial installation)
|
|
660
|
+
|
|
661
|
+
Git Bash provides a Unix-compatible environment on Windows. Since DbSchema is a Windows application, it is installed on Windows and accessible from Git Bash.
|
|
662
|
+
|
|
663
|
+
Download Git for Windows from https://git-scm.com/downloads/win if not already installed.
|
|
664
|
+
|
|
665
|
+
#### Installation Steps
|
|
666
|
+
|
|
667
|
+
From Git Bash, use PowerShell to download and install DbSchema silently:
|
|
668
|
+
|
|
669
|
+
```bash
|
|
670
|
+
powershell.exe -Command "Invoke-WebRequest -Uri 'https://dbschema.com/download/dbschema_windows_10_0_2.msi' -OutFile '$env:TEMP\dbschema.msi'; Start-Process msiexec.exe -ArgumentList '/i', '$env:TEMP\dbschema.msi', '/qn', '/norestart' -Wait; Remove-Item '$env:TEMP\dbschema.msi'"
|
|
671
|
+
```
|
|
672
|
+
|
|
673
|
+
**Alternative: Using the EXE installer**
|
|
674
|
+
|
|
675
|
+
```bash
|
|
676
|
+
powershell.exe -Command "Invoke-WebRequest -Uri 'https://dbschema.com/download/dbschema_windows_10_0_2.exe' -OutFile '$env:TEMP\dbschema.exe'; Start-Process '$env:TEMP\dbschema.exe' -ArgumentList '-q' -Wait; Remove-Item '$env:TEMP\dbschema.exe'"
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
After installation, close and reopen Git Bash for any PATH updates to take effect.
|
|
680
|
+
|
|
681
|
+
#### Verification
|
|
682
|
+
|
|
683
|
+
Verify the installation by checking for the executable:
|
|
684
|
+
|
|
685
|
+
```bash
|
|
686
|
+
ls "/c/Program Files/DbSchema/DbSchema.exe"
|
|
687
|
+
```
|
|
688
|
+
|
|
689
|
+
Expected output:
|
|
690
|
+
|
|
691
|
+
```
|
|
692
|
+
'/c/Program Files/DbSchema/DbSchema.exe'
|
|
693
|
+
```
|
|
694
|
+
|
|
695
|
+
Launch DbSchema from Git Bash:
|
|
696
|
+
|
|
697
|
+
```bash
|
|
698
|
+
"/c/Program Files/DbSchema/DbSchema.exe" &
|
|
699
|
+
```
|
|
700
|
+
|
|
701
|
+
Or use the Windows `start` command:
|
|
702
|
+
|
|
703
|
+
```bash
|
|
704
|
+
cmd.exe /c start "" "DbSchema"
|
|
705
|
+
```
|
|
706
|
+
|
|
707
|
+
#### Troubleshooting
|
|
708
|
+
|
|
709
|
+
**Problem**: PowerShell command fails from Git Bash
|
|
710
|
+
|
|
711
|
+
**Solution**: Use the full path to PowerShell:
|
|
712
|
+
|
|
713
|
+
```bash
|
|
714
|
+
"/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe" -Command "..."
|
|
715
|
+
```
|
|
716
|
+
|
|
717
|
+
**Problem**: DbSchema executable not found at expected location
|
|
718
|
+
|
|
719
|
+
**Solution**: Search for the installation directory:
|
|
720
|
+
|
|
721
|
+
```bash
|
|
722
|
+
find "/c/Program Files" -name "DbSchema.exe" 2>/dev/null
|
|
723
|
+
```
|
|
724
|
+
|
|
725
|
+
**Problem**: Cannot launch DbSchema from Git Bash
|
|
726
|
+
|
|
727
|
+
**Solution**: Use the Windows command processor:
|
|
728
|
+
|
|
729
|
+
```bash
|
|
730
|
+
cmd.exe /c start "" "C:\Program Files\DbSchema\DbSchema.exe"
|
|
731
|
+
```
|
|
732
|
+
|
|
733
|
+
**Problem**: Git Bash terminal hangs when launching DbSchema
|
|
734
|
+
|
|
735
|
+
**Solution**: Run DbSchema in the background to return control to the terminal:
|
|
736
|
+
|
|
737
|
+
```bash
|
|
738
|
+
"/c/Program Files/DbSchema/DbSchema.exe" &
|
|
739
|
+
disown
|
|
740
|
+
```
|
|
741
|
+
|
|
742
|
+
---
|
|
743
|
+
|
|
744
|
+
## Post-Installation Configuration
|
|
745
|
+
|
|
746
|
+
### First-Time Setup
|
|
747
|
+
|
|
748
|
+
After installing and launching DbSchema on any platform:
|
|
749
|
+
|
|
750
|
+
1. **License Activation** - DbSchema starts with a 15-day Pro trial. After the trial, you can continue using the free Community Edition or purchase a Pro license.
|
|
751
|
+
|
|
752
|
+
2. **Connect to a Database** - Click "Connect to Database" and select your database type. DbSchema will automatically download the appropriate JDBC driver.
|
|
753
|
+
|
|
754
|
+
3. **Create or Import Schema** - Either connect to an existing database to reverse-engineer its schema, or create a new schema from scratch.
|
|
755
|
+
|
|
756
|
+
### JDBC Driver Management
|
|
757
|
+
|
|
758
|
+
DbSchema automatically downloads JDBC drivers when you first connect to a database type. Drivers are stored in:
|
|
759
|
+
|
|
760
|
+
- **macOS**: `~/Library/DbSchema/drivers/`
|
|
761
|
+
- **Linux**: `~/.DbSchema/drivers/`
|
|
762
|
+
- **Windows**: `%USERPROFILE%\.DbSchema\drivers\`
|
|
763
|
+
|
|
764
|
+
To manually add a driver, use the menu: Help > Download and Register JDBC Driver.
|
|
765
|
+
|
|
766
|
+
### Headless/CLI Mode
|
|
767
|
+
|
|
768
|
+
DbSchema includes a command-line interface (DbSchemaCLI) for automation. Common operations include:
|
|
769
|
+
|
|
770
|
+
```bash
|
|
771
|
+
# Connect to a database
|
|
772
|
+
dbschemacli connection mydb postgresql "host=localhost&port=5432&database=myapp"
|
|
773
|
+
dbschemacli connect mydb
|
|
774
|
+
|
|
775
|
+
# Execute SQL queries
|
|
776
|
+
dbschemacli spool /tmp/output.csv
|
|
777
|
+
# ... run queries ...
|
|
778
|
+
dbschemacli spool off
|
|
779
|
+
|
|
780
|
+
# Generate documentation
|
|
781
|
+
# (Use the GUI for documentation generation)
|
|
782
|
+
```
|
|
783
|
+
|
|
784
|
+
### Project Files
|
|
785
|
+
|
|
786
|
+
DbSchema saves projects as `.dbs` files which contain:
|
|
787
|
+
- Schema definitions
|
|
788
|
+
- Layout information
|
|
789
|
+
- Connection settings (credentials can be excluded for security)
|
|
790
|
+
- Documentation notes
|
|
791
|
+
|
|
792
|
+
Store `.dbs` files in version control to track schema changes over time.
|
|
793
|
+
|
|
794
|
+
---
|
|
795
|
+
|
|
796
|
+
## Common Issues
|
|
797
|
+
|
|
798
|
+
### Issue: Database Connection Fails
|
|
799
|
+
|
|
800
|
+
**Symptoms**: Cannot connect to database, timeout errors, or authentication failures.
|
|
801
|
+
|
|
802
|
+
**Solution**:
|
|
803
|
+
1. Verify the database server is running and accessible
|
|
804
|
+
2. Check firewall rules allow the connection
|
|
805
|
+
3. Verify credentials are correct
|
|
806
|
+
4. Ensure the JDBC driver is downloaded (Help > Download and Register JDBC Driver)
|
|
807
|
+
5. For SSL connections, configure SSL settings in the connection dialog
|
|
808
|
+
|
|
809
|
+
### Issue: Slow Performance with Large Schemas
|
|
810
|
+
|
|
811
|
+
**Symptoms**: DbSchema becomes slow or unresponsive with databases containing many tables.
|
|
812
|
+
|
|
813
|
+
**Solution**:
|
|
814
|
+
1. Use schema filters to load only relevant tables
|
|
815
|
+
2. Increase heap memory by editing the DbSchema configuration
|
|
816
|
+
3. Close unused diagrams and layouts
|
|
817
|
+
4. Consider splitting large schemas into multiple DbSchema projects
|
|
818
|
+
|
|
819
|
+
### Issue: Diagram Export Quality Issues
|
|
820
|
+
|
|
821
|
+
**Symptoms**: Exported images are blurry or low resolution.
|
|
822
|
+
|
|
823
|
+
**Solution**:
|
|
824
|
+
1. Use vector formats (SVG, PDF) instead of raster formats (PNG, JPG)
|
|
825
|
+
2. For PNG export, increase the DPI setting in export options
|
|
826
|
+
3. Zoom to 100% before exporting to ensure proper scaling
|
|
827
|
+
|
|
828
|
+
### Issue: Schema Comparison Shows Unexpected Differences
|
|
829
|
+
|
|
830
|
+
**Symptoms**: Schema comparison shows differences that do not exist or misses actual differences.
|
|
831
|
+
|
|
832
|
+
**Solution**:
|
|
833
|
+
1. Ensure both schemas are fully loaded (wait for loading to complete)
|
|
834
|
+
2. Check comparison settings - some differences may be filtered out
|
|
835
|
+
3. Refresh both schemas before comparing
|
|
836
|
+
4. Verify you are comparing the correct database/schema names
|
|
837
|
+
|
|
838
|
+
### Issue: DbSchema Uses Wrong Java Version
|
|
839
|
+
|
|
840
|
+
**Symptoms**: Startup errors mentioning Java version incompatibility.
|
|
841
|
+
|
|
842
|
+
**Solution**: DbSchema bundles its own JRE and should not use the system Java. If issues occur:
|
|
843
|
+
|
|
844
|
+
1. Check for conflicting JAVA_HOME settings:
|
|
845
|
+
|
|
846
|
+
```bash
|
|
847
|
+
echo $JAVA_HOME
|
|
848
|
+
```
|
|
849
|
+
|
|
850
|
+
2. Temporarily unset JAVA_HOME:
|
|
851
|
+
|
|
852
|
+
```bash
|
|
853
|
+
unset JAVA_HOME
|
|
854
|
+
/opt/DbSchema/DbSchema
|
|
855
|
+
```
|
|
856
|
+
|
|
857
|
+
3. If the bundled JRE is corrupted, reinstall DbSchema.
|
|
858
|
+
|
|
859
|
+
---
|
|
860
|
+
|
|
861
|
+
## Uninstallation
|
|
862
|
+
|
|
863
|
+
### macOS
|
|
864
|
+
|
|
865
|
+
```bash
|
|
866
|
+
brew uninstall --cask dbschema
|
|
867
|
+
rm -rf ~/Library/Application\ Support/DbSchema
|
|
868
|
+
rm -rf ~/Library/Caches/DbSchema
|
|
869
|
+
rm -rf ~/Library/DbSchema
|
|
870
|
+
```
|
|
871
|
+
|
|
872
|
+
### Ubuntu/Debian
|
|
873
|
+
|
|
874
|
+
```bash
|
|
875
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get remove -y dbschema
|
|
876
|
+
rm -rf ~/.DbSchema
|
|
877
|
+
rm -rf ~/.local/share/applications/dbschema.desktop
|
|
878
|
+
```
|
|
879
|
+
|
|
880
|
+
### Raspberry Pi OS
|
|
881
|
+
|
|
882
|
+
```bash
|
|
883
|
+
sudo rm -rf /opt/DbSchema
|
|
884
|
+
rm -rf ~/.DbSchema
|
|
885
|
+
rm -rf ~/.local/share/applications/dbschema.desktop
|
|
886
|
+
```
|
|
887
|
+
|
|
888
|
+
### Amazon Linux/RHEL
|
|
889
|
+
|
|
890
|
+
```bash
|
|
891
|
+
sudo dnf remove -y dbschema
|
|
892
|
+
rm -rf ~/.DbSchema
|
|
893
|
+
```
|
|
894
|
+
|
|
895
|
+
Or for YUM-based systems:
|
|
896
|
+
|
|
897
|
+
```bash
|
|
898
|
+
sudo yum remove -y dbschema
|
|
899
|
+
rm -rf ~/.DbSchema
|
|
900
|
+
```
|
|
901
|
+
|
|
902
|
+
### Windows
|
|
903
|
+
|
|
904
|
+
Using PowerShell (as Administrator):
|
|
905
|
+
|
|
906
|
+
```powershell
|
|
907
|
+
Start-Process msiexec.exe -ArgumentList "/x", "{product-code}", "/qn" -Wait
|
|
908
|
+
Remove-Item -Path "$env:USERPROFILE\.DbSchema" -Recurse -Force
|
|
909
|
+
```
|
|
910
|
+
|
|
911
|
+
Or use the Windows "Add or Remove Programs" interface to uninstall DbSchema, then manually delete the `.DbSchema` folder from your user profile.
|
|
912
|
+
|
|
913
|
+
---
|
|
914
|
+
|
|
915
|
+
## References
|
|
916
|
+
|
|
917
|
+
- [DbSchema Official Website](https://dbschema.com/)
|
|
918
|
+
- [DbSchema Download Page](https://dbschema.com/download.html)
|
|
919
|
+
- [DbSchema Documentation](https://dbschema.com/documentation/)
|
|
920
|
+
- [DbSchema FAQ](https://dbschema.com/faq.html)
|
|
921
|
+
- [DbSchema Technical Support](https://dbschema.com/support.html)
|
|
922
|
+
- [DbSchema Homebrew Cask](https://formulae.brew.sh/cask/dbschema)
|
|
923
|
+
- [DbSchema Blog - Cross-Platform Support](https://dbschema.com/blog/dbschema-features/dbschema-cross-platform-support/)
|
|
924
|
+
- [DbSchemaCLI Documentation](https://dbschema.com/documentation/dbschemacli.html)
|
|
925
|
+
- [install4j Silent Installation Options](https://www.ej-technologies.com/resources/install4j/help/doc/installers/options.html)
|