Posts Tagged ‘server’

I love VPS.net!

Monday, March 1st, 2010

I recently moved all my php sites to a new server, about a month ago, and had previously used VPS.net for my jsp/svn/etc.. server for quite a few months.

Running tomcat and sql + a few other things have used up almost all the memory on my java server, so I was thrilled to find a mail from vps.net in my inbox today, stating that they will upgrade all nodes from 256 mb ram to 375, and add 200 mhz cpu :D

on VPS.net you create your own virtual server which is made up of 1-18 nodes (1 node = 256 mb ram, 400 mhz cpu, 10 gb disk). So it’s very easy to make new machines, or upgrade an existing one by adding more nodes (then just restart the virtual server).

The server has been extremely stable, fast (the site your on now runs on a single node) and only restarted once, the website it runs is being monitored and have not had any downtime. This is by FAR the best virtual (or even dedicated!) server solution I’ve ever tried, and I would absolutely recommend it for anyone who needs a virtual or dedicated server. 1 node is just 20$ per month, there are no sign up fees and you can cancel at any time (1 node will be able to host a good amount of http/php/mysql content).

And if anyone wonders, no I’m not getting paid by VPS to advertise for them :) They’re just so awesome that I HAD to mention it, there are so many crappy hosting / virtual server companies but these guys really are awesome :)

New server

Wednesday, January 20th, 2010

I set up a new VPS server last night with Debian + mysql + lighttpd to host all my php stuff (which so far has been on a shared hosting server, which is horrible).

Now this wordpress is running on the new server (Serenity) and it’s alot faster, and I’ll be moving 4-5 other wordpress installs over to this new server in the next couple of days.

That way I can do complete wordpress backups automatically for all wordpress installations and a full mysql dump automatically :)

The Mac Mini

Monday, June 1st, 2009

For a brief period (6 days) I was recently the not so proud owner of a Mac Mini.

mac

I bought it to run Debian and take over as the new house server, however Installing Debian proved to be easier said than done.. All the guides out there deal with having it work as dual boot, not to run only mac. I tried 3 times to install, but each time I messed up the partition table I had to do a 12 gig mac os X install (which by the way is the worst operating system since Windows 3.11).. Even if I did get Debian installed (which I’m pretty sure I would have done in the 4th try) :) , I suspect the BIOS compability crap would require it to have a screen attached to boot :(

So just to spare myself the aggitation I sold the crap and cut my losses (especially the loss of time which should have been spent fixing the Starsystem controll view in Trekwar).

At least I learned something..
My ban on anything from Apple had been eased a bit lately seeing that they started using a Unix(freebsd) base for OS X, and using Intel processors instead of their own stupid crap. But now that I have some first hand experience, I’m pretty sure the ban on apple products will last for the foreseeable future.

The server

Friday, February 27th, 2009

My cute little server Defiant, where I run my webserver, database and trekwar server tests, deserves some recognition:

The server itself is a little aopen cube shuttle pc running fedora linux :)

defiant

The server is of course covered with Star Trek ships, a Robotech VF-1, oldschool Batman and a badger for good luck. The server is starting to get old 4-5 years, and if it where not for backups, I would frequently worry about hard drive failure. Before that happens, I hope it will reach the 1000 day uptime :)

Defiant uptime

hiding svn directory in resin

Thursday, February 12th, 2009

I got all my websites checked into Subversion (SVN), and usually scp them from my desktop to the webserver. But sometimes I edit the pages directly on the server.
So to keep changes from being lost, I decided to just have a checked out version of the page (svn) on the server as well.. To keep things in sync :)

But for some reason I don’t want people to snoop in my .svn directory. I googled but did not find any immediate solution, so here it is, a quick fix for anyone who might have the same “problem”.

Hide .svn directory in resin webserver
(also works for cvs or anything else you don’t want resin to give those greedy users)

just add a rewrite rule for the host in the resin configuration file (resin.conf), this prevents the webserver from letting anyone into the directory (or viewing svn/cvs files).

Here is my config file:

<host id="www.trekwar.org" root-directory=".">
<host-alias>trekwar.org</host-alias>
<web-app id="/">
<document-directory>webapps/trekwar.org</document-directory>
</web-app>
<rewrite-dispatch>
<redirect regexp="\.svn" target="index.jsp?msg=keep+away+from+my+svn+directory"/>
</rewrite-dispatch>
</host>

