Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi Guys,
I am completely new to Linux.
I have the following requirement.
I need to create an installer which:
1. Installs java
2. Installs Adobe Reader
3. Copy paste's my application to a certain location.
4. Creates a desktop icon to launch my java based application.
I tried using installjammer to accomplish task number 3 and 4, however, the desktop icon it creates does not launch my .sh which in-turn launches the jar file.
Welcome to LQ sanket2612!
I don't get what you intend to do. Do you want to dístribute a java program that needs Adobe Reader?
Depending on the distribution of linux there are different ways to install java or other programs. If you explain your intention more detailed then it will be more likely that someone can help you.
Hi J-Ray,
Thanks for the reply
Here is what I need to do:
I have a java application which is basically a simple http server. Once launched, it starts listening at port 8080 and launches the default browser and points to http://localhost:8080/index.html.
This html page has links to pdf, videos, flash files etc that I need to display.
All these files will be shipped with the jar and will be encrypted. The http server will decrypt these files and post them to the output stream.
I am using java, as this needs to run on Windows as well.
I am able to package it well for windows and I need to package it for Ubuntu.
Thanks.
bash shell scripts and gzip.
Just gzip and unzip your files to the appropriate directory.
You could tie this to cron and have the bash shell do this at timed intervals.
It will take you manually coding he shell script, but that's not too complicated.
You may keep in mind that linux users often use other programs than AdobeReader for viewing pdf, like GhostView or similar. There are a couple of browers that are not very well known outside of the linux world, like epiphany. If you want to write an install script that keeps care of the dependencies you may want to get familiar with
apt-get install
If you're talking about offering this as some kind of install package, I think you're barking up the wrong tree. Linux systems don't allow the kind of access you need to do this anything like transparently. There would have to be user interaction to get root access to do this. People generally don't like giving root access without knowing exactly why. Both Java and Adobe Flash have security concerns and many users don't allow their installation. Also, different distributions have different ways of handling installations of these components, if they are even available on a given distribution. Some people only use free software, and Java and Flash are both encumbered, to say the least. They may not even be in the repositories the end use has enabled. You would do far better to package your program and have it check for prerequisites like Java or Flash capability, then give the end user the option of what to do.
As far as the Windows side goes, that is a completely different environment, you can't build any kind of installer that's going to run on both Windows and Linux systems, they're too different. A lot of Windows users don't have Java installed, either, and it's kind of a cumbersome install anyway. A sure way to annoy your end users is to offer some kind of program that tries to install a bunch of different things at once. I know it annoys me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.