{"id":161,"date":"2014-04-03T14:32:03","date_gmt":"2014-04-03T14:32:03","guid":{"rendered":"http:\/\/www.flat-planet.net\/?p=161"},"modified":"2014-04-03T14:32:03","modified_gmt":"2014-04-03T14:32:03","slug":"raspberry-pi-getting-smb-to-work","status":"publish","type":"post","link":"https:\/\/flat-planet.net\/?p=161","title":{"rendered":"Raspberry Pi &#8211; Getting SMB to work"},"content":{"rendered":"<p>I just got a new <a href=\"http:\/\/en.wikipedia.org\/wiki\/Raspberry_Pi#Hardware\">Raspberry Pi Model B<\/a> and am planning on playing with it as a Media Center system. Getting the basics up and running took a little more work then I expected as I didn&#8217;t have neither HDMI\/DVI converter nor USB Keyboard (PS\/2 rules).<\/p>\n<p>I had a pre-formatted SDCard ready to roll but when I attached the network cable and power unfortunately the device didn&#8217;t connect to the network &#8211; plugging it into the TV I saw that the it was stopping at the <a href=\"http:\/\/www.raspberrypi.org\/introducing-the-new-out-of-box-software-noobs\/\">NOOBS<\/a> loader. This allows you to get the Pi up and running easily, without network access, and to select and install from a menu of Operating Systems. Kind of conflicted about how good an idea this is to the typical linux\/electronics hobbiest. Effectively this acts like a recovery partition after the first install.<\/p>\n<p>Plug in a mouse, select Raspbian (as I usually work on Debian) and a few mins later the install is complete. Reboot and complete the setup and it was networked. Once I found the IP I updated and upgraded all the packages and installed <a href=\"http:\/\/www.maketecheasier.com\/enabling-remote-desktop-access-on-raspberry-pi\/\">XRDP<\/a> for remote desktop access.<\/p>\n<p>At this point I wanted to check that SMB would work &#8211; it wouldn&#8217;t \ud83d\ude41<\/p>\n<p><code>pi@raspberrypi ~ $ sudo mkdir \/mnt\/Media<br \/>\npi@raspberrypi ~ $ sudo vi \/etc\/fstab<br \/>\npi@raspberrypi ~ $ mount \/mnt\/Media<br \/>\nmount: only root can mount \/\/192.168.1.8\/samba on \/mnt\/Media<br \/>\npi@raspberrypi ~ $ sudo !!<br \/>\nsudo mount \/mnt\/Media<br \/>\nmount error: cifs filesystem not supported by the system<br \/>\nmount error(19): No such device<br \/>\nRefer to the mount.cifs(8) manual page (e.g. man mount.cifs)<br \/>\npi@raspberrypi ~ $ cd \/mnt<br \/>\npi@raspberrypi \/mnt $ ls<br \/>\nMedia<br \/>\npi@raspberrypi \/mnt $ mount -t cifs -o user=xxxx \/\/192.168.1.8\/samba \/mnt\/Media<br \/>\nmount: only root can do that<br \/>\npi@raspberrypi \/mnt $ sudo !!<br \/>\nsudo mount -t cifs -o user=xxxx\/\/192.168.1.8\/samba \/mnt\/Media<br \/>\nPassword:<br \/>\nmount error: cifs filesystem not supported by the system<br \/>\nmount error(19): No such device<br \/>\nRefer to the mount.cifs(8) manual page (e.g. man mount.cifs)<br \/>\npi@raspberrypi \/mnt $ sudo modprobe cifs<br \/>\nlibkmod: ERROR ..\/libkmod\/libkmod.c:554 kmod_search_moddep: could not open moddep file '\/lib\/modules\/3.6.11+\/modules.dep.bin'<\/code><\/p>\n<p>This was something of a puzzle as both <code>cifs-utils<\/code> and <code>libsmbclient<\/code> are installed. Turns out that the firmware was out of date &#8211; a quick <code>rpi-update<\/code> and reboot and problem solved!<\/p>\n<p><code>pi@raspberrypi \/mnt $ sudo rpi-update<br \/>\n*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS<br \/>\n*** Performing self-update<br \/>\n% Total\u00a0\u00a0\u00a0 % Received % Xferd\u00a0 Average Speed\u00a0\u00a0 Time\u00a0\u00a0\u00a0 Time\u00a0\u00a0\u00a0\u00a0 Time\u00a0 Current<br \/>\nDload\u00a0 Upload\u00a0\u00a0 Total\u00a0\u00a0 Spent\u00a0\u00a0\u00a0 Left\u00a0 Speed<br \/>\n100\u00a0\u00a0 135\u00a0 100\u00a0\u00a0 135\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0 240\u00a0\u00a0\u00a0\u00a0\u00a0 0 --:--:-- --:--:-- --:--:--\u00a0\u00a0 323<br \/>\n100\u00a0 7177\u00a0 100\u00a0 7177\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0 7315\u00a0\u00a0\u00a0\u00a0\u00a0 0 --:--:-- --:--:-- --:--:--\u00a0 7315<br \/>\n*** Relaunching after update<br \/>\n*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS<br \/>\n*** ARM\/GPU split is now defined in \/boot\/config.txt using the gpu_mem option!<br \/>\n*** We're running for the first time<br \/>\n*** Setting up firmware (this may take a few minutes)<br \/>\nCloning into '\/\/root\/.rpi-firmware'...<br \/>\nremote: Counting objects: 3378, done.<br \/>\nremote: Compressing objects: 100% (2610\/2610), done.<br \/>\nReceiving objects: 100% (3378\/3378), 25.96 MiB | 1.20 MiB\/s, done.<br \/>\nremote: Total 3378 (delta 1608), reused 1117 (delta 504)<br \/>\nResolving deltas: 100% (1608\/1608), done.<br \/>\n...<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just got a new Raspberry Pi Model B and am planning on playing with it as a Media Center system. Getting the basics up and running took a little more work then I expected as I didn&#8217;t have neither HDMI\/DVI converter nor USB Keyboard (PS\/2 rules). I had a pre-formatted SDCard ready to roll [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63,27,38],"tags":[42,64,32,33],"series":[],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi","category-projects","category-linux","tag-linux-2","tag-raspberry-pi-2","tag-simple-things","tag-projects-2"],"_links":{"self":[{"href":"https:\/\/flat-planet.net\/index.php?rest_route=\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flat-planet.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flat-planet.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flat-planet.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flat-planet.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=161"}],"version-history":[{"count":1,"href":"https:\/\/flat-planet.net\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":162,"href":"https:\/\/flat-planet.net\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions\/162"}],"wp:attachment":[{"href":"https:\/\/flat-planet.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flat-planet.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flat-planet.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/flat-planet.net\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}