Koozali.org: home of the SME Server

Java + SME Server

Offline torna9125

  • *
  • 15
  • +0/-0
Java + SME Server
« 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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Java + SME Server
« Reply #1 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

Offline johnp

  • *****
  • 312
  • +0/-0
Re: Java + SME Server
« Reply #2 on: February 01, 2013, 10:13:59 PM »

Offline torna9125

  • *
  • 15
  • +0/-0
Re: Java + SME Server
« Reply #3 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.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Java + SME Server
« Reply #4 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

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Java + SME Server
« Reply #5 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
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

guest22

Re: Java + SME Server
« Reply #6 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.

Offline torna9125

  • *
  • 15
  • +0/-0
Re: Java + SME Server
« Reply #7 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

Thank you guys.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Java + SME Server
« Reply #8 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

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
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Java + SME Server
« Reply #9 on: March 19, 2013, 05:58:57 PM »
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware