Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headless installation & CLI interface? #850

Open
rudenkornk opened this issue Jun 12, 2024 · 2 comments
Open

Headless installation & CLI interface? #850

rudenkornk opened this issue Jun 12, 2024 · 2 comments

Comments

@rudenkornk
Copy link

Describe the bug
Amnezia client is currently a GUI-first application requiring manual graphical installation and configuring.
Enabling and disabling VPN also requires to use GUI client.

Expected behavior

  1. Ability to perform a headless scripted installation.
  2. CLI client not requiring any graphical support.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04-24.04, Fedora 38-40
@jeffangelion
Copy link

About headless installation:

jeffangelion@redstar:~$ sudo ./AmneziaVPN_Linux_Installer.bin install
[0] Arguments: ./AmneziaVPN_Linux_Installer.bin, install
[3] Operations sanity check succeeded.
[10] OS: Debian GNU/Linux 12 (bookworm), architecture: x86_64
[10] Check if app already installed: false
[74] Loaded control script ":/metadata/installer-config/controlscript_js.js"
[74] No target directory specified, using default value: "/opt/AmneziaVPN"
[74] Preparing meta information download...
[81] Warning: QFont::setPixelSize: Pixel size <= 0 (-1)
[81] Selected components without dependencies:
org.amneziavpn.package
[81] Installation space required: "547.22 MB" Temporary space required: "256.00 MB" Local repository size: "0.00 bytes"
[82] Tmp and install directories are on the same volume. Volume mount point: "/" Free space available: "76.94 GB"
[82] Installation will use 291.22 MB of disk space.
[82] Do you want to continue?
[82] Yes|No
yes
[3784] backup  operation: Mkdir
[3784] 	- arguments: /opt/AmneziaVPN
[3784] Done
[3784] perform  operation: Mkdir
[3784] 	- arguments: /opt/AmneziaVPN
[3784] Done
[3784] Preparing the installation...
[3785] Install size: 1 components
[3788] Preparing to unpack components...
[3789] backup org.amneziavpn.package concurrent operation: Extract
[3789] 	- arguments: installer:https://org.amneziavpn.package/4.6.0.3data.7z, /opt/AmneziaVPN
[3789] Started
[3810] Unpacking components...
[3810] perform org.amneziavpn.package concurrent operation: Extract
[3810] 	- arguments: installer:https://org.amneziavpn.package/4.6.0.3data.7z, /opt/AmneziaVPN
[3810] Started
[9195] Installing component AmneziaVPN
[9195] "Execute" as admin: true
[9195] backup org.amneziavpn.package operation: Execute
[9195] 	- arguments: bash, /opt/AmneziaVPN/post_install.sh, UNDOEXECUTE, bash, /opt/AmneziaVPN/post_uninstall.sh
[9195] Done
[9196] perform org.amneziavpn.package operation: Execute
[9196] 	- arguments: bash, /opt/AmneziaVPN/post_install.sh, UNDOEXECUTE, bash, /opt/AmneziaVPN/post_uninstall.sh
[9198] bash" started, arguments: "/opt/AmneziaVPN/post_install.sh
[9213] AmneziaVPN log dir created at /var/log/\n
[9951] Done
[9954] Writing maintenance tool: "/opt/AmneziaVPN/maintenancetool.new"
[9954] Writing maintenance tool.
[10034] Wrote permissions for maintenance tool.
[10075] Maintenance tool hard restart: false.
[10075] Installation finished!
[10075] Components installed successfully.
jeffangelion@redstar:~$ 

@rasolAAaa
Copy link

rasolAAaa commented Jul 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants