Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
jaegerx
Sep 10, 2012

Maybe this post will get me on your ignore list!


You’re gonna need to elaborate. What was the ssh error? Got graphs of the vm usage or preferably sar output. Changing a nic isn’t gonna be any help.

Adbot
ADBOT LOVES YOU

Computer viking
May 30, 2011
Now with less breakage.

Or to be exact, it may theoretically help - I've had weird errors with broadcom nics that cleared up with an Intel replacement. But don't start by throwing hardware at the problem.

RFC2324
Jun 7, 2012

http 418

is there a reasonable way to launch a program in a local X session over SSH? Like, SSH into the server, and run the program, and have it pop up on the server?

I don't generally need to interact with it, I can just kill/restart it, but it crashes alot and I don't want to deal with X forwarding it

xzzy
Mar 5, 2009

You can do it by messing with $DISPLAY on the remote server but you'll have to use xhost in the server's x session to convince it to accept the connection. Once upon a time it was "okay" to run an x server completely open but all distributions close it down now because people got tired of idiots launching a million xeyes on their buddy's workstation (also it was a major vulnerability).

The more modern way to do it would be run the app in a vnc server on the server. But if the app crashes constantly that doesn't buy you much.

RFC2324
Jun 7, 2012

http 418

I was afraid it was too locked down to be practical. ah well

Marinmo
Jan 23, 2005

Prisoner #95H522 Augustus Hill

Marinmo posted:

While I agree with this sentiment (podman being superior to Docker), since it's the late comer to the party - and I'm currently experiencing this firsthand - it's a massive PITA to get to work properly compared to Docker, if you actually want to use the nifty features that podman brings (running rootless mainly, systemd integration secondly). Every single container out there (not really, but a large majority) expects to be run under rootful Docker, Linuxserver.io especially. Combine this with the fact that error logging is slightly ... Subpar, to put it nicely ... Makes for a very long and interesting ride should you attempt it. I'm currently moving over my entire Docker-stack to podman (on Fedora Server, so add in SELinux to the fun mix too!), consisting of the following:

SWAG (moved to Nginx proxy manager + mariadb)
Jellyfin
Rtorrent + flood behind wireguard
ZNC
Authelia

So far Nginx proxy manager and mariadb works flawlessly with systemd services generated and working. Currently struggling with flood and then going to do rtorrent, but looking at objectively it's just a massive, massive headache taking way too much time for what little gains there's to be had. Disabling SELinux would probably lessen the pain somewhat but only ever so slightly - the real problems are the extremely funky permissions issues combined with init systems which break if you even happen to look at 'em funny. If I ever finish I'll do the rest of the world a favour and write a blog about it or something, because things should not have to be this ... Annoying. It isn't even hard: just like a million gotchas in a single process.
To follow up on this, I've finally finalized this little project. I'd like to say I'm done and it's 100 % working as expected, but for now I just cannot be bothered to work out the last kinks (mostly separating into separate users running the containers, running with --userns=keep-id and working out which containers want/need --init - at current all of them have it which is probably a bad idea). I wanted to run everything rootless, but as far as I was able to work out, running rootless and connecting to Wireguard for internet connection (for rtorrent/flood) is not possible since rootless containers doesn't get their own networking interfaces. Those services are therefore run as rootful containers instead utilizing the --user flag in podman. I originally thought to use quadlet for service file generation but that mainly seemed to be an option for rootful containers which was what I was trying to move away from, so I just ran each container manually through podman run until it worked as expected, slapped a -d switch on the command and did podman generate --new --files --name=containername.
I did find a really neat and seamless way of enabling Wireguard for one or many containers, wg-pod. Syntax is dead simple, wg-pod join containername /path/to/wg.conf. You can use the -d switch to delete all other routes in the resulting netns and place it in an ExecStartPost in the service file. Caveat: it requires CAP_NET_ADMIN which means you'll have to fiddle with yet-another-permissions-system-in-Linix, luckily, here's your solution: # setcap cap_net_raw+eip /path/to/wg-pod (usually /usr/local/bin) - do note I'm not a 100 % the i is necessary here but I don't want to mess with it - works for me. If you use the same wg.conf for more than one container, wg-pod will join subsequent containers to the same netns. Just super convenient.
As everything still is a bit of mishmash I really want to hold off on publishing anything about the process, but there's really something to be said for it all, that's for sure.

