{"id":33,"date":"2013-12-11T21:00:00","date_gmt":"2013-12-11T21:00:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2013\/12\/11\/headless-raspberry-pi-on-my-desk\/"},"modified":"2013-12-11T21:00:00","modified_gmt":"2013-12-11T21:00:00","slug":"headless-raspberry-pi-on-my-desk","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2013\/12\/11\/headless-raspberry-pi-on-my-desk\/","title":{"rendered":"headless Raspberry Pi (on my desk)"},"content":{"rendered":"<p>\t\t\t\tIt&#8217;s fun to see the Raspberry Pi running headless on my desk.<\/p>\n<p>As described earlier, I set up my Raspi back at home with a screen (connected via HDMI\/DVI), a keyboard, a mouse, and attached via eth0 (AKA LAN), later also via wlan0 (AKA wifi).<\/p>\n<p>Now I would like to boot it in &#8220;headless mode&#8221;. My wifi router&#8217;s ESSID is different here. I start with a LAN connection. It&#8217;s amazing: I runs w\/o my intervention w\/o screen, keyboard, and mouse. And I can connect to it with ssh through the network.<\/p>\n<p>So the challenge is to add another wifi access point with its details. I found everything I needed here:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.raspberrypi.org\/phpBB3\/viewtopic.php?f=28&amp;t=5590\">http:\/\/www.raspberrypi.org\/phpBB3\/viewtopic.php?f=28&amp;t=5590<\/a><\/li>\n<\/ul>\n<div>\n\u2026<\/div>\n<ul>\n<li>I create the new <span>wpa_supplicant.conf<\/span>\u00a0entry (on stdout) using the\u00a0<span>wpa_passphrase<\/span> command.\u00a0<\/li>\n<li>I add it to\u00a0<span>\/etc\/wpa_supplicant\/wpa_supplicant.conf<\/span> .<\/li>\n<li>I add &#8220;<span>auto wlan0<\/span>&#8221; to\u00a0<span>\/etc\/network\/interfaces<\/span> .<\/li>\n<li>After &#8220;<span>\/etc\/init.d\/networking restart<\/span>&#8221; or a reboot (w\/o a connection through eth0) everything is fine.<\/li>\n<\/ul>\n<div>\n<\/div>\n<div>\nBefore (and after) modifying configuration files I always create backup copies of them using my utility\u00a0<span><a href=\"http:\/\/ber.jochen.hayek.name:8080\/~johayek\/Computers\/Software\/Operating_Systems\/Unix\/Shell\/create_snapshot.sh\">create_snapshot.sh<\/a><\/span>\u00a0(resp.\u00a0<a href=\"http:\/\/ber.jochen.hayek.name:8080\/~johayek\/Computers\/Software\/Operating_Systems\/Unix\/Shell\/create_snapshot.txt\">create_snapshot.txt<\/a>). Works on my Linux-s and AIX as well. Initially it was a Korn Shell script, now it&#8217;s a bash script.<\/p>\n<p>Now the Raspi could join my UMTS router and my NAS sitting in the &#8220;black box&#8221; below my desk (in the office at my customer&#8217;s site). Well, if it sits there, it can also be connected via eth0 as well. But now being connected through wifi , it could just sit anywhere within the &#8220;realm&#8221; of my wifis. But I still enjoy this discreet white box on my desk.<\/p>\n<p>Update:<br \/>\nAdded these two lines to my <span>~\/.ssh\/config<\/span> :<\/p>\n<blockquote><p>\n<span>Host raspberrypi<br \/>\u00a0 \u00a0 User pi<\/span><\/p><\/blockquote>\n<\/div>\n<div>\nThat allows you to &#8220;<span>ssh raspberrypi<\/span>&#8221; instead of &#8220;<span>ssh pi@raspberrypi<\/span>&#8220;.<\/div>\n<div>\n<\/div>\n<div>\nAdding your &#8220;public key&#8221; to <span>~\/.ssh\/authorized_keys<\/span> also helps logging in the &#8220;private \/ public keys way&#8221; instead of supplying a password.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s fun to see the Raspberry Pi running headless on my desk. As described earlier, I set up my Raspi back at home with a screen (connected via HDMI\/DVI), a keyboard, a mouse, and attached via eth0 (AKA LAN), later also via wlan0 (AKA wifi). Now I would like to boot it in &#8220;headless mode&#8221;. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-x","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}