{"id":7225,"date":"2018-02-03T11:20:42","date_gmt":"2018-02-03T11:20:42","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=7225"},"modified":"2018-02-03T12:33:34","modified_gmt":"2018-02-03T12:33:34","slug":"raspberry-pi-3-raspi-config","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=7225","title":{"rendered":"Raspberry Pi 3, raspi-config"},"content":{"rendered":"<h3>Configuration tool for the Raspberry Pi<\/h3>\n<p><a href=\"https:\/\/github.com\/RPi-Distro\/raspi-config\">github.com\/RPi-Distro\/raspi-config<\/a> (new)<br \/>\n<a href=\"https:\/\/github.com\/asb\/raspi-config\">github.com\/asb\/raspi-config<\/a> (old)<\/p>\n<h3>Manual<\/h3>\n<p><a href=\"https:\/\/www.raspberrypi.org\/documentation\/configuration\/raspi-config.md\">raspi-config<\/a>, raspberrypi.org<br \/>\n<a href=\"https:\/\/elinux.org\/RPi_raspi-config\">RPi raspi-config<\/a>, elinux.org<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ which raspi-config\r\n\/usr\/bin\/raspi-config\r\n\r\n$ file \/usr\/bin\/raspi-config\r\n\/usr\/bin\/raspi-config: POSIX shell script, ASCII text executable\r\n\r\n$ sudo cat \/proc\/device-tree\/model\r\nRaspberry Pi 3 Model B Rev 1.2\r\n\r\n$ whiptail \\\r\n  --title &quot;abc&quot; \\\r\n  --backtitle &quot;xyz&quot; \\\r\n  --menu &quot;Setup Options&quot; 20 30 10 \\\r\n  --cancel-button Finish \\\r\n  --ok-button Select \\\r\n  &quot;1 abc&quot; &quot;A B C&quot; \\\r\n  &quot;2 xyz&quot; &quot;X Y Z&quot; \r\n<\/pre>\n<pre class=\"brush: plain; title: raspi-config extract; notranslate\" title=\"raspi-config extract\">\r\n\r\nINTERACTIVE=True\r\nASK_TO_REBOOT=0\r\nBLACKLIST=\/etc\/modprobe.d\/raspi-blacklist.conf\r\nCONFIG=\/boot\/config.txt\r\n\r\n#\r\n# Interactive use loop\r\n#\r\nif &#x5B; &quot;$INTERACTIVE&quot; = True ]; then\r\n  &#x5B; -e $CONFIG ] || touch $CONFIG\r\n  calc_wt_size\r\n  while true; do\r\n      FUN=$(whiptail --title &quot;Raspberry Pi Software Configuration Tool (raspi-config)&quot; --backtitle &quot;$(cat \/proc\/device-tree\/model)&quot; --menu &quot;Setup Options&quot; $WT_HEIGHT $WT_WIDTH $WT_MENU_HEIGHT --cancel-button Finish --ok-button Select \\\r\n        &quot;1 Change User Password&quot; &quot;Change password for the current user&quot; \\\r\n        &quot;2 Network Options&quot; &quot;Configure network settings&quot; \\\r\n        &quot;3 Boot Options&quot; &quot;Configure options for start-up&quot; \\\r\n        &quot;4 Localisation Options&quot; &quot;Set up language and regional settings to match your location&quot; \\\r\n        &quot;5 Interfacing Options&quot; &quot;Configure connections to peripherals&quot; \\\r\n        &quot;6 Overclock&quot; &quot;Configure overclocking for your Pi&quot; \\\r\n        &quot;7 Advanced Options&quot; &quot;Configure advanced settings&quot; \\\r\n        &quot;8 Update&quot; &quot;Update this tool to the latest version&quot; \\\r\n        &quot;9 About raspi-config&quot; &quot;Information about this configuration tool&quot; \\\r\n        3&gt;&amp;1 1&gt;&amp;2 2&gt;&amp;3)\r\n    RET=$?\r\n    if &#x5B; $RET -eq 1 ]; then\r\n      do_finish\r\n    elif &#x5B; $RET -eq 0 ]; then\r\n        case &quot;$FUN&quot; in\r\n          1\\ *) do_change_pass ;;\r\n          2\\ *) do_network_menu ;;\r\n          3\\ *) do_boot_menu ;;\r\n          4\\ *) do_internationalisation_menu ;;\r\n          5\\ *) do_interface_menu ;;\r\n          6\\ *) do_overclock ;;\r\n          7\\ *) do_advanced_menu ;;\r\n          8\\ *) do_update ;;\r\n          9\\ *) do_about ;;\r\n          *) whiptail --msgbox &quot;Programmer error: unrecognized option&quot; 20 60 1 ;;\r\n        esac || whiptail --msgbox &quot;There was an error running option $FUN&quot; 20 60 1\r\n    else\r\n      exit 1\r\n    fi\r\n  done\r\nfi\r\n\r\ndo_interface_menu() {\r\n  &#x5B;...]\r\n    &quot;P1 Camera&quot; &quot;Enable\/Disable connection to the Raspberry Pi Camera&quot; \\\r\n    &quot;P2 SSH&quot; &quot;Enable\/Disable remote command line access to your Pi using SSH&quot; \\\r\n    &quot;P3 VNC&quot; &quot;Enable\/Disable graphical remote access to your Pi using RealVNC&quot; \\\r\n    &quot;P4 SPI&quot; &quot;Enable\/Disable automatic loading of SPI kernel module&quot; \\\r\n    &quot;P5 I2C&quot; &quot;Enable\/Disable automatic loading of I2C kernel module&quot; \\\r\n    &quot;P6 Serial&quot; &quot;Enable\/Disable shell and kernel messages on the serial connection&quot; \\\r\n    &quot;P7 1-Wire&quot; &quot;Enable\/Disable one-wire interface&quot; \\\r\n    &quot;P8 Remote GPIO&quot; &quot;Enable\/Disable remote access to GPIO pins&quot; \\\r\n  &#x5B;...]\r\n  elif &#x5B; $RET -eq 0 ]; then\r\n    case &quot;$FUN&quot; in\r\n      P1\\ *) do_camera ;;\r\n      P2\\ *) do_ssh ;;\r\n      P3\\ *) do_vnc ;;\r\n      P4\\ *) do_spi ;;\r\n      P5\\ *) do_i2c ;;\r\n      P6\\ *) do_serial ;;\r\n      P7\\ *) do_onewire ;;\r\n      P8\\ *) do_rgpio ;;\r\n    &#x5B;...]\r\n  fi\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Configuration tool for the Raspberry Pi github.com\/RPi-Distro\/raspi-config (new) github.com\/asb\/raspi-config (old) Manual raspi-config, raspberrypi.org RPi raspi-config, elinux.org $ which raspi-config \/usr\/bin\/raspi-config $ file \/usr\/bin\/raspi-config \/usr\/bin\/raspi-config: POSIX shell script, ASCII text executable $ sudo cat \/proc\/device-tree\/model Raspberry Pi 3 Model B Rev 1.2 $ whiptail \\ &#8211;title &quot;abc&quot; \\ &#8211;backtitle &quot;xyz&quot; \\ &#8211;menu &quot;Setup Options&quot; 20 30 [&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-7225","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/7225","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=7225"}],"version-history":[{"count":6,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/7225\/revisions"}],"predecessor-version":[{"id":7234,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/7225\/revisions\/7234"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}