Pages: [1] 2
  Print  
Author Topic: Install script - Ubuntu  (Read 3249 times)
Offline (Unknown gender) freezway
Posted on: May 21, 2010, 04:47:39 PM

Member
Joined: Dec 2009
Posts: 220

View Profile
I made a script to auto install and run ENIGMA/LGM. It is designed for ubuntu, but should work on other linux systems if you replace the apt-get lines with your package manager's lines and packages.
Code: [Select]
sudo apt-get -yqq install build-essential libgl1-mesa-dev libopenal-dev zlib1g-dev subversion rapidsvn
cd ~
svn co https://enigma-dev.svn.sourceforge.net/svnroot/enigma-dev/trunk enigma
cd enigma
make
java -jar lgm16b4.jar
« Last Edit: August 17, 2010, 04:45:18 PM by IsmAvatar » Logged
if you drop a cat with buttered toast strapped to its back, which side lands down?
joshdreamland: our languages are based on the idea that it's going to end up FUBAR
/kick retep998
Offline (Male) Josh @ Dreamland
Reply #1 Posted on: May 21, 2010, 05:06:29 PM

Prince of all Goldfish
Developer
Location: Ohio, United States
Joined: Feb 2008
Posts: 2946

View Profile Email
Replace the sudo calls with one call to sudo su; or combine the install parameters.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Female) IsmAvatar
Reply #2 Posted on: May 21, 2010, 05:34:49 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 891

View Profile Email
Code: [Select]
sudo apt-get -yqq install build-essential libgl1-mesa-dev zlib1g-dev subversion rapidsvn
cd ~
svn co https://enigma-dev.svn.sourceforge.net/svnroot/enigma-dev/trunk enigma
cd enigma
make -C CompilerSource linux
java -jar lgm16b4.jar
« Last Edit: May 22, 2010, 01:37:55 PM by IsmAvatar » Logged
Offline (Unknown gender) freezway
Reply #3 Posted on: May 21, 2010, 05:46:52 PM

Member
Joined: Dec 2009
Posts: 220

View Profile
cool, i get a post in announcements! modifications made!
Logged
if you drop a cat with buttered toast strapped to its back, which side lands down?
joshdreamland: our languages are based on the idea that it's going to end up FUBAR
/kick retep998
Offline (Male) Josh @ Dreamland
Reply #4 Posted on: May 21, 2010, 09:56:26 PM

Prince of all Goldfish
Developer
Location: Ohio, United States
Joined: Feb 2008
Posts: 2946

View Profile Email
You know, as long as this script is for Linux, you may as well call my makefile generator script under CompilerSource/genmake.sh. It'll make sure the damn makefile is current. Would be convenient if SVN could call that thing before commit.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Female) IsmAvatar
Reply #5 Posted on: May 22, 2010, 01:01:48 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 891

View Profile Email
Maybe you should make a script

commit.sh
Code: [Select]
#!/bin/sh
./CompilerSource/genmake.sh
if [ $# = 0 ]; then
  svn ci
else
  svn ci -m $1
fi

./commit.sh "Fixed stuff"
or, if you don't want to provide a message
./commit.sh
Logged
Offline (Male) RetroX
Reply #6 Posted on: May 22, 2010, 05:03:56 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
I was working on a PKGBUILD for ENIGMA; let me go and look for it.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) RetroX
Reply #7 Posted on: May 22, 2010, 06:29:45 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Here's the PKGBUILD:
Code: [Select]
pkgname=enigma-dev
pkgver=238
pkgrel=1
pkgdesc="An open-source alternative to YoYoGame's Game Maker, written in C++."
arch=('i686' 'x86_64')
url="http://enigma-dev.org"
license=('GPL')
depends=('libgl' 'zlib')
makedepends=('pkgconfig' 'subversion')
sources=()
md5sums=()
_svntrunk=https://enigma-dev.svn.sourceforge.net/svnroot/enigma-dev/
_svnmod=enigma-dev

