{"id":24,"date":"2016-11-18T20:56:01","date_gmt":"2016-11-18T19:56:01","guid":{"rendered":"http:\/\/www.dbonline.se\/?page_id=24"},"modified":"2017-01-02T21:53:43","modified_gmt":"2017-01-02T20:53:43","slug":"raspberry-pi","status":"publish","type":"page","link":"https:\/\/www.dbonline.se\/index.php\/raspberry-pi\/","title":{"rendered":"Raspberry PI"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"41\" data-permalink=\"https:\/\/www.dbonline.se\/index.php\/raspberry-pi\/dsc_0197\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0197.jpg?fit=3840%2C2160&amp;ssl=1\" data-orig-size=\"3840,2160\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2&quot;,&quot;camera&quot;:&quot;D6603&quot;,&quot;created_timestamp&quot;:&quot;1479500936&quot;,&quot;focal_length&quot;:&quot;4.6&quot;,&quot;iso&quot;:&quot;1600&quot;,&quot;shutter_speed&quot;:&quot;0.0625&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"dsc_0197\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0197.jpg?fit=525%2C295&amp;ssl=1\" class=\"aligncenter wp-image-41\" src=\"https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0197.jpg?resize=336%2C189\" alt=\"\" width=\"336\" height=\"189\" srcset=\"https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0197.jpg?w=3840&amp;ssl=1 3840w, https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0197.jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0197.jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0197.jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0197.jpg?w=1575 1575w\" sizes=\"auto, (max-width: 336px) 100vw, 336px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>M\u00e5nga projekt som jag g\u00f6r b\u00f6rjar med raspberry pi maskinerna.<br \/>\nDessa sm\u00e5 enkortsdatorer har allt man beh\u00f6ver och bra labb datorer.<\/p>\n<p>H\u00e4r finns n\u00e5gra kommandon som \u00e4r bra att ha.<\/p>\n<p><strong>Automatisk montering av USB diskar:<\/strong><br \/>\nsudo apt-get install usbmount<\/p>\n<p><strong>Fast IP adress:<\/strong><br \/>\nsudo nano \/etc\/dhcpcd.conf<br \/>\nL\u00e4ngst ner l\u00e4gger du till f\u00f6ljande:<br \/>\ninterface eth0<\/p>\n<p>static ip_address=192.168.0.10\/24<br \/>\nstatic routers=192.168.0.1<br \/>\nstatic domain_name_servers=192.168.0.1<\/p>\n<p><strong>Autostart<br \/>\n<\/strong>F\u00f6r autostart av program och commandon anv\u00e4nd Crontab<br \/>\nF\u00f6r att b\u00f6rja skriv f\u00f6ljande:<br \/>\nsudo crontab -e<br \/>\nDu kommer d\u00e5 f\u00e5 v\u00e4lja vilken texthanterare du vill anv\u00e4nda (jag brukar anv\u00e4nda nano)<br \/>\nF\u00f6r att starta ett program vid uppstart skriv f\u00f6ljande:<br \/>\n@reboot commando<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"40\" data-permalink=\"https:\/\/www.dbonline.se\/index.php\/raspberry-pi\/dsc_0195\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0195.jpg?fit=3840%2C2160&amp;ssl=1\" data-orig-size=\"3840,2160\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2&quot;,&quot;camera&quot;:&quot;D6603&quot;,&quot;created_timestamp&quot;:&quot;1479500903&quot;,&quot;focal_length&quot;:&quot;4.6&quot;,&quot;iso&quot;:&quot;800&quot;,&quot;shutter_speed&quot;:&quot;0.0625&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"dsc_0195\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0195.jpg?fit=525%2C295&amp;ssl=1\" class=\"aligncenter wp-image-40\" src=\"https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0195.jpg?resize=351%2C198\" alt=\"\" width=\"351\" height=\"198\" srcset=\"https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0195.jpg?w=3840&amp;ssl=1 3840w, https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0195.jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0195.jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0195.jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.dbonline.se\/wp-content\/uploads\/2016\/11\/DSC_0195.jpg?w=1575 1575w\" sizes=\"auto, (max-width: 351px) 100vw, 351px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; M\u00e5nga projekt som jag g\u00f6r b\u00f6rjar med raspberry pi maskinerna. Dessa sm\u00e5 enkortsdatorer har allt man beh\u00f6ver och bra labb datorer. H\u00e4r finns n\u00e5gra kommandon som \u00e4r bra att ha. Automatisk montering av USB diskar: sudo apt-get install usbmount Fast IP adress: sudo nano \/etc\/dhcpcd.conf L\u00e4ngst ner l\u00e4gger du till f\u00f6ljande: interface eth0 static &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.dbonline.se\/index.php\/raspberry-pi\/\" class=\"more-link\">Forts\u00e4tt l\u00e4sa<span class=\"screen-reader-text\"> \u201dRaspberry PI\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"footnotes":""},"class_list":["post-24","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P8vDvB-o","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.dbonline.se\/index.php\/wp-json\/wp\/v2\/pages\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbonline.se\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.dbonline.se\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbonline.se\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbonline.se\/index.php\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":4,"href":"https:\/\/www.dbonline.se\/index.php\/wp-json\/wp\/v2\/pages\/24\/revisions"}],"predecessor-version":[{"id":54,"href":"https:\/\/www.dbonline.se\/index.php\/wp-json\/wp\/v2\/pages\/24\/revisions\/54"}],"wp:attachment":[{"href":"https:\/\/www.dbonline.se\/index.php\/wp-json\/wp\/v2\/media?parent=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}