ExcessBLarg!
Sep 1, 2001

RFC2324 posted:

is there a reasonable way to launch a program in a local X session over SSH?
You want the program to run on the server and have it appear on the X session running on the server (the "X client"?). In that case all you should need to do is set DISPLAY and maybe XAUTHORITY. The xhost issue isn't a problem since it's still all running local to the server.

RFC2324 posted:

I don't generally need to interact with it, I can just kill/restart it, but it crashes alot and I don't want to deal with X forwarding it
Maybe a better solution would be to run it under a supervisor (systemd service?) that's started by the desktop session. That way when it crashes systemd will just restart it for you.

RFC2324
Jun 7, 2012

http 418

ExcessBLarg! posted:

You want the program to run on the server and have it appear on the X session running on the server (the "X client"?). In that case all you should need to do is set DISPLAY and maybe XAUTHORITY. The xhost issue isn't a problem since it's still all running local to the server.

Maybe a better solution would be to run it under a supervisor (systemd service?) that's started by the desktop session. That way when it crashes systemd will just restart it for you.

its not the wholeprogram that crashes. its part of a stack that controls a bluetooth device, and if it receives an instruction while there is no device attached it stops allowing connections.

Long term I plan on setting up handling so that the rest of the stack sees the device disconnect and won't accept commands during that time, but until then I was hoping for a cheap workaround.

Mr Shiny Pants
Nov 12, 2012
I have a weird one, at least I can't figure out why it happens.

I have a Windows install that has a couple of drives, actual physical drives.
One of these drives contains my games.

I also use a KVM VM to which I pass through this exact some drive, so that I can load my games from the drive when I don't want to dualboot. This is just a raw disk mapping, no fancy translation layers.
Now whenever I load the Windows install again, it says that the drive that has been passed trough need checking.

My question: Why does this happen? If I just shutdown the VM in a normal way, NTFS should be in a ok state right? (buffers get flushed, journal is taken care off etc.)

Why would the other Windows install think it isn't in order? How would it know?
I didn't know where to post this, but seeing that KVM is involved I thought I'd try it here first.

Edit: AFAIK the disk does not contain any OS related things, just some folders for Steam and Origin.

Mr Shiny Pants fucked around with this message at 10:54 on Jan 7, 2022

BlankSystemDaemon
Mar 13, 2009




When you say raw device mapping, are you sure it isn't using virtio-blk over something like virtio-scsi?
The first is plain block devices (with all the caching that that entails on Linux), while virtio-scsi is a proper SCSI implementation that fully conforms to the spec.

It's also possible that Windows is just picking up on the controller changing enough that Windows thinks it warrants checking the disk.
I don't know if KVM supports it, but I've found that the AHCI emulation in bhyve on FreeBSD avoids this whenever I've been doing something similar.

Hypnobeard
Sep 15, 2004

Obey the Beard



Odd SSH error:

We have a security compliance scanner that uses SSH public keys to connect to various boxes to run various tasks. When connecting to a specific RHEL 7 box, it completes the key exchange and authenticates successfully, but then immediately after executing a command the connection is dropped.

Jan 7 09:09:24 server sudo: our_user : TTY=pts/1 ; PWD=/home/our_user ; USER=root ; COMMAND=/bin/sh -c printf "command_start_%s" "nOMpQPKf"; netstat -a -n; printf "command_done_%s" "6qNTMuwy"
Jan 7 09:09:24 server sshd[22959]: Read error from remote host 10.1.1.44 port 50620: Connection reset by peer

The user executing the command has the appropriate sudo rights.

