lookjapan.COM - IRC ve mIRC dünyasının forumu!

lookjapan.COM - IRC ve mIRC dünyasının forumu! (http://www.lookjapan.com/index.php)
-   Qwebirc (http://www.lookjapan.com/forumdisplay.php?f=259)
-   -   Ubuntu sistemleri için QwebIRC kurulumu. (http://www.lookjapan.com/showthread.php?t=1624)

Code 24 Temmuz 2015 11:36

Ubuntu sistemleri için QwebIRC kurulumu.
 
Merhabalar,

QwebIRC uygulamasını ubuntu sistemlere kurabilmenize fayda sağlayacak bir dökümandır.

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://anarcat@bitbucket.org/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.

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

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 = "iletisim@xyz.com"
+FEEDBACK_FROM = "iletisim@xyz.com"

 # OPTION: FEEDBACK_TO:
 #        E-mail address that feedback will be sent to.
-FEEDBACK_TO = "iletisim@xyz.com"
+FEEDBACK_TO = "iletisim@xyz.com"

 # 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 = "*@127.0.0.1";
        password = "XXXXXXXX";
        spoof = "webirc.";
        class = "users";
};

auth {
        user = "*@xyz.com";
        password = "XXXXXXXX";
        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
,

Alıntı.

Ahmet 24 Kasım 2015 00:55

Cevap: Ubuntu sistemleri için QwebIRC kurulumu.
 
birde centos olsa :))


All times are GMT +3. The time now is 15:30.

Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.