PDA

Orijinalini görmek için tıklayınız : Ubuntu sistemleri için QwebIRC kurulumu.


Code
24 Temmuz 2015, 11:36
Merhabalar,

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

apt-get install python-twisted libcap2-binapt-get install mercurial curl patch
apt-get install python-simplejson default-jre-headless
Sonrasında kaynak paketler;

hg clone [Only Registered Users Can See Links]@bitbucket.org/qwebirc/qwebirc
curl [Only Registered Users Can See Links] | patch -p1
* SSL yama istiyorsanız şu adresten edinebilirsiniz.

Devam ediyoruz.

adduser --system --group qwebircadduser qwebirc ssl-certsudo -u qwebirc /bin/bashKurulum şu an tamamlandı. Fakat sonrasında, çeşitli yapılandırmalarda bulunacağız.

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.

--- 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 = "[Only Registered Users Can See Links]"
+REALNAME = "a user on [Only Registered Users Can See Links]"

# 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 = "[Only Registered Users Can See Links]"
+BASE_URL = "[Only Registered Users Can See Links]"

# 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.)

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

auth {
user = "*@xyz.com";
password = "XXXXXXXX";
spoof = "webirc.";
class = "users";
};sonrasında;

loadmodule "src/modules/m_webirc.so";ve /rehashURL yönlendirme için;

apt-get --no-install-recommends install lig[Only Registered Users Can See Links] içinde;

url.redirect = ( "^/.*" => "[Only Registered Users Can See Links]" )
ln -s /etc/lig[Only Registered Users Can See Links] /etc/lig[Only Registered Users Can See Links]
/etc/init.d/lig[Only Registered Users Can See Links] restart./run.py,

Alıntı.

Ahmet
24 Kasım 2015, 00:55
birde centos olsa :))