# Installing and Configuring Electrum (Old Version)

{% hint style="info" %}
**System Requirements for the Module Installed on the Server:**

* Operating System: **Ubuntu 20.x** or **22.x**. **Other OS are not supported**.
* Control Panel: **ISP Manager 6 Lite**
* **Premium Exchanger v2.4** or higher

**System Requirements for the Application Installed on a Computer:**

* Operating System: **Linux/Windows (8.1 and higher)/macOS (10.13 and higher)/Android (5.0 and higher)**
  {% endhint %}

***

## Installing Required Modules on the Server via ISP Manager 6 Lite

1. Log in to the ISP Manager control panel using your <mark style="color:red;">**root user**</mark> credentials.
2. Navigate to the "**Administration**" -> "**Shell Client**" section.

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(126)_eng.png" alt="" width="330"><figcaption></figcaption></figure>

3. Right-click on the blank screen and select "**Paste from browser**" from the context menu.

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(178)_eng.png" alt="" width="563"><figcaption></figcaption></figure>

4. Enter the command below in the opened window, click "**OK**," and then press **Enter** to execute the command.

```
sudo apt-get install libsecp256k1-0 python3-cryptography -y
```

5. Wait for the command to complete.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-9964b49bd74954817ea822745fc5e74fe332f0d7%2F%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(38)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

***

## Verifying Shell Client Access for the Website User

6. Go to the "**Users**" section.

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(136)_eng.png" alt="" width="325"><figcaption></figcaption></figure>

7. Click on the username under which the website operates.

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(183)_eng.png" alt=""><figcaption></figcaption></figure>

8. In the "**Access**" block, check if the **"Shell Access"** checkbox is ticked. If it is not, tick it and save the user settings.

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(104)_eng.png" alt="" width="563"><figcaption></figcaption></figure>

***

## Installing Electrum on Your Computer and Creating a Wallet

