USM GUI

Post here if you are a new Porteus member and you're looking for some help.
Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

USM GUI

Post#1 by Bogomips » 04 Jul 2014, 00:10

fanthom wrote:hi Bogomips,
a) for java please download following packages through USM:
- openjre
- icedtea-web
- cups
Trying openjre for starters. Out of search results chose an openjre for download. Then presented with list of packages dependent on cups lib. Deselected all excepting openjre and cups.

Using GUI Module Tools converted folder to xzm:

Code: Select all

root@porteus:/home/guest# ls -lh /tmp/xzm           
total 48M
-rw-r--r-- 1 root root 2.2M Jul  3 19:59 cups-1.5.4-i486-3.xzm
-rw-r--r-- 1 root root  44M Jul  3 19:59 openjre-7u51_b31-i486-2gv.xzm
-rw-r--r-- 1 root root  48K Jul  3 19:57 pycurl-7.19.0-i486-2.xzm
-rw-r--r-- 1 root root 432K Jul  3 19:57 pygobject-2.28.6-i486-2.xzm
-rw-r--r-- 1 root root 1.9M Jul  3 19:57 pygtk-2.24.0-i486-1.xzm
Module Tools 'Convert Folder to Module':

Code: Select all

guest@porteus:~$ ls -lh /tmp/xzm.xzm
-rw-r--r-- 1 root root 48M Jul  3 20:05 /tmp/xzm.xzm
Using Dolphin activated xzm.xzm, got 'Well Done' message, but no java to be found:

Code: Select all

find -name java
/tmp/usmunpacked/etc/java
/tmp/usmunpacked/usr/lib/java
/tmp/usmunpacked/usr/lib/java/jre/bin/java
/usr/lib/gcc/i486-slackware-linux/4.8.2/plugin/include/java
/mnt/live/memory/images/05-devel.xzm/usr/lib/gcc/i486-slackware-linux/4.8.2/plugin/include/java
Although listing of Module xzm.xzm has file /usr/lib/java/jre/bin/java

(Previously from Dolphin have successfully deactivated Opera in base, followed by activation of Firefox module in another partition, with Firefox working fine.)
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: USM GUI

Post#2 by brokenman » 04 Jul 2014, 01:09

Then the $PATH environment variable is not being passed.

Try opening a terminal and typing:

Code: Select all

PATH=$PATH:/usr/lib/java/jre/bin
Then test your java again from this terminal session. You will need to make this permanent.

Code: Select all

echo "export PATH=$PATH:/usr/lib/java/jre/bin" > /etc/profile.d/java.sh
chmod +x /etc/profile.d/java.sh
I would also export $JAVA_HOME for safe keeping.

Code: Select all

echo "export JAVA_HOME=/usr/lib/java" >> /etc/profile.d/java.sh
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: USM GUI

Post#3 by fanthom » 04 Jul 2014, 07:25

Module Tools 'Convert Folder to Module':
i have the impression that you have converted a folder full of modules into one big module which makes no sense.
you should activate all xzm modules from /tmp/xzm instead.
Please add [Solved] to your thread title if the solution was found.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: USM GUI

Post#4 by Bogomips » 04 Jul 2014, 17:09

Just wanted to see if this was possible in one fell swoop ;) When the 'Well Done' message came through, thought it should have worked ... Anyways more than one way to skin a cat. Selected all in /tmp/xzm, right-clicked and activated. Got just the one fleeting 'Well Done' message regarding jre, and that was that.
brokenman wrote:Then the $PATH environment variable is not being passed.

Try opening a terminal and typing:

Code: Select all

PATH=$PATH:/usr/lib/java/jre/bin
Then test your java again from this terminal session. You will need to make this permanent.
This time java is present

Code: Select all

oot@porteus:/home/guest# ls /usr/lib/java
jre/  jre7u51_b31@
root@porteus:/home/guest# ls /usr/lib/java/jre/bin
java*     orbd*     policytool*  rmiregistry*  tnameserv*
keytool*  pack200*  rmid*        servertool*   unpack200*
so

Code: Select all

guest@porteus:~$     PATH=$PATH:/usr/lib/java/jre/bin
guest@porteus:~$ jav -version
bash: jav: command not found
guest@porteus:~$ java -version
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.5) (Slackware)
OpenJDK Client VM (build 24.51-b03, mixed mode)
fanthom wrote:
Module Tools 'Convert Folder to Module':
i have the impression that you have converted a folder full of modules into one big module which makes no sense.
Would it not make sense if there is more than one module in folder modules for one to have a self-contained module like say java.xzm thus reducing risk of a module mix up between different applications?

Gone on to do 'icedtea-web', a breeze in comparison. This install seems to meet requirements, as Java applet in browser works a treat. :)
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: USM GUI

Post#5 by Bogomips » 04 Jul 2014, 22:44

Ed_P wrote:You might find this thread useful: http://forum.porteus.org/viewtopic.php?f=75&t=3332
I did.
Thanks, Ed. Have perused thread, but for the moment requirements are modest, and the above seems to fit the bill. Been able to have a fairly complicated java applet (for card game somewhat akin to bridge) working flawlessly so far.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Post Reply