By the way, should have mentioned I use KDE.
Here is what I see if I choose to view the subdirectory branch
KGS on Ubuntu
Re: KGS on Ubuntu
I am trying to follow zwim's good instructions, but:
Maybe I'm one with the archives problem--I tried
and got the reply
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/"?
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 errorsI 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 (182.02 KiB) Viewed 58945 times
-
- install jdk 9 jre and grep.png (216.65 KiB) Viewed 58945 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
That command means: extract the file /opt/java/x64 from the archive jdk-8u172-linux-x64.tar.gz.a1872 wrote:I triedCode: Select all
sudo tar xvzf jdk-8u172-linux-x64.tar.gz /opt/java/x64
and got the replyCode: Select all
tar: /opt/java/x64: Not found in archive
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.
Re: KGS on Ubuntu
Code: Select all
sudo tar xvzf jdk-8u172-linux-x64.tar.gz /opt/java/x64
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?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 was thinking of installing the JDK 10 released by Oracle's website, as mentioned in the previous post (http://www.oracle.com/technetwork/java/ ... 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
-
dstromberg
- Beginner
- Posts: 2
- Joined: Mon Aug 07, 2023 5:08 pm
- Rank: KGS 3 kyu
- GD Posts: 0
Re: KGS on Ubuntu
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.
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.