VectorLinux
July 31, 2014, 05:17:07 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: 1 ... 5 6 [7] 8 9 10
  Print  
Author Topic: VectorLinux 7.0 Beta1 bug thread  (Read 43803 times)
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #90 on: March 07, 2011, 08:38:59 pm »

While installing JDK in VL7 Beta 1 I encounter some sh script in /etc/profile.d will not run at boot time. I have to modify my .bashrc as below to make my jdk.sh to run. Dunno is this a bug or not...just want to share it out... Tongue

Quote
In your /etc/bashrc you have a line near the bottom:

"PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/share/pvm3/".

If I'm right, thats your prob.

Change to
PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/share/pvm3/

http://www.mail-archive.com/slug@slug.org.au/msg58115.html
Logged
rm-r
DoucheBag
Vectorite
***
Posts: 115


« Reply #91 on: March 07, 2011, 09:28:38 pm »

Hata_ph

Suggestions only:

(dot) bashrc is parsed last @ bootup - do you want that App to run every time ?

(use)  Whereis JDK (name of executable Note the location

The default  command search path is configured  by install

 su -l (type root password)

cd /home/your_name

env |grep PATH > rootpath.txt

exit (to user command prompt)
 env|grep PATH > userpath.txt

diff  r*t   u*t  (read line variance)

Note do NOT use "sudo"  for 1st grep ~ sudo inherits the user's environment
Once becoming root, remember to cd to user's home directory
By default,  you would be in /root (confirm using command pwd )

Install locations Esp, executables, vary to distro E.G. /usr/local,  /usr/share etc

Much the same applies to sysVinit vs Slackware use of BSD variant of initiate directories

Example. initd/ content (rc1 <>rc4 etc) 

 HTH



« Last Edit: March 07, 2011, 09:31:57 pm by rm-r » Logged

"Problems are seldom resolved by thinking in the same manner they were created"

"What is viewed is not important - That which is seen is"
rm-r
DoucheBag
Vectorite
***
Posts: 115


« Reply #92 on: March 07, 2011, 10:16:13 pm »

http://www.linuxfromscratch.org/blfs/view/6.3/general/jdk.html
Logged

"Problems are seldom resolved by thinking in the same manner they were created"

"What is viewed is not important - That which is seen is"
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #93 on: March 07, 2011, 10:23:26 pm »

Thanks for the link but I have manage to install JDK myself. But what I dun understand is when I create a jdk.sh/jsk.csh under /etc/profile.d, it did not execute at boot time. Isn't everything script with execute right will be executed at boot time?
Logged
rm-r
DoucheBag
Vectorite
***
Posts: 115


« Reply #94 on: March 07, 2011, 10:55:02 pm »

D_ _ n

This is Vector specific - where initiate services get located:

E.G., What is content of /etc/rc.d/initd ~ Are they symlinks or actual run commands

Are you trying to develop Java Apps/browser enhancements or ??
Does your install include IDE wrappers, debug utilities ?
(Much easier to "step in/out" JIT Java scripts)

Most Distros already include JRE for Java/Javascript  - Browsers search, install plug-ins

Most home use, enabling Java for  Browser interactions ~ is a considerable security risk

(Linux is immune from viruses , NOT embedded graphical  malware -most of which
rely on Java to execute BECAUSE it is a universal to most all O/systems)


Obviously,  it's  NOMB ~ It only suggested to please consider ~    if presently  having problems sorting out VL initiate sequences
you may wish to re-evaluate logic  of original intent

EDIT:  my /etc/profile.d  directory contains - not just a start   command:

It exports environment path
Quote
export MANPATH="${JAVA_HOME}/man:${MANPATH}"
export JDK_HOME=${JAVA_HOME}
export JAVAC=${JDK_HOME}/bin/javac
unset gentoo_user_vm gentoo_system_vm user_id

To ensure any  change "sticks" after session, it may be required to update (system config) environment

 
Best luck
« Last Edit: March 07, 2011, 11:14:48 pm by rm-r » Logged

"Problems are seldom resolved by thinking in the same manner they were created"

"What is viewed is not important - That which is seen is"
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #95 on: March 08, 2011, 12:00:35 am »

I was trying to build package for VL7 which require JDK. Below is my /etc/profile.d/jdk.sh

Quote
#!/bin/sh
export JAVA_HOME=/usr/lib/java
export MANPATH="${MANPATH}:${JAVA_HOME}/man"
export PATH="${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
Logged
rm-r
DoucheBag
Vectorite
***
Posts: 115


« Reply #96 on: March 08, 2011, 07:58:36 am »

Hata_ph

Ahh, in that case,  I was under impression sbbuilder  handled all build specifics:
Profiles, paths,  directory placements

How does your present work-around affect clean build environment ?

P.S What then is any  views Re enhancing usefulness, such as via  inclusion of  IDE front-end plus de-bug utility

Perhaps - JDK/extra tools , would be better as part of a "developer package"   along with Gcc, kernel sources etc.

(Not as dependency need of other Pkg/s:(  An after-thought of ~   Since JDK is there ,  someone may  want to explore
Java vs Python or whatever



« Last Edit: March 08, 2011, 08:11:23 am by rm-r » Logged

"Problems are seldom resolved by thinking in the same manner they were created"

"What is viewed is not important - That which is seen is"
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #97 on: March 08, 2011, 04:22:10 pm »

What I did is modify my .bashrc as below. Actually it is not a huge problem as one can find the solution from the internet, just that I want to mention it out what i face while using VL7B1 (dunno do this problem happen to VL6 or not).

Quote
In your /etc/bashrc you have a line near the bottom:

"PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/share/pvm3/".

If I'm right, thats your prob.

Change to
PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/share/pvm3/

Another (more secure) way to temporary activate the path is run . /etc/profile.d/jdk.sh in terminal as root (the effect only for that session of console).
Logged
rm-r
DoucheBag
Vectorite
***
Posts: 115


« Reply #98 on: March 08, 2011, 07:40:31 pm »

That appears to confirm earlier noted suspicions:

User's profile path must be amended else session only

Your solution may be work-around, but suits Tmp need, satisfying a dependency to allow
building another Pkg

Was your JDK install from a VL repository or manual ?
(If so, wondering as did you - Why incorrect path)

Logged

"Problems are seldom resolved by thinking in the same manner they were created"

"What is viewed is not important - That which is seen is"
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #99 on: March 08, 2011, 08:30:47 pm »

I manually install the latest JDK as i cannot find it in the VL7 repository...
If I want to build JDK for VL7 i may need to get more detail of how to add the JDK path to VL...
Logged
uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #100 on: March 08, 2011, 08:58:39 pm »

I manually install the latest JDK as i cannot find it in the VL7 repository...
If I want to build JDK for VL7 i may need to get more detail of how to add the JDK path to VL...
the way you did it from profile.d is correct.
the bug will be gone from next Beta.

Thanks for finding it.
Logged
rm-r
DoucheBag
Vectorite
***
Posts: 115


« Reply #101 on: March 09, 2011, 12:42:56 am »

Caveats /tips from above:

Placement of App run (.sh)  to /etc/profile.d was correct - syntax was not (the bug)

Two concerns Re paths,  were mentioned in that suggested work-around from Web source:

Behaviour of shell child forked processes, log-in shell vs session

If developer uses a virtual machine to re-master,  consideration should be given to user ID
Code:
  # Please make sure that this script is POSIX compliant
  # The root user uses the system vm
if [ "${user_id}" != 0 -a -L "${root_user_vm}" ]; then
export JAVA_HOME=${root_user_vm}
# Otherwise set to the current system vm
elif [ -L /etc/java-config-2/current-system-vm ]; then
export JAVA_HOME=${root_system_vm}
f

One more
Code:
if [ -z "${UID}" ] ; then
# id lives in /usr/bin which might not be mounted
if type id >/dev/null 2>/dev/null ; then
user_id=$(id -u)
else
[ "${USER}" = "root" ] && user_id=0
fi
fi
Logged

"Problems are seldom resolved by thinking in the same manner they were created"

"What is viewed is not important - That which is seen is"
Pita
Vectorian
****
Posts: 1308


« Reply #102 on: March 10, 2011, 05:54:48 pm »

upgraded to Beta-1.9

# /sbin/vl-hot-config
bash: /sbin/vl-hot-config: /usr/bin/gbx: bad interpreter: No such file or directory

 which gbx
which: no gbx in .....

That VectorLinux screensaver is really cool. Grin
Logged
budulay
Packager
Vectorian
****
Posts: 568


NewComer


« Reply #103 on: March 12, 2011, 12:19:45 pm »

Beta 1.9 fixes infinite reboots from 1.8.
Logged

VL6.0-Light@MSI MS-1652(AMD TurionX2 ZM-84 2300 MHZ, 4 GB RAM, 250 GB HDD, Nvidia GForce 9600M GT, GIGABYTE AirCruiser N300)
Registered Linux user #473602
SlackBuild Repository for VL7.Not much but it's a start. Join in!
Pita
Vectorian
****
Posts: 1308


« Reply #104 on: March 12, 2011, 07:50:31 pm »

New install of Beta-1.9

user cannot mount flash drive when clicking on USB icon:  Failed to mount "4.0 GB Filesystem", Not Authorized
If in fstab /dev/sdc1 is enabled it can be mounted by sudo, however, then no
USB icon shows.

Loggin-out of X console reports:
thunar-volman: Unsupported USB device type.
thunar-volman: Unknown block device type.

Logged-in as root. Flash drive can be mounted with USB icon.
Command 'mount' then shows /dev/sdc1 is mounted even so it is disabled in fstab.
« Last Edit: March 12, 2011, 08:26:05 pm by Pita » Logged
Pages: 1 ... 5 6 [7] 8 9 10
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!