It is required especially on a system with limited memory. I am setting up a 4GB swap, which may be overkill but it’s the most common swap sized used in most guides so ill keep it at that.
start mining the Monero on vps with minergate pool:
Step 1: Create a VPS (Virtual private server) to actually perform the mining.
Here you can really choose any service that can run the Ubuntu operating but for simplicity sake we’re going to setup a server with Digital Ocean. From my experience they’re quite cheap and very easy to use. Also, signup with this link and you get $10 free.
Please note, you’re more than welcome to use any hosting service for this that supports Ubuntu 14. I’m just using digital ocean in the tutorial. Again, if you manage to come across free hosting credits, then by all means use that. If your costs are zero, then everything mined is pure profit.
Once you’ve got your Digital Ocean account sorted, we’re going to click ‘Create Droplet’.
For the image distribution, choose Ubuntu 14.04.5 x64 (Or what ever version of Ubuntu 14 is currently on offer). Get this OS correct is pretty important for the up coming steps to work.
Now choose a size. This is up to you but I use the $20/mo server as it as 2 CPUs and seems to give me the best results for money spent. If you prefer you can of course go cheaper or more expensive. The mining works on all sizes but just varies in effectiveness. Even the $5/mo works, but of course mines a slower.
Do not add any block storage, that’ll be of no use and will just waste money.
Choose a datacenter region. This makes no difference, just pick your favorite country.
You won’t need any additional options.
Click ‘Create’ and wait for your droplet to be created.
Now you’ve got your server running in the cloud, we’re almost set to start mining.
Step 2: Access your VPS
With your droplet (VPS) created we now need to access it.
This step varies depending on whether you’re on a MAC, Linux or Windows machine. One way to quickly access your VPS from any machine is through Digital Ocean’s ‘Access console’ which uses a browser window. But for some reason this doesn’t allow the basic copy/paste function which is really going to be needed later as the commands to run get pretty long. It’s up to you but I don’t suggest that route.
For Mac and Linux users
Open up the ‘Terminal’ app. That’s it.
For Windows users
Sorry but this is slightly more effort. You’re going to need to install something called Putty which is needed to access your Ubuntu VPS from your windows machine. Remember, you can always use the browser access console I mentioned above, but that includes a lot of typing out of random strings of characters into the console.
Digital Ocean’s Access Console (No copy/paste feature)
You should have received an email with the access details for your new droplet. We’re going to need those details here. Once you’re in your terminal/console type the following command. Please replace the IP address with the one you received in the mail of course.
ssh root@123.456.789.10
This might ask if you’re sure you want to continue. Just type ‘yes’ here.
It will then prompt you for the password you got in the email. You need to type out that password EXACTLY as it is in the email. You won’t see what you’re typing, this is just a security measure so don’t worry.
You will then be required to change the current password. Which is good because that one was a pain to type out. Here you’ll need to confirm the current password one more time and then create one that you choose and is hopefully quicker to type out.
Step 3: Setup your VPS for a mining operation
You’re going to have to run (copy/paste) a few commands to install the requirements in order to start the mining. You can simply copy and paste these into the console line by line.
Now the server is setup, installed and ready to start mining.
Step 4: Start mining
Mining cryptocurrencies takes an enormous amount of processing power, the kind that’s very hard for an individual to create on his/her own. So we have mining pools. These are groups of people that join forces (processing power) to mine a cryptocurrency.
Signing up to a mining pool, such as MinerGate is really the only way to get into the game. They also have simple to install mining software that can be run on your local machine. You can run this in parallel with as many mining servers as you wish to speed up the process.
After registering with MinerGate, all you need is your email address you used on signup to insert it into the following command before running this command on your server. This tells the pool which account to assign the coins to. Simple copy and paste the following one lined command into your VPS terminal.
screen -S miner ./minerd -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45560 -u EMAIL_ADDRESS -p x -t1
Now your Monero miner should be running in a ‘screen’, meaning the process will continue to run on the server after your console has been closed. Google ‘linux screen’ for more info on how that works if you’re not familiar with it.
After that, the console should have output similar to this:
Step 5: Congratulate yourself
Hopefully if you followed all the steps at this point you are successfully mining the Monero cryptocurrency!
Some things to take note of
The “-t 1” at the end of the command is to specify the number of threads you wish to run on the server. If your server has just one CPU, then leave as is. Else, if your server has multiple CPUs then replace the “1” with as many CPUs as there are to optimize the speed of the mining operation.
Digital Ocean might kill your processes because of the high CPU usage. This will stop your mining process in which case you’ll have to restart it by running this command again:
screen -S miner ./minerd -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45560 -u EMAIL_ADDRESS -p x -t1
If the constant pain of having to access your VPS to restart the script is getting to you, try adding a cron job (Linux automation feature) to restart the mining process every time the server is rebooted instead of using a screen. Start by editing the crontab with the below command:
crontab -e
To the bottom of the file you’re now editing, add the following one lined commands:
@reboot cd ~/cpuminer-multi/ && sudo ./minerd -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45560 -u EMAIL_ADDRESS -p x -t 1
Remember to always keep a blank line at the end of this file before saving.
This command will execute every time the VPS is rebooted. What this command does is navigate to the correct directory and start the mining operation. Remember again to place your email address you used to sign up to MinerGate with into the command.
How to create HTML files: You only need to know a few HTML commands (tags) to create files to "put up" on the Web. It's nice to know that these files can be created with Microsoft Word® or any other word processing program for that matter. The only catch is that you must save them as text files and give them an HTML (or HTM for PC computers) extension (i.e., abcd.html or abcd.htm). The .html or .htm extension tells your web browser that these are documents created for the Web.
Necessary HTML Tags (note that upper-case/lower-case is not important) The "guts" of every HTML file must look like this: <html> <head> <title>Document's name which appears in the heading, not on the page</title> </head> <body>Type in the information you want to appear on the page here </body> </html> Within the <body> tag (command), you may use other HTML tags to add images and/or sounds, link your page to other pages (URLs) on the Web, highlight your text by bolding or italicizing it, or change font size. Note that all tags must be invoked by typing the tag between two brackets (i.e., <body>). Type the tag in brackets again with a slash in front of if (i.e., </body>) to negate the effect.
Basic HTML commands (to use within the <body> of the file):
<p>write your text here</p> Creates paragraphs (one space between lines is created) <i>write your text here</i> Italicizes text between commands <b>write your text here</b> Bolds text between commands <blockquote>text you type in </blockquote> Puts text you're quoting into web document--text will be indented <pre>write your text here</pre> Retains format/indentation of text entered <strong>write your text here</strong> Also bolds text between tags <center>write your text here</center> Centers text between commands <blink>write your text here</blink> Text between commands flashes <font size=7>text</font> Changes size of text--7 is biggest font available and 1 is the smallest (single-spaced) <h1>
write your text here
</h1> Text appears in biggest font available (double-spaced) <h6>
write your text here
</h6> Text appears in smallest font available There are <h2> through <h5> tags available for font sizes between <h1> and <h6>--experiment with the sizes that work best for you. <body bgcolor="#FFFFFF"> To create background colors/patterns There are web sites where you can find the code (e.g., #FF0000=red) for background/text colors: Backgrounds <body background="small.gif"> There are many web sites with background images (e.g., "small.gif") free for the taking.
<body text="#FF0000"> This will change the color of all text in the document to red <font color="#FF00FF"> This will change the color of what you type here to magenta</font>
Creating Lists
UNORDERED LIST <ul> <li>This is the tag for creating an unordered list <li>Each thing you type after the <li> tag will appear next to a bullet on the web page <li>This text will appear next to the third bullet--bullets are indented </ul> ORDERED LIST <ol> <li>This is the tag for creating an ordered list <li>Each thing you type after the <li> tag will appear next to a number on the web page <li>This text will appear next to the number "3" on the web page </ol> DESCRIPTIVE LIST (useful for creating bibliographies, for instance) <dl> <dt>Tag for creating the first title of your descriptive list <dd>This is the first item under the first title of the list--it will be indented <dd>Another item in the list under the same title--it will also be indented <dt>This is the second title in your descriptive list <dd>This is the first indented item under the second title in your descriptive list </dl> Note that you may "nest" lists -- i.e., create an unordered list within an ordered list, etc.
Creating Tables You may find it useful to include tables on your web page. Below are a few very basic tags for creating tables. <table border>This is the tag for creating a table <tr>This is the tag for a table row <td>This is the tag for a cell (box) within a row</td> <td>You may want to have two or more cells in each table row.</td></tr> <tr>This is the tag for the second table row <td>This is the tag for the first cell (box) in the second row</td> <td>This is the second cell (box) in the second row</td> </tr> </table> Other HTML tags can be used within each cell to format your text. At some point you might want to have more control over the border or spacing of your tables. See one of the numerous tutorials on the Web. Do a search and enter the key words "HTML tutorial." <hr> Puts a "shadow" line on the web page <br>Type at end of a line to initiate line break (i.e., this is like a carriage return) Note that there are no "end" tags (i.e., no </hr> or </br>) with these tags. Creating Links <a href="http://www.sakhihosting.com">Sakhi Hosting homepage</a> Type a URL or file to which you wish to link between the quotes! In this example "Google Homepage" will appear in blue or in another color on the web page, thus signifying that there is a hypermedia link here! Example: <a href="http://sakhihosting.com/linux-dedicated-hosting/">Dedicated Server</a> The text which will appear in blue on the web page is: "Dedicated Server" If you click on it, you will automatically be sent to Dedicated server page To create a link to an E-mail address: <a href="mailto: heena@gmail.com">Heena</a> (If you click on Heena, an E-mail form pops up) IMAGES
<img src="MHCSeal.gif"> Typing the tag above will put an image called "MHCSeal.gif" on your web page. You have either created the image yourself or copied it from a page on the Web (more on this below). By the way: GIF stands for "Graphics Interchange Format" and JPEG stands for "Joint Photography Exchange Group." You can copy images you see on other web pages by placing the mouse on the image and pressing down. A box with various options, one of which is saving the image, will pop up on the screen. Save it as a file and you can then incorporate it (the image) into your own HTML file! There are also many icon/image sites on the Web.
If you are unable to find an image here (including animated gifs!), then you should do a search on the Web to access countless additional sites where nice people have collected images for you to use on your web pages! Be sure to give the necessary credit to the person who created the image (this is certainly the polite thing to do--> netiquette!). By the way: you may also view other people's HTML code by accessing "document source" under "view" on the browser menu You can then highlight, copy, and paste code into your own HTML file so that your page will do the same neat things that someone else's does. To center an image on your web page (without accompanying text): <center><img src="mhc.gif"></center> If you wish to align text with images or graphics on your web page (see above example with MHC image!), there are several tags you may use: <font size=2>Your text goes here</font><img src="MHCSeal.gif" align=right> You can substitute top, bottom, left or middle for right, and your text and image will be displayed accordingly. Note that some of your text may be displaced depending on the size of the font or image you have chosen.
Foreign Characters You'll need to type in a special HTML code to generate German characters. For instance, if you want können to appear on the web page, you have to type the word (within an HTML file) like this--> können The character set codes for German are: Ä = Ä (ORÄ) ä = ä (OR ä) Ö = Ö (OR Ö) ö = ö (OR ö) Ü = Ü (OR Ü) ü = ü (OR ü) ß = ß (OR ß)
As mentioned before, after you've generated your HTML file, save it as a text only file and give it a name like "about.html" (if you're using a Macintosh) or "aatg.htm" (if you're using a PC). DON'T FORGET THE HTML or HTM EXTENSION! Now you're ready to put your file(s) on the Web!!! There are different protocols for doing this. Check with your Internet service provider or with the technology specialist at your school.
The HTML tags I've described here are REALLY the most basic and important ones you need to know right now. Anything more fancy you need to do can probably be done in HTML.