Note for Dmitri/David: the Virtualbox/Cosmos instructions just document what you guys already went through. This doesn't require a second VM or anything.
- Download Ubuntu 18.04 ISO
- Create new linux 64-bit VM in Virtualbox
- Set memory to 4096 MB
- Do “minimal installation”
- Accept all other defaults
- Increase VM video memory to max
- sudo apt install gcc perl make
- Devices -> Insert Guest Additions CD Image (to enable bidirectional clipboard)
- Reboot
- sudo apt update
- sudo apt dist-upgrade
- reboot
- sudo apt install git ruby-dev rbenv curl postgresql libpq-dev
- sudo gem install rake bundler ruby-termios
- bash <(\curl -sSL https://raw.githubusercontent.com/BallAerospace/COSMOS/master/vendor/installers/linux_mac/INSTALL_COSMOS.sh)
- Install dependencies using Sudo (s)
- Accept all other defaults
- Once the script finishes running successfully, you’ll see cosmos!
- Quit
- Close terminal
- Open new terminal (should now be using rbenv ruby)
- cd cosmosdemo
- bundle install
- ruby Launcher
- It should launch
- Congrats! You can now run cosmos at will
- Quit Cosmos
- based on: https://cosmosrb.com/docs/dart_install/
- vi config/system/system.txt
- Paste in the following lines:
DECLARE_TARGET DART
LISTEN_HOST DART_STREAM 0.0.0.0 # 127.0.0.1 is more secure if you don't need external connections
LISTEN_HOST DART_DECOM 0.0.0.0 # 127.0.0.1 is more secure if you don't need external connections
CONNECT_HOST DART_STREAM 127.0.0.1
CONNECT_HOST DART_DECOM 127.0.0.1
PORT DART_STREAM 8777
PORT DART_DECOM 8779
PATH DART_DATA ./outputs/dart/data
PATH DART_LOGS ./outputs/dart/logs
- vi Gemfile
- uncomment this line:
instance_eval File.read(File.join(__dir__, 'config/dart/Gemfile'))
- add this to your .bashrc:
export DART_USERNAME='dart'
export DART_PASSWORD='dart'
export DART_TEST_DB='darttest'
export DART_DB='dart'
- close the terminal and open a new one (to get those new environment variables)
- bundle install
- now start on DART install step 6 (except use
sudo -u postgres psql
to connect) - https://cosmosrb.com/docs/dart_install/
- do this extra step 10.5:
- sudo vi /etc/postgresql/10/main/pg_hba.conf
- add this line: in the "PUT YOUR ACTUAL CONFIGURATION HERE" section
local all dart md5
- sudo systemctl restart postgresql