Linux - Reddit – Telegram
Linux - Reddit
753 subscribers
4.17K photos
207 videos
39.8K links
Stay up-to-date with everything Linux!
Content directly fetched from the subreddit just for you.

Powered by : @r_channels
Download Telegram
I made a Python noscript which sets the APOD as the wallpaper/background image

Hello hello :D

I made a little and simple Python noscript to set the Astronomy Picture of the Day (APOD) as my wallpaper, since last year I used European Space Agency calendar as wallpapers and I had nothing for this year.

There's a systemd service file to run the noscript after the system boots, explaining on the README how to do it.

I did it for myself mainly, and I hope someone else finds it useful.

Here's the link to the Github repo. Feedback of any kind is more than welcome :D

Thanks :D

https://redd.it/lb0sol
@r_linux
Hard coded user/root user


Is there way in redhat Linux, where you prevent even root to create new user accounts? Require this for a reason: basically only two users hard fixed: admin and root. Would need to prohibit creation of any other users even by root.

https://redd.it/lb5fqh
@r_linux
I've just had one of my most chilling experiences of being treated like a second class citizen

I'm having a hard time getting work at the moment. I'm 23 years old knows a decent bit of Linux and Infrastructure.

I never completed my comp sci degree. So I figured I'd go back and get my degree since it seems jobs are so infatuated about having that degree. I've recently started a online-remote school considering we're all still home-bound. I just finished my first course and I'm ready to take my exam.

Come to find out my operating system is 'not supported'. That's fine I hear that often.. I join the school's discord and ask if not supported means "no supported given" or "no you cannot take this test". Boy did I get flamed for being unhappy I don't want a specific machine just to take my school exams. It turns to take these the exam protector software suites must put some ring 0 rootkit in the OS to ensure you're not cheating. I told them "well thanks I should be okay on my /r/vfio vm". I got flamed x5. I should've just left it at that and walked away but it's quite sad people still can't understand the appeal of wanting to use Linux on the desktop. 75% of my classes are linux based in the first place...

Sorry if this is too /r/linuxcirclejerk but I just wanted to share my thoughts, and hear if people had similar experiences.

https://redd.it/lb99le
@r_linux
Recovering Files in Linux

Hello,

I am a student and I have made the cardinal sin of rm ing a file without sudo access in my organization. The file contained important code which I have being working on for a great length. I used vim to edit this file earlier. I thought u linux users might able to offer some guidance. How can I recover that file?

https://redd.it/lbavmd
@r_linux
duplicity restore Errno 13 Permission denied

I'm trying to restore files when I'm getting this error, has anyone had this issue before?

I own the directory where I'm trying to restore files, so that shouldn't be a problem

​

duplicity --file-to-restore nginx file:///nfs/dock/etc .
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Fri Jan 1 21:11:06 2021
GnuPG passphrase:
Error '('Error creating directory ./conf.d', 7)' processing conf.d
Skipping conf.d/status.conf because of previous error
Error '('Error creating directory ./default.d', 7)' processing default.d
Error 'Errno 13 Permission denied: b'./fastcgi.conf'' processing fastcgi.conf
Error 'Errno 13 Permission denied: b'./fastcgi.conf.default'' processing fastcgi.conf.default
Error 'Errno 13 Permission denied: b'./fastcgiparams'' processing fastcgiparams
Error 'Errno 13 Permission denied: b'./fastcgiparams.default'' processing fastcgiparams.default
Error 'Errno 13 Permission denied: b'./koi-utf'' processing koi-utf
Error 'Errno 13 Permission denied: b'./koi-win'' processing koi-win
Error 'Errno 13 Permission denied: b'./mime.types'' processing mime.types
Error 'Errno 13 Permission denied: b'./mime.types.default'' processing mime.types.default
Error 'Errno 13 Permission denied: b'./nginx.conf'' processing nginx.conf
Error 'Errno 13 Permission denied: b'./nginx.conf.default'' processing nginx.conf.default
Error 'Errno 13 Permission denied: b'./nginx.conf.rpmnew'' processing nginx.conf.rpmnew
Error 'Errno 13 Permission denied: b'./nginx.conf20200926'' processing nginx.conf20200926
Error 'Errno 13 Permission denied: b'./scgiparams'' processing scgiparams
Error 'Errno 13 Permission denied: b'./scgiparams.default'' processing scgiparams.default
Error 'Errno 13 Permission denied: b'./uwsgiparams'' processing uwsgiparams
Error 'Errno 13 Permission denied: b'./uwsgiparams.default'' processing uwsgiparams.default
Error 'Errno 13 Permission denied: b'./win-utf'' processing win-utf
Error 'Errno 1 Operation not permitted: b'.'' processing .

