Can anyone give me pointers about how something called xdg-open chooses what PDF viewer to use? In this particular instance, it's for use with gscan2pdf. Or should I post this as a question? Is it sufficiently well-formed?
Can anyone with their thinking cap on help this guy with a timezone conundrum: unix.stackexchange.com/questions/433604/… I can unfortunately not think today and it's unclear whether the system time is set to UTC on the affected machines. He should also be using a link to the zoneinfo file for his specific capital/city, not the generic EET zoneinfo file (which is wrong for Jordan and Syria).
A programmer with good knowledge of Bash told me that when Bash came out, "some people had hard time" to move away from SH to Bash. Is that correct in your opinion?
@FaheemMitha for virtualization I use either KVM / libvirt, or VMware ESXi, depending on the power needed and the availability (24/7 or temporary as-needed)
just to give you my answer :P
though much of what I do runs in unprivileged LXD containers now
@FaheemMitha see second point. If testing requires root, it's often because (e.g.,) it needs to listen on :80. That isn't isolated by a chroot, so having a web server running on your machine breaks the test.
@user9303970 There is always resistance to move away from that which is known. So I could definitely see that moving to bash may be difficult to some, just from a human behaviour point of view. Then there's the technical bit where you need to make suro that every single existing script still works with bash (if you're replacing sh with bash that is).
@FaheemMitha vCenter does, but I have just one system for the hypervisor at home, when the vSphere license for pro features expires (May) it falls back to the perpetual free license, and I use the free esx-ui 'fling' from VMware on that.
> LXD isn't a rewrite of LXC, in fact it's building on top of LXC to provide a new, better user experience. Under the hood, LXD uses LXC through liblxc and its Go binding to create and manage the containers.
@derobert It's getting increasingly hard to keep track of all these different options.
i haven't had to touch my KVM box in an eon, so I haven't touched virt-manager in a long while
last time I used it though it was 'alright'
but I prefer the LXD containerization method, because then each container has its own IP and I can do standard iptables NAT rules with an easy-to-configure bridge (that LXD ultimately manages, but it's far easier to set up than using brctl and setting up the bridge myself).
@FaheemMitha part of the reason there are so many are how different people's needs are. VMs and containers are used for everything from developers locally doing testing to Google. There are definitely different solutions for people who can easily count their VMs, could count there VMs with a little effort, and folks who could maybe hope to write a program to approximate the number they have...
@FaheemMitha that question being "What is your goal?"
if your goal is to have something that 'runs easily' containers probably are the way to go. if you're trying to get the feel for an OS in its entirety, a VM is probably the way to go
Containers do not. They just use features of the Linux kernel to isolate PIDs, filesystems, network interfaces, etc. The container uses the same kernel as the host.
@FaheemMitha with VBox, its networking is 'okay' but doesn't play well with some locked-down environments. It's got horrible USB passthrough, and doesn't play well with some hardware.
but for just running Debian package builds, containers should be more than fine
Usually you're building code that you basically trust, aren't building as root, and you aren't running such wildly different environments that you need different kernels. And there is plenty of automation available with containers.
Example: with GitLab, every time I push a commit, it automatically spawns a container, builds it, runs the test suite, and shows the status alongside the commit.
But the point is, GitLab recommends Docker (at least at my scale). So I run Docker for that. If GitLab instead suggested something else, I'd run something else.
@FaheemMitha If there's no automation in the process, then it's Dealer's Choice, I prefer using LXD containers, but I've also used dedicated VMs for it as well in some cases.
VIRTUALIZATION:
- VMware
* On desktops: VMware Workstation / Player
* As a full hypervisor running many VMs on a server: ESXi
- KVM
- HyperV (Microsoft)
- VirtualBox
CONTAINERIZATION:
- LXD (uses LXC under the hood)
- LXC
- Docker
- {Insert other solutions here}
- OpenVZ
I'd still use sbuild/pbuilder even in a containerized environment.
but that's just me.
sbuild can be configured to spawn a local VM for the build environment for foreign archs, which is coincidentally how I use it on my own personal laptop
(There are sometimes you need VMs for builds — e.g., if you need to do builds for a different OS. You can't run Windows in a Linux container. Or if you need to do builds for, e.g., sarge, which probably won't run on a modern kernel)
@derobert Right. Actually, I managed to semi-break my VPS by trying to upgrade it. Which the hosting service specifically says you should not try to do. Sigh.
I actually got a VM working on OpenBSD the other day, using the native vmd daemon. It was pretty easy. But you guys are probably not interested in OpenBSD details like that... ;-)
@FaheemMitha Most of mine are grandfathered in under older discount codes, it actually turns out cheaper to run them in RamNode than to get a dedicated server in a datacenter
which is why the stuff I really need racked, I use a spare rack we have at my employer's server room, I pay for my power consumption, and then the internet circuit that comes in for it.
i'm moving most of my stuff off-site though, either to my own apartment or to a datacenter itself, or virtualizing it and pulling it into my own hypervisors or containerizing it and putting it into my RamNode VDSes as containers.
Thankfully they're normally attached to the cabinet pretty firmly. As long as we keep the screwdrivers away from the computers, we'll be fine. And I doubt they can operate a quick-release, no one can :-/
Huh, when my mother and I visited DC in 2000, we could have gone to see the White House. Why didn't I think of that? She would have liked it.
(She was visiting.)
We did go to see the Lincoln Memorial.
And the Smithsonian, I think.
They had an exhibition of Natural History, which included the Native Americans, I remember. Because the Native Americans were just animals, as everyone knows.
My mother was outraged, and spent some time lecturing the museum guards about it. They took it in good part.
I remember the Lincoln Memorial was very impressive.
For some reason it was built via private donations. Never quite figured out why.
(And I'm sort of curious how Columbus thought he got to India, without hitting China first. Maybe his micro-Earth wasn't large enough to hold China. Never looked it up...)
Well, probably a lot of the tiny ones aren't on the map. Unless a ship ran across them. And surely even the few places western cartographers hadn't been able to go, trade with the local cartographers?
Hello, is something bad with my code here? I get no cron error in mail...
#!/bin/bash for dir in /var/www/html/*/; do if pushd "$dir"; then wp plugin update --all --allow-root wp core update --allow-root wp language core update --allow-root wp theme update --all --allow-root rse popd fi done
I thought something is bad because I found two WordPress plugins not updated, but maybe I'm wrong.