How To Use a Linux Virtual Private Server
Nerval's Lobster writes "Game developer David Bolton writes: 'For my development of Web games, I've hit a point where I need a Virtual Private Server. (For more on this see My Search for Game Hosting Begins.) I initially chose a Windows VPS because I know Windows best. A VPS is just an Internet-connected computer. "Virtual" means it may not be an actual physical computer, but a virtualized host, one of many, each running as if it were a real computer. Recently, though, I've run into a dead end, as it turns out that Couchbase doesn't support PHP on Windows. So I switched to a Linux VPS running Ubuntu server LTS 12-04. Since my main desktop PC runs Windows 7, the options to access the VPS are initially quite limited, and there's no remote desktop with a Linux server. My VPS is specified as 2 GB of ram, 2 CPUs and 80 GB of disk storage. The main problem with a VPS is that you have to self-manage it. It's maybe 90% set up for you, but you need the remaining 10%. You may have to install some software, edit a config file or two and occasionally bounce (stop then restart) daemons (Linux services), after editing their config files.'"
Hire a manager for it or learn to use it. How in hell is this in the front page?
and there's no remote desktop with a Linux server
Spending about 3.8753 seconds on Google would reveal that there are numerous Linux remote desktop clients which can be downloaded for use.
sudo make me a sandwich
If you don't know how to do this, please hire someone. And use Debian stable over ubuntu for servers. It's much more stable and much less full of Shuttleworth.
.... you are new to Linux, and you need some help?
https://help.ubuntu.com/community/Beginners/FAQ
gus
.. if only.
Stop trolling us slashdot... this aint news and it aint a legitimate question... please just stop.
You could try php.jelastic.com which gives you the power of a server (or cloud of servers) without the server administration headache.
Oh boo hoo, I used a Linux VPS and think it is limited because I didn't bother to learn how to use or administer Linux.
Only a windows person would want to administer a server with remote desktop.
X over SSH.
"Flyin' in just a sweet place,
Never been known to fail..."
...ly written article. It seems to end mid thought without any sense of where the article is going.
It's, as the title implies, a How To, not as the body implies, a recount of his/her experiences.
your Deamons. They get very upset when you bounce them.
You may as needed, however, restart them from time to time.
As a development environment, I'm not sure why you're not willing to go with a cheap, $200 local/self-hosted server. If you really need to test it online, you could set it up to host to the web, access it over the web, save yourself the monthly hosting fee, and install/configure it how you like.
- Nec Impar Pluribus, or so I'm told.
Linux has plenty of remote desktop software. 5 minutes with google would have revealed your choice of VNC, NX, or (my favourite) X11rdp.
What exaclty were you expecting? If you want your server to be all setup for you, you'll buy a managed server, and pay a hefty price-premium for them holding your hand the whole time. If you want to save money, then you'll read some man pages and tutorials and figure out how to set it up on your own. Also, if you think you "need" a GUI on your server, then you obviously aren't all that well experienced with server management. If you really can't do any of this on your own, hire a sysadmin. Any sysadmin worth their weight in salt know how to use a linux command line to setup something as easy as PHP and Apache. Hell, most VPS services these days provide template VPSs with these services already setup
Shouldn't everyone here not only know the information presented, but know it to a better degree than it was presented here? O.o
Heroku?
What in the world is this crap? I think anyone here who doesn't know:
A. What a VPS is.
B. How to configure a VPS (a.k.a SERVER ).
Does know how to use Google. WTH editors.
neorush
and there's no remote desktop with a Linux server.
HAHAHAHAHA. Oh? You're serious? ALLOW ME TO LAUGH HARDER!
Ubuntu server doesn't have a gui. So what are you remoting into see?
The answer is SSH, and if you didn't know that...you may have some things to learn before you attempt what you are attempting.
Slashdot is dead, and this is its rotting corpse.
WTF, I see why Taco left.
No remote desktop in linux? Oh teh noes might have to use SSH like a big boy.
I hope this is a joke.
I already gave up on Slashdot once, and kept an eye on it and the quality visibly improved for a while.
If this is the level of crap that we're going to post, I'm happy to abandon the whole site again. I didn't miss it much for its absence.
P.S. If people here don't already know what a VPS is, how to run one, or how to pick holes in that article, this isn't the kind of website I want to frequent, and that's the USERS. The editors / posters? They should know better, ffs.
So far, an article on "Business Intelligence", a video about a fecking jacket, and this article have been enough to undo 10+ years of coming here.
Steamlined from Dice... Slashdot is going downhill :(
As a slashdotter of about 10 years, I am seriously hurt that this made it to front page. I have made numerous submissions over that period of time, all of which I thought were unique, fresh and informative. None of them ever made it to the front page. Now this cotton-picking moron gets front page exposure? I might not be coming back to this site for a while :/
Install freenx - http://www.humans-enabled.com/2012/05/how-to-install-freenx-on-ubuntu-1204.html
Use NX Client for Windows - http://www.nomachine.com/download-package.php?Prod_Id=3835
Use SSH. If you're stuck with windows on the client side, just install cygwin.
Why is this on the frontpage? Is it meant to be a "ask slashdot"? Or just really lame news?
I don't understand why this is on the front page on SLASHDOT
Webmin
Let me transpose this article to emphasize just how incredibly stupid this submission is:
Hey guys, I'm a game developer and my computer doesn't run things that I need to use to develop games. So I bought a new computer. You see, a computer is a machine that runs software and computes things for you. It has a mouse, a keyboard, and a monitor. Some computers are big, but others are small. For instance, the computer I bought has 4GB of memory. That is more memory than other computers that have 2GB. When you buy a computer, it's maybe 90% set up for you, but you need to install the remaining 10% of things that you'll use and change the settings so it runs the way you like it. Computers are so neat.
This article isn't even asking a fucking question. It's just somebody telling the Slashdot crowd what a VPS is. What the fuck?
What geek DOESNT have a VPS, or at least an Amazon instance that you can fire up from time to time?
I want to delete my account but Slashdot doesn't allow it.
any competent alternatives? I like coming here to learn things...
are your friends...for common adminsitrative tasks, that's all you need.
I've run Linux at home for ages. I use my Linux computer at home for email, development, and a whole host of other things. I don't need a remote desktop. The whole concept of one is completely foreign to the Linux world. Nobody would ever make one because the idea is pointless in a Linux environment.
ssh and the command line are all you really need, and they are significantly more flexible and powerful than any GUI I have used. And if you really need a GUI, that's what X11 is for. X11 is completely network transparent. You can run an X11 program on any random computer and have it display just fine on your desktop.
I don't know how to find a good X11 'server' (yes, the thing that runs on your desktop and actually pushes pixels around on behalf of GUI programs is a 'server' because it performs services (manipulating your display) on the behalf of clients) for Windows is. But you should investigate and get one if you really must have a GUI.
I actually find Windows reliance on remote desktops to be really primitive and constraining. Whenever I try to mess with how Windows is supposed to work through a GUI I'm always left wondering what really just happened. So many little invisible things and no way to really see how they all interact. You just have to trust the partial fiction displayed to you to be a reasonable reflection of the underlying reality. It's very frustrating and cumbersome.
Need a Python, C++, Unix, Linux develop
Please, if your going to manufacture news get someone who's proficient in Linux to write so the source sounds somewhat credible,
FTA
"Unusually for Ubuntu, the server does have a root account, and the VPS provides you with root access, so no sudo command is needed."
thank god they went through the trouble of "sudo passwd nubjob"
No no don't stop testing our product before we start charging for it!
"Now that it’s set up, you can’t just ignore it. If you do, your website or worse your VPS may eventually fall over. Plesk auto-upgrades itself, and on the Windows VPS, that used to break a website. I was using PostgreSQL, and with every new update of Plesk, the PostgreSQL drivers were unhooked."
I can't wait to get my auto-breaking I mean updating server! And this is better than a free VirtualBox VM how?
Although I have to give them cu-do's for reminding me to look up the chroot jail equivalent for Linux! http://wiki.linux-vserver.org/Overview
Good leaders run toward problems, bad leaders hide from them.
Install xrdp on the server. It allows you to connect to a Linux server using the Windows RDP client. Just make sure you have a secure tunnel to the virtual server to work in.
This is the basic stuff we all started with at some point in our Linux server lives. Good on you for making the jump from Windows to Linux. It can be a big change from the hand-holding Microsoft has forced on you, but keep at it and you will find a whole new powerful world of computing open up to you. If its from the power of regular expressions in VIM and Grep or the simplicity of LVM and everything in between, you will find your Linux experience will open your eyes to a whole new world you never knew existed.
This is a forum level post, not a front-page Slashdot level.
Good-bye
This is akin to someone writing into Car & Driver asking,
"HOW TO DRIVE CAR???? PLZ HELP!!"
I did not know that and I bet, almost no one here on /. either.
I'm a long time OpenVZ user. I don't know if your "VPS" is a container or a full-blown VM running under KVM or Xen... but if you want graphical access to a desktop environment I'd recommend using xrdp. xrdp is an RDP service for Linux. xrdp uses VNC underneath but it is transparent to the user who uses any RDP client they like. Many distros package xrdp.
I've used xrdp on physical systems, KVM virtual machines, and inside of OpenVZ containers and it seems to work equally well.
If you have a very limited set of packages installed, you'll probably have to install a desktop environment first. Get to know your package manager from the command line... rpm/dpkg or yum/apt-get.
Scott Dowdle
www.MontanaLinux.Org
I write code.
I am quite capable of administering a LINUX server, but I'm nowhere near as efficient (or capable) as an experienced LINUX geek.
Server admins are more than welcome to dis me on the matter. That's OK. Because I'm not a server admin. I'm nice enough not to dis back on things like TDD, OOP, Design Patterns, and asynchronous handling.
At home, I run a Mac server as the source server. There are a number of reasons for the choice, but the most basic one is that I have spent, literally, months trying to maintain the services that I need with an Ubuntu server box, and I spend minutes getting the same result with the Mac. I could care less whether or not it adds to my "geek cred." I have plenty of that.
For my Web sites, I run a hosted plan. I did use a VPS (CENTOS) for a couple of years, but it just wasn't worth it. My hosted plan is a "reseller account." It lets me do everything I need.
If I want to get fancy, I tweak the Apache/PHP/Perl/CGI/MySQL/Postgres server on my laptop, and use something called VirtualHostsX to mimic a hosted solution.
However, I like to spend most of my time writing compiled code (as it requires most of my time.
I agree. This is a non-front-page-of/. story.
"For every complex problem there is an answer that is clear, simple, and wrong."
-H. L. Mencken
In the linked article, the author says:
Logging in to the root account, even over SSH, is potentially a little risky. If a key-logger gets installed on my desktop PC or a hacker breaks the password, then it’s game over. It’s possible to configure SSH on the server to use a public key/private key for remote logging, so I’m looking into setting that up.
Why is a a key-logger an issue for SSH, but not for whatever mechanism he'd use to manage a Windows server?
Logging on as root is risky, but not because of a keylogger - if he'd logged on with a non-root account that has sudo access, he wouldn't be any more secure. Using SSH public/private keys is definitely a good idea, but if someone has been able to install a keylogger on your computer, then there is no reason to think that they can't also grab your SSH keys and the passphrase to the keys.
Get this shit off of Slashdot! This is what a 12 year old with a "how to" book can figure out, this is not news.
www.xrdp.org
Works very well.
This article was a slap in the face. Okay, I get it. Slashdot is no longer news for nerds. Goodbye, /. it was educational for a long time.
Seriously this is the worst /. post ever :(
Get a copy of linux for dummies. Have fun.
It is a wonder Linux has such an image problem with anyone, but the converted. Granted this article may not be the best, but let's do a quick google search for the actual article that the poster is refering to:
http://news.dice.com/2012/12/10/linux-virtual-private-server/
David Bolton talks about what he did. Good or bad, he documents it and shares it with his readers.
What do I read here, explatives, degrading remarks, and just plain snobbery. Here and there are some useful remarks. What I was hoping is to read a helpful discussion on what he recommends/did and what could be done better and how. There is so much vitriol to sort through, I don't even bother.
Pathetic.
Mid-Eastern Pennsylvania Gaming Convention
You bet wrong. I'd be very surprised if most people on slashdot didn't know this (search for VPS in the /. search field above).
The original poster just needs to by a book on managing linux from the command line and install putty and he is good to go. There really isn't much more to say.
Is he related to the singer?
When faced with Virtual Management issues, I hire a Virtual Manager! They never show up for work, but they never complain either.
What on earth is this article?
Tomorrow I will submit a guide to tying shoelaces and crossing the road.
This is the type of guy who will store his source code in the cloud, then act surprised when his VPS company crashes and he loses all his data.
Get off the cloud man, you clearly have no idea what you're doing and will pay dearly for it in the long-run.
I've been reading /. for some years now.
/.?
When I read this post, first I thought it was some kind of joke.
Then I started to feel the urge to hit someone, really hard.
Seriously people, how the heck does a beginner's beginner's noob's writing like this land on
Teenage Linux beginner bloggers do better than this.
You people need to reset your quality checking methods, and fast.
I am putting myself to the fullest possible use, which is all I can think that any conscious entity can ever hope to do.
X11vnc on the server and vncviewer on the client. There, your headless server can now run a GUI desktop for you.
a) 2-3 days old 'news' (happens all the time)
b) noob questions as front page articles
What has happened? It used to be so nice place to be.
Front page news?!?!?!?!?!
If you don't know linux, why not just get a Windows VPS and install PHP? Just because you want to use PHP does not mean you have to use Linux.
In other news:
"Some Random Moron writes: 'For my reading of email, I've hit a point where I need a PC. (For more on this see My Search for Email Clients Begins.) I initially chose a Windows 7 PC because I know Windows best. A PC is just a "personal computer". "Personal" means it is an actual physical computer, running as if it were a real computer. "Computer" means it's an actual physical computer, running as if it were a real computer. Recently, though, I've run into a dead end, as it turns out that Windows 7 doesn't support Sparrow. So I switched to a Linux PC running Ubuntu desktop 12.04. Since my main smartphone runs iOS, the options to access my mail are initially quite limited, cause I'm a moron, and don't know how to use google. Though I pretend to be a web developer, I'm entirely outside my comfort zone if there isn't a big bold "easy button" for any trivial task I attempt, even when that task has been solved, posted about, blogged about, and had software specifically written to solve my exact issue. The main problem with a PC is that you have to self-manage it. It's maybe 90% set up for you, but you need the remaining 10%. You may have to install some software, edit a config file or two and occasionally bounce (stop then restart) daemons (Linux services), after editing their config files.'"
Seriously....can't remote into a Linux server? WTF?
SOunds like a typical linux setup. Config file this and that and an entire weekend gone and nothing to show for it.
Takes like 10 minutes on my WIndows boxen
This has to be another great troll by Andrew 'weev' Auernheimer
It's because you aren't using tetradraw.
Ever.
Contrary to the popular belief, there indeed is no God.
Nobody on Slashdot should need this article.
Apparently wizard is not a legitimate career path, so I chose programmer instead.
Have you done manual partitioning of gpt partitions (no fdisk)? Do you really enjoy cutting and pasting hugh block numbers around? Is there anything that is a fraction as intuitive as gparted?
While I still drop out to a command line for 1/3rd of my copy commands, when plucking 12 "unlike files" out of a directory of many and placing them in a another, CTRL-clicking them feels noticably faster than typing them or playing with expressions to try to pick them out of the noise...
If the server served printers (though I doubt the poster's does), I have to admit the graphical cups interface is nice....
So is it still time to raise our fists in the air and shout: Yggdrasil 94 forever!
Or are we turning the corner on intuitive command line replacments?
We know how to use a Linux virtual server. We have been using them since they came with 80 meg of ram, tiny amounts of bandwidth and tiny amounts of storage.
There is no story here.
What next? Running stories about how you can search for text in files with a command called grep?
1. Use Putty or Tunnelier to ssh from windows. This will get you onto the remote terminal.
2. Actually learn how to use it. The best way to avoid problems is to make a local Linux installation in a virtual machine and mess around in that. Do any scary things on your local test machine first. Also make frequent backups of everything you can think of.
3. Try to get the hang of basic operations like moving files, installing software with and without using the packagemanager, and handling services like daemons and cronjobs. Also learn shell scripting.
4. Carefully setup your server software on the remote box and then don't touch it anymore.
5. a. Realise it's awesome and move your entire dev platform to Linux.
5. b Realise you can't be bothered maintaining it and hire someone to do it for you.
The main problem with a VPS is that you have to self-manage it.
False.
The main benefit with a VPS is that you can self-manage it.
According to the Slashdot article below, "A couple of weeks ago you had a chance to ask Canonical Ltd. and the Ubuntu Foundation founder, Mark Shuttleworth, anything about software and vacationing in space."
What bad luck you're asking it now.
http://news.slashdot.org/story/12/12/09/1828238/mark-shuttleworth-answers-your-questions?utm_source=rss1.0mainlinkanon&utm_medium=feed
Dear slashdot editors, please forward this onto corp if it was upmodded enough to notice.
Because of this article pushed through geek.net, I am blocking all of your ads for one month.
That article is total drivel and crap. I don't care if you thought it was good. I don't care what demographic some idiot thought they were getting out to.
It's so dumbed down and idiotic as to be offensive. It isn't a legitimate slashdot. It isn't a legitimate ask slashdot as evidenced by the offsite link. It isn't even really a question. It's a shitty attempt to get us to click through to a crappy article with a crappy question written by someone who evidently can't even use google or IRC correctly.
Fuck your slashvertisements.
"the options to access the VPS are initially quite limited, and there's no remote desktop with a Linux server."
http://www.openssh.org/ - this goes on your server
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html - this goes on your windows 7 desktop
This is how linux works
https://code.google.com/edu/tools101/linux/basics.html
most configs are text files you edit
http://www.lagmonster.org/docs/vi.html
thats vi.
or nano learn to use this too
http://www.nano-editor.org/
updates are done with apt.
https://en.wikipedia.org/wiki/Advanced_Packaging_Tool
http://packages.ubuntu.com/ - packages you can find by looking through ubuntu's web catalouge. Yes there is a search function.
Thats the polite way of saying RTFM. In a previous life, I'd call you an idiot.
In this life, it sounds like your in need of a full time sys admin, and I'm your man.
How the does your Windows VPS not supports PHP. It's a fucking VPS, it can support whatever you want, seriously.
For all the grief everyone is giving the guy, it's a good opportunity for him to learn Linux. I'll even offer a "better" learning experience that doesn't screw up a needed VPS: Amazon EC2 free tier micro instances. Free for the first year after you sign up. Screw up the machine? Terminate it and start from scratch. Know what you're doing now or are advanced? Don't trash the image; fix it.
It's a fast way to learn other Linuxes, too. Just today I found myself reading the YUM man page because all I'd ever used in the past was apt.
--Jim (me)
Did I accidentally click on The Onion again?
Actually, 3rd time this week I had that same feeling..
I was gonna spend some mod points on these comments but they are already modded right to the edge of space.
My personal fave..."apt-get install clue", priceless.
Seriously though, don't they make paperback dummies guides for this kinda shit now-a-days?
Too many more like this and I will definately stop reading.
Thank you DICE
If you edit a text file you know what you've done. For a sysadmin that's quite important. With a GUI 'things happen'. Are your changes in one file or a dozen? When will the next be backed-up. If you restore some of them and not the others then what? I really like tools I can point a mouse at to flip a switch rather than having to trawl through acres of 'documentation' and then test hoping I've got the case-sensitive flags right and the actual version matches the docs or is compatible with foo, but for sysadmin work you need to learn tricky text files that are the links in the chain you lead your tiger by.
I'd like to see an apology from the editors for posting this crap... An explanation how their pet accidentally approved it...? A glimmer of hope this isn't where things are headed.... *sigh*
Install a server OS (I would pick NetBSD, Debian or Slackware is nice if you are a Linux person), administer over SSH. It will be painful learning at the beginning, but you will not regret it once you will be a knowledgeable in Unix administration.
Why do you need a desktop on a server when you have a desktop on the machine you use physically?
To see windowed applications that run on the server, you need a Xorg server on your desktop machine and not on the server. The applications running on the server will attach to your local desktop.
So... what Linux lacks is to be properly understood by you!
If you want a motorcycle without motor, you buy a bicycle, not a "motorcycle without motor".
If you want a VPS, it is because you want to control as much as possible.
If you want a "ready server", buy a hosting of this type, like a plesk panel.
It could be a good idea to use for my blog (http://www.pilotwork.net/pilotresume) . It may be cheaper and even better than the one
I am using now. Thanks for the article!
Everyone on this site is now dumber for having read it.
If you really want a remote desktop and have things set up properly, ssh -X will establish an ssh connection capable of supporting a remote GUI client. Then issuing /etc/X11/Xsession will run the GUI on your machine.
You'll need to set up KDE or Gnome or something on the server, but you can do all that via command line using ssh.
This is akin to someone writing into Car & Driver asking,
"HOW TO DRIVE CAR???? PLZ HELP!!"
Sadly, it's not even that good. It's more like someone publishing an article in Car & Driver that says: "I just got a motorized vehicle. It has a steering wheel and some pedal things. It moves in a jerky motion. It needs some sort of transmission system, but all I see is a stick with a bunch of letters and 'R' on it."
SWM seeks new sig for a brief fling