ccgx:root_access
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ccgx:root_access [2023-10-17 13:48] – [3.3 Enable sshd and log in] dfaber | ccgx:root_access [2024-12-03 11:17] (current) – [3.1 Set access level to Superuser] mvader | ||
---|---|---|---|
Line 33: | Line 33: | ||
==== 3.1 Set access level to Superuser ==== | ==== 3.1 Set access level to Superuser ==== | ||
- | To set the root password, first set the access level to Superuser: | + | To set the root password, first set the access level to Superuser. |
- Go to Settings, General | - Go to Settings, General | ||
- Set the Access Level to User and installer, the password is '' | - Set the Access Level to User and installer, the password is '' | ||
- Highlight Access Level (don't open the select page, ie. make sure you are in the General Page, not the Access Level page) | - Highlight Access Level (don't open the select page, ie. make sure you are in the General Page, not the Access Level page) | ||
- | - Press and hold the right button of the center pad until you see the Access Level change to Superuser. Note: when working from the Remote Console, you need to use the right key on your keyboard. Pressing and holding the right button with your mouse won't work. | + | - Press and hold the right button of the center pad until you see the Access Level change to Superuser. Note: when working from the Remote Console |
Now you have access to the super user features. | Now you have access to the super user features. | ||
Line 49: | Line 50: | ||
Note that, for firmware version v2.00 and later, the root password will be reset by a firmware update. The reason is that the passwd file is on the rootfs, which is fully replaced by an update. More info [[https:// | Note that, for firmware version v2.00 and later, the root password will be reset by a firmware update. The reason is that the passwd file is on the rootfs, which is fully replaced by an update. More info [[https:// | ||
- | Our advice is to create a complex root password. But use it to login only the first time, and then install a public ssh key(s). Thereafter login with the keys. If key authentication works, you can also | + | Our advice is to create a complex root password. But use it to login only the first time, and then install a public ssh key(s). Thereafter login with the keys. If key authentication works, you can |
- | safely | + | safely |
+ | The password needs to be 6 characters long, minimum. | ||
==== 3.3 Enable sshd and log in ===== | ==== 3.3 Enable sshd and log in ===== | ||
Line 89: | Line 91: | ||
If the files ''/ | If the files ''/ | ||
- | Also if '' | + | Also if '' |
That venus-data file has one extra feature: if the archive contains '' | That venus-data file has one extra feature: if the archive contains '' | ||
+ | |||
+ | You can draw further inspiration from [[https:// | ||
You can test the ' | You can test the ' | ||
Line 116: | Line 120: | ||
=== 4.2.2 Read-only rootfs === | === 4.2.2 Read-only rootfs === | ||
- | By default, the rootfs is mounted read only. Also, by default, it only has 5% of free space. | + | By default, the rootfs is mounted read only. Also, by default, it only has 5% of free space, while the partition in which its installed is actually larger. |
- | The solution is to run ''/ | + | The recommended method |
- | Further details in the next section. | + | Here is a short overview of the three ways mount the rootfs as read/ |
+ | |||
+ | * // | ||
+ | * // | ||
+ | * // | ||
=== 4.2.3 Always prevent running out of diskspace === | === 4.2.3 Always prevent running out of diskspace === | ||
Line 155: | Line 163: | ||
For more advanced features please check the manual page of [[https:// | For more advanced features please check the manual page of [[https:// | ||
+ | |||
+ | In this thread, there is an example of how to make a patch file to change a certain setting in the GX, and how to apply that at boot. To make it survive a firmware update: | ||
+ | https:// | ||
==== 4.4 Adding or modifying services ==== | ==== 4.4 Adding or modifying services ==== | ||
Line 165: | Line 176: | ||
''/ | ''/ | ||
- | By default the root filesystem of Venus is read-only. There are three ways to change that: | + | Further details here: https://github.com/victronenergy/venus/wiki/howto-add-a-driver-to-Venus# |
- | + | ||
- | * // | + | |
- | * //semi-permanent//: issue the command ''/ | + | |
- | * // | + | |
===== 5. Hardening a GX device ===== | ===== 5. Hardening a GX device ===== | ||
Line 343: | Line 350: | ||
{{ : | {{ : | ||
+ | |||
+ | ==== 6.6 Ekrano GX ==== | ||
+ | |||
+ | Getting to console on the Ekrano GX is not that easy. The pins are located between the network and USB connector on the back of the device. | ||
+ | |||
+ | - Black: ground | ||
+ | - NC | ||
+ | - NC | ||
+ | - Green: RX of the Ekrano GX - connect to TX on your cable | ||
+ | - White: TX of the Ekrano GX - connect to RX on your cable | ||
+ | - NC | ||
+ | |||
+ | {{ : |
ccgx/root_access.1697543334.txt.gz · Last modified: 2023-10-17 13:48 by dfaber