Pages

Showing posts with label minecraft. Show all posts
Showing posts with label minecraft. Show all posts

Tuesday, July 28, 2020

Fedora 32 : Play Minecraft with TLauncher.

Today I will show you how you can install java and use TLauncher to play Minecraft game on Fedora 32.
You need to have version Java 9 or 10 in order to use this software.
First, download the archive from the official website.
Create a folder name and unzip it into this folder and use these commands:
[mythcat@desk TLauncher]$ ls
README-EN.txt  README-RUS.txt  TLauncher-2.72.jar
[mythcat@desk TLauncer]$ sudo su 
[root@desk TLauncher]# dnf list java* | grep openjdk-devel
java-latest-openjdk-devel.x86_64                  1:14.0.1.7-2.rolling.fc32        @updates
java-1.8.0-openjdk-devel.x86_64                   1:1.8.0.262.b10-1.fc32           updates 
java-1.8.0-openjdk-devel-slowdebug.i686           1:1.8.0.262.b10-1.fc32           updates 
java-1.8.0-openjdk-devel-slowdebug.x86_64         1:1.8.0.262.b10-1.fc32           updates 
java-11-openjdk-devel.i686                        1:11.0.8.10-2.fc32               updates 
java-11-openjdk-devel.x86_64                      1:11.0.8.10-2.fc32               updates 
java-11-openjdk-devel-slowdebug.x86_64            1:11.0.8.10-2.fc32               updates 
java-latest-openjdk-devel.i686                    1:14.0.1.7-2.rolling.fc32        updates 
java-latest-openjdk-devel-slowdebug.x86_64        1:14.0.1.7-2.rolling.fc32        updates 
[root@desk TLauncher]# dnf install java-11-openjdk.x86_64
Last metadata expiration check: 0:09:17 ago on Tue 28 Jul 2020 09:33:24 PM EEST.
Dependencies resolved.
=====================================================================================================================
 Package                              Architecture       Version                           Repository           Size
=====================================================================================================================
Installing:
 java-11-openjdk                      x86_64             1:11.0.8.10-2.fc32                updates             251 k
Installing dependencies:
 java-11-openjdk-headless             x86_64             1:11.0.8.10-2.fc32                updates              38 M
 ttmkfdir                             x86_64             3.0.9-58.fc32                     fedora               58 k
 xorg-x11-fonts-Type1                 noarch             7.5-24.fc32                       fedora              500 k

Transaction Summary
=====================================================================================================================
Install  4 Packages

Total download size: 39 M
Installed size: 173 M
Is this ok [y/N]: y
...
[root@desk TLauncher]# sudo alternatives --config java

There are 4 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
   1           /opt/jdk1.8.0_232/bin/java
   2           /opt/jdk1.8.0_201/bin/java
*+ 3           java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-1.fc32.x86_64/jre/bin/java)
   4           java-11-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64/bin/java)

Enter to keep the current selection[+], or type selection number: 4
[root@desk TLauncher]# export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64/
[root@desk TLauncher]# echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86
[root@desk TLauncher]# java -version
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment 18.9 (build 11.0.8+10)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.8+10, mixed mode, sharing)
Now you can start the program:
[mythcat@desk TLauncher]$ sudo java -jar TLauncher-2.72.jar

-------------------------------------------------------------------
run double running protection
[Downloader2] Loaded configuration: normal
[Downloader2] Files in queue 15
[Downloader2] Starting download 15 files...
...
The last command will run the software and you will able to play the game.

Saturday, December 28, 2019

Fedora 31 : Run Minecraft game on Fedora distro.

To install and play the Minecraft game you need to install Java both versions JRE and JDK.
You need to buy or use only redeem codes from Minecraft Java Edition.
[root@desk mythcat]# cd minecraft-launcher/
[root@desk minecraft-launcher]# dnf install java-latest-openjdk
[root@desk minecraft-launcher]# dnf install java-latest-openjdk-devel
The game can download it from here.
I download the Minecraft.tar.gz file and I unarchive into my folder named minecraft-launcher.
After that I run this command to play the game:
[mythcat@desk minecraft-launcher]$ ./minecraft-launcher 
which: no java in (/home/mythcat/google-cloud-sdk/bin:/home/mythcat/.local/bin
:/home/mythcat/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin)
...