Skip Navigation
xavier666

Just another Reddit refugee

Posts
21
Comments
1,066
Joined
2 yr. ago
  • I found something interesting, thanks to my friend

    • I removed the fix mentioned above. Now user does not have sudo access inside sway
    • I ran the command exec su - xavier666. It asked for my user password and the command was accepted.
    • My groups output looks normal (xavier666 is now part of sudo) and my permissions are fine
    • However, the problem reappears after a reboot

    It is as if this user is an imposter with incorrect privileges 📮

  • I did it. The issue still lingers. Check my last comment for output.

  • Great suggestion. I tried this method just now.

    Unfortunately, I'm still getting the same bug.

    The main difference between the two sessions is the output of the groups command

    In pure tty

     undefined
        
    $ groups
    xavier666 adm cdrom sudo dip plugdev lpadmin lxd sambashare
    
      

    The moment I enter into sway from inside the tty

     undefined
        
    $ groups 
    xavier666 root
    
      
  • Now you know why your mom spent so much time with the Amiga

  • The output of the above command is nearly the same for me.

    Even though I have manually added myself to /etc/sudoers file, my groups output is very weird. It's just xavier666 root

    Kind of stumped here.

  • user-IDs (prefixed with ‘#’)

    And I thought it just meant a comment.

    Thanks for this, I had no idea.

  • For i3, the desktop file is like this (present in /usr/share/xsessions)

     undefined
        
    [Desktop Entry]
    Name=i3
    Comment=improved dynamic tiling window manager
    Exec=i3
    TryExec=i3
    Type=Application
    X-LightDM-DesktopName=i3
    DesktopNames=i3
    Keywords=tiling;wm;windowmanager;window;manager;
    
      

    And sway (present in /usr/share/wayland-sessions)

     undefined
        
    [Desktop Entry]
    Version=1.0
    Name=Sway
    Comment=An i3-compatible Wayland compositor
    Exec=/usr/bin/sway
    Type=Application
    DesktopNames=sway
    
      

    Gdm probably sums up all the DE from both the wayland and x11 sessions.

    There are some files & directories in /etc/gdm3 but I'm too lazy to go through all of them

     undefined
        
    Init       PostSession  Prime     config-error-dialog.sh  greeter.dconf-defaults
    PostLogin  PreSession   PrimeOff  custom.conf             Xsession
    
      

    Thanks for your help.

  • It takes 7+ years to bring a new factory online. more to get all the kinks worked out and at full production

    Not to take away from your point but they also have to

    • make sure product is at par with the previous alternative in terms of quality
    • make sure your supply chain is willing to shift to your new product
    • have a healthy supply of workers OR
    • have good automation in their production line (automation supply should also be sourced from within the country)

    Once you have created this factory (which needs to be subsidized by the government in order to compete with the foreign product), we then apply targeted tariffs so that people can slowly shift to the homegrown product. Doing all this can takes decades of careful planning.

    Tariff is not an ON/OFF switch which Trump thinks

  • I won't give you any free stuff any more

    Gives free stuff next year

    Gigachad

  • Check how your environment variables differ between i3 and sway and see if that might be the issue

    Just running set for each session and then diff should be enough, right?

  • Just the way I launch sway; via gdm.

  • As what user are you executing all these ‘groups’ commands?

    I'm using my default user (xavier666)

    The “normal” user should not be in the root group, and root should not be in the normal user’s group.

    I just made the user a root user/system administrator during the Ubuntu installation process, which is very standard.

    Have you done other things beside the “fix” you mentioned?

    AFAIK, I haven't done any changes. This is a single user system. I checked the contents of /etc/sudoers and these are the only other lines of significance. I didn't change them (Why are there % signs?)

     undefined
        
    # User privilege specification
    root    ALL=(ALL:ALL) ALL
    xavier666    ALL=(ALL:ALL) ALL
    
    # Members of the admin group may gain root privileges
    %admin ALL=(ALL) ALL
    
    # Allow members of group sudo to execute any command
    %sudo   ALL=(ALL:ALL) ALL
    
      

    That “fix” from your op, btw, looks totally valid to me.

    It's working fine also. However, I believe in "don't touch what ain't broke" and "why isn't it documented?"

    However, in my installations I have never touched the sudoer file to make the ONLY user part of sudo group post install. Either I'm dumb or I'm launching sway/wayland with improper permissions.

    I also can't find anything on the arch wiki which deals with this.

    Why isn't the same problem happening on i3?

  • Yeah, I ran it and rebooted it. But no change :(

    I'll do it once more just in case.

  • I'm unsure how to use the command. I added it to the main Sway config file, which means it's executed whenever Sway starts (Post login).

    However, it didn't make any difference. I also ran it manually

     undefined
        
    $ loginctl enable-linger xavier666
    $ sudo visudo
    [sudo] password for xavier666:
    Sorry, user xavier666 is not allowed to execute '/usr/sbin/visudo' as root on <HOSTNAME>.
    
      
  • My lazy hack

    If it looks stupid but works, then it's not stupid

  • these are all text files

    Yeah, it just calls the executable mentioned in the .desktop file (/usr/bin/sway). It should not be a GDM, issue, right?

    I also checked that I don't have seatd installed, which is a "minimal user, seat and session management daemon" mentioned in arch wiki (https://wiki.archlinux.org/title/Sway). Could it be related?

    Sorry, I have to go now. More tonight, if you want.

    No hurry, the fix I am using is not causing issue. I just want to know why this is happening. This is a fun research problem.

    PS: I checked Google and I didn't find anyone who has faced the same issue.

  • Inisde i3 WITHOUT FIX

     undefined
        
    $ groups
    
    xavier666 adm cdrom sudo dip plugdev lpadmin lxd sambashare
    
    $ groups xavier666
    
    xavier666 : xavier666 adm cdrom sudo dip plugdev lpadmin lxd sambashare
    
      

    Inside sway WITH/WITHOUT FIX

     undefined
        
    $ groups
    
    xavier666 root
    
    $ groups xavier666
    
    xavier666 : xavier666 adm cdrom sudo dip plugdev lpadmin lxd sambashare
    
      

    PS: I corrected the username, it should be xavier666. I corrected the main post.

  • but with the way the sway session is started, as opposed to the i3 session. We need more info on this.

    I'm using gdm to start sway. I'm using the laptop's built-in fingerprint scanner to unlock (Not sure if it matters). I saved the fingerprint in the Gnome session long back.

    gdm probably looks inside /usr/share/wayland-sessions and finds sway.desktop and uses it to launch Sway.

    I've tried to keep things as vanilla as possible.

    Isn’t i3 Xorg only, and sway wayland only?

    Correct.

    Maybe wayland is launched using restrictive set of permissions.

  • Linux @lemmy.ml
    xavier666 @lemm.ee

    Weird root permission issue on Sway which is not present in i3

    Hello fellow lemmings

    I am a long-time i3 user and have decided to switch to Sway. I have encountered a weird error which has left me utterly bamboozled.

    I am using Ubuntu 24.04 which has gone from 20.04 -> 22.04 -> 24.04. It has Ubuntu-Gnome, i3 and Sway currently installed.

    The issue

    The error that I'm facing is when I'm using Sway, I simply don't have sudo access.

    This is what the error looks like

     undefined
        
    $ sudo visudo
    [sudo] password for xavier666:
    Sorry, user xavier666 is not allowed to execute '/usr/sbin/visudo' as root on <HOSTNAME>.
    
      

    When I switch back to i3, my permissions are fine for the same user. I have not done any crazy modifications to the sudoer's file as far as I can remember.

    PS: I have added a command to no-sudo xavier666 ALL = NOPASSWD: /usr/bin/brightnessctl

    The "fix"

    I temporarily solved it by adding xavier666 ALL=(ALL:ALL) ALL to the sudoer's file.

    IMO, I think this should not be required. I don't remember ever adding the default use

    Linux @lemmy.ml
    xavier666 @lemm.ee

    Can the US government force Canonical and Red Hat to disallow downloads and development from non US countries?

    Basically the title.

    I have seen the EU-OS/Suse discussions for some months now. However, Ubuntu/Arch/Fedora are extremely mature projects. So competing against them will be hard.

    I want to know how realistic the scenario (described by the question) is.

    Steam Deck @sopuli.xyz
    xavier666 @lemm.ee

    Right time to switching to SteamOS (not Bazzite) on my RoG Ally?

    I am using an RoG Ally and was using Bazzite. I'm currently back on Windows (for warranty purpose. I literally can't stand the Windows experience on handhelds). Once I get my device back, I have to decide between SteamOS and Bazzite.

    I saw the latest SteamOS release works quite well, except for voltage control (I know you can control it using SimpleTDPcontrol).

    If I want to tinker, I can always go back to Bazzite. But Bazzite has some very minor issues (screenshot does not work OOTB/gyro support is slightly cumbersome as you need to switch controller type/no fingerprint support). I have used it for 6 months and the experience for gaming has been fantastic. The Bazzite devs have all my support.

    So my question is will we ever get a proper signal from Valve saying "Yup, it's now fully compatible with the RoG Ally". Right now, i'm getting the message "We are slowly adding support for the Ally. Only features x,y and z are not working".

    Are any of you Bazzite users thinking of jumpin

    Linux Gaming @lemmy.world
    xavier666 @lemm.ee

    Prime Gaming Giveaway (GOG Only) 🥳💫

    Hello everyone, this is my second giveaway.

    I have decided to hoard games no more. I want to give away those games which I'm pretty sure I won't play due to my ever increasing library size. I always wanted to give something back to the Linux Lemmy community, so this is it.

    Rules

    I won't do a first come first serve this time. I'll wait till the weekend is over and do a lucky draw.

    Comment or reply to the game you want and mention any fond memory of gaming you have (1-2 lines).

    One day old accounts are not allowed

    Game List

    • [Random] Saints Row: The Third Remastered
    • [Locked] Mafia II: Definitive Edition
    • [Locked] Yes, Your Grace
    • Colt Canyon
    • [Random] The Talos Principle: Gold Edition
    • The Smurfs 2 - The Prisoner of the Green Stone
    • Dark Sky
    • Grip
    • [Locked] Wolfenstein: The Old Blood (PC) (I might not give this away as an IRL friend has requested. If they don't take it, i'll give it away)
    • Wolfenstein: The Old Blood (Xbox)

    Edit 1:

    Linux Gaming @lemmy.ml
    xavier666 @lemm.ee

    Giving Away Random GoG Games

    Hello gamers,

    I have some games which I want to give away after I finally understood that I'm more of a hoarder than a gamer. I wish I realized it earler then I could give away some cooler games.

    The games are

    • The Coma: Recut
    • Neverwinter Nights: Enhanced Edition
    • Riot: Civil Unrest
    • Coromon

    Ping me if you want them and I'll DM you. Once you have added the key, post in the group that you've used the key.

    Merry Christmas everyone ⛄

    Gaming @beehaw.org
    xavier666 @lemm.ee

    My Experience With The ROG Ally Z1E (Windows/Bazzite)

    Hello there, gamers!

    Ever since the handheld boom since 2022, I wanted to use one because of the concept; play any game anywhere and without the annoyances of a PC. I bought a Steam Deck OLED earlier this year, but because of personal reasons I am now using an ROG Ally (Got it at a huge discount) . This is my experience of using the device for over 3 weeks now.

    Disclaimer: I am a Linux user (Left Windows in 2016) and I don't play games which require anti-cheats, so this post might seem biased. However, I'll try to be as much factual as possible. I'll list the pros and cons of both the OSs as per my personal experience.

    The Windows experience

    There is nothing new to say, everyone knows the first bootup process. Enter your mandatory Microsoft account to access the device. I know there are workarounds for a local account but I didn't want to jinx it. You get greeted with Armory Crate which shows how to manage your device.

    Positives with Win

    Linux Gaming @lemmy.ml
    xavier666 @lemm.ee

    Not trying to clickbait but is this the end for kernel-level anti-cheat?

    From the article

    Microsoft has officially announced its intent to move security measures out of the kernel, following the Crowdstrike disaster a few short months ago. The removal of kernel access for security solutions would likely revolutionise running Windows games on the Steam Deck and other Linux systems.

    Games @lemmy.world
    xavier666 @lemm.ee

    How to decide what kind of controller one should purchase?

    I have a question(s) regarding the various types of game controllers.

    I need a wireless controller which supports PC (Steam Linux mainly and maybe Windows someday). While searching online, I see various types

    1. xbox/ps5/switch controllers : These are for their respective consoles
    2. Mobile/PC controllers : These usually connect via wire/bluetooth/2.4 GHz

    Source: https://www.gamesir.hk

    However, I see in the product specifications page of the console controllers that they also support PC. And the PC controllers sometimes support some of the consoles. The only real difference between controllers, from a technology perspective, is that is some of them support bluetooth/2.4 GHz.

    So I have two questions:

    1. If they are already cross-compatible, why even bother having different types?
    2. How should I decide which type of controller I should buy? It should support PC, console-support is not essential.

    Note: I am a novice in game controllers but aware of different network stacks.

    Edi

    Steam Deck @sopuli.xyz
    xavier666 @lemm.ee

    The terrible tragedy of a stolen Steam Deck

    This is a post I wish I never had to make. Forgive my grammar and spelling as I am a bit emotional.

    My Steam Deck was stolen and I just had it for less than 2 months.

    It has been more than 2 weeks since it happened but it still hurts the same. I wanted to make this post because it was a very costly mistake from my side and I don't want it to happen to anyone else.

    <story>

    It happened when I was shifting from one house to another house and there were lots of maintenance workers at the destination house. After I kept my luggage inside the house, I left to buy some essentials. My mom was the only person left who was watching over the stuff. By the time I came back, the workers had left. I thought I have some free time so decided to pull the Steam Deck out but it was missing.

    <vent>

    I was absolutely devastated; I can't even begin to explain in words what it felt like. I asked, through the person who hired the workers, if they took it. But all the workers refused. I was just cru

    Free and Open Source Software @beehaw.org
    xavier666 @lemm.ee

    Autodesk is a monopoly! We need FOSS for AutoCAD desperately

    Gaming @beehaw.org
    xavier666 @lemm.ee

    How to get good at FPS with a controller, coming from a PC gamer?

    I have been a PC gamer for the majority of my life. But before that, i was a console player on the NES. But NES mainly had platformers, and no 3d games. So i am not used to movement and camera controls simultaneously at all.

    I have purchased a Steam Deck OLED and it's phenomenal at playing platformers and twin stick top down games. However, i am absolutely sucking at FPS games on it. Can't make shots on the controller which are like muscle memory on my PC. I'm also having a slightly hard time on 3rd person over the shoulder games (not as bad as FPS though). It's probably because of my age (30+) I guess.

    My question is that is there a way to improve other than 'git gud'? Example, is there an easy FPS game where I don't have to move or shoot too fast? Or a sample controller exercise game, like we have AimLabs for mouse movement.

    Thanks.

    Steam Deck @sopuli.xyz
    xavier666 @lemm.ee

    An Alternate Reality Of The Steam Deck (Anti-cheat Support!)

    I was thinking about the anti-cheat scenario and this popped on my mine. Consider the following scenario.

    Valve comes out with an alternate OS for the Steam Deck called "Steam OS Secure" which supports anti-cheats. Special proprietary blobs were added to the OS, in collaboration with the game devs, which allow it to monitor metrics at the kernel level. These anti-cheats will only be able to run on an unmodified Steam Deck which gets disabled the moment you "modify" your Deck.

    (I'm unsure what "modify" means here. Maybe if the user creates a root password or if a new layer has been added on top of SteamOS)

    This will come pre-installed with the Deck (Steam Deck 3 maybe), but a seperate OS without the proprietary blobs is also available and can be downloaded/installed right from the Deck itself. This can be switched anytime but it's a lengthy procedure. Obviously, the one without the anti-cheat performs better.

    What do you think about this? Would you approve this? Will your perception

    Minecraft @lemmy.world
    xavier666 @lemm.ee

    Naturally generated 2 tall melons?

    https://files.catbox.moe/eb4wvp.png

    I have never seen this anywhere. This could be as rare as 5-6 tall cactus.

    Edit - Check comments for seed/coords

    Minecraft @lemmy.world
    xavier666 @lemm.ee

    What is wrong with anvils? Why people complain about the level-limit?

    Many people complain that there should not be a level-limit to anvils. However, I have never encountered this issue IF I'm using it properly. I have made the perfect armor / tools with all the best enchants multiple times (on vanilla), and if you combine the books in the correct order, you never reach the limit.

    Minecraft @lemmy.world
    xavier666 @lemm.ee

    Second call for players for Lazcraft SMP!

    Hello everyone. A month back I posted about our new vanilla SMP server, Lazcraft. We received a few applicants and are having a great time.

    This weekend or the next we will be having the Ender Dragon fight, so this would be a great time to have a few more players. Our server is semi-mature now. We have an iron-farm, a slime farm, a trading hall and various other farms. This is perfect for players who want to skip the early game.

    We have a relaxed atmosphere with young adults. As of now, most of the players are from the Asia timezone.

    If you want to join, please put the following details in the comment below.

    • Age range - below 18 / 18-25 / 25-30 / 30 above (not an age restriction. Just to understand the range)
    • Region - EU/East Coast/West Coast/SE Asia
    • Timezone - GMT+-??
    • Type of player - Builder / Technical player / Explorer / PvP expert

    If I find your profile preferable, I'll send you a link to our Discord server via DMs. Please ch

    Linux @lemmy.ml
    xavier666 @lemm.ee

    Should I switch from the older OEM kernel to the newer generic kernel?

    I am using a Dell Latitude 3420 (Ubuntu 22.04.3) and it uses a slightly older OEM kernel 5.14.0-1048-oem. The generic kernels keep getting upgraded but are never used. The current generic that I have is 6.2.0-26-generic and 5.15.0-79-generic.

    So I have 2 questions

    1. Should I leave the kernel as it is? Some threads online say it's better to leave it as it is as an OEM kernel is better for Ubuntu-certified laptops
    2. If I should change the kernel, what would be the best way? I don't want to hard-code the kernel version.
      • If I have issues in the latest generic kernel, I should be able to roll-back to the OEM kernel.

    Related links

    1. https://askubuntu.com/questions/1395080/which-kernel-should-i-use-for-my-hardware-oem-or-generic
    2. https://www.reddit.com/r/XPS/comments/rif7wo/ubuntu_after_installation_oem_kernel_instead_of/
    3. https://askubuntu.com/questions/1387979/removing-a-oem-installed-kernel
    Minecraft @lemmy.world
    xavier666 @lemm.ee

    Lazcraft SMP!

    Hello there!

    I have recently created Lazcraft SMP, a Java vanilla SMP server. It's just been over a week and we haven't even fought the Ender Dragon. We have around 6-7 players with mostly 3-4 players online and we are looking for a few more players. Most of the players are late teens and from Asia timezone.

    The server atmosphere is chill and relaxed. The spawn is on top of a beautiful Cherry Blossom biome. We are focused on exploring the game and not trying to rush any objective. Most of the players are builders or explorers (I am the only technical player on the server). We would be delighted to have people of similar temperament from the Lemmy community. If you would like to join us, please comment below

    • your general location (Country/Timezone)
    • your age range (late 20s/early 20s/teen)
    • your play style (PvP player, building, technical player)
    • what you want to achieve in the server in the long term

    If I find your profile suitable, I'll share a Discord link (sorry Matri

    Meta (lemm.ee) @lemm.ee
    xavier666 @lemm.ee

    Tabs with custom selection of communities

    We already have tab for subscribed / local / all.

    Can we add some custom tabs to that list?

    I have quite a few communities and some communities are more active than others which causes them to fill my feed. The current solution is to visit the community individually but can we make a short collection of communities which I can see all at once?

    Example: The tabs (which can be created by the user) might be like technology, shitposting/memes, hobbies. The user will fill each tab with their own list of communities.

    I'm not sure if it's the right place to ask this since it might be better to ask lemmy-UI for this feature but just putting this feature up here.

    Linux @lemmy.ml
    xavier666 @lemm.ee

    Ubuntu trying to install snap AND Firefox even though I have removed them a year back

    I just tried to upgrade Ubuntu and I suddenly see that new packages want to be installed; snapd and firefox. I don't need Firefox because I'm already using Firefox-ESR as a deb and I certainly don't need snaps.

    Why is Ubuntu doing this? I get it you like snaps but I don't, so don't try to force install it. I had to use apt-mark hold to block the install of snapd and firefox. This is also not an isolated incident. I just checked Reddit and someone made a thread 8 hours back regarding the same issue.

    This thing is giving me Microsoft vibes.

    Kolkata @lemm.ee
    xavier666 @lemm.ee

    Brothers and sisters of Kolkata, welcome to Lemmy!

    I made this community for the people of Kolkata, who wants to leave r/kolkata. Hope we can make this as vibrant as the reddit community!