Feb 5 2010

Using a laptop vs a tower for a server

So up until yesterday I have been using my laptop (with Boxee Media Center installed) connected to my TV via HDMI for watching my movies. This was a pain in the butt if say my mom wanted to watch a movie but I needed my laptop for work (aka play games). So set out to find a way to for my mom to watch her movies an I can still use my laptop. The result a laptop (other laptop) server.

I could have put together a bunch of parts from old broken down systems that I have sitting in the basement to make a cheap tower server that would be loud and take up a bunch of space. But that was just the problem. I don’t have much space for it and my parents would complain about the noise, trust me I have tried. Then there would be the issue of network wires to get to the server.

I remembered that I had a old laptop that nobody would use. In fact it was so old it wouldn’t be the effort to sell. Just clean it up with a new OS and install some software, it was perfect.

Now it is small, it is quiet, it has WiFi and built in battery backup. I can store this thing almost anywhere. Under or behind a couch, under a bed, behind the TV, strapped to the underside of a table behind your current computer. The options go on and on.

My Setup

  • Old acer laptop that took 5 minutes to load Windows
  • External 320 GB HDD
  • xubuntu
  • wine
  • utorrent (with web gui enabled)
  • PS3 media server (because I have a PS3 connected to my TV)
  • SSH

I hid mine behind the couch and also decided to put the rest of the network gear there so I can free up some space on my desk.

DSCN0105

My hidden network

Continue reading

Share and Enjoy:
  • email
  • Facebook
  • del.icio.us
  • Digg
  • StumbleUpon
  • Twitter
  • Google Bookmarks
  • Live
  • MySpace

Feb 19 2009

Illegal Learning

Our school is one of the few in Ontario that are trying to become an eco-school. We have been a silver eco-school as of last year and this year we are trying for the gold.

In Academic Resources there is a sign-in system. When you come into the room you must sign your name on the sheet. The problem with this system is that it uses a lot of paper and most of which is just thrown away. It was a teacher in AR that had the idea of having an electronic sign-in system using excel. After seeing it while he was still making it I just about cried by how difficult it would make things for entering and leaving the room. I decided that during my spare I would sit in AR and write a neat and user friendly php/mysql program on my laptop. For those that now what these are you would also know that you need a web server, I used xampp lite just because everything was in one place and I could run it from my USB drive.

Here are the functions of the sign-in system.
I had a nice looking home page that everyone would see when they go to sign-in. This page has three buttons, a door with the words sign-in below, a door with the words sign-out below, and a button almost invisible in the top right that says Administrator (need user and pass).

When a student would come in they would click on the sign-in door. They would do a search for their last name. If they are not in the list they can create their self (just first and last name). If they are in the list they would enter why they are here. Once submitted it is automatically time stamped and stored in the database.

When a student is going to leave they would click the sign-out door, find their name from the list of signed in students and sign-out. Again once submitted the sign-out time is automatically tracked and stored to the database.

Teachers could easily access all of this information and more from the administrator panel. Stuff like student list and a mass sign-out function for students who forget to sign-out (like me).

As I was working on this I was also learning more about PHP and a week of working on this went by and after I was done I showed the head of AR. She loved it and wanted it setup now. We setup a time to talk to the LAN tech to see if he can setup a computer at the door.

Here is the kicker. I never even showed him the program. As the computer was starting up I was explaining how I did it and what I used. When I told him that I used xampp lite he flipped out and said no servers even if its on a stand alone system (off the network).

So in the end I was learning against the the rules and I also wasted a week of my life.

Share and Enjoy:
  • email
  • Facebook
  • del.icio.us
  • Digg
  • StumbleUpon
  • Twitter
  • Google Bookmarks
  • Live
  • MySpace

Jan 2 2009

How to: Run Diablo II from a network computer

Ever wanted to have a Diablo II LAN party? Never had the patience to install it on all of your friends computers? Want to play Diablo II from any computer in your house and still have your same character? This is the solution to all of your problems. This how to will guide you through installing Diablo II on a network computer, setup sharing, and setup the other computers in your house to play.

Read all steps before starting!
Step 1: Install
The first thing you will need to do is install Diablo II on the computer you want to be host.
You will need to use your Diablo II CDs and perform a full install. Just follow the on screen steps to install. Now you will need to update Diablo II, go the the Blizzard patch page and download the original patch for windows. Run the patch and follow the steps. You will now need to copy a file from the play disc in order to play without the CD. Copy D2MUSIC.MPQ to the Diablo II folder.
Note: Do not install any expansions.
Note2: If you are installing on vista you may want to install in C:/Diablo II/ rather then the default location as this may cause restrictions.
Step 2: Setup Sharing
You will now need to share the Diablo II folder with the network. To do this go to the folder and Right click it and click properties. Now depending on what OS you have the sharing process may vary so try your best to share the folder will full permissions allowed for everyone. It is best to share the folder as “Diablo II” without quotes.
Step 3: Setting up your other computers
The first thing you need to do is edit the computer registry to allow for network play. To do this open Notepad and copy the following information changing every instance of {SERVER} to the name of the computer that Diablo II is installed. For me this is bens-office.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Blizzard Entertainment\Diablo II]
“InstallPath”=”\\\\{SERVER}\\Diablo II\\”
“Program”=”\\\\{SERVER}\\Diablo II\\Diablo II.exe”
“Save Path”=”\\\\{SERVER}\\Diablo II\\save\\”
[HKEY_CURRENT_USER\Software\Blizzard Entertainment\Diablo II]
“InstallPath”=”\\\\{SERVER}\\Diablo II\\”
“Program”=”\\\\{SERVER}\\Diablo II\\Diablo II.exe”
“Save Path”=”\\\\{SERVER}\\Diablo II\\save\\”
Save this file to the Diablo II directory as “REG FIX.reg” without quotes.
Go on to the computer that you want to play Diablo II on. Open My Network Places and view all computers on the network. Connect to the computer with Diablo II and open the share folder Diablo II. Run the file “REG FIX.reg” and right click drag the “diablo II.exe” file to your desktop and click create shortcut. You can rename the file to something more appealing. Now you should run the video test so you get the best performance from the game. Just run “D2VidTst.exe” in the Diablo II folder and follow the steps.
Finished
Now you are done. Repeat step 3 on all of the computers you want to play Diablo II on, you don’t need to recreate the registry file as the settings should be the same on all computers.
Extras
If you want to copy your existing character to the new Diablo II open your current installation folder (most likely C:\Program Files\Diablo II\) and open the folder called save. Copy the file {character name}.d2s replacing {character name} with the name of your character, for example “ben.d2s”. The other files are not required so don’t copy them. Paste the files in the new locations saved folder, example \\d2server\Diablo II\ save\.
Share and Enjoy:
  • email
  • Facebook
  • del.icio.us
  • Digg
  • StumbleUpon
  • Twitter
  • Google Bookmarks
  • Live
  • MySpace