Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Iobroker auf intel Nuc

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Iobroker auf intel Nuc

    This topic has been deleted. Only users with topic management privileges can see it.
    • crunchip
      crunchip Forum Testing Most Active @Kusi last edited by

      @kusi du versucht als user pi sudo zu installieren

      Homoran 1 Reply Last reply Reply Quote 0
      • BBTown
        BBTown @Kusi last edited by BBTown

        @kusi

        folgendes als root ausführen

        usermod -aG sudo pi
        

        danach neu als "kusi" oder als "pi" anmelden

        K 1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @crunchip last edited by

          @crunchip sagte in Iobroker auf intel Nuc:

          @kusi du versucht als user pi sudo zu installieren

          @crunchip sagte in Iobroker auf intel Nuc:

          @homoran sudo ist, bzw wird automatisch installiert, wenn ein user angelegt wird, also nur curl nachinstallieren

          :?:

          crunchip BBTown 2 Replies Last reply Reply Quote 0
          • K
            Kusi @BBTown last edited by

            @bbtown sagte in Iobroker auf intel Nuc:

            usermod -aG sudo pi

            Kommando nicht gefunden

            D 1 Reply Last reply Reply Quote 0
            • crunchip
              crunchip Forum Testing Most Active @Homoran last edited by crunchip

              @homoran habs oben editiert, wenn beim install, root leer gelassen wird. Hier existiert doch ein ausführlicher Thread zum Thema VM erstellen in Proxmox
              habs rausgesucht https://forum.iobroker.net/topic/43476/iobroker-in-proxmox-auf-debian-bereitstellen?_=1625165072221

              1 Reply Last reply Reply Quote 0
              • D
                darkiop Most Active @Kusi last edited by

                @kusi sagte in Iobroker auf intel Nuc:

                @bbtown sagte in Iobroker auf intel Nuc:

                usermod -aG sudo pi

                Kommando nicht gefunden

                Du bist kein root mehr ... usermod als root, dann zum neuen User wechseln. Siehe oben ....

                K 1 Reply Last reply Reply Quote 0
                • BBTown
                  BBTown @Homoran last edited by

                  @homoran
                  im Grunde laufe ich bei jedem Container und jeder VM diesen Ablauf durch:

                  #Proxmox Einstellungen in jeder LXC/VM
                  apt install sudo
                  apt install curl -y # Installation über https
                  dpkg-reconfigure tzdata #Zeitzone einstellen - Abfrage der Zeitzone mit "date"
                  oder timedatectl set-local-rtc 1
                  oder timedatectl set-timezone Europe/Berlin
                  apt install ncdu -y  # ähnlich wie "treesize"
                  apt install cifs-utils -y  # SMB Netzwerklaufwerke mounten
                  apt install nfs-common -y  # NFS Laufwerke musik@szendeleit
                  apt install net-tools
                  apt install nmap -y
                  apt install nethogs -y  # ausführen über: nethogs -v 3
                  apt install neofetch -y # Systeminformationen Aufruf: neofetch
                  apt install vsftpd -y # Eintellungen siehe weiter unten
                  adduser <username>
                  usermod -aG sudo <username> # einem User sudo Rechte geben
                  
                  # ftp Server auf LXC einrichten
                  apt install vsftpd -y
                  nano /etc/vsftpd.conf
                  # Edit these lines, first disable anonymous FTP access for security purposes
                  anonymous_enable=NO
                  local_enable=YES
                  write_enable=YES
                  force_dot_files=YES
                  nano /etc/ftpusers
                  #root
                  service vsftpd restart
                  
                  # ssh Zugriff in LXC Container zulassen
                  # inside container, open /etc/ssh/sshd_config and change PermitRootLogin to yes.
                  nano /etc/ssh/sshd_config
                  # Authentication:
                  LoginGraceTime 120
                  StrictModes yes
                  
                  D 1 Reply Last reply Reply Quote 0
                  • K
                    Kusi @darkiop last edited by

                    @darkiop
                    d2a139b5-d740-4384-ac16-136024c41d48-image.png

                    Habe mich als Root angemeldet...

                    BBTown 1 Reply Last reply Reply Quote 0
                    • D
                      darkiop Most Active @BBTown last edited by

                      @bbtown sagte in Iobroker auf intel Nuc:

                      im Grunde laufe ich bei jedem Container und jeder VM diesen Ablauf durch:

                      Ich hab dazu meine

                      https://github.com/darkiop/dotfiles

                      Gerne mal anschauen, neben dem Install Skript für die dotfiles gibts auch noch ein paar andere für die Grundlegende Config (SSH; fail2ban).

                      Allerdings müsste das Repo auch mal wieder aufgeräumt werden, da ist sicher noch die ein oder andere Leiche versteckt 🙂

                      Über das Install-Skript kann auch direkt (natürlich nur bei lokalen Maschienen nutzen) Samba installiert werden und somit die CIFS Freigabe für Windows Clients bereitstellen.

                      BBTown 1 Reply Last reply Reply Quote 2
                      • BBTown
                        BBTown @Kusi last edited by

                        @kusi meine Herren, Du hast doch weiter oben den User kusi angelegt und in die Gruppe sudoers gepackt weshalb hast Du den User angelegt wenn du ihn nicht verwendest?

                        K D 2 Replies Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active last edited by Thomas Braun

                          @bbtown
                          Besser nicht 'iobroker' als User anlegen. Der wird schon vom iob-Installer als Systemuser angelegt.

                          Siehe z. B. auf meinem System:

                          iobroker:x:1001:1001::/home/iobroker:/usr/sbin/nologin
                          echad:x:1002:1002:Thomas Braun,,,:/home/echad:/bin/bash
                          

                          Der iobroker bekommt also nologin verpasst, im Gegensatz zu einem normalen User, der die bash bekommt.

                          BBTown 1 Reply Last reply Reply Quote 2
                          • BBTown
                            BBTown @Thomas Braun last edited by

                            @thomas-braun guter hinweis 👍

                            1 Reply Last reply Reply Quote 0
                            • K
                              Kusi @BBTown last edited by Kusi

                              @bbtown ich habe den User kusi noch nicht angelegt.

                              Dies mit pi wusste ich nicht.
                              Den User pi habe ich als "User-Name" während der Debian-Installation angegeben.

                              1 Reply Last reply Reply Quote 0
                              • BBTown
                                BBTown @darkiop last edited by

                                @darkiop das schaue ich mir gerne mal an 👍

                                D 1 Reply Last reply Reply Quote 0
                                • D
                                  darkiop Most Active @BBTown last edited by

                                  @bbtown sagte in Iobroker auf intel Nuc:

                                  meine Herren, Du hast doch weiter oben den User kusi angelegt und in die Gruppe sudoers gepackt weshalb hast Du den User angelegt wenn du ihn nicht verwendest?

                                  Er hat 'pi' angelegt.

                                  @kusi sagte in Iobroker auf intel Nuc:

                                  @darkiop
                                  d2a139b5-d740-4384-ac16-136024c41d48-image.png

                                  Habe mich als Root angemeldet...

                                  Ich habe keine Idee was du machst - usermod ist eigentlich immer da.

                                  Hast du denn überhaupt eine Verbindung zum Internet und der Debian Installer hat alles sauber installiert bekommen? Oder besteht das Netzwerk Problem immer noch?

                                  1 Reply Last reply Reply Quote 0
                                  • BBTown
                                    BBTown @darkiop last edited by

                                    @Kusi

                                    sorry, ich dachte das hier war von dir!

                                    Ja, einfach gesagt, weil die Web-Konsole der VM eine andere ist wie der LXCs. Für die VM, grundlegende Einrichtung nach der Installation:

                                    # install sudo & git
                                    apt update
                                    apt upgrade -y
                                    apt install sudo git -y
                                    # adduser (as root)
                                    adduser kusi
                                    # add user 'kusi' to group 'sudo' (as root)
                                    usermod -a -G sudo kusi
                                    # set timezone (as root)
                                    ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
                                    dpkg-reconfigure -f noninteractive tzdata
                                    #setup timeserver sync
                                    systemctl status systemd-timesyncd
                                    sed -i 's/#NTP=/NTP=192.168.1.1/' /etc/systemd/timesyncd.conf
                                    timedatectl set-ntp off
                                    timedatectl set-ntp on
                                    systemctl status systemd-timesyncd
                                    # keyboard layout (as root)
                                    dpkg-reconfigure locales
                                    # set a new hostname
                                    hostnamectl set-hostname NAME
                                    # after this: change the name in /etc/hosts with an editor manually
                                    # switch user
                                    su kusi
                                    
                                    

                                    hast du als root angemeldet diese Ìnstallation durchgeführt?

                                    apt install sudo
                                    
                                    K 1 Reply Last reply Reply Quote 0
                                    • D
                                      darkiop Most Active @BBTown last edited by

                                      @bbtown sagte in Iobroker auf intel Nuc:

                                      @darkiop das schaue ich mir gerne mal an 👍

                                      Gern - Feedback willkommen 🙂 Ich nutze das fast täglich beim ausrollen von VMs / LXCs - bin also "geübt" und übersehe vielleicht den ein oder anderen Graben den es noch gibt 😄

                                      1 Reply Last reply Reply Quote 0
                                      • K
                                        Kusi @BBTown last edited by Kusi

                                        @bbtown sagte in Iobroker auf intel Nuc:

                                        hast du als root angemeldet diese Ìnstallation durchgeführt?

                                        nein. Ich habe als pi angemeldet und dann "su" eingegeben, sowie das Passwort.

                                        Folgendes kommt dann:
                                        c95046ec-ae27-4bfe-adf9-c615a19a5422-image.png

                                        Die VM sehe ich auf dem Router als Gerät und verbunden. Anpingen kann ich mit der VM aber kein Gerät.
                                        a7ff5d5b-b340-4c44-a28c-ae7fd901efd0-image.png

                                        8cf65ccd-5c22-48d6-b027-744d2a713194-image.png

                                        crunchip BBTown 2 Replies Last reply Reply Quote 0
                                        • crunchip
                                          crunchip Forum Testing Most Active @Kusi last edited by crunchip

                                          @kusi also immer noch dein Netzwerk/Firmware Problem

                                          1 Reply Last reply Reply Quote 0
                                          • BBTown
                                            BBTown @Kusi last edited by

                                            @kusi was ist "internetbox"?
                                            ist das dein router?
                                            dann würde ich erwarten dass die IP von internetbox (192.168.1.5) dein "gateway" ist und nicht 192.168.1.1?

                                            K 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            767
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            iobroker nuc
                                            13
                                            192
                                            21527
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo