/srv/irclogs.ubuntu.com/2019/05/23/#ubuntu-server.txt

ironpillowhi all, I am installing new ubuntu server on a headless machine. If I select "install security updates automatically", will this restart the machine after the updates are installed.00:16
sarnoldironpillow: no, it won't00:18
sarnoldironpillow: the motd should be amended to add:00:18
sarnold*** System restart required ***00:18
ironpillowso this WON'T restart correct?00:22
sarnoldcorrect00:23
ironpillowsarnold: thanks!00:23
sarnold$ uptime00:23
sarnold 00:23:33 up 155 days,  5:08,  3 users,  load average: 0.00, 0.00, 0.0000:23
sarnoldheh, that machine's been up a lot loonger than I expected00:23
ironpillowawesome!00:26
GerowenOn that topic, random thought, what would I dpkg-reconfigure if I wanted to change that option on an existing server installation?  Say I didn't enable automatic updates, and I want to.00:32
sarnoldGerowen: I *think* apt-get install unattended-upgrades ought to do the right thing00:42
=== gnomethrower is now known as wings
lordievaderGood morning06:00
=== mIk3_09 is now known as mIk3_08
chl_ugh, I seem to have forgotten which package I need for being able to ./configure12:33
chl_nvm, im an idiot. forgot about autoconf12:37
Greyztarhello,i was wondering when using syctl command would options applied then be reset on reboot and to make it persistent i should edit /etc/sysctl.conf instead?12:47
blackflowGreyztar: yes, /etc/sysctl.conf or even better a custom file under sysctl.conf.d12:47
Greyztarblackflow, thanks, i tried to do sysctl --write net.netfilter.nf_conntrack_buckets=$((${conn_count}4)) which seemed to not work after reboot thanks for asnwer (,")12:48
blackflowGreyztar: btw that expression won't work in the .conf12:49
Greyztarblackflow, im trying to apply another option aswell,could i perhaps do paste and link what im trying to do so you could sort review it?12:50
blackflowsure12:51
Greyztarim trying to limit connections using conntracked module with these two options and an rule in iptables https://paste.debian.net/1082777/12:53
blackflowGreyztar: where does ${conn_count} come from?12:54
Greyztaryeah i did some copy pasteing erhm,i dont think its supposed to be there ,i followed i guide ,cant find it no more though,think its just the value12:55
Greyztarwould that make sense?12:56
blackflowit doesn't. I suggeest you don't set any permanent sysctls if you don't know what you're doing. You'll lock yourself out of the server.12:56
Greyztarblackflow, yeah ill see if i can find the guide again,good advice also i didnt really think that one through12:57
chl_has xinetd been removed in 18.04?12:57
blackflow!info xinetd bionic | nope:12:59
ubottunope:: xinetd (source: xinetd): replacement for inetd with many enhancements. In component universe, is extra. Version 1:2.3.15.3-1 (bionic), package size 112 kB, installed size 318 kB12:59
chl_oh, nifty, thanks12:59
blackflowthen again, there's systemd, so maybe you don't need it at all13:00
disposable2is there a way in ufw to set 'ufw default deny' on one interface and 'ufw default allow' on another?13:04
Greyztarjust wondering,how long could i possibly stay on 18.04 before it stops getting updates?13:18
Greyztarthought i read somewhere there was an option to still receive updates after the lts period was over?13:21
blackflowGreyztar: 5 years, and then optionally pay up for ESM for anotehr 513:22
blackflow(in total that is, since 2018. "after LTS period was over" you'd need to pay for ESM)13:22
Greyztarblackflow, ohh its paid alrighty thanks13:23
Greyztarblackflow, its the Ubuntu Advantage i need to buy then right?13:25
Greyztarseems the only option,good to know its an option to get support beyond lts if ever needed though13:27
blackflowGreyztar: yup, Ubuntu Advantage.13:32
UssatSigh.....RHEL Removed the ability to do JUST krb auth against a AD domain in 8 without joining the domain, looks like I will be useing more Ubuntu13:48
tewardlol13:48
tewardUssat: sounds like RHEL did an evil13:48
UssatWell......ya13:49
UssatI use quite a bit of Ubuntu right now13:52
=== svetlana is now known as Sveta
UssatNot sure I would call it evil....just......ew14:01
Greyztarwhen i set tracking state with iptables like NEW,RELATED,ESTABLISHED the connection needs to fullfill all of those right not just NEW for an example?14:04
tewardGreyztar: the connection needs to match *one* of those to be matched.14:04
tewardat least AIUI14:05
tewardbut I might be wrong14:05
tewardRELATED,ESTABLISHED tend to go together14:05
tewardNEW won't have the other two IIRC>14:05
tewardbut don't quote me fully on that14:05
Greyztarteward, thank you for informative answer,it got a little confusing hehe14:05
tewardGreyztar: per the manpage, I use conntrack and --ctstate which state: statelist is a comma separated list of the connection states to match. Possible states are listed below.  <-- this doens't necessarily say it must match ALL14:06
tewardbut that any of the states in the list are matchable14:06
teward(manpages are fun, iptables-extensions manpage)14:07
Greyztarhaha14:07
Greyztaryeah i should read more man pages just often i end up not wiser i tend to over complicate what i read14:07
geodb27People : hi ! I'm trying to automate the installation process with a preseed file. THings seems to work so far (ubuntu 18.04 LTS server), but the language and keyboard selection. What is the prefered way to have this automated also ?14:18
leftyfbgeodb27: append this to your kernel line: locale=en_US console-setup/ask_detect=false keyboard-configuration/layoutcode=en console-setup/layoutcode=en keyboard-configuration/xkb-keymap=us14:21
geodb27Thanks a lot for your answer leftyfb. I'll give it a try when my in-progress installation is done.14:25
Greyztarim wondering,is the snapd stuff useable in production?14:55
blackflowGreyztar: depends on what you expect of the "production" :)  For example, snaps auto-update, making them useless on servers in my book.14:59
patdk-lapI limit snap usage to configuration utilities, like kubectl and stuff15:00
Greyztarblackflow, im just wondering if its ment for production though in term of it being stable and not experimental and such,some time ago i wanted to migrate my own server from Ubuntu to Debian but couldnt get lxc to work so didnt bother,though using snapd now i got it working =)15:03
Greyztari also noticed the lxc version in snapd is 3.13 and on my 18.04 server its 3.0.315:04
Greyztarif i migrate i will miss the easy live kernel patching from Ubuntu though,thats some awsome feature15:05
blackflowGreyztar: I say use apt packages where possible, and snaps only if there's no apt package (for the version you want), and of course if the auto-update regime is okay with you.15:13
blackflowFor me, snaps offer no advantage, if there's an apt package. Any "isolation" one can achieve with snaps is doable with systemd options, apparmor and other tech, which is 100% under your control.15:14
blackflowFor example, I dislike that I can't customize AppArmor profile of snaps.15:14
lordcirthI thought you could?15:14
blackflowoverwritten on next update15:14
Greyztarblackflow, thank you for informative answer,i really didnt know about the auto update feature im not a fan of that so have to look into it15:15
lordcirthIf I want non-apt packages that I can update ahead of LTS, I use Nix15:19
Greyztarnoticed my snap program still worked after disableing the snapd service itself,maybe it could work by just enabling it every now and then with cron for updates?15:24
Greyztaror maybe its a reason it auto updates and ill end up with a broken system15:25
OerHekssnapd.service is the update mechanism15:33
OerHekssnaps should work, though, without snapd.service enabled15:33
GreyztarOerHeks, nice thanks!15:34
catbadgeroh so pretty specific question... I'm running a cpanm install (Apache::SSI) for mod_perl1.3, and it's asking for the location of httpd (on repeat forever)... is there some way to preload this via bash?15:57
catbadgerecho "httpd location" | cpan install blah16:11
catbadgerecho "httpd location" | cpan install blah -T16:11
Greyztarthis snap stuff is kinda neat though,i got lxc 3.13 installed on my tiny arm router. Containervisor on 22 dollar equipment i find sweet although its really slow =)16:26
=== mason is now known as ChibaPet
=== ChibaPet is now known as mason

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