User Tools

Site Tools


ccgx:root_access

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ccgx:root_access [2024-02-09 17:06] – [4.1 Hooks to install/run own code at boot] dfaberccgx: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 ''ZZZ''   - Set the Access Level to User and installer, the password is ''ZZZ''
   - 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 using the Classic UI, you need to use the right key on your keyboard. Pressing and holding the right button with your mouse won't work. When using the New UI, select, drag down and hold down the entire list of General menu entries for five seconds, and until you see the Access level change to super user
  
 Now you have access to the super user features. Now you have access to the super user features.
Line 119: 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 ''/opt/victronenergy/swupdate-scripts/resize2fs.sh''.+The recommended method to **(a)** mount it as read/write, and **(b)** expand it to use all of the available space in its partition, is by running ''/opt/victronenergy/swupdate-scripts/resize2fs.sh''.
  
-Further details in the next section.+Here is a short overview of the three ways mount the rootfs as read/write: 
 + 
 +  * //temporally//: issue the command ''mount -o remount,rw /'' (which holds until the next reboot or issueing ''mount -o remount,ro /''
 +  * //semi-permanent//: issue the command ''/opt/victronenergy/swupdate-scripts/remount-rw.sh'' (which holds until the next firmware update) 
 +  * //permanent//: adding one of the above commands to ''/data/rc.local'' (which holds permanently)
  
 === 4.2.3 Always prevent running out of diskspace === === 4.2.3 Always prevent running out of diskspace ===
Line 158: Line 163:
  
 For more advanced features please check the manual page of [[https://man7.org/linux/man-pages/man1/diff.1.html|diff]] and [[https://man7.org/linux/man-pages/man1/patch.1.html|patch]]. For more advanced features please check the manual page of [[https://man7.org/linux/man-pages/man1/diff.1.html|diff]] and [[https://man7.org/linux/man-pages/man1/patch.1.html|patch]].
 +
 +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://community.victronenergy.com/idea/201826/lets-define-a-local-ntp-server.html
  
 ==== 4.4 Adding or modifying services ==== ==== 4.4 Adding or modifying services ====
Line 168: Line 176:
 ''/service''. ''/service''.
  
-By default the root filesystem of Venus is read-only. There are three ways to change that: +Further details herehttps://github.com/victronenergy/venus/wiki/howto-add-a-driver-to-Venus#installing-a-driver-that-doesnt-depend-on-a-serial-port
- +
-  * //temporally//issue the command ''mount -o remount,rw /'' (which holds until the next reboot or issueing ''mount -o remount,ro /''+
-  * //semi-permanent//: issue the command ''/opt/victronenergy/swupdate-scripts/remount-rw.sh'' (which holds until the next firmware update) +
-  * //permanent//: adding one of the above commands to ''/data/rc.local'' (which holds permanently)+
  
 ===== 5. Hardening a GX device ===== ===== 5. Hardening a GX device =====
ccgx/root_access.1707494771.txt.gz · Last modified: 2024-02-09 17:06 by dfaber

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki