Start script
Jump to navigation
Jump to search
This article is incomplete. Please help improve the article, or discuss the issue on the talk page. |
This page is intended to host various start scripts to set up environments to smoothly run FlightGear on various systems, eg. to set the graphics driver straight or run various helper programs, like terrasync or Atlas. Everybody is invited to contribute theirs. Update: Please sign yours, so anyone knows whom to turn to for help
Bash scripts
Simple start script to set up nice, comfortable surroundings for flightgear with an nvidia card. Will run Atlas and terrasync for you. Paths may need to be set of course --Raazeer 19:11, 8 June 2009 (EDT)
#!/bin/bash nvidia-settings -a FSAAAppControlled=1 nvidia-settings -a FSAAAppControlled=0 nvidia-settings -a FSAA=10 case "$1" in stop) echo killing terrasync... killall terrasync echo killing atlas... killall Atlas echo FGFS environment shut down. ;; start) terrasync -p 5400 -S -d /usr/local/share/FlightGear/data/Scenery/ 2>&1 >/dev/null& echo Terrasync ready at port 5400... Atlas --fg-root=/usr/local/share/FlightGear/data/ --udp=5500 --autocenter-mode --path=/usr/local/share/FlightGear/data/Atlas --size=1024 --lowres-size=256 --fg-scenery=/usr/local/share/FlightGear/data/Scenery/ 2>&1 >/dev/null& echo Atlas ready at port 5500... echo Ready to run Flightgear ;; restart) echo killing terrasync... killall terrasync echo killing atlas... killall Atlas echo restarting terrasync... terrasync -p 5400 -S -d /usr/local/share/FlightGear/data/Scenery/ 2>&1 >/dev/null& echo Terrasync ready at port 5400... echo restarting Atlas... Atlas --fg-root=/usr/local/share/FlightGear/data/ --udp=5500 --autocenter-mode --path=/usr/local/share/FlightGear/data/Atlas --size=1024 --lowres-size=256 --fg-scenery=/usr/local/s hare/FlightGear/data/Scenery/ 2>&1 >/dev/null& ;; *) echo Bash script to set up a usable environment to run Flightgear. echo Sets anti-aliasing settings right for nvidia cards. echo sets up terrasync, Atlas and FGGC for you. echo echo "Usage: fgprep {start|stop|restart}" ;; esac exit 0