https://redd.it/lbar6e
@r_linux
Once again proof that linux will never be main stream, no matter how much you want it to be.

Wipe out windows 10, Try to install latest version of Mint.
All goes well, except for WiFi card. (no Ethernet)

Go to Windows PC to get drivers, no bueno.

Get annoyed, get Ubuntu, same thing.

Network drivers are kinda important. They let you fix all problems, kinda hard without them.

Hence Linux will never be main stream if you cant connect to the net to fix install problems.

https://redd.it/lb8tmt
@r_linux
Just to share a little personal history

I was poor, my mon was a clean lady in a hospital, one day in 2008 (i had 15 years at the time) i gained a schoolarship in a techinical IT course, i was always curious about stuff, i read about windows thin clients and terminal services servers and tried to experiment with them with virtual box in the school lab, it was impossible the dealing with required licenses and microsoft DRM restricted my learning, than i read about something called linux.... a free ("not free like in free ber, but free like in freedon of speech") operational system? sounded interesting, but i was still a total newbie at IT, then i read about a "Linux for dummies" book in my country, it was "Linux servers, a practical guide" from Eduardo Morimoto, it was expensive for me, we were really poor.... i talked to my mother how i liked it, then my mother cuted her hair and sold it to buy the book for me....... holy shit, i dived in it head straight and never came to the surface again...

​

After i learned the fundamentals with the book i could experiment till my hearts content, i was welcomed by helpful community of people more experienced than me, everything i had doubts someone already answered it some forum, or writed an extensive article about it, step by step, in two stances trhough the years i had asked an advanced question in forum expecting for another helpful peer to answer and how shocked i was when the fu**** lead of the project answered my full details.....

​

by these factors my learning process was simply unrestricted, anything i needed to know i just needed to search or ask, i became a senior sysadmin and some collegues asked me "how could learn linux? linux is so difficult"

what? proprietary tools that are difficult, everything is gate keeped, or pay gated

​

well, today im a senior linux system administrator and network infraestructure analyst, i could pay my mon college and now she is an business administrator, it was everything because of linux (and of course my mother), not because of an sole entity, but by the whole that linux is, every developer who contributed code, every writer who keeps publishing about linux, every peer who so helpfully answered any question, even the peers who engaged with me in heated debates about different perspectives

​

if you are reading this thinking if you will try linux or not, come already, you are losing the party

https://redd.it/lbdojh
@r_linux
A better 'cd'

Plain 'cd' is all well and good - but I find myself re-typing the same old paths time and again as I bop about the file system.

It gets tedious even though TAB completion helps a lot.

For many years I used a pushd/popd wrapper called acd-func \- but pushd/popd's stack is local to every session and is ephemeral hence I lost my breadcrumbs every time I logged in or jumped to another terminal window.

So I wrote ccd \- it keeps a permanent store of directories that I visit and uses fzf to let me choose one. It also offers the directories under $PWD.

To try it out, install fzf, download and chmod +x ccd to your $PATH and do this:

source <( ccd -x )

Now you have a new 'cd' using fzf and the persistent store of breadcrumbs. If you like it, put that line into your .bashrc, log out and log back in again. All your terminals (and the system console) will see the same persistent store. More details in:

ccd -h

... written in bash, for bash - but it seems to work in zsh too. It's not working in fish yet.

Enjoy! If you like it and decide to use it, feel free to give me an upvote here, for encouragement.

https://redd.it/lbfhjc
@r_linux
Linux vs peacock streaming service



I mean we got HBO and Disney plus working it's the only one left without Linux support and wine has its issues.

can the community help me win them over by contacting peacocks support center and tell them to support Linux?

https://www.peacocktv.com/help/web-to-case

It is a growing service and will eat up WWE content in the US here soon.

WWE network worked with linux, peacock doesnt so... yeah I would like peacock to support us natively and we did get HBO working.

https://redd.it/lbg3en
@r_linux
Only Apple would have the gall to imply that normal scroll is "unnatural" in Mac OS preferences. I love it.

Just got my first Mac (MPB M1) and laughed my ass off upon finally figuring out how to turn off inverted mouse scroll.

Key takeaways:

1) Somehow, there has been a rift in the universe in which Apple People think that scrolling up should make the page scroll down while the Windows and Linux folks expect that up=up.

2) Apple People and Windows People have been living with each other, side by side, and somehow we didn't even realize the mountain that lies between us. There never was a shared reality in the first place.

3) Given the Apple designers' attention to detail, I will go ahead and assume that I've been doing it unnaturally all along. Hello, I'm a Mac.

https://redd.it/lbhv6d
@r_linux
Amazon Alexa / Apple Siri/ Google Home alternatives for the GNU/Linux ecosystem

Hi Reddit.
I was thinking on developing a multipurpose (speech-to-text)->(text-to-command)->(command-output-to-text)->(text-to-speech) daemon for GNU/Linux desktops.

I thought that before I get into such a large endeavour, I would like to know if there are some engines that do this already (FOSS licensed of course!) So are there any that have a pipeline similar to what I have described? Or that can be modified to support such a pipeline?

I am aware of Mozilla's Deepspeechhttps://github.com/mozilla/DeepSpeech. It satisfies my needs for the first part of the pipeline.

However, I can't find good FOSS text-to-speech engines that don't sound like the late-great Dr. Hawking(espeak etc). No offense, I kind of like this kind of voice, but widespread use for desktop users would require 'better' TTS implementations. Any idea if the TTS used by google or twitch have neural-nets / research papers associated with them? I don't mind having to train such a TTS system on a neural network since I have a decent Nvidia GPU.

Ideally I would like such an engine to work independently of the X server/ Wayland Server and as a daemon. One could then imagine each desktop environment could have it's own method of calling the daemon, using UNIX sockets or dbus.

I am wondering what others think about such a project.

https://redd.it/lbigep
@r_linux
Can we have an objective, non-FUD, user-centric comparison/discussion of Snap and Flatpak for 2021?

All of the online comparisons of Flatpak and Snap that I find on Google fall into one of the below categories:

1. "Snap is proprietary trash."
2. "Flatpak is insecure trash."
3. Useful information, but aimed at developers.
4. Useful information, but written >3 years ago.

As an end user, none of the above is remotely helpful. At least not in 2021.

Is Snap truly proprietary in the sense of being closed source? From a pragmatic, end-user perspective, how does that impact my experience using it? Have Canonical been using nefarious means of punting it?

Is Flatpak really comparatively insecure? If so, in what specific ways? (Are the issues on a per-package basis? Are there issues with Flathub? Is the entire framework fundamentally insecure? [inadequate sandboxing?\])

I'm a Gentoo user and I'm happy to install 99% of my applications via the oft-frustrating-but-god-i-love-it system that is portage, but there are cases where I'd prefer to have third-party software sandboxed for security and to sidestep dependency nightmares (I'm looking at you, Steam).

I also get that I can use both simultaneously, but again the question of practicality comes to mind. If the same package is available as both a Snap and a Flatpak, which one should the user opt for and why? All other things being equal, which one would be more stable? Smaller? Faster? More secure? Should a user really have to run two near-identical frameworks simultaneously because nobody can provide a straight answer as to which one offers the better end-user experience?


Addendum: I haven't forgotten about AppImage, but I personally feel that it's different enough in principle (one file per app, non-sandboxed, not [easily\] updateable) that it's not as directly comparable to either, but feel free to discuss its merits and drawbacks within context. :)

https://redd.it/lbjb8n
@r_linux
Linus has a very negative opinion about modifying the strn_copy_from_user function in the linux kernel to be slower by allowing padding
https://lkml.org/lkml/2020/11/13/903

https://redd.it/lbi6la
@r_linux
How to Remove all your config data and file for a package/software in Linux

To remove just file zilla :

sudo apt-get remove packagename

Remove filezilla and it's dependencies :

sudo apt-get remove --auto-remove packagename

Remove all your config data and file :



sudo apt-get purge --auto-remove packagename

&#x200B;

https://redd.it/lbko60
@r_linux
I saw a similar post today so I'll give it a try myself. My personal story, AKA how I stumbled onto Linux.

Sorry if my English isn't spot-on here-and-there, I'm not a native speaker.

## Programming

I was like 13 or 14 at the time, interested in computers and already more invested in them than most of my peers. Of course I was a Windows user, as far as my knowledge went at the time the only two desktop operating systems that existed were Windows and MacOS, tough I didn't have the money for either of them, so I just ~~pirated~~ downloaded Windows instead.

