Linux 101 stuff. Questions are encouraged, noobs are welcome!
- How can I make a custom .service run as root?
I have a VPN daemon that needs to run before the client will work. Normally, this would have been set up automatically by its install script, but the system is immutable.
I've created the systemd service via
sysyemctl edit --force --full daemon.service
with the following parameters:``` [Unit] Description=Blah After=network-online.target
[Service] ExecStart=/bin/bash /path/to/daemon
[Install] Wanted By=multi-user.target ```
I've verified that the daemon is actually executable, and it runs fine when I manually call it via
sudo daemon
. When I try to run it withsudo systemctl enable --now daemon.service
, it exits with error code 126.What am I missing?
- Confused about my drives and partition names
So first off, what I'm TRYING to accomplish here is to have 3 drives show in Dolphin with their correct names. They are 3 physical drives (no crazy partition shenigans), but I'm having several issues trying to get them to be usable. All 3 are nvme drives connected directly to the board. (I'm new to Linux, not building machines.) The main drive is encrypted and is showing as type LVM2, the others are just ext4.
I am still fairly new with this, and didn't mess with this much when I used Windows, but when I did everything worked fine the first time. I'm pretty competent at following directions, and willing to learn vocab and lingo.
So the 3 drives are:
-main system drive
-drive to store photos (labelled 'Archive')
-Had a 3rd drive sitting around when I put this system together. No real intended use for it yet, but I'll think of something later.
So I'd like to have them listed as Main, Archive, and Drive3 for now. For a while I just had Main and Archive working. I just tried to add some photos to the Archive drive a couple minutes ago, but it's not longer showing in the Devices section in the sidebar. There is still a "Main" listed, but it says "An error occurred while accessing 'Home', the system responded: An unspecified error has occurred: No such interface “org.freedesktop.UDisks2.Filesystem” on object at path /org/freedesktop/UDisks2/block_devices/dm_2d0" whenever I click on it.
Seeing as I know my computer is currently working, that doesn't make any sense to me. There is another drive simply listed as "1.8 TiB Internal Drive dm-1" which is actually the correct drive for my system install. So the listing it was under now doesn't work, but it's still easily accessible with this default name.
There is now a recovery device listed, but I haven't created a recovery partition, and I certainly don't want to see it listed in the devices, as if I need it I will just use it as intended, I don't ever need to browse it easily.
The Archive drive is not listed at all anymore. I can still see it in GParted, and it shows up just fine, but says it isn't mounted. At the moment I still have the original copies of everything I've put on it, so worst case scenario I can reformat it and start over, but I'm just trying to understand what happened here so it isn't a recurring problem. It wasn't mounted according to GParted and the Disks utility, so I just tried mounting it and it worked, but none of the files that were on it are still there. But they're still on the Main drive, so I can just drag them back.
After mounting the drive just now, the Devices section has disappeared in Dolphin. I'm getting more and more confused the more I try to figure it out and fix it.
I'm assuming if it's showing blank (other than an empty 'lost+found' directory that means the data is gone. I'm almost afraid to reboot now and feel like it's about to implode on me. I can get screenshots of whatever might need to be seen, but honestly now with the Devices section just entirely missing, the idea of this being convenient is becoming hopeless. I just want the drives to always show up with the correct names, and not give errors trying to navigate them. This shouldn't be this complicated. At least the system itself is functioning, but this is killing me. I've never had drives just stop showing up before.
Oh so the 3rd drive I did just add recently, so it really hasn't had time to have an error with it, as I haven't touched it yet. Nothing is on it, it was just recently added
So in short, any ideas why the "Main" listing stopped working and why it showed up as a default named partition? The Archive part actually may not have been copied over yet (I can't remember stuff to save my life sometimes) but I know the drive itself was at least accessible before. Which it seems to be now, but was unmounted by default, which is kinda odd. Also when I mounted it, it showed up as a folder with a long name of random numbers and letters, but it still shows the correct partition name in GParted. The 3rd drive shows correctly as "Drive3" which is its volume/partition name, but the partition on this drive is named/labelled "Archive" but shows as a long string of numbers, letters, and dashes.
And now I'm unsure which drives are still working at any given moment since the Devices part isn't even there and I have to keep manually digging into them from the media mount point "folder". I can make a version of it by manually adding a "Place" to the Dolphin sidebar, but it's not in its own category anymore, and is much more annoying to me this way. I could use it like that if I have to, but I'd rather go back to each one showing on its own.
Any ideas or help?
edit- Using Pop with KDE
- Grub-btrfsd.service degraded and failing to start
-` hellmo@archie .o+` ------------- `ooo/ OS: Arch Linux x86_64 `+oooo: Host: INTEL `+oooooo: Kernel: Linux 6.9.7-zen1-1-zen -+oooooo+: Uptime: 7 mins `/:-:++oooo+: Packages: 1169 (pacman) `/++++/+++++++: Shell: bash 5.2.26 `/++++++++++++++: Display (ASUS PB278): 2560x1440 @ 60Hz `/+++ooooooooooooo/` Display (ASUS VG32V): 2560x1440 @ 144Hz ./ooosssso++osssssso+` DE: KDE Plasma 6.1.1 .oossssso-````/ossssss+` WM: KWin (Wayland) -osssssso. :ssssssso. WM Theme: Breeze :osssssss/ osssso+++. Theme: Breeze (Dark) [QT], Breeze-Dark [GTK2], Breeze [GTK3] /ossssssss/ +ssssooo/- Icons: candy-icons [QT], candy-icons [GTK2/3/4] `/ossssso+/:- -:/+osssso+- Font: Noto Sans (10pt) [QT], Noto Sans (10pt) [GTK2/3/4] `+sso+:-` `.-/+oso: Cursor: breeze (24px) `++:. `-/+/ Terminal: yakuake 24.05.1 .` `/ CPU: 12th Gen Intel(R) Core(TM) i7-12700KF (20) @ 5.00 GHz GPU: NVIDIA GeForce RTX 3090 [Discrete] Memory: 3.43 GiB / 62.60 GiB (5%) Swap: 0 B / 4.00 GiB (0%) Disk (/): 151.91 GiB / 1.82 TiB (8%) - btrfs Local IP (enp7s0): x.x.x.x/x * Locale: en_US.UTF-8
I am having some issues with my Arch install:
``` UNIT LOAD ACTIVE SUB DESCRIPTION ● grub-btrfsd.service loaded failed failed Regenerate grub-btrfs.cfg
Legend: LOAD → Reflects whether the unit definition was properly loaded. ACTIVE → The high-level unit activation state, i.e. generalization of SUB. SUB → The low-level unit activation state, values depend on unit type.
1 loaded units listed. ```
I have already tried:
sudo systemctl restart grub-btrfsd.service
sudo grub-mkconfig -o /boot/grub/grub.cfg
---
Does anyone have any suggestions? I am failing to understand how to resolve this issue... Any help would be wonderful...
- Where I can make my noob questions about selfhosting?
I know that !selfhosted@lemmy.world exists, but to be honest I feel like going there to ask some noobs questions is like going to the arch forums in my first day of using Ubuntu as my first distribution, my probably super dumb question it'll be obvious to the big majority except me. And no, I am not meant that the people in selfhosted is going to be angry with me or something like that, is that I just don't want to ask stupid questions there.
I already tried asking an IA but let be honest, the IA just go into the service repo and try to answer me using the information that I already read.
Edit: Thanks for all the answer, I gonna try asking on c/selfhosting. :3
- UFW and a Windows KVM with Virt-Manager
So, I finally ditched Windows... All except for my need for a VM to use some hardware that aren't supported in Windows.
I setup a Virtual Machine with Virt-Manager for a Windows VM but the network traffic is being blocked by UFW. If I disable UFW the Windows VM can pull an IP, which is static as is, and even after turning UFW back on, the network traffic is still allowed.
I am in need of some help with networking for the VM.
<interface type="network"> <mac address="52:54:00:d7:8f:48"/> <source network="default" portid="d7ff3b1f-2c9b-4a62-b9e0-180855f14de7" bridge="virbr0"/> <target dev="vnet2"/> <model type="e1000e"/> <link state="up"/> <alias name="net0"/> <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/> </interface>
This is the networking setup within Virt-Manager.
Any advice for getting network access on the VM?
- Install only the "core" of the distro on an SSD, other packages on HDD?
I use Ubuntu installed on a hard disk. My computer also comes with a tiny (16GB) SSD that I've another Ubuntu installation on. While a fresh install on the SSD worked great, this is too small to hold all the packages I will eventually need.
Is there any way to only have the core bits of the distro on the SSD, and have all the other packages I later install on the HDD?
I want this so I can have a fast boot (boots slowly using the HDD) and since I'm happy with the speed of apps as they work while now installed on my HDD, I'd like to keep using them off of it.
All idea welcome :)
- Suggestions for a visual data reporting tool in Linux
I run a raspberry pi that identifies birds by their song, and records time, date, and species etc in an SQLite3 database.
The rpi app comes with some basic reports, but I'm wanting to expand on them, so that I can show monthly/yearly trends etc.
On windows at work, I'd use something like Power BI, but a) it's windows and b) it's overkill for my current needs.
I've only recently moved entirely to linux, so I'm not really sure of what the linux alternatives are, and I'm looking for suggestions :)
- Is there a way to open files Ulauncher-style but in Rofi?
In Ulauncher you simply search for the name of the file and when you click on it, it will open the default player of that file in your system. Is there any way to do the same but in Rofi? Or maybe another launcher for Windows with Rofi theme?
- Audio broken after uninstalling pipewire
EDIT: Reinstalled pipewire, Mostly Fixed
Jack doesn't start
trying to start jack in qjackctl: Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock\
- Need some easy-to-use Linux distro that doesn immedately go bad on a VM
So far, Ubuntu 24.04 was an absolute nightmare for me. While upgrading to it in a VM, it randomly crashed, which broke the GUI. I had to go to the tty, and finish the upgrade that way to get back into GNOME. Then every time I launched its default file manager or its screen settings app (which became mandatory as it just randomly switched to 1280x800, thus making work a nightmare), it crashed so hard it took the VM host with itself.
Switching to VMWare, it was more stable, stable, but after the first restart, I get a lot of graphical glitches and a black background. Tried Kubuntu to see if it's a GNOME-related thing, but similar issues prevail, this time with a tanked performance until I switch to tty.
I need an easy-to-use and relatively stable distro, for compiling, testing, and rewriting software with GUI, thus I cannot use WSL on Windows 10. I want to spend my time developing, and not resolving bugs, nor with tinkering with the OS. Likely I will have to keep my primary development platform as Windows, and Linux does not offer me anything more, and "deploying/cross compiling to Windows" is not very feasible to me at the moment due to I'm writing my own middleware to interface with OS API, and I also want to test on native Windows rather than in an emulator. Windows 11 might push me in the direction to use a Windows installation inside a VM, but only if disabling telemetry becomes impossible.
- [Question] I need a comand to enable wifi after reboot each time. How i fix it? - (Macbook pro 13 2011) [Fedora 40]
cross-posted from: https://lemmy.world/post/16176944
> I've installed fedora 40 on my jurassic Macbook 13 2011 and so far i'm in love with it. The only issue was the wifi. I've checked different posts and articles and in the end i've find this [https://darryldias.me/2020/linux-wifi-drivers-for-2012-macbook-pro-offline-method/] which worked... up to a point. > When i turn off or restart the machine i have to use the comand "sudo modprobe -v b43" to enable the wifi each time. > > Any idea?
- proxy help
I'm using TetherFi to share my phone's internet connection. I understand how to setup the proxy settings in the browser on my laptop to get it working, and I've also been able to get Freetube working by changing the proxy settings within the app.
What I am wanting to know is if there is a way to set up a system wide proxy setting so that other applications on my laptop will work without having to go into each app individually. The desktop versions of my messaging app, steam, and the app store are all inaccessible to me currently and it would be nice to be able to get these working automatically through the proxy if possible?
I'm on Pop_os.
- Everything is really small on high res monitor (Manjaro KDE)
I have a laptop with a 3072x1920 monitor, and everything is really small. I know you can change global scale in display settings, but that doesn't work for everything. Is there any way to make everything bigger without changing screen resolution?
(it's weird because GNOME worked just fine. Does it have a lower resolution by default or something?)
- How can I insert/type a blank character using my keyboard?
Sometimes adding a blank character helps with formatting. For example on Lemmy, it helps me separate lines of text if I insert a blank character between other lines. Currently, do that by copy-and-pasting the blank character from elsewhere. Here is an example
Is there a way I can do this on Linux easily from the keyboard? I am using KDE Neon and have the compose key enabled so that I can easily type uncommon characters like ‽, ñ, and é easily.
- Is there a "one size fits all" solution for fstab optimization?
Title. I'm trying to come up with a fully functional, optimal yet read-only scheme for fstab and I could use some pointers.
Thanks in advance.
- HORUS K609 SE (Redragon)
cross-posted from: https://slrpnk.net/post/9339950
> Would this be an ok option for use on linux? Any thoughts on the brand, etc.? > > HORUS K609 SE (Redragon) >
- power button popup window (solved)
Is there any way to disable the power button popup window? I'd like it to be just an immediate shutdown switch, not have to confirm or wait 60 seconds...
I'm on Pop OS
- Configuring ASUS Fingerprint Sensor on Fedora
cross-posted from: https://lemy.lol/post/24413858
> Help Needed: Configuring ASUS Fingerprint Sensor on Fedora > > I recently got my hands on an ASUS device equipped with an fingerprint sensor . As a Fedora user, I've been trying to set up the fingerprint sensor on my system, but it's proven to be quite a challenge. > > So, I'm reaching out to the community here for some guidance. Has anyone successfully configured an ASUS fingerprint sensor on Fedora before? If so, could you please share your experience and any tips or resources that might be helpful? > > Any assistance would be greatly appreciated! Thanks in advance.
- trouble installing easytether
I tried using the default 'eddy' installer as well as 'gdebi' but both of them throw an error message.
gdebi says "error: dependency is not satisfiable: libssl1.1 (>=1.1.0)
eddy says "installation failed, child process exited with code 100"
- Debian+i3, run scrot from i3 config with symbind
I'm trying to invoke scrot with a bindsym so I have a keyboard shortcut to take screenshots
This command works when run as a one-liner or as a bash .sh:
save_dir="/home/dork/apache/drkt.eu/subdomains/u/"; random_name=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 6 | head -n 1).png; scrot -s "$save_dir/$random_name"; echo -n "https://u.drkt.eu/$random_name" | xsel --clipboard
It does not work when ran by i3bindsym $mod+Shift+Z exec bash -c save_dir="/home/dork/apache/drkt.eu/subdomains/u/"; random_name=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 6 | head -n 1).png; scrot -s "$save_dir/$random_name"; echo -n "https://u.drkt.eu/$random_name" | xsel --clipboard
i3 reports an error when the above is run, but not when as a shell script, though neither work. I assume that's just because bash is eating the error and not reporting it back to i3
This is the error when ran as a one-liner: ``` ERROR: Received ConfigureNotify for unknown window 0x00600000 ERROR: Received ExposeEvent for unknown window 0x00600000 ERROR: Received ConfigureNotify for unknown window 0x00600000 ERROR: Received ConfigureNotify for unknown window 0x00600007 ERROR: Received ExposeEvent for unknown window 0x00600007 ERROR: Received ConfigureNotify for unknown window 0x00600007 ERROR: Received ConfigureNotify for unknown window 0x0060000a ERROR: Received ExposeEvent for unknown window 0x0060000a ERROR: Received ConfigureNotify for unknown window 0x0060000a ERROR: Received ConfigureNotify for unknown window 0x0060000d ERROR: Received ExposeEvent for unknown window 0x0060000d ERROR: Received ConfigureNotify for unknown window 0x0060000d ERROR: Received ConfigureNotify for unknown window 0x00600010 ERROR: Received ConfigureNotify for unknown window 0x00600010 ERROR: Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'sticky', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'swap', 'title_format', 'title_window_icon', 'mode', 'bar', 'gaps' ERROR: Your command: exec bash -c save_dir="/home/dork/apache/drkt.eu/subdomains/u/"; random_name=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 6 | head -n 1).png; scrot -s "$save_dir/$random_name"; echo -n "https://u.drkt.eu/$random_name" | xsel --clipboard ERROR: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /run/user/1000/i3/errorlog.1235 (END)
```
I am open to alternatives if there is a better way to do this than the i3 config!
Thank you for reading <3
- Weird mouse behavior in fedora40/kde
I've just put Fedora40 on my Lenovo legion. I installed kde spin. I've got two strange issues.
The first, when adding file attachments in Firefox, it opens the gnome file manager instead of dolphin. Annoying but not major.
The second, when playing a steam game (fallout4) on multiple monitors, it seems the mouse isn't trapped to the game window, and when it inevitably makes it's way to the second monitor, a click will change focus. For this issue, I have been trying to use the kde window rules, but that doesn't seem to work. Nine of the rules seem to force the mouse to stay in that window.
- (Arch) Question on updating dependencies from a newbie
cross-posted from: https://lemmy.blahaj.zone/post/11540913
> How do non explicitly installed package dependencies get updated in Arch? Do they update independently of the package that is dependent on them, or do they get updated when the parent package updates? Or is it some secret third thing? > > Thanks!
- Will a virtual machine work for this?
Newbie here. First of all, I successfully took ownership of a folder using the command line and I am proud of that. Even though it ended up being irrelevant for the problem in the end, it was still satisfying to be able to figure it out finally. Using the command line makes me feel like I'm doing cool stuff B)
So, I was doing some digging, trying to get my mouse to work properly, and I ended up finding out some things. Hopefully this saves somebody some time/frustration in the future.
-Logitech's software doesn't work in Linux (of course)
-Piper doesn't work for this model (g502x PLUS) yet.
Bummer.
There is a workaround, however. This model actually includes on-board memory! Sweet, my money was not wasted after all!
So, I just went back to windows (gross) and set up the profile I had been using previously. (sidenote, who TF uses forward and back for the side buttons? It obviously should be ctrl and shift for the defaults, respectively...) When I got back on my new setup, it was a success!!! It works perfectly well, and no issues so far.
Now, for the main question, is there any easy way to set this up from Linux by using a windows virtual machine or something similar?
Thanks for reading.
- USB tethering
Hey just wanted to ask for some recommendations on tethering my phone to my laptop. Would be nice to have options to hide tether usage if possible. Thanks
- Arch/KDE - Saving x11 configs?
cross-posted from: https://lemmy.blahaj.zone/post/11236710
> I'm running an nvidia card on X11 Plasma 6, with a 4K monitor alongside a QHD monitor. Both monitors are the same physical size, despite being different resolutions, so in the nvidia settings app, I've got the second X screen setup to generate 4K but downscale it to QHD in the output. It makes the second screen slightly blurry, but it's worth it for the ability to move windows back and forth without dealing with different resolutions. > > The problem is, no matter what I do, I can't make the changes "stick". The nvidia applet has an option to save it to the x.conf file, and I've verified that it has done so in a text editor. But every time I boot, I have to change it in the nvidia settings applet again. > > Is there something I'm missing with the way arch/kde handles x conf files? How do I make it stick between reboots?
- Am I overthinking? Mint Cinnamon/Edge/MATE/xfce/ for a T480?
The propaganda worked. I bought a Thinkpad, the thigh highs are on the way, penguin stickers are already here. Now it's time to actually put Linux on my machine.
I'm a bit lost on which version of mint to put on the T480. It's an i7 8650u, 16gb RAM, 256gb SSD (will eventually be upgrading the RAM, SSD, and display). My question is, is the t480 "old" by Linux standards? From what I've gathered cinnamon is the standard version. Edge is for new (?) hardware that may not be fully compatible with cinnamon. MATE is for old/lower power hardware that can't handle the demand of cinnamon and xfce is for even older/slower hardware.
I've been running in circles all morning trying to find experiences of people with a T480 who are running mint and which version they're using. Old is apparently 3+ years according to various articles trying to convince me to upgrade and I haven't found much on what is considered old hardware for Linux. As someone who hasn't bought a computer in nearly a decade, a quad core processor with 16 gigs of ram is ridiculously powerful. My last computer was a $90 shitbox that I got on clearance from Walmart in 2016 to do online lessons in EMT school. So my perspective/experience is utterly useless.
Can a T480 run Mint Cinnamon 21.3, or am I better off using MATE/xfce? It's going to live a pretty easy life. I'll mostly be using it to browse, stream music, do (online) homework, write papers, and put books on my e-reader.
- DIY roku like thing
System: laptop with HDD(no money for ssd) and power issues + old non-smart TV + router under TV OS: Fedora server
Idea: Since the old laptop is close enough to the router for Ethernet, I'm using it as a home server. Then I had the idea to also use it as a smart TV like device since it's right under the TV. I figured an HDD wouldn't be a huge issue for streaming from jellyfin or the internet.
Server side stuff I've found lots of great information on but I'm struggling with the roku-like/smart TV setup:
- how do I disable the laptops display on boot?
- using waydroid + cage to run full screen android application when tv is connected?
- can the TV remote be mapped to Linux inputs?
- Just bought a laptop with Mint, shows errors on startup
So I just bought this refurbished laptop with Mint pre-installed, and it's showing these error messages when booting. Boots just fine afterwards and seems to work normally. Is this normal? Should I get my money back, or should I do a fresh install?
- Why is Qemu so damn slow on HDDs?
I have a pretty decent PC that I use to virtualize from time to time. I've used VirtualBox and it worked perfectly but I wanted to give the jump to Qemu and using KVM the difference in performance is huge but ONLY when the virtual disk is on an SSD, when is in a HDD the performance is just disgusting.
Why does this happen? I mean this didn't happen on Virtualbox, the problem only happens in Qemu and is even funny because I have used Qemu to virtualize some distros and they run better in my laptop (with nvme) that has worse specs than my PC just because they run in an nvme and my PC on a HDD.
The hard drive is not even that old, I use it to save my games and play them from there in Linux without any problems.
- Partitioning mixed media
I wanted to get an opinion on how to partition various disks. My Win 10 machine is going to Linux Mint with Win 10 ending support. I currently have three disks: SATA SSD which is the C: drive, a traditional HDD for bulk storage (D:), and a M.2 SSD for games (F:). I was looking for an opinion on how to partition the M.2 SSD. It all depends on where you install games. Should the M.2 drive be /home or something else like /opt?
- Gparted permissions - Debian 12
Hi,
After messing around on various distros as a learning experience, I’ve had Debian 12 installed (via installing Spiral Linux) for a few days now on my old Mac.
I noticed today that gparted asks for the root login when launched and that my own user doesn’t have default access to any partitions I create using it.
Is this expected behaviour or have I messed something up?
Thanks!
- Full documentation for APT?
Hi, I just read online that you can apparently run
apt --fix-broken install
.I wanted to know, what that really does, but both
apt --help
andman apt
only show a high-level summary of the subcommands and flags. The--fix-broken
flag is never mentioned, and presumably many others neither.Is there some way to access documentation for all subcommands and flags?
- What is an active KDE support forum that is supportive of noobs?
I'm not a tech person, so I used to use Linux Mint. LM is a simple and easy distro with relatively minor issues for the average user. Additionally, their main forum was active and quite supportive of noobs/non-techies. However, I have switched over to KDE Neon and not found similar support yet. Is their a site that is active and supportive of noob questions?
When I say supportive of noobs, I mean I need people to give me the exact commands to enter into the terminal. Guidance such as, "Just check to see what driver you're using," will not really help me.
PS - I would be happy to give a regular donation to said sight for their support.
- Server/Headless Linux: enable automatic login to a user on boot but when the user logs out, it will not re-login back into the user?
On Ubuntu Server and Arch I was able to change the following line in
/lib/systemd/system/getty@.service
# Before ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear %I $TERM
# After ExecStart=-/sbin/agetty --noissue --autologin john %I $TERM Type=idle
And it works, that it will login to the user john but when I logout of the user john with using
exit
in the terminal, it logs john back in. Is there a way to change this ExecStart setting to enable auto login for a user on startup but only on startup? - It is possible to configure a keybinding in i3wm to open programs as floating windows?
I don't always want to open a terminal as a window in a container layout (tabbed, stacked) but I simply want to open it as a floating window, is it possible to make that for example, pressing $mod+return+space opens the terminal but in floating mode?
It would also be great if, let's say that by default $mod+d opens dmenu, then $mod+d+space opens any program as a floating window, but I don't know if it is possible.
- Enable Wake On LAN (WOL) On Full Disk Encryption Boot To Ensure WOL Is Enabled If System Is Rebooted On Full Disk Encryption Unlock Menu
I have gotten Wake On LAN (WOL) setup and working. However my machine is a Ubuntu machine using full disk LUKS encryption which means when booting it up, it requires a password/passphrase to unlock the machine before it boots into Ubuntu. The WOL systemD service I created will always make sure WOl is enabled for the next time the machine reboots, however if I reboot the machine and fail to unlock the device on the full disk encryption menu and the machine shut down, WOL will not be enabled which means WOL is not going to work to turn on the machine again.
Is there a way to enable WOL on the system full disk LUKs encryption lock screen?
- [Resolved (i hope)] in need of help with udev rule
Edit: Go to bottom to read resolution:
am trying to make a stable link to read t-sensor
bash $ sudo nano /etc/udev/rules.d/t_sensor-temp-stable-path.rules
bash ACTION=="add", SUBSYSTEM=="hwmon", KERNEL=="hwmon*", ENV{HWMON_NAME}=="asusec", SYMLINK+="t_sensor_temp", RUN+="/bin/sh -c 'ln -s /sys/class/hwmon/%k/temp2_input /dev/t_sensor_temp'"
bash $ sudo udevadm control --reload-rules $ sudo udevadm trigger
expected result, t-sensor temp2_input file is now linked in /dev/t_sensor_tempactual result no link in /dev
bash $ cat /dev/t_sensor_temp cat: /dev/t_sensor_temp: No such file or directory
even after rebooting,and running$ sudo udevadm control --reload-rules
$ sudo udevadm trigger
its still failing to create link.i have stable links in /dev for gpu and cpu which work perfectly
Edit: so i may of resolved the issue and am adding this to maybe help others in the future worth noting i preface "may of" as im not sure if when a hardware change acures that udev will continue to link to hwmon* temp2_input
i first changed the rule
bash ACTION=="add", SUBSYSTEM=="hwmon", ATTRS{name}=="asusec", SYMLINK+="t_sensor_temp", RUN+="/bin/sh -c 'ln -s /sys/class/hwmon/%k/temp2_input /dev/t_sensor_temp'"
kernel is now not present, "ENV{HWMON}" is now "ATTRS{name}" but with these edits the link still was not created. once i ran the commandsudo udevadm trigger --action=add --subsystem-match=hwmon --attr-match=name=asusec
then the symbolic link was created. its been frustrating but glad we got the in the end.if someone can shine a light on the strange behavior that would be great.
- EndeavorOS for audio production and gaming?
Hello everyone! Right now I use Apple mainly but I do have experience with Ubuntu Studio. I’m migrating back and forth but I feel the hard switch is coming. I’ve just found that Ubuntu Studio throws problems left and right with audio production, but I have great luck with gaming.
So I kinda want to start over and Endeavor seems cool. Would I be able to use Endeavor/Arch for both making music AND gaming?
For what it’s worth, I use live recording and plugins for my music.
- Persistent Live USB Install?
How can I easily make a live USB drive that is persistent? My goal is to boot it through the boot menu (not grub). And just reboot to Windows for the few things I need on my laptop. I would prefer if my laptop had no trace of Linux installed. I found a guide, but it looked endless and needlessly complicated. Does anyone have a premade process? I'm not attached to any distro.
Any help is much appreciated.
Background: Every couple of years I get fed up with windows and give Linux another try. I love the idea behind it, the stability and... Inevitably I find something that won't run, then get fed up. I no longer have the energy for Wine or running more than a command or two. I want the idiot experience.
Recently, I put together a live USB of Mint. It did most of what I need, but I didn't want to deal with grub or partitions. Errors there suuuuck. So, I figured a persistent USB version would be great. From what I read, you can just install like normal, only to the USB drive. Of course I accidentally installed grub and nearly gave myself a heart attack when I couldn't get to the boot menu. (Had to put the USB drive back in). The Linux install didn't work either- not sure why. So, now I'm back to hating Microsoft's increasing ads and data tracking, wishing Linux was just a little simpler.
- [resolved] Set custom "appid"<(actually meant process) in wayland.
I am trying to set waybar to launch with appid=waybar-touch using
WAYLAND_APP_ID=waybar-touch waybar -c /path/to/custom/config
But waybar fails to launch with expected appid..
Edit : when I said app ID I actually went process
The way to launch with custom process name is by
exec -a foobar-custom foobar
For anyone interested.~~~~