It is currently Tue Aug 22, 2017 9:07 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
Offline
 Post subject: KGS on Ubuntu
Post #1 Posted: Fri Sep 16, 2016 12:31 am 
Dies in gote

Posts: 60
Location: Whitehorse, Yukon Territory
Liked others: 8
Was liked: 18
Rank: CGA 8 kyu
Universal go server handle: Yukontodd
Online playing schedule: Find me on OGS these days.
I wrote up instructions for how to install the cgoban KGS client on Ubuntu on my blog that might be of interest. The information on the KGS website is sketchy, outdated, and contradictory, and I didn't find any other instructions around, so I thought what the heck...

http://goingshodan.com/how-to-install-k ... ntu-linux/

I hope it helps someone!

_________________
I write Go-ing Shodan, a blog about trying to get through the sdk's. If you want to check it out, tenuki.


This post by Yukontodd was liked by 2 people: daal, Drew
Top
 Profile  
 
Offline
 Post subject: Re: KGS on Ubuntu
Post #2 Posted: Tue Feb 21, 2017 10:02 am 
Beginner

Posts: 5
Liked others: 0
Was liked: 1
Rank: KGS 1 dan
Online playing schedule: Twitch game reviews Saturdays 11AM EST
I know this is old, just wanna say thanks! I'm a recent Linux convert (running ElementaryOS). Gonna try this!

Top
 Profile  
 
Offline
 Post subject: Re: KGS on Ubuntu
Post #3 Posted: Tue Feb 21, 2017 6:18 pm 
Lives in gote

Posts: 647
Location: Littleton, CO
Liked others: 230
Was liked: 188
Rank: KGS 4k
Universal go server handle: jeromie
A couple notes from recent experience:
  • At least on Ubuntu 16.04, the default jre (OpenJDK) doesn't place nicely with cgoban.jar. These instructions for installing the Oracle Java runtime are helpful and accurate: https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04. At this point, Java 8 would be the best choice.
  • On Ubuntu, if you set the jar file as executable (via right click or the chmod command mentioned in the article) you can double click it to launch the file and it knows to use whichever Java installation is your current default. If you've got multiple versions of Java installed, you can set your default version via the following command: sudo update-alternatives --config java
  • cgoban.jar doesn't contain an interesting icon, but you can change that. In Ubuntu with Unity that's a simple right-click operation; there's probably something similar on your distribution.

Top
 Profile  
 
Offline
 Post subject: Re: KGS on Ubuntu
Post #4 Posted: Wed Feb 22, 2017 6:38 pm 
Lives in gote
User avatar

Posts: 543
Liked others: 38
Was liked: 120
Rank: 6-7k KGS
Quote:
On Ubuntu, if you set the jar file as executable (via right click or the chmod command mentioned in the article) you can double click it to launch the file and it knows to use whichever Java installation is your current default.

I've got Linux Mint, and I can't right-click to set the .jar file as an executable. Every time I try to open it, I get a folder with a bunch of stuff in it.

And right-clicking also doesn't give me the option to open with Java. Apparently I have to extract it and hope that it doesn't screw up overwriting the old version.

Top
 Profile  
 
Offline
 Post subject: Re: KGS on Ubuntu
Post #5 Posted: Wed Feb 22, 2017 8:50 pm 
Lives in gote

Posts: 647
Location: Littleton, CO
Liked others: 230
Was liked: 188
Rank: KGS 4k
Universal go server handle: jeromie
Don't extract it! It's an executable jar, not meant to be unzipped like an archive.

Apparently with Cinnamon (the default GUI for Mint), the process is a little more involved. You can do the following to make it possible to double click it to execute:

Right click the file > Open With > Other application > At the bottom is a place where you can set your own command, enter: java -jar
Then click on Set as default.

Note: That answer came from a bit of googling; I don't have the latest version of Mint in front of me right now, so I haven't tried this on my own. I can easily get it up and running, though, so if you have more problems I'm happy to help.


This post by jeromie was liked by: Drew
Top
 Profile  
 
Offline
 Post subject: Re: KGS on Ubuntu
Post #6 Posted: Thu Feb 23, 2017 2:42 pm 
Lives in gote
User avatar

Posts: 543
Liked others: 38
Was liked: 120
Rank: 6-7k KGS
Thanks! That worked!


This post by Fedya was liked by: jeromie
Top
 Profile  
 
Offline
 Post subject: Re: KGS on Ubuntu
Post #7 Posted: Thu Feb 23, 2017 3:34 pm 
Beginner

Posts: 8
Liked others: 0
Was liked: 2
Rank: 5k
I've already written a tuto on another thread, I will move it here.
Can you change the topic name from Ubuntu to Linux ?


