[01:41] <djames> I'm stepping through the systemd settings on Ubuntu 16.04.1 server. I'd like to find where $TERM first gets set. I'd like to change it to xterm-256color at first login, for all TTY's.
[01:43] <djames> I'm looking at /lib/systemd/system/getty@.service and see that it refers to $TERM which is already set
[01:43] <djames> So I'd expect that somewhere in the chain before, $TERM gets set
[01:44] <djames> or detected
[02:58] <guest4146> hi
[02:59] <guest4146> What do you guys recc in terms of a GUI desktop environment for Ubuntu Server? (not talking shell, but preferred GUI) Is it somethig lightweight?
[03:00] <guest4146> this is just a question of curiousity
[03:03] <tsimonq2> guest4146: AwesomeWM, Lubuntu, i3
[03:41] <guest4146> ok... how do I get the desktop environment running after log-off. no ubuntu button to change DE AT ALL on login screen
[03:51] <rypervenche> guest4146: What Display Manager did you install?
[03:52] <rypervenche> guest4146: And which Desktop Manager did you go with?
[03:52] <rypervenche> guest4146: Also, why the need for a GUI?
[04:03] <guest4146> this is Ubuntu 16.04
[04:03] <guest4146> standard
[04:08] <JanC> did you install one of the -desktop packages?
[04:25] <djames> I'm looking for a recommendation on how to get a nice terminal with Ubuntu server, without X. My current terminal is TERM=linux and can't send various keys, such as CTRL-F2.
[04:26] <djames> I realize terminals are crazy/weird/complex/historical beasts. I read http://catern.com/posts/terminal_quirks.html
[04:26] <djames> Should I expect my terminal to generate *something* for CTRL-F2? Function keys in general work.
[04:27] <rypervenche> djames: What are you expecting it to do?
[04:28] <rypervenche> djames: Those are usually things that happen in the Desktop Environment.
[04:29] <JanC> well, it should also work in a terminal, if any application there uses it
[04:29] <djames> rypervenche For example `cat -v` then <F2> gives `^[[[B`. However, <CTRL-F2> gives nothing.
[04:29] <djames> I'd like to learn exactly why CTRL-F2 is not being generated.
[04:30] <djames> I started answering http://askubuntu.com/questions/827947/inspect-and-adjust-non-gui-terminal-configuration but there is more I want to learn
[04:30] <djames> For example, I'd like to find the code that shows where ALT-F1 gets trapped.
[04:30] <djames> And I'd like to see why CTRL-F2 is not passed along.
[04:31] <rypervenche> djames: Because that key combinatinion is a X thing.
[04:31] <djames> rypervenche I don't understand your reply. CTRL-F2 is a keypress, nothing more, nothing less.
[04:32] <djames> rypervenche You understand what `cat -v` does?
[04:32] <rypervenche> djames: Yes, but in the TTY you are using a keymap, in X you are using a keyboard layout.
[04:33] <djames> rypervenche still, your explanation isn't connecting the dots for me. some terminals / terminal emulations do in fact send CTRL-F2
[04:33] <rypervenche> djames: Some TTYs or only terminal emulators?
[04:34] <djames> I'm not sure
[04:34] <rypervenche> Then unless you are sure, you are talking about apples and oranges.
[04:34] <djames> I don't understand all the detailed differences, but I would like to learn
[04:35] <djames> Put another way, why doesn't a CTRL-F2 keypress show up in `cat -v`?
[04:35] <djames> My logic is this: if CTRL were simply ignored, the F2 part would still show up.
[04:35] <rypervenche> Because you are doing it from a TTY.
[04:36] <djames> rypervenche that isn't the "why" I'm looking for, sorry :)
[04:36] <rypervenche> I'll see if I can find something understandable for you.
[04:36] <djames> So, I'm if I'm using a TTY, why can't it handle CTRL-F2, in terms of a deeper explanation. Your response seems to be a summary of "it doesn't work because it is a TTY" but not *why* that is the case
[04:37] <rypervenche> I'll see if I can find a good explanation. For me, it's just the way of things, it's always been that way.
[04:37] <djames> ah, fair enough
[04:38] <rypervenche> What is ctrl+F2 supposed to do for you?
[04:38] <djames> rypervenche I'm not sure why you keep asking that
[04:38] <djames> I want to learn about terminals, key bindings, the stack, etc
[04:38] <rypervenche> Oh, so you're just doing all of the F keys as a test?
[04:39] <djames> Ultimately, I want that keypress to be available to Byobu
[04:39] <djames> But I find it very strange that some keypresses are ignored
[04:40] <djames> And I'd like to be able to look at the underlying code and see for sure exactly what is happening... e.g. is the keypress being ignored? swallowed by some other process?
[04:40] <rypervenche> I wonder if it's the TERM variable doing it.
[04:41] <rypervenche> You said you're using "linux", have you tried something else?
[04:41]  * djames is reading http://www.linusakesson.net/programming/tty/
[04:41] <rypervenche> like xterm
[04:41] <rypervenche> https://unix.stackexchange.com/questions/198711/how-can-i-pass-function-keys-to-htop-in-a-tty
[04:43] <djames> that's useful, I'm looking over `infocmp -L1` now -- pertaining to /lib/terminfo/l/linux
[04:46] <djames> rypervenche I don't think it is valid simply to change TERM=xterm arbitrarily. I say this because systemd autodetects TERM
[04:47] <rypervenche> Yes, and TTYs are usually set to "linux" and terminals to "xterm" or to the 256color variant. You can change them all you want.
[04:47] <djames> it is possible that CTRL-F2 is not considered to be (1) a valid keypress or (2) one keypress by most terminals
[04:47] <rypervenche> Other things change them, such as tmux or other terminals have their own TERM variables.
[04:48] <rypervenche> Yeah, that I don't know. You might try in ##linux
[04:48] <JanC> there are some fb terminals that might work
[04:48] <djames> So, if I do `TERM=xterm bash` it does change TERM; however `cat -v` <CTRL-F2> is no different.
[04:49] <djames> I'll go back to reading the TTY vs Terminal Emulation article.
[07:54] <lordievader> Good morning.
[11:59] <samba35> when i download any image from internet for maas  /pxe boot where that image is store on hardisk ?
[11:59] <samba35> i am trying to configure 1st maas server on ubuntu 16.04.1 with  maas version 2
[12:53] <cpaelzer> roaksoax: see samba35 above ^^
[12:54] <cpaelzer> samba35: in the example on https://maas.ubuntu.com/docs/sstreams-mirror.html it is /var/www/html/maas/images/ephemeral-v2/daily
[12:54] <cpaelzer> samba35: would this or similar match your case?
[12:54] <samba35> ok ,thanks
[12:58] <samba35> strange  ,when i click on images tab on gui it show two images are there but i dont have  any thing on /var/www/html/maas
[12:58] <cpaelzer> maybe the example isn't the place it downloads by default
[12:59] <cpaelzer> sorry - out of experience exception
[12:59] <cpaelzer> back to roaksoax ^^
[13:00] <samba35> but thanks it help me to understand
[13:00] <samba35> cpaelzer: thank you again
[13:01] <samba35> now it seems it downlading image from link you have provided
[13:01] <samba35> not sure :)
[13:08] <samba35> cpaelzer: can you please tell me if i have to configure juju and maas and lxd ,then how many nic/network card i will require ?
[13:09] <cpaelzer> samba35: sorry I can't - I'd check docs just as you
[13:09] <samba35> ok
[13:09] <samba35> no issue
[13:10] <samba35> r u ubuntu  employee ?
[13:11] <cpaelzer> samba35: not a heavy maas user yet, I always got mine set up by people who knew
[13:12] <samba35> ok
[13:26] <roaksoax> samba35: when maas first downloads it stores them in the DB
[13:26] <roaksoax> and then in /var/lib/maas/boot-resources/
[13:26] <samba35> ok
[13:27] <samba35> and where is DB location is ?
[13:27] <samba35> http://<server>/maas/images/ ??????
[13:28] <samba35> sorry /var/www/html/maas/images / ????
[13:33] <rbasak> cpaelzer: for bug 1625372, change the status on the top right to Public Security. Then it goes on the security team's triage queue.
[13:33] <samba35> when gui say it has download images but i could not see any image on actual location you mention ,in that case what mistake i must be doing ?
[13:42] <cpaelzer> rbasak: thanks, never had to click that
[15:26] <jamespage> coreycb, I can't see it in the queue (pbr)
[15:28] <coreycb> jamespage, it's in the unapproved queue
[15:29] <jamespage> coreycb, oh yes
[15:35] <jamespage> ftr we could have dropped d/p/no-u-string-for-python-3.2.patch
[16:43] <lucidguy> Ok, I have a handfull of servers with local storage.  What tech can I use to somehow pool them alltogether and present it back to the network as one large filesystem?
[16:45] <JanC> something like ceph probably
[16:48] <JanC> or export them as block devices using something like iscsi
[16:49] <lucidguy> JanC: iscsi?  How would you merge all the storage in the end though?
[16:58] <JanC> you could in theory use RAID or a filesystem that can use multiple block devices (in this case iscsi targets), but I don't think it's really a good idea
[16:58] <lucidguy> ceph and glusterfs seem to be what I'm talking about.
[16:59] <JanC> yeah, they are designed for what you want
[16:59] <JanC> looks like ceph is in main while glusterfs is in universe though
[17:01] <JanC> IIRC there is also a wikipedia page that compares distributed filesystems
[17:49] <xplatform12> on ubuntu 16, using conjure-up openstack is there a switch to specify xenial rather than trusty?
[17:58] <jgrimm> stokachu, ^^
[17:58] <stokachu> jgrimm: he left :\
[17:58] <jgrimm> doh
[17:58] <jgrimm> sorry, just noticed
[19:57] <dennism> Question:  Is this the correct channel to ask an Ubuntu 16.04 boot from iSCSI question?
[19:58] <sarnold> sure
[19:59] <dennism> thanks.  So  I am attempting to iSCSI boot Ubuntu 16.04 with IBFT.  If I boot with the boot option "iscsi_auto" the iSCSI NIC is not configured.  If I add all iSCSI parameters to the boot options then it boots.  Could someone point me at possible configurations that would cause the IBFT boot method to fail?
[20:12] <dennism> I have verified that /run/net-<iface>.conf and /run/initramfs/open-iscsi.interface files are populated correctly
[20:12] <jrwren> is there a way to have cloud-init install packages using no-install-recommends?
[20:13] <jrwren> or should I use bootcmd to create an /etc/apt/apt.conf.d file with Install-Recommends "false"; ?
[20:53] <unimatrixoverlod> hi all, need help with getting PHP to work after a do-distupgrade 14.04 LTS to 16.04 LTS: using aptitude all php packages are marked auto. I purged all and deleted /etc/php* to start fresh. I'm getting this error: "WARNING: Module mysqli ini file doesn't exist under /etc/php/7.0/mods-available". I'm open to any ideas on how to get the Ubuntu 16.04 LTS LAMP fixed. :)
[20:56] <OerHeks> unimatrixoverlod, see the releasenotes, https://wiki.ubuntu.com/XenialXerus/ReleaseNotes#PHP_7.0 and the mysql part
[20:57] <CodeMouse92> I'm trying to install https://github.com/Open365/Open365/ on Ubuntu 14.04, but I'm stuck on the "pip3" commands. I know from Python experience that you NEVER run "sudo pip" *anything*, lest you mangle your packages. Yet, if I set up a virtualenv, the "sudo ./open365 install" doesn't see its packages. I am completely lost
[20:59] <sarnold> CodeMouse92: check the output of 'sudo env', make sure it looks like what you expect
[20:59] <CodeMouse92> sarnold: I've never done this. I don't know what I expect
[20:59] <sarnold> aha
[20:59] <sarnold> I don't know enough about pip or virtualenv to say either :)
[21:00]  * CodeMouse92 weeps
[21:08] <unimatrixoverlod> oerheks: thank you, looking into it
[21:24] <blizzow> Is anyone else experiencing serious problems with disk IO/load issues on 16.04.1?  I fresh installed 16.04.1 on a Logical volume hosted on a RAID1 (mdadm) partition, on 7200 RPM drives, and my machines are just struggling to breathe.
[21:44] <unimatrixoverlod> After using Aptitude and purging all apache2 and php packages and deleting /etc/php* I get the message: "WARNING: Module mysqli ini file doesn't exist under /etc/php/7.0/mods-available".  Anyone have any ideas on how to get mods-available with the modules?
[21:45] <tomreyn> you install php and the modules.
[21:48] <unimatrixoverlod> tomreyn: sorry I didn't say I reinstalled apache2 and php...
[21:49] <unimatrixoverlod> tomreyn: so yes they are "installed" but not working.
[21:59] <tomreyn> unimatrixoverlod: you are probably lacking some packages: apt-cache search php7
[22:04] <tomreyn> unimatrixoverlod: http://packages.ubuntu.com/search?suite=xenial&arch=any&searchon=contents&keywords=mysqli.ini
[22:04] <tomreyn> this is for xenial, i'm not sure which release you were looking for.
[22:05]  * tomreyn afk
[22:06] <unimatrixoverlod> tomreyn: correct, it is for Xenial
[22:12] <unimatrixoverlod> tomreyn: http://paste.ubuntu.com/23217853/
[22:19] <unimatrixoverlod> tomreyn: these are the packages installed for "*php*". It looks like all the correct packages are installed for PHP7 functonality. Here is the /etc/apache2/* directory: http://paste.ubuntu.com/23217873/
[22:23] <unimatrixoverlod> tomreyn: the issue appears to be when Xenial re-installs php7 ( after a aptitude purge of PHP & rm -rf /etc/php )
[22:23] <unimatrixoverlod> tomreyn: here is the directory for /etc/php/: http://paste.ubuntu.com/23217884/
[22:26] <unimatrixoverlod> tomreyn: apt-get install fails to populate the /etc/php/7.0/mods-available directory
[22:29] <unimatrixoverlod> also running a2query -m show PHP7 is loaded but ALL <?php ?> does process as PHP: http://paste.ubuntu.com/23217903/
[22:29] <unimatrixoverlod> ideas anyone?
[22:29] <sarnold> have you checked the logs?
[22:30] <unimatrixoverlod> yes. i can pastebin a grep of something specific?
[22:30] <sarnold> I know next to nothing about apache and php; "check the logs" is just my generic debugging advice :)
[22:31] <unimatrixoverlod> oh, thank you though. very wise ;)
[22:33] <sarnold> it's amazing how well it works :)
[22:40] <nacc> unimatrixoverlod: can you start from the top and tell me your steps?
[22:44] <unimatrixoverlod> nacc: sure, let me type it up better. give me about 2min
[22:48] <nacc> unimatrixoverlod: for reference, i just did: `apt-get install libapache2-mod-php php7.0-mysqli; apt-get purge libapache2-mod-php php*; rm -rf /etc/php; apt-get install libapache2-mod-php php7.0-mysqli` and /etc/php/ is fine
[22:48] <nacc> that seems roughly like what you said you did
[22:58] <unimatrixoverlod> After using Aptitude and purging all apache2 and php packages and deleting /etc/php* I get this message when re-installing: "WARNING: Module mysqli ini file doesn't exist under /etc/php/7.0/mods-available". The problem appears to be that mods-available is not re-populated with the modules? #dpkg -l '*php*' | grep ii (http://paste.ubuntu.com/23217853/); #dpkg -l '*apache2*' | grep ii (http://paste.ubuntu.com/23217945/);
[23:01] <unimatrixoverlod> nacc: interesting, i've been working on this for a couple hours. i might have done something extra or "contaminated" :P my OS install. This morning i did a do-distupgrade from Ubuntu Server 14.04 LTS to Ubuntu Server 16.04 LTS. thank you for looking at my info! i can provide more info if needed
[23:02] <sarnold> do-release-upgrade ? or apt-get dist-upgrade?
[23:03] <unimatrixoverlod> do-release-upgrade
[23:03] <sarnold> okay :)
[23:09] <unimatrixoverlod>  /etc/php/* rwl,
[23:09] <unimatrixoverlod>   /etc/php/** rwl,
[23:09] <unimatrixoverlod> So there may be a "bug?": with AppArmor under 14.04 apache2 was configured for PHP being in /etc/PHP5 I believe. After upgrade to 16.04 the AppArmor apache2 configuration didn't get updates to the new PHP7 new directory: /etc/php. I had to manually add:
[23:09] <nacc> unimatrixoverlod: reviewing
[23:09] <unimatrixoverlod> wierd, it posted in reverse... my bad
[23:11] <nacc> unimatrixoverlod: in which file is that line?
[23:16] <unimatrixoverlod> nacc: /etc/apparmor.d/usr.sbin.apache2
[23:18] <nacc> unimatrixoverlod: that's not controlled by php, but by 'libapache2-mod-apparmor' afaict
[23:18] <nacc> unimatrixoverlod: and by default, the file has no  php-related contents
[23:18] <nacc> so yoyu must have edited the above in?
[23:22] <unimatrixoverlod> nacc: today I added "/etc/php/* rwl, /etc/php/** rwl,". The original install was Ubuntu Server 14.04 LTS with a LAMP configuration (AppArmor enabled). There would have to have been some AppArmor profile maybe?
[23:23] <unimatrixoverlod> nacc: let me check that 'libapache2-mod-apparmor' is installed. one sec.
[23:24] <nacc> unimatrixoverlod: fwiw, nothing seems to actually depend on libapache2-mod-apparmor, afaict
[23:24] <nacc> unimatrixoverlod: package wise
[23:24] <unimatrixoverlod> nacc: good catch! the package: 'libapache2-mod-apparmor' is not installed. fixing.
[23:25] <sarnold> you might want to get things working before adding apparmor into the mix
[23:25]  * nacc was going to say that next :)
[23:25]  * sarnold ^5s nacc
[23:25] <unimatrixoverlod> sarnold: suggestion noted :)
[23:25] <nacc> mostly because it feels like you might be missing other pacakges too, if you're missing that one
[23:26] <unimatrixoverlod> the do-release-upgrade did remove a lot of packages...
[23:27] <nacc> unimatrixoverlod: so you're still getting an error message, right?
[23:27] <nacc> can you pastebin dpkg -L php7.0-mysql
[23:30] <unimatrixoverlod> nacc: dpkg -L php7.0-mysql is up at: http://paste.ubuntu.com/23218041/
[23:32] <unimatrixoverlod> nacc: ok i re-executing the following to test: `apt-get install libapache2-mod-php php7.0-mysqli; apt-get purge libapache2-mod-php php*; rm -rf /etc/php; apt-get install libapache2-mod-php php7.0-mysqli`
[23:34] <nacc> unimatrixoverlod: did you get messages like: http://paste.ubuntu.com/23218056/
[23:46] <unimatrixoverlod> nacc: so i modified one step to grab php7 packages as well:  `apt-get purge libapache2-mod-php php* php7.0*`
[23:46] <unimatrixoverlod> nacc: the result is at  http://paste.ubuntu.com/23218097/
[23:46] <nacc> unimatrixoverlod: well, php7.0 is a proper subset of php*
[23:48] <unimatrixoverlod> nacc: lol, yes...
[23:48] <unimatrixoverlod> nacc: maybe it was more for my sake :D
[23:48] <unimatrixoverlod> you can notice lines like: "WARNING: Module xsl ini file doesn't exist under /etc/php/7.0/mods-available"
[23:49] <unimatrixoverlod> now to install... one sec.
[23:50] <unimatrixoverlod> ok wow!
[23:50] <unimatrixoverlod> nice, under "Setting up php7.0-common" it's listing updates to mods-available
[23:52] <nacc> good
[23:52] <nacc> unimatrixoverlod: yes, let me see if i saw that on my lxd
[23:54] <nacc> unimatrixoverlod: i did not get any such errors
[23:54] <nacc> i wonder if it's detecting your old php5 configuration
[23:57] <unimatrixoverlod> nacc: yes, it was running php5 previously... I purged all of anything PHP and then "rm -rf /etc/php/" The
[23:57] <unimatrixoverlod> nacc: the "php7.0-common" seemed to repolulate the mods-available directory
[23:58] <nacc> unimatrixoverlod: ok
[23:59] <unimatrixoverlod> Thank you everyone for your help. It means a lot and why I do Ubuntu :D