<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Duygu Ölmez</title>
    <description>The latest articles on DEV Community by Duygu Ölmez (@zduygu).</description>
    <link>https://dev.to/zduygu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F340981%2F99bc428b-02b3-4a6c-bde5-866b0bd94729.jpeg</url>
      <title>DEV Community: Duygu Ölmez</title>
      <link>https://dev.to/zduygu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zduygu"/>
    <language>en</language>
    <item>
      <title>Liman - Cihaz Yönetimi Lisansı Yenileme</title>
      <dc:creator>Duygu Ölmez</dc:creator>
      <pubDate>Mon, 10 Jul 2023 08:27:00 +0000</pubDate>
      <link>https://dev.to/liman/liman-cihaz-yonetimi-lisansi-yenileme-5d27</link>
      <guid>https://dev.to/liman/liman-cihaz-yonetimi-lisansi-yenileme-5d27</guid>
      <description>&lt;p&gt;Cihaz yönetimi eklentisinin lisans süresini uzatmak için aşağıdaki adımları takip etmek yeterlidir. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cihaz yönetimi sunucuna ssh ile bağlanılır ve yetkili kullanıcıya geçiş yapılır.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo su
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Sunucuza özel üretilen lisans aşağıdaki komut ile eklenir
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cp /opt/mico/license /opt/mico/license.backup
echo "SIZE_VERILEN_LISANS" &amp;gt; /opt/mico/license
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Daha sonra servisler yeniden başlatılır ve serviste hata olmadığı gözlemlenir.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;systemctl restart mico@admin
systemctl restart mico@client
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Son olarak liman arayüzüne girilir ve eklenti üzerinden lisans bilgileri kontrol edilir.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foa7538qe789h1xo3kq1s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foa7538qe789h1xo3kq1s.png" alt="Image description" width="800" height="387"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Windows İstemci ve ELK Entegrasyonu</title>
      <dc:creator>Duygu Ölmez</dc:creator>
      <pubDate>Thu, 07 Apr 2022 11:49:01 +0000</pubDate>
      <link>https://dev.to/aciklab/windows-istemci-ve-elk-entegrasyonu-4iec</link>
      <guid>https://dev.to/aciklab/windows-istemci-ve-elk-entegrasyonu-4iec</guid>
      <description>&lt;p&gt;Windows sistemlerin ELK'ya log gönderebilmesi için yapılması gereken işlemler aşağıdaki gibidir. &lt;/p&gt;

