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

mkohi, is it possible to connect freshly installed server to wlan accesspoint (my phone)? It worked fine with desktop via bluetooth and wlan, but I'm clueless how to do it from server.01:14
mkoThere is plenty of guides how to set up server as accesspoint but not the otherway around. Unless you can manually set ip, but I don't think that works on phone accesspoints.01:17
mkoMight be I need to get some drivers first, while installation seemed to find wifi, server now doesn't seem to find ath0.01:29
RoyKmko: google it - http://askubuntu.com/questions/16777/connecting-to-a-wireless-network seems a good start01:37
mkoyeah just found it thanks01:37
RoyKmko: try iwconfig01:37
mkowlp3s0 shows IEEE 802.11bhn ESSID:off/any01:41
RoyKthen try to configure that one01:44
RoyKnetwork devices in modern distros don't have the same names as in the old ones01:45
mkoslight problem is, I can't configure wifi on my phone, its some preset stuff I don't know about01:46
mkoother than password ofcourse01:46
mkoI'm not sure how to scan it01:46
mkoooh01:46
mkoeither I broke it or it takes a loong time01:48
mkoshould it work if I add "auto wlp3s0; iface wlp3s0 inet dhcp" to interface?01:50
mkoat least iwlist scan returns no scan results, so that might be a good sign, but there is wlans so it's still not working.01:52
RoyKyou'll need the ssid and the password obviously01:52
mkookay I might be getting there, now iwconfig didnt return error02:09
mkobut i didnt give it password, I might be blind as I can't seem to find how to from man :o02:09
mkoI just get invalid argument "password"02:12
mkoI dont understand how i can misspell "iwconfig ssid key s:pw"02:41
mkossid -> was supposed to write iface02:41
mkoanyhow it returns "set failed on device iface ; invalid argument02:41
mkomost likely iphone uses wpa/wpa2 and its not working?02:45
aateswpa_supplicant is used to connect with wpa02:47
mkoI might've gotten further, but wpa_supplicant returns error invalid group wheel, and failed to initialize control interface /var/run/wpa_supplicant03:29
aatesmko: did you use the right driver? You can see your list of supported drivers with wpa_supplicant -h03:37
mkoi tried nl80211, wext and wired but no luck03:41
mkowext gave also ioctl[siocs]wencodeext]: Invalid argument03:42
aatesmine was nl8021103:42
aatesI have panda wifi adaptor03:42
aatesi ordered it because it said it works on linux03:44
mkointegrated 802.11 b/g/n or 802.11 ac03:46
mkowhatever that means03:46
mkothanks for helping, nightshift is over and time to go to sleep. :)03:47
aatesnp03:48
lucas_aiI'm trying to run a python script on startup. Where should I put the script on my filesystem? And how do I make it start when booting?04:34
=== Thorn__ is now known as Thorn
lucas_aiAm I supposed to use /etc/init or /etc/init.d for my own daemons in the latest ubuntu? The internet doesn't say05:18
=== tikund is now known as sikun
samba35i am new to maas ,i  think i have setup a maas (getting web gui ) but i have no idea now how do i add node and how do i boot client from host using pxe /remote boot09:26
samba35using ubuntu 16.04.109:27
=== 1JTAA53XX is now known as m1dnight
=== JanC is now known as Guest44273
=== JanC_ is now known as JanC
=== Ph4edrus is now known as Pha4drus
=== JanC is now known as Guest81597
=== JanC_ is now known as JanC
=== spammy is now known as Guest39703
lunaphytesadly, i must run an ftp server.  can i solicit recommendations for a reasonably unshitty choice of software?14:31
lunaphyteideally, it would support ldap directly.14:32
lunaphyte[as opposed to indirectly, through nss/pam]14:32
cncr04spureftpd? just apt it, it has ldap,mysql versions too14:34
lunaphyteso far, the consensus seems to be one of pureftp, vsftpd, or proftpd14:34
lunaphytecncr04s: thanks for the vote.  do you specifically prefer pureftpd over the others?14:35
lunaphyteoh - it must support ftps too, of course.  plaintext ftp won't be allowed14:35
=== Guest39703 is now known as spammy
=== m1dnight1 is now known as m1dnight_
natmalCould someone please help me figure out why unattended-upgrade isn't sending emails, even though it's configured to do so, and it seems to be applying updates correctly?16:02
ikoniacan you machine send emails16:03
ikoniathats the first test16:03
natmalYes. mailx is installed and verified functioning.16:03
natmalOr at least the 'mail' command is.16:04
ikoniaso your host can send mail - how is the unattended-upgrade calling the mail command16:04
natmalNo idea; I didn't see any configuration for that.16:05
natmalMAIL_BINARY = "/usr/bin/mail"16:06
natmalAnd SENDMAIL_BINARY = "/usr/sbin/sendmail"16:06
ikoniaok - so it's calling /usr/bin/mail16:06
ikoniathats good16:06
ikoniacheck /usr/sbin/sendmail exists and is a s symlink to postfix16:06
natmal/usr/sbin/sendmail looks like an ELF16:07
ikoniareally ? you're running sendmail on your box ?16:08
ikoniathats not default16:08
natmalI'm not sure where to go from that.16:11
ikoniado you have the sendmail package installed ?16:11
natmalLemme figure out how to do that on ubuntu; if these things had Portage I would be able to tell you now. :316:12
natmaldpkg-query says sendmail is not installed.16:12
natmalAnd if I use apt-get to try to install it, it wants to remove postfix and install a bunch of sendmail packages.16:13
natmalDefault or not, sendmail is functional.16:14
apb1963 /usr/share/boot-sav/gui-g2slaunch.sh: line 29: 11520 Segmentation fault      (core dumped) $G2S $1 -g ./$PACK_NAME.glade -s ... full details here:          pastebin.com/kSjuHkPP16:15
ikonianatmal: ls -la /usr/sbin/sendmail16:15
natmalikonia: -rwxr-xr-x 1 root root 26648 Apr 13 12:58 /usr/sbin/sendmail16:16
natmalIt's not a symlink.16:16
apb1963natmal: Are you sure they're not just stuck in the queue?  Type mailq16:16
ikoniathats very odd, it's normally a symlink, I guess postfix must now be shipping it's vinary as "sendmail"16:16
natmalMail queue is empty.16:16
ikoniadoes the mail log show it trying to be sent16:17
apb1963and does unattended-upgrade have a log?  check that for errors.16:18
natmalNo errors in the unattended-upgrades logs. I'm not sure about the mail log; my assumption is that they're all test emails when I was trying to turn this functionality on last week.16:21
natmalIs running unattended-upgrade manually supposed to trigger emails?16:21
ikoniacheck the mail log16:22
natmalI have MailOnlyOnError set to "false"16:22
ikoniait will show anything that is proccesed by the mail system16:22
natmalmail.log only has startup info for postfix (Doesn't have anything about the test email I sent earlier today). mail.log.1 only has entries from the 3rd.16:24
ikonianatmal: there should be a postfix log of it's own16:24
ikoniathe syslog may also show mail attempts (I can't remember the channel split without looking)16:24
natmalNo mail/postfix attempts that I can find in any of the syslog files.16:27
ikoniadoesn't look like it's trying to mail out16:28
ikoniaI'd check the docs to see what the behvaiour is expected16:28
natmalDocs say that /usr/bin/mail is required, but the code tries to use /usr/sbin/sendmail? :P16:30
ikonialook at what the expected behaviour is16:31
natmalThere doesn't seem to be any documentation beyond "notifications will be sent to this address assuming you have a working mail setup".16:34
natmalI've looked at the Automatic Updates page in the Official Ubuntu Documentation, the AutomaticSecurityUpdates page in the Community Help wiki, and the UnattendedUpgrades page on the Debian wiki.16:35
patdk-laplook in /var/log/mail.log16:35
patdk-lapand search for pickup16:36
natmalpatdk-lap: 2 matches from the 3rd; test emails. This system was automatically updated requiring a reboot between then and now.16:36
patdk-lapwell, the sendmail binary puts the email in the maildrop folder16:37
patdk-lapand pickup should see it, and then act on it16:37
patdk-lapis postfix running?16:37
patdk-lapdoes /var/spool/postfix/maildrop have files in it?16:37
natmalNo files in maildrop; postfix is not running.16:38
natmalDoes postfix need to be running if configured solely as a relay?16:38
natmalI take that back; postfix is indeed running.16:38
ikoniapostfix is not running....you will not get mail16:39
patdk-lapdoes a webserver need to be running to solely serve webpages?16:39
natmalWrong flags on ps. :316:39
patdk-lapif your doing relay only, you should just use a nullmailer instead16:39
patdk-lapmsmtp, or something16:39
natmalWill switching to that make unattended-upgrades start wanting to send mail?16:42
natmalI might stick with postfix; I'm not finding much information about SASL support in nullmailer, and msmtp doesn't appear to have a global config?16:49
natmalOh, I think I found it.16:50
=== phunyguy is now known as _phunyguy
patdk-lapit's doubtful either of them will solve the issue16:52
patdk-lapbut it will remove a lot of configuration problems from being the issue16:53
patdk-lapusing postfix as a nullmailer is generally extreem overkill and extra complications for most16:53
=== _phunyguy is now known as phunyguy
natmalOkay, msmtp is configured.16:57
natmalYeah, I think I'm going to stick with postfix. I don't have to jump through a bunch of hoops trying to securely store upstream passwords with msmtp.17:04
natmalHuh. I think email notifications are working; I may have been chasing my tail.17:16
natmalThanks for all the help anyway17:18
lunaphytesecurely store upstream passwords?17:23
lunaphytehow do you "securely store upstream passwords" with postfix?17:24
tomreynwhen is this a use case?17:27
lunaphytewhat?17:29
tomreynwhich passwords do you want stored securely?17:33
lunaphyte"upstream passwords", he says17:33
tomreynright, that's not very clear, and so i'm asking17:34
lunaphyte"upstream passwords" is pretty clear.  "securely storing" them with postfix isn't though17:35
DexterFhi17:49
DexterFinstalled server 16.04.1 on: 3 disks in raid5 on sda1 sdb1 sdc1. then on md0 created an lvm PV, there a VG with 3 LV: root, swap, home. so /boot is part of /. it then proceeded to install, then install grub.17:51
DexterFwon't boot. says "cannot find filesystem" -> grub rescue.17:52
tomreynDexterF: you probably need a separate boot LVM. it's even possible that you need to have it as a separate partition without extra layers.18:11
lunaphyte /boot on lvm is fine18:13
tomreynalso make sure the UUIDs in your /etc/fstab are correct (compare to 'blkid' output) and that you have run update-grub, and that you are using an initrd with all modules, not the limited set.18:13
lunaphytei'd suggest mounting with labels rather than uuids in fstab18:14
tomreynlunaphyte: and boot on lvm on md raid5 is fine, too?18:14
lunaphyteit works for me18:14
tomreyni'd suggest mounting with uuids rather than labels in fstab ;)18:14
tomreynbecause they are universal18:15
lunaphyteno more so than the label specified by the admin ;)18:16
tomreynif the bios has a bad day and passes devices in a different order (or you, that admin, made some silly changes which affe3ct the boot ordering), it will still work with uuids, but not labels.18:18
lunaphyteincorrect18:18
tomreynenlighten me!18:18
lunaphytelabels of filesystems do not change just because the devices the filesystems reside on were detected in a different order18:19
lunaphyteif a filesystem is labelled 'root', than that is its label.  it doesn't matter when it shows up18:20
lunaphytefor reference, here is a system with 4 disks, each with a gpt table containing a raid partition.  assembled into a raid5 device, being used as an lvm pv, with an lv for "/".  no separate /boot.  http://dpaste.com/0A3DX29.txt18:29
lunaphytewag:  you didn't install grub on the right disk [hint: install it on all of them], and/or you should include a bios_grub partition on each of the disks18:31
=== seg_ is now known as seg
DexterFtomreyn: well, I'll have to rig a live system to assemble the raid first, at present I can't even access the array. update-grub and anything about the initd wsa not really queried, I ran with what the installer wanted to do. I did the entire setup with it, too18:52
lunaphyteto do a setup like that, i would suggest running the installer in cli expert mode18:58
tomreynlunaphyte: turns outr we had a misunderstand in regards to the term 'label' - i was assuming you were referring to device paths.18:59
tomreyn...such as /dev/sda118:59
lunaphyteoh18:59
lunaphytei've never heard that called a label18:59
DexterFlunaphyte: does the installer offer that at the start...? don't remember such an option19:00
tomreynlunaphyte: you're right, it's not, my bad19:00
lunaphyteno worries, it's all good19:00
lunaphyteDexterF: yes19:00
DexterFlunaphyte: ok, i'll retry then.19:00
lunaphyteyou need to press an f key or something like that, iirc19:00
lunaphyteis this for a server?19:01
lunaphytei guess regardless, i'd also suggest the minimal installer iso19:01
DexterFone other thing: it seems I had to go LVM as I did not see any options in the installer to create md partitions, so md0p1 etc. not available? stick to lvm anyway?19:01
lunaphytethat said, you could boot into the live cd, and assembly the bits yourself from a shell, i suppose19:01
lunaphytei would always use lvm, period.19:02
tomreynpersonally i'd even go so far as to do the parititioning first, from a live linux, then use the installer to install.19:02
DexterFlunaphyte: actually it's going to be a media center on kodi, so I will install a light desktop afterwards, I went for the server variant to directly install as raid5 on the existing 3 disks, I did not want to add another disk for keeping the power consumption at bay19:02
lunaphyteif it were me, i'd do the minimal iso installer19:03
DexterFI got the 600MB cd on usb here, any gain in switiching to minimal? that will start on expert cli right away?19:03
lunaphyteno, but you'll not end up with a bunch of garbage that you have no use for19:04
lunaphytewell, you still will - but less of it19:04
lunaphyteubuntu *sucks* at understanding the concept of minimal :)19:04
DexterFsounds good, after all, I'll need X, kodi, tvheadend and compile the latter ones from src anyway19:05
lunaphyteyou can always sintall whatever you want, at any time.19:05
lunaphyte*install19:05
DexterFthat's the plan19:05
DexterFby the way, if I can boot the iso, can I do the installation remotely via ssh somehow?19:06
lunaphyteprobably19:06
DexterFok, no official feature then.19:07
lunaphytethere might be.  it's just not something i happene to be familiar with19:07
lunaphyte*happen19:07
DexterFthere is talk of the "network installer" - that said "minimal" iso?19:10
lunaphytehttp://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/current/images/netboot/mini.iso19:10
lunaphytehttps://help.ubuntu.com/community/Installation/MinimalCD19:11
tomreynDexterF: ssh installation won't work unless it's manually selected from the advanced menu of the mini.iso installer, or preseeded.19:29
tomreyni.e. unless you preseed the installer for ssh, you will need to be physically present, or have a networked KVM or serial console (but then you probably wouldn't ask for the ssh method), to boot the installer and select the ssh installation option. once that's done, you can finish the installation remotely.19:32
lunaphytethat's neat19:33
DexterFtomreyn: thanks20:42
tomreynDexterF: welcome20:54
znfHello.21:02
znfI recently upgraded a server from 14.04 to 16.04. Now when I use byobu (with tmux) when I press left/right arrow I get an orange circle int he middle of my screen: http://i.imgur.com/96BEyWt.png21:03
mkoI installed fresh server, then xen, but now i got stuck in the bootloop. last thing i see on screen is "loading initial ramdisk ..."21:46
mkonot sure if dmesg should have something in it but its empty21:46
mkoonly advice i found was about updating bios but its up to date21:47
tikunon an EFI install, is grub installed on the ESP partition or the standard / partition23:21

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