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

ExmixAnyone know a semi-quick/simple way to install OpenVPN on Ubuntu Server(Kinda similar to how PiVPN is easy to install)03:23
gartralI have a vm that's inaccessable... it's in emergency and asking for a root password... but as we know, ubuntu doesn't have a default root pass... what do I do here?!?!04:38
gartralit's a server 18.04 vm on a xen host (not xenserver, straight xen project), so I can't just boot an ISO, I tried, it doesn't boot04:40
=== disposable3 is now known as disposable2
=== lotuspsychje_ is now known as lotuspsychje
zzlatevHi guys07:25
zzlatevA start job is running for raise network interfaces (5 mins 1 sec)08:31
zzlatevcan you help me08:31
ren0v0Hi, when i login via SSH to my server it says "67 packages can be updated", but when I run apt upgrade it says 0 packages to upgrade?08:48
ren0v0Seems completely broken somewhere!  https://pastebin.com/ump3RWZu09:00
ren0v0can anyone assist?09:00
ren0v0Think its the MOTD09:36
ren0v0anyone know how to force update it ?09:36
rbasakren0v0: what's the output of running /usr/lib/update-notifier/apt-check? That's what the motd uses.10:20
rbasakren0v0: I think you can remove /var/lib/update-notifier/updates-available but it gets recreated daily (or something like that) anyway10:22
rbasakren0v0: via /etc/update-motd.d/90-updates-available10:22
technoobHi guys15:12
technoobNeed help15:12
technoobI have a problem in installing pihole docker version on ubuntu server 1815:13
technoobIt says that port 53 is alrrady used15:13
technoobAnyone can help me?15:16
blackflowtechnoob: perhaps fix your connection first.15:51
technoobHow?15:51
blackflowtechnoob: your connection that's making you disconnect from IRC I mean15:51
technoobI see15:51
blackflownobody here is gonna play parrots to repeat stuff said when you were disconnected15:51
technoobIts because of my phone15:52
blackflowthat said.... on a certain IP address (like localhost), there can be only one process listening at a port number15:52
blackflowby default ubuntu uses systemd-resolved as local resolver (and before that dnsmasq) which are all taking port 53. So if you want something else to listen on that <ip>:<port> combo, you'll have to disable whatever is running right now.15:52
technoobMy phone keeps on disconnecting sorry15:52
technoobI see15:53
technoobHow do i disable those running? I tried netstat and i see dnsmasq and systemd resolver15:54
technoobThose 2 are listening15:54
blackflowthey can't both be listening on the same ip:port combo15:55
blackflowiirc systemd-resolved is not at 127.0.0.1, right?15:55
technoobIm not sure what ip it was15:59
technoobMy server is off right now15:59
technoobSo couldnt check15:59
technoobBut dnsmasq and the resolver have different ip15:59
technoobBut same port15:59
tomreynit listens _of course_ ;-) at 127.0.0.5316:01
technoobBackflow16:04
technoobblackflow16:04
blackflowtechnoob: alright so, you have two options here. One, use pihole as the only resolver, or two, tell resolved to use pihole as its "upstream" (since resolved is just stub)16:05
blackflowoption two should be most simple one, requiring only a change in /etc/systemd/resolved.conf, adding a proper DNS= line. That also requires your pihole docker to run at another ip16:06
technoobIll try the easy one16:07
technoobSo what dns should i add or change in conf16:07
technoobblackflow16:11
blackflowto the IP where the pihole is listening on16:12
mybalzitchwhy don't you learn to create a network in docker, then have your pihole docker use a specific ip on your network, without having to gut ubuntu's resolv system16:12
blackflowthere we go.... the parrot game16:12
mybalzitchtechnoob: why don't you learn to create a network in docker, then have your pihole docker use a specific ip on your network, without having to gut ubuntu's resolv system16:12
blackflowtechnoob: and set DNS=   to the IP where the pihole is listening on16:13
technoobmybalzitch i see. I could do that too but im really new to sysadmin and alot of things are so confusing16:14
technoobThats why im asking16:14
technoobBut i will take into consideration your advice as i too also dont like to gut ubuntus default configuration16:15
technoobThat was the reason why i opted to use a docker so that there is minimal changes done to the original env16:16
technoobForgive me if i have used wrong terms16:16
technoobblackflow thanks ill try that maybe later as i need to get some shut eye16:16
kab0mHi everyone.16:30
kab0mWhat is the best way to setup a VM as a vpn-router? has someone a guide on hand? I tried now serveral times and problems with dnsmasq openvpn and dnsleaks are coming back, im stuck.16:31
blackflowkab0m: debian or ubuntu. last you asked about resolv.conf was for debian. the two have very different default network settings paradigms.16:33
kab0mblackflow: i tried with both debian and ubuntu...no success so far...atm im happy with any of those two systems.i just need to get things running16:34
kab0m*i would be hapyp with guides for any of those systems16:34
blackflowkab0m: what I'd personally do, and what I _do_ actually, is replace the default resolving stack wiht a local bind resolver. you can use unbound as well. which includes a static /etc/resolv.conf . most flexible, best control, no leaks.   In contrast, there's been a plenty of reports about systemd-resolved not playing nicely with VPNs16:35
blackflowdefault stuffs in ubuntu are complex layers upon layers of reinvented or badly invented software.16:36
kab0mblackflow: thanks for the hints ;) do you maybe have a guide or a tutorial which i can use to start with?17:39
blackflownothing in my bookmarks, sorry17:40
tomreynPici: we miss ubottu - could you have a look?18:38
kab0mis there a minimum disksize for a ubuntu-server installation? because i tried with 5gb and i couldn't select the disk as it is greyed out in the installer?19:46
Ussatthats a bit small19:47
UssatI mean disk is cheap......I would think at least 2019:47
kab0mUssat: i think 20gig a bit overpowered for a little service thats running on this thing.19:48
Ussatwell then choose what you want19:49
Ussatlike I said disk is cheap19:49
kab0mhttps://help.ubuntu.com/community/Installation/SystemRequirements#Ubuntu_Server_.28CLI.29_Installation states 5GB should be enough...but the installer says nothing about19:49
Ussat...19:50
kab0mUssat: btw its a VM19:50
Ussatso use 1019:50
tomreyn10 works fine for a basic installation without many services19:58
kab0m10G was the key, thanks Ussat and tomreyn19:59
UssatI just thin provision all my vm's and dont worry about it. If you give it 100G it doesnt matter, only uses what it needs20:00
tomreynthanks Pici, it's back20:13
RoyKkab0m: 2GB should do for a server - I have that on a few VMs22:06
RoyKthe base install for a server takes up 1GB or perhaps 1,2GB22:07
RoyKplus swap22:08
kab0mRoyK: Strange...i couldn't install it with 5GB as the installer greyed out the disk and i had to up the size to at least 9GB..how did you pass the ubuntu-server installer with that small disk?22:08
RoyKyou want a bit of swap22:08
RoyKkab0m: was this the new installer or the old one?22:08
kab0mRoyK: the latest ubuntu-18.04.2-live-server-amd64.iso22:09
RoyKuse the old installer22:09
RoyKyou really don't need nine gigs for a basic server installation22:10
kab0mwhich one is the installer and what exactly is the difference?22:10
RoyKand then - take a copy of that installation and use it again22:10
RoyKthe new installer is fancy and flashy and - well - sucks22:10
RoyKthey made a new one to make everything flashy and forgot about making it useful22:11
mybalzitchhate it when that happens22:11
RoyKeven for ubuntu desktop, you won't need 9 gigs for a base install22:11
kab0mRoyK: Ok good to know :D where can i find the "old" installer? and does it have any disadvantages?22:12
kab0mRoyK: LOL iirc the desktop installer now requires at least 20GB ore something like that? ^^22:12
kab0mits just insane22:13
RoyKkab0m: "traditional installer" on ubuntu.com download22:13
RoyKkab0m: that's just  bit weird22:13
f2600anyone here22:13
RoyKo/22:14
tomreynno22:14
f2600looking for websites or book recommendations that go in depth on securing 18.04. My searches give pretty basic security info and looking to see if community has some recommendations22:15
kab0mRoyK: well, i fell for the shiny new installer as canonical has hidden the traditional very well on their download page as i see now^^22:16
rbasakIt's because the installer uses an image which is generated at 8G.22:16
rbasakIf you're using a VM, using an installer is like being in the dark ages. Use a cloud image.22:16
rbasakkab0m, RoyK: ^22:16
kab0mrbasak: ahhh thanks for the insight. ahm ok, where can i find the cloud images...also on ubuntu.com?22:17
rbasakcloud-images.ubuntu.com, but rather than using it direct, use tooling that uses an image.22:17
rbasakTry vagrant or multipass or uvtool.22:17
kab0mrbasak: tbh i have my vms running in virtualbox lol i guess something like unraid etc would be a better idea...but that would mean i would have to migrate everything, which i try to avoid atm22:19
rbasakvagrant supports virtualbox natively I think.22:19
rbasakThough vagrant images aren't suitable for production use unless they've changed how they do things.22:19
kab0mrbasak: is vagrant some kind of esxi vsphere clone?22:22
ec0vagrant is a tool for automating VM install and configuration22:33
ec0it has a virtualbox provider by default, but there's also other ones. I use the libvirt provider quite often to bring up VMs on KVM for testing purposes.22:34
ec0the ISOs for the installer are also pretty easy to snag from archive.ubuntu.com22:34
kab0mthanks ec022:45
ec0no problem!23:06
ExmixSo obviously I have UFW enabled on my Ubuntu Server, i have it to allow SSH, and Apache as I use it as a Web Server and a SFTP Server. I recently installed PiHole onto it so I can use my RaspberryPi for other nifty and fun things. Anyway, since I have the PiHole as my DHCP server and such, I would need to allow ports 67, and 68 correct? Would I also need to allow DNS(53)?23:12
mybalzitchyes if you are serving dns to the restof the network23:15
mybalzitch(which you probably will want to)23:15
ExmixOk, Thank you. Now my other question is, if I 'ufw allow 67' it will add it to v6 as well, is that necessary or is there a way not add it to v623:25
Exmixor does it really not matter?23:30
=== Bodenhaltung_ is now known as Bodenhaltung
OerHeksExmix, no, The excellent thing about UFW is that enables the firewall on both IP stacks23:46
ExmixSo it doesn't matter if the v6 is there or not, gotcha. Thanks OerHeks23:51

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