=== markthomas|away is now known as markthomas === exixt_ is now known as exixt === exixt is now known as exixt_ [01:33] hello, i'm trying to get this minecraft launch script to work but i see can not make directory /var/run/screen while the server is booting. how can i fix this? the script is first starting a screen as a certain user and then launching minecraft as a certain user but i guess that user doesn't ahve permission to create a screen session? [01:34] I think your script is for a different OS/distro? === exixt_ is now known as exixt [01:36] mardraum, what do you mean? it's a init script. [01:36] ubuntuaddicted: the "script" you've specified is not known to us, and likely is for a different OS / distro... is the code publicly online somewhere? [01:38] this is the one you should be using, if you aren't already: https://github.com/sandain/MinecraftServerControlScript [01:38] that aside, does screen work normally when you attempt to use it? [01:38] teward, one moment, getting it uploaded to pastebin [01:39] yes, I can issue sudo service minecraft start and the service starts up just fine [01:40] that's not what I'm asking; can you run 'screen'? [01:40] it creates a screen session using user minecraft and it then launches minecraft from that screen session [01:40] qman, no, user minecraft can't run screen. [01:41] ubuntuaddicted: what's the error message? [01:41] qman, it returns Cannot open your terminal '/dev/pts/4' - please check [01:41] -_- [01:41] i'm guessing because user minecraft can't write to the /dev/pts folder? [01:42] somebody else owns pts/4 [01:42] no, you can't use screen after switching users [01:42] what qman said [01:42] you have to log in as a user, then run screen [01:44] the exception being root since root has all the permission needed [01:46] hmmm, here's the script i'm attempting to use: http://paste.ubuntu.com/9016691/ [01:47] qman, how would a script like this work then? [01:48] ubuntuaddicted: to be clear, this limitation only applies to the client session portion [01:48] ubuntuaddicted: you can launch a detached screen after switching users [01:48] you just can't attach to one [01:49] qman, not sure i follow but that's not important. :) so is this minecraft script ok to use? do i just need to add the minecraft user to the group root so he has write permissions on /dev/pts? [01:49] NEVER add a non-root user to the root group [01:49] no, absolutely do not do that [01:49] NEVER NEVER NEVER IN A BILLION YEARS [01:50] that opens you up to hell [01:51] what I need you to check is whether or not you can run screen properly, so log into your server as any user and run 'screen', without switching users via su or sudo [01:51] it's not important who, all users that can log in should be able to do it [01:52] qman, i can run screen as my normal user yes. [01:52] ok [01:52] so the most likely cause of your error is that your init script is running before /var/run is available [01:52] qman, it's only after I switch to the minecraft user and try to run screen that it gives that error from above [01:54] qman, i'm not sure how to fix that [01:55] Sounds like a frame issue [01:55] the 'right' way is to adjust the start event settings to something that happens later or the specific event needed [01:55] the hacky way is to make it sleep before starting [01:56] I dislike that word, "hacky" [01:57] another solution would be to have the init script wait until /var/run is available in the start process [01:57] You mean modification to the code [01:57] no, fixing the code :) [01:57] no, I mean hacky [01:57] as in would work, but not well thought out or robust [01:57] We don't refer to fixing code as hacking qman in here. [01:57] I'm not [01:58] you clearly misunderstand [01:58] hacky? [01:58] * LinStatSDR scratches head [01:58] it's interesting that the script needs adjusting. i believe others use it with ubuntu so not sure why it doesn't work for me [01:58] to put it another way, it's a dirty hack [01:59] jury-rigged, etc [01:59] That's better. [01:59] no, they're equally accurate [01:59] I understand you're simply trying to fix the code you're having a problem with. [01:59] qman, guidelines thats why [01:59] Should poke at them [02:00] I could not care less; my statement was accurate and has nothing at all to do with "hacking" [02:00] It's the wording. [02:00] what is wrong with the wording? [02:00] nothing [02:00] there is nothing wrong with hacking [02:00] it's perfectly legal === markthomas is now known as markthomas|away [02:01] * LinStatSDR pokes his own eye [02:01] ouch brbn [02:01] or are you confusing hacking with cracking? [02:01] Neither. [02:02] Hacking is by nature malicious, where as penetration testing is not. [02:02] ubuntuaddicted: regardless of that, the script may work in some cases and not others due to a race condition; upstart is not linear and therefore sometimes things happen in a different order depending on your system and tons of other situational things [02:02] Same thing with that. [02:02] I agree qman [02:02] hacking is not malicious [02:02] hacking isn ot malicious [02:02] It's called penetration testing if it isn't [02:02] no [02:03] you can hack on your car, projects [02:03] ubuntuaddicted: all that means is, the script's start requirements are not completely accurate to what the script actually needs in order to function [02:03] nothign to do with computers [02:03] anyway [02:03] ubuntuaddicted: the fix is adjusting that properly, I'm not sure what specific upstart event is going to work best here [02:03] qman, ok, what's the easiast solution? lol [02:04] and do tell me that hackathons are penetration tests, and are malicious [02:05] That's under different conditions [02:06] heh? no it's not [02:06] ubuntuaddicted: I'm going to suggest adding $network to Required-Start and Required-Stop, and removing the Should-Start and Should-Stop lines, like this: http://paste.ubuntu.com/9016881/ [02:06] isn't there an off topic channel? :) [02:06] can we change subjects [02:06] I'm in that channel... [02:06] already [02:07] ubuntuaddicted: $network is one of the slower to start events in most cases so it may fix it, if not, you'll have to find another event to base your start condition upon [02:08] does this support java, could spin up a socket json rq [02:09] may be quicker if it's sluggish starting [02:09] qman, ok, i made those adjustments and will restart the server. hopefully minecraft starts this time [02:10] I hope so :D [02:12] qman, ok, i briefly saw soemthing about permission denied [02:12] ubuntuaddicted: less /var/log/syslog [02:13] the screen session isn't there and minecraft isn't running [02:13] ubuntuaddicted: then press shift+G to go to the end, and scroll up until you see it [02:16] qman, hmmm, looking at syslog i only see this: dbus[1084]: [system] Activated service 'org.freedesktop.login1' failed: Cannot launch daemon, file not found or permissions invalid [02:16] ok, that shouldn't have anything to do with this [02:16] where else would it get logged to? in dmesg? [02:17] ubuntuaddicted: within less, type /minecraft [02:17] see if it finds anything [02:17] the forward slash is the search command [02:17] nothing [02:18] when you installed this, did you update-rc.d? [02:18] qman, yes [02:20] sudo update-rc.d minecraft defaults; sudo update-rc.d minecraft enable [02:20] if you did, it should have put something into syslog [02:21] qman, ok defaults said it already existed but when I ran enable it returned a bunch of stuff. i just restarted again. we'll see [02:21] ok [02:22] cannot make directory /var/run/screen permission denied [02:25] qman, is this solution acceptable? https://github.com/superjamie/minecraft-init-script/issues/26 [02:25] ubuntuaddicted: I found bug 574773 [02:25] Launchpad bug 574773 in screen "Cannot make directory '/var/run/screen': Permission denied (convert init to upstart)" [Medium,Fix released] https://launchpad.net/bugs/574773 [02:27] qman, looks like we both found similar solutions/bugs [02:28] try this modification: http://paste.ubuntu.com/9017190/ note line 8 [02:28] qman, so the one link at github suggests one thing while the bug you linked to i am not sure what to do to get my script to work. can you help me understand [02:28] qman, ok, thank you. will incorporate and try [02:29] qman, wait, doesn't it say something about BEFORE the cd \"$MCPATH\ [02:29] ubuntuaddicted: before or after should not matter in this case [02:29] qman, looks like you added something to the script after that line instead of before it [02:29] qman, oh ok [02:29] ubuntuaddicted: the key here is that before it tries to run screen, it runs the screen-cleanup [02:30] qman, so line 8 is the only addition? [02:30] yes [02:38] qman, THANK YOU! that did it [02:39] qman, i can't believe it's been a bug since back in 2010 [02:40] glad it worked [02:40] qman, onto the next issue. :) [02:40] race conditions like this are the biggest problem with modern init systems [02:41] qman, i have a custom compiled nginx server installed and the init script for that isn't working. so my ubuntu doesn't think it's installed since i compiled and installed it myself [02:42] stick to distribution packages whenever possible [02:42] qman, the reason i compiled it myself is because it needed to be compiled with the rtmp module. so how to get it to auto-run when the server starts? [02:45] isnt it easier to apt-get source and then repackage? just asking, i just screen -r [02:46] here's the init script http://paste.ubuntu.com/9017449/ [02:46] nunizacu, sorry, are you talking to me? [02:47] i just trying to get what what are you talking bout [02:47] dont take it offensife [02:48] i didnt sleep for 24h, im talking 7'th antibiotics in 2 months and barely think [02:49] and yet for last 24h i'm fighting to fully ipv6ize openstack [02:49] nunizacu, we were trying to get a script to start that was launching screen but it couldn't due to a bug in screen cleanup or something like that BUT qman fixed my script for me [02:49] brb [02:50] well, to get to the point i would need more data, and thou im couirours im happy you did it [02:51] btw. you guys use ubuntu all the time, im forced becouse of raid+lvm [02:51] is there a way to recompile whole packages with own flags? [02:52] i need it for quite big project [02:52] and i'm sick of kpartx on pdc to get unknown partitions and integrate it into ininitrd [02:53] enough i made openstack gentoo and bsd 9 and 10 cloud img [02:53] just brb ok [02:53] oookay [02:54] i need to change host [02:54] so looking at the nginx script, i don't see where the definition of the command's location is? [02:55] man - [02:55] oh read that wrong [02:55] my fault wow [02:55] Forgive me ubuntuaddicted [03:03] how do i get nginx to launch when the server starts IF i had to compile and install nginx myself? the guide I followed installed it to /usr/local/bin/nginx [03:10] ubuntuaddicted: using some third-party plugins not included in nginx-extras or something? [03:11] teward, i believe so correct. i don't think the nginx-extras has the rtmp module does it? [03:12] right. [03:12] just checking :) [03:27] man, changeing revs takes a while [03:28] and add sasl auth [03:28] i tought about ssl cert + rsa but i have 8192 rsa [03:29] teward, does it include rtmp module or no? [03:29] ubuntuaddicted: what troubles you? [03:29] ubuntuaddicted: i did many wierd hacks on ubuntu [03:29] ubuntuaddicted: https://packages.debian.org/sid/nginx-extras [03:30] cryptodan, nope, rtmp is not there [03:31] w8 few minutes ill cook something for you [03:34] if anyone can help me get the nginx init script to start my nginx install properly i would appreciate it. here's the init script http://paste.ubuntu.com/9017449/ [03:35] you want script, module or whole package ? [03:35] https://github.com/arut/nginx-rtmp-module/wiki/Installing-on-Ubuntu-using-PPAs [03:36] thats what im doing [03:36] give a link when compiles [03:37] I found this one https://launchpad.net/~mcfletch/+archive/ubuntu/nginx-rtmp [03:38] cryptodan, that's only available for 12.04. [03:39] cryptodan, thank you for trying though. i just want to know how to edit the init script so it looks in /usr/local/bin/nginx instead of the normal nginx location [03:39] you want all modules or only thios? [03:39] paste the script while i bake your new nginx [03:40] and tell me what modules you want, all, rwhatever or everything [03:40] nunizacu, i already have nginx compiled and installed, thanks though [03:40] i've linked the init script several times [03:41] but not with everyting [03:41] and i have to recompile so you have what you want [03:41] and i was away when you posted your iniit [03:42] but hey, if you dont want help i got enoguth to do [03:42] even being kind is wierd on irc [03:44] id try the module from 12.04 but thats just me [03:49] nunizacu, i don't want you to compile me nginx, i already haev it installed [03:50] nunizacu, thanks anyway [03:52] whatever i just finishing it with every module + one you wanted [03:54] nginx in apt-get doesnt have every module enabled [03:54] nunizacu, exactly why i'm not using that nginx [03:55] that's why i was asking what modules except that missing you need [03:55] you cant add that module without recomompile [03:57] i dont understand you, you want some module, someone is making it for you then you dont need it, just wasting time [03:57] but as i started i'll fininish [03:58] omg, i didnt slept for 30 hours [03:59] and if you have problem with init screen paste it or do it yourself, i wont ask you for helping you [04:04] http://[2001:5c0:1508:c800::1]nginx_1.4.6-1ubuntu3.1_all.deb [04:06] nunizacu, i didn't say i needed nginx with the rtmp module, you clearly didn't read what I asked for. [04:07] nunizacu, the only person wasting their time is you because you failed to read what I wrote several time [04:07] i said i didint slept 30h straight [04:07] and i could get any kind of communication [04:08] man, i kindly asked whats the problem [04:08] now i know why came to irc one every few years [04:09] nunizacu, for the 4th time, i would like nginx to start when the server starts. i have an init script that i linked which is not auto starting when the server starts. how do i get nginx to start when I launch the server [04:09] so just drop it to /etc/init.d ? [04:11] then set what runlevel should it start and stop [04:11] init.d scripts are quite easy, you can just copy any and fit to your needs [04:12] or maybe w8 [04:12] nunizacu, it's already in /etc/init.d/ [04:13] nunizacu, as i've stated already, it's an init script. how do i get it to find my nginx installation which is in /usr/local/bin/nginx [04:13] edit the script? [04:14] replace DAEMON=/usr/sbin/nginx with DAEMON=/usr/local/bin/nginx [04:17] then sudo restart nginx [04:18] should start at bootup [04:26] nunizacu, i don't see that DAEMON line within my script. hmmm [04:31] i just installed nginx on my ubu box and i had it in my script [04:31] maybe paste me that script, i will change it so it works and paste it back [04:34] nunizacu, http://paste.ubuntu.com/9017449/ [04:36] nunizacu, i guess i'm not sure why it's not starting by default. i used update-rc.d defaults OHHHHH but maybe I didn't enable it [04:38] update-rc.d requires 2 things the service name and the action you want [04:38] nunizacu, and I jsut realized that sudo service nginx stop says it's already stopped BUT it's still running. hmmmm. it's like the nginx scripts I have in /etc/init.d/ aren't linked to the nginx i have installed at /usr/local/bin and /usr/local/nginx/ [04:39] replace DAEMON="${DAEMON##* }" with DAEMON=/usr/local/bin/nginx [04:39] line 88 [04:40] nunizacu, will that fix it also for stopping the service? [04:41] yes [04:43] but messing with update-rc.d wasnt brightest idea [04:45] for init.d user /etc/init.d/ngnix stop [04:45] or sudo stop ngnix [04:45] ubuntuaddicted: whats the result of ps auxww | grep ngnix [04:46] pgrep ngnix is faster [04:49] first pgrep ngnix, killall -9 every number , then start, then stop, then pgrep again [04:50] you will see if stop is working [04:50] it should [04:50] maybe you just started more than one instance [04:56] nunizacu, ok, sudo service nginx start seems to work. it starts up BUT sudo service nginx stop does not stop it. [04:57] nunizacu, it returns * nginx already stopped BUT ps aux | grep nginx still shows it running. So the init script I linked which we edited is still not working correctly apparently [04:57] ubuntuaddicted: whats the path? [04:58] cryptodan, path to what? if i type in which nginx it returns /usr/local/bin/nginx [04:58] cryptodan, i need reboot the system i'm on. i'll be right back [04:58] whats the path via ps command [04:59] cryptodan, same thing [04:59] it may not stop i said try sudo /etc/init.d/ngnix stop [04:59] cryptodan, ps shows nginx: master process /usr/local/bin/nginx [05:00] is that the correct spelling? [05:00] cryptodan, that's by user root and there's another process running as user nobody which is just nginx: worker process [05:00] it would be better to rewrite it to start-stop-daemon [05:01] nunizacu, the script i linked is suppose to do that. ;) [05:01] i'll be right back [05:02] why i'm so unlucky today [05:02] guy with nick ubu the tech guru who dont know bash [05:04] Hello, I'm setting up RAID MDADM for the 1st time. I believe I need to add Terminal commands, so should I install a Linux OS, as my blank HDDs are not betting yet. Just the BIOS. [05:05] run ubuntu install and do it during install [05:05] nunizacu, cryptodan i'm back [05:05] 14.04 even recognizes fakeraid [05:07] linuxmint: are you running linuxmint? [05:07] cryptodan, I haven't installed an OS yet. I'm going to run Proxmox, so I thought I'd try the best RAID, RAID10? [05:08] promox is fakeraid [05:08] configure in bios and install on it anything [05:09] I prefer non-software raid but. [05:09] like 14.04 if you dont want to mess with kpartx [05:09] dunno if mint also has it already [05:10] before that i had to manualy do scripts to recognize fakeraid and lvm on it [05:10] nunizacu, I think the MOBO BIOS has a RAID option, so I'll try that then. [05:11] yeah, bad script could hose the system [05:11] well, its not that bad [05:11] you can always boot from recovery cd and fix it [05:12] most of the time [05:12] if it is proxmox bios almost for sure has raid option [05:12] but how you set it up is mobo dependend [05:13] i have mobo where it takes 20 minutes to open fakeraid menu [05:15] can someone help me get this script working with nginx that's installed within /usr/local/bin/nginx please? http://paste.ubuntu.com/9017449/ [05:15] you messed up update-rc.d [05:15] it may not start automagicly [05:16] tried sudo start ngnix ? [05:16] look at the spelling [05:16] nunizacu, not sure what you mean by messed update-rc.d. all I did was sudo update-rc.d nginx defaults and sudo update-rc.d nginx enable [05:16] nginx [05:17] i have 11 terminals open and more than 30 hours on foot, i can mess words [05:17] cryptodan, that's what I have, earlier when I put ngnix that was the typo. [05:17] no in the script [05:19] cryptodan, here's the script http://paste.ubuntu.com/9019140/ [05:19] NAME="nginx" [05:20] oh it is spelled right [05:20] cryptodan, right [05:21] wait its not unless you misspelled it? [05:21] cryptodan, i dont' follow what you're saying [05:22] nevermind [05:23] maybe change name of original nginx and add your installed patho to PATH [05:24] type should find it [05:26] PATH in script, not systemwide [05:27] nunizacu, i'm sorry, i don't know what any of that means [05:27] where did you get this script in the first place? [05:28] cryptodan, i'm not sure to be honest [05:29] so you openly run a script from which you do not know where you got it from? [05:29] cryptodan, if you have another nginx script that will work with my installed nginx that's in /usr/local/nginx than I would really appreciate that [05:29] ubuntuaddicted: usually when you complie something like that it wouldcome with its own script [05:29] I dont openly go out on the web looking for scripts to run my services if I compiled them [05:30] cryptodan, apparently so. looking at this one looks promising http://wiki.nginx.org/Nginx-init-ubuntu [05:30] ubuntuaddicted: look in the source package from which you compiled it from [05:31] otherwise I would highly recommend that you stop trying to mess around servers and services in general if you do not know what you are doing [05:31] cryptodan, hmm, i followed this guide for compiling nginx here: https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/ [05:31] cryptodan, i can only learn if i try [05:32] there is no script there [05:32] cryptodan, and i have not really learned init scripts or upstart. i normally just install packages using the default repo's BUT minecraft and nginx aren't in the default repo's (well you know why I had to compile nginx-because i needed the rtmp module) [05:33] cryptodan, i realize that but it appears like it has a $PATH variable in it that I can set [05:36] cryptodan, it appears as though I got my current script from https://wiki.debian.org/LSBInitScripts [05:36] this is how you start and stop the script based upon the quide you sent $ sudo /usr/local/nginx/sbin/nginx -s stop $ sudo /usr/local/nginx/sbin/nginx [05:37] cryptodan, i know how to stop and start nginx manually. i am trying to get it to auto-start when the server starts [05:37] put /usr/local/nginx/sbin/nginx in rc.local [05:41] cryptodan, that wouldn't be using upstart then right? [05:41] cryptodan, because that new script I linked to even has the default conf directory correct being NGINX_CONF_FILE="/usr/local/nginx/conf/nginx.conf" [05:41] nope but it would allow you to do what you want [05:45] ubuntuaddicted: here you go http://wiki.nginx.org/Upstart [05:47] cryptodan, but i'm not familar with initctl. with that upstart job would I be able to manage the service with sudo service or no? [05:47] cryptodan, so this script woudln't work? http://wiki.nginx.org/Nginx-init-ubuntu [05:48] ubuntuaddicted: also this http://wiki.nginx.org/Nginx-init-ubuntu [05:49] cryptodan, lol, that's what i linked like 15 minutes ago [05:49] that wasnt your pastebin [05:59] cryptodan, actually this script looks the most promising. https://raw.githubusercontent.com/JasonGiedymin/nginx-init-ubuntu/master/nginx [06:00] the one posted from the nginx wiki is the one you should use [06:00] cryptodan, linked from this guide here: https://www.vultr.com/docs/setup-nginx-rtmp-on-ubuntu-14-04 [06:02] cryptodan, do i need to do anything writh update-rc.d? [06:03] update-rc.d nginx enable I believe [06:03] cryptodan, i don't need to remove or disable the current one? [06:04] yes and then renable the other one [06:04] cryptodan, i did sudo update-rc.d nginx disable [06:05] cryptodan, installed the new nginx file. now i just run sudo update-rc.d nginx defaults && sudo update-rc.d nginx enable? [06:05] defaults should be all that is required [06:07] cryptodan, sudo update-rc.d nginx defaults returned System start/stop links for /etc/init.d/nginx already exist [06:08] cryptodan, so i did sudo update-rc.d nginx enable and it removed all them and then re-added them scripts in each of the /etc/rc0.d/K20nginx [06:10] cryptodan, hmmm, so now sudo service nginx start doesn't work. it says nginx: unrecognized service [06:11] cryptodan, ahhhh, it was because i didn't chmod +x the /etc/init.d/nginx file. it's working now. [06:13] reboot and see if it starts [06:14] cryptodan, i would if no one was on the server but there is so i have to wait until they get off. i run a minecraft server. :) [06:14] internet issues [06:15] cryptodan, but sudo service nginx start works. and sudo service nginx stop works. so i believe we got it working. :) I really appreciate your help and patience [06:15] you are welcome, and to learn serving I would highly recommend using a VM till you get the hang of it [06:17] cryptodan, thanks. i just need to do some learning of init i guess or upstart or whatever it's referred as in xubuntu 14.04.1 [06:18] so that way you dont open yourself up for exploit [06:22] cryptodan, i have a hardware firewall protecting me but i see what you're saying [06:22] if it is made by man it can be broken by man [06:23] cryptodan, :) [07:01] So, setting up RAID on new computer and BIOS says RAID can be setup with BIOS if using Windows. I'm using Linux (Proxmox on Centos), so do I need to build a different type of RAID like mdadm? [07:23] ok, i'm back. apparently despite us fixing that minecraft startup script which is supposed to start a screen session that I can attach to, there's no screens running under user minecraft or under my user. can anyone help again? [07:26] ubuntuaddicted: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-minecraft-server-on-linux [07:26] www.openas.org - an open-source Anti-Spam appliance - We're still looking for contributers, volunteers and supporters. Check it out! [07:31] cryptodan, thanks but i'm not using those instructions. according to ps aux | grep minecraft both screen and minecraft are running [07:31] cryptodan, http://pastebin.com/yJacZVzY [07:31] screen -R [07:32] cryptodan, that just brings up a new screen session [07:32] screen -r [07:33] actually, it returns this Cannot open your terminal '/dev/pts/19' - please check. [07:33] when i run screen -R with user minecraft [07:35] if i chown /dev/pts/19 so it's owned by user and group minecraft screen -R results in a new screen session and screen -r results in There is no screen to be resumed [07:37] do it as user who did screen [07:37] not sure if what user juboobbleton did was an acceptable workaround in this post https://github.com/superjamie/minecraft-init-script/issues/26 [07:37] login as user whitch you did screen and then screen -l [07:38] or if you dont like login sudo -u USER screen -l [07:38] nunizacu, if i ssh into the server as user minecraft and try screen -r it says there is no screen to be resumed [07:39] and screen -ls returns this No Sockets found in /var/run/screen/S-minecraft. [07:39] sudo ls /var/run/screen [07:40] so i don't believe adding /etc/init.d/screen-cleanup start to my minecraft start script was the correct workable solution. [07:40] nunizacu, that returns this S-minecraft S-ubu [07:41] sudo -u minecraft screen -l [07:41] sudo -u ubu screen -l [07:41] if you see some - sudo -u user screen -r [07:42] typing in sudo -u ubu screen -l just takes me into a new screen session as user minecraft. what do i do once i'm in htere? [07:44] nunizacu, i don't believe it's setup correctlly. that script is suppose to start a screen session, run as a daemon as user minecraft and then start the minecraft server. i should be able to reattach to screen which is named surivial-mc and see the minecraft server console but so far i can't find the running screen session [07:47] nunizacu, according to screen -list No Sockets found in /var/run/screen/S-minecraft. [07:48] so you have no screen running [07:49] but man you do web servver, minecraft server or what? [07:49] ubuntuaddicted: why must you use a script? [07:49] ssh in, run screen, run minecraft server [07:49] nunizacu, apparently not under user minecraft. but what i'm confused about is ps aux | grep minecraft shows SCREEN running http://pastebin.com/yJacZVzY [07:49] Ben64, so that if the power goes out it auto-restarts [07:50] you can do it with start-stop-daemon [07:50] assign pid, loop test [07:50] and restart when needed [07:50] ubuntuaddicted: you're overcomplicating it [07:50] learn something about linux, bash and anything man [07:50] nunizacu, if there's some other way to have it autostart when the server boots up please let me know [07:51] your server shouldn't be dying often enough that you need to do that [07:51] so what sucks right now is i can't safely stop the minecraft server [07:51] man, if it wasnt your nick i would do it long time ago (i can survive overgrovn ego to this extent only) [07:52] my server == 02:51:45 up 78 days, 23:11, 4 users, load average: 0.00, 0.01, 0.05 [07:52] and that reboot was planned [07:52] Ben64, you run a minecraft server? [07:52] i have [07:53] if i can't reattach to the screeen it's running in, what's the safest way to stop it? [07:53] should be able to do that from within the server [07:53] Ben64, i can't get to the server console. [07:54] i mean, in game [07:54] Ben64, someone helped me earlier thinking they fixed it for me but it turns out it didn't fix the problem, it just made it so the minecraft server started when the server booted up BUT i can't get to the screen session to manage the minecraft from it's console [07:55] yeah, stop relying on scripts and stuff [07:56] I would follow this guide https://www.digitalocean.com/community/tutorials/how-to-set-up-a-minecraft-server-on-linux [07:56] Ben64, i need some automated way for the minecraft server to start and it's all over the web as far as guides showing people how to use the init script to start screen and then start minecraft [07:56] you really don't need an automated way [07:56] you start it, and it runs forever-ish [07:57] Ben64, as I said, if for whatever reason the server is restarted i'd like it to auto-start but i see your point. but solving my current dillema, i'm on the server thru my minecraft client. what's would i type in to stop it safely? [07:57] ubuntuaddicted: or this one http://minecraft.gamepedia.com/Tutorials/Ubuntu_startup_script [07:57] at last [07:58] i was about to write one for him [07:58] i man guru [07:58] i have only 17 years of expirience [07:58] maybe you shouldn't be running a minecraft server [07:58] if you can't figure out how to start/stop it [07:58] and dont have enought bandwidth [07:58] or any type of server for that matter [07:58] or running java on startup by using random scripts you find online and root and all kinds of stuff [07:58] red flags everywhere [07:59] cryptodan, that doesn't use screen so that wouldn't allow me to admin the server thru the minecraft server console [07:59] you can run screen inside start-stop-daemon [07:59] you can redirect fd's [07:59] or do many fancy things [08:00] nunizacu, i'm sure you can, i was merely stating what cryptodan linked to did not have screen incorporated. [08:00] simple google https://www.google.com/?gws_rd=ssl#q=minecraft+server+admin+console [08:00] man, screen is one of first thing irc guy learns [08:00] and bash is first thing linux guy learns [08:00] start with that [08:01] Ben64, so it's safe to just type in stop from my minecraft client? i've never used server commands in the client before [08:02] http://minecraft.gamepedia.com/Commands [08:02] really, maybe you shouldn't be running a server [08:02] I told him to practice in a VM first [08:02] good idea [08:03] well i offer vm's but for guys who do some cool stuff [08:03] cryptodan, i was already looking at that. it doesn't state it's safe to do from the client [08:04] Ben64, i can't learn if i don't do. i'm attempting to do. asking for help, if you're unwilling to help and can only belittle me than i was mistaken that this was a support irc channel for ubuntu-server [08:04] there is a proper way to learn server hosting, and being inexperienced and hosting public facing servers is not the way [08:05] ubuntuaddicted: you're doing less doing and more copying scripts you find online [08:05] man learn basics first [08:05] i'm suggesting you actually DO and run screen yourself [08:05] Its all we need is another exploited server out there hosting malware such as cryptolocker [08:06] when i was starting i had to manualy hunt for sources to build anything couse slack had not apt-get or so [08:06] I was handed a Debian 2.0 Disk and was told have fun and good luck [08:06] it was just hunting for some program and then hunting for dependencies, and dependecies of depenencies [08:07] so you remember how cool it was when mandrake came out [08:07] i compiled 2.6 kernel when it came out, had to update pretty much everything in order for that to work [08:07] i didn't follow any guide or anything, just tried stuff till it worked [08:07] man, kernel compiling become daily stuff [08:07] I removed /etc once [08:08] the upgrade from 2.4 to 2.6 was huge though :) [08:08] man, worst nightmares was gcc updates [08:08] or glibc [08:08] tried removing postfix manually and well lets just say I typed in rm -rf /etc and thought I hit tab but then hit * and well hit enter [08:09] rm -rf / is oldest joke ever [08:09] and thats how you learn to quintuple check before hitting enter [08:09] i had the server working just fine previously but had to manually start the server. screen was launched and minecraft launched within that. it was working. i came here to get help to automate it during a bootup. someone in here gave me a command to add to my minecraft init script which i had thought made the minecraft server start at system boot BUT it didn't make a reattachabel screen so the solutiuon given to me was incorrec [08:09] t. [08:09] man LEARN HOW INIT SCRIPTS WORK FIRST [08:09] sorry for caps [08:09] im sick for 2 months [08:10] i've never entered commands for the server in a client before. [08:10] and after 6 or 7 antibiotics [08:10] well, its good we have sudo [08:10] it's a bug in screen, in ubuntu's provided screen package since 4 years ago [08:11] yeah, im using screen right now [08:11] on ubuntu [08:11] at least i got my server back to running the way it was before I came here. [08:11] screen is running for user minecraft, and I can reattach to it just fine. [08:11] screen somprogram, control-a-d, screen -r [08:12] whole philosophy [08:12] and see the minecraft server console so all is well [08:12] man, you are just toxic [08:12] learn basics [08:12] now to figure out how to autostart it when the server boots up. that's for another day cause i'm exhausted. worked 13 hours at my normal job and then messed with minecraft and nginx all night. [08:13] alternatively, don't autostart it [08:13] and i work over 35 hours now [08:13] thanks for everyones help. goodnight [08:13] beat that [08:13] if you are netadmin they dont ask if you can or can do it, or if you have time, you have to get it done [08:14] easily, my longest shift was 31 hours without leaving :) [08:14] if i have a problem i google and try thus learn [08:14] well, my shift ends maybe tommorow [08:14] excuse me, 39 [08:14] anyway...... night [08:15] sleep looong [08:15] where such guys come from [08:15] he acts like fifteen years old egoovergrown kiddo [08:16] 39 shift... i have 35 and i have more coffeine inozytol and taurine than blood [08:17] and alive just becouse i slept last 30 hours [08:17] i thought ubuntu-server would be channel for some guys who knows at least basics [08:18] i know its not lfs but anyway [08:18] i had to run from networking channel becouse they didnt know why fd80 adresses work and others dont [08:19] it's good i have my ovn irc server [08:55] ehh, #gentoo is no better [08:55] 'how can i do this'? ansawer 'dont' === bilde2910|away is now known as bilde2910 === exixt is now known as exixt_ [10:39] Good morning. === bilde2910 is now known as bilde2910|away === zz_DenBeiren is now known as DenBeiren [12:03] hi there [12:03] i have a short question [12:03] i have two php versions on my server [12:04] i try to install apc [12:04] but after install php5-dev i sill get sh: 1: phpize5514: not found [12:04] i think i have to link phpize to phpize5514... but how? [12:07] which repo did that come from ? [12:08] puh. donk know [12:08] sorry i am a noob [12:08] my other php is php5514 [12:09] i just need to figure out why phpize dont like it [12:09] what i try is pecl install apc [12:10] Nafetsch: What is the output of 'apt-cache policy php5-dev'? [12:11] php5-dev: [12:11] Installiert: 5.3.10-1ubuntu3.15 [12:11] Kandidat: 5.3.10-1ubuntu3.15 [12:11] Versionstabelle: [12:11] *** 5.3.10-1ubuntu3.15 0 [12:11] 500 http://ubuntu.mirror.serverloft.de/ubuntu/ precise-updates/main amd64 Packages [12:11] 500 http://ubuntu.mirror.serverloft.com/ubuntu/ precise-security/main amd64 Packages [12:11] 100 /var/lib/dpkg/status [12:11] 5.3.10-1ubuntu3 0 [12:11] 500 http://ubuntu.mirror.serverloft.de/ubuntu/ precise/main amd64 Packages [12:11] !paste | Nafetsch [12:11] Nafetsch: For posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic. [12:11] SORRY [12:12] I will do that next time [12:12] !info apc [12:12] Package apc does not exist in utopic [12:12] I think php5-dev is installed for my 5.3.10 [12:13] but i have also 5.5.14 [12:13] I think my problem is that when I installed the php-dev it is not for the 5.5.14 ... is that possible? [12:13] Nafetsch: Is it the 'php5-apcu' what you are trying to install? [12:14] ACP YES [12:14] pecl install apc [12:14] Nafetsch: Why not take the package? [12:15] how? [12:15] Nafetsch: apt-get install php5-apcu [12:15] I actually hope to learn something... [12:15] Whoops.. [12:15] you shouldn't be using apc anymore in recent php [12:16] use opcache. [12:16] this looks like a PPA [12:17] i want to use it for own cloud [12:17] apc is dead. [12:17] PHP module apc OR PHP module apcu OR PHP module xcache [12:17] the docu of owncloud says: [12:17] that's nice. use an older php then. [12:18] apt-get install php5-apcu SAYS: package not found ! [12:18] apc is dead, jim [12:18] apc - it's dead. jim. [12:19] Nope. [12:19] Ugh, irssi history and high latenc don't mix... [12:20] when I try to install APCu I get the same error [12:21] who knew. [12:21] running: phpize5514 sh: 1: phpize5514: not found ERROR: `phpize' failed [12:21] 15-13:15 < mardraum> you shouldn't be using apc anymore in recent php [12:21] 15-13:16 < mardraum> use opcache. [12:21] ^ [12:25] OK GUYS general question about apt-get install [12:26] HOW can i tell apt get install which PHP I WANT TO USE [12:26] because it installs everything for the old one [12:26] I'd be more interested in why you have 2 versions [12:26] and where those 2 versions are coming from [12:26] i have plesk and i can choose [12:26] but that doesnt matter [12:27] it does matter [12:27] as it defines how your system is configured [12:27] when i write which PHP [12:27] i get the old one [12:27] "/usr/bin/php" [12:28] again - I'm more interested in where your different versions are coming from before suggesting any course of action [12:28] is that where apt get install does the stuff for ? [12:28] i compiled it [12:28] that seems unlikley [12:28] as apt-get would not show your compiled version [12:29] and It performs very well [12:29] * mardraum giggle [12:29] but i dont know how to add modules to it or change it with apt get install [12:29] you don't [12:29] assuming you are correct i that you compiled it [12:29] ah ok [12:29] apt-get will not interact with your compiled version [12:30] is that possible? [12:30] the it will interact? [12:30] or do i have to recompile it? [12:30] no [12:30] apt knows nothing about your compiled version [12:30] how to tell it about [12:30] Unless you package your compiled code and install it through dpkg. [12:30] my compiled version [12:31] ah ok [12:31] is that complex? [12:31] But all of that is not supported here. [12:31] ok thank you [12:31] but if I need apcu now [12:32] i can just recompile my php and put that in [12:32] right? [12:32] thats up to you - it's your compile [12:33] :D [12:34] actually that is what I tried before but I have problems to add new stuff to my compile config [12:35] what i do is for example: apt-get install php5-dev [12:36] but how add it to my compile: ./configure ----with-php5-dev [12:36] that dont work :( [12:36] Nafetsch: that won't work [12:37] mhhmhm [12:37] installing php5-dev won't do anything magic, your source tree is what needs to be aware of it [12:37] i know :D [12:37] Nafetsch: You said you had it compiled yourself, then why do you use the headers from the repo? [12:37] if you know why are you telling us pointless information [12:38] I dont know where to read more about it... [12:38] about what ? [12:38] Nafetsch: Why did you compile php in the first place? [12:38] I don't understand [12:38] you state you're doing it wrong (by showing us examples) [12:39] then when I explain how it's wrong you say "I know" [12:39] I did a tutorial for the compiling. because I need a new PHP version. [12:39] so whats the issue ? [12:40] where can i read something about Configuring my compile... how can I compile apcu into my new PHP [12:40] lordievader ... Sorry I dont know what you want to say with headers of repo [12:41] -dev packages usually contain headers for when you want to compile stuff that has those dependencies. [12:42] For example php5-dev would be installed if you want to compile a custom module against the install php version. [12:42] *the installed php versin == the version from the repo. [12:43] Nafetsch: ##php is the php support channel, they have some very skilled people [12:43] ok. thank you lordievader and ikonia === bilde2910|away is now known as bilde2910 === exixt_ is now known as exixt === ter0 is now known as Guest49461 === exixt is now known as exixt_ === danwest is now known as danwest-afk === freeflying__ is now known as freeflying === markthomas|away is now known as markthomas === suigeneris is now known as Kartagis === balloons is now known as Guest4725 === Bilge- is now known as Bilge === psivaa_ is now known as psivaa-holiday === jrgifford__ is now known as jrgifford === Ursinha_ is now known as Ursinha === jrgifford is now known as Guest49681 === tsimpson_ is now known as tsimpson === Mogwai is now known as Guest60362 === genpaku_ is now known as genpaku === genpaku is now known as genpaku_ === genpaku_ is now known as genpaku__ === ValicekB_ is now known as ValicekB === schrodinger_ is now known as schrodinger === RobertLaptop_ is now known as RobertLaptop === freyes_ is now known as freyes === mikedep3- is now known as mikedep333 === KaeltenAway is now known as Kaelten === suigeneris is now known as Kartagis === robher_ is now known as robher === Siebjeee is now known as Siebjee === ttx` is now known as ttx === fhd_______ is now known as fhd______ === stgraber_ is now known as stgraber === daker__ is now known as daker [20:44] hi! I have a ubuntu server that is in a microsoft virtual hard drive that is 300GB 220GB is empty space (after shrinking) I tried using clonezilla to clone the vm to a smaller virtual drive but it fails unreacognized sda format... [20:45] my question is this [20:46] can I create a new vm that is 60GB (2GB for /boot) 58 for system using the ubuntu installer then boot from a live cd the original vm and the new one and rsync the install to new drive [20:46] after removing the fresh install from the new drive (just leaving the partitions)? [20:46] yes [20:47] you can simply rsync the files, then install grub on the new disk [20:47] if so what rsync switches would i need I would have to preserve all the special files and symlinks [20:47] you will have to update fstab for the UUID [20:47] rsync -aH [20:48] i would just copy the data to the new install but its a rather complicated install with lots of customized configs everywhere === dannf` is now known as dannf === bilde2910 is now known as bilde2910|away === moonligh- is now known as moonlight === Nigel_ is now known as G