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