Advertisement
Guest User

Untitled

a guest
Mar 14th, 2016
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. All of these instructions are for ubuntu (14.10). I use the oracle virtual box stuff and run a virtual linux box at home for testing/development. This allows me to match production.
  2.  
  3. here is my standard set of packages
  4.  
  5. sudo apt-get install python-dev libpng-dev zlib1g-dev libssl-dev libx11-dev libgl1-mesa-dev libxrandr-dev libxxf86dga-dev libxcursor-dev bison flex libfreetype6-dev libvorbis-dev libjpeg-dev libeigen3-dev libopenal-dev libode-dev libbullet-dev nvidia-cg-toolkit libboost1.55-all-dev python-pip python-pmw libyaml-cpp-dev cmake python-mysqldb python-mysql.connector
  6.  
  7. then,
  8.  
  9. sudo pip install passlib py-bcrypt semidbm PyMongo
  10.  
  11. next panda:
  12.  
  13. cd repos (wherever your stuff lives)
  14. git clone https://github.com/astron/panda3d
  15. cd panda3d
  16. python2.7 makepanda/makepanda.py --everything --installer --no-egl --no-gles --no-gles2
  17. sudo dpkg -i panda3d1.9_1.9.0_amd64.deb
  18.  
  19. next astron:
  20.  
  21. cd ..
  22. git clone https://github.com/astron/astron
  23. cd astron
  24.  
  25. If you want to use the version of mongo we are currently using on TTF, you
  26. need to go to a specific git revisiton. (We have not tested with newer versions
  27. yet. If you find a newer configuration that works for you, please update
  28. this document.)
  29.  
  30. git checkout a8949abe
  31.  
  32. Then retrieve the mongo-cxx-driver-v2.4 drivers, place them some handy,
  33. and put a symbol link to them in the Astron/src directory. You can find them
  34. at https://www.mongodb.org/dl/linux/x86_64. These are all old drivers so
  35. please feel free to experiment with newer ones and then update this document.
  36.  
  37. cd src
  38. ln -s /home/enigmeow/mongo-cxx-driver-v2.4/src/mongo
  39. cd ..
  40.  
  41. next we build it
  42.  
  43. cmake -DCMAKE_BUILD_TYPE=Release . && make
  44. cp astrond ../src/astron
  45.  
  46. next, the database
  47.  
  48. apt-get install mysql-server
  49.  
  50. pick some useful and random password for root
  51.  
  52. apt-get install apache2
  53.  
  54. then install phpmyadmin.. This has the effect of pulling in all the php dependencies required for mysql
  55.  
  56. apt-get install phpmyadmin
  57.  
  58. Make sure to tell this to use apache..
  59.  
  60. Now, we can go into mysql
  61.  
  62. % mysql -u root -p (enter the root password)
  63. mysql> CREATE DATABASE toontown
  64. mysql> GRANT ALL PRIVILEGES ON toontown.* TO 'toontown'@'localhost' IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
  65. quit
  66. % mysql -u toontown -p toontown < schema.sql
  67.  
  68. now we need to make ourselves our first account.. I created a cmd.php to help. You MUST supply all the arguments. If somebody wants to improve this.. PLEASE DO!
  69.  
  70. % php cmd.php u=toontown p=some_pass db=toontown username=test1 password=test email=bahh@gmail.com level=700
  71. % php cmd.php u=toontown p=some_pass db=toontown username=test2 password=test email=bahh@gmail.com level=100
  72. % mysql -u toontown -p toontown
  73. Enter password:
  74. mysql> select * from Accounts;
  75.  
  76. edit ../config/release/dev.prc
  77.  
  78. @@ -7,10 +7,13 @@ model-path ../resources
  79. # Server:
  80. server-version fellowship-dev
  81. min-access-level 600
  82. -accountdb-type developer
  83. shard-low-pop 50
  84. shard-mid-pop 100
  85.  
  86. +accountdb-type mysqldb
  87. +mysql-login toontown
  88. +mysql-password some_pass
  89.  
  90. and bring up toontown!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement