/srv/irclogs.ubuntu.com/2019/02/20/#ubuntu-server.txt

=== gry is now known as Sveta
ansyebhello. whats the best way to read array of strings from ENV VAR, and then process each value depending on a condition in a loop using bash or perl?05:15
t0lkmanfor www server do you suggest to use built-in www-data user? or create new one05:45
benharriwww-data user is fine05:45
t0lkmanthanks05:47
=== cpaelzer__ is now known as cpaelzer
lordievaderGood morning07:03
t0lkmanIs there any way so whatever user create/copy any file into /www directory the file will have www-data owner?07:34
lordievaderYes, there are sticky bits with that effect.07:42
lordievaderHrm, that might only be for groups. It seems that ACLs can do this: https://unix.stackexchange.com/questions/115631/getting-new-files-to-inherit-group-permissions-on-linux07:43
RoyKt0lkman: I uess using a group for that will be a good idea11:16
RoyKt0lkman: if you don't want fancy ACLs, that is11:17
pagioshello, i have a NFS question, i have a server hosting some mp4 files, and a client mounting the directory of the nfs server locally. The users mainly connect to the webserver on the client which is mounting the mp4 directory of the server. My question is, when a user tries to play the mp4 file, he uses the nfs mount on the client, does it mean if i have 100 clients, i create 100 request for nfs between the client and12:40
pagiosserver?12:40
pagios[14:38:24] <pagios> or is it one request for the mp4 that is shred by all the users?12:40
lotuspsychjeidle a bit ok pagios, usa waking up soon12:43
trippehhum. initramfs-tools doesnt seem to work so well with xz compressed kernel modules.12:46
lotuspsychjetrippeh: start from the beginning please, what are you trying to do?12:47
trippehtrying to use xz compressed kernel modules, as supported by kmod in ubuntu.12:47
trippehit's not important, was just looking into some private packaging.12:51
trippehseems partly supported, update-initramfs copies over some of the xz modules, just far fewer than when using plain .ko's12:52
lyzeHey! I'm currently trying to install ubuntu server 18.04.2 on a new system. I wanted to setup software raid for / but when it tries to create the partition on /dev/md0 it fails and crashes: https://i.imgur.com/5SlaWwI.jpg   Installing the system without raid but using all drives works fine. Setting up raid with https://wiki.ubuntuusers.de/Software-RAID/ manually in a live cd works also fine. Could somebody help? c:13:05
sarnolddo you have access to a shell on that machine that you could use to run dmesg?13:07
lyzeyes13:08
lyzegimme a sec13:09
lyzeSo I've run the installer up to the point where it crashes and pressed ctrl alt f2 to switch to a free shell13:12
lyzesarnold, anything in particular you want to see from dmesg?13:12
sarnoldlyze: I'm mostly curious if  there's any errors that give details why the partition create failed..13:13
lyzeHere's the output https://0x0.st/zifA.txt13:14
sarnoldwell, that's kinda mixed. no errors (probably for the best :) -- but the sda1 and sdc1 sdc2 makes me wonder.. why do those two drives have different partition schemese if you're making a raid out of them?13:15
lyzeI've tried to install it without raid right before this reboot, just to check if that might fail as well. That's probably why dmesg shows that13:16
lyzeI'll reboot quickly and send you the new dmesg output13:17
sarnoldaha13:17
lyzehttps://0x0.st/zifS.txt that's the new dmesg output13:19
lyzeAnd that's the output of blkid https://0x0.st/zifQ.txt13:19
sarnoldlyze: sorry, I'm out of ideas. if you have the time, please do file a bug13:23
lyzeAlright thanks for your time! I'll check if it fails on 18.04.1 as well or not and file a bug report if I find some time.13:23
lyzeDoes anyone has a download link for 18.04 instead of 18.04.2?14:03
lyzesarnold, figured it out thanks to a year old bug report on launchpad. Instead of using 100% of the md0 partition I've told it to use 99% of it and now it works just fine.14:10
sarnoldlyze: wat14:10
lyzeyes14:11
lyzeexactly14:11
sarnoldlyze: that sounds like it's worth a comment on the bug report :)14:11
lyzehttps://bugs.launchpad.net/subiquity/+bug/178337414:11
ubottuLaunchpad bug 1783374 in subiquity "failed creating GPT entries on raid device" [Critical,Fix released]14:11
sarnoldta14:11
OerHeksi have 18.04.1 live server http://nl.releases.ubuntu.com/bionic/ubuntu-18.04.1-live-server-amd64.iso.torrent14:11
sarnoldmwhudson: ^^^ /lastlog lyze -- is  https://bugs.launchpad.net/subiquity/+bug/1783374 actually fixed?14:13
ubottuLaunchpad bug 1783374 in subiquity "failed creating GPT entries on raid device" [Critical,Fix released]14:13
lyzeOerHeks, thanks!14:14
OerHekslyze14:15
lyzeYes?14:15
OerHekswait14:15
OerHekshttp://ftp.yzu.edu.tw/Linux/ubuntu-old-releases/releases/18.04.0/14:15
OerHeksold releases page14:15
lyzeahh awesome14:16
OerHeksyw14:16
OerHeksall the way from taiwan :-D14:16
mwhudsonsarnold: possibly not in all cases :(14:18
mwhudsonpresumably the size of a md devices is a deterministic function of the size of the constituent devices and the raid level14:19
mwhudsonbut sometimes it really doesn't seem like it14:19
sarnoldoof14:19
mwhudsonlyze: can you paste lsblk?14:20
mwhudsonlsblk -b14:20
lyzeyep, gimme a sec14:20
lyzemwhudson, https://0x0.st/ziOo.txt14:22
lyzeShould I comment on the old bug report?14:23
lyzeI've never really worked with launchpad before14:23
sarnoldprobably best to file a new bug14:24
sarnoldand say in the description that it's quite similar to an old bug blah blah lp: ...14:24
lyzeok14:25
muhahaAny love for me ? https://superuser.com/questions/1407474/run-kodi-on-ubuntu-bionic-server-with-flatpak14:31
sarnoldI thought you got that working yesterday?14:32
OerHeksmuhaha, oh, that error is being worked on14:32
muhahayes :/14:32
sarnoldoh i see, that's a *new* question..14:33
muhahasi it?14:33
mwhudsonlyze: thanks! did you pastebin the failing sgdisk command already? :)14:36
mwhudsonah you posted a photo of it, good enough14:37
mwhudsonlyze: busy now but if you can file a bug with lsblk and that image, that would be super great14:37
lyzeYeah didn't think of grabbing the logs from somewhere and uploading it14:37
lyzeyeah will do14:37
mwhudsonlyze: well i just want to know how big a partition we're trying to create and the image is ok for that :)14:38
mwhudson(i am still pretty unhappy about this general situation but oh well)14:38
mwhudsonblock devices in linux a mess, news@1114:38
muhahasarnold:  It does not work for me unfortunatelly...14:45
OerHeksmuhaha, install the xbmc version?14:46
OerHeksppa, that is14:47
lyzeGood like this? https://bugs.launchpad.net/subiquity/+bug/181677714:48
ubottuLaunchpad bug 1816777 in subiquity "Could not create partition 1 on raid device during installation" [Undecided,New]14:48
sarnoldawesome, thanks :)14:49
muhahaOerHeks: xbmc will not work eighter ... There is a problem with ubuntu server, xorg, lightdm and autologin under user and run X11 app14:49
=== dz0g is now known as dz0g_
=== dz0g_ is now known as dz0g
yikoruhi some good book about security in debian or ubuntu server??17:11
lordcirth__yikoru, https://github.com/imthenachoman/How-To-Secure-A-Linux-Server ?17:15
tomreynhttps://help.ubuntu.com/lts/serverguide/security.html.en is a start17:16
OerHeksor look for pages 'ubuntu server hardening'17:17
muhahawhat is difference between xhost vs xserver-xorg-legacy/xwrapper/allowed_users ?18:14
yikorubut some recommendation? i dont want a web page or similar i'll find a good book and buy it18:31
RoyKyikoru: dunno about books, but there are a lot of resources on the net. Basically, to secure a server, keep as few services running as possible - only those you need. Don't install stuff you don't know. Don't use PPAs. Better yet, use something else than Ubuntu, like Debian or even CentOS, since they're far more strict in package management. Install a good firewall (ufw on debian/ubuntu is a good18:46
RoyKfrontend for iptables). Update regularly, preferably with unattended-upgrades or similar.18:46
RoyKyikoru: that's just my words, I guess others may have other views18:46
RoyKyikoru: and if you need some PPA of sorts, or some custom software, make sure it doesn't run as root, and better run it in a VM instead of on the host, in case the midden hits the windmill, so to say…18:48
yikoruok thanks i'll considered for the future i plan upgrade all my server farm (2 servers jajajajaja) with the security in mind because in my enterprise its not a item to consider (unfortaly)18:52
RoyKyikoru: for that sort of work, I wouldn't use ubuntu, although I know some people do and it works well19:07
RoyKyikoru: swearing in church here…19:07
yikorujajajaja yes i think about debian so, but i dont know if my bosses approve the change of distribution (at present use ubuntu)19:09
RoyKat least stick to LTS19:10
yikoruat least...19:14
Ussatand FYI:  https://nvd.nist.gov/vuln/detail/CVE-2019-891220:06
OerHekshttps://people.canonical.com/~ubuntu-security/cve/2017/CVE-2017-8912.html untriaged20:10
OerHeksand disputed20:10
sdezielOerHeks: off by 2 years ;)20:14
OerHeks:-( my bad20:15
=== gry is now known as Sveta
=== cpaelzer__ is now known as cpaelzer
mostymHey guys.  I have two static different static ips assigned to two network ports https://paste.ubuntu.com/p/JTtFnTrKTM/.  I can ping the .51 but can't ping the .5023:19
mostymDoes everything look correct in the netplan config?23:19
mostymI am running 18.04.223:19
RoyKmostym: why would you have  two network cards on the same network?23:28
RoyKmostym: the routing table will be messy23:28
RoyKmostym: if you want bonding or teaming or something like that, configure it23:29

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