Jump to content

Recommended Posts

Posted (edited)

I have not touched a L2J style server in probably 13-14 years, as part of my "re-education" on server stuff I decided to build a installation script, hope some of you find it useful.

NOTE: This script should only be run on a fresh Ubuntu 22/24 install, must be ran as root. I have only tested on 22 so far.

What it does:

- Checks to make sure you are root and are using Ubuntu 22/24
- Creates a system user for running aCis
- Installs java jdk 21, Mariadb, Apache2 + PHP, Adminer, Ant
- Created user and database for gameserver and login server
- Creates user for Adminer
- Adds second layer of security for Adminer (apache2 auth)
- Runs secure_installation on Mariadb
- Makes all .sh files executeable
- Fills in Mariadb database information in database_installer.sh, config/server.properties, config/loginserver.properties
- Runs database_installer.sh
- Fetches aCis repository and builds it (supports public and private repo)
- Moves all needed files into <user>/acis-built
- Enables UFW and opens needed ports: 22, 80, 2106, 7777
- Installs fail2ban and configures protection for sshd (max 3 fails)
- Retrieves geodata from http://anothercrappyinterludeserver.com/files/ and unpacks it in correct place
- Fills in server IP in loginserver.properties

Script is here: https://github.com/Salty-Dragon/aCis-installer-ubuntu

 

Help etc hop on Discord: https://discord.gg/QuZTw8pn3E

 

 

Edited by Drakken
add discord
  • Like 2
Posted

I totally understand the whole installation but why port 80 and apache+php and adminer i think they should be optional and also be asked about opening 3306 or XXXX and listen to *

thanks 

  • Like 1
Posted
15 hours ago, Nightw0lf said:

I totally understand the whole installation but why port 80 and apache+php and adminer i think they should be optional and also be asked about opening 3306 or XXXX and listen to *

thanks 

 

I am planning on making adminer optional which would also make php and apache2 optional, I just haven't had time yet. That script I made for myself and I know that I want adminer 😛

 

"

and also be asked about opening 3306 or XXXX and listen to *

thanks "

 

Could you explain this a bit more? I am not sure I should offer the option to open port 3306 as that is a bad thing unless you know what you are doing, and if you know what you are doing it is a simple thing to open it yourself after.

 

Listen to * is this for login / gameserver or Mariadb?

  • Like 1
Posted

well i mean mariadb listen to *

and the port should be offered since you are already there you probably know how to make a user with rights 😅

 

still i am talking for what i would like, thats why it should be like optional it would be so cool and could be used for other projects and just in case you dont know this you can execute it through terminal from the github in one command so you can update it live and give the users the command only, when you play with unix its just like that:wincup:

bash <(curl -s https://raw.githubusercontent.com/Salty-Dragon/aCis-installer-ubuntu/main/crappy-aCis-installer.sh)
bash <(wget -qO- https://raw.githubusercontent.com/Salty-Dragon/aCis-installer-ubuntu/main/crappy-aCis-installer.sh)

some examples to play with

  • Like 1
Posted
On 6/13/2025 at 1:25 AM, Nightw0lf said:

well i mean mariadb listen to *

and the port should be offered since you are already there you probably know how to make a user with rights 😅

 

still i am talking for what i would like, thats why it should be like optional it would be so cool and could be used for other projects and just in case you dont know this you can execute it through terminal from the github in one command so you can update it live and give the users the command only, when you play with unix its just like that:wincup:

bash <(curl -s https://raw.githubusercontent.com/Salty-Dragon/aCis-installer-ubuntu/main/crappy-aCis-installer.sh)
bash <(wget -qO- https://raw.githubusercontent.com/Salty-Dragon/aCis-installer-ubuntu/main/crappy-aCis-installer.sh)

some examples to play with

 

 

Mariadb is set to bind only to 127.0.0.1 and if netstat for example shows a second column like "listen 0.0.0.0:*" which is kind of confusing but actually represents potential remote addresses which can connect which because of bind to 127.0.0.1 means only 127.0.0.1 can connect. If you disable the firewall and try to connect from outside you will see it is not possible.

 

Thanks for the commands, I do know about these but had not thought about them, thank you 🙂

 

I will probably make some updates to the escipt this week based on yours and others feedback 🍻

  • Like 1
Posted

One thing i want to add  is disabling root login, creating a new user with sudo privileges, setting up SSH key authentication and completely disabling password  logins and also avoid  exposure on port 80 completely. it's much better to manage them directly from your local machine using IP whitelisting on database user or firewall-iptables. This way, only trusted IPs have access. Even better ssh tunnel. Good job though. 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • "I recently purchased the account panel from this developer and wanted to leave a positive review.   The transaction was smooth, and the developer demonstrated exceptional professionalism throughout the process.   What truly sets them apart is their outstanding post-sale support. They are responsive, patient, and genuinely helpful when addressing questions or issues. It's clear they care about their customers' experience beyond just the initial sale.   I am thoroughly satisfied and grateful for the service. This is a trustworthy seller who provides real value through both a quality product and reliable support. 100% recommended."
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • ⚙️ General Changed “No Carrier” title to “Disconnected” to avoid confusion after abnormal DC. On-screen Clan War kill notifications will no longer appear during Sieges, Epics, or Events. Bladedancer or SwordSinger classes can now log in even when Max Clients (2) is reached, you cannot have both at the same time. The max is 3 clients. Duels will now be aborted if a monster aggros players during a duel (retail-like behavior). Players can no longer send party requests to blocked players (retail-like). Fixed Researcher Euclie NPC dialogue HTML error. Changed Clan leave/kick penalty from 12 hours to 3 hours. 🧙 Skills Adjusted Decrease Atk. Spd. & Decrease Speed land rates in Varka & FoG. Fixed augmented weapons not getting cooldown when entering Olympiad. 🎉 Events New Team vs Team map added. New Save the King map added (old TvT map). Mounts disabled during Events. Letter Collector Event enabled Monsters drop letters until Feb. 13th Louie the Cat in Giran until Feb. 16th Inventory slots +10 during event period 📜 Quests Fixed “Possessor of a Precious Soul Part 1” rare stuck issue when exceeding max quest items. Fixed Seven Signs applying Strife buff/debuff every Monday until restart. 🏆 Milestones New milestone: “Defeat 700 Monsters in Varka” 🎁 Rewards: 200 Varka’s Mane + Daily Coin 🌍 NEW EXP Bonus Zones Hot Springs added Varka Silenos added (hidden spots excluded) As always, thank you for your support! L2Elixir keeps evolving, improving, and growing every day 💙   Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs
    • https://sms.pro/ — we are an SMS activation platform  seeking partners  mobile number providers  mobile number owners  owners of GSM modems  SIM card owners We process 1,000,000 activations every day.  寻找合作伙伴  手机号码提供商  手机号码持有者  GSM调制解调器持有者  SIM卡持有者 我们每天处理1,000,000次激活。  Ищем партнеров  Владельцы сим карт  провайдеров  владельцев мобильных номеров  владельцев модемов  Обрабатываем от 1 000 000 активаций в день ⚡️ Fast. Reliable.   https://sms.pro/ Support: https://t.me/alismsorg_bot
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..