Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Einrichten als LXC-Container

    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

    Einrichten als LXC-Container

    This topic has been deleted. Only users with topic management privileges can see it.
    • MathiasJ
      MathiasJ @Mic last edited by MathiasJ

      @Mic
      den User habe ich schon eingerichtet.
      Auf einmal geht es wieder, Nach einem Reboot dauert es wieder ewig bis ich über der Konsole oder Putty darauf zugreifen kann.
      @crunchip
      Du hattest recht. IP6 auf SLAAC umgestellt, schon geht's........
      Gruß,
      Mathias

      1 Reply Last reply Reply Quote 1
      • E
        Einstein67 @Mic last edited by Einstein67

        @Mic said in Einrichten als LXC-Container:

        Nicht so schnell aufgeben!
        Hier mal meine Anleitung, auch um User einzurichten, mit dem du dann über Putty zugreifen kannst:

        Das geht noch einfacher 😉

        1. Debian10 Template herunterladen
        2. CT aus Debian Template erstellen ("unprivilegierter Container" abwählen)
        3. Container starten
        4. anmelden als root
        5. apt update && apt upgrade -y
        6. mit "dpkg-reconfigure tzdata" und "dpkg-reconfigure locales" Uhrzeit und Zeichnsatz einstellen
        7. apt install sudo
        8. apt install curl
        9. Benutzer anlegen zB: "adduser iobroker" danach "adduser iobroker sudo"
        10 reboot
        12 als User iobroker anmelden
        13 curl -sL https://iobroker.net/install.sh | bash - 
        14 Fertig! Das Script installiert alle nötigen Pakete, node, nodejs, npm und iobroker 
        

        Dauert keine 10 Minuten. Danach ein Backup, Snapshot oder ein Template daraus erstellen, und man hat immer eine frische Installation zur Hand.

        FredF 1 Reply Last reply Reply Quote 2
        • FredF
          FredF Most Active Forum Testing @Einstein67 last edited by

          @Einstein67
          Da muss ich meinen Senf auch noch zugeben 😁
          Zwischen Punkt 12 und 12, also nach user anlegen muss doch noch

          curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
          
          sudo apt install -y nodejs
          

          und

          sudo reboot
          

          gemacht werden siehe.

          1 Reply Last reply Reply Quote 0
          • E
            Einstein67 last edited by Einstein67

            Nein, das macht das Install Script! Prüft ob Node installiert ist, und wenn nicht wird node, nodejs und npm automatisch installiert!

            Probier mal, das geht wirklich!

            iobroker@iob10s:~$ curl -sL https://iobroker.net/install.sh | bash - 
            
            ==========================================================================
            
                Welcome to the ioBroker installer!
                Installer version: 2019-11-10
                
                You might need to enter your password a couple of times.
            
            ==========================================================================
            
            
            ==========================================================================
                Installing prerequisites (1/4)
            ==========================================================================
            
            
            Wir gehen davon aus, dass der lokale Systemadministrator Ihnen die
            Regeln erklärt hat.  Normalerweise läuft es auf drei Regeln hinaus:
            
                #1) Respektieren Sie die Privatsphäre anderer.
                #2) Denken Sie nach, bevor Sie tippen.
                #3) Mit großer Macht kommt große Verantwortung.
            
            [sudo] Passwort für iobroker: 
            Holen:1 http://security.debian.org buster/updates InRelease [65,4 kB]
            OK:2 http://ftp.debian.org/debian buster InRelease         
            Holen:3 http://ftp.debian.org/debian buster-updates InRelease [49,3 kB]
            Holen:4 http://security.debian.org buster/updates/main amd64 Packages [169 kB]
            Holen:5 http://security.debian.org buster/updates/main Translation-en [87,9 kB]
            Es wurden 371 kB in 0 s geholt (978 kB/s).                  
            Paketlisten werden gelesen... Fertig
            
            ==========================================================================
            
                Node.js not found. Installing...
            
            ==========================================================================
            
            Installed gcc-c++
            Installed make
            Installed build-essential
            
            ## Installing the NodeSource Node.js 10.x repo...
            
            
            ## Populating apt-get cache...
            
            + apt-get update
            OK:1 http://security.debian.org buster/updates InRelease
            OK:2 http://ftp.debian.org/debian buster InRelease
            OK:3 http://ftp.debian.org/debian buster-updates InRelease
            Paketlisten werden gelesen... Fertig
            
            ## Installing packages required for setup: lsb-release gnupg...
            
            + apt-get install -y lsb-release gnupg > /dev/null 2>&1
            
            ## Confirming "buster" is supported...
            
            + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_10.x/dists/buster/Release'
            
            ## Adding the NodeSource signing key to your keyring...
            
            + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
            OK
            
            ## Creating apt sources list file for the NodeSource Node.js 10.x repo...
            
            + echo 'deb https://deb.nodesource.com/node_10.x buster main' > /etc/apt/sources.list.d/nodesource.list
            + echo 'deb-src https://deb.nodesource.com/node_10.x buster main' >> /etc/apt/sources.list.d/nodesource.list
            
            ## Running `apt-get update` for you...
            
            + apt-get update
            OK:1 http://security.debian.org buster/updates InRelease
            OK:2 http://ftp.debian.org/debian buster InRelease                           
            OK:3 http://ftp.debian.org/debian buster-updates InRelease                   
            Holen:4 https://deb.nodesource.com/node_10.x buster InRelease [4.584 B]      
            Holen:5 https://deb.nodesource.com/node_10.x buster/main amd64 Packages [766 B]
            Es wurden 5.350 B in 0 s geholt (12,7 kB/s).
            Paketlisten werden gelesen... Fertig
            
            ## Run `sudo apt-get install -y nodejs` to install Node.js 10.x and npm
            ## You may also need development tools to build native addons:
                 sudo apt-get install gcc g++ make
            ## To install the Yarn package manager, run:
                 curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
                 echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
                 sudo apt-get update && sudo apt-get install yarn
            
            
            Installed nodejs
            Node.js Installed successfully!
            Changing npm registry to https://registry.npmjs.org
            Installed acl
            Installed libavahi-compat-libdnssd-dev
            Installed libudev-dev
            Installed libpam0g-dev
            Installed git
            Installed unzip
            Installed python-dev
            
            ==========================================================================
                Creating ioBroker user and directory (2/4)
            ==========================================================================
            
            Created /etc/sudoers.d/iobroker
            Directory /opt/iobroker created
            
            ==========================================================================
                Installing ioBroker (3/4)
            ==========================================================================
            
            Homoran FredF 2 Replies Last reply Reply Quote 1
            • Homoran
              Homoran Global Moderator Administrators @Einstein67 last edited by

              @Einstein67 sagte in Einrichten als LXC-Container:

              Prüft ob Node installiert ist, und wenn nicht wird node, nodejs und npm automatisch installiert!

              Das ist selbst mir neu.

              Das muss dann wohl im November dazu gekommen sein.

              Chaot 1 Reply Last reply Reply Quote 0
              • FredF
                FredF Most Active Forum Testing @Einstein67 last edited by

                @Einstein67 sagte in Einrichten als LXC-Container:

                Probier mal, das geht wirklich!

                Stimmt! Ich nehme alles zurück... gestoppte 6 Minuten

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

                  @Homoran Nur mal so am Rande:
                  Für den Raspi gibt es ja eine Vorlage bzw. ein Image.
                  Wäre es nicht eventuell eine Option für Proxmox einen LXC-Template zur Verfügung zu stellen?

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

                    @Chaot
                    Da ich persönlich alle Container hasse werde ich das nicht machen.

                    Ich hatte schon mal mit einer proxmox VM angefangen, das aber irgendwie wieder aus den Augen verloren.

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

                      @Homoran Ok, war nur mal so als Gedanke.
                      Gerade Proxmox hätte sich da ja angeboten und es scheint das mittlerweile immer mehr Installationen auf Proxmox aufgebaut werden.
                      Aber eine fertige VM wäre auch eine Idee.👍

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

                        @Chaot
                        Wenn du mal das Forum überfliegt kommen im Vergleich zur VM viel mehr Probleme mit Docker oder anderen Containern .
                        Auch dieser Thread fing schon gut an.
                        Wenn dann noch USB Devices, callbacks indcsonstiges eingebunden werden sollen wären insbesondere Anfänger mit einer VM viel besser beraten.

                        Die Diskussion um Ressourceneinsparung bei einem Container ist bei den entsprechenden Geräten der nuc Klasse absolut zu vernachlässigen.

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

                          @Homoran Da hast du ja auch Recht. Ich komme noch aus einer Zeit wo ich mit Resourchen (Speicher) knausern musste. Von daher liegt mir der Container etwas näher im Blut.

                          Aber wer im Keller noch eine 19" 2HE 20 MB Festplatte hat ist sowieso schon zu alt für sowas 👴

                          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

                          495
                          Online

                          31.9k
                          Users

                          80.1k
                          Topics

                          1.3m
                          Posts

                          lxc-container proxmox 6
                          8
                          25
                          3206
                          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