Juniper on slackware-current 64
Dear All,
I am trying to get the Juniper NC to work on my slackware box. Whatever I try, no succes. My Slackware-current is of 22 aprl 2016. Juniper has no 32-bit binaries available / requires 32-bit java to be installed. First thing I did was to 1. make slackware multilib 2. install jre 8.92 - 64 bit version (mistake) Logging into the (by me) required website Juniper came back with : 1. "Please ensure that necessary 32 bit libraries are installed. For more details, refer KB article KB25230" 2. "Setup failed. Please install 32 bit Java and update alternatives links using update-alternatives command. For more details, refer KB article KB25230" So I installed the jre 8.92 32 bit. Since slackware has no update-alternatives I first did an export of PATH to set the correct java directory. That did not work so I uninstalled the 64-bit version of Java. I am lost here. Any one a suggestion ? best regards, Simon |
the_zone --
[edit] I just saw this: Quote:
Try this instead( older release but it looks like it would still work ): http://www.linuxquestions.org/questi...em-4175503089/ [/edit] 1. "Please ensure that necessary 32 bit libraries are installed. For more details, refer KB article KB25230" 2. "Setup failed. Please install 32 bit Java and update alternatives links using update-alternatives command. For more details, refer KB article KB25230" I've not had to do this recently but this worked on 13.37 to install both 32-bit and 64-bit jdk so I hope the following is helpful ... If I understand your need, you've got a Slackware64 Current + Multilib system and you need to be able to run a 32-bit Java App ... If that's the case, there was a recent thread about installing Java 7 and Java 8 on the same system. It's generally the same problem with different specifics ... ( :) the same only different :) ) 32-bit and 64-bit jre on one machine is a lot simpler than Java 7 and Java 8 on one box ... The key to success is to get the 32-bit jre installed along with the 64-bit jre and then to set your JAVA* Environment Varbs to point at the correct version for the task at hand. Be sure to install your jre's using the java.SlackBuild that the Slackware Team provides. Since you've already got multilib, I assume you've got Slackware on your system in a Local Repository ( call it <<YourLocalRepository>> ) 64bit: <<YourLocalRepository>>/extra/source/java/ # same as below 32bit: <<YourLocalRepository>>/extra/source/java/ # same as above Note that the same SlackBuild files will be in either the 32-bit or 64-bit version of <<YourLocalRepository>> but you only need one copy because the java.SlackBuild will repackage any of the Oracle jre-*tgz or jdk-*.tgz files for Slackware. Look at the extra/source/java/README File and do study-up on the differences between installpkg and updatepkg ... If you installed your Oracle jre's manually ( i.e. without the java.SlackBuild ), remove them as best you can so you can use the java.SlackBuild. This is more-or-less how I do it ... Code:
These scripts set your JAVA* Environment so you can run the version for the ARCH you want to run. Important: to get both versions on the file system, first run upgradepkg, then run installpkg ... Since you're on a 64-bit machine, first upgrade the 32-bit jre package first and then save a copy of the 32-bit jre.* files in /etc/profile.d ( jre.csh and jre.sh ). Then after you've saved the files in /etc/profile.d/ install the 64-bit package and save a copy of the 64-bit jre.* files in /etc/profile.d/ ... This is one way to do it ... Code:
Code:
HTH -- kjh p.s. maybe these links will helpful to solve your problem: http://alien.slackbook.org/dokuwiki/...kware:multilib http://docs.slackware.com/howtos:software:java http://www.linuxquestions.org/questi...em-4175579072/ Richard Cranium's link to jenv looks useful for what you need to do. |
@kjhambrick
Thanks a lot for the help. I have it working of some sort. I followed both the Firefox install and Java install instructions. Both where helpful and insightful. Unfortunately I had to uninstall Firefox-45.1 64-bit. First I installed the 32-bit version next to the 64-bit version which I installed according with compat32pkg. http://compat32pkg.sourceforge.net/documentation.html Checking upon which Firefox version (64/32 bit) I was actually using (menu->help->Troubleshooting Information) I noticed both versions were 64-bit. So that clearly did not work. Removing the 64-bit solved the issue and I could login on the required website. |
Solved the Firefox 32/64 issue as well.
Both are now happily and working beside each other. The trick was to create a profile while executing firefox from the 32-bit install dir. http://askubuntu.com/questions/11194.../202415#202415 |
the_zone --
Yes ... I see that I did miss the fact that you connect to Juniper via a browser rather than via a 32-bit Java App :) To run either 32-bit firefox or 64-bit firefox on your machine you'll need some sort of a shell script wrapper for the 32-bit version so that you set your environment and then invoke the 32-bit firefox instead of the default 64-bit firefox. Or ... if you used Alien Bob's convertpkg-compat32 script to make your 32-bit firefox and you've got both 32-bit and 64-bit firefox installed, it might work if you invoke from a commandline either: Code:
/usr/lib/firefox-45.1.1/firefox edit -- I type too slow :) Glad you fixed it ! --- kjh |
Sorry for the delayed reply. I only just saw this. I used Juniper VPN in my previous company, so I have a little input here.
The main thing I would add is that you do not need Java installed to connect to a Juniper VPN or at least you did not the last time I tried this, which was a couple of years ago. I started investigating because installing Java, starting a web browser, even having to have X running just to do a VPN connection seems like an overkill to me. Java is only used as a GUI front end to launch the native program that actually handles the connection (ncsvc). However it is possible to get the 'ncsvc' connection program without Java installed and use a small shell script to start it up. Here is how I did it in 6 easy steps. ;)
https://vpndomain/dana-cached/nc/ncLinuxApp.jar
Code:
mkdir -p $HOME/.juniper_networks
Code:
cd $HOME/.juniper_networks
Code:
chown root:root ncsvc
Code:
#!/bin/sh Notes:
Code:
<input type="hidden" name="realm" value="companyrealm">
|
@ruario
Thanks for the reponse. I will have a go at this. Since initial login is by username, password and authentication app I am afraid a lot of info is hidden for me. |
All times are GMT -5. The time now is 08:07 PM. |