I was doing things like learning basic web development in HTML and CSS, writing l337 h4x0r, 'malicious' powershell noscripts (infinite reboot loop, etc.), and that's about it. I didn't really understand how they worked though, I mostly just copied some base noscript and slightly modified it to my liking.

Later, in high school, we were introduced to our new IT teacher. Keep in mind my school has absolutely nothing to do with IT, in fact, I was in a language-focused class, not sure why to be honest. This teacher basically just taught every boring basic stuff most IT teachers do, which is the MS Office Suite. Until one day, we went into class and he said "Ok kids, let's do something new today". He told us to open up the very first IDE I've ever used, which is Visual Studio.

He taught us (or at least, made an attempt to teach us) C# basics. Like very basics, I mean declaring variables and basic mathematical operations, stuff like that. Nobody in my class was interested at all and most of them had troubles and just gave up and asked me for help. I, on the other hand, was absolutely hooked.

Later that day, at home, I immediately downloaded Visual Studio and started experimenting with C#. It wasn't until the next morning, when I had opened up Visual Studio for the second time, that I was warned that my license was invalid. "No way, I have to pay for this stuff?". Turns out no, only for the non-community editions. Still, I felt restricted already even though I wouldn't have even been able to use the features offered by the paid versions yet. I was, after all, just writing some console applications.

## Linux

I was, more often than not, really annoyed by the sluggish nature of my PC. I didn't really complain, as I thought it's because my computer is a bit old (about 7 years old at the time of writing, this is still the same PC). It was an inconvenience, nothing more, it was still usable.

This went on for a few months, until the PC had become unusably slow. Since I spent lots of time on Discord servers, subreddits and forums relevant to programming in general, I've seen 'Linux' pop up a lot. All I've heard about it before was exactly once, when I was like 11 is that it's this thing on your PC where you can reprogram everything you want, however you want. That's it, I didn't even know it was an operating system, only that is was this thing. I've also heard that it can be ran from a USB without installing. Out of curiosity, I've tried it. It was, different, to say the least. That's what my thoughts were. Sure it was a little faster, but nothing spectacular. That was until I live booted this cool hacker OS, Kali.

I was blown away by what the system was capable of doing. Suddenly, all those restrictions posed by Windows and just generally Microsoft DRM were gone. I could do anything I wanted to.

After looking at many tutorials online, I managed to hack my own WAP at home. I brute forced it using a WPA handshake. I felt so cool, even though I didn't really understood how or why it worked, all I basically did is I copied a bunch of commands, pasted the into the terminal and hit Enter.

I also hacked the school's WiFi, which was reserved for school staff only, then entered the school sysadmin's office and silently slid the password on his desk which was fun I guess, and since he just laughed at the whole situation instead of being mad, we became pretty good friends and still sometimes talk to this day.

## Switching

I heard about dual booting from the previously mentioned
communities before. I was so blown away by Kali that I wanted to install it. So I did. And so my first dual-booted Linux install was born, Kali. Some time after I obviously discovered the drawbacks of Kali compared to other OSs, and I switched to, at first Ubuntu, then Manjaro, and now I'm on Arch.

My curiosity and hunger for learning made me a decent hacker. I learned about new tools to use, I learned about Docker and Metasploitable, combined the two to create magic (I still use that same container to this day), and just experimented a lot in my free time. I also bought some books about hacking, which were really disappointing to be honest. Despite the noscript (translated to English, not the original noscript), Advanced Hacking Techniques, all it really did, mostly, was show me how to secure a Windows system.

I still do a lot of coding, though not just C# anymore. I also know some Java, Python, PHP, as well as MySQL and bash (if you count those). Hacking is something that I always enjoyed, however, from time to time I would take a break for a month or to and focus on coding instead, but it always popped back into my mind and I was back in action again.

## Conclusion

Linux gave me the power and the tools to discover my passion, out of which I have solid plans to make a career. I probably never would have been able to achieve this without Open Source Software. It also technically allowed me to use the same PC to this day without having to buy a new one, so that's cool.

https://redd.it/lbmqcf
@r_linux
Lubuntu Bootable USB

So i switched on Lubuntu 20.04 a while ago,now i would like to get back on Windows 7,i downloaded the Iso and i have the flash drive ready. How do i make a Bootable Windows USB Flash Drive in Lubuntu? I need to write more for this to be posted so yeah,i don't really like Lubuntu because i need to do multiple things in order to play something and i have some problems on this operating system like graphical glitches or apps that just give random errors i can't fix.

https://redd.it/lbnqi4
@r_linux