luthis

joined 2 years ago
[–] luthis@lemmy.nz 1 points 1 year ago (1 children)

centering the mouse on the game

Maybe I'm missing something, but.. why is this a problem? You can just like, move the mouse to where you want it?

I can't replicate this issue on mine. I recently somehow broke Gnome (again) during an update, so I finally went back to a tiling WM (awesome this time). I start the game in a separate desktop, and then when I need to do things outside of the game, I just change to another desktop using the keyboard shortcuts. Pretty sure this is possible in all WM/DEs on Linux.

[–] luthis@lemmy.nz 6 points 1 year ago

Apple will make you pay for anything apparently

[–] luthis@lemmy.nz 14 points 1 year ago

Ah thanks, that's my problem, it's me.

[–] luthis@lemmy.nz 1 points 1 year ago

Oh boy....

Total Download Size: 3390.65 MiB Total Installed Size: 13052.08 MiB Net Upgrade Size: 291.24 MiB

I wonder if I'm going to notice any better performance..

[–] luthis@lemmy.nz 1 points 1 year ago

holy shit!!! I'm definitely doing that!

[–] luthis@lemmy.nz 10 points 1 year ago (10 children)

Just reconfigured /etc/makepkg.conf to use extra cores and tmpfs.. I've been compiling on the SSD with one core for so long it's embarrassing.

[–] luthis@lemmy.nz 3 points 1 year ago

If kids that young want anti-aging products, give them nappies.

[–] luthis@lemmy.nz 6 points 1 year ago

Toy Story 5

There's a Toy Story 5?? I haven't even seen the third one yet. Or any of the other ones you mentioned..

[–] luthis@lemmy.nz 18 points 1 year ago (3 children)

In three years, 90% of animated films are going to be generic crap churned out for a quick buck.

[–] luthis@lemmy.nz 8 points 2 years ago

That's what my taxes are for. I rarely pay more than $5 for medication, if anything. I also pay significantly less in taxes than US citizens and have less potholes in the roads.

[–] luthis@lemmy.nz 6 points 2 years ago (5 children)

As a side note, dealing with adding repos and keys and all that is something I will never miss from apt. I use Arch and installing things is usually as simple as.. well let me check.

$ yay mullvad
...
2 aur/mullvad-vpn-bin 2023.6-1 (+86 1.36) 
    The Mullvad VPN client app for desktop
1 aur/mullvad-vpn 2023.6-1 (+126 2.10) 
    The Mullvad VPN client app for desktop
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> _

And it's option 1. So easy. Type 1 and press enter and you're done.

 

Someone tell me if there is a better way to do this, but I don't see how.

I needed a way to see which services I have enabled that I have manually stopped.

There oddly isn't a way to do this in one command, so I had to take the output of list-unit-files 'enabled', and use that to filter for 'list-units'. The command is here:

alias sysstop='systemctl list-units --state=failed,dead,exited $( systemctl list-unit-files --state=enabled --type=service | awk "/.*\.service/ {print }" )'

So now I can remember that I need to restart mariadb and nginx at some point:

$ sysstop
  UNIT                                 LOAD   ACTIVE   SUB    DESCRIPTION                                             
  blueman-mechanism.service            loaded inactive dead   Bluetooth management mechanism
  mariadb.service                      loaded inactive dead   MariaDB 11.2.2 database server
  NetworkManager-wait-online.service   loaded active   exited Network Manager Wait Online
  nginx.service                        loaded inactive dead   A high performance web server and a reverse proxy server
  systemd-homed-activate.service       loaded active   exited Home Area Activation
  systemd-networkd-wait-online.service loaded active   exited Wait for Network to be Configured

My other aliases are here, in case anyone finds these helpful. I use them frequently myself.

alias sysdis='systemctl list-unit-files --type=service --state=disabled'
alias sysdisuser='systemctl list-unit-files --type=service --state=disabled --user'
alias sysen='systemctl list-unit-files --type=service --state=enabled'
alias sysenuser='systemctl list-unit-files --type=service --state=enabled --user'
alias sysfail='systemctl list-units --type=service --state=failed'
alias sysrun='systemctl list-units --type=service --state=running'
alias sysrunuser='systemctl list-units --type=service --state=running --user'
alias sysstatic='systemctl list-units --type=service --state=static'
 

Just having a play around, this turned out to be not as clear cut as expected.

so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it's not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.)

I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there's the 'hello world'... except no.

What am I missing here? Drive isn't encrypted, nothing silly like that.

Ok, I managed to do it with dd:

sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096

hello

but why can I not find it using wxhexeditor??

EDIT:

Duh, I didn't click that offset needed to be multiplied by the block size.

If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents:

Final conclusion:

After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location.

I created a new file, it received inode 21, but the offset was smaller than inode 19.

Was that a good use of 3 hours of my life? Well... I still have no idea what's up with the Kardashians, so.. I guess?

 

From homectl:

Home directories managed by systemd-homed.service are usually in one of two states, ... when "active" they are unlocked and mounted, and thus accessible to the system and its programs; ... Activation happens automatically at login of the user

What does 'login' mean? For example, I created a user and tried to su -l test, but I got: cannot change directory to /home/test.

What is required to 'activate' a homed directory if not a login shell?

 

I solved this problem for myself yesterday and couldn't find the answer anywhere online (clearly stated), so here's what I did.

This also works for Plex, games, etc it's policy based routing so you can have your VPN and remote access at the same time.

This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you're serving.

This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn't go back out through the VPN.

I used this page to figure out how to do this:

http://linux-ip.net/html/tools-ip-rule.html

Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP

sudo ip route add default via 192.168.19.1 table 10

Add a rule for the return traffic from your ssh host

sudo ip rule add sport 22 table 10

sudo ip route flush cache

check out your fancy new rule

ip rule show

And to make this persistent across reboots, add to:

/etc/systemd/network/20-wired.network

(or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)

[Route]
Gateway=192.168.19.1
Table=10

[RoutingPolicyRule]
SourcePort=22
Table=10
 

Will we all be fucked or is there a Linus 2?

 

Is anyone able to point me in the right direction to solve this issue please?

I installed the nvidia-beta drivers (Arch) and tested out Starfield. All is good. Then next time I try to startx, I get X failed to start etc.

Following the logs I get to:

` [ 1711.739] (II) NVIDIA dlloader X Driver 545.23.06 Sun Oct 15 17:26:55 UTC 2023

...

[ 1711.740] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the

[ 1711.740] (EE) NVIDIA: system's kernel log for additional error messages and

[ 1711.740] (EE) NVIDIA: consult the NVIDIA README for details.

`

Wierd. Install nvidia instead, y to remove conflicts/nvidia-utils etc, and it's all working. Try to install beta drivers again, same issue, rebooted, etc.

The beta drivers definitely did work. But now they magically aren't.

Any tips?

I did try running sudo mkinitcpio -P but no change.

 

Great narration, audio, music, animation...

Curl up with a blanket and a flu for 4 hours!

 

Just tested on Arch, installed nvidia-beta

Was using GE-Proton8-17

Got to the first open area. No missing textures, graphical glitches, nada. Seems to be running well, but didn't have FPS counter visible to see.

 

Discovered recently that Electric Wizard were kinda dicks back in the day. "At the time, we were pretty bad people. I got arrested for arson of a car, outside a police station. Tim [Bagshaw] went to nick a crucifix off a church roof so we could use it onstage..."

R. L. Burnside killed a man "possibly at a craps game."

Varg of ~~Mayhem~~ Burzum burned a couple churches and killed a bandmate.

I could list other examples, but would like to hear from other people and other music genres.

 

I have to post this on my phone

Logged out, logged in again, cannot get web pages. Can ping to ips, cannot resolve names with ping. Can resolve names with nslookup. Browsing doesn't work obviously but I can get to remote ips like repo locations.

???

REALLY seems like DNS but DNS is working with nslookup and I can change the nameserver in etc/resolv.conf and see nslookup using different nameserver but still no dice when using ping/browser

Any ideas??

 

Just to clarify, I'm talking about thousands of torrents across hundreds of different directories.

view more: ‹ prev next ›