build() {
  svn co $_svntrunk
  mkdir $startdir/pkg/opt
  mkdir $startdir/pkg/opt/enigma
  cp -r $startdir/src/$_svnmod/trunk -T $startdir/pkg/opt/enigma
  cd $startdir/pkg/opt/enigma/CompilerSource

  rm -rf $(find $startdir/pkg | grep 'svn$')
  rm -rf '$startdir/pkg/opt/enigma/CompilerSource/.eobjs'

  mkdir $startdir/pkg/usr
  mkdir $startdir/pkg/usr/share
  mkdir $startdir/pkg/usr/share/pixmaps
  mkdir $startdir/pkg/usr/share/applications
  cp $startdir/pkg/opt/enigma/enigma.svg $startdir/pkg/usr/share/pixmaps
  cp $startdir/pkg/opt/enigma/enigma.desktop $startdir/pkg/usr/share/applications

  make linux || return 1
  }
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) kkg
Reply #8 Posted on: May 23, 2010, 08:06:51 AM

Member
Location: Australia
Joined: Nov 2009
Posts: 84
MSN Messenger - kamikazigames@gmail.com
View Profile Email
So I did a nice little manual install on my new Ubuntu 10.04 LTS PC. I try to run LGM and I get this:
Code: [Select]
cone-linux@cone-linuxpc:~/Desktop/enigma/enigma$ sudo java -jar lgm16b4.jar
Exception in thread "main" java.lang.ExceptionInInitializerError
   at java.lang.Class.initializeClass(libgcj.so.10)
Caused by: java.lang.NullPointerException
   at java.util.regex.Matcher.toMatchResult(libgcj.so.10)
   at java.util.Scanner.myCoreNext(libgcj.so.10)
   at java.util.Scanner.myPrepareForNext(libgcj.so.10)
   at java.util.Scanner.myNextInt(libgcj.so.10)
   at java.util.Scanner.nextInt(libgcj.so.10)
   at java.util.Scanner.nextInt(libgcj.so.10)
   at org.lateralgm.main.LGM.<clinit>(LGM.java:108)
   at java.lang.Class.initializeClass(libgcj.so.10)

What am I missing? :(
Logged
PC: Core i7-2600 @ 3.8ghz | 4x 4gb G.Skill RipjawZ DDR3-2000 | GTX580 | Win7 x64
Time is the greatest teacher, however it kills every single one of its pupils.
Offline (Male) RetroX
Reply #9 Posted on: May 23, 2010, 08:28:38 AM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Well, apparently, Ism can't check for null pointers.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Female) IsmAvatar
Reply #10 Posted on: May 23, 2010, 03:48:43 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 891

View Profile Email
kkg: run "java -version" and tell me the output.
Logged
Offline (Male) MahFreenAmeh
Reply #11 Posted on: May 23, 2010, 05:52:50 PM

sysadmin
"Web Team"
Location: Austin, TX
Joined: Apr 2008
Posts: 15
AOL Instant Messenger - sirmxe
View Profile WWW Email
Replace the sudo calls with one call to sudo su; or combine the install parameters.

youk now, there was only one sudo, right?

if he were to replace it with sudo su then he would also have to add exit at the end, essentially, to drop out of the administrative shell so as to keep the idiotic users less idiotic.
Logged
sys(tem)admin(istrator)
[java,c++,c,javascript,html,css,php,perl,ruby,python,sql]
if you've got ideas, let me hear them.
Offline (Male) Josh @ Dreamland
Reply #12 Posted on: May 23, 2010, 06:03:56 PM

Prince of all Goldfish
Developer
Location: Ohio, United States
Joined: Feb 2008
Posts: 2946

View Profile Email
He edited it. :P
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) RetroX
Reply #13 Posted on: May 23, 2010, 06:55:09 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Replace the sudo calls with one call to sudo su; or combine the install parameters.

youk now, there was only one sudo, right?

if he were to replace it with sudo su then he would also have to add exit at the end, essentially, to drop out of the administrative shell so as to keep the idiotic users less idiotic.
isn't that uh, automatic?

the shell is automatically exited upon ending the script
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) retep998
Reply #14 Posted on: May 23, 2010, 07:19:02 PM

Member
Location: Where else?
Joined: Jan 2010
Posts: 248
MSN Messenger - retep998@charter.net AOL Instant Messenger - retep998 Yahoo Instant Messenger - retep998
View Profile Email
Replace the sudo calls with one call to sudo su; or combine the install parameters.

youk now, there was only one sudo, right?

if he were to replace it with sudo su then he would also have to add exit at the end, essentially, to drop out of the administrative shell so as to keep the idiotic users less idiotic.
isn't that uh, automatic?

the shell is automatically exited upon ending the script
Unless they ran the script from within the shell.
Logged
Pages: [1] 2
  Print