&lt;h2&gt;
  
  
  Adım 1 - Kurulum
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Winlogbeat Windows zip dosyasını resmi &lt;a href="https://www.elastic.co/downloads/beats/winlogbeat-oss"&gt;indirme sayfasından&lt;/a&gt; indirin.&lt;/li&gt;
&lt;li&gt;Zip dosyasının içeriğini C:\Program Files içine çıkarın.&lt;/li&gt;
&lt;li&gt;winlogbeat- dizinini Winlogbeat olarak yeniden adlandırın.&lt;/li&gt;
&lt;li&gt;Yönetici olarak bir PowerShell istemi açın (PowerShell simgesine sağ tıklayın ve Yönetici Olarak Çalıştır'ı seçin). Windows XP kullanıyorsanız, PowerShell'i indirip yüklemeniz gerekebilir.&lt;/li&gt;
&lt;li&gt;Winlogbeat'i bir Windows hizmeti olarak kurmak için aşağıdaki komutları çalıştırın:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PS C:\Users\Administrator&amp;gt; cd 'C:\Program Files\Winlogbeat'
PS C:\Program Files\Winlogbeat&amp;gt; .\install-service-winlogbeat.ps1

Security warning
Run only scripts that you trust. While scripts from the internet can be useful,
this script can potentially harm your computer. If you trust this script, use
the Unblock-File cmdlet to allow the script to run without this warning message.
Do you want to run C:\Program Files\Winlogbeat\install-service-winlogbeat.ps1?
[D] Do not run  [R] Run once  [S] Suspend  [?] Help (default is "D"): R

Status   Name               DisplayName
------   ----               -----------
Stopped  winlogbeat         winlogbeat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Sisteminizde betik çalıştırma devre dışı bırakılmışsa, betik dosyasının çalışmasına izin vermek için geçerli oturumda yetki vermek için aşağıdaki komutu çalıştırmanız  gerekir. &lt;/p&gt;


&lt;pre class="highlight plaintext"&gt;&lt;code&gt; PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-winlogbeat.ps1
&lt;/code&gt;&lt;/pre&gt;

&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Adım 2 - Winlogbeat'i Yapılandırması
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Winlogbeat yapılandırması, C:\Program Files\Winlogbeat içindeki winlogbeat.yml dosyasında bulunur.&lt;/li&gt;
&lt;li&gt;event_logs bölümünde, izlemek istediğiniz olay günlüklerini belirtin. Varsayılan olarak Winlogbeat, uygulama, güvenlik ve sistem günlüklerini izleyecek şekilde ayarlanmıştır:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;winlogbeat.event_logs:
  - name: Application
  - name: Security
  - name: System
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Adım 3 - Çıktıyı yapılandırın
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Veriler dizine eklenmeden önce filtreleri çalıştırma seçeneğimiz olması için Logstash'a göndereceğiz.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Elasticsearch çıktı bloğunu ve Kibana bloğunun yoruma alınması gerekiyor.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;...
...
#setup.kibana
...
...
# output.elasticsearch:
  # hosts: ["localhost:9200"]
  ...
  ...
  # pipeline: "winlogbeat-%{[agent.version]}-routing"
...
...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Logstash bloğu ise aşağıdaki şekilde güncellenmelidir. Aşağıdaki sunucuya &lt;strong&gt;LOGSTACH_IP_ADRES&lt;/strong&gt; ve &lt;strong&gt;LOGSTASH_PORT&lt;/strong&gt; alanları doğru olarak yazılmalıdır.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;...
...
output.logstash:
    hosts: ["LOGSTACH_IP_ADRES:LOGSTASH_PORT"]
    ...
    ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Adım 4 - Yapılandırmayı doğrulayın
&lt;/h2&gt;

&lt;p&gt;Yapılandırma dosyasının doğru ayarlanıp ayarlanmadığını  kontrol edelim.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PS C:\Program Files\Winlogbeat&amp;gt; .\winlogbeat.exe test config -c .\winlogbeat.yml -e
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Adım 5 - Winlogbeat Serisini Başlatma
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Aşağıdaki komut çalıştırılarak servisi başlatın.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PS C:\Program Files\Winlogbeat&amp;gt; Start-Service winlogbeat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Winlogbeat şimdi çalışıyor olmalıdır. Burada açıklanan yapılandırmayı kullandıysanız, günlük dosyasını C:\ProgramData\winlogbeat\Logs\winlogbeat konumunda görüntüleyebilirsiniz.&lt;/li&gt;
&lt;li&gt;Windows'ta Hizmetler yönetim konsolundan hizmetin durumunu görüntüleyebilir ve kontrol edebilirsiniz. Yönetim konsolunu başlatmak için şu komutu çalıştırın:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PS C:\Program Files\Winlogbeat&amp;gt; services.msc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Adım 6 - Winlogbeat Servisini Durdurma
&lt;/h2&gt;

&lt;p&gt;Winlogbeat servisini aşağıdaki komutla durdurun:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PS C:\Program Files\Winlogbeat&amp;gt; Stop-Service winlogbeat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>elk</category>
      <category>windows</category>
      <category>winlogbeat</category>
    </item>
    <item>
      <title>Ansible İle Miço RPM Ajanı Dağıtma</title>
      <dc:creator>Duygu Ölmez</dc:creator>
      <pubDate>Mon, 21 Mar 2022 19:46:49 +0000</pubDate>
      <link>https://dev.to/liman/ansible-ile-mico-rpm-ajani-dagitma-4703</link>
      <guid>https://dev.to/liman/ansible-ile-mico-rpm-ajani-dagitma-4703</guid>
      <description>&lt;p&gt;Yerli bir SCCM alternatifi olan Miço, Windows işletim sistemi, Redhat ve Debian tabanlı işletim sistemlerine rahatlıkla kurulabilmektedir. &lt;br&gt;
Birden fazla linux makineye kurulum yapılmak istendiğinde akla ilk ansible gelmektedir. &lt;/p&gt;

&lt;p&gt;Bu dokümanda Pardus 21 Sunucu üzerine kurulu ansible uygulaması kullanılarak Redhat tabanlı makinelere Miço ajanının kurulumu anlatılmıştır. &lt;a href="https://github.com/aciklab/ansible-mico"&gt;(github deposu)&lt;/a&gt; &lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0svmcy8jfz06os90kjq6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0svmcy8jfz06os90kjq6.png" alt="schema" width="291" height="301"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Öncelikle Pardus 21 Sunucusu üzerine ansible ve gerekli diğer paketler yüklenir
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt install ansible git sshpass
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;/opt dizinine gidilerek &lt;code&gt;ansible-mico&lt;/code&gt; indirilir
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /opt
sudo git clone https://github.com/aciklab/ansible-mico.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Mevcut &lt;strong&gt;Miço&lt;/strong&gt; rpm paketi ve &lt;strong&gt;osquery&lt;/strong&gt; paketleri &lt;code&gt;/opt/ansible-micofiles/rpm/&lt;/code&gt; dizini altına kopyalanır.
&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi37ztpfvg24e9h76605y.png" alt="list-of-rpm-packages" width="706" height="158"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;✅  osquery'nin en güncel paketi için &lt;a href="https://osquery.io/downloads/official/5.2.2"&gt;osquery'nin&lt;/a&gt; ziyaret edebilirsiniz. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;/opt/ansible-mico/inventory/hosts dosyasına &lt;code&gt;[rpm]&lt;/code&gt; başlığı altına Miço ajanı yüklenecek makinenin IP adresi, ssh kullanıcı adı ve ssh kullanıcısının parola bilgilerini yazmak gerekmektedir.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[rpm]
192.168.5.66 ansible_ssh_user=sysadmin ansible_ssh_pass=1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;/opt/ansible-mico/vars/mico-vars.yml dosyası içerisine Miço sunucusunun ip adresi aşağıdaki şekilde yazılır.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mico_server: "192.168.5.10"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;/opt/ansible-mico dizinine gidilir ve aşağıdaki şekilde ansible komutu çalıştırılır.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /opt/ansible-mico
ansible-playbook playbooks/rpm.yml 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2n4w5xbh0uo5y6xerw9o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2n4w5xbh0uo5y6xerw9o.png" alt="rpm-yml-output" width="800" height="453"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ansible</category>
      <category>liman</category>
      <category>mico</category>
    </item>
    <item>
      <title>Ansible İle Miço Debian Ajanı Dağıtma</title>
      <dc:creator>Duygu Ölmez</dc:creator>
      <pubDate>Mon, 21 Mar 2022 16:12:33 +0000</pubDate>
      <link>https://dev.to/liman/ansible-ile-mico-debian-ajani-dagitma-222o</link>
      <guid>https://dev.to/liman/ansible-ile-mico-debian-ajani-dagitma-222o</guid>
      <description>&lt;p&gt;Yerli bir SCCM alternatifi olan Miço, windows işletim sistemi, redhat ve debian tabanlı işletim sistemlerine rahatlıkla kurulabilmektedir. &lt;br&gt;
Birden fazla linux makineye kurulum yapılmak istendiğinde akla ilk ansible gelmektedir. &lt;/p&gt;

&lt;p&gt;Bu dokümanda Pardus 21 Sunucu üzerine kurulu ansible uygulaması kullanılarak Debian tabanlı makinelere Miço ajanının kurulumu anlatılmıştır. &lt;a href="https://github.com/aciklab/ansible-mico"&gt;(github deposu)&lt;/a&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Öncelikle Pardus 21 Sunucusu üzerine ansible ve gerekli diğer paketler yüklenir
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt install ansible git sshpass
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;/opt dizinine gidilerek &lt;code&gt;ansible-mico&lt;/code&gt; indirilir
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /opt
sudo git clone https://github.com/aciklab/ansible-mico.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Mevcut &lt;strong&gt;Miço&lt;/strong&gt; deb paketi ve &lt;strong&gt;osquery&lt;/strong&gt; paketleri &lt;code&gt;/opt/ansible-micofiles/deb/&lt;/code&gt; dizini altına kopyalanır.
&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8s4ytf9oarftzqo7feap.png" alt="Image description" width="669" height="147"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;✅  osquery'nin en güncel paketi için &lt;a href="https://osquery.io/downloads/official/5.2.2"&gt;osquery'nin&lt;/a&gt; ziyaret edebilirsiniz. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;/opt/ansible-mico/inventory/hosts dosyasına &lt;code&gt;[deb]&lt;/code&gt; başlığı altına Miço ajanı yüklenecek makinenin IP adresi, ssh kullanıcı adı, ssh kullanıcısının parola ve sudo parola bilgilerini yazmak gerekmektedir.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[deb]
192.168.5.8 ansible_ssh_user=sysadmin ansible_ssh_pass=1 ansible_sudo_pass=1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;/opt/ansible-mico/vars/mico-vars.yml dosyası içerisine Miço sunucusunun ip adresi aşağıdaki şekilde yazılır.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mico_server: "192.168.5.10"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;/opt/ansible-mico dizinine gidilir ve aşağıdaki şekilde ansible komutu çalıştırılır.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /opt/ansible-mico
ansible-playbook playbooks/deb.yml 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frjd2whxjzrmftsecktf3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frjd2whxjzrmftsecktf3.png" alt="Image description" width="800" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ansible</category>
      <category>mico</category>
      <category>liman</category>
    </item>
    <item>
      <title>Adding a Windows 2019 DC to Your Samba Domain</title>
      <dc:creator>Duygu Ölmez</dc:creator>
      <pubDate>Sun, 23 Jan 2022 21:38:01 +0000</pubDate>
      <link>https://dev.to/aciklab/adding-a-windows-2019-dc-to-your-samba-domain-im2</link>
      <guid>https://dev.to/aciklab/adding-a-windows-2019-dc-to-your-samba-domain-im2</guid>
      <description>&lt;h1&gt;
  
  
  Adding a Windows 2019 DC to Your Samba Domain
&lt;/h1&gt;

&lt;p&gt;In this document MSAD 2016 or 2019 joins a Samba-AD with version 4.15.&lt;/p&gt;

&lt;p&gt;This documentation is intended for system administrators that need an MS-AD domain controller in their Samba-AD domain for technical reasons (Azure-Sync, etc.).&lt;/p&gt;




&lt;p&gt;❗&lt;strong&gt;Hint&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Since version 4.12, Samba-AD manages a 2012R2 schema level but still with a functional level in 2008R2. It is therefore possible to join a Windows Server 2012R2 configured in 2008R2 functional level with a Samba-AD domain as an AD.&lt;/p&gt;







&lt;p&gt;✅&lt;strong&gt;Important&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Since version 4.12, Samba-AD manages a 2012R2 schema level but still with a functional level in 2008R2. It is therefore possible to join a Windows Server 2012R2 configured in 2008R2 functional level with a Samba-AD domain as an AD.&lt;/p&gt;




&lt;h2&gt;
  
  
  Microsoft Active Directory 2019
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Preparing your Samba-AD for the future junction
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Backup the Samba-AD because irreversible changes will be made;&lt;/li&gt;
&lt;li&gt;Upgrade Samba to its latest 4.15 version;&lt;/li&gt;
&lt;li&gt;Install the required dependencies to join the Windows Server:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# RedHat8 and derived distributions
yum install python3-markdown
# Debian
apt install python3-markdown
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Then run the following commands, these will join the MS Server 2019 in your domain:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;samba-tool domain schemaupgrade
samba-tool domain functionalprep --function-level=2012_R2 --forest-prep --domain-prep
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Set schema version to 2019
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;priv=$(smbd -b | grep -i private_dir | cut -d : -f 2 | xargs)
defaultNamingContext=$(ldbsearch -H ldap://127.0.0.1 -s base -b "" defaultNamingContext | grep defaultNamingContext | cut -d : -f 2 | xargs)
schemaNamingContext=$(ldbsearch -H ldap://127.0.0.1 -s base -b "" schemaNamingContext | grep schema | cut -d : -f 2 | xargs)
ldbedit -e "sed -i 's/objectVersion:.*/objectVersion: 88/g'" -H $priv/sam.ldb '(objectClass=dMD)' -b $schemaNamingContext
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Check the directory database:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;samba-tool dbcheck --cross-ncs --fix --yes  --reset-well-known-acls 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;strong&gt;☑️Note&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is possible that errors appear when launching the command the first time, just run it a second time.&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;Enable schema updates in Samba AD:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if grep -q "dsdb:schema update allowed" /etc/samba/smb.conf; then     
    sed -i '/dsdb:schema update allowed=true/d' /etc/samba/smb.conf
fi
sed -i '/global/a dsdb:schema update allowed=true' /etc/samba/smb.conf
systemctl restart samba-ad-dc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Preparing and joining the Microsoft Active Directory 2019
&lt;/h3&gt;




&lt;p&gt;&lt;strong&gt;☑️Note&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is recommended to use an English version of Windows Server for infrastructure services. This allows you to have logs in English and feel less lonely when searching on the Internet.&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;&lt;p&gt;If not already done, set the server to a fixed IP and configure the DNS redirector to point to the main AD;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Force the activation of the Sysvol directory on the MS-AD:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  Set-ItemProperty -Path "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters"  -Name "SysVolReady" -Value  0
  Restart-Computer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Install the Active Directory components. In a PowerShell console run the following commands:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Install-WindowsFeature AD-Domain-Services
Add-WindowsFeature RSAT-ADLDS
Add-WindowsFeature RSAT-ADDS-Tools
Add-WindowsFeature RSAT-DNS-Server
Add-WindowsFeature RSAT-DFS-Mgmt-Con
Add-WindowsFeature GPMC
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Now that the role is installed, promote the server to AD and set it up;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;☑️Note&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The following command will open a popup that will ask for the &lt;em&gt;Domain Admins&lt;/em&gt; credentials to join the server (in graphical mode), then the credentials for the AD restore mode (in text mode).&lt;/p&gt;







&lt;p&gt;&lt;strong&gt;☑️Note&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If not already done, synchronize the time between MS-AD domain controller in their Samba-AD domain with the following command:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;w32tm /config /syncfromflags:manual /manualpeerlist:”NTP Server” /reliable:yes /update
w32tm /resync /force
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;









&lt;p&gt;&lt;strong&gt;☑️Note&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Of course &lt;strong&gt;modify&lt;/strong&gt; the values &lt;em&gt;Credential&lt;/em&gt;, &lt;em&gt;DomainName&lt;/em&gt;, &lt;em&gt;SiteName&lt;/em&gt; and &lt;em&gt;ReplicationSourceDC&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;There is a &lt;em&gt;back quote&lt;/em&gt; character at the end of each line. Do not remove it or PowerShell will interpret this command as multiple commands.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Install-ADDSDomainController  `
   -Credential (Get-Credential "MIGRATE\Administrator") `
   -DomainName 'migrate.lab' `
   -SiteName 'Default-First-Site-Name' `
   -ReplicationSourceDC smb-adds01.migrate.lab `
   -CreateDnsDelegation:$false  `
   -DatabasePath 'C:\Windows\NTDS' `
   -InstallDns:$true  `
   -LogPath 'C:\Windows\NTDS' `
   -NoGlobalCatalog:$false `
   -SysvolPath 'C:\Windows\SYSVOL'  `
   -NoRebootOnCompletion:$true  `
   -Force:$true
Restart-Computer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;strong&gt;☑️Note&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;At this stage, the Windows Active Directory is properly attached to  the domain. However, some options need to be adjusted on the sysvol, DNS and NTP parts.&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;Force the activation of the Sysvol directory on the MS-AD:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters" -Name "SysvolReady" -Value "1"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Copy the contents of the &lt;code&gt;SYSVOL&lt;/code&gt; from the Samba-AD server. To do this, in a file explorer, type &lt;code&gt;\\srvads\\sysvol&lt;/code&gt;, then go to the folder corresponding to your domain name (for example &lt;em&gt;ad.mydomain.lan&lt;/em&gt;) and copy &lt;code&gt;Policies&lt;/code&gt; and &lt;code&gt;Scripts&lt;/code&gt; into &lt;code&gt;C:windowsSYSVOLdomain&lt;/code&gt; (but not the domain name). After the copy we will have these two directories:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;C:windowsSYSVOLdomainPolicies; &lt;/li&gt;
&lt;li&gt;C:windowsSYSVOLdomainScripts;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;




&lt;p&gt;⚠️&lt;strong&gt;Warning&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Samba does not support DFS-R or FRS protocols.&lt;/p&gt;

&lt;p&gt;Therefore, it will be necessary to manually synchronize the &lt;code&gt;SYSVOL&lt;/code&gt; directory each time a GPO is created or modified.&lt;/p&gt;







&lt;p&gt;&lt;strong&gt;☑️Note&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There is a link from &lt;code&gt;C:\windows\SYSVOL\sysvol\ad.mydomain.lan&lt;/code&gt; to &lt;code&gt;C:\windows\SYSVOL\domain&lt;/code&gt;.&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;Restart the MS-AD server:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  shutdown -r -t 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Reverse DNS servers on the network card. The primary DNS server must be itself (&lt;code&gt;127.0.0.1&lt;/code&gt;), and the secondary DNS server is the Samba-AD server (Microsoft does the opposite when joining)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the DNS console, change the DNS redirector to the network recursor  (by default Windows sets the first domain controller as the recursor  when joining).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The change the NTP configuration in the MS-AD registry:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\W32Time\Parameters" -Name "Type" -Value  "NTP"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Then restart the NTP service with a command prompt on the MS-AD server:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  net stop w32time
  net start w32time
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Finally, update the DNS and Kerberos configuration of the Samba-AD  server by updating the information about the new Windows server. To do this, modify the files &lt;code&gt;/etc/hosts&lt;/code&gt;, &lt;code&gt;/etc/resolv.conf&lt;/code&gt; and &lt;code&gt;/etc/krb5.conf&lt;/code&gt;;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Final Checks
&lt;/h3&gt;




&lt;ul&gt;
&lt;li&gt;Check the directory database in Samba-AD server:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;samba-tool dbcheck --cross-ncs --fix --yes  --reset-well-known-acls 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffybcdgjpeuuhl0ejvaig.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffybcdgjpeuuhl0ejvaig.png" alt="Image description" width="757" height="533"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcgu246w45fvmajx2cqie.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcgu246w45fvmajx2cqie.png" alt="Image description" width="753" height="531"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>samba</category>
      <category>windows2019</category>
      <category>domain</category>
    </item>
    <item>
      <title>Domain: Politika Objesi (GPO) Oluşturma</title>
      <dc:creator>Duygu Ölmez</dc:creator>
      <pubDate>Tue, 16 Nov 2021 06:02:12 +0000</pubDate>
      <link>https://dev.to/liman/domain-politika-objesi-gpo-olusturma-2j1</link>
      <guid>https://dev.to/liman/domain-politika-objesi-gpo-olusturma-2j1</guid>
      <description>&lt;p&gt;Domain eklentisi ile Samba ya da Windows Domainler üzerinde politika objesi oluşturma işlemleri yapılabilmektedir. Bu sayede Domain'e dahil edilen objeleriniz için politikaları yönetebilirsiniz.&lt;/p&gt;

&lt;p&gt;Liman MYS arayüzünden yönetmek istediğiniz Domain Sunucusu'ndaki Domain Eklentisine basılır.&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flu0rcum6toq8193vebgp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flu0rcum6toq8193vebgp.png" alt="Image description" width="800" height="273"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Politika eklenmek istenen Organizasyon Birimi seçilir ve Nesne Ekle butonuna tıklanır.&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5l48ctmse3769ay31hvw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5l48ctmse3769ay31hvw.png" alt="Image description" width="800" height="245"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Açılan pencerede Politika türü seçilir ve Politika objesine bir isim verilir.&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9ujnevxvwqyhh7uajijf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9ujnevxvwqyhh7uajijf.png" alt="Image description" width="800" height="313"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Politika objesi yaratıldıktan sonra politikanın bulunduğu organizasyon seçilir. Obje türü olarak politika seçildikten sonra eklenilen politika listelenebilir.&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw2snmxz7mpeuauu0ht59.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw2snmxz7mpeuauu0ht59.png" alt="Image description" width="800" height="264"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>domain</category>
      <category>limanmys</category>
      <category>gpo</category>
      <category>policy</category>
    </item>
    <item>
      <title>Liman Sunucu Sertifikası Ekleme</title>
      <dc:creator>Duygu Ölmez</dc:creator>
      <pubDate>Mon, 15 Nov 2021 14:02:01 +0000</pubDate>
      <link>https://dev.to/liman/liman-sunucu-sertifikasi-ekleme-597n</link>
      <guid>https://dev.to/liman/liman-sunucu-sertifikasi-ekleme-597n</guid>
      <description>&lt;p&gt;Liman MYS üzerine Sunucu Sertifikaları eklemek için aşağıdaki adımları takip etmek gerekmektedir&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Yetkili bir hesap ile Liman MYS arayüzüne giriş yapılır &lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo5jkgis8awhq4arig4d8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo5jkgis8awhq4arig4d8.png" alt="Image description" width="800" height="406"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Sistem Ayarları sayfasındaki &lt;code&gt;Sertifika Ekle&lt;/code&gt; sekmesi açılır. Eklenmek istenen SSL sertifikasının bulunduğu sunucu Ip ve port bilgisi doldurularak &lt;code&gt;Al&lt;/code&gt; butonuna basılır.&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbek875gbz5enhl0be6w4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbek875gbz5enhl0be6w4.png" alt="Image description" width="800" height="417"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Sertifika bilgileri çekildikten sonra Sertifikayı Onayla butonuna basılır.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F722nv0t0ejn7pa36v8c6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F722nv0t0ejn7pa36v8c6.png" alt="Image description" width="800" height="252"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Liman Sunucusu DNS Değiştirme</title>
      <dc:creator>Duygu Ölmez</dc:creator>
      <pubDate>Mon, 15 Nov 2021 13:55:40 +0000</pubDate>
      <link>https://dev.to/liman/liman-sunucusu-dns-degistirme-4nbf</link>
      <guid>https://dev.to/liman/liman-sunucusu-dns-degistirme-4nbf</guid>
      <description>&lt;p&gt;Liman MYS Sunucusunun DNS'ini değiştirmek için aşağıdaki adımları takip etmek gerekmektedir.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Yetkili bir hesap ile Liman MYS arayüzüne giriş yapılır 
&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh9gryu36glvpme551jrn.png" alt="Image description" width="800" height="406"&gt;
&lt;/li&gt;
&lt;li&gt;Sistem Ayarları sayfasındaki &lt;code&gt;DNS Ayarları&lt;/code&gt; sekmesi açılır. 
&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fufu8xk9juhwzul01nghf.png" alt="Image description" width="800" height="416"&gt;
&lt;/li&gt;
&lt;li&gt;Dns ayarları girilerek Kaydet butonuna basılır.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Liman Eklentilerine Lisans Ekleme</title>
      <dc:creator>Duygu Ölmez</dc:creator>
      <pubDate>Mon, 15 Nov 2021 13:45:28 +0000</pubDate>
      <link>https://dev.to/liman/liman-eklentilerine-lisans-ekleme-3i1</link>
      <guid>https://dev.to/liman/liman-eklentilerine-lisans-ekleme-3i1</guid>
      <description>&lt;p&gt;Liman MYS üzerine eklenmiş eklentilere lisans ekleme için aşağıdaki adımları takip etmek gerekmektedirç&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Yetkili bir hesap ile Liman MYS arayüzüne giriş yapılır
&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc3v40eft97hhj216brl6.png" alt="Image description" width="800" height="406"&gt;
&lt;/li&gt;
&lt;li&gt;Sistem Ayarları sayfasındaki Eklentiler sekmesi açılır.
&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4vrhnigf6ribu2vu8mhv.png" alt="Image description" width="800" height="405"&gt;
&lt;/li&gt;
&lt;li&gt;Lisans eklenmek istenen eklentiye sağ tıklanarak &lt;code&gt;Lisans Ekle&lt;/code&gt; seçeneği seçilir.
&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7dq1brc1r3vpt11s0pzq.png" alt="Image description" width="800" height="322"&gt;
&lt;/li&gt;
&lt;li&gt;Kurum tarafından size iletilen lisans aşağıdaki şekilde açılan kutucuğa yazılır eklenir. 
&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fehvty3xyjbh5qjx4qw4o.png" alt="Image description" width="800" height="190"&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Pardus 19 VirtualBox Kurulumu</title>
      <dc:creator>Duygu Ölmez</dc:creator>
      <pubDate>Tue, 26 Oct 2021 04:25:43 +0000</pubDate>
      <link>https://dev.to/aciklab/pardus-19-virtualbox-kurulumu-244e</link>
      <guid>https://dev.to/aciklab/pardus-19-virtualbox-kurulumu-244e</guid>
      <description>&lt;p&gt;Pardus 19 işletim sisteminde Virtualbox Pardus'un kendi deposundan aşağıdaki komut ile yüklenebilir.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install virtualbox-6.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Kurulumdan sonra sanal makineler başlatılırken aşağıdaki gibi hata alınıyorsa çekirdek modüllerini de yüklemek gerekmektedir.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vqZxU5mr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r0sivswgkk5lnksnv1w6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vqZxU5mr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r0sivswgkk5lnksnv1w6.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Bunun için ilk olarak işletim sistenin güncel olduğundan emin olmak gerek.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update
sudo apt upgrade
sudo reboot
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Daha sonra aşağıdaki paketlerin yüklenmesi gerekmektedir.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt install linux-headers-`uname -r` build-essential dkms
apt install --reinstall virtualbox-6.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Makine yeniden başlatıldıktan sonra sanal makineler kullanılabilir.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Debian 11 İçin Static IP Tanımlama</title>
      <dc:creator>Duygu Ölmez</dc:creator>
      <pubDate>Wed, 18 Aug 2021 05:51:27 +0000</pubDate>
      <link>https://dev.to/aciklab/debian-11-i-cin-static-ip-tanimlama-33ce</link>
      <guid>https://dev.to/aciklab/debian-11-i-cin-static-ip-tanimlama-33ce</guid>
      <description>&lt;p&gt;Bir etki alanı denetçisi (domain controller) kurmadan önce en önemli adım IP adresinin sabit olması gerekliliğidir. Eğer DHCP ile değişen bir IP'ye sahipseniz ileride etki alanına dahil olan sistemlerde aksaklıklar meydana gelebilir.&lt;/p&gt;

&lt;p&gt;Öncelikle aşağıdaki komut ile ağ aygıt adımızı öğrenmemiz gerekmektedir.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ip a
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Bu komut çıktısında 1: , 2:, 3: gibi farklı aygıtlar yer almaktadır. muhtemelen 1. aygıt olarak "lo" yer almakta ve lookback adresini tanımlamaktadır. Büyük bir olasılıkla ağ aygıt adınız 2:'nin yanındaki enp0s3 gibi bir isim olması gerekmektedir. Bu bilgiyi netleştirdikten sonra IP adresini statik hale getirmeye başlayabiliriz.&lt;/p&gt;

&lt;p&gt;Kullandığınız herhangi bir editör ile (nano, vim, piko vs.) &lt;code&gt;/etc/network/interfaces&lt;/code&gt; dosyasında aşağıdaki gibi olan satırı bulup;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;allow-hotplug enp0s3
iface enp0s3 inet dhcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Bu satırı tamamen silip aşağıdaki gibi düzeltmeniz gerekmektedir.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;auto enp0s3
iface enp0s3 inet static
 address 192.168.1.67
 netmask 255.255.255.0
 gateway 192.168.1.1
 dns-nameservers 192.168.1.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Bu düzenlemede address yazan yere daha önce alınmamış bir IP adresini yazmanız gerekiyor. Ve tabi ki aynı subnet üzerinde olması gerektiği için gateway adresini de doğru şekilde yazmanız gerekmektedir. DNS adresi olarak da şimdilik modeminizin veya kullandığınız DNS adresini yazabilirsiniz.&lt;/p&gt;

&lt;p&gt;Bu adımdan sonra IP adresini temizleyip, networking servisini yeniden başlatmak olacaktır.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo ip addr flush dev enp0s3
sudo systemctl restart networking.service
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Bu şekilde IP adresinizi statik hale getirmiş olacaksınız.&lt;/p&gt;

</description>
      <category>debian</category>
      <category>static</category>
      <category>ip</category>
    </item>
    <item>
      <title>Debian Üzerinde Rpm (Centos 7) Deposu Oluşturma </title>
      <dc:creator>Duygu Ölmez</dc:creator>
      <pubDate>Mon, 08 Mar 2021 10:26:53 +0000</pubDate>
      <link>https://dev.to/aciklab/debian-uzerinde-rpm-centos-7-deposu-olusturma-5bed</link>
      <guid>https://dev.to/aciklab/debian-uzerinde-rpm-centos-7-deposu-olusturma-5bed</guid>
      <description>&lt;p&gt;Debian tabanlı bir işletim sistemi üzerinde rpm deposu aynalamak için aşağıdaki adımları izlemek yeterlidir.&lt;/p&gt;

&lt;h3&gt;
  
  
  1.Debian Sunucu
&lt;/h3&gt;

&lt;p&gt;1.1.Gerekli paketler indirilir.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install yum-utils createrepo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;1.2.İndirmek istenilen depolar debian sunucunuzdaki &lt;code&gt;ls -al /etc/yum/repos.d/&lt;/code&gt; dizinine .repo uzantısı ile eklenir ve yum update komutu çalıştırılır.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo """[baseos]
name=CentOS Linux 7 - Base
baseurl=http://mirror.centos.org/centos/7/os/x86_64
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial""" &amp;gt; /etc/yum/repos.d/Centos-7-Base.repo

echo """[updates]
name=CentOS Linux 7 - Updates
baseurl=http://mirror.centos.org/centos/7/updates/x86_64
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial""" &amp;gt; /etc/yum/repos.d/Centos-7-Updates.repo

echo """[extras]
name=CentOS Linux 7 - Extras
baseurl=http://mirror.centos.org/centos/7/extras/x86_64
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial""" &amp;gt; /etc/yum/repos.d/Centos-7-Extras.repo

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;root@repo:/# yum update   
baseos | 3.9 kB  00:00:00     
Setting up Update Process
No Packages marked for Update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;1.3.rpm paketlerinizin indirileceği depolama alanı olşuturulur.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkdir -p /storage/centos/7/{os,updates,extras}/x86_64/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;1.4.Depodaki paketler indirilir.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;reposync -g -l -d -m -a x86_64 --repoid=baseos --newest-only --download-metadata --download_path=/storage/centos/7/os/x86_64/ --norepopath
reposync -g -l -d -m -a x86_64 --repoid=updates --newest-only --download-metadata --download_path=/storage/centos/7/updates/x86_64/ --norepopath
reposync -g -l -d -m -a x86_64 --repoid=extras --newest-only --download-metadata --download_path=/storage/centos/7/extras/x86_64/ --norepopath
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;1.5.Paketler indirildikten sonra aşağıdaki şekilde görüntülenebilmelidir.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ls -al /storage/centos/7/os/x86_64/Packages/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;1.6.Index dosyaları oluşturulmalıdır.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;createrepo /storage/centos/7/os/x86_64/
createrepo /storage/centos/7/updates/x86_64/
createrepo /storage/centos/7/extras/x86_64/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;1.7.Depoyu yayınlayacak bir web servisi yüklenir, örneğin apache2.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt install apache2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;1.8.Indirilen depo apache içerisine linklenir.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rm /var/www/html/index.html
ln -s /storage/centos /var/www/html/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Crontab for reposync
&lt;/h3&gt;

&lt;p&gt;2.1. Paketlerin düzenli olarak aynalanması için /etc/centos.sh adında bir dosya oluşturulur ve içerisine aşağıdaki betik yazılır&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;base_path=/storage/
for i in $( ls /etc/yum/repos.d/ | grep ".repo")
do
        echo $i
        destination_path=$(grep baseurl /etc/yum/repos.d/$i | grep -oP 'centos/(.*)'  | grep -oP '/(.*)' )
        destination_path=$(grep baseurl /etc/yum/repos.d/$i | grep -oP 'centos/(.*)' )
        echo $base_path$destination_path
        repo_id=$(grep -oP "\[\K(.*)"  /etc/yum/repos.d/$i | sed 's/.$//')
        echo $repo_id
        reposync -g -l -d -m -a x86_64 --repoid=$repo_id --newest-only --download-metadata --download_path=$base_path$destination_path --norepopath
        echo reposync -g -l -d -m -a x86_64 --repoid=$repo_id --newest-only --download-metadata --download_path=$base_path$destination_path --norepopath
        createrepo $base_path$destination_path
done  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2.2. Betik çalıştırışır hale getirilir.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo chmod +x /etc/centos.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2.3 &lt;code&gt;sudo crontab -e&lt;/code&gt; komutu çalıştırılır ve açılan metin dosyasının en sonuna aşağıdaki cron satırı eklenir.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;0 5 * * * /etc/centos.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3.Centos 8 GPG Keyinin Web Sunucuna Eklenmesi
&lt;/h3&gt;

&lt;p&gt;3.1. Deponun indirildiği centos dizinine gidilir. wget ile php anahtarı çekilir.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /storage/centos
wget https://www.centos.org/keys/RPM-GPG-KEY-CentOS-7
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4.Centos 7 İstemci
&lt;/h3&gt;

&lt;p&gt;4.1.Centos 7 üzerinde depoyu kullanabilmek için aşağıdaki formatta .repo dosyalarına depo sunucunuzu yazmanız yeterli.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo """[baseos]
name=CentOS Linux 7 - Base
baseurl=http://10.10.10.10/centos/7/os/x86_64/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial""" &amp;gt; /etc/yum.repos.d/Centos-7-Base.repo

echo """[updates]
name=CentOS Linux 7 - Updates
baseurl=http://10.10.10.10/centos/7/updates/x86_64/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial""" &amp;gt; /etc/yum.repos.d/Centos-7-Updates.repo

echo """[extras]
name=CentOS Linux 7 - Extras
baseurl=http://10.10.10.10/centos/7/extras/x86_64/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial""" &amp;gt; /etc/yum.repos.d/Centos-7-Extras.repo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;4.2.Depo güncellenerek paket kurulumu yapılabilir.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo yum update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>linux</category>
      <category>centos</category>
      <category>repository</category>
    </item>
  </channel>
</rss>
