{"id":7787,"date":"2018-05-09T08:52:05","date_gmt":"2018-05-09T08:52:05","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=7787"},"modified":"2018-05-09T13:25:07","modified_gmt":"2018-05-09T13:25:07","slug":"raspberry-pi-3-notizen","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=7787","title":{"rendered":"Raspberry Pi 3, Notizen"},"content":{"rendered":"<pre class=\"brush: plain; title: dd; notranslate\" title=\"dd\">\r\ndd bs=4M if=2018-04-18-raspbian-stretch.img of=\/dev\/sdX conv=fsync\r\n<\/pre>\n<pre class=\"brush: plain; title: cmdline.txt; notranslate\" title=\"cmdline.txt\">\r\ndwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=20586949-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait\r\n<\/pre>\n<pre class=\"brush: plain; title: config.txt; notranslate\" title=\"config.txt\">\r\n# Uncomment some or all of these to enable the optional hardware interfaces\r\ndtparam=i2c_arm=on\r\n#dtparam=i2s=on\r\ndtparam=spi=on\r\n\r\n# Uncomment this to enable the lirc-rpi module\r\n#dtoverlay=lirc-rpi\r\n\r\n# Additional overlays and parameters are documented \/boot\/overlays\/README\r\n\r\n# Enable audio (loads snd_bcm2835)\r\ndtparam=audio=on\r\n\r\nenable_uart=1\r\nstart_x=1\r\ngpu_mem=128\r\n\r\n#dtoverlay=spi-bcm2835\r\ndtoverlay=spi0-hw-cs\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\npi@raspberrypi:~$ sudo useradd andreas\r\n\r\npi@raspberrypi:~$ sudo apt-get install openssh-server\r\nReading package lists... Done\r\nBuilding dependency tree       \r\nReading state information... Done\r\nopenssh-server is already the newest version (1:7.4p1-10+deb9u3).\r\nopenssh-server set to manually installed.\r\n0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\r\n\r\npi@raspberrypi:~$ sudo systemctl enable ssh\r\nSynchronizing state of ssh.service with SysV service script with \/lib\/systemd\/systemd-sysv-install.\r\nExecuting: \/lib\/systemd\/systemd-sysv-install enable ssh\r\nCreated symlink \/etc\/systemd\/system\/sshd.service \u2192 \/lib\/systemd\/system\/ssh.service.\r\n\r\npi@raspberrypi:~$ sudo systemctl start ssh\r\n\r\npi@raspberrypi:~$ sudo adduser andreas\r\nAdding user `andreas' ...\r\nAdding new group `andreas' (1001) ...\r\nAdding new user `andreas' (1001) with group `andreas' ...\r\nCreating home directory `\/home\/andreas' ...\r\nCopying files from `\/etc\/skel' ...\r\nEnter new UNIX password: \r\nRetype new UNIX password: \r\npasswd: password updated successfully\r\nChanging the user information for andreas\r\nEnter the new value, or press ENTER for the default\r\n\tFull Name &#x5B;Andreas Bachman]: bachman0\r\n\tRoom Number &#x5B;]: \r\n\tWork Phone &#x5B;]: \r\n\tHome Phone &#x5B;]: \r\n\tOther &#x5B;]: \r\nIs the information correct? &#x5B;Y\/n] y\r\n\r\npi@raspberrypi:~$ sudo vi \/etc\/sudoers\r\nandreas ALL=(ALL) NOPASSWD: ALL\r\n\r\n\r\npi@raspberrypi:~$ sudo apt-get install samba\r\nReading package lists... Done\r\nBuilding dependency tree       \r\nReading state information... Done\r\nThe following additional packages will be installed:\r\n  attr libaio1 libavahi-client3 libcups2 libfile-copy-recursive-perl\r\n  libgpgme11 libldb1 libpython2.7 libtdb1 libtevent0 python-crypto\r\n  python-dnspython python-ldb python-samba python-talloc python-tdb\r\n  samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules tdb-tools\r\n  update-inetd\r\nSuggested packages:\r\n  cups-common gpgsm python-crypto-dbg python-crypto-doc python-gpgme bind9\r\n  bind9utils ctdb ldb-tools ntp | chrony smbldap-tools winbind ufw\r\n  heimdal-clients\r\nThe following NEW packages will be installed:\r\n  attr libaio1 libavahi-client3 libcups2 libfile-copy-recursive-perl\r\n  libgpgme11 libldb1 libpython2.7 libtdb1 libtevent0 python-crypto\r\n  python-dnspython python-ldb python-samba python-talloc python-tdb samba\r\n  samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules tdb-tools\r\n  update-inetd\r\n0 upgraded, 23 newly installed, 0 to remove and 0 not upgraded.\r\nNeed to get 9,643 kB of archives.\r\nAfter this operation, 49.1 MB of additional disk space will be used.\r\nDo you want to continue? &#x5B;Y\/n] y\r\nGet:1 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf python-dnspython all 1.15.0-1 &#x5B;102 kB]\r\nGet:2 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf python-crypto armhf 2.6.1-7 &#x5B;253 kB]\r\nGet:3 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf libtdb1 armhf 1.3.11-2 &#x5B;38.0 kB]\r\nGet:4 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf libtevent0 armhf 0.9.31-1 &#x5B;24.7 kB]\r\nGet:5 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf libldb1 armhf 2:1.1.27-1 &#x5B;92.1 kB]\r\nGet:6 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf libpython2.7 armhf 2.7.13-2+deb9u2 &#x5B;914 kB]\r\nGet:7 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf python-ldb armhf 2:1.1.27-1 &#x5B;30.0 kB]\r\nGet:8 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf python-tdb armhf 1.3.11-2 &#x5B;15.3 kB]\r\nGet:9 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf python-talloc armhf 2.1.8-1 &#x5B;11.3 kB]\r\nGet:10 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf libavahi-client3 armhf 0.6.32-2 &#x5B;51.3 kB]\r\nGet:11 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf libcups2 armhf 2.2.1-8 &#x5B;272 kB]\r\nGet:12 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf samba-libs armhf 2:4.5.12+dfsg-2+deb9u2 &#x5B;4,377 kB]\r\nGet:13 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf python-samba armhf 2:4.5.12+dfsg-2+deb9u2 &#x5B;1,143 kB]\r\nGet:14 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf samba-common-bin armhf 2:4.5.12+dfsg-2+deb9u2 &#x5B;555 kB]\r\nGet:15 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf tdb-tools armhf 1.3.11-2 &#x5B;25.7 kB]\r\nGet:16 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf libfile-copy-recursive-perl all 0.38-1 &#x5B;20.6 kB]\r\nGet:17 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf update-inetd all 4.44 &#x5B;20.8 kB]\r\nGet:18 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf samba armhf 2:4.5.12+dfsg-2+deb9u2 &#x5B;869 kB]\r\nGet:19 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf attr armhf 1:2.4.47-2 &#x5B;41.3 kB]\r\nGet:20 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf libaio1 armhf 0.3.110-3 &#x5B;9,366 B]\r\nGet:21 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf libgpgme11 armhf 1.8.0-3 &#x5B;141 kB]\r\nGet:22 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf samba-dsdb-modules armhf 2:4.5.12+dfsg-2+deb9u2 &#x5B;304 kB]\r\nGet:23 http:\/\/mirror.switch.ch\/ftp\/mirror\/raspbian\/raspbian stretch\/main armhf samba-vfs-modules armhf 2:4.5.12+dfsg-2+deb9u2 &#x5B;334 kB]\r\nFetched 9,643 kB in 7s (1,259 kB\/s)                                            \r\nPreconfiguring packages ...\r\nSelecting previously unselected package python-dnspython.\r\n(Reading database ... 35265 files and directories currently installed.)\r\nPreparing to unpack ...\/00-python-dnspython_1.15.0-1_all.deb ...\r\nUnpacking python-dnspython (1.15.0-1) ...\r\nSelecting previously unselected package python-crypto.\r\nPreparing to unpack ...\/01-python-crypto_2.6.1-7_armhf.deb ...\r\nUnpacking python-crypto (2.6.1-7) ...\r\nSelecting previously unselected package libtdb1:armhf.\r\nPreparing to unpack ...\/02-libtdb1_1.3.11-2_armhf.deb ...\r\nUnpacking libtdb1:armhf (1.3.11-2) ...\r\nSelecting previously unselected package libtevent0:armhf.\r\nPreparing to unpack ...\/03-libtevent0_0.9.31-1_armhf.deb ...\r\nUnpacking libtevent0:armhf (0.9.31-1) ...\r\nSelecting previously unselected package libldb1:armhf.\r\nPreparing to unpack ...\/04-libldb1_2%3a1.1.27-1_armhf.deb ...\r\nUnpacking libldb1:armhf (2:1.1.27-1) ...\r\nSelecting previously unselected package libpython2.7:armhf.\r\nPreparing to unpack ...\/05-libpython2.7_2.7.13-2+deb9u2_armhf.deb ...\r\nUnpacking libpython2.7:armhf (2.7.13-2+deb9u2) ...\r\nSelecting previously unselected package python-ldb.\r\nPreparing to unpack ...\/06-python-ldb_2%3a1.1.27-1_armhf.deb ...\r\nUnpacking python-ldb (2:1.1.27-1) ...\r\nSelecting previously unselected package python-tdb.\r\nPreparing to unpack ...\/07-python-tdb_1.3.11-2_armhf.deb ...\r\nUnpacking python-tdb (1.3.11-2) ...\r\nSelecting previously unselected package python-talloc.\r\nPreparing to unpack ...\/08-python-talloc_2.1.8-1_armhf.deb ...\r\nUnpacking python-talloc (2.1.8-1) ...\r\nSelecting previously unselected package libavahi-client3:armhf.\r\nPreparing to unpack ...\/09-libavahi-client3_0.6.32-2_armhf.deb ...\r\nUnpacking libavahi-client3:armhf (0.6.32-2) ...\r\nSelecting previously unselected package libcups2:armhf.\r\nPreparing to unpack ...\/10-libcups2_2.2.1-8_armhf.deb ...\r\nUnpacking libcups2:armhf (2.2.1-8) ...\r\nSelecting previously unselected package samba-libs:armhf.\r\nPreparing to unpack ...\/11-samba-libs_2%3a4.5.12+dfsg-2+deb9u2_armhf.deb ...\r\nUnpacking samba-libs:armhf (2:4.5.12+dfsg-2+deb9u2) ...\r\nSelecting previously unselected package python-samba.\r\nPreparing to unpack ...\/12-python-samba_2%3a4.5.12+dfsg-2+deb9u2_armhf.deb ...\r\nUnpacking python-samba (2:4.5.12+dfsg-2+deb9u2) ...\r\nSelecting previously unselected package samba-common-bin.\r\nPreparing to unpack ...\/13-samba-common-bin_2%3a4.5.12+dfsg-2+deb9u2_armhf.deb ...\r\nUnpacking samba-common-bin (2:4.5.12+dfsg-2+deb9u2) ...\r\nSelecting previously unselected package tdb-tools.\r\nPreparing to unpack ...\/14-tdb-tools_1.3.11-2_armhf.deb ...\r\nUnpacking tdb-tools (1.3.11-2) ...\r\nSelecting previously unselected package libfile-copy-recursive-perl.\r\nPreparing to unpack ...\/15-libfile-copy-recursive-perl_0.38-1_all.deb ...\r\nUnpacking libfile-copy-recursive-perl (0.38-1) ...\r\nSelecting previously unselected package update-inetd.\r\nPreparing to unpack ...\/16-update-inetd_4.44_all.deb ...\r\nUnpacking update-inetd (4.44) ...\r\nSelecting previously unselected package samba.\r\nPreparing to unpack ...\/17-samba_2%3a4.5.12+dfsg-2+deb9u2_armhf.deb ...\r\nUnpacking samba (2:4.5.12+dfsg-2+deb9u2) ...\r\n&#x5B;  615.677679] Under-voltage detected! (0x00050005)\r\nSelecting previously unselected package attr.\r\nPreparing to unpack ...\/18-attr_1%3a2.4.47-2_armhf.deb ...\r\nUnpacking attr (1:2.4.47-2) ...\r\nSelecting previously unselected package libaio1:armhf.\r\nPreparing to unpack ...\/19-libaio1_0.3.110-3_armhf.deb ...\r\nUnpacking libaio1:armhf (0.3.110-3) ...\r\nSelecting previously unselected package libgpgme11:armhf.\r\nPreparing to unpack ...\/20-libgpgme11_1.8.0-3_armhf.deb ...\r\nUnpacking libgpgme11:armhf (1.8.0-3) ...\r\nSelecting previously unselected package samba-dsdb-modules.\r\nPreparing to unpack ...\/21-samba-dsdb-modules_2%3a4.5.12+dfsg-2+deb9u2_armhf.deb ...\r\nUnpacking samba-dsdb-modules (2:4.5.12+dfsg-2+deb9u2) ...\r\nSelecting previously unselected package samba-vfs-modules.\r\nPreparing to unpack ...\/22-samba-vfs-modules_2%3a4.5.12+dfsg-2+deb9u2_armhf.deb ...\r\nUnpacking samba-vfs-modules (2:4.5.12+dfsg-2+deb9u2) ...\r\nSetting up python-dnspython (1.15.0-1) ...\r\nSetting up libtdb1:armhf (1.3.11-2) ...\r\nSetting up python-crypto (2.6.1-7) ...\r\nSetting up libgpgme11:armhf (1.8.0-3) ...\r\nSetting up libtevent0:armhf (0.9.31-1) ...\r\nProcessing triggers for libc-bin (2.24-11+deb9u3) ...\r\nSetting up libaio1:armhf (0.3.110-3) ...\r\nProcessing triggers for systemd (232-25+deb9u2) ...\r\nSetting up libpython2.7:armhf (2.7.13-2+deb9u2) ...\r\nSetting up tdb-tools (1.3.11-2) ...\r\nupdate-alternatives: using \/usr\/bin\/tdbbackup.tdbtools to provide \/usr\/bin\/tdbbackup (tdbbackup) in auto mode\r\nProcessing triggers for man-db (2.7.6.1-2) ...\r\n&#x5B;  626.077803] Under-voltage detected! (0x00050005)\r\nSetting up libavahi-client3:armhf (0.6.32-2) ...\r\nSetting up attr (1:2.4.47-2) ...\r\nSetting up libfile-copy-recursive-perl (0.38-1) ...\r\nSetting up libcups2:armhf (2.2.1-8) ...\r\nSetting up python-talloc (2.1.8-1) ...\r\nSetting up update-inetd (4.44) ...\r\nSetting up python-tdb (1.3.11-2) ...\r\nSetting up libldb1:armhf (2:1.1.27-1) ...\r\nSetting up python-ldb (2:1.1.27-1) ...\r\nSetting up samba-libs:armhf (2:4.5.12+dfsg-2+deb9u2) ...\r\nSetting up samba-vfs-modules (2:4.5.12+dfsg-2+deb9u2) ...\r\nSetting up python-samba (2:4.5.12+dfsg-2+deb9u2) ...\r\nSetting up samba-common-bin (2:4.5.12+dfsg-2+deb9u2) ...\r\nSetting up samba-dsdb-modules (2:4.5.12+dfsg-2+deb9u2) ...\r\nSetting up samba (2:4.5.12+dfsg-2+deb9u2) ...\r\nAdding group `sambashare' (GID 113) ...\r\nDone.\r\nSamba is not being run as an AD Domain Controller, masking samba-ad-dc-service.\r\nPlease ignore the following error about deb-systemd-helper not finding samba-ad-dc-service.\r\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/nmbd.service \u2192 \/lib\/systemd\/system\/nmbd.service.\r\n&#x5B;  642.717966] Under-voltage detected! (0x00050005)\r\nFailed to preset unit: Unit file \/etc\/systemd\/system\/samba-ad-dc.service is masked.\r\n\/usr\/bin\/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory\r\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/smbd.service \u2192 \/lib\/systemd\/system\/smbd.service.\r\nProcessing triggers for libc-bin (2.24-11+deb9u3) ...\r\nProcessing triggers for systemd (232-25+deb9u2) ...\r\n\r\n$ sudo vi \/etc\/samba\/smb.conf \r\n\r\nsecurity = user\r\nread only = no\r\n\r\n$ sudo \/etc\/init.d\/samba restart\r\nRestarting nmbd (via systemctl): nmbd.service.\r\nRestarting smbd (via systemctl): smbd.service.\r\n\r\n$ sudo smbpasswd -a andreas\r\nNew SMB password:\r\nRetype new SMB password:\r\nAdded user andreas.\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>dd bs=4M if=2018-04-18-raspbian-stretch.img of=\/dev\/sdX conv=fsync dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=20586949-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait # Uncomment some or all of these to enable the optional hardware interfaces dtparam=i2c_arm=on #dtparam=i2s=on dtparam=spi=on # Uncomment this to enable the lirc-rpi module #dtoverlay=lirc-rpi # Additional overlays and parameters are documented \/boot\/overlays\/README # Enable audio (loads snd_bcm2835) dtparam=audio=on enable_uart=1 start_x=1 gpu_mem=128 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7787","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/7787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7787"}],"version-history":[{"count":9,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/7787\/revisions"}],"predecessor-version":[{"id":7796,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/7787\/revisions\/7796"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}