=== JanC_ is now known as JanC [00:49] ok is there any way to reinstall server? I had set it up last night on a old dell and it was working fine for a few hours then nothing. I rebooted it at one point only to have it go black screen after BIOs [00:49] I've tried rescueing it with the install media I used the first time but I can't figure it out to do that..... === maxb_ is now known as maxb === JanC_ is now known as JanC [02:46] Hello dose anyone meet locale-gen steal ram problem? [02:46] We use chef-client to provision out machine, but today we found when we execute "locale-gen en_US en_US.UTF-8" command, the command hang and steal many of memory [03:13] yes, running a command that takes a lot of ram, will use a lot of ram [05:19] I'm looking for a GENIUS to work with us on the most promising drone AI company. Do you know any geniuses here? [05:45] is anyone here familiar with ROS/robotics on linux? computer vision, AI, drones, manufacturing, electronics, industrial design, awesomeness, video-making, marketing, lean startup, design-thinking, ethnography, graphic design, or anything related? [07:58] stanford_ai: if your list is meant && and not || you are looking for excessive self-esteem instead of a person right :-) ? [07:59] lol [08:38] Good morning. [09:24] Good time, [09:25] libreadline5-dev packege not in apt-get base, what alternative? [09:25] E: Package 'libreadline5-dev' has no installation candidate [09:27] !info libreadline [09:27] Package libreadline does not exist in yakkety [09:27] !find libreadline [09:27] Found: libreadline-dev, libreadline-gplv2-dev, libreadline5, libreadline5-dbg, libreadline7 [09:27] !find libreadline-dev [09:27] Found: libreadline-dev [09:27] libreadline-dev (source: readline): GNU readline and history libraries, development files. In component main, is optional. Version 7.0-0ubuntu2 (yakkety) [09:28] seems we are at 7 now, Village [09:28] i see, OerHeks, Thank You [09:29] !info libreadline7-dev [09:29] Package libreadline7-dev does not exist in yakkety [09:31] strange, ey? [09:32] that points to libreadline-dev itself [09:32] at least info libreadline7-dbg is available. [09:34] yes i will try libreadline-dev [09:34] one people recomendet it from all packager [09:34] packages* [10:31] coreycb, morning [10:31] jamespage, morning! === disposable3 is now known as disposable2 === ashleyd is now known as ashd === jamespage_ is now known as jamespage [14:42] nacc: o/ for when you get in, any chance you have some time to spare with me on letsencrypt/certbot please? === admcleod_ is now known as admcleod [15:09] hello I want to use of python instead of php in vps what shoud i do? [16:52] rbasak: sure [17:23] "That is our last such motherboard and I'm not sure if it is ready to ship. Just checking, do you need the exact model or something similar?" *sigh* === JanC is now known as Guest36981 === JanC_ is now known as JanC [17:24] whoops [17:24] wrong channel === pavlushka is now known as KindThree === KindThree is now known as pavlushka === dcosnet1 is now known as dcosnet [18:00] Hey all. I am trying to write a simple bash script that will call a few other scripts. Those scripts have input prompts with default values. I just want the scripts to accept all the defaults. How can I do that? They are not all yes, but some are locations and a few are yeses? [18:01] Is there some arguement I can pass into the ./scriptname/sh that will accept the defaults [18:02] xpistos: is there a default value that will cause the scripts to work automatically? [18:02] xpistos: you may want to look at the `yes` utility [18:03] nacc: they defaults are always different, but the user only needs to hit enter to accept whatever the defaults are. sometimes they are "/opt/program/folder" and other times they are "yes" [18:04] hrm, `yes '' | /other/script` may work then [18:04] not sure if yes can take an empty string or not [18:04] let me look into it [18:04] xpistos: alternatively, you can use expect for it [18:07] nacc: I am trying to use "-d default" as an argument to one of the complicate scripts now. [18:08] xpistos: -d as a flag to what? [18:09] ./vmware.pl -d default [18:09] xpistos: oh ok, i'd have no idea about that [20:59] nacc: got time now, or in half an hour? [21:00] rbasak: now is fine [21:00] Two minutes and I'll start a hangout. [21:00] k [21:51] server rebooted and only showing memtest+ in the grub.. need help to fix the grub.. [21:52] I tried to boot from live CD and mounted the /dev/md1 into /mnt and then grub-install --root-directory=/mnt /dev/sda and then same for /dev/sdb and then reboot.. still showing only memtest+ in the grub [21:53] # mdadm --assemble --scan [21:53] mdadm: /dev/md1 has been started with 2 drives. [21:53] # mount /dev/md1 /mnt [21:54] and then the rest [21:55] looks like there are more steps [21:55] http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd [21:55] all these are needed? [21:56] I did not run the update-grub [21:56] is that needed after the grub-install? [21:57] right now I am at grub> prompt [21:57] is there something I can do from here to fix it? [22:06] looks like someone removed the kernel [22:06] nice! [22:08] you dont need a kernel [22:08] kernel is just deadbeat software [22:09] you need to boot fomr a live cd [22:09] fake programming [22:09] and run update-grub [22:09] and make sure it locates something to boot [22:11] so do the chroot first and then update-grub ? [22:11] patdk-lap: ^ [22:12] mount root, do your bind mounts, chroot into it, then run that yes [22:12] patdk-lap: like this url http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd .. it is doing a lot more [22:13] no, it's doing exactly what I said [22:13] patdk-lap: possible to send me a cheatsheet/link? [22:13] you just posted one [22:13] or a pastebin? [22:14] patdk-lap: ah ok.. I did not have bind in it [22:14] heh? [22:14] why would you need bind? [22:14] i meant bind mounts [22:14] hmm, they are on that page you just posted [22:14] patdk-lap: ah ok.. got it.. thank you [22:15] heading back to the lab [22:32] patdk-lap: if I chroot to /mnt update-grub fails since the OS probably has older version? OS is 14.04 and live cd is 16.04 [22:32] how do I run update-grub with root dir as /mnt ? [22:33] by following the instructions on that url you posted [22:33] that is the holw point of all those commands [22:34] patdk-lap: that one did not bind /usr [22:34] if you have more than a single mount, you will have to mount them all [22:35] nothing will be specific to your exact install [22:35] you need to mount everything you normally need, /, /boot, /usr, /var, ... [22:35] before you do the bind mounts [22:35] so mount xxxx /mnt [22:36] mount xxxx /mnt/usr [22:36] mount xxxx /mnt/boot [22:36] then your binds, mount --bind .... [22:36] ah.. [22:37] grub-install worked from livecd since I can point to /mnt as root dir [22:37] may be I could use update-grub of livecd if I can point to /mnt as root dir [22:38] how do I read the disks fstab? [22:38] mount / to /mnt ? [22:40] ignore that question [22:40] /mnt is root .. doh [22:41] so /mnt/etc/fstab does not have anything but / and swap [22:41] root@ubuntu:/mnt/usr/sbin# ls -al update-grub [22:41] -rwxr-xr-x 1 root root 64 Mar 15 2016 update-grub [22:41] root@ubuntu:~# chroot /mnt [22:42] root@ubuntu:/# update-grub [22:42] /usr/sbin/grub-probe: error while loading shared libraries: libdevmapper.so.1.02.1: cannot open shared object file: No such file or directory [22:42] didn't mount everything you needed? [22:42] only / and swap needed per fstab [22:43] and they are mounted [22:43] no idea why that is missing [22:43] http://dpaste.com/347CS45 [22:44] ok, that is confusing as crap [22:44] your mounted it inside itself like 4 times? [22:44] confusing [22:44] sorry I was following his url where he did that [22:44] he didn't do chroot /mnt >1 time [22:45] I don't think I should see grub-install or update-grubs cause those would be in a new shell [22:46] I think you should reboot and try again [22:46] mdadm assemble [22:46] ok [22:46] mount /dev/md1 /mnt [22:46] then start the bind mounts, chroot, grub stuff [22:46] rebooting now [22:47] hmm I have exit after each chroot [22:47] did not know in history [22:50] bind mounts is line 7 thru 10 .. correct? since I dont have any special partitions? [22:50] yes, no need for 6 [22:52] installing mdadm on livecd [22:54] all 4 binding done.. [22:55] grub-install --root-directory=/mnt /dev/sda will work.. or should I do chroot and run it without root dir option? [22:56] and same for /dev/sdb [22:57] with chroot /mnt, grub-install does not work [22:57] program not found [22:57] why did you do that? [22:57] you should follow the url, not modify and insert other things [22:57] ok exited out of chroot [22:57] why? [22:58] you must be in the chroot [22:58] what does, grub-install /dev/sda, say? [22:58] exiting out will NOT fix your issue [22:58] it just means your issue is much worse than just grub [22:58] http://dpaste.com/3GBSR0F [22:59] ok, ignore that for now [22:59] what about update-grub [23:00] and what does, dpkg -l | grep grub, say? [23:00] http://dpaste.com/1EY73JK [23:00] ok, so grub doesn't appear to be installed at all, or you didn't mount stuff right somehow [23:00] http://dpaste.com/18XJX5H [23:01] that says grub was uninstalled [23:01] is networking setup on this live boot? [23:01] yes [23:01] apt-get install grub-pc then [23:02] just so you know, I am still on chrooted env [23:02] as you should be, I never said to exit [23:02] we aren't attempting to fix the live install :) [23:03] http://dpaste.com/305X210 [23:03] so networking was not setup and working [23:03] exit out and get networking setup [23:03] oh wait, you probably just need to get resolv.conf fixed up in the chroot [23:04] or /etc/hosts the thing [23:04] ya, add us.archive.ubuntu.com to /etc/hosts in the chroot [23:05] 91.189.91.26 and 91.189.91.23 [23:06] that is fixed with hosts file.. thanks guys! but apt still has issue [23:06] http://dpaste.com/0N2KK6Q [23:06] apt-get update [23:07] then attempt again [23:07] your local apt cache must be way out of date [23:07] atleast I don't remember grub being updated recently [23:08] ok.. updating it.. need security.ubuntu.com also [23:08] the same two should work [23:09] (there's way more but .. meh. you just need this up and running, right? :) [23:09] sarnold: right :-) [23:09] sarnold, I finally upgraded all my letsencrypt stuff to dehydrated :) [23:09] life is so much nicer now [23:09] patdk-lap: I hadn't heard of that yet.. [23:10] it's very simple [23:10] I like simple [23:10] but has nice hook calls, so I have it hooking to generate my pinning, tlsa records, and cert rotation [23:11] so much more reliable than certbot [23:11] hadn't done it yet, cause certbot was *working* [23:11] apt-get install grub-pc is success. [23:11] but it died on me horrible 2 weeks ago, just found the time to fix it, before they expired in 2 more weeks [23:11] :) [23:11] root@ubuntu:/# update-grub [23:11] Generating grub configuration file ... [23:11] grub-probe: error: disk `md1' not found. [23:11] now to do grub-install and update-grub [23:12] odd [23:12] mdadm installed? [23:12] nawp :-) [23:12] I wonder what happened to uninstall all this stuff [23:12] dpkg -l | grep ^rc [23:13] best review what got removed :) [23:13] previous sysadmin is in a "shock" when I asked [23:13] mdadm installed now [23:13] mdadm by itself I don't think should have caused that error [23:13] --assemble --scan ? [23:13] no [23:13] ok [23:14] outside the chroot counts for that [23:14] cause of the bind mounts [23:14] why I suspect something else [23:14] but I just have no idea yet, what [23:14] root@ubuntu:/# grub-install /dev/sda [23:14] Installing for i386-pc platform. [23:14] Installation finished. No error reported. [23:14] ah, so it must have wanted mdadm [23:14] for some reason [23:15] root@ubuntu:/# grub-install /dev/sdb [23:15] Installing for i386-pc platform. [23:15] Installation finished. No error reported. [23:15] I would update initrd files [23:15] lets review that dpkg -l | grep ^rc, though [23:15] /boot has almost nothing [23:15] if all this stuff got removed, and it's missing from initramfs too, it won't boot even if we fix grub [23:15] root@ubuntu:/boot# ls [23:15] grub memtest86+.bin memtest86+.elf memtest86+_multiboot.bin [23:15] so no kernels either [23:15] ok, no need to fix initramfs then [23:16] man what happened to this poor system? [23:16] patdk-lap: like I mentioned earlier.. [23:16] are we sure we dont' need to mount /boot? [23:16] from somewhere? [23:16] sarnold: previous mediocore sysadmin's blessing [23:17] what does blkid show? [23:17] I just want to be very careful we aren't *fixing* the wrong thing [23:17] http://dpaste.com/1Y3CCHX [23:17] ya, a second raid [23:18] likely swap you said? [23:18] is swap another md? [23:18] patdk-lap: yes md0 [23:18] ok [23:19] # swap was on /dev/md0 during installation [23:19] UUID=859bf518-f6bd-4d27-ae13-6c895b40a857 none swap sw 0 0 [23:19] guess this stuff did get wiped [23:19] lets get that dpkg listing [23:19] with the grep? [23:19] ya [23:19] grep ^rc [23:19] it will show a bunch of stuffwe don't care about [23:20] but lets see what else is missing that will cause boot failures [23:22] its looooong output.. hard to catch from console [23:22] I will try [23:23] 229 packages [23:23] ok, try this [23:24] dpkg -l | grep ^rc > /tmp/out [23:24] dpkg -l | grep ^rc | grep -v linux [23:24] wc -l /tmp/out [23:24] 229 /tmp/out [23:24] or, grep -v linux /tmp/out [23:24] 200 [23:24] heh [23:25] exit the chroot, and try using pastbinit [23:26] http://paste.ubuntu.com/24061714/ [23:27] that doesn't look good [23:27] what does this machine do? when it *works* [23:29] actually, a lot of that seems to be from a 12.04 -> 14.04 upgrade [23:29] its a xymon server.. monitors [23:29] right.. [23:29] I think they broke during their upgrade [23:30] dpkg -l | grep xymon [23:30] that shows an ii xymon line right? [23:30] version 4.3.7 it should be [23:30] line 200 [23:30] no, that is an rc line, not ii [23:30] ah [23:31] root@ubuntu:/# dpkg -l | grep xymon [23:31] rc xymon 4.3.0~beta2.dfsg-5 amd64 monitoring system for systems, networks and applications [23:31] so xymon isn't installed anymore either [23:31] xymon is compiled most likely [23:31] hmm, ok, but lets check this [23:32] is there anything in /etc/apt/sources.list.d [23:32] # ls [23:32] percona.list snabb-downtimed-lucid.list.distUpgrade [23:32] percona.list.distUpgrade zabbix.list [23:32] snabb-downtimed-lucid.list zabbix.list.distUpgrade [23:32] ok, that is probably what did it [23:33] its odd I could update /etc/hosts but not /etc/resolv.conf [23:33] well, /etc/resolv.conf is a symlink normally these days [23:33] so it's attempting to update the missing file it points to [23:33] /etc/resolv.conf -> ../run/resolvconf/resolv.conf [23:33] ya, you need to create that file [23:34] and directory likely also [23:34] Hey. I'm running Rails on rbenv/rvm (unsure right now), nginx, php5-fpm (wordpress sites), nodejs, go and some virtualization through virt-manager on my Ubuntu 14.04 server. [23:34] resolv working now [23:35] I'm thinking about dist-upgrading. How destructive can it be? I'm a complete newbie, not a experienced admin. [23:35] axisys, try this [23:36] marahin, i wouldn't call upgrading "destructive" [23:36] apt-get install ubuntu-minimal [23:36] pmatulis by "destructive" I mean: what might stop working on a machine that runs basic web stuff + teamspeak? :) [23:36] marahin, have you installed any software outside the official ubuntu arhives? [23:36] marahin, nothing [23:36] patdk-lap: done [23:36] pmatulis: as far as I can reach with my memory: none that I use currently. [23:36] the only time an upgrade or dist-upgrade would break something is, a software update that needs a config file change [23:37] unlikely, but happens sometimes [23:37] well, maybe phpmyadmin? [23:37] allright, you convinced me! :-) [23:37] axisys, ok, and what is the count on that dpkg -l | grep ^rc | wc -l [23:37] "#yolo" [23:37] marahin, do make backups of your data however [23:37] patdk-lap: 226 [23:37] pmatulis I can always rescueboot with another image on it. [23:37] the same? [23:37] patdk-lap: nawp [23:37] down by 3 :( [23:38] is it.. ah.. oh yeah there was a grep -v [23:38] how about [23:38] dpkg -l | grep ureadahead [23:38] ii [23:38] good [23:39] 0.100.0-16 [23:39] so lets get you a kernel [23:39] patdk-lap: please!! [23:39] :-) [23:39] this a physical machine? [23:39] patdk-lap: yes [23:40] apt-get install linux-generic [23:40] maybe also, apt-get install linux-firmware [23:41] getting it still... [23:42] ya, it will take a little bit [23:42] Pardon me, but: what about do-release-upgrade? Can this mess things up? [23:42] patdk-lap: so far so good :-) [23:42] marahin, that WILL cause you issues [23:43] do-release-upgrade will cause breakage [23:43] sometimes minimal, sometimes major, it depends on the software you use [23:43] cause that will do major upgrades [23:43] uh-huh. [23:43] I see. [23:43] well I guess I'll pass. I am going to swap the machines anyways soon, and then contenerize/isolate by virtualization the services [23:43] patdk-lap thank you! [23:44] patdk-lap: ok installed linux-generic and linux-firmware [23:44] update-grub [23:44] sweet.. looks good [23:44] marahin: apache drastically changed authentication and authorization configuration between 2.2 and 2.4; if you've got any apache in your stack, take a look at their docs first [23:44] ok, dunoo what else to fix now [23:44] have to reboot and test it :) [23:44] see what works and what doesn't [23:44] patdk-lap: crossing my fingers.. [23:45] sarnold nah I'll pass do-release-upgrade; I'm going to swap the physical machine anyways. And I'm using NGINX :) [23:45] marahin, it mainly comes into play in how many files you have edited, configuration changes you have made [23:45] can I eject from here? or do I need to go back to the lab and eject manually? [23:45] the less you do, the *easier* do-release-upgrade is [23:45] patdk-lap: ^ [23:45] axisys, exit the chroot [23:45] and just type in reboot [23:46] hopefully it wont boot from cdrom [23:46] Please remove the installation medium, then press ENTER: [23:46] it likely will, unless you remove it [23:46] try 'eject' first [23:46] ah.. cd usually gets kicked out by now [23:46] I always just remove it while at the bios screen [23:46] maybe the tray will suck it back in .. [23:47] sarnold: ok.. I will try from downstairs then [23:51] must locate sugar [23:51] took the cd out.. oh yeah I need some sugar too [23:52] rebooting with a kernel.. eehaa! [23:52] doing fsck [23:52] where's those girl scouts need more cookies [23:52] lol [23:53] we have potbelly here [23:53] oh yeah. I just polished off a wreck. [23:53] their cookies are really good.. and probably not healthy [23:59] out of sugar here :( [23:59] found italian ice though