Skip to content

u/enory

In this archive from Nov 2015 to Dec 2024

46
posts
45
comments
0
media
469
score
2 saved before deletion

xcape is amazing--it's popular for those who use ESC a lot in order to bind ESC to something more comfortable (e.g. Caps Lock key), e.g. vim users; or for those use Ctrl a lot, e.g. emacs users. My setting

xcape -t 500 -e 'Caps_Lock=Escape;Shift_L=XF86iTouch'

means if CAPS_LOCK is tapped (i.e. pressed on its own and released in <= 500 ms, then it will will act as ESC. Otherwise, or if it's used in conjunction with other keys (i.e. it's used as a modifier), then it will act as the CTRL modifier. This means I can use CAPS_LOCK as ESC but also use it as CTRL when pressed with other keys. The Caps Lock key is so comfortable to press with using left pinky and not only makes using ESC easier but also CTRL, since pressing Caps Lock is easier than even left Ctrl. Shift_L binds to a hardly-used function XF86iTouch so I can have Emacs use this function as a modifier instead of shift. The advantage of this over binding shift is that I can bind Shift_R to something else in the future as only Shift_L is used as a modifier and not both--still testing this one though and is Emacs-specific for now.

The second setxkbd option -option 'shift:both_capslock' means if I press both left shift and right shift together at the same time, it will trigger Caps Lock, which was lost because I had used xcape to modify the key. Therefore, the combination of these xcape and setxkbd settings mean I don't lose out on anything in terms of bindings or functionality but gain a whole ton in terms of convenience and usability.

1 points

I actually found I didn't have issues with my external keyboard during boot--I guess drivers were builtin to the kernel or it didn't need any drivers.

Do you use xcape? I'm not sure if its settings (and xset's settings) can be built into a custom keymap. If not, I might as well make a script that includes all the xset/setxkbdmap/xmodmap/xcape settings and either run it manually when I plug in the external keyboard or if possible, set it up using a hook or something.

1 points

I actually found I didn't have issues with my external keyboard during boot--I guess drivers were builtin to the kernel or it didn't need any drivers.

Do you use xcape? I'm not sure if its settings (and xset's settings) can be built into a custom keymap. If not, I might as well make a script that includes all the xset/setxkbdmap/xmodmap/xcape settings and either run it manually when I plug in the external keyboard or if possible, set it up using a hook or something.

1 points

Have you looked into btrfs at all? I'm curious what the differences are as it seems to be the "new big thing" and offers features similar to btrfs. As a noob, I just jumped to using btrfs as sort of "future-proof" but I read this about RAID 1 on btrfs. Apparently, if a disk fails in an array of 2 disks, then data that is written to the other disk is read-only and unmountable. This kind of behavior is very bizarre and there are other quirks like this which I do not fully understand, and the fact that RAID5/RAID6 is still considered broken.

As a result, it seems like the (only?) alternative is zfs but it's not "officially" supported on Arch.

P.S. The boot environments concent is cool. I've heard you can set GRUB bootloader to boot into a selected snapshot (at least for btrfs) but I don't use GRUB.

1 points

Thanks, this actually works and exactly what I needed! Instead of needing to create ~/.ssh/control just for this function, I changed the path to /tmp/%u@%n.socket. I saw in /tmp there's another socket called keepassxc-enory.socket so I just followed that naming scheme and location. Unless there are any security implications regarding being in /tmp/ this seems good.

Appreciate your time and effort.

2 points

This does start Firefox and exit the ssh session when Firefox is closed, but Firefox is not able to load the web GUI (as mentioned, this may be why).

This might be completely wrong, but I noticed that after sshing in, if it's "complete" (i.e. I get the Last login: Wed Aug 8... followed by a prompt for next command), and then Firefox is started, then it will open the web GUI successfully (which is the case for the shell function I've posted). I've tried yours (and /u/sultanmvp 's) function and it doesn't "complete"--I get the host key fingerprint and then Firefox launches (but cannot load the web GUI). Only when I close Firefox am I prompted for the next command. I guess this is why I needed to run Firefox in the background.

2 points

