CTerm service on Dashboard. What is it?

  • The one you want to use for the shell. Do not use a system user. Use a user you created in OMV. You can also create a new user.

    To create a new user was also my idea now. To which groups should this user belong and to which folders should it have access rights?

  • To create a new user was also my idea now. To which groups should this user belong and to which folders should it have access rights?

    This is my settings for user trythat.

    Code
    _ssh, adm, audio, cdrom, cterm, dip, docker, floppy, kvm, netdev, openmediavault-admin, plugdev, sudo, trythat, users, video


    But I did this a while ago, I realize some of these are not needed. Default OMV groups is 'users', but this is a minimum I would think.

    If using ssh - _ssh

    if using docker - docker

    if using kvm - kvm

    if using sudo - sudo

    username - username

    if using cterm - cterm

    default group - users


    The following are my linux laptop user groups, as default,

    Code
    uid=1000(trythat) gid=1000(trythat) groups=1000(trythat),4(adm),20(dialout),21(fax),24(cdrom),25(floppy),26(tape),27(sudo),29(audio),30(dip),44(video),46(plugdev),100(users),106(netdev),110(lpadmin),115(bluetooth),123(scanner)

    So I suppose this might be a starting point until someone comes up with a better answer.



    OMV Version 8.latest | AMD Ryzen 5600G with 64GB | JBOD EXT4 & BRTFS

    Various Unifi router & switches | Only Linux laptops and PC's

  • Why "root" group? Dangerous

    "root" and "sudo" does not make sense

    To be able to start system commands on the host like in the SSH shell.

    And you also told to include "sudo" some post before. ;)


    ... but for testing the new plugin I also reduced to "cterm, users".

    • Official Post

    Aside from the lack of inclusion in the official documentation (+wiki)

    It is still developing.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    I tell people to never add a user to the root group.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Cterm --> nice add-on. I just have a MariaDB and Sonarr running in OMV and do not see any practical reason for using it. If and when I need to get on OMV CLI I just ssh to it from one of my Linux computers. Maybe I am missing something, so if anyone would give me an example of practical use of it, I would greatly appreciate.

    Debian/KDE-Plasma 6, FreeBSD-KDE

    OMV8 NAS 2-10GB LACP bond0 Fiber, pfSense+ firewall/router

    • Official Post

    nice add-on. I just have a MariaDB and Sonarr running in OMV and do not see any practical reason for using it. If and when I need to get on OMV CLI I just ssh to it from one of my Linux computers. Maybe I am missing something, so if anyone would give me an example of practical use of it, I would greatly appreciate.

    You don't have to force yourself to use it. It is not meant to be wetty. It is an easy way to exec into a docker container (portainer has this feature) and get an LXC console (proxmox has this feature). The host terminal was added because it was easy.


    I exec into mysql containers at work because no user has privileges to change schema and root can't login. Keeps the database secure.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • You don't have to force yourself to use it. It is not meant to be wetty. It is an easy way to exec into a docker container (portainer has this feature) and get an LXC console (proxmox has this feature). The host terminal was added because it was easy.


    I exec into mysql containers at work because no user has privileges to change schema and root can't login. Keeps the database secure.

    It is, really, not a question of being "forced" to use it. Month or so ago I had a catastrophic failure of the drive holding MariaDB databases that I use for 5 Kodi installs. If this have happen right now the CTerm would be great to create actual Kodi user, using "mysql -u root -p" and then "CREATE USER 'kodi' IDENTIFIED BY 'kodi'; ", and permission in MariaDB. Instead I had to install Portainer. Worked great. Yes "root" cannot login and I am the only person accessing it. This is my home intranet.

    Debian/KDE-Plasma 6, FreeBSD-KDE

    OMV8 NAS 2-10GB LACP bond0 Fiber, pfSense+ firewall/router

  • What is the difference of cterm in comparison to ssh connection dropping "docker exec -it --user xy mycontainer bash" and whatever is needed?

    AMD Ryzen 5 PRO 5650G with ECC unbuffered 32GB.


    ...with zfs as only filesystem in use -> pass encrypted root, key encrypted pools, compression zstd (and lz4 where better suited) and adjusted recordsize for ssd and hdd. Zfs is also doing mirror (root, boot), stripe (io drive) and raidz (data storage). Most optimized for response, io drive optimised for throughput. Zfs is really versatile 8)

  • What is the difference of cterm in comparison to ssh connection dropping "docker exec -it --user xy mycontainer bash" and whatever is needed?

    no difference really as far as I can see. Just a web gui way to access the containers shells instead of via an ssh connection.

    Asrock B450M, AMD 5600G, 64GB RAM, 6 x 4TB RAID 5 array, 2 x 10TB RAID 1 array, 100GB SSD for OS, 1TB SSD for docker and VMs, 1TB external SSD for fsarchiver OS and docker data daily backups

    • Official Post

    What is the difference of cterm in comparison to ssh connection dropping "docker exec -it --user xy mycontainer bash" and whatever is needed?

    The same except it doesn't pass the user parameter. https://github.com/OpenMediaVa…v_cterm/omv_cterm.py#L712


    It does connect to LXC containers and can be a host shell too.


    But nothing magic here. This was pretty much the last feature from portainer and proxmox that I thought the compose and kvm plugins needed.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • But nothing magic here. This was pretty much the last feature from portainer and proxmox that I thought the compose and kvm plugins needed.

    Giving that OMV moved away from Portainer and moved to Compose, it only make sense to complete transition and implement last features from Portainer and Proxmox.

    Debian/KDE-Plasma 6, FreeBSD-KDE

    OMV8 NAS 2-10GB LACP bond0 Fiber, pfSense+ firewall/router

    • Official Post

    is there anyway to put a hold on the cterm plugin?

    What does this mean?

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!