LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-11-2013, 01:47 PM   #1
sanket2612
LQ Newbie
 
Registered: Mar 2013
Posts: 2

Rep: Reputation: Disabled
Linux application to install...


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.

How do I go about creating this ?

Thanks
 
Old 03-12-2013, 06:55 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,532

Rep: Reputation: 132Reputation: 132
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.
 
Old 03-12-2013, 08:54 AM   #3
sanket2612
LQ Newbie
 
Registered: Mar 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-12-2013, 09:42 AM   #4
jcullen24
LQ Newbie
 
Registered: Jun 2004
Location: Denton, Texas
Distribution: Ubuntu
Posts: 17

Rep: Reputation: 5
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.
 
Old 03-12-2013, 09:58 AM   #5
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,532

Rep: Reputation: 132Reputation: 132
Here is a link to info about packaging for debian based distributions as ubuntu
http://wiki.debian.org/HowToPackageForDebian

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

Hope this helps

Last edited by j-ray; 03-12-2013 at 10:06 AM.
 
Old 03-12-2013, 02:24 PM   #6
guyonearth
Member
 
Registered: Jun 2012
Location: USA
Distribution: Mint
Posts: 410

Rep: Reputation: 82
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux R-U-On / Serveron Application Refuses to Install xioc1138 Linux - Software 4 02-23-2013 11:39 PM
[SOLVED] Install application on Linux Centos rewards Linux - Newbie 5 12-25-2010 07:20 AM
how can i install a application in red hat linux awnishkumar Linux - Desktop 3 11-06-2009 01:31 PM
Help - Linux application install Alex@Synergy Linux - General 5 08-22-2007 10:30 AM
How to install a windows application in Linux ? wlaw Linux - Software 8 09-18-2004 09:20 AM


All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration