Created
October 4, 2023 16:32
-
-
Save soheilsec/2a708e97d27570f680551c1b78ff70f4 to your computer and use it in GitHub Desktop.
IBSng Install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install httpd php postgresql postgresql-server postgresql-python perl iptables-services tar zip unzip wget nano bzip2 install nano lsof net-tools -y | |
nano /etc/selinux/config | |
wget https://managedway.dl.sourceforge.net/project/ibsng/IBSng-A1.24.tar.bz2 | |
tar -xvjf IBSng-A1.24.tar.bz2 -C /usr/local | |
service postgresql initdb | |
service postgresql start | |
nano /var/lib/pgsql/data/pg_hba.conf | |
local IBSng ibs trust | |
su - postgres | |
createdb IBSng | |
createuser ibs | |
createlang plpgsql IBSng | |
exit | |
service postgresql restart | |
/usr/local/IBSng/scripts/setup.py | |
nano /etc/httpd/conf/httpd.conf | |
ServerName 127.0.0.1 | |
<Directory "/usr/local/IBSng/interface/IBSng"> | |
AllowOverride None | |
Options None | |
Require all granted | |
</Directory> | |
nano /usr/local/IBSng/core/lib/IPy.py | |
#coding:utf-8 | |
nano /usr/local/IBSng/core/lib/mschap/des_c.py | |
#coding:utf-8 | |
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT | |
iptables -A INPUT -p udp -m state --state NEW -m tcp --dport 1812 -j ACCEPT | |
iptables -A INPUT -p udp -m state --state NEW -m tcp --dport 1813 -j ACCEPT | |
service iptables save | |
service iptables restart | |
chkconfig httpd on | |
chkconfig postgresql on | |
chkconfig IBSng on | |
nano /usr/local/IBSng/interface/IBSng/inc/error.php | |
$timeArr="IRDT/4.0/DST"; | |
# $timeStr="{$timeArr["tm_year"]}/{$timeArr["tm_mon"]}/{$timeArr["tm_mday"]} {$timeArr["tm_hour"]}:{$timeArr["tm_min"]}"; | |
$phperr=isset($php_errormsg)?$php_errormsg:""; | |
# fwrite($fh,"{$timeStr} {$msg} {$phperr}\n"); | |
return; | |
} | |
nano /usr/local/IBSng/core/server/xmlrpcserver.py | |
from xmlrpclib import Marshaller | |
from decimal import Decimal | |
def dump_decimal(self,value, write): | |
write("<value><double>") | |
write(str(value)) | |
write("</double></value>\n") | |
Marshaller.dispatch[Decimal] = dump_decimal | |
service httpd start | |
service IBSng start | |
service postgresql start | |
برای بک اپ و ریستور | |
su postgres | |
pg_dump IBSng > /var/lib/pgsql/IBSng.sql | |
restore | |
service IBSng stop | |
su postgres | |
dropdb IBSng | |
createdb IBSng | |
exit | |
su postgres | |
psql IBSng < /var/lib/pgsql/IBSng.sql | |
service IBSng start | |
Hi Tesla2550,
with same script you install IBsng you can change password of admin.
after that in web interface of IBsng you can create new admin in system
admins
…On Fri, 13 Dec 2024 at 19:08, Tesla2550 ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
hi
how can i change ibsng username ?
thanks for helping
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/soheilsec/2a708e97d27570f680551c1b78ff70f4#gistcomment-5336812>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4CIZM6NIN7YTQC64XOA4VD2FL5Q7BFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVEYTENJSGY4DOMZWU52HE2LHM5SXFJTDOJSWC5DF>
.
You are receiving this email because you authored the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
thanks
but, I want to change username before installing.
a system user is default username of IBSng as I know , maybe you can change
in the installer file I did not it before 🧐🤷
…On Fri, 13 Dec 2024 at 19:16, Tesla2550 ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
thanks
but, I want to change username before installing.
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/soheilsec/2a708e97d27570f680551c1b78ff70f4#gistcomment-5336855>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4CIZM6XHF6R5IOBKQ5SWHT2FL6ONBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVEYTENJSGY4DOMZWU52HE2LHM5SXFJTDOJSWC5DF>
.
You are receiving this email because you authored the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
ok,thanks for answer
با سلام
من هرکاری میکنم این ارور برطرف نمیشه
ممکنه راهنمایی کنید ؟
Error : user authentication failed - radius timeout
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi
how can i change ibsng username ?
thanks for helping