help-circle
rss
Noob Question Thread: Ask Any Questions About Linux!
pin
I thought I'll make this thread for all of you out there who have questions but are afraid to ask them. This is your chance! I'll try my best to answer any questions here, but I hope others in the community will contribute too!
fedilink


What do you use Waydroid for?
I tried Waydroid on Arch and its amazing. It runs Android apps flawlessly. And with a touchscreen device, I feel like I have an Android tablet running inside my Linux machine. But I still don't know what to use it for... What apps do you use with Waydroid? What use cases do you have for it?
fedilink

Linus Torvalds Injects Tabs To Thwart Kconfig Parsers Not Correctly Handling Them
- Linus Torvalds added hidden tabs to Kconfig to challenge parsers that can't handle them. - Tabs were intentionally added to the common Kconfig file for page sizes to expose faulty parsers. - Torvalds believes parsers unable to handle tabs shouldn't be parsing kernel Kconfig files, aiming to force fixes.
fedilink

Is there a way to add “Run as Sudo” to context menu like with Windows?
I found a (lengthy) guide to doing this but it is for gksu which is gone. I have to imagine there's an easy way. I am running Ubuntu. There is no specific use case, it is just a feature I miss from windows. EDIT: I always expect a degree of hostility and talking-down from the desktop Linux community, but the number of people in this thread telling me *I am using my own computer that I bought with my own money in a way they don't prefer* while ignoring my question is just absurd and frankly should be deeply embarrassing for all of us. I have strongly defended the desktop Linux community for decades, but this experience has left a sour taste in my mouth. Thank you to the few of you who tried to assist without judgement or assumptions.
fedilink