Anyone have any idea what could be causing this?

Increasing debug logging doesn't give us anymore insight, unfortunately.

Mr Shiny Pants
Nov 12, 2012

BlankSystemDaemon posted:

When you say raw device mapping, are you sure it isn't using virtio-blk over something like virtio-scsi?
The first is plain block devices (with all the caching that that entails on Linux), while virtio-scsi is a proper SCSI implementation that fully conforms to the spec.

It's also possible that Windows is just picking up on the controller changing enough that Windows thinks it warrants checking the disk.
I don't know if KVM supports it, but I've found that the AHCI emulation in bhyve on FreeBSD avoids this whenever I've been doing something similar.

I wasn't clear, I am sorry. When the disk gets returned from KVM into the non VM Windows install, Windows will complain about the disk. For this install there is no controller changing or anything.

Mr Shiny Pants fucked around with this message at 17:28 on Jan 7, 2022

Pablo Bluth
Sep 7, 2007

I've made a huge mistake.

Hypnobeard posted:

Odd SSH error:

We have a security compliance scanner that uses SSH public keys to connect to various boxes to run various tasks. When connecting to a specific RHEL 7 box, it completes the key exchange and authenticates successfully, but then immediately after executing a command the connection is dropped.

Jan 7 09:09:24 server sudo: our_user : TTY=pts/1 ; PWD=/home/our_user ; USER=root ; COMMAND=/bin/sh -c printf "command_start_%s" "nOMpQPKf"; netstat -a -n; printf "command_done_%s" "6qNTMuwy"
Jan 7 09:09:24 server sshd[22959]: Read error from remote host 10.1.1.44 port 50620: Connection reset by peer

The user executing the command has the appropriate sudo rights.

Anyone have any idea what could be causing this?

Increasing debug logging doesn't give us anymore insight, unfortunately.
As it's redhat, SELinux?

Hypnobeard
Sep 15, 2004

Obey the Beard



Pablo Bluth posted:

As it's redhat, SELinux?

Sorry, should have included: SELinux is (temporarily) disabled.

acetcx
Jul 21, 2011

acetcx posted:

A few days ago I started getting random freezes when gaming on my Fedora 35 system with an nvidia 2070. It sometimes works fine for an hour or two before freezing but sometimes it only take a few minutes. Only the video output freezes - the audio keeps playing and the system is still running so I can kill the offending game.

I did some research and narrowed it down to a GPU crash (nvidia uses "Xid" to denote a GPU crash):

