oh hai thar
New Member
- Joined
- Apr 24, 2011
- Messages
- 56
- Reaction score
- 3
Hello dear friends,
This is a simple tutorial how to install Linux (Ubuntu, Debian, or anything) inside of Windows,
and get an OTSERV running, and get a website and DATABASE (the database used in nerd-way, not phpmyadmin, the >easy< database)
Whenever you hear "apt-get" or anything sounding like a command; without explanation-
Use the Terminal program inside Ubuntu (Like DOS In Windows).
The reason of using Linux could be:
- You dont want SQL Injection viruses
- You dont want any virus or keylogger
- You dont want DDOS (This is usual, they cause immense lag, and eventually might shutdown your internet; or even freeze your computer)
Note: You're only protected from DDOS when installing an firewall (SH script, that you run with sh -scriptname-.sh). Find on google.
1. Go to https://www.virtualbox.org/wiki/Downloads
2. Select VirtualBox 4.2.6 for Windows hosts x86/amd64 <--- means, any processor (32/64bit)
3. Install VirtualBox, you might need to restart computer when it's done.
4. Download Ubuntu
You can download the latest Ubuntu (12.10) here:
Download Ubuntu Desktop | Ubuntu
5. Start VirtalBox,
and press New,
press Next,
write name: Ubuntu,
select operative system: Linux,
next, select your memory for VirtualBox OS (I recommend to not use all of memory; half of it or some more is ok)
next, select create new hard disk and press OK
VDI and next
Fixed size and next
Select size of virtual hard drive (this size will be taken from your main hard drive)
Press Create
6. Now select Ubuntu, and press START.
7. Now it will ask for ISO file (it did for me), so select your previously downloaded Ubuntu 12.10.
8. Ubuntu Boots up
9. Press Install Ubuntu
10. Install Ubuntu (and do what it says you to do)
11. When its installed, it should restart, remember ISO should be turned off at this point, if it isnt off when restart,
right click on the CD and deselect the ISO.
(If it starts with ISO again, and gets you to the install place, just click X and shutdown computer, and go to Ubuntu Settings, Storage, and remove ISO from there)
12. Now you are on UBUNTU. If it lags, I recommend strongly to install graphics drivers,
There is several ways, apt-get install nvidia-current if you have nvidia card;
or if you have AMD: apt-get install aptitude, then aptitude search amdcccle, and apt-get install (the name of amdcccle in the list), flgrx or something..
alternatively, go to their website and find your drivers, but you have to know your graphics card.
13. Download and yes, now comes the hard part.. Compile!! If you want to run in Linux, you need 1. Run the program after compiling it, with ./theforgottenserver or whatever name it has, or 2. Run the Windows .exe file in Wine, Wine is a program to run Windows software.
14. To compile, follow my dear fellow cool friend Xleniz's tutorial: http://otland.net/f479/compiling-ubuntu-12-04-precise-64bit-170202/
or alternatively, apt-get install wine, and install wine on 200~mb - though, I believe there is more crashes; bugs, and problems with exe -> and run it
15. Remember, you might need mysql and apache2 (website)
To install website, apt-get install apache2
Now your website folder is /var/www
There might be permission problems in future, (/var/www is an admin folder),
so if you want to move website to /var/www (Gesior or maybe ModernAAC), run terminal,
and go to your downloaded website folder (to go somewhere, do the command: cd /home/USERNAME/ and then wherever your website is)
and then write sudo su to login on admin (you wont see password), and mv * /var/www -R
To install mysql (DATABASE), apt-get install mysql-server
Remember, you need to set MYSQL password, make a hard one but dont forget it.
16. Now, write in terminal mysql -u root -p
And write password (as previously, it wont show)
when you're in, do the command: create database <YourNewDatabaseNameForOTServ>;
then write exit;
and then, import the SQL schema, which is the core of the database (.sql file, inside OTSERV folder)
with command: mysql -u root -p theDatabaseName < WriteYourPathToSQLFile.sql
--If you later install Website, remember to write your databasename of mysql
-----------------PORT FORWARDING VIRTUALBOX------------------
Congratulations, for getting this far!-
Now you need to Port Forward.
First you need to open terminal,
then write ifconfig /all
and check inet addr: REMEMBER THIS IP
then--> right click on the 2 screens in
VirtualBox and select Network Adapters.
Then, make sure cable is connected, and that Network is NAT (------->NAT means: use the Internet used in Windows)
and press Port Forward. Now, make UDP and TCP rules, with Guest IP: the ip found in ifconfig, and Host IP: the IP found in What Is My IP Address | Shows Your IP Address, in Windows computer). <---- now im tired
Remember to port forward 80 (web site), and 7171 7172 (Tibia).
Now you should be able to watch site with the IP at What Is My IP Address | Shows Your IP Address, if not: FAIL!!
Or I just wrote wrong info-> Im using 4G Modem, you might need to port forward inside your router, or other problemz might be:{
Now just run server, with right IP and the right database in config.lua, im not sure which IP is right, but its either windows IP or the Guest IP (plz no call me stupid, kkkkkkkkkkkk -)
And to change group to Staff, or GM: write in Terminal: mysql -u root -p YourMysqlPassword, then you need----
as mentioned earlier; the nerd way (Sorry if you will see it as hard): UPDATE `players` SET group_id = 6 WHERE name = 'YourPlayerName';
Thanks for watching, I hope you learnt something,
And remember, no credits to me; im Religious -forbidden word here?
And if you need help; Im always here to help.
This is a simple tutorial how to install Linux (Ubuntu, Debian, or anything) inside of Windows,
and get an OTSERV running, and get a website and DATABASE (the database used in nerd-way, not phpmyadmin, the >easy< database)
Whenever you hear "apt-get" or anything sounding like a command; without explanation-
Use the Terminal program inside Ubuntu (Like DOS In Windows).
The reason of using Linux could be:
- You dont want SQL Injection viruses
- You dont want any virus or keylogger
- You dont want DDOS (This is usual, they cause immense lag, and eventually might shutdown your internet; or even freeze your computer)
Note: You're only protected from DDOS when installing an firewall (SH script, that you run with sh -scriptname-.sh). Find on google.
1. Go to https://www.virtualbox.org/wiki/Downloads
2. Select VirtualBox 4.2.6 for Windows hosts x86/amd64 <--- means, any processor (32/64bit)
3. Install VirtualBox, you might need to restart computer when it's done.
4. Download Ubuntu
You can download the latest Ubuntu (12.10) here:
Download Ubuntu Desktop | Ubuntu
5. Start VirtalBox,
and press New,
press Next,
write name: Ubuntu,
select operative system: Linux,
next, select your memory for VirtualBox OS (I recommend to not use all of memory; half of it or some more is ok)
next, select create new hard disk and press OK
VDI and next
Fixed size and next
Select size of virtual hard drive (this size will be taken from your main hard drive)
Press Create
6. Now select Ubuntu, and press START.
7. Now it will ask for ISO file (it did for me), so select your previously downloaded Ubuntu 12.10.
8. Ubuntu Boots up
9. Press Install Ubuntu
10. Install Ubuntu (and do what it says you to do)
11. When its installed, it should restart, remember ISO should be turned off at this point, if it isnt off when restart,
right click on the CD and deselect the ISO.
(If it starts with ISO again, and gets you to the install place, just click X and shutdown computer, and go to Ubuntu Settings, Storage, and remove ISO from there)
12. Now you are on UBUNTU. If it lags, I recommend strongly to install graphics drivers,
There is several ways, apt-get install nvidia-current if you have nvidia card;
or if you have AMD: apt-get install aptitude, then aptitude search amdcccle, and apt-get install (the name of amdcccle in the list), flgrx or something..
alternatively, go to their website and find your drivers, but you have to know your graphics card.
13. Download and yes, now comes the hard part.. Compile!! If you want to run in Linux, you need 1. Run the program after compiling it, with ./theforgottenserver or whatever name it has, or 2. Run the Windows .exe file in Wine, Wine is a program to run Windows software.
14. To compile, follow my dear fellow cool friend Xleniz's tutorial: http://otland.net/f479/compiling-ubuntu-12-04-precise-64bit-170202/
or alternatively, apt-get install wine, and install wine on 200~mb - though, I believe there is more crashes; bugs, and problems with exe -> and run it
15. Remember, you might need mysql and apache2 (website)
To install website, apt-get install apache2
Now your website folder is /var/www
There might be permission problems in future, (/var/www is an admin folder),
so if you want to move website to /var/www (Gesior or maybe ModernAAC), run terminal,
and go to your downloaded website folder (to go somewhere, do the command: cd /home/USERNAME/ and then wherever your website is)
and then write sudo su to login on admin (you wont see password), and mv * /var/www -R
To install mysql (DATABASE), apt-get install mysql-server
Remember, you need to set MYSQL password, make a hard one but dont forget it.
16. Now, write in terminal mysql -u root -p
And write password (as previously, it wont show)
when you're in, do the command: create database <YourNewDatabaseNameForOTServ>;
then write exit;
and then, import the SQL schema, which is the core of the database (.sql file, inside OTSERV folder)
with command: mysql -u root -p theDatabaseName < WriteYourPathToSQLFile.sql
--If you later install Website, remember to write your databasename of mysql
-----------------PORT FORWARDING VIRTUALBOX------------------
Congratulations, for getting this far!-
Now you need to Port Forward.
First you need to open terminal,
then write ifconfig /all
and check inet addr: REMEMBER THIS IP
then--> right click on the 2 screens in
VirtualBox and select Network Adapters.
Then, make sure cable is connected, and that Network is NAT (------->NAT means: use the Internet used in Windows)
and press Port Forward. Now, make UDP and TCP rules, with Guest IP: the ip found in ifconfig, and Host IP: the IP found in What Is My IP Address | Shows Your IP Address, in Windows computer). <---- now im tired
Remember to port forward 80 (web site), and 7171 7172 (Tibia).
Now you should be able to watch site with the IP at What Is My IP Address | Shows Your IP Address, if not: FAIL!!
Or I just wrote wrong info-> Im using 4G Modem, you might need to port forward inside your router, or other problemz might be:{
Now just run server, with right IP and the right database in config.lua, im not sure which IP is right, but its either windows IP or the Guest IP (plz no call me stupid, kkkkkkkkkkkk -)
And to change group to Staff, or GM: write in Terminal: mysql -u root -p YourMysqlPassword, then you need----
as mentioned earlier; the nerd way (Sorry if you will see it as hard): UPDATE `players` SET group_id = 6 WHERE name = 'YourPlayerName';
Thanks for watching, I hope you learnt something,
And remember, no credits to me; im Religious -forbidden word here?
And if you need help; Im always here to help.