This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
manuals:vps:api [2024/01/02 20:52] – Scopes aither | manuals:vps:api [2024/01/02 21:05] (current) – Split installation instructions aither | ||
---|---|---|---|
Line 83: | Line 83: | ||
Scopes can contain globs for resource and action names. Action name is separated from resource name by a hash (''#'' | Scopes can contain globs for resource and action names. Action name is separated from resource name by a hash (''#'' | ||
- | ===== CLI ===== | + | ===== Installing vpsfree-client |
[[https:// | [[https:// | ||
- | In order for it to work properly, you need Ruby >= 2.0 and Ruby header files, | + | In order for it to work properly, you need Ruby >= 2.7, Ruby header files and ncurses (mostly packages with the '' |
- | OpenSSL | + | |
- | + | ||
- | < | + | |
- | If you’re using OS X, you first need to install OpenSSL using [[http:// | + | |
- | can you install EventMachine (a gem required by the client). | + | |
- | + | ||
- | < | + | |
- | $ brew install openssl | + | |
- | $ sudo gem install eventmachine -- --with-opt-include="/ | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | It can be installed using ruby gems: | + | |
- | + | ||
- | < | + | |
- | $ gem install vpsfree-client | + | |
- | </ | + | |
- | + | ||
- | ==== Installing in Windows 10 Using a Ubuntu Linux Subsystem ==== | + | |
- | + | ||
- | === Installing Ubuntu (Windows 10 Subsystem for Linux) === | + | |
- | + | ||
- | - in Windows 10, enable Developer Mode, let it install | + | |
- | - in the Programs and Features menu, open Turn Windows Features On or Off, scroll to the very bottom, choose Windows Subsystem for Linux, run the installation and let the computer restart | + | |
- | - after the restart, run bash in the Start menu as admin | + | |
- | - create a Unix username and password | + | |
- | - press the Y key and let the Ubuntu base be installed | + | |
- | + | ||
- | === Installing Dependencies === | + | |
<code bash> | <code bash> | ||
- | sudo apt-get | + | gem install |
</ | </ | ||
- | === A Quick & Dirty Fix to Set Ruby2.0 as Default Instead of 1.9 === | + | Platform-specific instructions: |
- | + | ||
- | <code bash> | + | |
- | sudo rm / | + | |
- | sudo ln -s / | + | |
- | sudo ln -s / | + | |
- | sudo ln -s / | + | |
- | sudo ln -s / | + | |
- | sudo ln -s / | + | |
- | sudo gem update --system | + | |
- | sudo gem pristine --all | + | |
- | </ | + | |
- | + | ||
- | Source: http:// | + | |
- | + | ||
- | === Installing vpsfree-client === | + | |
- | + | ||
- | <code bash> | + | |
- | sudo gem install vpsfree-client | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ---- | + | |
+ | * [[manuals: | ||
+ | * [[manuals: | ||
- | After the installation, | + | After the installation, |
this can be fixed easily: | this can be fixed easily: | ||
Line 156: | Line 107: | ||
< | < | ||
- | $ PATH=" | + | $ PATH=" |
</ | </ | ||
- | ==== Usage ==== | + | ==== Using CLI ==== |
< | < |