Easily find program name from context menu/without terminal?
I occasionally need to know the names of programs. I asked [here](https://lemy.lol/post/23412101) about "Run as Administrator" being added to the context menu (like in Windows), and the response was basically "can't be easily done". an example is if I wish to edit a config file it cannot be done without accessing the terminal. Knowing the name "gedit" is the real name of "text editor" is useful information in this use-case. I am not afraid of the terminal, but I would never prefer it over a GUI. is there a way to find a program name/install location from right-clicking-details (or something)? So then I could open a terminal and "sudo programname"? (As an aside, I prefer Linux overall, but every distro I've tried has a strong sense that if you're using the GUI you don't need or deserve admin controls. Program names in the menus are almost always different from their names in the terminal, and many what I would consider normal system settings, like the ability to act as an administrator, find where a program is installed are terminal only.) This is Ubuntu with all the default stuff --- EDIT: I always expect a degree of hostility and talking-down from the desktop Linux community, but the number of people in this thread telling me *I am using my own computer that I bought with my own money in a way they don't prefer* while ignoring my question is just absurd and frankly should be deeply embarrassing for all of us. I have strongly defended the desktop Linux community for decades, but this experience has left a sour taste in my mouth. Thank you to the few of you who tried to assist without judgement or assumptions.
fedilink

looking for examples of countries whose governments, school system,health system, wjatever, use mostly GNU/Linux
I know 100℅ of the world top 500 supercomputers use linux, and around 65℅ of world servers. I want more info like this to help me campaign towards GNU/Linux use. Thanks.
fedilink

If you’ve recently started experiencing input delay / lag in GNOME Terminal in Ubuntu 22.04
cross-posted from: https://lemmy.ca/post/19442327 > It's a known bug from upstream mutter. A fix is being worked on and there's a PPA with the updated packages by the Ubuntu developer working on the fix. It resolved the problem on my end.
fedilink

The [openSUSE project](https://opensuse.org/) is excited to announce that [Leap Micro 6](https://get.opensuse.org/leapmicro/6.0/) is in its alpha development stage. Building on the solid foundation of its predecessors, Leap Micro 6 continues to provide a stable, secure and scalable platform for modern lightweight host operating systems that mirrors features and enhancements of SUSE’s commercial [SL Micro](https://www.suse.com/products/micro/) release. With the upcoming release of Leap Micro 6, users of Leap Micro 5.4 will need to plan their migration either to Leap Micro 5.5, directly to Leap Micro 6 or a commercial version, as version 5.4 will reach end-of-life upon the launch of Leap Micro 6. Those currently on Leap Micro 5.5 will have the option to upgrade to version 6 or remain on 5.5 until the subsequent release. Users familiar with Leap Micro 5.5 will remember its standout features, such as enhanced SELinux capabilities, improved podman-docker and Hyper-V support for AArch64, which have significantly bolstered the security and versatility of the operating system. More Information about openSUSE: - https://news.opensuse.org/ - https://discuss.tchncs.de/c/openSUSE@kbin.social
fedilink

Waydroid in a VM
I tried using Waydroid on Linux Mint (Edge) only to have it not work and realized that it requires Wayland, and Mint uses X11. So I used VirtualBox to install Fedora 40 Gnome which does use Wayland. I [installed Waydroid as per the instructions](https://docs.waydro.id/usage/install-on-desktops#fedora) and am having seemingly the same issue as on Mint. After downloading "Vanilla" Android and clicking "Done" everything exits out. So I launch the Waydroid application but nothing ever happens. I then try to [manually start Waydroid](https://docs.waydro.id/usage/install-on-desktops#manually-starting-waydroid) in terminal but always get "ERROR: WayDroid container service is already running". Then I skip to the second step "waydroid session start" but receive "OSError: container failed to start". _Am I doing something wrong? Is it simply because the VM is causing the issues? Or does WayDroid not work well on Fedora?_ Thanks
fedilink

Stay on Fedora or Switch to Void?
I'll try keep this short and concise. I've been on Fedora for about 2 months now and it is one of the few distros to have all the packages I use (albeit, via COPR). I recently read an article about Void and it seemed very appealing to me. I've been wanting to move onto something more minimal, and Void, with Runit and with its scripts that it ships with, as well as giving me a new init system and package manager to learn, seems amazing. In terms of getting all my stuff on Void, their package search suggests all the packages I currently need are available for it. Only potential sources of trouble are: * Hyprland is an unofficial package * Pywlroots and Pywayland (for qtile Wayland) don't exist, BUT there is a qtile-wayland package * My broswer of choice, Floorp, will have to be ran as a flatpak, which may cause issues, especially performance issues, as I'm a serious tab hoarder. I want to learn more about Void's systems by using them, but I'm not sure if the transition is worthwhile. Is the bootup/shutdown speed, and faster package management really worth it? Is it really significant enough?
fedilink

Did you ever try Bedrock Linux ?
How do you like it ?
fedilink



With ou without desktop env?
Do I need to install the desktop env when installing a distro or do I need to install blank Linux and install a clean desktop env later? Thank you! 😃👌
fedilink

Trying to ditch windows
I really want to switch to Linux, up to this point there were two things keeping me on Windows, gaming and work. Gaming nowadays is a lot easier than a couple of years ago thanks to Valve and Proton, so that's not a problem anymore; with the other one I don't know if I can make something work enough and that's why I'm asking here. I work as a fullstack software developer with windows products I don't fear for the frontend part because typescript, angular, react, .... those I know I can run on linux with no problem on VS Code; for backend thought: dot.net, visual studio, sql server, ... I think there is no Visual Studio for Linux and I don't know if I can run & debug .net 8 applications on a linux machine? I can use docker for things like databases. Does anybody else has a similar scenario and things that had to overcame? Tips, problems that I may not see now before making the switch, and solutions to my current problems are welcome
fedilink



Going through my usual scanning of all the "-next" Git subsystem branches of new code set to be introduced for the next Linux kernel merge window, a very notable addition was just queued up... Linux 6.10 is set to merge the NTSYNC driver for emulating the Microsoft Windows NT synchronization primitives within the kernel for allowing better performance with Valve's Steam Play (Proton) and Wine of Windows games and other apps on Linux.
fedilink


Edit: As I am in a rush to get this fixed I ended up doing a fresh install of Tumbleweed. No idea, why this has happened. Just rebooted the computer after not having used it for a week or so and not all of a sudden not able to use the terminal at all. How do I go about troubleshooting this? Other terminals I've downloaded seem to be fine. Any help appreciated.
fedilink

Shimky: Shell/Python IDE made in pnk.lang
https://github.com/dislux-hapfyl/shimky This code is a highly abstracted and unconventional script that appears to be for generating Python code using Bash shell script constructs. It mimics object-oriented programming concepts within a shell scripting context, translating them into Python code generation. Here's a breakdown of what different parts of the script do: Shebang and Author Information: The script starts with a shebang for Bash, and author details are provided in a comment. Global Variables: Various variables are set for use within the generated Python code, such as bg for background color, datenow for the current date and time, px and py for padding values, etc. S, E, and _ are shorthand for self, echo, and expr respectively, simplifying the syntax for commonly used operations. Function Definitions: The script defines several functions (ZDimp, ZDas, ZDshebang, etc.) that output Python code. Each function generates specific parts of Python code, like imports, class definitions, and method definitions. Functions like ZFtoorwin, XIcv, and ZDcld are used for generating more complex constructs like class instantiation and method invocation within classes. Control Structures: It includes shell-based control structures to create conditional (if, elif, else) and looping constructs (for, while) in the generated Python code. The constructs use a mix of direct shell commands and placeholders for Python code, indicating that the script likely works alongside other tools or scripts that provide inputs dynamically. Instance and Function Call Generation: Functions for setting instance variables (ZIfv, YIfv, etc.) and making function calls (ZFfc, YFfc, etc.) dynamically build Python code that manipulates class instances and calls methods. These functions are versatile, allowing for different indentation levels and conditions to be specified dynamically. Utility Operations: Functions like XFshsp, XFpyev, and others handle subprocess execution, text manipulation, and variable assignment within the generated Python environment. These functions are intended to be flexible and reusable across different parts of the generated code, indicating a modular approach to code generation. Error Handling and Debugging: The script includes structures for try-except-finally blocks (XKtry, XKexcp, XKfin), allowing generated Python code to handle exceptions effectively. This suggests that the generated code is expected to run in environments where robust error handling is necessary. In summary, this Bash script serves as a meta-programming tool that dynamically generates Python code. It abstracts Python programming constructs into shell script functions, allowing the script writer to generate complex Python applications using shell command syntax. This approach is unconventional and seems tailored for specific use cases where such a level of abstraction is beneficial, perhaps in automated code generation tools or educational environments where showing the transformation of simple commands into Python code can be illustrative.
fedilink

I wrote a blog post about my experience with the Minisforum V3 AMD Tablet, focusing on how Linux/Fedora/KDE works on this device and how Linux performs on the tablet devices.
fedilink



Using ChatGPT with Linux
Last night I was nearly tearing my hair out trying to get a crappy inkjet printer installed when I turned to ChatGPT for help; 5 minutes later it was done (driver issues). I realised that I use it a lot for all sorts of things but haven’t really seen any posts on here about it, and was wondering if other people do the same. I’ve used it to create bash scripts, write small, niche python programs (eg sort photos into separate folders based on their orientation), and create cron jobs among other things. In particular, I find it useful when I want to use a command line program that has a complicated set of options / syntax, but I might only ever want to use it once, or very infrequently. So I tell it what I want to accomplish, and ask it to give me the correct command to run with the options I specify in plain language. Example: User Give me the correct rsync command to recursively copy all files in /home/user/Documents that are image files of any type but were created more recently than 1/1/2024. The destination is /home/user/foo ChatGPT `rsync -avm --include='*/' --include='*.jpg' --include='*.jpeg' --include='*.png' --include='*.gif' --include='*.bmp' --include='*.tiff' --include='*.svg' --exclude='*' --prune-empty-dirs --min-age=$(date -d '2024-01-01' +%s) /home/user/Documents/ /home/user/foo/` User Break down the command and explain each part of it in dot point format. ChatGPT `- `rsync`: Invokes the rsync program, which is used for efficiently transferring and synchronizing files across systems or within a system. - `-avm`: - `-a`: Archive mode, which preserves permissions, symlinks, modification times, group, and ownership. Implicitly includes recursion. - `-v`: Verbose mode, which provides detailed output of what rsync is doing. - `-m`: Prune empty directory chains from the file-list. - `--include='*/'`: Include directories themselves, which is necessary for recursion. - `--include='*.jpg' --include='*.jpeg' --include='*.png' --include='*.gif' --include='*.bmp' --include='*.tiff' --include='*.svg'`: Include files that match these image file extensions. - `--exclude='*'`: Exclude all other files that do not match the previously stated include patterns. - `--prune-empty-dirs`: Exclude empty directories that result from the inclusion/exclusion pattern. - `--min-age=$(date -d '2024-01-01' +%s)`: Exclude files that are older than the timestamp for January 1, 2024. This uses `date -d` to convert a date string into a timestamp, which `rsync` uses to filter files. - `/home/user/Documents/`: Source directory from which files are being synchronized. - `/home/user/foo/`: Destination directory to which files are being synchronized.` It’s also really good for explaining concepts / commands in plain language. It’s like having a 24 hour on call Linux expert :) #Things to note: **- Get the subscription.** ChatGPT 3.5 is pretty useless. ChatGPT4 is fine, but I’m pretty sure you need the subscription to access it. **- Give it pre-instructions.** I have told mine what distro, what shell I’m using and the make and model of my laptop. If you have a subscription you can add these as permanent pre-instructions, so to speak. That way it will be much more likely to give you correct answers. **- It’s not magic** In order to get what you want, you have to be able to ask the right questions. It will boost your ability but won’t turn you in to a 1337 haxx0r **-Ask questions** As always, don’t run any commands that you don’t understand. Ask it to break down any commands it tells you to run if you don’t understand them. **-Sometimes it goofs** For various reasons, sometimes it will ask you to install a package that no longer exists, or will give you a command that doesn’t work. When that happens, I just feed the error message back into ChatGPT and it usually is able to correct itself. **-Ask “Is there a better or easier way to do this?”** This is probably the most valuable question I’ve found to ask chatGPT. Sometimes it gets so far in the weeds looking for a solution to a problem that you need to pull back and start fresh.
fedilink






Is there a way to sync todo.txt with Tasks, similar to how GNOME calendar syncs with Google?
I use Google tasks for my todo list. [This GNOME extension](https://extensions.gnome.org/extension/570/todotxt/) is nice and minimal and just what I'm looking for, and it uses todo.txt. Is there an easy way to sync my changes with Google, similar to how the GNOME calendar app does? EDIT: Endeavor (GNOME "To do") seamlessly integrates with Google Tasks *and* ostensibly todo.txt but I can't get it to recognize the todo.txt (I'm not sure it would sync todo.txt > Endeavor > Tasks even if it *was* working, however).
fedilink

[https://gitlab.com/christosangel/tui-battleship](https://gitlab.com/christosangel/tui-battleship) This is a tui implementation of the popular **classic naval battle game**, written in Bash. The objective of the game is to **destroy the computer's fleet**, before the computer achieves the same against you. You take turns with the computer, hitting squares in each other's grids. You have to guess the position of the enemy ships on the computer's 10x10 grid, in order to win. ![win](https://gitlab.com/christosangel/tui-battleship/-/raw/main/screenshots/win.png) You lose if the computer achieves sinking your ships first. ![lose](https://gitlab.com/christosangel/tui-battleship/-/raw/main/screenshots/lose.png)
fedilink

[Alternative Invidious Link](https://yewtu.be/watch?v=duaYLW7LQvg) The LiMux Munich segment is at [17:47](https://kolektiva.media/w/ra7bfqXCyqBFn7dSFhneFy?start=17m47s) Original German Translation [available here](https://www.youtube.com/watch?v=_7583HNrZJs).
fedilink

Thinkpad X200 Tablet stylus brokie on Void Linux
I cannot get sway to detect my tablet device on Void Linux installed on a Thinkpad X200 Tablet. Anyone knows how to fix it? I have both libwacom and xf86-input-wacom installed. It worked fine on Debian. Now when I think about it, I don't have libwacom-32bit installed, because I'm using musl library which is 64bit only. That might be the issue considering how old my hardware is. I'm going to try to investigate but I'm going post this here anyways in case anybody knows more than me.
fedilink


Some snippets from the article : 3. Women accounted for 9.9% of the Linux kernel Git population. 6. About 90% of Hollywood special effects rely on Linux. 8. 0.44% of Steam users are playing on Linux.
fedilink



    Create a post

    From Wikipedia, the free encyclopedia

    Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

    Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

    Rules

    • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
    • No misinformation
    • No NSFW content
    • No hate speech, bigotry, etc

    Related Communities

    Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

    • 1 user online
    • 231 users / day
    • 1.2K users / week
    • 2.86K users / month
    • 5.69K users / 6 months
    • 4 subscribers
    • 2.33K Posts
    • 40.4K Comments
    • Modlog
    Lemmy
    A community of privacy and FOSS enthusiasts, run by Lemmy’s developers

    What is Lemmy.ml

    Rules

    1. No bigotry - including racism, sexism, ableism, homophobia, transphobia, or xenophobia. Code of Conduct.
    2. Be respectful, especially when disagreeing. Everyone should feel welcome here.
    3. No porn.
    4. No Ads / Spamming.

    Feel free to ask questions over in: