Skip to content

u/ryanjkirk

In this archive from Jul 2009 to Oct 2020

1
posts
31
comments
1
media
327
score

stability of LTS and point release software is a myth

This is observably false.

It's not about the number of bugs, it's which bugs. There may be 1,000 bugs that don't affect me in one version. There may be only 900 in the next, but one of those might be a new one that affects my setup. There are always new bugs. You don't continuously test everything against every new version, you test at discrete checkpoints along the way.

12 points

Fedora runs perfectly on my MBP. I like how they've styled Gnome 3 (I much prefer blue to Ubuntu's orange) and it looks great with the adwaita-dark theme you can get in gnome-tweaks. I dual-boot with MacOS but most of time I just let it boot into Fedora which it does by default. I know you can tweak everything including the colors, but I'm long past the ricer days (gentoo was my choice back then) and Fedora is just an easy out-of-the-box experience. I'm playing with Void for fun but that's because I like its old-school UNIX philosophy, not because it's easy to use straightaway.

I've never used Arch or any of its derivatives. I still see it as the new kid on the block and with Fedora and Ubuntu being such great desktop distros, I've never seen the need to try it. I manage linux servers for a living and we're a CentOS shop so I would much rather stay in the RHEL ecosystem and get familiar with the new features, such as stratis, which was available on Fedora before it was released in el8.

2 points

You get out-of-the-box ZFS on Ubuntu as well. Most desktop users have no use for ZFS, however. And running linux binaries on a BSD isn't 100% for 32-bit, which he said he did want to play Steam games. In practice, running Ubuntu is going to be easier than a BSD, which is going to be more tinkerer-oriented.

1 points

I suspect you're trying to make some kind of "look how systemd has broken things"

If I was trying to do that, I would have done so.

I aired a notable exception to the OP in linuxquestions that is a major gotcha that you weren't explicit about.

There have always been exceptions

Right, so nobody should ever mention any?

I expanded the scope of the answer in an attempt to be helpful and save someone some time. It was a "yes, and"; not a contradiction. No need to get defensive about it.

2 points

For one, because your statement "any particular process" isn't completely true.

And secondly, for a long time, we all depended on limits.conf for system services as well, as SysV and even upstart utilized PAM. The new behavior is a notable exception to the rule that a lot of us have banged our head against before realizing what was going on, so it's useful information for anyone asking.

0 points

Here's a process I came up with that worked on centos6 to migrate servers from individual partitions to lvm:

pre-steps:

1/ attach new disk to server

2/ create vg, lvs and filesystems

3/ mount new filesystems and chroot into them:

.

mount /dev/vg01/root /mnt/root
for vol in `ls /dev/vg01 | egrep -v "swap|root"`; do
    mkdir -p /mnt/root/$vol
    mount /dev/vg01/$vol /mnt/root/$vol
done

4/ run initial rsync:

.

rsync -avx --delete --exclude /mnt --exclude /proc --exclude /sys --exclude /dev / /mnt/root/
for fs in home usr var boot; do
    echo "### rsync --delete -avx /$fs/ /mnt/root/$fs/"
    rsync -avx --delete /$fs/ /mnt/root/$fs/
done

5/ create chroot:

.

mount --bind /dev/ /mnt/root/dev/
mount -t proc /proc /mnt/root/proc
mount -t sysfs /sys /mnt/root/sys
chroot /mnt/root

6/ in chroot: edit fstab to boot from, and mount, new lvm filesystems

7/ in chroot: create new initramfs to support lvm (include dm_mod)

8/ in chroot: install and configure grub on sdb to be (hd0) (edit device.map to remove "sda")

9/ edit grub.conf (menu.lst) on with updated lvm and root parameters

maintenance steps:

1/ stop all services

2/ run final rsync (note now we exclude /boot and fstab):

.

rsync -avx --delete --exclude /mnt --exclude /proc --exclude /sys --exclude /dev --exclude /etc/fstab / /mnt/root/
for fs in home usr var backup; do
    echo "### rsync --delete -avx /$fs/ /mnt/root/$fs/"
    rsync -avx --delete /$fs/ /mnt/root/$fs/
done

3/ shut down server

4/ detach the old disk

5/ move "sdb" to SCSI 0:0 slot, so appears as (hd0) to grub

6/ power up server

2 points

Sorry, I wasn't clear. But this is a red herring and Yoast is barking up the wrong tree. The problem in his example is a published link to an IP address without rel=nofollow, thus indexed by google. That's a twitter screw-up, not a flaw in the semantic web.

The real solution to this is that internally, URLs should be relative for portability, then the CMS should build and output all URLs as absolute. This is exactly what wp does, by the way. Why hardcode something when the CMS can build it for you? Have your cake and eat it too. All my site posts, pages, and widgets have relative URL's only, but wp is nice enough to always output full absolute URL's. I just wish Wordpress did use the HOST header to build full absolute URLs, instead of what I put in the setting I mentioned above, to make sites even more portable.

In fact, hardcoding all absolute URL's is wrong not just on a technical level, but on the spec level too. The html base tag hasn't changed in html5 and thus even if you can't output all absolute URL's in the CMS, the spec dictates that the browser builds them, like Yoast mentioned, only less accidentally and more intentionally than he makes it sound, because you know, it's part of the spec. You just need to ensure your domain and IP is being indexed properly via robots.txt and inbound links are to the correct domain.

1 points

The problem likes with Wordpress. It's the only major CMS that I know of that cares about it's URL, and doesn't try to enforce relative URL's everywhere (some of this is the fault of certain plugins/widgets, but you could argue that the development guidelines and expectation for using relative URL's in the wp community just isn't there).

I'm the world's smallest Joomla fan, but at least you can move a site anywhere, to any directory (ideally to /oldsite) or any other server, and it will continue to work at that location, without having to deal with any search/replace (unless of course a user carelessly inserts an absolute URL). There's just no reason for Wordpress to care. I asked Matt Mullenweg on Hacker News once and he seemed surprised by the idea and said he would have to look into it. That was years ago. I suspect the problem is some legacy code that would be too difficult to change -- WP's internal code is supposedly in pretty messy shape.

3 points

That looks like a nice script. However, it shouldn't be necessary if relative URL's are used everywhere. If it's a new site the designer created from scratch and ensured links to other posts/pages are relative, then the only changes that need to be made are wp-config.php and then in Settings > General > Site Address (URL).

One thing that should be noted is that you want MySQL to be on the same version or you'll run into quirks. Staging and production servers should be identical.

1 points

Everything here: http://codex.wordpress.org/Hardening_WordPress

Plus the following:

  • The domain that hosts /wp-admin should have its own public IP and valid SSL cert, so that you never log in over plain http, and always administer over SSL.
  • Install Semisecure Login Reimagined if you can't do that, for some reason.
  • Run your own VPS with a secure provider instead of using shared hosting.
  • Follow @wordpress to keep aware of updates and security issues (they post about plugin vulnerabilities as well).
  • Move wp-login.php somewhere else with this plugin.
  • Add http auth to wp-login.php.
  • Use Login Lockdown to block brute force attempts.
2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.