code:
$ sudo journalctl -k -b -1 | grep Xid
Nov 30 19:05:36 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: Class 0x0 Subchannel 0x0 Mismatch
Nov 30 19:05:36 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: ESR 0x4041b0=0x0
Nov 30 19:05:36 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: ESR 0x404000=0x80000002
Nov 30 19:05:36 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=666364, Graphics Exception: ChID 0043, Class 0000c597, Offset 00000000, Data 00000000
Nov 30 20:11:21 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=295461, Channel ID 00000048 intr0 00040000
Nov 30 20:11:21 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=295461, Channel ID 00000048 intr0 00040000
Nov 30 20:15:12 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: Class 0x0 Subchannel 0x0 Mismatch
Nov 30 20:15:12 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: ESR 0x4041b0=0x0
Nov 30 20:15:12 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: ESR 0x404000=0x80000002
Nov 30 20:15:12 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=11722, Graphics Exception: ChID 000b, Class 0000c597, Offset 00000000, Data 00000000
Nov 30 20:27:59 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=10782, Channel ID 00000020 intr0 00040000
Nov 30 20:27:59 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=10782, Channel ID 00000020 intr0 00040000
Nov 30 20:37:20 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=11722, Channel ID 0000000b intr0 00040000
Nov 30 20:37:20 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=11722, Channel ID 0000000b intr0 00040000
Nov 30 20:41:20 pc kernel: NVRM: Xid (PCI:0000:08:00): 69, pid=11722, Class Error: ChId 000b, Class 0000c597, Offset 0000121c, Data 43ac6881, ErrorCode 0000000c
Nov 30 20:43:46 pc kernel: NVRM: Xid (PCI:0000:08:00): 70, pid=11722, CCMDs 0000000d 0000c5b5
Nov 30 20:45:05 pc kernel: NVRM: Xid (PCI:0000:08:00): 69, pid=11722, Class Error: ChId 000b, Class 0000c597, Offset 00001b0c, Data 6300f010, ErrorCode 0000000c
Nov 30 20:46:45 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=11722, Channel ID 0000000b intr0 00040000
Nov 30 20:46:45 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=11722, Channel ID 0000000b intr0 00040000
Nov 30 20:51:57 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: Class 0x0 Subchannel 0x0 Mismatch
Nov 30 20:51:57 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: ESR 0x4041b0=0x0
Nov 30 20:51:57 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: ESR 0x404000=0x80000002
Nov 30 20:51:57 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=11722, Graphics Exception: ChID 000b, Class 0000c597, Offset 00000000, Data 00000000
Nov 30 20:53:59 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=11722, Channel ID 0000000b intr0 00040000
Nov 30 20:53:59 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=11722, Channel ID 0000000b intr0 00040000
Nov 30 20:54:51 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: Class 0x0 Subchannel 0x0 Mismatch
Nov 30 20:54:51 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: ESR 0x4041b0=0x0
Nov 30 20:54:51 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: ESR 0x404000=0x80000002
Nov 30 20:54:51 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=11722, Graphics Exception: ChID 000b, Class 0000c597, Offset 00000100, Data deaddead
Nov 30 21:06:10 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=11722, Channel ID 0000000c intr0 00040000
Nov 30 21:06:10 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=11722, Channel ID 0000000c intr0 00040000
Nov 30 21:16:31 pc kernel: NVRM: Xid (PCI:0000:08:00): 69, pid=11722, Class Error: ChId 000b, Class 0000c597, Offset 000017d8, Data 42000001, ErrorCode 0000000c
Nov 30 21:16:48 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: Class 0x0 Subchannel 0x0 Mismatch
Nov 30 21:16:48 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: ESR 0x4041b0=0x0
Nov 30 21:16:48 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: ESR 0x404000=0x80000002
Nov 30 21:16:48 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=668431, Graphics Exception: ChID 0054, Class 0000c597, Offset 00000000, Data 00000000
Nov 30 21:22:27 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: Class 0x0 Subchannel 0x0 Mismatch
Nov 30 21:22:27 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: ESR 0x4041b0=0x0
Nov 30 21:22:27 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: ESR 0x404000=0x80000002
Nov 30 21:22:27 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=11722, Graphics Exception: ChID 000b, Class 0000c597, Offset 00000000, Data 00000000
Nov 30 21:23:29 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=11722, Channel ID 0000000b intr0 00040000
Nov 30 21:23:29 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=11722, Channel ID 0000000b intr0 00040000
Nov 30 21:24:54 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=11722, Channel ID 0000000b intr0 00040000
Nov 30 21:24:54 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=11722, Channel ID 0000000b intr0 00040000
Nov 30 21:25:22 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=676060, Channel ID 00000054 intr0 00040000
Nov 30 21:25:22 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=676060, Channel ID 00000054 intr0 00040000
Nov 30 21:25:59 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=11722, Channel ID 0000000b intr0 00040000
Nov 30 21:25:59 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=11722, Channel ID 0000000b intr0 00040000
Nov 30 21:35:19 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: Class 0x0 Subchannel 0x0 Mismatch
Nov 30 21:35:19 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: ESR 0x4041b0=0x0
Nov 30 21:35:19 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=10068, Graphics Exception: ESR 0x404000=0x80000002
Nov 30 21:35:19 pc kernel: NVRM: Xid (PCI:0000:08:00): 13, pid=677434, Graphics Exception: ChID 0043, Class 0000c597, Offset 00000000, Data 00000000

