Uploading - Workinq/Alt-Logging GitHub Wiki

Firstly let's create a folder to place the script inside of, this will make it easier to find and edit all of the files that both you and the script will be creating. To create a new folder, use the following command: mkdir alts. You can call this folder whatever you want, throughout the wiki I'm going to be calling it alts.

After downloading the script you will need to upload it to the machine you will be using it on. If you are going to use it on your current computer then you can skip ahead.

To upload the script you can use two methods, the first one would be to upload it using an FTP application such as FileZilla (or any other FTP application that you choose to use). Once you've logged into your server via FTP you can place the script inside of the folder you created earlier.

The second method would be to create it on your machine by using an SSH client. To do this you should do the following:

  1. Create a folder called alts using the following command: mkdir alts (you can choose whatever folder name you like, in this case it will be called alts).
  2. Navigate to the folder using the following command: cd alts.
  3. Execute the following command to create a new, empty file: nano launch.sh.

Now that you're inside Linux's GNU nano text editor, you can paste in the contents of the script which you can find by opening the launch.sh file with a text editor. Once you're finished pasting the contents of the script you can save and exit by entering the following key combinations:

  1. Control + X - This command is used to exit the text editor.
  2. Y - You will be prompted with a message asking if you want to save the file.
  3. Enter - You will then need to enter the filename to save it as, since you already specified one when opening the text editor, it's already there for you so you don't need to make any changes.

Congrats! You've finished creating/uploading the script to your server. Head over to the installation page where you will learn how to add all necessary permissions to the script and also learn how to use it.