Linux freeorion executable

Questions, problems and discussion about compiling FreeOrion.

Moderators: Oberlus, Oberlus

Message
Author
sebar
Space Floater
Posts: 15
Joined: Tue Mar 26, 2013 11:44 am

Re: Linux freeorion executable

#91 Post by sebar » Thu Mar 28, 2013 7:29 am

Thanks a lot for the update option! But why doesn't it work with sudo and I have to be superuser?
Cheers!

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Linux freeorion executable

#92 Post by Nagilum » Thu Mar 28, 2013 12:22 pm

sebar wrote:Thanks a lot for the update option! But why doesn't it work with sudo and I have to be superuser?
Cheers!
It does also work with sudo of course.
Its just a little more cumbersome ihmo.

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Linux freeorion executable

#93 Post by Nagilum » Fri Mar 29, 2013 4:26 am

Updated build to 5909. The original post has updated links to all the updated files. If you subscribed to the repo the update should show up automatically. Just remember that old savegames may not load in newer versions!

User avatar
shadowwraith
Space Floater
Posts: 28
Joined: Tue Jan 29, 2013 3:05 pm
Location: Scotland

Re: Linux freeorion executable

#94 Post by shadowwraith » Sat Mar 30, 2013 10:26 pm

Nagilum wrote:Allright,
I managed to set up a repo today.
Nothing in there but the freeorion debs. In order to use it do:

Code: Select all

echo 'deb http://www.nagilum.org/repo/ freeorion main' >>/etc/apt/sources.list.d/freeorion.list
curl http://nagilum.org/repo/orion@nagilum.org.key.asc|apt-key add -
After that for installing:

Code: Select all

apt-get update
apt-get install freeorion
And any updates should show up automagically...

Nagilum the command line string you posted above does not work ass the >> triggers a permission denied error even if sudo us used before echo

instead to add a repo via terminal use

Code: Select all

sudo apt-add-repository 'deb http://www.nagilum.org/repo/ freeorion main'
also the line

Code: Select all

curl http://nagilum.org/repo/orion@nagilum.org.key.asc|apt-key add
returns (with a separate curl package install)

Code: Select all

shadowwraith@localhost:~$ sudo curl http://nagilum.org/repo/orion@nagilum.org.key.asc|apt-key add
ERROR: This command can only be used by root.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1752  100  1752    0     0  10361      0 --:--:-- --:--:-- --:--:-- 20857
you need to post your public key otherwise users are going to get constant "Not authenticated" complaints from apt/synaptic or Software centre.

Other than that the game runs perfectly, although there is an interface niggle but i'll post that elsewhere in case a certain admin tries to complain.

Regards

Shadowwraith

User avatar
Bigjoe5
Designer and Programmer
Posts: 2058
Joined: Tue Aug 14, 2007 6:33 pm
Location: Orion

Re: Linux freeorion executable

#95 Post by Bigjoe5 » Sun Mar 31, 2013 1:56 am

shadowwraith wrote:Nagilum the command line string you posted above does not work ass the >> triggers a permission denied error even if sudo us used before echo
Now that you mention it, that line didn't work for me either, even as su. So instead I just fired up gedit as the superuser and added the line manually. :lol:
Warning: Antarans in dimensional portal are closer than they appear.

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Linux freeorion executable

#96 Post by Nagilum » Sun Mar 31, 2013 12:03 pm

Ok, updated the instructions to work with sudo.

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Linux freeorion executable

#97 Post by Nagilum » Sun Mar 31, 2013 5:38 pm

shadowwraith wrote:
Nagilum wrote:Allright,
I managed to set up a repo today.
Nothing in there but the freeorion debs. In order to use it do:

Code: Select all

echo 'deb http://www.nagilum.org/repo/ freeorion main' >>/etc/apt/sources.list.d/freeorion.list
curl http://nagilum.org/repo/orion@nagilum.org.key.asc|apt-key add -
After that for installing:

Code: Select all

apt-get update
apt-get install freeorion
And any updates should show up automagically...
Nagilum the command line string you posted above does not work ass the >> triggers a permission denied error even if sudo us used before echo
It works if you do it as root as I implied.
shadowwraith wrote:

Code: Select all

