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.
X over SSH.
"Flyin' in just a sweet place,
Never been known to fail..."
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
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!
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
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
Don't anthropomorphize your daemons. They hate that!
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
You are right, it is a mere part of the original dice article at: http://news.dice.com/2012/12/10/linux-virtual-private-server/ . It also does not help that the HowTo was written by someone who really does not fully well know what they are doing, and it is this sort of thing that catches out people trying to learn how to do things properly. What would help, though, would be if the guy actually got someone who knew what they were doing, and added those bits to his article so it was more complete [this is where a more collaborative blog is essential.]
For the record my first VPS was a pretty interesting beast at nosupportvpshosting.com, where you have to know what you are doing or suffer the consequences [I quite like them because they keep out of your way, plus I use it mainly for self-education purposes.] The HowTo at dice pretty much glosses over the security issues with a non-adequate solution in my opinion [if you have seen the nasty stuff flying around recently then you'll know what I mean.]
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.
www.xrdp.org
Works very well.
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
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.
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.
At least you are smart enough in the ways of server administration to not embarrass yourself on the front page of slashdot.
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.
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?
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?
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
If it takes you 10 minutes to install the botnet clients and malware you must have a seriously slow internet connection.
What has happened? It used to be so nice place to be.
I admire your long term memory. You remember 15 years ago like it was yesterday.
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
What services take months?
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.
It was a question of configuring it for multiple services, including the various Atlassian suites and a couple of VCSes. Also, I have a day job, so this was all being done on the weekend.
My weekend time is precious. I need it to write code; not administer servers.
"For every complex problem there is an answer that is clear, simple, and wrong."
-H. L. Mencken
Ten years ago I blocked Slashdot at the firewall. Ten years later I'm still reading, and it sucks even more. And I even have a good job. Damn, just realized I need therapy.
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)
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?
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.
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.
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.
Wow.
I'm absolutely fascinated that the original post was actually modded down to 0. It certainly doesn't bother me, as it was really just some basic stuff, but I figured that I'd add a bit of actual relevant content to the n00b-bashing and nerd-sunken-chest-thumping that was going on. I musta hurt someone's feelings, which certainly wasn't my intention. I appreciate someone spending a precious mod point to take a widdle slap at me.
It is quite amusing, nonetheless. We peeples are such crazy critters...
"For every complex problem there is an answer that is clear, simple, and wrong."
-H. L. Mencken
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