/srv/irclogs.ubuntu.com/2016/09/22/#ubuntu-server.txt

=== Oatmeal is now known as SuzieCue
djamesI'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:41
djamesI'm looking at /lib/systemd/system/getty@.service and see that it refers to $TERM which is already set01:43
djamesSo I'd expect that somewhere in the chain before, $TERM gets set01:43
djamesor detected01:44
=== JanC is now known as Guest5754
=== JanC_ is now known as JanC
guest4146hi02:58
guest4146What do you guys recc in terms of a GUI desktop environment for Ubuntu Server? (not talking shell, but preferred GUI) Is it somethig lightweight?02:59
guest4146this is just a question of curiousity03:00
tsimonq2guest4146: AwesomeWM, Lubuntu, i303:03
guest4146ok... how do I get the desktop environment running after log-off. no ubuntu button to change DE AT ALL on login screen03:41
rypervencheguest4146: What Display Manager did you install?03:51
rypervencheguest4146: And which Desktop Manager did you go with?03:52
rypervencheguest4146: Also, why the need for a GUI?03:52
guest4146this is Ubuntu 16.0404:03
guest4146standard04:03
JanCdid you install one of the -desktop packages?04:08
djamesI'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:25
djamesI realize terminals are crazy/weird/complex/historical beasts. I read http://catern.com/posts/terminal_quirks.html04:26
djamesShould I expect my terminal to generate *something* for CTRL-F2? Function keys in general work.04:26
rypervenchedjames: What are you expecting it to do?04:27
rypervenchedjames: Those are usually things that happen in the Desktop Environment.04:28
JanCwell, it should also work in a terminal, if any application there uses it04:29
djamesrypervenche For example `cat -v` then <F2> gives `^[[[B`. However, <CTRL-F2> gives nothing.04:29
djamesI'd like to learn exactly why CTRL-F2 is not being generated.04:29
djamesI started answering http://askubuntu.com/questions/827947/inspect-and-adjust-non-gui-terminal-configuration but there is more I want to learn04:30
djamesFor example, I'd like to find the code that shows where ALT-F1 gets trapped.04:30
djamesAnd I'd like to see why CTRL-F2 is not passed along.04:30
rypervenchedjames: Because that key combinatinion is a X thing.04:31
djamesrypervenche I don't understand your reply. CTRL-F2 is a keypress, nothing more, nothing less.04:31
djamesrypervenche You understand what `cat -v` does?04:32
rypervenchedjames: Yes, but in the TTY you are using a keymap, in X you are using a keyboard layout.04:32
djamesrypervenche still, your explanation isn't connecting the dots for me. some terminals / terminal emulations do in fact send CTRL-F204:33
rypervenchedjames: Some TTYs or only terminal emulators?04:33
djamesI'm not sure04:34
rypervencheThen unless you are sure, you are talking about apples and oranges.04:34
djamesI don't understand all the detailed differences, but I would like to learn04:34
djamesPut another way, why doesn't a CTRL-F2 keypress show up in `cat -v`?04:35
djamesMy logic is this: if CTRL were simply ignored, the F2 part would still show up.04:35
rypervencheBecause you are doing it from a TTY.04:35
djamesrypervenche that isn't the "why" I'm looking for, sorry :)04:36
rypervencheI'll see if I can find something understandable for you.04:36
djamesSo, 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 case04:36
rypervencheI'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
djamesah, fair enough04:37
rypervencheWhat is ctrl+F2 supposed to do for you?04:38
djamesrypervenche I'm not sure why you keep asking that04:38
djamesI want to learn about terminals, key bindings, the stack, etc04:38
rypervencheOh, so you're just doing all of the F keys as a test?04:38
djamesUltimately, I want that keypress to be available to Byobu04:39
djamesBut I find it very strange that some keypresses are ignored04:39
djamesAnd 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
rypervencheI wonder if it's the TERM variable doing it.04:40
rypervencheYou said you're using "linux", have you tried something else?04:41
* djames is reading http://www.linusakesson.net/programming/tty/04:41
rypervenchelike xterm04:41
rypervenchehttps://unix.stackexchange.com/questions/198711/how-can-i-pass-function-keys-to-htop-in-a-tty04:41
djamesthat's useful, I'm looking over `infocmp -L1` now -- pertaining to /lib/terminfo/l/linux04:43
djamesrypervenche I don't think it is valid simply to change TERM=xterm arbitrarily. I say this because systemd autodetects TERM04:46
rypervencheYes, 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
djamesit is possible that CTRL-F2 is not considered to be (1) a valid keypress or (2) one keypress by most terminals04:47
rypervencheOther things change them, such as tmux or other terminals have their own TERM variables.04:47
rypervencheYeah, that I don't know. You might try in ##linux04:48
JanCthere are some fb terminals that might work04:48
djamesSo, if I do `TERM=xterm bash` it does change TERM; however `cat -v` <CTRL-F2> is no different.04:48
djamesI'll go back to reading the TTY vs Terminal Emulation article.04:49
=== Guest8435 is now known as sts
lordievaderGood morning.07:54
=== iberezovskiy|off is now known as iberezovskiy
samba35when i download any image from internet for maas  /pxe boot where that image is store on hardisk ?11:59
samba35i am trying to configure 1st maas server on ubuntu 16.04.1 with  maas version 211:59
cpaelzerroaksoax: see samba35 above ^^12:53
cpaelzersamba35: in the example on https://maas.ubuntu.com/docs/sstreams-mirror.html it is /var/www/html/maas/images/ephemeral-v2/daily12:54
cpaelzersamba35: would this or similar match your case?12:54
samba35ok ,thanks12:54
samba35strange  ,when i click on images tab on gui it show two images are there but i dont have  any thing on /var/www/html/maas12:58
cpaelzermaybe the example isn't the place it downloads by default12:58
cpaelzersorry - out of experience exception12:59
cpaelzerback to roaksoax ^^12:59
samba35but thanks it help me to understand13:00
samba35cpaelzer: thank you again13:00
samba35now it seems it downlading image from link you have provided13:01
samba35not sure :)13:01
samba35cpaelzer: 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:08
cpaelzersamba35: sorry I can't - I'd check docs just as you13:09
samba35ok13:09
samba35no issue13:09
samba35r u ubuntu  employee ?13:10
cpaelzersamba35: not a heavy maas user yet, I always got mine set up by people who knew13:11
samba35ok13:12
roaksoaxsamba35: when maas first downloads it stores them in the DB13:26
roaksoaxand then in /var/lib/maas/boot-resources/13:26
samba35ok13:26
samba35and where is DB location is ?13:27
samba35http://<server>/maas/images/ ??????13:27
samba35sorry /var/www/html/maas/images / ????13:28
rbasakcpaelzer: 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
ubottubug 1625372 in ntp (Ubuntu) "NTP security issues on Precise and Trusty" [Undecided,New] https://launchpad.net/bugs/162537213:33
samba35when 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:33
cpaelzerrbasak: thanks, never had to click that13:42
jamespagecoreycb, I can't see it in the queue (pbr)15:26
coreycbjamespage, it's in the unapproved queue15:28
jamespagecoreycb, oh yes15:29
jamespageftr we could have dropped d/p/no-u-string-for-python-3.2.patch15:35
=== ChanServ changed the topic of #ubuntu-server to: Ubuntu Server discussion and support | For general (not server specific) support, try #ubuntu | IRC Guidelines: https://wiki.ubuntu.com/IrcGuidelines | https://wiki.ubuntu.com/ServerTeam/GettingInvolved | Docs and resources: https://help.ubuntu.com/16.04/serverguide/
lucidguyOk, 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:43
JanCsomething like ceph probably16:45
JanCor export them as block devices using something like iscsi16:48
lucidguyJanC: iscsi?  How would you merge all the storage in the end though?16:49
JanCyou 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 idea16:58
lucidguyceph and glusterfs seem to be what I'm talking about.16:58
JanCyeah, they are designed for what you want16:59
JanClooks like ceph is in main while glusterfs is in universe though16:59
JanCIIRC there is also a wikipedia page that compares distributed filesystems17:01
=== iberezovskiy is now known as iberezovskiy|off
xplatform12on ubuntu 16, using conjure-up openstack is there a switch to specify xenial rather than trusty?17:49
jgrimmstokachu, ^^17:58
stokachujgrimm: he left :\17:58
jgrimmdoh17:58
jgrimmsorry, just noticed17:58
=== dzragon^ is now known as dzragon
=== IdleOne is now known as Guest4978
dennismQuestion:  Is this the correct channel to ask an Ubuntu 16.04 boot from iSCSI question?19:57
sarnoldsure19:58
dennismthanks.  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?19:59
dennismI have verified that /run/net-<iface>.conf and /run/initramfs/open-iscsi.interface files are populated correctly20:12
jrwrenis there a way to have cloud-init install packages using no-install-recommends?20:12
jrwrenor should I use bootcmd to create an /etc/apt/apt.conf.d file with Install-Recommends "false"; ?20:13
unimatrixoverlodhi 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:53
OerHeksunimatrixoverlod, see the releasenotes, https://wiki.ubuntu.com/XenialXerus/ReleaseNotes#PHP_7.0 and the mysql part20:56
CodeMouse92I'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 lost20:57
sarnoldCodeMouse92: check the output of 'sudo env', make sure it looks like what you expect20:59
CodeMouse92sarnold: I've never done this. I don't know what I expect20:59
sarnoldaha20:59
sarnoldI don't know enough about pip or virtualenv to say either :)20:59
* CodeMouse92 weeps21:00
unimatrixoverlodoerheks: thank you, looking into it21:08
blizzowIs 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:24
unimatrixoverlodAfter 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:44
tomreynyou install php and the modules.21:45
unimatrixoverlodtomreyn: sorry I didn't say I reinstalled apache2 and php...21:48
unimatrixoverlodtomreyn: so yes they are "installed" but not working.21:49
tomreynunimatrixoverlod: you are probably lacking some packages: apt-cache search php721:59
tomreynunimatrixoverlod: http://packages.ubuntu.com/search?suite=xenial&arch=any&searchon=contents&keywords=mysqli.ini22:04
tomreynthis is for xenial, i'm not sure which release you were looking for.22:04
* tomreyn afk22:05
unimatrixoverlodtomreyn: correct, it is for Xenial22:06
unimatrixoverlodtomreyn: http://paste.ubuntu.com/23217853/22:12
unimatrixoverlodtomreyn: 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:19
unimatrixoverlodtomreyn: the issue appears to be when Xenial re-installs php7 ( after a aptitude purge of PHP & rm -rf /etc/php )22:23
unimatrixoverlodtomreyn: here is the directory for /etc/php/: http://paste.ubuntu.com/23217884/22:23
unimatrixoverlodtomreyn: apt-get install fails to populate the /etc/php/7.0/mods-available directory22:26
unimatrixoverlodalso running a2query -m show PHP7 is loaded but ALL <?php ?> does process as PHP: http://paste.ubuntu.com/23217903/22:29
unimatrixoverlodideas anyone?22:29
sarnoldhave you checked the logs?22:29
unimatrixoverlodyes. i can pastebin a grep of something specific?22:30
sarnoldI know next to nothing about apache and php; "check the logs" is just my generic debugging advice :)22:30
unimatrixoverlodoh, thank you though. very wise ;)22:31
sarnoldit's amazing how well it works :)22:33
naccunimatrixoverlod: can you start from the top and tell me your steps?22:40
unimatrixoverlodnacc: sure, let me type it up better. give me about 2min22:44
naccunimatrixoverlod: 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 fine22:48
naccthat seems roughly like what you said you did22:48
unimatrixoverlodAfter 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/);22:58
unimatrixoverlodnacc: 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 needed23:01
sarnolddo-release-upgrade ? or apt-get dist-upgrade?23:02
unimatrixoverloddo-release-upgrade23:03
sarnoldokay :)23:03
unimatrixoverlod /etc/php/* rwl,23:09
unimatrixoverlod  /etc/php/** rwl,23:09
unimatrixoverlodSo 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
naccunimatrixoverlod: reviewing23:09
unimatrixoverlodwierd, it posted in reverse... my bad23:09
naccunimatrixoverlod: in which file is that line?23:11
unimatrixoverlodnacc: /etc/apparmor.d/usr.sbin.apache223:16
naccunimatrixoverlod: that's not controlled by php, but by 'libapache2-mod-apparmor' afaict23:18
naccunimatrixoverlod: and by default, the file has no  php-related contents23:18
naccso yoyu must have edited the above in?23:18
unimatrixoverlodnacc: 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:22
unimatrixoverlodnacc: let me check that 'libapache2-mod-apparmor' is installed. one sec.23:23
naccunimatrixoverlod: fwiw, nothing seems to actually depend on libapache2-mod-apparmor, afaict23:24
naccunimatrixoverlod: package wise23:24
unimatrixoverlodnacc: good catch! the package: 'libapache2-mod-apparmor' is not installed. fixing.23:24
sarnoldyou might want to get things working before adding apparmor into the mix23:25
* nacc was going to say that next :)23:25
* sarnold ^5s nacc23:25
unimatrixoverlodsarnold: suggestion noted :)23:25
naccmostly because it feels like you might be missing other pacakges too, if you're missing that one23:25
unimatrixoverlodthe do-release-upgrade did remove a lot of packages...23:26
naccunimatrixoverlod: so you're still getting an error message, right?23:27
nacccan you pastebin dpkg -L php7.0-mysql23:27
unimatrixoverlodnacc: dpkg -L php7.0-mysql is up at: http://paste.ubuntu.com/23218041/23:30
unimatrixoverlodnacc: 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:32
naccunimatrixoverlod: did you get messages like: http://paste.ubuntu.com/23218056/23:34
unimatrixoverlodnacc: so i modified one step to grab php7 packages as well:  `apt-get purge libapache2-mod-php php* php7.0*`23:46
unimatrixoverlodnacc: the result is at  http://paste.ubuntu.com/23218097/23:46
naccunimatrixoverlod: well, php7.0 is a proper subset of php*23:46
unimatrixoverlodnacc: lol, yes...23:48
unimatrixoverlodnacc: maybe it was more for my sake :D23:48
unimatrixoverlodyou can notice lines like: "WARNING: Module xsl ini file doesn't exist under /etc/php/7.0/mods-available"23:48
unimatrixoverlodnow to install... one sec.23:49
unimatrixoverlodok wow!23:50
unimatrixoverlodnice, under "Setting up php7.0-common" it's listing updates to mods-available23:50
naccgood23:52
naccunimatrixoverlod: yes, let me see if i saw that on my lxd23:52
naccunimatrixoverlod: i did not get any such errors23:54
nacci wonder if it's detecting your old php5 configuration23:54
unimatrixoverlodnacc: yes, it was running php5 previously... I purged all of anything PHP and then "rm -rf /etc/php/" The23:57
unimatrixoverlodnacc: the "php7.0-common" seemed to repolulate the mods-available directory23:57
naccunimatrixoverlod: ok23:58
unimatrixoverlodThank you everyone for your help. It means a lot and why I do Ubuntu :D23:59

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!