Page 7 of 8

Re: Linux freeorion executable

Posted: Thu Mar 28, 2013 7:29 am
by sebar
Thanks a lot for the update option! But why doesn't it work with sudo and I have to be superuser?
Cheers!

Re: Linux freeorion executable

Posted: Thu Mar 28, 2013 12:22 pm
by Nagilum
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.

Re: Linux freeorion executable

Posted: Fri Mar 29, 2013 4:26 am
by Nagilum
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!

Re: Linux freeorion executable

Posted: Sat Mar 30, 2013 10:26 pm
by shadowwraith
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/[email protected]|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/[email protected]|apt-key add
returns (with a separate curl package install)

Code: Select all

[email protected]:~$ sudo curl http://nagilum.org/repo/[email protected]|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

Re: Linux freeorion executable

Posted: Sun Mar 31, 2013 1:56 am
by Bigjoe5
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:

Re: Linux freeorion executable

Posted: Sun Mar 31, 2013 12:03 pm
by Nagilum
Ok, updated the instructions to work with sudo.

Re: Linux freeorion executable

Posted: Sun Mar 31, 2013 5:38 pm
by Nagilum
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/[email protected]|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

[email protected]:~$ sudo curl http://nagilum.org/repo/[email protected]|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..

Re: Linux freeorion executable

Posted: Sat Apr 06, 2013 10:30 pm
by Nagilum
Updated builds to rev 5951.

Re: Linux freeorion executable

Posted: Fri Apr 12, 2013 2:17 pm
by shadowwraith
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.

Re: Linux freeorion executable

Posted: Fri Apr 12, 2013 2:43 pm
by Nagilum
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.

Re: Linux freeorion executable

Posted: Tue Apr 16, 2013 6:52 am
by santa_klausi
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.

Re: Linux freeorion executable

Posted: Wed Apr 17, 2013 5:46 am
by Nagilum
Updated to builds to rev 5983.
Remember that your savegames may not to load any more with the updated version!

Re: Linux freeorion executable

Posted: Wed Apr 17, 2013 6:57 am
by Vezzra
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.

Re: Linux freeorion executable

Posted: Wed Apr 17, 2013 7:30 am
by Nagilum
Oops, sorry, I uploaded it into the wrong directory.
Please try again now.

Re: Linux freeorion executable

Posted: Thu Apr 18, 2013 5:47 am
by redhound
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/[email protected] > ~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).