9. [Download](https://download.electrum.org/4.4.6/) and install Electrum on your computer:

* [electrum-4.4.6-setup.exe](https://download.electrum.org/4.4.6/electrum-4.4.6-setup.exe) — Installer for Windows
* [electrum-4.4.6-portable.exe](https://download.electrum.org/4.4.6/electrum-4.4.6-portable.exe) — Portable version for Windows
* [electrum-4.4.6.dmg](https://download.electrum.org/4.4.6/electrum-4.4.6.dmg) — Installer for macOS
* [electrum-4.4.6.tar.gz](https://download.electrum.org/4.4.6/Electrum-sourceonly-4.4.6.tar.gz) — Installer for Linux

10. Create a new wallet by following the app's instructions.

<details>

<summary>Steps to Create a New Wallet</summary>

* Select "Standard Wallet"\
  ![](https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-c1901b18b58a6a41c90074be23dd05f75822cb67%2Fimage%20\(1316\)_eng.png?alt=media)
* Generate a new seed phrase\
  ![](https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-2731e37b9b04271f807bb1d4969af72dd915932e%2Fimage%20\(1317\)_eng.png?alt=media)
* Write down the seed phrase in a notebook and save the file\
  ![](https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-b9742bbb9dbb6054eee2672599e5d32e0f5d5c81%2Fimage%20\(1318\)_eng.png?alt=media)
* Enter the full seed phrase for verification\
  ![](https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-92546cf6b3444614eb6f2f5498107ac3204e904e%2Fimage%20\(1319\)_eng.png?alt=media)
* <mark style="color:red;">It is mandatory</mark> to set a wallet password (at least 16 characters — use Latin letters and numbers) and save the password in a notebook\
  ![](https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-f6323f6fc9e8e88029e8f8886d88a349f1a12851%2Fimage%20\(1320\)_eng.png?alt=media)

</details>

11. Open the installed Electrum application on your computer and go to the "**File**" -> "**Open**" menu.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-4bbab45b1685bad9455eeb60985c01e381a53f10%2Fimage%20(647)_eng.png?alt=media" alt="" width="403"><figcaption></figcaption></figure>

12. A folder containing your wallet will open. Locate the wallet file with the name you used during setup.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-fc5c895b95df4ffae3caaba0a8a3e5b25338cfe6%2Fimage%20(1357)_eng.png?alt=media" alt="" width="482"><figcaption></figcaption></figure>

{% hint style="warning" %}
By default, the wallet is named **"default\_wallet"**, but you may have given it a custom name during setup.
{% endhint %}

***

## Uploading Files to the Server

13. Go to the "**Sites**" section in ISP Manager.

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(190)_eng.png" alt="" width="300"><figcaption></figcaption></figure>

14. Select the desired site and click the **"Login as Owner"** button. You will be logged in as the <mark style="color:green;">user created for the site</mark>.

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(71)_eng.png" alt=""><figcaption></figcaption></figure>

15. Open the "**File Manager**" section in the sidebar.

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(115)_eng.png" alt="" width="330"><figcaption></figcaption></figure>

16. Upload the files from the **`electrum_installer.zip`** archive you received from us, along with the previously created Electrum wallet file from the "**electrum\_data**" folder on your computer, to the opened directory.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-3c6185b7ddd2c970f43da686ca531d3f222b291e%2Fimage%20(1356)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
If the wallet being uploaded to the server has a name other than **default\_wallet**, rename it to **default\_wallet** on both the server and your computer. This is necessary for the wallet file to be automatically transferred on the server.
{% endhint %}

The following files must be uploaded to the server:

* `start_or_restart_electrum_daemon.sh`
* `install_electrum.sh`
* `default_wallet` (the Electrum wallet you created earlier)

17. In the root directory, open the **`start_or_restart_electrum_daemon.sh`** file for editing by double-clicking it. In the line <mark style="color:blue;">`4: WALLET_PASSWORD="`</mark><mark style="color:purple;">`your_wallet_password`</mark><mark style="color:blue;">`"`</mark>, replace <mark style="color:purple;">`your_wallet_password`</mark> with the password you set during wallet creation. Save the changes.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-b282f4cbc8ebd3c31c25362fbcab4d7d49eec65c%2Fimage%20(1385)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

***

## Installing Electrum on the Server

18. Go to the **"Shell Client"** section while logged in as the <mark style="color:green;">user created for the site</mark>.

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(52)_eng.png" alt="" width="330"><figcaption></figcaption></figure>

19. Right-click on the blank screen, select **"Paste from browser"**, enter the command **`bash install_electrum.sh`**, and click OK. Then press **Enter** to execute the command.

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(36)_eng.png" alt="" width="563"><figcaption></figcaption></figure>

20. After the script completes, save the data highlighted in the red box in the screenshot below for further configuration in the Premium Exchanger admin panel.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-6cdb1427c70626391ca2b67d948ab5147ed5c0d3%2Fimage%20(1324)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
If you are installing the Electrum module on a server different from the one where the Premium Exchanger script is installed, you will need to fill in the "API Server" field with the IP address of the server where Electrum is installed in the merchant/payout module settings later.

<img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-a3ca1980d82cb67e24df618528a6733414665c78%2Fimage%20(1351)_eng.png?alt=media" alt="" data-size="original">
{% endhint %}

***

## Adding Cron Jobs

21. Copy the first command to configure the Cron task scheduler on the server. Highlight the corresponding line with the left mouse button, right-click to open the menu, and select "**Copy**."

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-bd79476a264da17bc5375c06adcbbbfbf69f0a23%2Fimage%20(1325)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

22. Go to the **"Cron Scheduler"** section.

{% hint style="warning" %}
Cron jobs must be added under the <mark style="color:green;">user created for the site</mark>, **not** under the <mark style="color:red;">**root user**</mark>!
{% endhint %}

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(75)_eng.png" alt="" width="315"><figcaption></figcaption></figure>

23. Click the **"Create Task"** button, paste the copied command into the **"Command"** field, and configure the form as shown in the screenshot below. Click "**Create**."

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-e13843b82e0cdd57c47ebf157f14df1016117d2d%2Fimage%20(1326)_eng.png?alt=media" alt="" width="488"><figcaption></figcaption></figure>

24. Create a task for the second command. Copy the second command line.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-d24da04b2d34565ff36ca7d8febc85b6d47f0344%2Fimage%20(1355)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

Create a new task, paste the command into the appropriate field, and configure the form as shown in the screenshot below. Click "**Create**."

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-b29291a29f651139970ceb9af5fbb37a6e1d0c52%2Fimage%20(1327)_eng.png?alt=media" alt="" width="473"><figcaption></figcaption></figure>

***

## Deleting Files from the Server

25. In the "**File Manager**" section, delete the previously uploaded files from the server:

* `start_or_restart_electrum_daemon.sh`
* `install_electrum.sh`
* `default_wallet`

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-c26c57ff3514f73a2bcdec7fa3b857d55e6f37d8%2Fimage%20(1328)_eng.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

***

## **Restarting the Server**

26. **Make sure** to restart the server after installation.

{% hint style="danger" %}
After installing Electrum or changing the wallet/password, **you must** restart the server.
{% endhint %}

***

## Continuing Configuration

After installing Electrum on the server, configure the connection to the Electrum wallet in the website control panel:

* [Guide for Configuring a Merchant to Accept BTC](https://premium.gitbook.io/main/en/basic-settings/merchants-and-auto-payments/merchants/electrum)
* [Guide for Configuring a Merchant for BTC Payouts](https://premium.gitbook.io/main/en/basic-settings/merchants-and-auto-payments/auto-payments/electrum)