shadowwraith@localhost:~$ sudo curl http://nagilum.org/repo/orion@nagilum.org.key.asc|apt-key add
ERROR: This command can only be used by root.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1752  100  1752    0     0  10361      0 --:--:-- --:--:-- --:--:-- 20857
Again you misunderstand what is/needs to be done by sudo. The curl does not require root, the apt-key needs it. Unfortunately this pipe with sudo in front of apt-key will not work either because the curl output gets swallowed by sudo it seems.
shadowwraith wrote:you need to post your public key otherwise users are going to get constant "Not authenticated" complaints from apt/synaptic or Software centre.
Posted the key to http://pgp.mit.edu/ - not sure how this will help but no harm in trying..

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Linux freeorion executable

#98 Post by Nagilum » Sat Apr 06, 2013 10:30 pm

Updated builds to rev 5951.

User avatar
shadowwraith
Space Floater
Posts: 28
Joined: Tue Jan 29, 2013 3:05 pm
Location: Scotland

Re: Linux freeorion executable

#99 Post by shadowwraith » Fri Apr 12, 2013 2:17 pm

Nagilum have you changed your repo?, as apt is now returning the following error whenever i run apt-get update
Failed to fetch http://www.nagilum.org/repo/dists/freeorion/Release Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file)
Some index files failed to download. They have been ignored, or old ones used instead.

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Linux freeorion executable

#100 Post by Nagilum » Fri Apr 12, 2013 2:43 pm

shadowwraith wrote:Nagilum have you changed your repo?, as apt is now returning the following error whenever i run apt-get update
Yes, a few months back.
shadowwraith wrote:
Failed to fetch http://www.nagilum.org/repo/dists/freeorion/Release Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file)
Some index files failed to download. They have been ignored, or old ones used instead.
I think this means you have a "deb-src http://www.nagilum.org/repo/ freeorion main" line in your sources.list.
Just remove that and you should be good.
At the moment I don't provide any sources so when I recreated the repo I didn't include that section.
Last edited by Nagilum on Tue Apr 16, 2013 7:41 am, edited 1 time in total.

User avatar
santa_klausi
Space Krill
Posts: 8
Joined: Sat Mar 30, 2013 3:50 pm
Location: Hannover, Germany

Re: Linux freeorion executable

#101 Post by santa_klausi » Tue Apr 16, 2013 6:52 am

shadowwraith:
If you add the repository via

Code: Select all

sudo apt-add-repository
as you suggested, it automatically adds the source repository as well. So you have to delete it manually or do it the way nagilum suggests.

EDIT:
Thanks a lot for this rep! It looks like its running fine on my system (Linux Mint 14 64bit with Intel graphics), even sound is working (which wasn´t the case with the chrooted version). One funny thing i noticed is that when i use alt+tab to go out of the window, it duplicates my mouse pointer.

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Linux freeorion executable

#102 Post by Nagilum » Wed Apr 17, 2013 5:46 am

Updated to builds to rev 5983.
Remember that your savegames may not to load any more with the updated version!

User avatar
Vezzra
Release Manager, Design
Posts: 4965
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

Re: Linux freeorion executable

#103 Post by Vezzra » Wed Apr 17, 2013 6:57 am

Nagilum wrote:Updated to builds to rev 5983.
Tried to download the new build via the link in the original post, but got the following error message:

Code: Select all

Not Found

The requested URL /FreeOrion-5983-Linux-Test.tar.xz was not found on this server.

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Linux freeorion executable

#104 Post by Nagilum » Wed Apr 17, 2013 7:30 am

Oops, sorry, I uploaded it into the wrong directory.
Please try again now.

redhound
Space Krill
Posts: 7
Joined: Sat Dec 24, 2011 5:30 pm

Re: Linux freeorion executable

#105 Post by redhound » Thu Apr 18, 2013 5:47 am

Thanks for a Naglium repo! It's time to play FreeOrion in Debian / Ubuntu! :D

I was trying to compile and run FreeOrion on my Ubuntu x86_64 quite some time, with no success.
Windows version on wine is almost playable, but freezes 100% times on quickplay and savegame load.
And using x86 VM's is not best option to run games.

The script I've used:

Code: Select all

sudo apt-add-repository 'deb http://www.nagilum.org/repo/ freeorion main'
curl http://nagilum.org/repo/orion@nagilum.org.key.asc > ~freeorion.key
sudo apt-key add ~freeorion.key
rm -f ~freeorion.key
sudo apt-get update
sudo apt-get install freeorion
The only thing I've done manually is disabling source code part of Naglium repo using Synaptic (don't know how to do it in a script).

Post Reply