{"id":276,"date":"2016-07-04T09:53:17","date_gmt":"2016-07-04T08:53:17","guid":{"rendered":"http:\/\/darko-keric.from.hr\/?p=276"},"modified":"2016-07-05T09:38:31","modified_gmt":"2016-07-05T08:38:31","slug":"join-windows-to-samba4","status":"publish","type":"post","link":"http:\/\/darko-keric.from.hr\/?p=276","title":{"rendered":"Join Windows to samba4"},"content":{"rendered":"<p>https:\/\/download.samba.org\/pub\/samba\/stable\/samba-4.0.6.tar.gz<br \/>\n<em>skripte i komande prepisivati, jer html zna autoformatirati gluposti<\/em><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>linux stroj<\/strong><\/li>\n<\/ul>\n<p>vim skripta.sh<\/p>\n<pre>#!\/bin\/bash\r\nyum -y install gcc glibc make python-devel libacl*\r\nwget https:\/\/download.samba.org\/pub\/samba\/stable\/samba-4.0.6.tar.gz\r\ntar -xzvf samba-4.0.6.tar.gz\r\ncd samba-4.0-6.tar.gz\r\n.\/configure --enable-selftest\r\nmake &amp;&amp; make install<\/pre>\n<p>chmod +x skirpita.sh<br \/>\n.\/skripta.sh<\/p>\n<ul>\n<li><strong>windows stroj<\/strong><\/li>\n<\/ul>\n<p>postavljanje mre\u017ee &#8211; 192.168.20.253, dns 192.168.20.250, isklju\u010diti ipv6<\/p>\n<p>c:\\windows\\hosts:<\/p>\n<pre>192.168.20.253 dc cd.example.com\r\n192.168.20.250 rhel6 rhel6.example.com<\/pre>\n<p>promijeniti ime stroja &#8211; dc<br \/>\nisklju\u010diti firewall<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>linux stroj<\/strong><\/li>\n<\/ul>\n<p>service NetworkManager stop<br \/>\nchkconfig NetworkManager off<br \/>\nservice iptables stop<br \/>\nchkconfig iptables off<br \/>\nsetenforce 0<br \/>\ngetenforce<br \/>\nvim \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/p>\n<pre>DEVICE=\u201deth0\u2033\r\nBOOTPROTO=\u201dstatic\u201d\r\nIPV6INIT=\"no\"\r\nHWADDR=\u201dxxxx\u201d\r\nNM_CONTROLLED=\"no\"\r\nIPADDR=192.168.20.250\r\nNETMASK=255.255.255.0\r\nONBOOT=\u201dyes\u201d\r\nTYPE=\u201dEthernet\u201d\r\nUUID=\u201dxxxx\u201d<\/pre>\n<p>vim \/etc\/hosts<\/p>\n<pre>192.168.20.253 dc dc.example.com\r\n192.168.20.250 rhel6 rhel6.example.com<\/pre>\n<p>vim\/etc\/resolv.conf<\/p>\n<pre>nameserver 192.168.20.253<\/pre>\n<p>service network restart<\/p>\n<p>\/usr\/local\/samba\/bin\/samba-tool domain provision<\/p>\n<p>(paziti velika i mala slova)<\/p>\n<p>cp samba4.samba.4 \/etc\/init.d\/<\/p>\n<p>cd \/etc\/init.d\/<\/p>\n<p>chmod 755 samba4.samba4<\/p>\n<p>chkconfig &#8211;level 35 samba4.samba4 on<\/p>\n<p>service samba4.samba4 start<\/p>\n<ul>\n<li><strong>windows stroj<\/strong><\/li>\n<\/ul>\n<p>dodati u &#8220;domenu&#8221;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/download.samba.org\/pub\/samba\/stable\/samba-4.0.6.tar.gz skripte i komande prepisivati, jer html zna autoformatirati gluposti &nbsp; linux stroj vim skripta.sh #!\/bin\/bash yum -y install gcc glibc make python-devel libacl* wget https:\/\/download.samba.org\/pub\/samba\/stable\/samba-4.0.6.tar.gz tar -xzvf samba-4.0.6.tar.gz cd samba-4.0-6.tar.gz .\/configure &#8211;enable-selftest make &amp;&amp; make install chmod +x skirpita.sh &hellip; <a href=\"http:\/\/darko-keric.from.hr\/?p=276\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":348,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[6],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/darko-keric.from.hr\/?p=276\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Join Windows to samba4 - Sistemski in\u017eenjer\" \/>\n<meta property=\"og:description\" content=\"https:\/\/download.samba.org\/pub\/samba\/stable\/samba-4.0.6.tar.gz skripte i komande prepisivati, jer html zna autoformatirati gluposti &nbsp; linux stroj vim skripta.sh #!\/bin\/bash yum -y install gcc glibc make python-devel libacl* wget https:\/\/download.samba.org\/pub\/samba\/stable\/samba-4.0.6.tar.gz tar -xzvf samba-4.0.6.tar.gz cd samba-4.0-6.tar.gz .\/configure --enable-selftest make &amp;&amp; make install chmod +x skirpita.sh &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"http:\/\/darko-keric.from.hr\/?p=276\" \/>\n<meta property=\"og:site_name\" content=\"Sistemski in\u017eenjer\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-04T08:53:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-07-05T08:38:31+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"darko-keric\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/darko-keric.from.hr\/#website\",\"url\":\"https:\/\/darko-keric.from.hr\/\",\"name\":\"Sistemski in\\u017eenjer\",\"description\":\"System administrator\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/darko-keric.from.hr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/darko-keric.from.hr\/?p=276#webpage\",\"url\":\"http:\/\/darko-keric.from.hr\/?p=276\",\"name\":\"Join Windows to samba4 - Sistemski in\\u017eenjer\",\"isPartOf\":{\"@id\":\"https:\/\/darko-keric.from.hr\/#website\"},\"datePublished\":\"2016-07-04T08:53:17+00:00\",\"dateModified\":\"2016-07-05T08:38:31+00:00\",\"author\":{\"@id\":\"https:\/\/darko-keric.from.hr\/#\/schema\/person\/5e2f76737b07a700e0e2a108d173e612\"},\"breadcrumb\":{\"@id\":\"http:\/\/darko-keric.from.hr\/?p=276#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/darko-keric.from.hr\/?p=276\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/darko-keric.from.hr\/?p=276#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/darko-keric.from.hr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Join Windows to samba4\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/darko-keric.from.hr\/#\/schema\/person\/5e2f76737b07a700e0e2a108d173e612\",\"name\":\"darko-keric\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/darko-keric.from.hr\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/0.gravatar.com\/avatar\/0400800f6ebec266fcb39a1cb31b0b0e?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/0.gravatar.com\/avatar\/0400800f6ebec266fcb39a1cb31b0b0e?s=96&d=mm&r=g\",\"caption\":\"darko-keric\"},\"url\":\"http:\/\/darko-keric.from.hr\/?author=348\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/darko-keric.from.hr\/?p=276","og_locale":"en_US","og_type":"article","og_title":"Join Windows to samba4 - Sistemski in\u017eenjer","og_description":"https:\/\/download.samba.org\/pub\/samba\/stable\/samba-4.0.6.tar.gz skripte i komande prepisivati, jer html zna autoformatirati gluposti &nbsp; linux stroj vim skripta.sh #!\/bin\/bash yum -y install gcc glibc make python-devel libacl* wget https:\/\/download.samba.org\/pub\/samba\/stable\/samba-4.0.6.tar.gz tar -xzvf samba-4.0.6.tar.gz cd samba-4.0-6.tar.gz .\/configure --enable-selftest make &amp;&amp; make install chmod +x skirpita.sh &hellip; Continue reading &rarr;","og_url":"http:\/\/darko-keric.from.hr\/?p=276","og_site_name":"Sistemski in\u017eenjer","article_published_time":"2016-07-04T08:53:17+00:00","article_modified_time":"2016-07-05T08:38:31+00:00","twitter_card":"summary","twitter_misc":{"Written by":"darko-keric","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/darko-keric.from.hr\/#website","url":"https:\/\/darko-keric.from.hr\/","name":"Sistemski in\u017eenjer","description":"System administrator","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/darko-keric.from.hr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/darko-keric.from.hr\/?p=276#webpage","url":"http:\/\/darko-keric.from.hr\/?p=276","name":"Join Windows to samba4 - Sistemski in\u017eenjer","isPartOf":{"@id":"https:\/\/darko-keric.from.hr\/#website"},"datePublished":"2016-07-04T08:53:17+00:00","dateModified":"2016-07-05T08:38:31+00:00","author":{"@id":"https:\/\/darko-keric.from.hr\/#\/schema\/person\/5e2f76737b07a700e0e2a108d173e612"},"breadcrumb":{"@id":"http:\/\/darko-keric.from.hr\/?p=276#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/darko-keric.from.hr\/?p=276"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/darko-keric.from.hr\/?p=276#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/darko-keric.from.hr\/"},{"@type":"ListItem","position":2,"name":"Join Windows to samba4"}]},{"@type":"Person","@id":"https:\/\/darko-keric.from.hr\/#\/schema\/person\/5e2f76737b07a700e0e2a108d173e612","name":"darko-keric","image":{"@type":"ImageObject","@id":"https:\/\/darko-keric.from.hr\/#personlogo","inLanguage":"en-US","url":"http:\/\/0.gravatar.com\/avatar\/0400800f6ebec266fcb39a1cb31b0b0e?s=96&d=mm&r=g","contentUrl":"http:\/\/0.gravatar.com\/avatar\/0400800f6ebec266fcb39a1cb31b0b0e?s=96&d=mm&r=g","caption":"darko-keric"},"url":"http:\/\/darko-keric.from.hr\/?author=348"}]}},"_links":{"self":[{"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=\/wp\/v2\/posts\/276"}],"collection":[{"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=\/wp\/v2\/users\/348"}],"replies":[{"embeddable":true,"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=276"}],"version-history":[{"count":6,"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=\/wp\/v2\/posts\/276\/revisions"}],"predecessor-version":[{"id":287,"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=\/wp\/v2\/posts\/276\/revisions\/287"}],"wp:attachment":[{"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=276"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}