Koozali.org: home of the SME Server

Obsolete Releases => SME 8.x Contribs => Topic started by: torna9125 on February 01, 2013, 06:21:43 PM

Title: Java + SME Server
Post by: torna9125 on February 01, 2013, 06:21:43 PM
Hello,
I'm going to install "Subsonic Music Streamer" while requires Java. Could you explain me how i can get Java for my SME?

Thank you.

Looking forward to hearing from you.
Marco
Title: Re: Java + SME Server
Post by: Stefano on February 01, 2013, 07:16:45 PM
before looking forward you should search the forums:

http://forums.contribs.org/index.php/topic,49501.msg247405.html#msg247405

:-)

HTH
Title: Re: Java + SME Server
Post by: johnp on February 01, 2013, 10:13:59 PM
You also may want to read this
http://forums.contribs.org/index.php/topic,48744.msg246962.html#msg246962 (http://forums.contribs.org/index.php/topic,48744.msg246962.html#msg246962)
Title: Re: Java + SME Server
Post by: torna9125 on February 02, 2013, 02:47:52 PM
Thank you and I'm sorry for the trouble, but i have an another question to do... How can I put the file "Sun JDK" on my server? I've already activated FTP and i can see the files in it with Filezilla but show me this messagge during upload.

Response:   550 jdk-6u38-linux-i586-rpm.bin: Operation not permitted
Error:   Critical file transfer error

Is there an another way to upload files?
I have been googling, but i haven't found out anything.
Title: Re: Java + SME Server
Post by: Stefano on February 02, 2013, 03:08:33 PM
first of all you don't need jdk to RUN java app but jre

then
- login as root on your server, locally or remotely via ssh
-
Code: [Select]
mkdir java
cd java
wget http://download.oracle.com/otn-pub/java/jdk/6u39-b04/jre-6u39-linux-i586-rpm.bin

then install following the how-to
Title: Re: Java + SME Server
Post by: janet on February 02, 2013, 03:31:11 PM
torna9125

Use wget
For more details, at a command prompt do
man wget
Login to the server as root or as a user with root privileges.
cd to the folder you wish to download files to
eg
cd /home/e-smith/files/ibays/ibayname/html
wget http://www.domainname/filelocation/filename.rpm
(replace with correct names of source location & file etc)

Re ftp see these:
(It really will make life easier for you if you take the time to read available documentation, so please do so in future)
http://wiki.contribs.org/FTP_Access_to_Ibays
http://wiki.contribs.org/SFTP
http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter14#i-bay_Directories
http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter14#Accessing_the_i-bays
Title: Re: Java + SME Server
Post by: guest22 on February 03, 2013, 03:28:22 AM
'yum install java' or 'yum install jre' worked for me in the past. Don't know by heart which repo should be enabled tho.
Title: Re: Java + SME Server
Post by: torna9125 on February 07, 2013, 10:19:30 AM
I've downloaded Java with these commands in a empty directory before created:

Quote
# wget http://mirrors.dotsrc.org/jpackage/1.7/generic/SRPMS.non-free/java-1.6.0-sun-1.6.0.11-1jpp.nosrc.rpm
# rpm -ivh java-1.6.0-sun-1.6.0.11-1jpp.nosrc.rpm

However, i've followed this guide:
http://emnaz.blogspot.it/2009/06/sun-java-for-sme-server-7.html (http://emnaz.blogspot.it/2009/06/sun-java-for-sme-server-7.html)

Thank you guys.
Title: Re: Java + SME Server
Post by: janet on February 07, 2013, 02:10:06 PM
torna9125

Quote
However, i've followed this guide:
http://emnaz.blogspot.it/2009/06/sun-java-for-sme-server-7.html (http://emnaz.blogspot.it/2009/06/sun-java-for-sme-server-7.html)

Those instructions tell you to set each additional non standard repository to enabled ie
status enabled

This in bad advice, the status should be set to disabled.

To install packages from those repositories do
yum install packagename --enablerepo=reponame1 --enablerepo=reponame2
and this will install only the specified package and any required dependency packages

If you keep those repositories enabled, then when you do a normal
yum update
you will most likely update other packages that you do not want to intentionally update, and break your sme server.

Only have the standard sme server recommended repositories enabled, as per wiki
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Which_repositories_should_be_enabled
All other repos should be disabled, and accessed with the command as shown above.

So now you should do the following for each non standard repo you have configured & enabled
db yum_repositories setprop reponame status disabled
signal-event yum-modify

Also see
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Adding.2C_removing_or_disabling_repositories
Title: Re: Java + SME Server
Post by: newburns on March 19, 2013, 05:58:57 PM
http://wiki.contribs.org/Subsonic_Music_Streamer