KGS on Ubuntu

Comments, questions, rants, etc, that are specifically about KGS go here.
Marathon
Dies with sente
Posts: 78
Joined: Sun Mar 03, 2013 1:25 pm
GD Posts: 0
Has thanked: 16 times
Been thanked: 21 times

Re: KGS on Ubuntu

Post by Marathon »

By the way, should have mentioned I use KDE.

Here is what I see if I choose to view the subdirectory branch
Attachments
Screenshot_20180315_121827.png
Screenshot_20180315_121827.png (18.47 KiB) Viewed 59341 times
a1872
Beginner
Posts: 6
Joined: Sun Jul 19, 2015 2:24 pm
GD Posts: 0

Re: KGS on Ubuntu

Post by a1872 »

I am trying to follow zwim's good instructions, but:

Maybe I'm one with the archives problem--I tried

Code: Select all

sudo tar xvzf jdk-8u172-linux-x64.tar.gz /opt/java/x64


and got the reply

Code: Select all

tar: /opt/java/x64: Not found in archive
tar: Exiting with failure status due to previous errors


I included a screenshot displaying that the mkdir opt/java/x64 was successful and showing the jre and jdk files in ~/Download. Since I'm contacting about this issue, I figured I'd just ask what the -p does?

I was wondering if I can skip installing the downloaded files jre or jdk and install the package "openjdk-9-jre-headless"--will CGoban run on that? The screenshot shows this software not installed. Does it matter if I use jre--I'm not a developer.

If I can just install the aforementioned package, can I just continue with the steps after "Download the .jar file from KGS https://www.gokgs.com/"?
Attachments
tar error jdk 172.png
tar error jdk 172.png (182.02 KiB) Viewed 58921 times
install jdk 9 jre and grep.png
install jdk 9 jre and grep.png (216.65 KiB) Viewed 58921 times
vier
Dies with sente
Posts: 91
Joined: Wed Oct 30, 2013 7:04 am
GD Posts: 0
Has thanked: 8 times
Been thanked: 29 times

Re: KGS on Ubuntu

Post by vier »

a1872 wrote:I tried

Code: Select all

sudo tar xvzf jdk-8u172-linux-x64.tar.gz /opt/java/x64

and got the reply

Code: Select all

tar: /opt/java/x64: Not found in archive

That command means: extract the file /opt/java/x64 from the archive jdk-8u172-linux-x64.tar.gz.
Perhaps you hoped that it would mean: extract the contents of the archive into the given directory.

You can cd to the directory, check with tar t that there are no absolute pathnames in the archive,
and extract.

If you are on Ubuntu, or any such distribution that keeps track of what is installed and where, installing stuff on your own will corrupt the system. Either use official packages, or install under your own home directory.

mkdir a will create a; mkdir -p a/b/c will not only create a/b/c but also all required directories leading up to that.
a1872
Beginner
Posts: 6
Joined: Sun Jul 19, 2015 2:24 pm
GD Posts: 0

Re: KGS on Ubuntu

Post by a1872 »

Code: Select all

sudo tar xvzf jdk-8u172-linux-x64.tar.gz /opt/java/x64


That command means: extract the file /opt/java/x64 from the archive jdk-8u172-linux-x64.tar.gz.
Perhaps you hoped that it would mean: extract the contents of the archive into the given directory.


I don't quite understand--an archive is a type of file where files are grouped under a single filename--so are you saying that this unintended command is searching the single filename jdk-8u. and trying to pull out the individual file /opt/java/x64? Switching the names around wouldn't fix the command because /opt/java/x64 is not a file buried within? Why would this code even be typed?

I was thinking of installing the JDK 10 released by Oracle's website, as mentioned in the previous post (http://www.oracle.com/technetwork/java/javase/downloads/)

The instructions seem pretty easy.

Can you advise on how the superseding situation works?; I thought it was bad to have different Java versions installed, with the older ones being a security risk and needing to be removed. If I remove it, will everything still run? Will cgoban run on JDK 10?

How do I know what to change the Exec line of the following code to with the file being: openjdk-10.0.1_linux-x64_bin.tar.gz and extracted in /opy/java/x64? That location isn't being used and was created earlier.

Code: Select all

Exec=/opt/java/x64/jdk1.8.0_121/bin/java -jar /opt/kgs/cgoban.jar 



I've used Ubuntu since XP EOL'd--I have Ubuntu Mate 17.10.
dstromberg
Beginner
Posts: 2
Joined: Mon Aug 07, 2023 5:08 pm
Rank: KGS 3 kyu
GD Posts: 0

Re: KGS on Ubuntu

Post by dstromberg »

I put a small cgoban3 installation script at https://stromberg.dnsalias.org/~strombr ... l-cgoban3/

It appears to work well on Debian-based (So Debian, Ubuntu, Mint, PopOS, etcetera), Redhat-based (RHEL, Fedora, CentOS, etcetera), Arch-based (So Arch, Manjaro, etcetera) and others to a lesser extent (including at least OpenSUSE).

You may still find yourself needing to upgrade your JRE/JDK though.
Post Reply