$ sudo journalctl -k | grep Xid
Dec 02 18:28:28 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=51065, Channel ID 0000004e intr0 00040000
Dec 02 18:28:28 pc kernel: NVRM: Xid (PCI:0000:08:00): 32, pid=51065, Channel ID 0000004e intr0 00040000
The GPU has been working fine for a few years now so I doubt it's hardware related. I think it coincides with a system update picking up the new 495.44 driver. Here's the info for the nvidia driver in the last 3 kernels I installed:

code:
$ modinfo /lib/modules/5.14.18-200.fc34.x86_64/extra/nvidia/nvidia.ko 
filename:       /lib/modules/5.14.18-200.fc34.x86_64/extra/nvidia/nvidia.ko
firmware:       nvidia/470.74/gsp.bin
alias:          char-major-195-*
version:        470.74

$ modinfo /lib/modules/5.14.18-300.fc35.x86_64/extra/nvidia/nvidia.ko 
filename:       /lib/modules/5.14.18-300.fc35.x86_64/extra/nvidia/nvidia.ko
firmware:       nvidia/495.44/gsp.bin
alias:          char-major-195-*
version:        495.44

$ modinfo nvidia
filename:       /lib/modules/5.15.5-200.fc35.x86_64/extra/nvidia/nvidia.ko
firmware:       nvidia/495.44/gsp.bin
alias:          char-major-195-*
version:        495.44
I've only gotten GPU crashes on the last 2 boots and prior to that it was using 470.74.

Is there anything I can do about this other than revert to a previous kernel? I'd love to pickup an AMD card so I don't have to deal with nividia's lovely drivers but that's not happening in this market.

If I have to revert can I force it to keep a certain kernel around forever so the next time I update it doesn't wipe out my last known good kernel?

Just as a follow up I'm pretty sure this was a hardware problem due to a DOCP overclock on the system memory. I forgot that I upgraded my RAM a few weeks before this started happening and I must not have played any games during that period. I had configured a DOCP overclock (from 2133 MT/s to 3200 MT/s) in the BIOS when I installed it figuring it would be safe enough. A few days ago I managed to get my hands on an AMD card and even with the new card the crashes continued so of course I stopped suspecting the nvidia driver. Some googling led me to a report somewhere that memory overclocks can cause GPU crashes. I've since turned off the overclock and it seems stable after a couple hours of gaming.

Lesson learned, I thought XMP/DOCP overclocks were safe but apparently not always.

Kirov
May 4, 2006

Hypnobeard posted:

We have a security compliance scanner that uses SSH public keys to connect to various boxes to run various tasks. When connecting to a specific RHEL 7 box, it completes the key exchange and authenticates successfully, but then immediately after executing a command the connection is dropped.

Jan 7 09:09:24 server sudo: our_user : TTY=pts/1 ; PWD=/home/our_user ; USER=root ; COMMAND=/bin/sh -c printf "command_start_%s" "nOMpQPKf"; netstat -a -n; printf "command_done_%s" "6qNTMuwy"
Jan 7 09:09:24 server sshd[22959]: Read error from remote host 10.1.1.44 port 50620: Connection reset by peer

The user executing the command has the appropriate sudo rights.

Anyone have any idea what could be causing this?
Just a guess, but does the box have net-tools rpm that provides netstat installed? I have seen similar weird symptoms relating to missing dependencies, and one case was caused by non-posix compliant awk (mawk vs gawk IIRC).

Pablo Bluth
Sep 7, 2007

I've made a huge mistake.

Hypnobeard posted:

Sorry, should have included: SELinux is (temporarily) disabled.
If you run the command via physical access it works without error?
Does a plain ssh execution sans command opens a stable connection?
..what if you then manually run the same command?

jaegerx
Sep 10, 2012

Maybe this post will get me on your ignore list!


Through some vvvvs on it. You’ll figure it out

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

