[07:54] <raj__> is it a good strategy to set JAVA_HOME & default java to "/usr/lib/jvm/default-java"  symlink & point that symlink to any java installation like oracle java/ opnjdk that was switching between jre versions & upgrading to newer versions would be very easier, no ?  changing "default-java " symlink to upgrade to newly downloaded oracle java version,  without needing to change the acutal java path everywhere..
[09:23] <lordievader> Good morning.
[09:53] <i5150pc> Hello, How can I fix "Read Error" after installing Ubuntu Server?
[10:09] <bekks> Where do you get that error?
[10:11] <i5150pc> when booting
[10:14] <bekks> where?
[10:14] <bekks> !details | i5150pc
[10:18] <i5150pc> I tried to load Ubuntu Server 12.04 on a P4 machine (Yes I have such  a machine), after the restart, all I get is "Read Error" nothing else because the system isn't booting
[10:19] <cfhowlett> i5150pc, 1.  md5sum your ISO and 2. try a different USB
[10:19] <cfhowlett> i5150pc, assuming that SERVER usb/cdrom is what's failing
[10:20] <i5150pc> It didn't give me a hash to check against
[10:20] <cfhowlett> i5150pc, that's pretty much a sign of serious fail ...
[10:20] <i5150pc> cfhowlett: the website didn't give me a hash to check against
[10:20] <cfhowlett> !md5sum
[10:21] <cfhowlett> i5150pc, wait 12
[10:23] <cfhowlett> cdimage.ubuntu.com is the starting place = for 12.04.4  http://cdimage.ubuntu.com/precise/daily/20140322/
[10:23] <i5150pc> I verified the sum myself - it matches
[10:24] <cfhowlett> i5150pc, great.  then it could be your boot media is funky
[10:25] <i5150pc> I verified that the disc is OK, and It was OK
[10:25] <cfhowlett> i5150pc, if the boot media is good then perhaps you're system is trying to boot from a different source. ...
[10:26] <i5150pc> cfhowlett: I only have one HDD on that box
[10:26] <cfhowlett> i5150pc, check your bios ...
[10:26] <cfhowlett> wiat
[10:27] <cfhowlett> it should NOT be booting from your hdd if you haven't installed yet!
[10:28] <i5150pc> i told the bios "CD" then "HDD" then Network then floppy
[10:29] <cfhowlett> i5150pc, disable everything except the cd.  reboot.  if the CD still won't read, there's your problem ...
[10:29] <i5150pc> ok one  moment
[10:30] <i5150pc> it boots of the CD
[10:32] <i5150pc> cfhowlett: it reads the CD and boots off the CD, so, what is my issue here?
[10:32] <cfhowlett> i5150pc, didn't this start with "no media found"?
[10:33] <cfhowlett> read error - sorry
[10:33] <cfhowlett> anyway, now you're booted.  proceed to install
[10:33] <i5150pc> with the disabled HDD?
[10:33] <cfhowlett> i5150pc, it's only disabled as a boot device ...
[10:34] <i5150pc> one sec
[10:36] <i5150pc> running the install
[11:16] <i5150pc> Install finished, and I get this: "disk boot failure, insert system disk and press enter"
[11:20] <i5150pc> huh, I'm getting the same error as before "Read Error"
[12:16] <i5150pc> nope, Ubuntu Server isn't booting after Install, once again, what am I doing wrong here?
[12:20] <cfhowlett> i5150pc, now you have to reset your bios so the HDD boots
[12:20] <JanC> might also be a BIOS/(U)EFI thing?
[12:23] <JanC> i5150pc: is it the firmware (BIOS) giving the Read Error message or GRUB?
[12:28] <i5150pc> it's booting alright, "Input Signal Out of Range"
[12:30] <i5150pc> also, How long does it take  to boot?
[12:35] <cfhowlett> i5150pc, input signal?  it's choking on your video settings
[12:36] <i5150pc> cfhowlett: that box has a SiS651 chipset
[12:37] <cfhowlett> i5150pc, the error you cited refers to display settings
[12:37] <i5150pc> yep, I ssh'd to the box, and it's online
[12:38] <cfhowlett> i5150pc, little things like that matter.  sadly, ssh is outside my area, so ask again in channel and mention that detail
[12:39] <i5150pc> Thanks for all the help
[13:18] <JanC> SiS GPUs often don't work with VESA even...
[15:15] <lordievader> Good afternoon.
[17:06] <gooses89> Hey guys,  im trying to get some java to run on server start. I have a .sh in the folder with the jar. And the init.d script. Both are fairly basic scripts. The problem I am running into is if I dont bash the .sh from within the folder, the jar tries to run in the current folder and it can't find it's configs.
[17:14] <gooses89> :(
[17:15] <Hunt_e107> gooses89: whats your issue?
[17:15] <atpa8a> hello
[17:16] <gooses89> im trying to get some java to run on server start. I have a .sh in the folder with the jar. And the init.d script. Both are fairly basic scripts. The problem I am running into is if I dont bash the .sh from within the folder, the jar tries to run in the current folder and it can't find it's configs.
[17:16] <gooses89> Can't find a fix for it
[17:17] <atpa8a> having a problem... need to make sure an initscript starts before an upstart job... any clues?
[17:17] <Hunt_e107> goose89: did you try to source the profile before running it?
[17:18] <Hunt_e107> goose89: even if it's set in the path but for the first run I think you have to source the profile for the new path to invoke it.
[17:19] <gooses89> Fairly new to linux
[17:19] <gooses89> Never used source?
[17:19] <Hunt_e107> gooses89: its not the code source.
[17:19] <gooses89> It's a command I know.
[17:19] <Hunt_e107> gooses89: do . /<new java path>
[17:20] <Hunt_e107> make sure there is space after the dot
[17:21] <Hunt_e107> atpa8a: make sure initscript is the parent process of the upstart job that's when it will start before upstart job
[17:22] <gooses89> Hunt.
[17:22] <gooses89> Not quite sure what you mean.
[17:23] <gooses89> . Is simply a shortcut to bash is it not?
[17:23] <Hunt_e107> .  /<new java path>
[17:23] <Hunt_e107> yes
[17:23] <JanC> not really
[17:23] <Hunt_e107> but before you run your program you have to call it
[17:23] <JanC> it's an internal command in bash
[17:23] <Hunt_e107> correct
[17:24] <JanC> and in (some) other shells
[17:24] <gooses89> . /java
[17:24] <gooses89> Like
[17:24] <Hunt_e107> yeah
[17:24] <gooses89> If i were to do . /thisfoler/This.jar
[17:25] <gooses89> I would get an error.
[17:25] <Hunt_e107> no it wont work
[17:25] <gooses89> I realize that.
[17:25] <Hunt_e107> jar is executed like this java -jar This.jar
[17:25] <gooses89> Yeah
[17:25] <JanC> depends, if /thisfoler/This.jar is a shell script, it would work  :)
[17:25] <Hunt_e107> This.jar.sh hehehe
[17:26] <gooses89> can I use quotes? . /thisfolder/"java -jar this.jar"
[17:26] <JanC> eh
[17:26] <gooses89> If not it stops at the space.
[17:26] <Hunt_e107> it will
[17:26] <gooses89> and tries to run java
[17:26] <Hunt_e107> in this case you have to do
[17:26] <Hunt_e107>  /thisfolder/java   -jar  this.jar
[17:27] <Hunt_e107> ok tell me what you have done so far to solve your issue?
[17:28] <atpa8a> Hunt_e107: parent process?.. looking... thanks
[17:28] <gooses89> this is my .sh http://pastebin.com/RZNRxVHW
[17:29] <gooses89> If I were to run it from the DayZLogger folder it runs fine
[17:30] <gooses89> if I run that script outside the folder like from root if i # bash /var/www/RoadW/DayZLogger/loggerstart.sh
[17:30] <gooses89> then It will not find its files.
[17:30] <Hunt_e107> ok looking
[17:30] <gooses89> It runs the DayZLogger.jar in root from the looks of things instead of in it's native folder.
[17:30] <Hunt_e107> ok I see the problem
[17:31] <Hunt_e107> whats the path to you java?
[17:31] <Hunt_e107> do env
[17:31] <Hunt_e107> and give me the output
[17:34] <gooses89> http://pastebin.com/8sVgrcc2
[17:36] <Hunt_e107> gooses89: can you give me the path to you java bin directory?
[17:38] <gooses89> java: /usr/bin/java /usr/bin/X11/java /usr/share/java /usr/share/man/man1/java.1.gz
[17:40] <Hunt_e107> use this
[17:40] <Hunt_e107> http://pastebin.com/yLTAucaV
[17:41] <Hunt_e107> gooses89: use this link http://pastebin.com/yLTAucaV
[17:41] <Hunt_e107> let me know.
[17:41] <gooses89> trying it now.
[17:44] <gooses89> Bash in the folder works, outside of it doesnt.
[17:44] <Hunt_e107> execute it from outside folder and give me the output
[17:44] <gooses89> It starts
[17:45] <gooses89> but it cant find it's stuff
[17:46] <gooses89> http://pastebin.com/ZkqZt3Hz
[17:46] <Hunt_e107> are you trying to play DayZ? :)
[17:46] <gooses89> No.
[17:47] <gooses89> I'm trying Administer DayZ
[17:47] <Hunt_e107> ok
[17:48] <gooses89> I need it to run in the folder it exists in not the one root is running it out of.
[17:49] <jrwren> you could try update-binfmts --install JAR /usr/bin/java --extension jar
[17:50] <jrwren> then you migt be able to ./some.jar
[17:54] <gooses89> nope./
[17:54] <Hunt_e107> gooses89: just run /var/www/RoadW/DayZLogger/loggerstart.sh
[17:54] <Hunt_e107> dont do .  /var/www/RoadW/DayZLogger/loggerstart.sh
[17:56] <gooses89> "bash /var...."?
[17:56] <gooses89> or just type it in.
[17:57] <Hunt_e107> no just type it in
[17:57] <gooses89> Same issue.
[17:57] <Hunt_e107> this is more of Bash question
[17:57] <Hunt_e107> get on #bash
[17:58] <Hunt_e107> I know it's the path problem but im not sure what else is missing
[17:58] <Hunt_e107> #bash channel people might be able to give you better answer than me
[18:07] <gooses89> got it to work.
[18:08] <gooses89> http://pastebin.com/xnzeTNzk
[18:13] <Hunt_e107> lol its funny code but it works
[18:13] <gooses89> just has to navigate to the folder
[18:13] <gooses89> so it doesnt run in /
[18:13] <Hunt_e107> looks like that jar is hardcoded to use the java from DayZlogger folder and not system java
[18:14] <gooses89> It's hardcoded to access files in that folder.
[18:14] <Hunt_e107> is there a java directory inside that folder?
[18:14] <gooses89> Nothing to do with java imo based of of what i know.
[18:15] <Hunt_e107> i disagree
[18:15] <gooses89> its just a .jar and a .cfg
[18:15] <Hunt_e107> yes and problem was with .cfg file
[18:15] <gooses89> The program most liekly has code that just states /config.cfg
[18:15] <gooses89> so
[18:15] <gooses89> if the program is run outside of that folder
[18:15] <gooses89> it cant find it
[18:16] <gooses89> If the script doesn't have the cd command it tries to run it out of root.
[18:18] <Hunt_e107> I see nothing wrong in what you have done.
[18:20] <jrwren> that is not uncommon - a bash script which changes curdir and then invokes java
[19:30] <atpa8a> hmm
[19:31] <atpa8a> if an initscript emits an event, how can i reference it in an upstart job?..
[20:47] <atpa8a> not freaking working...
[20:47] <atpa8a> how can i debug upstart order without rebooting the box?..
[20:52] <jrwren> atpa8a: if you find out, please let me know
[20:54] <atpa8a> can i just change runlevels?..
[23:07] <RaptorJesus> why for there no #ubuntu chat?
[23:07] <bekks> Of course there is #ubuntu
[23:08] <RaptorJesus> ohhh that's right I got banned