DEV Community

Rümeysa Öz for Açıklab

Posted on

1

Liman MYS-Domain Eklentisi-Kaptan Kurulumu

  • İlk olarak .deb uzantılı paket şu komut ile indirilir:
sudo apt install ./kaptan.deb
Enter fullscreen mode Exit fullscreen mode
  • Paket indirildikten sonra /usr/share/kaptan/kaptan.conf dosyasının içine girilir:
sudo nano /usr/share/kaptan/kaptan.conf
Enter fullscreen mode Exit fullscreen mode
  • Daha sonra yorum satırı kaldırılır ve localhost yerine PostgreSQL database'i kullanılacak makinenin IP'si yazılır.

Image description

  • PostgreSQL database'i kullanılacak makinede aşağıdaki adımları izleyerek veritabanında user, database ve şifre oluşturulur:

Kullanıcı Oluşturma:

sudo -u postgres createuser kaptan
Enter fullscreen mode Exit fullscreen mode

Bizim örneğimizde karşılığı kaptan olarak belirlenmiştir.

Database Oluşturma:

sudo -u postgres createdb kaptan
Enter fullscreen mode Exit fullscreen mode

Bizim örneğimizde karşılığı kaptan olarak belirlenmiştir.

Kullanıcıya Şifre Verme:

sudo -u postgres psql

psql=# alter user <username> with encrypted password '<password>';

Enter fullscreen mode Exit fullscreen mode

Bu örnekte şifre 1 olarak güncellendi.

  • Sonrasında kaptan kurulu olan makineye şu komut ile PostgreSQL bilgileri eklenir:
kaptan -q postgresql_username
Enter fullscreen mode Exit fullscreen mode

Bizim örneğimizde postgresql_username = kaptan olarak belirlenmişti. (kaptan -q kaptan)

  • Bu komut girildikten sonra şifre istenecektir, db oluşturulurken girilien şifre girilir. Bizim örneğimizde Password = 1 olarak belirlenmişti.

    • Şu komut ile makinenin ID'si kontrol edilir ve ardından HAVELSAN A.Ş.'den veya yetkili bir satıcıdan alınan lisans istenir:
kaptan -i
Enter fullscreen mode Exit fullscreen mode
  • /usr/share/kaptan/licence dosyasının içine girilir ve lisans eklenip kaydedilir:
nano /usr/share/kaptan/licence
Enter fullscreen mode Exit fullscreen mode
  • Son olarak şu komut ile lisans'ın yolu verilerek lisans eklenir:
kaptan -l /usr/share/kaptan/licence
Enter fullscreen mode Exit fullscreen mode
  • Ayrıca şu komut ile kaptan kurulumuna dair daha çok bilgiye sahip olunabilir:
kaptan -h
Enter fullscreen mode Exit fullscreen mode

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay