{"id":425,"date":"2018-03-13T18:12:52","date_gmt":"2018-03-13T10:12:52","guid":{"rendered":"https:\/\/www.techcoil.com\/blog\/?p=425"},"modified":"2019-03-03T13:18:24","modified_gmt":"2019-03-03T05:18:24","slug":"set-of-configurations-to-perform-on-the-first-run-of-your-raspbian-stretch-lite","status":"publish","type":"post","link":"https:\/\/www.techcoil.com\/blog\/set-of-configurations-to-perform-on-the-first-run-of-your-raspbian-stretch-lite\/","title":{"rendered":"Set of configurations to perform on the first run of your Raspbian Stretch Lite"},"content":{"rendered":"<p>After you had <a href=\"https:\/\/www.techcoil.com\/blog\/how-to-setup-raspbian-stretch-lite-with-ssh-server-enabled-on-your-microsd-card\/\" rel=\"noopener noreferrer\" target=\"_blank\">setup Raspbian Stretch Lite with SSH server enabled on your microSD card <\/a> or <a href=\"https:\/\/www.techcoil.com\/blog\/how-to-setup-raspbian-stretch-lite-with-remote-configuration-over-wifi-on-first-boot\/\" rel=\"noopener noreferrer\" target=\"_blank\">setup Raspbian Stretch Lite with remote configuration over WiFi on first boot<\/a>, there are a couple of configurations that you should perform for your Raspbian Stretch Lite.<\/p>\n<p>This post walks through some of the configurations that you may want to perform on the first run of your Raspbian Stretch Lite.<\/p>\n<h2>Finding the IP address of the Raspberry Pi 3<\/h2>\n<p>When Raspbian Stretch Lite boots up, it will request an IP address from your router. This IP address is needed for you to SSH into the Raspberry Pi 3. Go to your router's address allocation table and find an entry with the name <strong>raspberrypi<\/strong>. <\/p>\n<p>Alternatively, you can also use the ping command on your work computer to find the IP address of your Raspberry Pi 3:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nping raspberrypi\r\n<\/pre>\n<h2>Getting into the Raspbian Stretch Lite operating system via SSH<\/h2>\n<p>Let's suppose that the router allocated <strong>192.168.1.109<\/strong> to your Raspbian Stretch Lite. <\/p>\n<p>In addition, the default credentials to log into Raspberry Pi Stretch Lite is as follows:<br \/>\nUsername: <strong>pi<\/strong><br \/>\nPassword: <strong>raspberry<\/strong><\/p>\n<p>With the default credentials and the IP address that the router had given to Raspbian Stretch Lite, run the following command to SSH into the Raspbian Stretch Lite operating system:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nssh pi@192.168.1.109\r\n<\/pre>\n<p>Enter <strong>raspberry<\/strong> when Raspbian Stretch Lite prompts for password. This will result in Raspbian Stretch Lite greeting you with output similar to the following:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nLinux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l\r\n\r\nThe programs included with the Debian GNU\/Linux system are free software;\r\nthe exact distribution terms for each program are described in the\r\nindividual files in \/usr\/share\/doc\/*\/copyright.\r\n\r\nDebian GNU\/Linux comes with ABSOLUTELY NO WARRANTY, to the extent\r\npermitted by applicable law.\r\n\r\nSSH is enabled and the default password for the 'pi' user has not been changed.\r\nThis is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.\r\n<\/pre>\n<h2>Changing the default password<\/h2>\n<p>Since Raspbian Stretch Lite suggests that using the default password for the 'pi' user is a security risk, the next thing that you should do is to change the default password. To do so, enter the following command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\npasswd\r\n<\/pre>\n<p>For the three prompts that follow the command, enter <strong>raspberry<\/strong> and your favourite password <strong>twice<\/strong>. <\/p>\n<h2>Configuring the locale settings<\/h2>\n<p>The next thing that you will want to do is to <a href=\"https:\/\/www.techcoil.com\/blog\/how-to-configure-locale-settings-of-raspbian-stretch-with-raspi-config\/\" rel=\"noopener noreferrer\" target=\"_blank\">configure the locale settings for your Raspbian Stretch<\/a> Lite. To do so, open up the Raspberry Pi Software Configuration Tool:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo raspi-config\r\n<\/pre>\n<p>Once the Raspberry Pi Software Configuration tool had started, follow through the following screens to generate the \"en_US.UTF-8\" locale and set it as the default locale for the system environment:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspi-config-raspbian-stretch-lite-20171129-with-localisation-options-selected.gif\" alt=\"raspi-config Raspbian Stretch Lite 20171129 with Localisation Options selected\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspi-config-raspbian-stretch-lite-20171129-with-localisation-options-change-locale-selected.gif\" alt=\"raspi-config Raspbian Stretch Lite 20171129 with localisation options change locale selected\"><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspi-config-raspbian-stretch-lite-screen-for-generating-en-us-utf-8-locale.gif\" alt=\"raspi-config Raspbian Stretch Lite screen for generating en-us utf-8 locale\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspi-config-raspbian-stretch-lite-setting-en-us-utf-8-as-default-locale-for-system-environment.gif\" alt=\"raspi-config Raspbian Stretch Lite setting en-us utf-8 as default locale for system environment\" \/><\/p>\n<p>After doing so, open up <code>\/etc\/default\/locale<\/code> with <code>nano<\/code>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo nano \/etc\/default\/locale\r\n<\/pre>\n<p>And update the contents to look like the following:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nLANG=en_US.UTF-8\r\nLC_ALL=en_US.UTF-8\r\nLANGUAGE=en_US.UTF-8\r\n<\/pre>\n<p>This will ensure that the locale settings for Raspbian Stretch Lite persist through system reboots.<\/p>\n<h2>Changing Timezone<\/h2>\n<p>The default timezone of Raspbian Stretch Lite is \"Etc\/UTC\". However, if your Raspberry Pi 3 is not residing in that Timezone, you may want to change it.<\/p>\n<p>For example, to <a href=\"https:\/\/www.techcoil.com\/blog\/how-to-change-the-timezone-on-your-raspbian-stretch-with-raspi-config\/\" rel=\"noopener noreferrer\" target=\"_blank\">change the Timezone on Raspbian Stretch<\/a> Lite to Singapore's Timezone, you can use the Raspberry Pi Software Configuration Tool mentioned earlier and go through the following steps:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspi-config-raspbian-stretch-lite-20171129-with-localisation-options-selected.gif\" alt=\"raspi-config Raspbian Stretch Lite 20171129 with Localisation Options selected\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspi-config-raspbian-stretch-lite-20171129-with-change-timezone-selected.gif\" alt=\"raspi-config Raspbian Stretch Lite 20171129 with Change Timezone selected\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspi-config-raspbian-stretch-lite-20171129-with-asia-selected.gif\" alt=\"raspi-config Raspbian Stretch Lite 20171129 with Asia selected\"\/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/raspi-config-raspbian-stretch-lite-20171129-with-singapore-selected.gif\" alt=\"raspi-config Raspbian Stretch Lite 20171129 with Singapore selected\" \/><\/p>\n<p>Once you had configured the Timezone, restart Raspbian Stretch Lite with the following command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo shutdown -r now\r\n<\/pre>\n<p>Get back into Raspbian Stretch Lite with the following command once it had restarted successfully:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nssh pi@192.168.1.109\r\n<\/pre>\n<h2>Next steps<\/h2>\n<p>If you had arrived to this page without an idea on what to do with your Raspberry Pi, you may want to look at some of the <a href=\"https:\/\/www.techcoil.com\/raspbian-stretch-lite-project-ideas\/\" rel=\"noopener noreferrer\" target=\"_blank\">projects that you can build on top of a Raspbian Stretch Lite operating system<\/a>.<\/p>\n\n      <ul id=\"social-sharing-buttons-list\">\n        <li class=\"facebook\">\n          <a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwp.me%2Fp245TQ-6R\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n            <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Facebook.png\" alt=\"Facebook icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"twitter\">\n          <a href=\"https:\/\/twitter.com\/intent\/tweet?text=&url=https%3A%2F%2Fwp.me%2Fp245TQ-6R&via=Techcoil_com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Twitter.png\" alt=\"Twitter icon\"> Tweet\n          <\/a>\n        <\/li>\n        <li class=\"linkedin\">\n          <a href=\"https:\/\/www.linkedin.com\/shareArticle?mini=1&title=&url=https%3A%2F%2Fwp.me%2Fp245TQ-6R&source=https:\/\/www.techcoil.com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/linkedin.png\" alt=\"Linkedin icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"pinterest\">\n          <a href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fwww.techcoil.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F425&description=\" class=\"pin-it-button\" target=\"_blank\" role=\"button\" rel=\"nofollow\" count-layout=\"horizontal\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Pinterest.png\" alt=\"Pinterest icon\"> Save\n          <\/a>\n        <\/li>\n      <\/ul>\n    ","protected":false},"excerpt":{"rendered":"<p>After you had <a href=\"https:\/\/www.techcoil.com\/blog\/how-to-setup-raspbian-stretch-lite-with-ssh-server-enabled-on-your-microsd-card\/\" rel=\"noopener noreferrer\" target=\"_blank\">setup Raspbian Stretch Lite on your microSD card with SSH server enabled<\/a> or <a href=\"https:\/\/www.techcoil.com\/blog\/how-to-setup-raspbian-stretch-lite-with-remote-configuration-over-wifi-on-first-boot\/\" rel=\"noopener noreferrer\" target=\"_blank\">setup Raspbian Stretch Lite with remote configuration over WiFi on first boot<\/a>, there are a couple of configurations that you should perform for your Raspbian Stretch Lite.<\/p>\n<p>This post walks through some of the configurations that you may want to perform on the first run of your Raspbian Stretch Lite.<\/p>\n","protected":false},"author":1,"featured_media":1279,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":""},"categories":[4],"tags":[240,412,445,195,438],"jetpack_featured_media_url":"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/Raspbian-Logo.gif","jetpack_shortlink":"https:\/\/wp.me\/p245TQ-6R","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/425"}],"collection":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/comments?post=425"}],"version-history":[{"count":0,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/425\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media\/1279"}],"wp:attachment":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media?parent=425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/categories?post=425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/tags?post=425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}