{"id":1832,"date":"2019-05-31T22:43:38","date_gmt":"2019-06-01T06:43:38","guid":{"rendered":"http:\/\/wonghoi.humgar.com\/blog\/?p=1832"},"modified":"2019-05-31T22:54:33","modified_gmt":"2019-06-01T06:54:33","slug":"getting-mx-linux-samba-to-work-naturally-with-windows-network","status":"publish","type":"post","link":"https:\/\/wonghoi.humgar.com\/blog\/2019\/05\/31\/getting-mx-linux-samba-to-work-naturally-with-windows-network\/","title":{"rendered":"Getting MX Linux Samba to work naturally with Windows Network"},"content":{"rendered":"<p>I normally disable &#8220;Computer Browser&#8221; service in Windows by default because multiple computers having it on causes errors showing up in event log complaining there are multiple <a href=\"https:\/\/support.microsoft.com\/en-us\/help\/188305\/troubleshooting-the-microsoft-computer-browser-service\">masters<\/a>, and it&#8217;s not necessary for my simple home network because I&#8217;m just using a workgroup (no domain controller).<\/p>\n<p>However, today I found out that even after setting up MX Linux&#8217;s Samba correctly (see below), if none of the computers on my windows network runs &#8220;Computer Browser&#8221;, my Windows computer name will not show up in &#8220;Thunar File Manager&#8221; although I can access it with smb:\/\/, and linux computers running Samba server shows up fine.<\/p>\n<hr \/>\n<p>There&#8217;s also another twist to get the SMB client to work in Thunar File Manager. Despite <code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">smbtree<\/code> works right out of the box (it detects the Windows shares), I&#8217;ll have to add this line in <code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/etc\/samba\/smb.conf<\/code> for the file manager\u00a0to even probe the list of computers (not timeout):<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">name resolve order = bcast host<\/pre>\n<p>The point is to use broadcast lookup BEFORE dns lookup. DNS lookups for my local resources are often temperamental (could it be my router?), and I saw Linux Mint working with Windows briefly without these settings (editing smb.conf and also enabling &#8220;Computer Browser&#8221; service in Windows), but it failed today even after I re-installed MX Linux from scratch.<\/p>\n<p>The other lines mentioned like <code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">client max protocol = NT1<\/code> and <code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">netbios name<\/code> mentioned on the forums are not needed.<\/p>\n<p>After configuring it. Restart smbd:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo \/etc\/init.d\/smbd restart<\/pre>\n<p>&nbsp;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1832\" class=\"pvc_stats all  \" data-element-id=\"1832\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I normally disable &#8220;Computer Browser&#8221; service in Windows by default because multiple computers having it on causes errors showing up in event log complaining there are multiple masters, and it&#8217;s not necessary for my simple home network because I&#8217;m just &hellip; <a href=\"https:\/\/wonghoi.humgar.com\/blog\/2019\/05\/31\/getting-mx-linux-samba-to-work-naturally-with-windows-network\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1832\" class=\"pvc_stats all  \" data-element-id=\"1832\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[39,6,4],"tags":[],"class_list":["post-1832","post","type-post","status-publish","format-standard","hentry","category-linux","category-note-to-self","category-windows"],"_links":{"self":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts\/1832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/comments?post=1832"}],"version-history":[{"count":4,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts\/1832\/revisions"}],"predecessor-version":[{"id":1836,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts\/1832\/revisions\/1836"}],"wp:attachment":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/media?parent=1832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/categories?post=1832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/tags?post=1832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}