Did you manage to get Hearthstone working? If not, this is what worked for me, since the other solutions on thread did not (I'm using playonlinux but have been trying to rely on just wine/wine-staging for minimal dependencies):

pacman -S playonlinux lib32-libldap lib32-libpulse

Download Hearthstone and Blizzard Battle.net App from https://us.battle.net/account/download/

  • Launch PlayOnLinux

  • Install > Install a non-listed program > Next... > Install a program in a new virtual drive (choose a name for it)

  • Configure Wine > 32 bits windows installation

  • Wine configuration tool > set Windows version to Windows 10 in the Application tab

  • Wine configuration tool > Staging > Enable CSMT, VAAPI, and EAX

  • Select previously downloaded Hearthstone-Setup.exe

  • Use default installation settings. After installation, Go to Hearthstone game settings on client, then Game Settings > add -force-d3d9 to Additional command line arguments, close client once installed

  • Choose 'Battle.Net Launcher.exe' and use as shortcut name, finish installation

  • Start Battle.Net Launcher (and thus Hearthstone): $ playonlinux --run "Battle.net Launcher"

  • Hearthstone should launch properly and things are clickable, but window might be messed up. To fix this, in the in-game settings, disable fullscreen and change resolution accordingly (might need to adjust window to click the settings if it's not properly displaying the entire screen)

Following these exact instructions consistently worked for me and I'm playing Hearthstone flawlessly. Good luck.

1 points

Wow, this is really valuable info, since most people are suggesting me things based on success they have with it but without sharing what they actually do with the hardware (still good info, since it gives a sense of perspective and I know what to look out for if I want to do something different). And yea, I'm definitely hesitant on old pre-built servers because they consume more power than needed for my case (I'm not attaching a large array of disks nor am I constantly running resource-intensive tasks). A few questions if you don't mind, since I seem to be following your path:

  • How are you liking what you have? Would you have gotten any different hardware now that you got things up and running? Maybe a better deal somehow? Is there anything you are looking to add as a next purchase?

  • Could you describe what you have done with the server and what is the experience is like when used as a media server? For example, on Plex have you tried transcoding a 1080p video on-the-fly and is it doing that without a hiccup? Is seeking a video quick or is there like a 3 second delay (how does it compare to seeking on a local machine, which is instantaneous)? Have you tried 4k playback? I assume it can't transcode a 4k video on-the-fly quick enough for a good viewing experience so I already plan to transcode any 4k videos ahead of time (of course it will require additional space if I'm keeping the source file). I guess it can handle transcoding 4k videos well enough that I can try to make a script to do it in batches when the system is idle.

  • As for acting as a backup server, what software are you using on Windows and what is the backup like? For example, is a periodic. automatic backup of your machines to the server? How frequently does it backup and how much data is it backing up at a time? How do you ensure that a machine gets fully backed up before it shuts down?

  • With ~80W when transcoding, are you still satisifed with a 550W PSU? I was thinking of even going lower than that to further maximize power savings (but not over-doing it to allow some room for upgrading in the future).

  • How much RAM does the server have and is there ever a concern for hitting that limit for your workload?

I might just go the exact build as yours depending on your experience, or only make slight variations to it depending on what deals I can find. It's way below my budget, so I'm wondering if there's something worth improving on it (I already have the drives). I guess more RAM, but I don't know if I really need any more thing more than what you're using--at least it's easy to know and upgrade once I have a server going.

Thanks a lot.

1 points

How would you say Unraid/Nas4Free and other similar software compares to something simple and traditional like Debian Server and then installing additional applications (a media server application, Docker, a backup application, etc.)? It seems like they try to do everything so you don't need to install/configure much else, but I feel using those all-in-one OSes makes you dependent on the OS instead of the applications you're using. For example, knowing Docker could be beneficial to me regardless of what OS I use or whether I want to use it on my desktop system or server. Another concern is the user interface is too messy, convoluted, slow, or inflexible (for example, if I want to use an alternative to the OS's implementation of a feature, like Docker, then getting it to work properly might be an issue).

Are these NAS-type OSes at a point where they are no brainers to look for and it's simply a matter of deciding which one to use or are they still very much comparable to a traditional server OS + applications that you need? Just curious if they offer anything worth considering because as a programmer and Linux user, I'm slightly leaning towards avoiding them and going the traditional route. I suspect the primary reason why they are so appealing is they friendly to those who don't want to manage a Linux system.

1 points

Does it have VPN support? Anything significant missing compared to something proven and developed by a big corporate company? I switched from netctl to networkmanager on my laptop and now am considering something simpler if there isn't too much of a sacrifice.

1 points

Please forgive my noobiness, but can you check if the following is right? It's for my own documentation and I'm going to share it with some coworkers so I want to make sure everything is 100% right:

sudo pacman -S syncthing-inotify # includes syncthing package systemctl --user enable syncthing.service # enable and systemctl --user start syncthing.service # start syncthing services

Create /etc/systemd/user/syncthing-inotify.service.d/start.conf and add the following:

[Unit]
ExecStart=
ExecStart=/usr/bin/syncthing-inotify -logflags=0 -api="0M6ubcgtcy7KBLucu0jeXrgqB8U7YKp9"      # change example API key to your machine's API key
RuntimeDirectory=syncthing-inotify

systemctl --user enable syncthing-inotify.service # enable and systemctl --user start syncthing-inotify.service # start syncthing services

One thing I'm unsure is that the example start.conf in the Arch Wiki entry has 2 ExecStart='s--is this a typo and there should only be 1? There's nothing after the first ExecStart= as shown above.

Thank you!

2 points

What about a proprietary AMD driver and a proprietary Nvidia driver? Or one proprietary driver and one open source driver? I want to install Arch on an SSD that will be used for both my laptop and desktop like an external drive. I believe you can install all open source drivers and Arch will switch to the appropriate one for the machine but I'm not sure how it works with proprietary drivers (are there scripts that can do it?).

1 points

Not doubting you, but do you have any sources to indicate that the software TRIM is better than the hardware implementations? Nothing in the wiki or in my brief google search indicates that and I did some fair amount of research a long time ago to decide whether to choose fstrim vs. discard and ended up choosing the latter because there are very specific situations where the former does not do the cleanest job, such as when there a ton of data is written on the drive within the time period before the next trim.

1 points

Thank you so much, that was the issue and now it's solved. I checked there prior but I thought the correct option was to "Show selected Session Manager section" because I assumed "Show my windows and tabs from last time" was exclusive to Firefox's settings and did not apply to Session Manager...

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.