Rent a server: Difference between revisions
(moved a few sections to the next page) |
m (Adding backlink to the Grid owners index page) |
||
Line 1: | Line 1: | ||
''[[Opensimulator]]: [[OpenSimulator Grid Owners Home|Grid Owners]]: Rent a server'' | |||
==How Big a System do You Need?== | ==How Big a System do You Need?== | ||
There are people who have a formula based on the number of cores and amount of memory. This is based on how many users you expect to visit your grid at once. I think these formula go a little overboard. I have run a 4x4 var region on a Raspberry Pi with 4 cores, 4GB of memory and a 32GB SD card as the disk drive. Probably 32GB memory, 8 processor cores and 200GB of NVMe disk is plenty for a small grid. OpenSim does not use much disk space at the start. The asset database grows without limit, but you can move the assets to another drive or server when disk space runs low. A VPS (Virtual Private Server) is probably OK. For a big serious grid you want a Dedicated Server but those are more expensive. | There are people who have a formula based on the number of cores and amount of memory. This is based on how many users you expect to visit your grid at once. I think these formula go a little overboard. I have run a 4x4 var region on a Raspberry Pi with 4 cores, 4GB of memory and a 32GB SD card as the disk drive. Probably 32GB memory, 8 processor cores and 200GB of NVMe disk is plenty for a small grid. OpenSim does not use much disk space at the start. The asset database grows without limit, but you can move the assets to another drive or server when disk space runs low. A VPS (Virtual Private Server) is probably OK. For a big serious grid you want a Dedicated Server but those are more expensive. |
Latest revision as of 22:57, 27 September 2023
Opensimulator: Grid Owners: Rent a server
How Big a System do You Need?
There are people who have a formula based on the number of cores and amount of memory. This is based on how many users you expect to visit your grid at once. I think these formula go a little overboard. I have run a 4x4 var region on a Raspberry Pi with 4 cores, 4GB of memory and a 32GB SD card as the disk drive. Probably 32GB memory, 8 processor cores and 200GB of NVMe disk is plenty for a small grid. OpenSim does not use much disk space at the start. The asset database grows without limit, but you can move the assets to another drive or server when disk space runs low. A VPS (Virtual Private Server) is probably OK. For a big serious grid you want a Dedicated Server but those are more expensive.
When you order a server you have the choice of operating system. I recommend the most up-to-date version of Ubuntu. As of this writing that is Ubuntu 22.04. The host company will pre-install Ubuntu with LAMP (Linux Apache Mysql Php) (almost) ready to go.
Many tutorials on the WEB about managing a Linux computer fail to mention that instructions are often different for different versions of Ubuntu. For example Mono, the compiler/library used by OpenSim, requires a certification key to install and the key is different for each version of the OS. All my instructions here will assume Ubuntu 22.04. If you have a different version, you will have to search for instructions that match your OS.
When you rent a server, it will come with a private IP address. The cloud sever company will give you a management account for doing things like restarting the server. They will give you a 'root' account AND password to SSH logon to linux on the server. Don't loose that password!
Logging on to Your New Server
Choose an SSH (Secure Shel) app on your PC, like Bitvise, PUTTY, PAC. Given the IP address, root, and root password you can log onto the server. An SSH client is a "Terminal Window" into your server, like a remote DOS box. Bitvise on Windows does both SSH terminals and an SFTP window for file transfers. I have Linux on my home computers, so I'm using PAC to SSH login, FileZilla to do SFTP file transfers. FileZilla has a version for Linux, Mac and even Windows.
Two Ways to Edit Setup Files
Setting up and managing a Linux server involves editing a lot of text files. You can edit them by logging onto an SSH terminal window and learning to use a native text editor. HOWEVER, you will probably find it more convenient to edit files in the window of your SFTP application. You can use your favorite text editor on your PC and the SFTP app does the work behind the scenes of transferring the changes back to the server.
Ignore sudo
When you look for help on the internet, you will often see them insert the word 'sudo ' before every command. This means the command must run as the root user. If you log onto the root account directly, 'sudo' is not necessary. Even 'sudo' only works on accounts that have permission to use it, and I think it is a security risk to give 'sudo' permission to other accounts. So I always log onto root to enter these commands. SSH programs like Bitvise and PAC can remember account and password information for you and make logging on as easy as double-clicking an icon on your screen. Many of the commands in the next few sections of this document are going to assume you are logged on as root.
Installing Apps and Updating a Linux System
On an Ubuntu Linux system there is an app named 'apt' (also named 'apt-get') that makes maintaining your operating system pretty easy. Log onto the root account of your server any time and type:
apt update apt upgrade
The first command goes to the Internet and checks to see if any of your installed programs needs an update, including security updates to the operating system itself. The second line tells 'apt' to go ahead and upgrade anything that needs upgrading. It usually stops and makes you agree to use up the extra disk space. You also use apt to install new programs on your system. For example if you need the source control program 'git' and your server doesn't have it, log in as root and type:
apt install git
And it will now be there! This does most of the work for programs that have complicated setups which require not only executable files but special folders, WEB pages and/or services running in the background.
Continue to the next page: Setting up a Linux System to Run OpenSim