#Mr.Rajo~,< Posted January 26, 2016 Share Posted January 26, 2016 السلام عليكم ورحمة الله وبركاته اليوم جايب لكم طريقة تجعل خادمك رسينك راح احط لكم كود السكربت هنا #!/bin/bash if [ -z "$1" ]; then echo 'Usage: rsync-setup [user] [password]' exit fi USER=$1 PASS=$2 useradd -p$PASS -d/home/$USER -m $USER mv /etc/default/rsync /etc/default/rsyncBAK sed 's/RSYNC_ENABLE=false/RSYNC_ENABLE=inetd/g' /etc/default/rsyncBAK > /etc/default/rsync apt-get -y install xinetd { echo 'service rsync' echo '{' echo ' disable = no' echo ' socket_type = stream' echo ' wait = no' echo ' user = root' echo ' server = /usr/bin/rsync' echo ' server_args = --daemon' echo ' log_on_failure += USERID' echo '}' }> /etc/xinetd.d/rsync { echo 'use chroot = yes' echo 'read only = yes' echo '[ogp_game_installer]' echo 'path = /home/'$USER'/games' echo 'comment = RSYNC source of OGP agent game installs' echo 'log file = /home/'$USER'/rsyncd.log' echo 'dont compress = *.pk3' echo 'refuse options = delete' }> /etc/rsyncd.conf { echo $USER':'$PASS }> /etc/rsyncd.secrets chmod 600 /etc/rsyncd.secrets chown -Rf $USER:$USER /home/$USER /etc/init.d/xinetd restart rsync --archive --compress --update --verbose --delete rsync://rsync.opengamepanel.org/ogp_game_installer/ /home/$USER/games rsync --list-only rsync://localhost/ogp_game_installer rsync --archive --compress --update --verbose --delete rsync://opengamepanel.org/ogp_game_installer/ /home/$USER/games طيب اول امر تكبته nano rsync-setup chmod +x rsync-setup sudo ./rsync-setup user password السكربت ليس من صنعي طبعا كل اللي تحتاجه مساحة 10 قيقا 100 قيقا باندوينث شهري وخادمك المخلص بالختام السكربت ليس من صنعي من صنع DieFeM Link to comment
SolideRock Posted January 26, 2016 Share Posted January 26, 2016 اخي ممكن تشرح لي ما هوا ال رسينك ؟؟ ومافائده ؟ Link to comment
#Mr.Rajo~,< Posted January 26, 2016 Author Share Posted January 26, 2016 اخي ممكن تشرح لي ما هوا ال رسينك ؟؟ ومافائده ؟ يحط ملفات الالعاب بخادمك بحيث انك تقدر تحدث السيرفرات منها ادري مافهمت ض شوي اسوي فيديو Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now