• Vote in May Mapping Competition to select a winner!
  • There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

SIMPLE ALL IN ONE: From nothing to a fully working dedicated server on Ubuntu

otavioduarte

New Member
Joined
Aug 19, 2015
Messages
5
Best answers
0
Reaction score
0
After upgrading to ubuntu 20.04 it is no longer possible to compile OTserv TFS 0.4 above. The error follows:

Screenshot_6.png
 

leleo

New Member
Joined
May 3, 2020
Messages
11
Best answers
0
Reaction score
0
I spent the entire night trying to migrate my local 8.6 server, running on my Windows machine, to a VPS running Ubuntu.
I am on the verge of going crazy.

I thought this was going to help, but I am getting different errors, either by trying the 1806 config or upgrading and trying the current one. I know it's way too much to ask, but any way you can give more detailed instructions on how to run this?
 

Olddies

Advanced OT User
Joined
Nov 21, 2009
Messages
985
Best answers
8
Reaction score
197
Location
Rep.Dom
After upgrading to ubuntu 20.04 it is no longer possible to compile OTserv TFS 0.4 above. The error follows:

View attachment 45403
Delete -werror from cmake
I spent the entire night trying to migrate my local 8.6 server, running on my Windows machine, to a VPS running Ubuntu.
I am on the verge of going crazy.

I thought this was going to help, but I am getting different errors, either by trying the 1806 config or upgrading and trying the current one. I know it's way too much to ask, but any way you can give more detailed instructions on how to run this?
you need a ubuntu 18.04+ fresh installation and follow the guide it is so easy you dont have to do nothing just copy and paste nothing more.
 

leleo

New Member
Joined
May 3, 2020
Messages
11
Best answers
0
Reaction score
0
Delete -werror from cmake

you need a ubuntu 18.04+ fresh installation and follow the guide it is so easy you dont have to do nothing just copy and paste nothing more.
The command I tried:
Code:
ansible-pull -i localhost, -U https://github.com/DevelopersPL/otshosting-provisioning.git -d /srv/otshosting-provisioning --purge -t default,phpMyAdmin,DevAAC,tfs,tfs-old -C ubuntu1804
The result I got:

Lua:
localhost | FAILED! => {
    "changed": false,
    "cmd": "/usr/bin/git checkout --force ubuntu1804",
    "msg": "Failed to checkout ubuntu1804",
    "rc": 1,
    "stderr": "error: pathspec 'ubuntu1804' did not match any file(s) known to git.\n",
    "stderr_lines": [
        "error: pathspec 'ubuntu1804' did not match any file(s) known to git."
    ],
    "stdout": "",
    "stdout_lines": []
}
Maybe the branch was removed or something?
 
OP
Don Daniello

Don Daniello

/root
Staff member
Administrator
Joined
Apr 11, 2008
Messages
3,562
Best answers
15
Reaction score
1,017
Location
Proland
After upgrading to ubuntu 20.04 it is no longer possible to compile OTserv TFS 0.4 above. The error follows:
I have recently compiled r3884 and it required many many changes to make it compatible with recent versions of libraries. That's the cost of using abandoned software, don't do that.

Maybe the branch was removed or something?
I don't recall that branch ever existing. The branch for 18.04 is currently called v2.
You should use 20.04 though, the v2 branch is not supported by me anymore.
 

otavioduarte

New Member
Joined
Aug 19, 2015
Messages
5
Best answers
0
Reaction score
0
I have recently compiled r3884 and it required many many changes to make it compatible with recent versions of libraries. That's the cost of using abandoned software, don't do that.


I don't recall that branch ever existing. The branch for 18.04 is currently called [inline]v2[/inline].
You should use 20.04 though, the v2 branch is not supported by me anymore.
Would you be able to provide any version compatible with the old TFS?

Example when using ansible for ubuntu 18.04
 
OP
Don Daniello

Don Daniello

/root
Staff member
Administrator
Joined
Apr 11, 2008
Messages
3,562
Best answers
15
Reaction score
1,017
Location
Proland
Would you be able to provide any version compatible with the old TFS?
Uhm, no. You haven't defined what old TFS is. There are very old versions and less old versions. TFS 1.1 is old. There is probably no OS supported currently that would let you compile very old TFS without any fixes.
 

otavioduarte

New Member
Joined
Aug 19, 2015
Messages
5
Best answers
0
Reaction score
0
Uhm, no. You haven't defined what old TFS is. There are very old versions and less old versions. TFS 1.1 is old. There is probably no OS supported currently that would let you compile very old TFS without any fixes.

In fact, I was wondering if it is still possible to use the ansible version of ubuntu 18.04, if this repository still exists
 

otavioduarte

New Member
Joined
Aug 19, 2015
Messages
5
Best answers
0
Reaction score
0
OP
Don Daniello

Don Daniello

/root
Staff member
Administrator
Joined
Apr 11, 2008
Messages
3,562
Best answers
15
Reaction score
1,017
Location
Proland

leleo

New Member
Joined
May 3, 2020
Messages
11
Best answers
0
Reaction score
0
(I think) I managed to install everything properly (after having to install unrar, boost, delete some SQL values that were giving warnings and crying a little bit).

Buuuut, now when I log in as otsmanager, I can't run any commands related to tfs. They all give me a warning related to not being able to connect to bus, no such file/directory. Any ideas?

edit: I logged in using ssh [email protected] + pass: otsmanager.

edit: Plus, serverip returns Device "eth0" does not exist.
 
Last edited:
OP
Don Daniello

Don Daniello

/root
Staff member
Administrator
Joined
Apr 11, 2008
Messages
3,562
Best answers
15
Reaction score
1,017
Location
Proland
Buuuut, now when I log in as otsmanager, I can't run any commands related to tfs. They all give me a warning related to not being able to connect to bus, no such file/directory. Any ideas?

edit: I logged in using ssh [email protected] + pass: otsmanager.
It depends on exactly how you log in and how well the rest of the system behaves. It's not an issue in v3.

edit: Plus, serverip returns Device "eth0" does not exist.
This script only expects eth0 interface, yours is probably differently named.
 

willianbobela

New Member
Joined
Apr 12, 2020
Messages
1
Best answers
0
Reaction score
1
have a problem in etch0:

Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-29-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage


Welcome to OTS Hosting preconfigured server!

If you are a spigu.net customer, you can obtain premium help at https://spigu.net
Community support available at https://otland.net/forums/support.16/

0 updates can be installed immediately.
0 of these updates are security updates.

Your Hardware Enablement Stack (HWE) is supported until April 2025.
Last login: Sat May 16 15:29:44 PDT 2020 on pts/2
=================== MySQL ===================
Device "eth0" does not exist.
phpMyAdmin: https:///pma3380
Username: otsmanager
Password: aYA8VPDqJO2S01Ta4HTBNs9X
You can execute mysql commands without a password.
Total size and location of MySQL backups: 4.0K /var/lib/automysqlbackup/
Put your website files in /home/otsmanager/www/public_html

=================== TFS commands ===================
If you run TFS with the following commands, it will auto restart.
Enable auto-start on boot: sudo systemctl enable tfs
Disable auto-start on boot: sudo systemctl disable tfs
Start TFS: sudo systemctl start tfs
Stop TFS: sudo systemctl stop tfs
Restart TFS: sudo systemctl restart tfs
Check status of TFS: sudo systemctl status tfs
Show full TFS log: journalctl -u tfs (q to exit)
Follow TFS console: journalctl -u tfs -f (CTRL+C to stop)

=================== Useful commands ===================
Update TFS to latest master: updatetfs
Show service due date: duedate
Show server IP: serverip
Share a file: transfer path/to/file

date: option requires an argument -- 'd'
Try 'date --help' for more information.
Your service expires on
Current TFS status: [sudo] password for otsmanager:
otsmanager is not in the sudoers file. This incident will be reported.



=================== MySQL ===================
Device "eth0" does not exist.

i use a comand
ifconfig
and there was nothing installed, I installed and restarted the machine, but the error continues.


Use VMWare pro 14
 

aalqaq2

Trying to help, but I'm not too good at it.
Joined
Apr 10, 2017
Messages
94
Best answers
3
Reaction score
4
From your admin account, type:
adduser otsmanager sudo

Then your info should work. @willianbobela
 
Last edited:

sixo

Premium User
Premium User
Joined
Jul 7, 2009
Messages
32
Best answers
0
Reaction score
0
how to compile ots under 8.6 on this engine?
 

leleo

New Member
Joined
May 3, 2020
Messages
11
Best answers
0
Reaction score
0
how to compile ots under 8.6 on this engine?
What I did is compile nekiro's TFS 1.3, then change the tfs executable on the forgottenserver folder. And use a 8.6 datapack
 

Chauring124

New Member
Joined
May 23, 2020
Messages
1
Best answers
0
Reaction score
0
What can i do if i get this warning:
I solved it
Post automatically merged:

How can i delete all the files created by executing the code so i can re-install everything again? I can't login with the username "otsmanager" and password "otsmanager" and i think its because of this error:

TASK [Set MySQL otsmanager password (localhost)] *******************************
[WARNING]🆗 [local Module dihost]
d not set no_log for update_password
 
Last edited:

aalqaq2

Trying to help, but I'm not too good at it.
Joined
Apr 10, 2017
Messages
94
Best answers
3
Reaction score
4
You have to reinstall your OS through your hosting service.
 
Top