I have an interview for a Linux job coming up at one of the big cloud providers.

What would you suggest I be studying? I have been using Linux in some capacity for a long time and I didn't have any problems with the technical assessments or the first interview. But these will be more in-person/virtual and less multiple-choice type stuff, and I'm sure I'll get drug into deeper waters of some things I'm not that familiar with.

I know your basic LAMP stacks, troubleshooting, processes, how to read poo poo like top and and figure out if bottlenecks are in disk/cpu/memory, pretty good understanding of firewalls and dns/dhcp/http, have done a bunch of programming languages and can build crap from source and figure out those errors...

I started this process in the midst of studying for RHCSA, which I feel pretty comfortable with but that's basically some memorization and zero real-world knowledge. My plan right now is just to binge on Linux-related YouTube videos. I just feel like I'm going to get marked down for not knowing some arcane command line option for something or some stupid file location.

Now that I think about it, I haven't installed Arch in a few years...

Methanar
Sep 26, 2013

by the sex ghost

Bob Morales posted:

I have an interview for a Linux job coming up at one of the big cloud providers.

What would you suggest I be studying? I have been using Linux in some capacity for a long time and I didn't have any problems with the technical assessments or the first interview. But these will be more in-person/virtual and less multiple-choice type stuff, and I'm sure I'll get drug into deeper waters of some things I'm not that familiar with.

I know your basic LAMP stacks, troubleshooting, processes, how to read poo poo like top and and figure out if bottlenecks are in disk/cpu/memory, pretty good understanding of firewalls and dns/dhcp/http, have done a bunch of programming languages and can build crap from source and figure out those errors...

I started this process in the midst of studying for RHCSA, which I feel pretty comfortable with but that's basically some memorization and zero real-world knowledge. My plan right now is just to binge on Linux-related YouTube videos. I just feel like I'm going to get marked down for not knowing some arcane command line option for something or some stupid file location.

Now that I think about it, I haven't installed Arch in a few years...

Post job description

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

Methanar posted:

Post job description

BASIC QUALIFICATIONS
The Linux role supports our services that focus on compute technologies. In this role, you will support AWS Services including EC2, EBS, LightSail and the services that enable customers to migrate their workloads to AWS. As well as supporting our customers, you will be leading operational improvement initiatives, an acting as the voice of the customer to internal teams across AWS.

· Advanced experience with System Administration with Linux (Ubuntu, CentOS, RedHat)
· Advanced of experience with Networking and troubleshooting (TCP/IP, DNS, routing, switching, firewalls, LAN/WAN, traceroute, iperf, dig, cURL or related).
· In-depth understanding of virtualization and cloud computing (Hypervisors, VMware, Xen).
· Bachelor’s degree in Information Science / Information Technology, Data Science, Computer Science, Engineering, Mathematics, Physics, or a related field OR equivalent experience in a technical position

PREFERRED QUALIFICATIONS
· Experience managing full application stacks from the OS up through custom applications
· Knowledge of AWS and Cloud Computing concepts
· Good understanding of security best practices.
· Good understanding of distributed computing environments and methodologies.
· Advanced degree in Computer Science or a related field.

jaegerx
Sep 10, 2012

Maybe this post will get me on your ignore list!


Kinda amazed aws wants iperf knowledge. That’ll just show problems in their network.

Yaoi Gagarin
Feb 20, 2014

Bob Morales posted:

BASIC QUALIFICATIONS
The Linux role supports our services that focus on compute technologies. In this role, you will support AWS Services including EC2, EBS, LightSail and the services that enable customers to migrate their workloads to AWS. As well as supporting our customers, you will be leading operational improvement initiatives, an acting as the voice of the customer to internal teams across AWS.