Last edited by zwim on Thu Feb 23, 2017 3:36 pm, edited 1 time in total.
Top
 Profile  
 
Offline
 Post subject: Re: KGS on Ubuntu
Post #8 Posted: Thu Feb 23, 2017 3:36 pm 
Beginner

Posts: 8
Liked others: 0
Was liked: 2
Rank: 5k
The latest CGoban 3.5.22 seems to have been compiled for java 8, so it won't run directly on some platforms that have java 7 or the corresponding IcedTea for that matter as default.
It is not necessary to install java 8 as a package, you can just download the JDK and run CGoban on it.

So here is the step by step if you are in this case : (in the following I assume, you are in your $HOME and download stuff there)

If you already have java8 skip this.
Download the latest JDK from http://www.oracle.com/technetwork/java/javase/downloads/

Code:
$ sudo mkdir -p /opt/java/x64
$ sudo tar xvzf jdk-8u121-linux-x64.tar.gz /opt/java/x64/


Download the .jar file from KGS https://www.gokgs.com/

Code:
$ sudo mkdir -p /opt/kgs
$ sudo cp cgoban.jar /opt/kgs
$ unzip -p /opt/kgs/cgoban.jar org/igoweb/igoweb/client/images/icon.png | sudo tee /opt/kgs/icon.png >/dev/null



To install on the desktop (Gnome)
If you already have javea8 chnage the line to : Exec=java -jar /opt/kgs/cgoban.jar

Code:
$ cd ~/Bureau (or ~/Desktop)
$ vi cgoban.desktop

[Desktop Entry]
Name=CGoban
Exec=/opt/java/x64/jdk1.8.0_121/bin/java -jar /opt/kgs/cgoban.jar
Type=Application
StartupNotify=false
Comment=CGoban 3.5.22
Icon=/opt/kgs/icon.png


You should be good (at least if you are not the ones who are unlucky to have an additionnal issue with their archives, anyway you should be able to log as a guest).

Top
 Profile  
 
Offline
 Post subject: Re: KGS on Ubuntu
Post #9 Posted: Thu Feb 23, 2017 3:56 pm 
Lives in gote

Posts: 647
Location: Littleton, CO
Liked others: 230
Was liked: 188
Rank: KGS 4k
Universal go server handle: jeromie
zwim, I'm sure that information will help someone, but I'm curious: why go through the effort to avoid upgrading the default JRE to Java 8?

Top
 Profile  
 
Offline
 Post subject: Re: KGS on Ubuntu
Post #10 Posted: Thu Feb 23, 2017 5:08 pm 
Oza
User avatar

Posts: 2725
Location: Seattle, WA
Liked others: 248
Was liked: 540
KGS: oren
Tygem: oren740, orenl
IGS: oren
Wbaduk: oren
I made an ubuntu package for cgoban similar to the windows/mac ones that package a jre with it. Would it be useful for anybody if it was generally available?

Top
 Profile  
 
Offline
 Post subject: Re: KGS on Ubuntu
Post #11 Posted: Thu Feb 23, 2017 8:15 pm 
Beginner

Posts: 8
Liked others: 0
Was liked: 2
Rank: 5k
@Jeromie

This is why I asked for the post to be renamed Linux in general, not all people have Ubuntu and even though they don't necessarily have the same version of Ubuntu.

In fact I'm running LMDE2 and by default this is java7 installed and the packages for java8 are not available nor ppa.
Of course I could create a .deb package from jdk-8.121 with java-package but I prefer not to mess up with the system, since it is possible to just put it in /opt.

This is likely that other people have the same issue with Java so I put it in the tuto.
If you have already java8 or can install it via regular packages then you can skip the java section.


This post by zwim was liked by: jeromie
Top
 Profile  
 
Offline
 Post subject: Re: KGS on Ubuntu
Post #12 Posted: Thu Feb 23, 2017 9:42 pm 
Lives in gote

Posts: 647
Location: Littleton, CO
Liked others: 230
Was liked: 188
Rank: KGS 4k
Universal go server handle: jeromie
Makes sense. I didn't know there were distros without Java 8 readily available. Thanks for taking the time to explain!

Top
 Profile  
 
Offline
 Post subject: Re: KGS on Ubuntu
Post #13 Posted: Wed May 10, 2017 6:32 pm 
Beginner

Posts: 1
Liked others: 0
Was liked: 0
Hey, just a heads up that your whole domain is redirecting to http://goingshodan.com/cgi-sys/suspendedpage.cgi

It's happening on my desktop and laptop, so I think it's on your end.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group