This tutorial will help you set up an OpenVPN instance on an Ubuntu Linux machine (it's written for 14.04 but still works in 16.04 for me). It'll walk you through all of the steps to set up the vpn instance although it assumes you already have some knowledge with a headless Linux server and the command line. Hopefully that helps!
https://www.digitalocean.com/pricing/#droplet $5 a month droplet, you're traffic isn't going to be huge.
Hey presto you are a design agency.
Ok there is some extras you will need. Photoshop get it CC for monthly amount.
Nope. That's Adobe's ExtendScript for things like After Effects and Photoshop with some shell jibberish added in.
Things to note:
Digital Ocean has some great guides to set it up for Ubuntu
We moved to DigitalOcean + Dokku
Our main reason was bad performance, high cost, lack of control and little or no support for new machine learning libraries.
We had several pro paid dynos on heroku, and were also using rabbitmq and postgresql addons. And now we are covering all that with dokku (Thanks to the plugins support) . It took me about 2 days to learn, search and configure but never been any happier. And it's all in docker containers, which are nice and controlable
Be aware that the article shows how to set up OpenVPN Access Server, which is NOT free. It has 2 client licenses for "testing" only (source).
OpenVPN Community Edition is the free version, but it does not have the web GUI seen in the article. You can find a guide for CentOS 7 here, and how to get it working with firewalld here.
[Edit] It mentions in the article, but since so many people have upvoted this, I feel I should mention, it is EXTREMELY important that you make sure you take note of those emergency codes that are generated and keep them somewhere safe. If, for example, your phone is stolen, those emergency tokens are the only thing that will let you back into your system. Please take care to store those somewhere safe.
OpenVPN is what you're looking for. Link is for doing it at Digital Ocean, but it should apply anywhere that offers Ubuntu server (which is any hosting company, really). Some knowledge of Linux command line helps, but really if you're even kinda technical you should be able to get by with copy paste and figure it out.
One thing to note is that this is not a good solution for doing illicit things. Your home ip will not be tracked, no, but your server ip will be. That server is yours and linked to you personally. Great for Netflix, not for torrents.
Never use GoDaddy. For anything. Ever.
Use Digital Ocean. Far cheaper than anything GoDaddy offers, FAR FAR better for any real RoR app or any real web app at all.
GoDaddy has AWFUL ethics, AWFUL security and AWFUL...well everything.
There was the time GoDaddy supported SOPA.
Digital Ocean is $5 a month for a VPS, way better.
If you're feeling generous, here is a referral link.
If you're not feeling generous here is a regular link.
I currently work in NYC in the tech sector and work about 40-45 hours a week and it's been that way for the 2 1/2 years I've been here. A good work/home life balance is important not only for your mental health but also your productivity.
Anyone else putting in massive hours in tech in NYC (or anywhere else, we're 40% remote) should check us out: DigitalOcean Careers
IMO, a better way to do this is by setting up a SSH certificate authority and avoiding authorized_keys files completely. Then when you sign your friends key you could specify an expiration time. The following example would give a friend access to your server for the next 2 weeks:
ssh-keygen -s ca_key -I user_friend -n friend -V +2w id_rsa.friend.pub
His/her login would be valid on all servers using this CA where the unix user "friend" exists and has login permissions. More info.
Given how cucked reddit is I wouldn't be surprised if that wasn't a front for various spy organisations.
e.g. 'Hey guys, try out XYZ VPN, they take no logs and are totally free speech man!'- then full pipe your data straight to the NSA.
Learn how to set up your own VPN's and proxies. It's easy. Example. Chain a few together and you should be able to dodge casual snooping.
If things get properlly bad, you're going to need that kinda info and more.
That said, I hope it's not required.
Here's a good overview. Ignoring Nosql and sqllite, you should be looking at mysql and postgres. The gist of that article is that postgres is better in almost every single way except speed.
Digitalocean had a pretty good article about the history of Apache and Nginx, as well as some considerations to take that helped me when I was starting out. Link
It's a lot easier and enjoyable than you'd imagine. If you're completely new to it, I'd recommend DigitalOcean. They have full tutorials on setting up various stacks and environments.
e.g. LAMP or MEAN
Most hosting sites don't let you execute processes but instead give you access to a folder where you can create files that get parsed and served by an Apache type server. This allows you to easily make a website out of html files which just get served to the browser or php files which get parsed and run generating a static file which gets served to the browser. NodeJS apps run as their own process and need to be executed differently resulting in the need for other hosting sites like nodejitsu.
I highly recommend using Digital Ocean as it not only lets you run nodejs apps but it gives you access to your own virtual private server which is a machine that you can install whatever os you want on. You can then ssh into in and run nodeJS apps as if you were on your own computer. It's also cheaper than most of the other hosting companies I have seen since the starting price is only $5/month. Virtual private servers also teach you more because you learn how to setup your app yourself.
I'm an owner of multiple websites, including one that hosts a 45GB torrent (with a web seed, the files are hosted and downloaded off of our servers). All I can say is that to host a VPK website, it might take a lot of work, but it will take neither web space nor bandwidth, considering you guys all use mega.nz and google drive. This means you can easily use Vultr or DigitalOcean, for example, to host your own website for typically less than $10 a month. There is absolutely no reason why you need either ads or the horribly atrocious adfly links. These will only help your pockets, not to mention degrade the website's performance (how can adding ads to a website increase it's performance???).
Assuming you're already reasonably comfortable on a Bash/sh prompt: The best place? Your own server! If you don't have one and don't want to pay for something with AWS, digital ocean or whatever you can just run virtual machines on your own computer just fine most likely. VMware player is free and makes it easy to get a virtual machine going.
Ubuntu and its derivatives have the most help available online through questions asked to try and work it out yourself. DigitalOcean in particular has some good docs to help you like this one. Outside of Apache+PHP you generally need to setup a module or a second application server to run code. Nginx, for example, is meant to serve your static content like .css and .js very quickly, but defer the work to something like gunicorn to actually interpret and run python to generate the page if you're using Django or something.
If you aren't comfortable on the shell, yet, well you'll want to get that down first.
Glad to be of help, and thank you! If you're interested in setting up SPF records on your current or future domains, there's a fairly in-depth, yet approachable, tutorial at this page. You can set them with virtually any DNS provider, and it can be a good step to take.
I use digital ocean
I think you get $10 credit with my link
Set up the $5 per month Ubuntu LAMP stack.
Install Putty (windows) to connect to your VPS IP address.
sudo apt-get install python-pip
Then you can run Flask if you want
Use WinSCP to manage your files.
An easy way of going about it. Probably won't work on mobile devices though - that's what led me to set up OpenVPN. It really is not that much of a big deal if you follow a decent guide.
edit: So DigitalOcean is now also blocked. Shit.
> It means that you have changed your ssh password since the last time you used ssh on that computer.
... no it doesn't. SSH is an encrypted channel (you might even call it a Secure Shell). As in all SSL/TLS connections there is a handshake to exchange the keys for the communication and establish some small level of trust. This message is telling OP that the public key presented by the SSH server running on the device he is trying to connect to is different from the last public key that was presented from that same IP.
also, this is a really bad solution. You don't want to delete the entire file of known devices. It's better to just remove a single line for the IP of your device. Open the file with vim
> vim ~/.ssh/known_hosts
search for the IP by typing /<IP Address> e.g. /10.0.1.2 (you may need to specify a port here if you use a port other than the default of 22. e.g. /10.0.1.2:2222
delete the entire line by hitting d key twice
exit vim by typing :x.
or you can use another text editor if you don't like vim. edit will open the default editor on your computer. Find the line, delete it, save, and close the file
> edit ~/.ssh/known_hosts
if you do not know this, you'd better be careful SSHing to your device, especially as root. It is very easy to mess stuff up if you don't know what you're doing
Morgan from the MySQL team here! Happy to answer any questions.
I also have an article describing the SQL mode changes here: https://www.digitalocean.com/community/tutorials/how-to-prepare-for-your-mysql-5-7-upgrade
I'm guessing that he means using something like a VPS service (Virtual Private Server) - basically you rent a server from a company that you can access over the internet - and installing a VPN Server to it. This way you control all the logs and can wipe anything once you finish whatever you wanted to use it for.
The exact process for installing and configuring a VPN server isn't something that translates well to an ELI5, though there are many step by step guides available online.
It's not something to be recommended unless you are fairly computer-savvy, at least if you want to trust it to be secure and anonymous.
An example of a guide on how to do so is here for the curious, however.
Depends on how in depth you're wanting to go? DO did a good write up here, but the very basic tl;dr is that networking stack is fantastic on the BSD's, OpenBSD is extremely secure (even comparative to Linux), NetBSD runs on a phenomenally large amount of architectures, more complete documentation, BSD's can execute most Linux binaries (but not the other way around), and BSD's can have noticeably higher performance. Also BSD vs GPL license (former being potentially more attractive). Just a few reasons for why you may pick over Linux. Linux still has much larger support for desktop usage, etc.
Or you could install your own for pretty cheap!
I've not done this yet, but it's on my ToDo list.
DO is absolutely designed for production usage: that's a common misconception. It's just advertised primarily for developers, since it was designed with ease of use and developer friendliness in mind.
There are plenty of larger customers that use the service in production. Check out https://www.digitalocean.com/customers/
I've been a very happy customer of DigitalOcean for more than a year now. Their smallest package is $5 per month.
Their uptime has been sublime. Their support is even better. You should check them out!
You can get an ubuntu 16.04 virtual machine with 512mb ram on digitalocean for $5/month. You can install your openvpn server and use it with as many devices as you want. You can also use that virtual machine for other stuff.
I run an openvpn server, a bombsquad server and a small minecraft server on mine.
You can get free credits for digitalocean if you have an .edu email here. To get an extra $10 credit, you can use my referral link to create your digitalocean account.
>But keep in mind the amount of work that goes into maintenance on your own openvpn server.
I installed my openvpn server two months ago and it needed zero maintenance since then. Works fine on my pc and mobile devices. I can't switch countries like you can with pia but the people monitoring my connection and credit card transactions won't be able to see I'm using vpn.
Word of advice as I just came from this. Drop MySQL cluster. Its expensive and you dont get InnoDB and you have to use the NBDENGINE engine type for the database/tables. Go with Galera and MariaDB/MySQL https://www.digitalocean.com/community/tutorials/how-to-configure-a-galera-cluster-with-mariadb-on-ubuntu-12-04-servers
1. Yes. Separate your commands with && or a semicolon, like so:
command1 arg1 && command2 arg2
command1 arg1 ; command2 arg2
The first one executes command2 only if the first one succeeds, whereas the second one executes both regardless.
2. Look into aliases. Here is a link I found from a quick search.
3. Most shells have tab completion - the common ones, bash and zsh, do. Start to type a file as an argument of a command, start typing a file name, then hit tab. Pressing tab repeatedly will loop through all the files beginning with what you typed.
This has really been covered ad nauseam. I recommend Digital Ocean. $5 per month for a simple "droplet".
There are some really great guides that will help you get up and running over there as well.
MySQL replication is easy-peasy and you can have it up and running in ~30 mins - here's a good simple tutorial how to set it up. (automatic failover is a bit more complicated, but just sprinkle on some HAProxy with xinetd and you're done)
MySQL backups are also easy - use the built-in mysqldump command, it dumps .sql files(text with SQL commands) from tables and databases, and back them up in a way(even basic rsync with versioning might be fine). This generates a bit of read load, understandably, but depending on your workload(writes every 30s doesn't seem very intensive) and hardware it shouldn't be a problem to run it every 15 mins if it tickles your fancy. Another option is Percona xtrabackup, which is a bit more complicated, but faster and more powerful.
Don't forget this is open source software, there's tons of documentation online on basically every topic and everything is easily accessible.
PS: I hope you plan on using MariaDB and not MySQL (in most, if not all, distros the MySQL packages are actually MariaDB)
I can't help you with the iPhone - Windows/Linux integration, since I have never owned an Apple device. On the topic of Linux, there are tons of guides online. Since you're coming from MacOS, I'd suggest you try Elementary OS since it follows a similar design philosophy. Grab the nearest laptop and flash drive, make a LiveUSB and boot from it. It takes no more than 5 minutes just to test Linux in a non-destructible environment(your USB stick).
Here's a couple of guides to get you started:
The Complete Beginner's Guide to Linux
How to create an ElementaryOS LiveUSB
How to install apps on ElementaryOS
If you have questions don't mind sending me a PM or posting on /r/linuxquestions or /r/linux4noobs
That is a good question. We've discussed this quickly here at DO and it should be possible should you need to however you may encounter problems doing so on a 1GB droplet.
This tutorial will help you get a desktop environment up and running on your droplet and accessible via VNC.
This one will assist you in enabling swap (you will want to do this as what you are looking to do will be memory intensive)
From there you should be able to install the Android SDK just as you would on a normal Ubuntu desktop system.
I would recommend going with the 2GB or 4GB droplet in order for this to work well.
Keepass can use a remote database and it has a plugin for smart cards. Sounds like what you are looking for.
While I'm not sure which IP blocks are, well, blocked, if they block popular VPN services, you can try MAKING YOUR OWN VPN.
Thanks to DigitalOcean's droplet system, you can deploy your own private VPN in less than 10 minutes, by following this script:
If you don't have an account, you can use this link to get you started with $10 credit:
(this is a referral link, I will get credit if you sign up with my link and spend $25, but you will also get $10 for free to run the minimum-specs VPS for up to 2 months)
Just click "Create droplet", select Ubuntu 14.04, select the $5/mo plan (the specs are more than enough to run a VPN), then select the area you want (New York, San Francisco, or maybe Toronto...), check the "User Data" option, and copy/paste the contents of this https://github.com/digitalocean/do_user_scripts/blob/master/Ubuntu-14.04/network/open-vpn.yml in there.
Ta-da, 2 minutes later you have your own private VPN. You will have the config files in /root on your new droplet. Just copy them to your OpenVPN client and you're done.
Digitalocean $5pm server. Then stick the free cloudflare service on front to offload resources. And if it's a cms and if you have the capability, stick varnish cache on your digitalocean server. Once cached, it'll use practically nothing and your website will fly.
Here's $10 free credit for you https://www.digitalocean.com/?refcode=fde445247b88
Conversely, you can pay $5 a month for a DigitalOcean box and setup your own OpenVPN server on it and share it with friends and relatives.
Rather than just some commands that y'all might not know what they do, here's an article on some fun/funny Easter eggs! The Star Wars ones are my favorite
These kind of posts really piss me off. Not because it's someone asking for help, but because they don't post ANY information about what they're running.
You didn't even specify what distro, much less kernel versions, 64 vs. 32 bit OS, nothing.
Just "Hey guys, I have a problem."
So you wanted advice? Here's my advice:
Reinstall VNC. Go to google and type in "Installing VNC on CentOS" or "Installing VNC on Ubuntu" or whatever you're running.
Make sure your software is up to date. Run the latest kernel. Run the most recent LAN and video drivers.
And THEN come back here if you're still having trouble and provide the following information:
And here are links to the more popular distro instructions. Follow these:
Hey great site, and I like how it links to the store page. Just found myself a Negev that I would've otherwise never bothered to search for!
About the hosting, where or how are you hosting now? I'm using the $20 plan from https://www.digitalocean.com/ for my TeamFinder site, performance is pretty good and it barely puts the CPU or RAM at more than 4%.
~~There are a couple things I'd like to give feedback on, but am at work at the moment~~. If you need or want any help with the site give me a shout.
EDIT:: Found some time to write a couple things down:
I'm on my Laptop with a resolution of 1366x768 and getting a horizontal scroll. After looking at the code a bit I think it's because you have the header/ background image as a <img>. Maybe try to replace it with a <div> with a background img.
This one is just personal opinion. When I clicked on the image I expected for it to show a larger image, but it brought me to the market page. It was a pleasant surprise, and I'm glad that feature is there, however I might add a link to store and open a lightbox/modal, or popup with a bigger/different image of the skin.
The navigation wraps on my screen so 'Cases' is underneath 'Rifles'. So when you expand the 'dropdown' it moves everything around. So, maybe have it more of a popdown rather than changing the height of the div and revealing the options.
Again, I really like the site and it's a great start!
OpenVPN Access Server might be up your alley. DigitalOcean and Linode both have easy to read articles on how to set it up. It takes all of a couple minutes to set up.
(The steps haven't changed too much since that article was written. I can't get to the Linode one right now, but their article was the one I followed.)
Ah, did some digging and answered my own question. They've got a lot of hidden fees that make small or long-lived containers more expensive than the competition. Sure, their cheapest container is $1.03 monthly, but you also pay for storing images and any persistent volumes. The minimum size for a volume is 10GB, and storage costs $0.10/GB per month. Also, if you want your container to be web accessible, you'll need to assign it a floating IP, which is another $1 per month. That means their REAL minimum monthly cost for a container is closer to $4 plus applicable tax. That nets you a 64MB memory, 10GB disk container.
In contrast, DigitalOcean's smallest droplet costs $5 per month, tax-inclusive. This is a 512MB memory, 20GB disk VPS, meaning you can run as many containers as you want on it. If you plan on using even just TWO small containers all month in hyper.sh, it's more cost-effective to use something like DigitalOcean or AWS EC2/ElasticBeanstalk.
Of course, hosting should be unique to the use case. None of the competition will charge you for just 30 seconds of container time. Hyper.sh's network transfer is free, whereas DigitalOcean/AWS have caps after which they start charging. The CLI is extremely easy to use, which is probably worth something too.
Read this: SQLite vs MySQL vs PostgreSQL: A Comparison Of Relational Database Management Systems. That should get you started.
Its not very hard on DigitalOcean.
Follow this doc and then this one.
I talk a little bit about it in this blog post.
Bonus! There is Let'sEncrypt in there.
Käytä koulun sähköpostia tämän (https://education.github.com/pack) GitHub Education Packin hankkimiseen
Odota viikko pari että se aktivoituu, saat packin jossa on kaiken muun lisäksi 50$-100$ krediittiä DigitalOceanille
Käytä krediitti halvimpaan VPS-droplettiin (5$ per kk, 1Tt liikennettä per kk) jolloin saat 10-20kk ilmaista aikaa
Asenna OpenVPN dropletille. Jos et osaa, opitpahan samalla. Viralliset ohjeet:
You can purchase a domain from GoDaddy.com or Namecheap.com (and I think even Amazon.com now) Namecheap is pretty good.
You'll also need a server to host on. I hope you're familiar with Linux, because that's the easiest way to get a cheap server. Grab a $5/month server from http://digitalocean.com and throw Ubuntu or CentOS on there.
Then you should install a webserver environment, like Ngnix or Apache with the right module to run Python. Python has its own built-in webserver, but it's not really intended to be used in production. You need to install additional daemons and scripts to make sure it's always running as it will crash out if your script has a fatal error. It's usually best to let a dedicated web server like Ngnix or Apache handle that.
From there, I would use a web application framework like Flask for Python to help get you started. Django is another alternative, but that probably has too much technical overhead for you to have to learn just to get a simple site up and running.
In fact, Digital Ocean has a convenient little tutorial on how to get Ngnix, Python, and Flask running on a CentOS server:
That should be a decent place to get you started.
I use these. DigitalOcean is super cheap with an outstanding community. For $5 a month, with endless possibilities, I don't think I could find anywhere else.
I would suggest getting a VPS from Digital Ocean ($5 a month) and running through some of the tutorials on their site. They have some pretty good ones. If you don't understand something, look it up and try to learn everything you're doing.
Set up UFW to block all incoming ports that you don't approve of. Don't allow them access to your desktop. You can also log login attempts and install software that reacts to login attempts, such as Fail2Ban. Make sure public key logins are enabled for SSH, don't use password logins if you don't have to.
Here you have the choice now of either installing an antivirus or trusting your OS (dangerous, but I'd say most of us do this). Hell, most of our phones don't even have an antivirus on them and they're doing fine. You can install ClamAV, but it doesn't remove viruses from infected files, it only moves the infected file to a quarantine folder. Here's a good article on the subject with some different options. If you choose not to install an AV you can always say that you did, although that might eat at your conscience. They can't really check at this point.
Here's some advice that will likely pertain to any server running SSH, and not just CDDA. Typically SSH hardening involves disabling password based logins for administrative accounts and opting for RSA-key based logins instead. Personally, I typically couple that with something like Fail2Ban to mitigate brute force attempts.
Also, are you going to be advertising this somewhere? If you are, you may think about hosting the SSH connection on a non-standard port (something other than 22) that anyone connecting to you would have to specify. That'll cut down on the brute force SSH hacking attempts as well, since they're often done by bots trying port 22.
Here's a pretty good introduction from Digital Ocean to securing a Linux PC, complete with some SSH hardening techniques: Link to said techniques
Doing it on the frontend (as /u/Entrepreneur2015 and /u/Pancakepalpatine suggest) is bad if you ask me; users without JS enabled don't get redirected, users have to download a full HTML page before they're redirected, etc.
Instead, redirect using your web server. If you're running Nginx this is fairly easy since it has native support for GeoIP. See this article and adapt it to your needs (here's a short Apache version)
There are really only two developers on /r/gamedev that release transparent income reports: TrueValhalla and devMidgard.
The latter I'm actually partnered with on a new .io game.
Check out their income reports, and compare to the their games/traffic. Most developers will not publish transparent information involving HTML5 games, because they've found a decent revenue generator that works better than App Store games and Steam Greenlight. They don't want more saturation and competition, so it's best that people aren't aware of how much money they actually make. For the Starve.io game, I'm fairly certain they're making at least 10x the monthly server costs.
It also depends on the type of server you get, multiple cores can support a lot more users for just a minimal price increase of 1c/standard systems. There's a lot of balancing work involved, so it's good practice to start out with something small and work your way up.
Note: Digital Ocean costs by the way.
You are correct.
SSH is a protocol used to log into and execute commands on a remote machine. Normally you can validate with usernames and passwords like you'd normally do, but it's preferred to use SSH keys, which are extra secure.
In order to SSH into something, you need to have a remote server that has an SSH server listening for outside connections. It's especially useful for controlling computers that you don't have physical access to - e.g. if you rent a server from a company to host your website.
Assuming this is a standard runs-on-linux kind of situation your best bet is probably to use something like Digital Ocean
$5/mo would likely get you all you need to run an old-school C based MUD for 10 players.
Some people just can't handle criticism.
> It appears many people have found this method helpful
People don't know any better. There are plenty of guides on how to setup key based authentication that follow the proper process, do not contain incorrect information and incorrect commands, and do not recommend insecure passphraseless keys. I'm not sure what you're trying to accomplish here.
> Second, I wrote this excerpt as a way to do this from the Pi itself. It's okay to do it from another computer; there is no right or wrong way of doing this.
The method you have described is the wrong way. Generate key pair on client. upload public key to server.
Here are some guides that outline the correct procedure:
The free AWS instance is useful for smaller stuff.
I think Google compute engine has like one free month.
If it is something that will be on 24/7 though, I would rather pay the $5 a month to digital ocean.
Comparing Youtube to web hosting is a bit random. Youtube make money from videos being uploaded to their service.
Hosting static websites can be free, Github pages do exactly this. However if you want backend services which will use up resources then you're going to have to pay. You can pay $5 a month for a VM (https://www.digitalocean.com/pricing) which will host everything you need.
dokku is your answer. It's like your own heroku. DigitalOcean has it's own dokku image. In combination with supervisord you can keep the apps running even if the app crashes. It takes care of the ports for you, and allows you to deploy multiple apps to the same domain easily. If you have any questions let me know. this tutorial should get you started.
When you have everything set up, deployment is as easy as:
git remote add dokku :your-node-app
git push dokku master
First of all, people have very bad experiences with GoDaddy. I'd never give them my business.
But in the end it comes down to two seperate things.
For example: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-host-name-with-digitalocean
Hmm... How does it cost that much?
I don't know how your bot works exactly but I'm assuming it queries /r/all/comments/new and messages/inbox/ 2 times per minute, if request is made then it uses API for some online wallet storage and transfers funds from one wallet to another then user is ~~massaged~~ sent a message and comment is posted to notify users of the transfer.
From my experience with reddit comments the average page returns about ~25kb of comments per request. Posting comments and sending messages doesn't require nearly as much data as it's only POST requests.
Now assuming you obey reddit API rules and make request every 30 seconds that would mean you get 50kb of data in a second, 3000kb/min, ~175.78mb/hr, ~4gb a day, ~130gb a month. Let's assume you get that much for messages too (you probably don't), that's ~260gb of reddit comments and messages.
The wallet API and messaging doesn't take a lot of resources since it consists mostly of smaller GET and POST requests, but lets say that consumes the same amount as parsing comments (in reality it probably uses ~1/10th of it) that would be another 260gb
Which brings us to (exaggerated) total of ~520 gigabytes per 31 days. In reality I'm guessing you use ~250gb or less per month??
Most VPS's offer 1TB+ bandwidth for as low as $5/month, like digitalocean https://www.digitalocean.com/pricing databases and CPU consumption shouldn't be a bottleneck as they're relatively simple tasks and database stores only IDs so the 20GB SSD should be enough.
Please don't think I'm saying you're lying or that you're wrong, this comment is more thinking out loud than "proof" or attempt to show that you're wrong. You have the stats and I'm just guessing data consumption and cost.
If you could share some real numbers I'd appreciate as I've been planning on running my own bot (for a subreddit) and by my calculations (like the one above) it is something that isn't too expensive.
For the best possible purpose: Because you can.
Not to mention there's a general motivation to have SSH key authentication fit into some sort of PKI. Like with certs.
Kind of along the same lines as using DNS(SEC) to house host keys instead of the default approach of spitting out a key signature that everyone says "yes" to unless the client tells them it conflicts with known_hosts.
Wrong sub for this, /r/ccna would be better I think as they have info on basic subnetting, but its called CIDR notation and the /xx represents the length of the subnet mask (how many 1's are in the netmask)
It was a quick example to prove my point. If you actually want a VPN that's cost effective it would depend on your use case. You have the basic choice of:
I use digital ocean and it's perfect. Aws is way overkill unless you know why you need it.
Use cloudflare, free wildcard ssl certificate, cdn, will hide your IP address. You can set the length it will catch files for
These guides you should do a few time until your understand.
SSH to remotely access your server without a password.
Fail2ban to block failed ssh/password users gaining access to your server.
UFW to fire wall your server.
You can also mount your database and WordPress files in digital ocean block storage so you can kill a server and have your data in separate containers.
Get a floating IP address your domain points to at digital ocean that way you can change servers if you have to.
As can see digital ocean has amazing docs.
Also your understand that you can find system logs to in /var/logs when things break and config files can be found in /etc
Practically speaking there are two options at your disposal for making a dynamic rerouting decision like this: DNS or a floating IP.
DNS is nice because because it's out of band and you can request the same resource but get a different answer or IP depending on the state of your servers (e.g. always return the IP address of the primary unless it's down, in which case start returning secondary). For this to work you'd need to hardcode a URI into the app rather than the IP of the primary or secondary servers. You'd also need to write some code to dynamically update the DNS record when the primary server goes down or fails a healthcheck, or use a managed DNS provider that has these capabilities built in. If you control all of the systems and resolvers, you can use a 0 second TTL and disable or configure the relevant services (nscd/dnsmasq) in order to prevent the IP from being cached.
If your tolerance for failovers is milliseconds or your IP address is hardcoded into the application and can't change then you'll have to use a floating VIP - an IP address that both the primary and secondary servers have the ability to bind to an interface. This comes with its own set of complications but Digital Ocean has a nice overview here of one of the many ways you can implement this.
Another alternative which it sounds like you've hit on would be to build the healthchecking into the application itself and hardcode both a primary and secondary IP, then change the behavior of the app such that if it's unable to connect to the primary after x number of seconds it tries the secondary IP.
It depends on what you want.
Generally you want to avoid all responsibility with hosting. You want them paying for their own account, with their own credentials, and you want a contract stating explicitly that you are not their emergency IT person for free. It's common to give some value-add in a contract like "90 day defect warranty, 30 days server support" or something, and after that, they're on their own.
This way you're not stuck paying for the server, and then having to hunt them down to pay you, and then having to shut down the server when they fail to pay you, and then having them get on your case about getting it running again (or potentially suing you for not adequately communicating the issue or some other such excuse).
On the other hand, if you want to make a profit from being their host manager, then you you charge them the hosting costs, the general maintenance fees and time spent dealing with them, AND a profit margin. So if you can host their site on a $5/month Digital Ocean server, and then charge them $30/month to manage it, you can make a small profit that way. Get enough clients doing that, and you can wind up with a few hundred dollars/month in passive income.
At any rate, I personally host on Ubuntu or CentOS servers through Digital Ocean. For most small businesses that just need marketing / brochureware sites, you can get away with $5/month server. It even offers one-click install Wordpress and Drupal sites if that's your thing so simple
That said, Wordpress and Drupal probably wont' work very well on the $5/month option, so pick your tier accordingly. I've found DO to be extremely simple and easy to use. I don't have to fight with any managed host bullshit, or potential vulnerabilities created by shared hosting providers etc. Less time for me = more margin.
systemd log files are stored in binary, meaning that you can't cat/less/grep them - as a sysadmin I initially hated this and it was my biggest (and only real) gripe with systemd. That is, until I actually started working with them. Say you want to view all logs for nginx: journalctl -u nginx will do that for you. Possibly more awesome is this self-explanatory command: journalctl --since "2015-01-10" --until "2015-01-11 03:00"
journalctl -u nginx
journalctl --since "2015-01-10" --until "2015-01-11 03:00"
This Digital Ocean article has a good summary
Okay I had to say something about WPEngine after what you said.
In ~20 minutes I've bought a domain and SSL certificate from namecheap for ~$12.99 for the first year (that's both not per.) Launched a WordPress droplet on DigitalOcean for $10 a month and had WooCommerce running. That's just over $11 a month for MORE than WPEngine offers at $99!!!!, unless they're giving you some crazy sweet memory/processor allocation but then why would they not advertise that?
Please have a look at Digital Ocean.
To illustrate how crazy this is:
Since it doesn't have the arbitrary 100k visitor limit let me put it this way. At 10% of the cost you would hit your transfer limit at 100k visitors if you transferred 20MB to every one of them.
I find it hard to believe that even toy projects can be hosted much more cheaply than the smallest available VPS (e.g. US$5/month on Digital Ocean https://www.digitalocean.com/pricing/ ).
Anyway, the point is that creating a whole new compiler backend with likely dozens of person years of work on top of one of the most unrealiable and ill-specified languages out there just for toy projects doesn't make a whole lot of sense to me.
You don't run the Flask app with Nginx, you run it with something like uWSGI. Then you use Nginx to connect to uWSGI.
Here is a detailed tutorial on how the process works that will get you on the right path.
I've been using DigitalOcean and I'm very happy with them. Their cheapest plan, the $5/mo, is plenty if all you need is email, and they prorate it by uptime so if you only need it for a few hours to set it up and demonstrate it, it will only cost you some change.
They offer Ubuntu, CentOS, Debian, Arch, and Fedora, as well as partially-pre-configured LAMP, MEAN, Ruby on Rails, Redmine, Ghost, GitLab, Dokku, Docker, and Wordpress setups.
Getting Rails app on an actual hardware is no different than getting it installed on VPS like Linode or Digital Ocean.
Step 1: Install Linux
Step 2: Provision all the softwares: https://www.digitalocean.com/community/tutorials/deploying-a-rails-app-on-ubuntu-14-04-with-capistrano-nginx-and-puma
Step 3: Profit
For provisioning I strongly suggest using something like Ansible. You really don't want to do setup/config by hand.
Also if you have your own hardware I think running VMs on the server is still a good idea. I don't have any experience with that though.
If you are looking for some cheaper options with comparable performance look into :
IBM's Bluemix (their Singapore and Chennai regions specificially) and
DigitalOcean (their Singapore and Bangalore regions specifically)
For reference equivalent configs to the EC2.Micro(1 core^[^] + 1GB ram) at
Bluemix would be $25/month(or)$0.038/hr($27.5 per month)
Digitalocean would be $10 per month(or)$0.015/hr($10.8 per month)
[^] : No clue what cpus Bluemix and Amazon use in the servers - as far as I know the most common cpu at digitalocean is the e5-2670
No clue about performance in Terraria and Rust but DigitalOcean's smallest server($5/month, 1core , 512MB) ran a CSGO 5v5 server along with a mumble server with no problems/lag.
Don't use cron for this. Use your init system, use a proper server, and put a proxy in front. This guide explains everything.
Nominally. You should seriously take the time to configure it correctly, but just enabling the default rules should "up" your security pretty well. If you need help, check this out.
I have used this tutorial in the past. digital ocean How To Protect SSH With Two-Factor Authentication
DigitalOcean has a good write-up for installing UnrealIRCd. Then use Shout or The Lounge for selfhosted web clients.
Digital ocean? $5 a month cheap enough or need cheaper? You could run a really small few projects on the $5 if needed too. Just be sure to setup swap https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-centos-7
ELK Stack, centos tutorial
I use logstash forwarder, redis, and packetbeat to send all logs to central box, custom alerts for immediate actionable items, ssh attempts, etc.
I got one FreeBSD droplet too. I didn't read any docs and got stuck so here's a super short quickstart for FreeBSD users:
Create a droplet through the web interface, select FreeBSD (10.1 only available). You'll need an ssh key, paste the public key into the web interface (password based auth not an option when creating droplets).
This is the important bit, the 'root' account doesn't work for ssh, you have to 'ssh [email protected]<your-ip-address>'. Use the '-i' flag to pass in the private ssh key if it's not picked up automatically. The default prompt is '>' - don't be alarmed.
So, you're not root, and cant 'su' because you don't know the root password. Don't fret, just use 'sudo <whatever>' and it works. I used that to 'sudo passwd root' and then 'su'.
Other notes about DO:
Only 1 IPv4 per droplet (consider creating multiple small droplets instead)
Need to turn off machine to take snapshots
Private networking not available in all areas (not sure why)
The web ui is pretty slick - probably one of the best. And yes, it is only about 55 seconds to create one droplet.
Ok, that should be it - cheers!
Oh, and if you want $10 in credit you can use my referral (https://www.digitalocean.com/?refcode=971f767ea10b) and both of us profit :D
Setup some cheap hosting of your own, and let them test it there (if reasonably possible, which it should be under most circumstances).
Get paid in full.
Deploy website to client's hosting and ensure it works correctly.
Do not skip step 2.
I recommend getting a cheap box on DigitalOcean* or DreamHost for the first step.
And yeah, usually they'll give you FTP or SSH information for their hosting, if they're technical enough. If they ask you to find them hosting, that's fine, but just make sure you don't put your code into production before you get paid. I've heard too many stories of freelancers getting shafted after they deploy code and the employer stops responding to emails / calls.
* Referral link, but you'll get $10 in credit, which pays for two months of the $5 / mo. plan (which we are currently using in production for a small server).
Digital Ocean Documentation to the rescue as always!
This should give you a good starting point, I can help with specific questions if you still want to set it up, I've done this a few times.
I've just finishing switching from Bluehost to DigitalOcean. You have to do a little bit more yourself (no c-panel), but they offer way more control and customization than Bluehost did, since it isn't shared hosting. It's $5 a month per 'droplet', or server.
I understand that https://www.digitalocean.com/ is good. I've got an account and have spun up a few servers just to get a hang of how it works but I haven't done anything substantial on it. Their lowest power server is $5 a month.
> 512MB / 1 CPU
20GB SSD DISK
Edit: There is a referral program so if you want to give a little kickback to me use this link but if you don't it doesn't matter to me. https://www.digitalocean.com/?refcode=73ab3ff1c388
Your LAMP link is actually the phpMyAdmin link - here's what I think you were actually looking for...
Also OP if you install the LAMP stack and then also decide to install phpMyAdmin, look into securing it. If I'm not mistaken there are a few security risks involved with installing phpMyAdmin and not taking the proper steps in securing it. (And by "securing" it, it's just a couple steps you can google to ensure some vulnerabilities are prevented. It's nothing crazy.)
Good luck and have fun OP, I thoroughly enjoyed setting up my first VPS. =)
DigitalOcean have a nice library of tutorials (obviously they'll work with any host, but do check TOS as some providers disallow their services for VPN/proxy/tunneling).
https://www.digitalocean.com/community/articles/how-to-setup-and-configure-an-openvpn-server-on-centos-6 and https://www.digitalocean.com/community/articles/how-to-setup-your-own-vpn-with-pptp show up in a quick search.
I have R and Rstudio set up on a private server on digital ocean. I'm sure you can do it with Amazon Web Services too, but if you are not wed to that here is a tutorial. It costs as low as $10 a month
> The main reason for doing this was so that if the RPi2 went down, adverts would still be blocked.
That's a good reason for running two. I regularly do development work on my primary RPi 3B (which has its own dedicated power supply) and if something goes disastrously wrong, there's the Pi Zero backup running a fresh install of RJL off my routers USB port.
Using SSH, SCP and an passwordless SSH key login for the Zero
on the primary Pi, I can sync the important bits to the Zero using a cron job:
# Perform maintenance on secondary Pi if online
pi=$(timeout 0.2 ping -c1 10.0.0.3 &> /dev/null && echo "0" || echo "1")
if [ "$jd" -eq 0 ]; then
ssh -i /root/.ssh/id.pi "" "[ ! -f '~/pihole' ] && mkdir ~/pihole"
scp -i /root/.ssh/id.pi adlists.list list.txt setupVars.conf *.domains :~/pihole
scp -i /root/.ssh/id.pi /etc/dnsmasq.d/03-pihole-wildcard.conf :~/pihole/03-pihole-wildcard.conf
ssh -i /root/.ssh/id.pi "" "sudo mv ~/pihole/03-pihole-wildcard.conf /etc/dnsmasq.d; sudo mv ~/pihole/ /etc/pihole"
ssh -i /root/.ssh/id.pi "" "pihole -g"
I host most of my WP sites on DigitalOcean. They have excellent customer service, very simple to use dashboard, decent pricing, super fast servers, and one click installs for common stacks. (This includes WP)
I use Webdav to serve my keepass file to all my devices. (https://www.digitalocean.com/community/tutorials/how-to-serve-a-keepass2-password-file-with-nginx-on-an-ubuntu-14-04-server).
The Keepass desktop client and android client have support for opening/saving the password database to webdav.
If you're a little tech savvy, you can set up a personal VPN using DigitalOcean. No caps, per-hour billing (at $0.007/hour = $5 per month) They even provide a handy guide specific to their architecture.
Use an Ansible script to create/destroy new VPN servers at will, meaning you can turn it on when you want to browse securely, then destroy the droplet and not pay while it's not in use.
Sign up with CodeAnywhere to get some free DigitalOcean credit. CodeAnywhere is also useful for storing scripts, settings etc and can be given SSH access to your DO account.
edit - I am not affiliated with DO or CodeAnywhere. Whilst I both use and recommend their services, it is in an entirely private capacity.
Of note - personal information is required for payment and whatnot, so this isn't an option for SUPER naughty stuff. Run of the mill webbrowsing without various cockwombles spying on you? No worries. DO do not accept any cryptocurrencies yet, but hope springs eternal.
Other responses have got you covered in terms of options; it sounds like you're hesitant to learn the sysadmin stuff but, to me, it seems like that's your next step in terms of web app learning. Don't be afraid of it, it can be very fun and satisfying and is definitely an essential skill.
Even if you don't go with DigitalOcean, I'd like to point out that DO articles/tutorials are the gold standard in terms of balancing comprehensiveness and ease of use. Here are a couple to get you started:
You mean you ”ssh” in using putty, start the program, then want to close the ssh session.
Several ways exist to keep the program running the background.
Use ”tmux” or ”screen” is a common way. And you can reconnect to the ssh session later.
Use of the ”bash job controll” features is another way.
Hey there. This is a common business practice. It is similar to how coupons expire and things like gift cards. have expirations on them.
We posted a blog post about this at https://www.digitalocean.com/company/blog/details-on-expiring-digitalocean-credits/
Tl;Dr on this is that we have heard from customers like you that were upset, evaluated our process, and made some revisions. Check it out and if after you want to continue to use your credit, open a support ticket and our support team will help you out
Dont try to do it this way.
Instead, use some well known software (gunicorn, nginx) that can already do this and pass requests off to your Flask app.
Here's a good tutorial: https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-14-04
You could run your own for $5/mo on my own DigitalOcean server (wherever in the world DO offers Germany, Netherlands, San Fran, etc). ...drop it/recreate it about every 2 months or set one up before going overseas, or on vacation too, etc.
One of the main reasons to do this is to also specify a personal DNS so that it blocks ads/trackers using FoolDNS (or my own DNS). Sets up easy using TunnelBlick on mac (openvpn app on iOS). Also great for dd wrt router.
The setup is fairly simple via their script in that tutorial.
Alternatively, Witopia.net is a great solution Mac/iPhone, it works flawlessly, the bandwidth is great & matches a 100gbps connection, uses a drop-down menu for anywhere in the world on Mac app (config for iPhone). Anonymizer has also worked great for and is a secondary, but they hold back on bandwidth, places unless you're there and some services block them.
If those are the only places you found it, find a DMCA notice form on Google, fill it out and send it to whatever contact info you can find on those sites. Both of those domains were registered at Name Cheap or one of their resellers, so send Name Cheap copies of the DMCAs (). One domain appears to be hosted on Digital Ocean https://www.digitalocean.com/company/contact/#tab_abusetrigger and the other on Web Zilla (). Send the DMCA’s to those companies too. That should get the sites taken down or your content removed from them.
Send Amazon a reply saying you found unauthorized copies of your work on those sites and that you sent them a DMCA notices.
I agree with /u/torac. Readership & site traffic is not based on your quality. There is no central place to read the entirety of LMS & readers are conditioned for googling new chapters, esp those who don't know what MTL is. The lack of a well-communicated translation schedule at CCT does not help mitigate this.
I would recommend any of the following:
Move from blogspot to wordpress or ghost blog. Benefits: You can run a popup modal to collect emails. You will collect farm more email addresses & this will keep everyone in the loop to updates. You can also run better ads if you want money. Cost = $10/month Server
Adopt a serious donation queue (remove the 'donations don't speed anything up but you can still do it)
Partner with the MTL guys. Playing catch up can definitely be demotivating but working as a team could help everyone. This could help ease the load for all parties. If not translations, at bare minimum hosting each others work to help with bringing new site traffic (SEO).