· Advanced experience with System Administration with Linux (Ubuntu, CentOS, RedHat)
· Advanced of experience with Networking and troubleshooting (TCP/IP, DNS, routing, switching, firewalls, LAN/WAN, traceroute, iperf, dig, cURL or related).
· In-depth understanding of virtualization and cloud computing (Hypervisors, VMware, Xen).
· Bachelor’s degree in Information Science / Information Technology, Data Science, Computer Science, Engineering, Mathematics, Physics, or a related field OR equivalent experience in a technical position

PREFERRED QUALIFICATIONS
· Experience managing full application stacks from the OS up through custom applications
· Knowledge of AWS and Cloud Computing concepts
· Good understanding of security best practices.
· Good understanding of distributed computing environments and methodologies.
· Advanced degree in Computer Science or a related field.


Brush up on whichever part of this you're weakest on. And try hosting an entire stack on AWS and seeing what the pain points are so you can talk about them.

Major Ryan
May 11, 2008

Completely blank

Hypnobeard posted:

Odd SSH error:

Anyone have any idea what could be causing this?

Do you have Defaults requiretty in your /etc/sudoers or related config? RHEL/CentOS can get picky about what it requires from non-interactive logins and this might need to be tweaked.

IIRC correctly it’s sort of outdated security advice anyway, so may well be something you can just remove.

other people
Jun 27, 2004
Associate Christ
Installing arch is pretty useless if they expect experience with Ubuntu, CentOS, RedHat

Computer viking
May 30, 2011
Now with less breakage.

other people posted:

Installing arch is pretty useless if they expect experience with Ubuntu, CentOS, RedHat

It's not especially useful if they have concrete practical questions, I agree. On the other hand, if he's going to a more general "are you the right sort of person" interview, I guess it could count positively? Showing interest in the greater Linux ecosystem and an ability to adapt to different ways to get to the same end result, and all that.

ExcessBLarg!
Sep 1, 2001

jaegerx posted:

Kinda amazed aws wants iperf knowledge. That’ll just show problems in their network.
Well you need to know where the problem lies so can yell at the correct entity. Surprisingly, some networks are worse than AWS.

WattsvilleBlues
Jan 25, 2005

Every demon wants his pound of flesh
Hi goons, I've recently started to muck around with Linux distros on a few laptops. One of them I currently have Ubuntu DDE running. My problem is that I want to install another distro but my BIOS must be corrupt, as it doesn't let me change the boot order. I can get around this by opening up the laptop and deleting the partitions, but is there a way I can get the machine to reboot and pick up the USB install media?

ExcessBLarg!
Sep 1, 2001
UEFI? Can you enable and boot to the EFI shell?

You can also try to use efibootmgr to reorder or remove boot entries from the NVRAM.

WattsvilleBlues
Jan 25, 2005

Every demon wants his pound of flesh

ExcessBLarg! posted:

UEFI? Can you enable and boot to the EFI shell?

You can also try to use efibootmgr to reorder or remove boot entries from the NVRAM.

I should have made myself more clear - I'm loving clueless about lots of this poo poo, I'm out of my Windows comfort zone.

I don't know what any of that means!

Edit: OK I've installed the efibootmgr thing - is there a GUI version of this??

Edit 2: Right, I've gone through the instructions for changing the boot sequence. Running efibootmgr once I've done my edits shows the USB is the first boot entry, but when I restart the machine it just seems to boot straight from the SSD again. Running efibootmgr after a restart shows that the boot order has reverted. Am I missing a step?

WattsvilleBlues fucked around with this message at 00:39 on Jan 11, 2022

ExcessBLarg!
Sep 1, 2001
It should all work that way but BIOSes are weird.

Regarding the EFI Shell, it's usually an option to turn on in your BIOS configuration. You may have to disable Secure Boot first to see it.

The EFI shell is a command prompt in your BIOS. If you're able to access it you can tell EFI exactly what to boot. Usually USB media will be something like:

FS0:EFI\BOOT\BOOTX64.EFI
FS1:EFI\BOOT\BOOTX64.EFI

and so on.

CaptainSarcastic
Jul 6, 2013



WattsvilleBlues posted:

I should have made myself more clear - I'm loving clueless about lots of this poo poo, I'm out of my Windows comfort zone.

I don't know what any of that means!

Edit: OK I've installed the efibootmgr thing - is there a GUI version of this??

Edit 2: Right, I've gone through the instructions for changing the boot sequence. Running efibootmgr once I've done my edits shows the USB is the first boot entry, but when I restart the machine it just seems to boot straight from the SSD again. Running efibootmgr after a restart shows that the boot order has reverted. Am I missing a step?

Can you get into the BIOS on your laptop? It's usually something like tapping Delete or sometimes a function key to access before the OS boots. If you're not sure and you're not getting a splash screen when you restart then just searching on your laptop model and something like BIOS access key should give it to you.

Computer viking
May 30, 2011
Now with less breakage.

Also, which laptop? Laptop BIOSes are notoriously weird and fickle, so there may be some specific options or workarounds needed.

VictualSquid
Feb 29, 2012

Gently enveloping the target with indiscriminate love.
Even if you can't get into the bios, there might be a separate boot order menu. It usually is at f8 or or f11 or f12 and on my lenovo laptop it is behind a hardware button that needs a paperclip to reach.
And I once used a computer with a corrupt bios for quite some time, it only lost the settings when I turned off the computer but kept settings for software reboots.

There also should be a way to chainload your usb-stick from whatever boot manager you current distro uses, but I never worked with that one.

Combat Pretzel
Jun 23, 2004

No, seriously... what kurds?!
Anyone happens to know what's the deal with Samba and RDMA support (i.e. SMB Direct)? I'm looking it up like every so often, and it's still not implemented, yet I just ran across references of prototype code in 2014 of all things. Meanwhile, someone else comes along, casually shits out a kernel SMB driver than happens to support it just like that. And meanwhile Samba only updated the implementation plan/document again in October 2021.

BlankSystemDaemon
Mar 13, 2009




I'm pretty sure the prototype code was found to be tainted (ie. the coder admitted to looking at leaked Microsoft code).
It's much the same problem that the BSDs have if they want to avoid GPL code.

meatpath
Feb 13, 2003

I am running KDE Neon on an XPS 13 9370. I have a POD Go (https://line6.com/podgo/) which is a guitar amp/effect modeler, but also acts as a class compliant USB audio interface. I am able to plug it in and record through my DAW (Bitwig) with ease, little to no configuration needed. What I cannot figure out how to do, though, is output audio from my laptop (Firefox audio, specifically) to the POD so that I can listen to what's playing in my browser at the same time I am playing guitar. Headphones are plugged into the POD.

Oddly, if I record audio into a track in Bitwig, then I am able to play that track back simultaneously while playing and recording new audio on top of it. Bitwig seems to know how to output audio through the interface just fine, but I have no idea how to do this at the desktop level so I can push browser audio through. I have a hunch the answer is either "not possible" or "use jack," which is really intimidating.

edit: I've discovered that using a Focusrite 2i2 can do this the way I need it to, without much fuss. I guess the issue is with the POD itself.

meatpath fucked around with this message at 23:10 on Jan 14, 2022

RFC2324
Jun 7, 2012

http 418

random question thats always bugged me: why are symlink standard practice and not multiple hard links? is it just because its a pain in the rear end to make sure data is really deleted with a hard link, or is there some other reason?

Computer viking
May 30, 2011
Now with less breakage.

RFC2324 posted:

random question thats always bugged me: why are symlink standard practice and not multiple hard links? is it just because its a pain in the rear end to make sure data is really deleted with a hard link, or is there some other reason?

At a guess:
Hardlinks are implemented by the file system, so they can't point across mount boundaries - and not all filesystems support them. Softlinks are way more likely to succeed.

Adbot
ADBOT LOVES YOU

xzzy
Mar 5, 2009

Hard links can't cross file systems and look like normal files (you have to check the link counts to spot them) so they confuse un-observant admins.

The mantra of not using them kinda got cargo culted.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply