• 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!

Virtual Box & Ubuntu setup - Portforward (locally only)

Was this helpful?

  • Yes

    Votes: 7 77.8%
  • No

    Votes: 2 22.2%

  • Total voters
    9

592160

Banned User
Joined
Oct 20, 2016
Messages
158
Reaction score
44
Please note I am no expert in linux or virtual box, I am beginner like most of you. I pieced together this step by step through trial and error, if there is something which can be done better please say so thanks.

Download and install the Virtual Box Binaries
https://www.virtualbox.org/wiki/Downloads

We will be using Ubuntu 16.04.1 LTS (Xenial Xerus) for this tutorial.
You need a minimum of 15.04 in order to install a 1.2 server using the setup linked at the bottom of the 2nd post

64 bit
http://releases.ubuntu.com/16.04/ubuntu-16.04.1-desktop-amd64.iso
32 bit
http://releases.ubuntu.com/16.04/ubuntu-16.04.1-desktop-i386.iso

If you need something different you can check out this page and download what you want.
http://releases.ubuntu.com/


Once you have the Ubuntu iso downloaded you are going to launch virtual box. You should see a screen like this below.
6Nd81wg.png




Click on New, a window will popup allowing you to Name the virtual machine, the Type is the target platform and the Version is Operating system version.
jgZlODI.png




Click on the Type drop down and select Linux, Version should automatically update to your systems architecture, on my machine Ubuntu (64 bit) is chosen, it might different on yours.

In the Name box type in the name of your virtual machine. It should look something like this, click Next to continue.
ACrYLJd.png




In this window it shows you how much memory (RAM) you have installed on your computer.
1024 MB is equal to 1 gigabyte of memory. This window allows you to adjust the amount of ram you would like to allocate (assign) to the virtual machine. Set the slider to the amount of memory you think you require for your project. Careful not to add too much as the virtual machine may crash your computer (try to keep away from the red area of the bar). Once you have your memory set click Next.
xyWQQLC.png




Since I don't know too much about these settings just leave everything as is and click Create.
ex8uYnr.png




Same thing here leave everything as is and click Next.
If you know what you are doing then you can mess around with the settings.
d1NUPSD.png




Click Next.
0Bhf97S.png




This window allows us to set the partition (Total size of its virtual hard drive) of the virtual machine.
I've tried installing with the default 8 gigs on 64 bit but it never completed the installation because of low
disk space, so set it to 20.00 GB (which is reasonable) and click Create.
qWS0MdD.png




Once you've done that you should see a similar window like this.
If you look in the settings you will notice I have very little video memory this will lag the hell out Ubuntu if I keep it at 16 MB.
NFY8ihj.png



Go ahead and click on Settings. Here you can choose the amount of video memory to use in the virtual machine as well as enable both 2D & 3D acceleration.
ihzjRFg.png


If you click on System you can choose the amount of processors to use.
Once you are done with the settings click OK.
OY1TnBR.png


Now the settings for your virtual machine should be updated.
YJPdJgD.png


Click on the Start button and a window will pop up similar to this.
To the right of Host Drive 'D:' is a folder icon, click it and navigate the Ubuntu iso you downloaded.

CAWAded.png


Now your window should look similar to this, go ahead and click on Start.
hezVHre.png


Click on the Install Ubuntu button.
JVlU0br.png


Check the box that says Install third-party software for graphics .. then click continue.
ylXG4XM.png


In the next window that pops up just leave everything as is and click the Install Now button.
fqS2rmU.png


If you see a window like this it means everything you've done up to this point is correct.
Click the Continue button.
h2zGpLd.png





**** IMPORTANT ****
If you get errors or the installation tells you that there isn't enough disk space and asks you to go back, DO NOT GO BACK. & DO NOT CLICK CONTINUE Just close out the virtual machine and delete it then start over with more appropriate settings.
 
Last edited:
For the next 2 windows click continue -> continue.

In the window below, type in your name or any name and choose a password and click continue and Ubuntu will start to install.

BbT7vXB.png



If everything went well you should see a screen like this. Go ahead and click Restart Now
TSRJBoM.png



A new window will appear asking you to remove the installation medium.
5nNFyii.png




To remove the installation medium click on the main menu where it says Devices -> Optical Drives -> then click on the Host Drive 'D:', the drive letter might be different on your machine.

q0VHKaH.png


Now you can hit enter and when the virtual machine reboots you will see a login screen.

4cAnUON.png

Type in the password and hit enter.

Click on the top left icon and type in the word terminal, select the icon in the yellow box.
iGBhUuz.png


Which will open a window like this.
s3K9VPM.png


Now go to this thread and setup the server.

Important to note you can not just add in those commands as is which are listed in thread linked below, you need to type sudo before each command.

https://otland.net/threads/ubuntu-dedicated-with-ubuntu-desktop.246667/
Once you are done there come back here and follow the instructions below.

------------------------------------------------------------------------------------------------------


To connect to the server locally from the host OS (your operating system) to Ubuntu (website/game server) so you can play/test it is really really easy.

Below is a general description of the columns and a collage of screen shots which correspond to the instructions 1-5.

You just need to access the
1.) network settings in the right hand bottom corner of the window, leave NAT as is
2.) Advanced
3.)
click Port Forward
4.) Plus Sign button
5.) then put your information in for the ports.


Host ip would be 127.0.0.1 which is your computer's ip address.
Host Port is the port number of the host computer http is port 80
Guest Ip is the ip of the virtual machine, when you launch the website it will tell what the ip is on the virtual machine.
Guest Port is the virtual machines port, both Guest Port and Host Port should be identical.


mM6qOoA.png


If you are using the latest TFS (10.98) and are in need of a client please check out this thread below.
https://otland.net/threads/hex-edited-tibia-10-98-client.246637/
 
Last edited:
Back
Top