Asiforum.Net

Asiforum.Net (https://asiforum.net/)
-   mIRC Hazır Kodlar ~ (https://asiforum.net/mirc-hazir-kodlar-.html)
-   -   qwebIRC Kurulumu (https://asiforum.net/168-qwebirc-kurulumu.html)

Sindy 04-22-2017 05:46 AM

qwebIRC Kurulumu
 
qwebIRC Kurulumu

Öncelikle merhaba. Son zamanlarda qwebirc ile alakalı bir çok konu açılıyordu. Yabancı bir kaynaktan bulup aldığım kurulum aşamalarını sizinle paylaşıyorum.

Root erişimi olmayan arkadaşlar, lütfen denemesinler, zira başarısız olacaklar. Gelelim kurulum aşamalarına. Aşağıda vermiş olduğum her satır, tek komut halindedir. Root girişi yaptıktan sonra, sırasıyla qwebirc‘in çalışabilmesi için gereken yan paketleri indireceğiz.

Kod:

apt-get install python-twisted libcap2-bin
Kod:

apt-get install mercurial curl patch
Kod:

apt-get install python-simplejson default-jre-headless
Sonrasında kaynak paketler;

Kod:

hg clone https://[email protected]/qwebirc/qwebirc
Kod:

curl https://bitbucket-assetroot.s3.amazonaws.com/qwebirc/qwebirc/20111012/152/qwebirc-ssl.patch | patch -p1
* SSL yama istiyorsanız şu adresten edinebilirsiniz.

Devam ediyoruz.

Kod:

adduser --system --group qwebirc
Kod:

adduser qwebirc ssl-cert
Kod:

sudo -u qwebirc /bin/bash
Kurulum şu an tamamlandı. Fakat sonrasında, çeşitli yapılandırmalarda bulunacağız.

Kod:

cp config.py.example config.py
Örnek config dosyasını, config.py olarak dizine kopyaladık.

Editlemeniz gereken örnek config.py dosyası;

* xyz.com‘u kendi domaininiz ile değiştirin.

* ******* conf şifresidir, değiştirin.

Expand

Kod:

--- config.py.example  2011-10-12 17:30:50.000000000 -0400
+++ config.py  2011-10-12 23:13:38.000000000 -0400
@@ -18,16 +18,16 @@
 #        Hostname (or IP address) of IRC server to connect to.
 # OPTION: IRCPORT
 #        Port of IRC server to connect to.
-IRCSERVER, IRCPORT = "irc.xyz.com", 6667
+IRCSERVER, IRCPORT = "localhost", 6667

 # OPTION: SSLPORT
 #        SSL port of IRC server to connect to.
 #        If this option is uncommented it will override IRCPORT.
-#SSLPORT = 6697
+SSLPORT = 6697

 # OPTION: REALNAME
 #        The realname field of IRC clients will be set to this value.
-REALNAME = "http://xyz.com/"
+REALNAME = "a user on http://xyz.com"

 # OPTION: IDENT
 #        ident to use on irc, possible values include:
@@ -72,12 +72,12 @@
 #        - the literal value None, i.e. WEBIRC_MODE = None
 #          Send the IP and hostname in the realname field, overrides
 #          the REALNAME option.
-WEBIRC_MODE = None
+WEBIRC_MODE = 'webirc'

 # OPTION: WEBIRC_PASSWORD
 #        Used for WEBIRC_MODE webirc and cgiirc, see WEBIRC_MODE
 #        option documentation.
-#WEBIRC_PASSWORD = "fish"
+WEBIRC_PASSWORD = "XXXXXXXX"

 # OPTION: CGIIRC_STRING
 #        Command sent to IRC server in for cgiirc WEBIRC_MODE.
@@ -90,12 +90,12 @@
 # OPTION: BASE_URL
 #        URL that this qwebirc instance will be available at, add the
 #        port number if your instance runs on a port other than 80.
-BASE_URL = "http://xyz.com/"
+BASE_URL = "https://xyz.com/"

 # OPTION: NETWORK_NAME
 #        The name of your IRC network, displayed throughout the
 #        application.
-NETWORK_NAME = "XYZ Server"
+NETWORK_NAME = "XYZ Server"

 # OPTION: APP_TITLE
 #        The title of the application in the web browser.
@@ -140,11 +140,11 @@
 #
 # OPTION: FEEDBACK_FROM
 #        E-mail address that feedback will originate from.
-FEEDBACK_FROM = "[email protected]"
+FEEDBACK_FROM = "[email protected]"

 # OPTION: FEEDBACK_TO:
 #        E-mail address that feedback will be sent to.
-FEEDBACK_TO = "[email protected]"
+FEEDBACK_TO = "[email protected]"

 # OPTION: FEEDBACK_SMTP_HOST
 #        Hostname/IP address of SMTP server feedback will be sent
@@ -182,6 +182,7 @@
 #        These arguments will be used as if qwebirc was run directly
 #        with them, see run.py --help for a list of options.
 #ARGS = "-n -p 3989"
+ARGS = "-C /etc/ssl/certs/koumbit.net.crt -H /etc/ssl/certs/koumbit.net-chained.crt -k /etc/ssl/private/koumbit.net.key -p 443 -l /dev/null"

 # OPTION: SYSLOG_ADDR (optional)
 #        Used in conjunction with util/syslog.py and -s option.


Sıra sunucu içerisinde yapacağımız değişikliklere geldi.

auth.conf (password kısmına, config.py’de belirlediğimiz şifreyi giriyoruz.)

Kod:

auth {
        user = "*@10.0.0.1";
        password = "*******";
        spoof = "webirc.";
        class = "users";
};

auth {
        user = "*@sunucu.com";
        password = "*******";
        spoof = "webirc.";
        class = "users";
};

sonrasında;

Kod:

loadmodule "src/modules/m_webirc.so";
ve

Kod:

/rehash
URL yönlendirme için;

Kod:

apt-get --no-install-recommends install lighttpd
/etc/lighttpd/conf-available/50-qwebirc-redirect.conf içinde;

Kod:

url.redirect = ( "^/.*" => "https://sohbet.xyz.com" )
Kod:

ln -s /etc/lighttpd/conf-available/50-qwebirc-redirect.conf /etc/lighttpd/conf-enabled
/etc/init.d/lighttpd restart

Kod:

./run.py

Not: Alıntıdır.


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 01:25 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Optimisation provided by DragonByte SEO v2.0.37 (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.