{"id":147,"date":"2010-11-25T10:15:19","date_gmt":"2010-11-25T10:15:19","guid":{"rendered":"http:\/\/test.bleuanus.nl\/index.php\/private\/playonhd\/change-workgroup\/"},"modified":"2018-12-11T16:09:08","modified_gmt":"2018-12-11T15:09:08","slug":"change-workgroup","status":"publish","type":"post","link":"https:\/\/www.bleuanus.nl\/index.php\/2010\/11\/25\/change-workgroup\/","title":{"rendered":"Change workgroup"},"content":{"rendered":"<p class=\"last-modified\">This post was most recently updated on December 11th, 2018<\/p><p><span class=\"posthilit\">Change<\/span> <span class=\"posthilit\">workgroup<\/span> &#038; server string:<\/p>\n<p>Server string is the comment part of the Network name, by default it is something like samba xx. xx x. After <span class=\"posthilit\">change<\/span> of the server string, it could take a while before the new comment is seen because this part has been written to windows registry. <\/p>\n<p>If you make the changes in the \u201csmb_anonymous_head.conf\u201d, it will work fine. After each reboot this file is the base for smb_anonymous.conf, and again this is the base for smb.conf. After each reboot the last two file are rewritten.<\/p>\n<p>>>Warnings:<\/p>\n<p>Linux is case sensitive.<br \/>Use of the vi-editor could lead to corrupt files if you are not used to vi. So always make a spare copy before you edit a file, or practice on a new empty file first.<\/p>\n<p>(<span class=\"posthilit\">telnet<\/span> to the PlayOnHD)<\/p>\n<p>C:\\> <span class=\"posthilit\">telnet<\/span> 192.168.23.40<\/p>\n<p>PlayonHD login: root<br \/>warning: cannot <span class=\"posthilit\">change<\/span> to home directory<\/p>\n<p>BusyBox v1.1.3 (2009.10.29-07:51+0000) Built-in shell (ash)<br \/>Enter &#8216;help&#8217; for a list of built-in commands.<\/p>\n<p>\/ # find \/ -name smb.conf<\/p>\n<p>\/tmp\/netb\/smb.conf<br \/>\/tmp\/hdd\/root\/samba\/lib\/smb.conf<br \/>\/ # <\/p>\n<p>\/ # cd \/tmp\/hdd\/root\/samba\/lib<\/p>\n<p>\/tmp\/hdd\/root\/samba\/lib # <br \/>\/tmp\/hdd\/root\/samba\/lib # ls -l<br \/>-rw-r&#8211;r&#8211; 1 root root 611 Sep 18 14:21 smb.conf<br \/>-rw-r&#8211;r&#8211; 1 root root 611 Sep 18 14:21 smb_anonymous.conf<br \/>-rw-r&#8211;r&#8211; 1 root root 453 Nov 3 2009 smb_anonymous_head.conf<br \/>-rw-r&#8211;r&#8211; 1 root root 562 Sep 18 14:21 smb_user.conf<br \/>-rw-r&#8211;r&#8211; 1 root root 405 May 13 2009 smb_user_head.conf<\/p>\n<p>\/tmp\/hdd\/root\/samba\/lib # <br \/>(make a copy)<br \/>\/tmp\/hdd\/root\/samba\/lib # cp smb_anonymous_head.conf smb_anonymous_head.old<br \/>\/tmp\/hdd\/root\/samba\/lib # <\/p>\n<p>( Na Esc i = insert , x = delete character , dd = delete line )<br \/>( Na Esc : wq = write &#038; quit , q! = do not save and quit ) <\/p>\n<p>\/tmp\/hdd\/root\/samba\/lib # vi smb_anonymous_head.conf<\/p>\n<p>[global]<br \/>security=share<br \/>log file=\/usr\/local\/samba\/var\/log.%m<br \/>max log size=2000<br \/>domain logons=Yes<br \/>dns proxy=No<br \/>use sendfile=yes<br \/>guest account=root<br \/>encrypt passwords=yes<br \/>passdb backend=smbpasswd<br \/>socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192<br \/>read raw=yes<br \/>write raw=yes<br \/>oplocks=yes<br \/>max xmit=65535<br \/>dead time=15<br \/>getwd cache=yes<br \/>lpq cache=30<br \/>read prediction=yes<br \/>client NTLMv2 auth=yes<\/p>\n<p>go to the end of the line [global] <br \/>press \u2018i\u2019<br \/>press <enter><br \/><span class=\"posthilit\">workgroup<\/span> = BENELUX<br \/>server string = Multimedia<br \/>press \u2018Esc\u2019<br \/>press \u2018:\u2019<br \/>you will see at the bottom of your screen : <br \/>:wq (write &#038; quit)<\/p>\n<p>(check before reboot) <\/p>\n<p>\/tmp\/hdd\/root\/samba\/lib # <br \/>\/tmp\/hdd\/root\/samba\/lib # more smb_anonymous_head.conf<\/p>\n<p>[global]<br \/><span class=\"posthilit\">workgroup<\/span> = BENELUX<br \/>server string = Multimedia<br \/>security=share<br \/>log file=\/usr\/local\/samba\/var\/log.%m<br \/>max log size=2000<br \/>domain logons=Yes<br \/>dns proxy=No<br \/>use sendfile=yes<br \/>guest account=root<br \/>encrypt passwords=yes<br \/>passdb backend=smbpasswd<br \/>socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192<br \/>read raw=yes<br \/>write raw=yes<br \/>oplocks=yes<br \/>max xmit=65535<br \/>dead time=15<br \/>getwd cache=yes<br \/>lpq cache=30<br \/>read prediction=yes<br \/>client NTLMv2 auth=yes<\/p>\n<p>>> if case of any mistakes copy the .old file back to .conf <<\n\n\/tmp\/hdd\/root\/samba\/lib # <br \/>\/tmp\/hdd\/root\/samba\/lib # reboot<\/p>\n<p>UPDATE:\u00a0<\/p>\n<div class=\"postbody\">\/tmp\/hdd\/root\/samba\/lib\/smb.conf- the first one is an older fw version<br \/>\/usr\/local\/etc\/package\/samba\/lib\/smb.conf &#8211; latest release (3582)<\/p>\n<p>If you have fw release 3582 installed, want to <span class=\"posthilit\">change<\/span> <span class=\"posthilit\">workgroup<\/span> in whatever. Just edit smb_anonymous_head.conf in the &#8216;\/usr\/local\/etc\/package\/samba\/lib\/&#8217; directory.<\/p>\n<p>So the howto is the same, only the directory is changed.<\/p><\/div>\n<p><br clear=\"all\" \/><br \/>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post was most recently updated on December 11th, 2018Change workgroup &#038; server string: Server string is the comment part of the Network name, by default it is something like samba xx. xx x. After change of the server string, it could take a while before the new comment is seen because this part has [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-147","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":1,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":276,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/posts\/147\/revisions\/276"}],"wp:attachment":[{"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}