News:

MFG's Character of the Month: October 2026 Voting

Main Menu

Linux user help

Started by Laxxe23, May 01, 2009, 10:37:15 AM

Previous topic - Next topic

Laxxe23

basically the shades team has hit a small snag, our host wont allow us to upload files over a certain size onto our site,
and the game happens to be past that size.  we found a way to upload the game, but it involves something like this


Quote from: dandaman32


Warning: While this does not strictly violate the TOS (to the best of my knowledge, at least) it does involve a "hack" and is recommended only for those who know what they're doing. This guide assumes that you are running Linux or another system which has the dd utility. Suck it up Windows users.

OK, so the hack basically involves this:
  • Pack all your files into one zip file
  • Open a shell and use the dd command to split the file into as many parts as you need to:
[you@yourbox:~]$ dd if=file.zip of=file.1.zip bs=1048576 count=1
[you@yourbox:~]$ dd if=file.zip of=file.2.zip bs=1048576 count=1 start=1
[you@yourbox:~]$ dd if=file.zip of=file.3.zip bs=1048576 count=1 start=2
    etc...
  • Upload each part to 110MB
  • Use a simple PHP script to concatenate the zip file fragments (change $num_fragments):
<?php
$f
= fopen('file.zip', 'w');
$num_fragments = 3;
for (
$i = 1; $i <= $num_fragments; $i++ ) {
 
fwrite($f, file_get_contents("file.$i.zip"));
}
fclose($f);
  • The full-size file should now be in 110mb's file manager. Hit unzip.
Hope this makes setting up a site a little easier...

--dandaman32

ie windows users are screwed,
we need someone to help us with this,
so anyone want to give it a shot?

btw you will get shades 1.5 since you will be the only one that will be able to upload it correctly. 
Shades 2 site:Shades of Manhattan

tunglashor


Laxxe23

#2
thanks
but

either vista sucks, or i cant figured out what to do, i tried command prompt and that didnt work

edit - forgot to read the manual, apparently i wasnt linked to everything :P
Shades 2 site:Shades of Manhattan