Last updated: 03/18/2024 ------------------------ --- Run these commands as root unless otherwise specified... # Install Ubuntu as in my steps # Install dotnet: apt update apt-get install -y apt-utils libgdiplus libc6-dev wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb apt update apt install -y dotnet-sdk-6.0 ### Create the "osowner" account adduser osowner cd /home/osowner cpan -i UI::Dialog cpan -i Term::ANSIScreen chown -R osowner:osowner /home/osowner declare repo_version=$(if command -v lsb_release &> /dev/null; then lsb_release -r -s; else grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"'; fi) wget https://packages.microsoft.com/config/ubuntu/$repo_version/packages-microsoft-prod.deb -O packages-microsoft-prod.deb dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb apt update apt upgrade apt install aspnetcore-runtime-8.0 apt install dotnet-sdk-8.0 su - osowner --- Run as osowner: wget https://opensimcity.gameplayer.club/LatestOSgrid.zip wget https://opensimcity.gameplayer.club/LatestOpensimUtilities.zip wget https://opensimcity.gameplayer.club/LatestDotnet.tar.gz wget https://opensimcity.gameplayer.club/haxor_outpost78.oar mkdir -p $HOME/dotnet && tar zxf LatestDotnet.tar.gz -C $HOME/dotnet rm LatestDotnet.tar.gz # Add paths to ~/.bashrc: vi ~/.bashrc export PATH=/home/osowner/bin:/home/osowner/OpensimManagementConsole:/home/osowner/dotnet:$PATH export DOTNET_ROOT=/home/osowner/dotnet mkdir opensim cd opensim unzip ../LatestOSgrid.zip cd .. unzip LatestOpensimUtilities.zip rm LatestOSgrid.zip LatestOpensimUtilities.zip mkdir bin chmod a+x ~/opensim/bin/opensim.sh Get the coords free at https://quickmap.osgrid.org/ Edit crontab and add these lines: crontab -e @reboot /home/osowner/bin/opensim start 1 1 * * * /home/osowner/OpensimBackup/opensimbackup.pl cp ~/OpensimStartup/opensim ~/bin cp ~/OpensimStartup/startopensim ~/opensim cd ~/opensim/bin/Regions cp Regions.ini.example Regions.ini # Edit Regions.ini for these settings: [Default Region] - change to your region name Location = #####,##### SizeX = ### SizeY = ### MaxPrims = 90000 MaxPrimsPerUser = -1 # Create the mysql database mysql -p create database opensim; use opensim; CREATE USER 'opensim'@'localhost' IDENTIFIED BY 'h0tgrits'; GRANT ALL PRIVILEGES ON * . * TO 'opensim'@'localhost'; quit; # Comment out the RegionUUID line cd .. ./opensim.sh # Copy the UUID string vi Regions/Regions.ini # Uncomment the UUID line and paste the UUID from previous step vi config-include/GridCommon.ini # comment out the SQLite entry: ;Include-Storage = "config-include/storage/SQLiteStandalone.ini"; # and switch to: StorageProvider = "OpenSim.Data.MySQL.dll" ConnectionString = "Data Source=localhost;Database=opensim;User ID=opensim;Password=h0tgrits;" # Create the mysql database mysql -p create database opensim; use opensim; CREATE USER 'opensim'@'localhost' IDENTIFIED BY 'h0tgrits'; GRANT ALL PRIVILEGES ON * . * TO 'opensim'@'localhost'; quit; # Add paths to ~/.bashrc: vi ~/.bashrc export PATH=/home/osowner/bin:/home/osowner/OpensimManagementConsole:/home/osowner/dotnet:$PATH export DOTNET_ROOT=/home/osowner/dotnet source ~/.bashrc # Comment out the RegionUUID line cd ~/opensim/bin vi Regions/Regions.ini ./opensim.sh # Copy the UUID string vi Regions/Regions.ini # Uncomment the UUID line and paste the UUID from previous step