/srv/irclogs.ubuntu.com/2018/06/08/#ubuntu-server.txt

=== ec0 is now known as jhebden
=== hehehe is now known as Guest66112
=== Guest66112 is now known as hehehe
=== negronjl_ is now known as negronjl
nabhashhi all , I just installed ubuntu server, I have 2 Pcie graphics cards I want to disable the default drivers and install new drivers , how would I do that ?03:21
sarnoldyou may have better luck in #ubuntu -- the folks in this channel tend to use machines without video cards03:31
nabhash@sar03:43
nabhashsarnold  lol03:43
sarnoldwell, okay, so we have video cards in our laptops, but that's just so we can use urxvt :)03:44
nabhashsarnold i am not familiar with downloading files etc.. in text mode I feel stuck03:47
sarnoldthat's fine :)03:48
nabhashI need little help03:51
lordievaderGood morning06:12
spinningCatanyone here?06:20
spinningCati just purchased a domain and i have ubuntu server machine06:20
spinningCati need to direct nameserver or something i dont know really. It is my first time work with server06:21
spinningCathow can i do that=,06:21
lordievaderDo you manage the nameserver or does the company you bought the domain name at do that?06:30
=== Jan\3582 is now known as Jan\
=== Redfoxmoon is now known as niom
=== niom is now known as Redfoxmoon
jamespagecpaelzer: morning - could you give me an opinion on bug 177344908:09
ubottubug 1773449 in qemu (Ubuntu) "VMs do not survive host reboot" [High,New] https://launchpad.net/bugs/177344908:09
jamespagewe're seeing issues with what I think is disk cache behaviour with qemu + librbd - I think the issue is either in qemu of librbd but wanted a second opinion08:10
jamespagewe don't see the issue with older versions of ceph/qemu08:10
cpaelzerhi jamespage08:12
* cpaelzer is reading08:13
cpaelzerjamespage: if I read correctly there should be set cache=none08:19
cpaelzerso the data isn't list in qemu08:19
cpaelzerfor rbd you had some config08:19
cpaelzerlike08:19
cpaelzerrbd_cache... values08:19
cpaelzerI don't know if that is read only, but from the mentioning of "dirty" it seems to cache writes as well08:20
jamespagecpaelzer: yep - I check that - in the libvirt xml, the cache is set to none by default for the rbd block device08:20
cpaelzergood on that at least08:20
jamespageyeah08:20
cpaelzerbut I ahve more to ask08:20
jamespagesure08:20
cpaelzersomewhere data is lost, nobody doubts that08:20
cpaelzerwhile there could be a way to make rbd non-caching to fully avoid08:20
cpaelzerand feel free to go that way, but I'd expect an admin to do so as his own tradeoff choice of speed/stability08:21
cpaelzerinstead I wonder about something else08:21
cpaelzerIf our PCs crash why isn't this often an issue, there are caches as well08:21
cpaelzerthe reason is that in 90+% of the time fsck will clean it and you'll be good other than maybe last written file08:21
cpaelzerbut08:21
cpaelzerin the log of Ryan I see this08:21
cpaelzerWarning: fsck not present, so skipping root file system08:22
cpaelzerThis sounds like the never answered https://ubuntuforums.org/showthread.php?t=237545908:22
cpaelzerIt might be possible that an adapted guest that can fun fsck on boot will most of the times recover08:22
cpaelzerto the level of a normal system that crashes08:22
cpaelzerIf that would work that would be good, and an admin should then be able to choose extra safety by changing e.g. rbd caching config08:23
cpaelzerjamespage: one question on your comparison to xenial/ocata where t was good, could it be that this image has fsck avialable?08:23
cpaelzeror even available08:23
cpaelzerso did it not at all have dirty data - or did it come up because it clenaed up via fsck08:24
cpaelzer?08:24
jamespagecpaelzer: used the same cirros image in both tests08:24
cpaelzerjamespage: too bad for my theory :-)08:43
cpaelzerso really the older stack didn't loose any buffers08:43
cpaelzerI can't even think how it would not loose at least a tiny bit08:43
cpaelzerjamespage: another thing, you said you had cache none08:44
cpaelzerbut that is actually maybe worse now08:44
cpaelzerhttp://docs.ceph.com/docs/giant/rbd/qemu-rbd/#running-qemu-with-rbd08:44
cpaelzeris this running as cache=none AND rbd_cache=true then?08:45
cpaelzeror is rbd_cache not enabled either?08:45
cpaelzerbecause as I read it if rbd_cache is true, then you'd want to have cache=writeback to to flushes08:45
cpaelzerfeels unintuitive08:46
cpaelzerand I'm not sure if that will use page cache on top and make it worth08:47
cpaelzerworse I mean08:47
cpaelzerbut worth a check maybe08:47
jamespagecpaelzer: I'll test that out and see - I tried with writethrough but that had the same issue08:47
cpaelzerTo enable write-through mode, set rbd cache max dirty to 0.08:48
cpaelzeron  the rbd side of things08:48
cpaelzerjamespage: ^1^08:48
jamespageack08:49
cpaelzerfrom http://docs.ceph.com/docs/giant/rbd/rbd-config-ref/#rbd-cache-config-settings08:49
jamespageredeploying now to repro08:49
cpaelzergood luck08:49
=== lifeless_ is now known as lifeless
jamespagecpaelzer: ok tried with writeback setting - still get the same issue after a hardkill on the qemu process09:31
jamespagenice09:31
=== beatzz_ is now known as beatzz
jamespagecpaelzer: I think this is a librbd issue; the qemu code in 2.9 (works) and 2.11 (fails) is pretty much identical09:45
jamespagecpaelzer: cache=none disables the rbd cache option, cache=writeback enables the option09:45
jamespagebut on the later ceph release, we see the block device corruption09:46
jamespageafaict09:46
jamespageblock/rbd.c for reference09:46
jamespageunless a flush is not being correctly propagated of course :-)09:47
cpaelzerjamespage: ok, so with cache=none both caches should be off then?09:56
cpaelzerthat really should not get dirty disk content then :-/09:57
jamespagecpaelzer: agreed10:09
jamespagecpaelzer: yeah cache=none results in rbd cache = false via the qemu rbd driver10:10
jamespagecpaelzer: figured it out10:16
trupheenixI am attempting to setup a postfix server to send email from a local process to my GApps email domain.11:39
trupheenixI have setup postfix with TLS.11:39
trupheenixBut I cannot figure out how to setup user accounts with password authentication.11:39
trupheenixI followed this tutorial https://www.upcloud.com/support/secure-postfix-using-lets-encrypt/11:39
trupheenixI am able to send email to GApps domain but it gets thrown into spam.11:39
blackflowtrupheenix: you need to install Dovecot, which is IMAP/POP3 daemon but also it does SASL, usable by Postfix.11:39
trupheenixblackflow, I have installed dovecot also.11:40
blackflowtrupheenix: smtpd_recipient_restrictions = permit_sasl_authenticated    is the part of postifx configuration (from that tutorial) that sets up SASL authentication for sending. But you also have permit_mynetworks, which, depending on how you've set up the my networks list, will authorize those without needing to authenticate11:41
blackflow.... and all of which has nothing to do with your mail sent to Google ending up as Spam.11:41
trupheenixblackflow, ok11:41
trupheenixblackflow, so here's how I have it set up.11:42
blackflowyour mail will often end up in google's spam for a ton of reasons outside of your control.11:42
trupheenixOh ok11:42
trupheenixblackflow, at the moment I am able to send email without any user password.11:42
blackflowtrupheenix: which is expected if your'e sending from any of the "my networks" IPs/hosts11:43
trupheenixblackflow, ok11:43
trupheenixblackflow, how does one create user accounts for email? Like a postmaster user account?11:43
blackflowtrupheenix: but eh... permit_mynetworks should come _before_ permit_sasl_authenticated   iirc...11:44
trupheenixblackflow, ok11:45
blackflowtrupheenix: postfix is mail TRANSFER agent, MTA. so you need to set up another agent to receive the mail and store locally in a datbase/filesystem. For example, Dovecot via "lmtp". Of course, you can also set up postfix to save incoming files locally in a maildir, but that's a bit more complex setup if you also need Dovecot to manipulate those files for IMAP/POP3.11:45
blackflowcenrtalizing everything through Dovecot is the best thing.11:45
trupheenixblackflow, I already have dovecot running11:46
blackflowtrupheenix: that tutorial seems to be setting it up for Postfix to store mail directly in a maildir.11:47
trupheenixblackflow, yes11:47
trupheenixblackflow, I don't want to use DB11:48
blackflowyou don't have to. the question is only whether Postfix saves mail as local files directly and Dovecot has access to them to (via a shared UID), or Postfix sends off to Dovecot via lmtp, so Dovecot is only authority in storing incoming and retrieving via imap/pop3.11:49
blackflowthis explains how to set up SASL authentication via dovecot for various mechanisms:  https://wiki2.dovecot.org/Authentication11:49
blackflow"password databases" is what you need, eg. you can integrate with PAM for access to local system users.11:50
blackflowpersonally I like to have that separate. for that you can have "passwd-file", and specify a path to a file that's similar to /etc/passwd but it's independent.11:51
spinningCathey12:05
spinningCati have ubunut-server machine12:05
spinningCatand i have a domain12:05
spinningCathow to direct my machine to server12:05
spinningCatis there something like nameserver or something?12:06
blackflowyou mean how to direct your _domain_ to server?12:09
spinningCatcould be that12:09
spinningCati dont know about that12:09
spinningCatit is my first experience12:09
blackflowyes, you need to set up DNS. the easiest thing to do is with your domain registrar, just set up the A (and other) records.12:09
spinningCati will do SSL thing12:10
blackflowwhat is "SSL thing"?12:10
spinningCatcertbot12:10
spinningCati need to domain12:10
blackflowyou mean you will use SSL/TLS certificates provided by LetsEncrypt....12:10
spinningCati guess i need to connect host and domain12:10
fricklerhas anyone else seen unbound failing after the security update tonight?12:10
spinningCatyes that is right12:10
fricklerfailing as in not running after the update, needing a manual restart12:11
spinningCatjust execute certbot-auto and show that there12:11
blackflowspinningCat: you will need to set up DNS (like mentioned above) and then a web server like nginx to respond to LetsEncrypts domain verification challenges.12:11
spinningCatshow my domain when certbot ask?12:11
spinningCati have nginx12:11
blackflowI don't know if any of LE tools work without a web server (ie. start a listener on port 80 themselves)12:11
spinningCati have web server also you mean nginx right12:12
blackflowI don't use certbot so I don't know. I prefer "dehydrated"12:12
spinningCatset up DNS12:12
spinningCatmy app work in machine DNS is that what you meant12:12
blackflowspinningCat: sorry, what?12:13
spinningCathmm12:13
spinningCatmy app work on nginx server12:13
spinningCati can acccess my app from outside12:14
spinningCatand this app publish over DNS right12:14
blackflow"publish over DNS" doens't make sense.    do you mean to say that you can access your web application over a domain, not just IP address?12:14
spinningCati can acces over IP address12:15
spinningCatsorry for my english12:15
blackflowokay, and now you want to access it over a domain?12:15
spinningCatthat's right12:15
spinningCati just save that ip as nameserver12:15
blackflowdoes your registrar support managing "DNS zones"? Can you provide your servers IP as "A record" in your registrar's control panel?12:15
spinningCatwii that work?12:15
spinningCatregistrar you mean domain provider right12:16
spinningCat?12:16
blackflowwell yes you can set up a nameserver yourself, but being that you don' tknow how to, I would NOT recommend you to do that just now.12:16
blackflowregistrair is the company you bought your domain from / registered your domain with.12:16
spinningCatblackflow,  i dont know about registrar12:16
blackflowwhere did you get your domain?12:16
spinningCatyesterday12:17
blackflowwhere, not when :)12:17
spinningCatbut domain is from different company12:17
spinningCatah12:17
spinningCatsorry12:17
spinningCatnamecheap12:17
spinningCatwhere12:17
spinningCatAmerica12:17
blackflowokay, so NameCheap is "registrar". They also allow you to configure "DNS zones" which you need to set up the "A record" to point to your servers IPv4.12:17
blackflowI meant "where" as "which company", so NameCheap.12:17
blackflowthere must be some tutorial in NameCheap's KnowledgeBase on how to do that. In short, you need to designate NameCheap to be "the nameservers" for your domain. And then edit "DNS zone" and set up "A record".   With this you have all the terms to google for more info.12:19
fricklercpaelzer: jamespage: do you know if sdeziel is available somewhere? I just confirmed that https://bugs.launchpad.net/ubuntu/+source/unbound/+bug/1775833 is triggered by a simple manual install for me, too. i'd consider that a critical bug12:22
ubottuLaunchpad bug 1775833 in unbound (Ubuntu) "unbound not running after automatic update" [Undecided,New]12:22
cpaelzerfrickler:  sdeziel is a few ours out to wake up I'd think12:23
DevNull1Is netcat-openbsd supposed to be a default package on LTS 18.04?13:04
cpaelzernice find in the ceph bug jamespage13:05
cpaelzergz!13:05
jamespagecpaelzer: not an obvious one!13:06
=== nabH is now known as nabhash
blackflowikonia: oh, what he did now :)14:28
ikoniayoutube videos on linux, correcting his english and reviewing them14:30
blackflowah.14:32
=== nabH is now known as nabhash
=== smoser1 is now known as smoser
=== miguel is now known as Guest50580
naccrbasak: any luck with the snap?16:58
rbasaknacc: not tried it today, sorry17:05
naccrbasak: nothing to apologize for :) was just curious17:05
naccdid you see my unrelated ping re: the testing changes i'll need to do in my (pending) branch17:05
spinningCathey what am i doing here https://hastebin.com/oqifavisev.ini17:05
naccspinningCat: what do you mean?17:06
spinningCati am getting this https://hastebin.com/ucipuhiway.pas17:07
spinningCatho17:09
spinningCatthis is ubuntu*server i am sorry,17:10
rbasaknacc: no sorry. I don't see that scrolling back. Remind me please?17:15
naccrbasak: my branch which is trying to fix our importer idempotency (well, it gets us closer, by first just doing all the unique import tags we expect to create and then doing branch manipulation at the end), will need test refactoring, since now import_{,un}applied_dsc no longer does any branch changes, while our tests assume they do17:16
rbasaknacc: ah. Yeah, that makes sense.17:19
naccrbasak: just means it will take longer17:19
=== nabH is now known as nabhash
axisysI am still waiting on a response from #sssd .. but how do I upgrade sssd 1.11.8 with sssh 1.13.4 or above.. my sssd config works fine with ubuntu 16.04 which has sssd 1.13.4, but fails on ubuntu 14.04 which has sssd 1.11.8 ..17:24
axisyssssd mailing list suggesting me to upgrade sssd .. they are saying it is old.. so need help with recommended way to jump from sssd 1.11.8 to 1.13.4+ on ubuntu 14.04 ..17:25
=== CodeMouse92__ is now known as CodeMouse92
HackeMatehello18:49
HackeMateis it possible to execute a command in every ssh login success? not in ~/.bashrc18:50
blackflowHackeMate: for what purpose?18:52
HackeMatei want to know when the user is logged in, since i have a permanent bruteforce attack in course since 2 weeks ago18:52
HackeMatealready configured fail2ban, but i find this option usefull, if exists18:53
HackeMatei was reading about ssh ForceCommand but dont find much info about18:53
blackflowI don't know of a way other than via shell/login rcs, like ~/.bashrc or ~/.bash_profile for login shells.18:56
nacci mean you could use ForceCommand with your special thing locally and then exec $SSH_ORIGINAL_COMMAND, based on the docs, but dunno if that would work18:57
blackflowindeed, ForceCommand, covered by sshd_config(5) manpage.18:58
blackflowHackeMate: btw, did you disable password login, enable only public key login, for ssh?18:59
HackeMateyes, can be a solution, but i also could like get a prowl notification when i log in, for fun19:03
blackflownot just "can be" but it is a must these days. also, keep in mind fail2ban won't help against distributed attacks.19:07
blackflowideally, you should set up some proper intrusion detection like Snort.19:07
HackeMatefound the solution19:09
HackeMateusing /etc/pam.d/sshd created a new line with pam_exec.so, executes the script and works fine19:09
HackeMateusing forcecommand in sshd_config closes the ssh connection, maybe because the script exists, then exists the ssh session who executed it19:10
HackeMatesnort, i'll google it19:10
blackflowHackeMate: yes, hence the nacc's suggestion to spawn of SSH_ORIGINAL_COMMAND from it19:10
blackflow*spawn off19:10
blackflowbut pam, yeah, interesting solution.19:11
HackeMatethe bad part is i cant get the user who logged in, but still fine enough19:12
blackflowHackeMate: run `id` from the script to get the uid19:14
HackeMateoh, truth19:14
blackflowHackeMate: another, a bit less hacky way, is to have log monitoring. sshd will log all logins.19:15
sarnoldHackeMate: I strongly dislike the idea of using pam_exec for alerting in this fashion; consider using auditd and audisdp to get the logs off the machine..19:18
HackeMateaha, i go read about this19:18
=== lifeless_ is now known as lifeless

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