Difference between revisions of "Linux Tutorial- Part: 2"
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | === Doin' Thangs ''(1/2)'' === | |
− | === Doin' Thangs 1/2 === | ||
In this part of the tutorial, I will go over how to add plugins, unzip files, and make directories/files. If you haven't read any of the previous tutorials, I suggest you do so now so you don't end up lost with terms. | In this part of the tutorial, I will go over how to add plugins, unzip files, and make directories/files. If you haven't read any of the previous tutorials, I suggest you do so now so you don't end up lost with terms. | ||
− | Now that that's out of the way, let's introduce adding plugins. Adding and updating plugins is one of the most important parts of managing a server, and it's probably something you will do very, very often. First and foremost, it is very important that you only download plugins from | + | Now that that's out of the way, let's introduce adding plugins. Adding and updating plugins is one of the most important parts of managing a server, and it's probably something you will do very, very often. First and foremost, it is very important that you only download plugins from dev.bukkit.org/bukkit-plugins/, even if it's a developer build hosted on another site. The only force OP “Hacks” out there are caused by leaving the server in offline mode or installing a malicious plugin that a player sent you. Anyways, pick a plugin that you would like to download, '''be sure to check the plugin page and read it thoroughly''', and click the download link at the top right. Now, you should see the changelog for the latest version, and the actual download link. Right click on that link and select '''Copy link URL'''. The next command is relatively simple, and guaranteed to work with all Bukkit download links. run the command <code>wget <downloadlink></code> in the '''plugins''' directory and the plugin will automatically be downloaded. If you are updating plugins, the ‘’’.jar’’’ file should be labeled as '''myplugin.jar.1'''. Now I’ll be introducing yet ''another'' command! Two commands in one paragraph, crazy! Bad jokes aside, you will now be using the multi-purpose <code>mv</code> command. Now, this command has a lot of excellent uses, but it can also really screw up things if you mess up. I’ll be going over the other uses later, but for now, we are using it to rename the file. “But Chakyl, how does moving a plugin update it?” Well little Joey, the answer is rather complicated and I don’t actually know what it really is, so I’ll go over it using an analogy. Let’s say you have a identical twin brother named Johnny. Now, Johnny wants to change his name to Joey, but if he does that nobody will be able to tell you apart. What do we do now? The answer is simple. Because Johnny is the better child, your parents partake in the murder and burial of your body. “Johnny” then proceeds to feign his ''tragic'' death trying to save little children during a hurricane, and nobody ever finds out about your death. This is kinda how Linux runs the <code>mv</code> command. If you name the new file the same as the old one, the old one gets replaced. So going back to the old case, we just downloaded this amazing plugin, and the filename is '''myplugin.jar.1'''. The command to update it would be <code>mv myplugin.jar.1 myplugin.jar</code>(See footnote). See, Linux is super easy, and not scary at all right now! |
+ | |||
+ | And there you have it, now you know how to install and update plugins! | ||
'''Note''': This command will work with almost all file types, but not directories. I’ll be going over that in a later tutorial. | '''Note''': This command will work with almost all file types, but not directories. I’ll be going over that in a later tutorial. |
Latest revision as of 21:56, 6 May 2014
Doin' Thangs (1/2)
In this part of the tutorial, I will go over how to add plugins, unzip files, and make directories/files. If you haven't read any of the previous tutorials, I suggest you do so now so you don't end up lost with terms.
Now that that's out of the way, let's introduce adding plugins. Adding and updating plugins is one of the most important parts of managing a server, and it's probably something you will do very, very often. First and foremost, it is very important that you only download plugins from dev.bukkit.org/bukkit-plugins/, even if it's a developer build hosted on another site. The only force OP “Hacks” out there are caused by leaving the server in offline mode or installing a malicious plugin that a player sent you. Anyways, pick a plugin that you would like to download, be sure to check the plugin page and read it thoroughly, and click the download link at the top right. Now, you should see the changelog for the latest version, and the actual download link. Right click on that link and select Copy link URL. The next command is relatively simple, and guaranteed to work with all Bukkit download links. run the command wget <downloadlink>
in the plugins directory and the plugin will automatically be downloaded. If you are updating plugins, the ‘’’.jar’’’ file should be labeled as myplugin.jar.1. Now I’ll be introducing yet another command! Two commands in one paragraph, crazy! Bad jokes aside, you will now be using the multi-purpose mv
command. Now, this command has a lot of excellent uses, but it can also really screw up things if you mess up. I’ll be going over the other uses later, but for now, we are using it to rename the file. “But Chakyl, how does moving a plugin update it?” Well little Joey, the answer is rather complicated and I don’t actually know what it really is, so I’ll go over it using an analogy. Let’s say you have a identical twin brother named Johnny. Now, Johnny wants to change his name to Joey, but if he does that nobody will be able to tell you apart. What do we do now? The answer is simple. Because Johnny is the better child, your parents partake in the murder and burial of your body. “Johnny” then proceeds to feign his tragic death trying to save little children during a hurricane, and nobody ever finds out about your death. This is kinda how Linux runs the mv
command. If you name the new file the same as the old one, the old one gets replaced. So going back to the old case, we just downloaded this amazing plugin, and the filename is myplugin.jar.1. The command to update it would be mv myplugin.jar.1 myplugin.jar
(See footnote). See, Linux is super easy, and not scary at all right now!
And there you have it, now you know how to install and update plugins!
Note: This command will work with almost all file types, but not directories. I’ll be going over that in a later tutorial.
Command | Explanation |
---|---|
wget <download link> |
|
mv <file that replaces> <file that gets replaced> |
As of now, used to rename files. |
Term | Definition |
---|---|
‘mv' | Move. |
‘wget' | Website get. |
‘cd' | Change directory. |