/srv/irclogs.ubuntu.com/2020/07/17/#ubuntu-server.txt

r0zyHey all, I was wondering, if I have an extra NIC on my machine, and want to say plugin a switch with a camera, can I VLAN it but still us it locally? is that possible without usuing a router04:41
Aison0is there a package that provides /usr/lib/nagios/plugins/check_btrfs14:11
Aison0nagios/icinga2 check command?14:11
andolAison0: monitoring-plugins-btrfs14:22
r0zyHey All, I have an extra NIC on my machine, is it possible to plug a switch into it with a camera VLAN it or do I need a router for something like that?16:28
quadrathoch2r0zy i guess you would need to explain it a little bit more16:29
r0zyI have a security camera that I dont want on the main network, and a little POE switch, I want to plug that switch into an extra ethernet port on my machine (not connected to a router just the switch) can ubuntu give it an IP and gateway ect or is that something a router will have to do?16:31
r0zysorry if im not asking the right way or if its more a networking thing16:31
r0zythe machine is connected to the router via main port16:32
quadrathoch2r0zy you could setup a dhcp server, or just give those two interfaces static ips16:34
r0zyquadrathoch2 thannk you, is there a network manager GUI for ubuntu server? not the best at command16:36
quadrathoch2r0zy there should be nmtui16:37
r0zyquadrathoch2 thank you again im going to give this a shot16:39
RoyKr0zy: you could also use a separate VLAN for that camera, given your switch supports that. Less hassle16:46
RoyKr0zy: btw, are you planning on connecting the camera to the same switch as the rest? just a different ip network?16:47
r0zyroyk its a small tp link poe switch i dont think it will even let me do any thing :(16:47
RoyKr0zy: will that be dedicated for this camera network?16:48
r0zyroyk correct, yeah camera will go to that switch, i got it somewhat connected on my mint machine with link-local only but trying to get it on my ubuntu box16:48
r0zyI guess im not that best at networking but understand it a bit16:48
RoyKwhat sort of switch is this?16:49
r0zytp link16:49
RoyKmodel?16:49
r0zytp-sg1005p16:49
r0zymy other nic isnt activated or is showing as down, so fixing that first16:50
* RoyK doesn't like unmanaged switches :þ16:50
RoyKbut hey - it'll work :)16:50
r0zyroyk what is your fav managed switch? are most of those enterpise sort of deals?16:51
RoyKa lot of cheap switches are also managed16:51
RoyKwith a managed switch, you can monitor performance, setup VLANs, tagged or untagged, well, most, really16:52
r0zyis "smart" managed the same thing?16:53
RoyKmost of them come with a webui and a serial/ssh interface for configuration and monitoring16:53
RoyKprobably same ballpark16:53
r0zyoh ubiquity has one nice16:54
RoyKthey have a lot of nice things :)16:54
quadrathoch2r0zy https://networkengineering.stackexchange.com/questions/33719/what-is-the-difference-between-smart-vs-managed-switch16:55
r0zyThank you, NMTUI for some reason doesnt show my current connections but i will just do terminal I guess , brought it up with ip link do i need to install the DHCP part to assign proper gateway and IP?16:57
RoyKquadrathoch2: IMHO it's the same - just synonyms - everything is marketed as "smart" these days even though we have had that smartness for decades16:57
RoyKr0zy: which ubuntu version is this?16:58
rangergord"The issue that makes us resist the idea of simply disabling [snap] updates altogether is that very often that will mean never update rather than update at someone’s discretion, and then we’re getting back to some of the problems that got us here in the first place. That’s why we’ve been resisting introducing that global switch, at least for the time being, and instead working with people to mitigate16:58
rangergordthe bad side effects of having automatic updates enabled."16:58
r0zyroyk: 18.0416:59
r0zyroyk: 18.04.416:59
rangergordAs people running servers in production, how do you reconcile the direction Ubuntu is taking with snaps, with the need for stability and control over when services get updated/restarted?16:59
r0zyroyk Linux version 4.15.0-101-generic (buildd@lgw01-amd64-003) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #102-Ubuntu17:02
r0zyrangergord I guess production supersedes security17:04
JanCjust remove snapd17:04
rangergordJanC, but given the direction things are taking, what happens in 22.04, 24.04, etc, when even your Postgres install is a snap?17:05
rangergordand what if you want to update some packages but not others17:05
JanCI get Postgres from Postgres17:05
rangergordthat's you17:05
rangergordthat's not what the majority of a Linux server distro do17:05
rangergord*users17:06
quadrathoch2rangergord just move on if you don't wanna use ubuntu, omg is it so hard? I mean you are not locked into the ecosystem by canonical17:06
rangergordquadrathoch2, I'm trying to have a discussion with people who use Ubuntu Server in production, to see how they handle the things that worry me17:07
rangergordif that's not you, if you're some fanboy, feel free to /ignore me17:07
rangergordI'm a long-time Ubuntu fan (usually a version or two behind), this isn't some hit job17:07
rangergordI'm planning my next generation of systems and had been planning to use Server 20.04, but I'm reading up about the snap situation and it's worrying me17:08
JanCI explained that I remove snapd, will see what happens in the future17:08
quadrathoch2yeah just remove snapd and move on, or just use another system. there are literally THOUSANDS of other distros17:09
JanCand I use Postgres packages from upstream17:09
quadrathoch2even which give you commercial support like redhat or suse17:09
rangergordOK, so we have one guy who downloads and installs packages manually instead of using a package manager like everyone else, and another who feels personally attacked and tells me to stop using my favorite and most popular distro. Any 3rd opinions?17:10
rangergordJanC, the reason I use the package manager is that Debian/Ubuntu maintainers will have made sure the package is properly configured to work with the current system17:10
JanCrangergord: upstream packages from the Postgres Ubuntu repositories17:10
quadrathoch2rangergord who tells you that it's the most popular distro? I guess we can all agree that nobody can say that17:10
rangergordPostgres was just an example. I use hundreds of packages.17:11
JanCI also don't know what Canonical will do with Ubuntu...17:11
quadrathoch2and honestly how many packages do you know of which are only installable with snapd? I can pull out of my head exactly 3, chromium which just doesn't matter to -server and canonical-livepatch, I guess you are out of luck and lxd, which imho, just use lxc17:13
quadrathoch2and funny how I get called a fanboy, when I don't even have ubuntu right now installed17:13
rangergordquadrathoch2, I just read about lxd and it seemed like a taste of things to come. Will almost everything on Server become a snap within 4 years? I'm not just concerned about right now, I'm building a foundation for the next several years.17:17
JanCmaking everything a snap would kill Ubuntu as a cloud OS17:17
quadrathoch2yup, and you don't need to run lxd in a snap, just compile it yourself for 20.0417:18
rangergordI don't know anything about cloud, I'm an embedded/IoT developer17:18
JanCwell most people don't want to compile everything themselves, even if just from a security perspective17:18
r0zyWhen assigning an IP to my unmanaged switch, is it assigning it to the switch it self or the camera connected? should i DHCP the interface ?17:19
quadrathoch2JanC yeah, i would also rather not (especially for production) but if there would be no way around it *shrug* if you really care that much about snapd17:19
rangergordwhy would using snaps kill Ubuntu as a cloud OS? I'm already reading comments on Hacker News about snapd restarting various systemd services in the middle of operation, due to an auto-update of some snap. (they didn't specify which packages)17:19
quadrathoch2r0zy if the switch is really unmanaged, it shouldn't have an IP17:20
r0zyOr I guess i mean assigning the ip to the interface17:20
quadrathoch2r0zy which interface specifically?17:21
r0zyquad : enp3s0 ?17:21
quadrathoch2ah so you mean from the system17:22
r0zyyeah, it looks like i got it set and connected...17:24
quadrathoch2I guess the easiest would be to setup a dhcp server on that one network link. if not, try to figure out which ip the camera has, and try to assign one in the same subnet to the (managed?) switch / desktop/server you got17:24
r0zyi can ping the ip i set17:24
quadrathoch2r0zy great :)17:24
r0zynow i guess i have to figure out the camera lol thank you for the help, I thinkyoure right though because how will the camera get an ip or is it the ip i set I would think id be able to http into it but maybe theres no webpage for it17:25
r0zyoh i can ssh into it17:25
quadrathoch2even better :) hope you can now figure everything out r0zy17:25
r0zyquadrathoc2 thank you for the help, any of you guys use proxmox?17:27
quadrathoch2r0zy I guess you would need to look somewhere else (even if it's based on debian/ubuntu), as we don't know what they changed from the "default"17:28
r0zyis snap better than apt? or am i confused17:36
r0zywhats weird is theres an rdp port open on this thing17:36
r0zyreolink camera17:36
quadrathoch2Snap and apt are two differently ways to installs things. Sometimes one is better than the other one. But most people like apt more because of the history imho, and because apt is able to share libraries with other packages (where snap isolates the certain package)17:37
quadrathoch2r0zy are you sure?17:37
mybalzitchwell thanks ubuntu during an update renaming all my interfaces from enp* back to eth*17:37
r0zyyeah when trying to connect it gives me an error about the libfreerdp does not support h264, and the work around is to install remmina from the flatpak/snap pacakges which i will try17:38
r0zymybalzitch never update (jokes)17:39
r0zymaybe its just looping back to my own machine :()17:42
quadrathoch2How did you figure out that there is rdp open r0zy17:43
r0zynmap17:43
r0zyyeah nm its just looping back to my self lol17:44
JanCquadrathoch2: one of the big differences (& problems) is that snaps always auto-update (unless that changed recently?)17:44
r0zywow headache17:44
quadrathoch2JanC yes you are right but for example where it really matters, for example in a business you can disable auto updates completely. (It’s an enterprise feature) I guess they never talked about that really a lot. So when the guy before was talking about production, it was clear he was a non paying customer17:47
quadrathoch2So seems like canonical wants to give incentives to pay for support17:48
JanCugh, you mean you can disable it if you pay ransom? that's even worse...17:48
quadrathoch2I wouldn’t call it ransom, but the systems where it matters, you probably pay, and the rest is more of a test system / homelab POV maybe? Idk the reasoning why they want to do that17:49
quadrathoch2Imho same thing with live patching. But there they clearly stated that it’s a paid feature, so I guess less people have an issue with that17:50
JanCright17:51
JanCif they want snaps to be a paid feature, they shouldn't push it onto everyone17:51
quadrathoch2It’s not about snaps being a paid feature, it’s only specifically about removing the auto update ‘feature’) (and yes that’s why I don’t like snaps, but I wouldn’t go as far as not using the Distro or complain about it on an irc channel)17:53
JanCwell, complaining is one way to tell people there is a problem  :)17:54
quadrathoch2And btw, I only know about that commercial feature because Martin wimpress (Desktop leader) was talking about it on his podcast) so you can guess how well ‘known’ that feature is17:55
JanCI don't care too much that auto-update is the default (especially for user apps on the desktop)17:57
JanC(and I would care even less if the average snap was maintained well...)17:57
quadrathoch2okay I thought we were still talking about that as that’s what’s most people think is annoying17:59
JanC"default" means that you can disable it on systems that are used for real  :)18:01
Aison0andol, thx for the hint18:35
Aison0why is "monitoring-plugins-btrfs" installed into "/usr/lib/nagios-btrfs/plugins/check_btrfs" and not /usr/lib/nagios/plugins/check_btrfs18:35
Aison0icinga2 requires /usr/lib/nagios/plugins/check_btrfs18:36
Aison0well, I created now a symlink18:36
=== xMopx is now known as XmopX

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