It seems to me the launcher doesn't work in linux? I had to use the jar file which gives 64M only...
Any help is welcome! Thanks!
Chaoz
MT and linux
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
- hyperactiveChipmunk
- Cave Troll
- Posts: 99
- Joined: Wed Apr 15, 2009 8:19 pm
Re: MT and linux
Just edit the shell script/command you use to launch the .jar. One of the options set on the command line is the allotted memory. For instance, for maximum 1024MB memory and 2M stack size:
-hC
Code: Select all
java -Xmx1024M -Xss2M -jar maptool-*.jar run
Re: MT and linux
You also have to set the "execute" flag on the .sh file. If you are using Ubuntu you can do this by right clicking on the Launch MapTool.sh and click on Properties then in the Properties window, click on the Permissions tab and make sure that the Execute checkbox is checked.
-
- Giant
- Posts: 249
- Joined: Mon Apr 20, 2009 9:31 pm
Re: MT and linux
From the shell/terminal, the commandmccord42 wrote:You also have to set the "execute" flag on the .sh file. If you are using Ubuntu you can do this by right clicking on the Launch MapTool.sh and click on Properties then in the Properties window, click on the Permissions tab and make sure that the Execute checkbox is checked.
chmod +x <name of file>
also sets the executable flag for the script, usable on any version of Linux. See man chmod for details.
Re: MT and linux
I usually recommend:Akodo Makama wrote:From the shell/terminal, the command
chmod +x <name of file>
also sets the executable flag for the script, usable on any version of Linux. See man chmod for details.
chmod a+x filename
because using "a+x" is portable to more different variations of the Unix operating system than just Linux.
Re: MT and linux
I put the maptool file in the root of my home user folder, rename the .sh file to map.sh. Then I open a terminal and run the command "sh map.sh". This is after making the file executable. I use ubuntu 9.4
Noel
Noel
Re: MT and linux
Yeah, if you execute the shell directly (sh) and then provide it the name of the script on the command line (map.sh or what have you), then the script doesn't need to be made executable at all.noelvh wrote:I put the maptool file in the root of my home user folder, rename the .sh file to map.sh. Then I open a terminal and run the command "sh map.sh". This is after making the file executable. I use ubuntu 9.4
Noel
I have written a script to execute on the RPTools main web site that will unpack the two Un*x scripts (the *.sh and *.command files), add execute permission, then put them back into the ZIP file. My tests show that this preserves the execute permission (as shown both by executing zipinfo -l on the ZIP file and by simply downloading the file and unpacking it). (I'm working on a way for this to be automatically executed on new ZIP files.)
In addition, I sent Trevor a ZIP file to use as a template that already has the correct permissions on the files -- if he adds to the ZIP, the permissions on the existing files should be preserved. So the previous paragraph is mostly a stopgap until the build process takes an existing ZIP file into account or some other technique is found.