Mozy

Monday, October 20th, 2008

I’ve been trying out Mozy for backup for a while (the free version limited to 2GB of storage).

I recently upgraded to the mozyhome edition, it’s only 5$ each month for unlimited storage, but only for ONE computer.. And since I’m cheap and there is no Linux client, I just mirror the things from the server I have to back up in a directory on my windows PC (SVN repository, postgres database, web server config/logs/etc).

Uploading the initial data (22 GB) took around 3 days, but the incremental backups are much quicker.

I like that Mozy stores several versions of the file, so I can roll back to a specific date. They only save the different snapshots of files for a month, but for the important stuff I have SVN which lets me do unlimited rollbacks anyway.

update April 27th 2009
I recently managed to corrupt a 30 MB file and had to restore it. unlike the upload of the data, restoring it (downloading) was extremely fast, got around 6 MB/s download speed :)

Goddamn memory leak

Wednesday, September 3rd, 2008

Still havent been able to localize that damn memory leak in the Trekwar client. At least the server  has no leaks :) and can run for days only using around 15-20 MB of memory (galaxy with 10′000 sectors):

The client however will crash after about 10 ticks if the galaxy is really big. Have stared at the code for hours, with no result. I’m going to have to start some methodical and very tedious debugging to get this thing fixed :(

Programming in Austria

Sunday, June 15th, 2008

I’ve had this post as a Draft ever since I came back from Austria (which is a weird-ass country by the way), mainly due to the fact that I managed to change ssh port on my server without changing the firewall :)

So I finally connected a keyboard and screen and set everything up the way they was, which meant I could commit the changes I did to the Trekwar game to the server, and get them on this computer and grab some screen shots.

Friday
It is now possible to move your fleets around the map, Client allows you to press the tile the fleet should move to and then tells the server to move the ships.

Saturyday

Fixed a bug where the local copy of the move orders where not updated properly, implemented the starsystem controll window:
Trekwar System View

Sunday
Implemented build orders, now possible to build structures on planets. Queue not implemented yet.

Airplane
On the airplane back home I implemented the asteroid belts (high-altitude programming is fun).
Notice the beautiful asteroids drawn in mspaint on my laptop’s touch pad :)

Trekwar galaxy map with asteroid belts and fleet movements

Bye bye tomcat

Tuesday, April 8th, 2008

I’ve been using tomcat for quite a couple of years now..

But when making working on a registration page for a “ferret show“, I got so goddamn fed up with two things:

1) Each time I recompiled some of the background Java stuff (beans + database manager) I had to restart the server after recompiling

2) OFTEN after recompiling, for no frakking reason whatsoever. Tomcat would bitch about being unable to find the postgresql driver, even though it was in the common/lib as we as the webapps lib directory..

The second issue would sometimes take 5-10 minutes of removing the file, moving it back, restarting the server, removing work/tmp dirs, before it suddenly and miraculously worked again.. So I finally had it, and downloaded Resin and had it up and running in a few minutes.. Copied over the webapps, and now everything works nicely, and I never have to restart the webserver.

I’ve had some experience with Resin from my previous workplace, using the java php implementation and the JMS system. And Resin seems to be pretty nice, and switching from Tomcat to Resin only took a few minutes.. Did not tweak the config much and set up SSH, that will have to wait for the weekend :)

Bye bye CVS.. Good morning SVN

Tuesday, March 25th, 2008

After years of faithful service, I made the change from CVS to Subversion (SVN). I installed SVN on the server, and set up the SSH keys on my desktop and got up TortoiseSVN and SVN for eclipse. I used cvs2svn to copy over everything from CVS to SVN (which required about 1-2 hours of removing the Norwegian characters Æ Ø Å from filenames from misc. schoolwork). I like TortoiseSVN much more than TortoiseCVS, but I’ve had some problems with checking out stuff into eclipse. Seems like I have to check in everything as eclipse projects for it to work straight away. I notice that SVN seems a bit slower than CVS (when using it with SSH and pre-authenticated keys), if it becomes a problem then I’ll just install SVN on my windows desktop and mirror the repository on my server.