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

Powered by : @r_channels
Download Telegram
Started using linux in a VM

Found a free course on youtube that's teaching me everything from basic command lines in terminal to using Python. As a future computer information systems student I'm really happy to start learning before I even get to school! This is so fun :) can't wait to learn more.

https://redd.it/fxno5e
@r_linux
I created a tool for automatically authenticating mopidy-spotify with spotify.

I use Spotify to listen to music. It's cheap, it's easy and it works everywhere.

I also wanted to use mopidy + mpc + iris, because I'm a nerd and I want to make my life hard. Also waybar integration. Mainly the first reason, though.

Anyway mopidy works great pretty much out of the box, no problem there. Mopidy-Spotify also seemed to work nicely right away, but then I tried to play some music after a restart. Mopidy was not authorized to actually play any music. I had to reauthenticate and update my mopidy.conf. Annoying to do this on every startup. Shouldn't be hard to write a noscript for this?

Five days later: [https://github.com/JanneSalokoski/msah](https://github.com/JanneSalokoski/msah)


I now have a noscript that starts a firefox window, controls it navigating over to Mopidy-Spotify-authentication page and proceeds with the authentication over on spotify. The noscript reads outputted client\_id and client\_secret, gets sudo access and updates mopidy.conf. It also waits exactly one (1) second before restarting mopidy. It just wouldn't work without...


I learned loads of new things while creating this noscript. Many I wouldn't have wanted to learn, but now I know. Lucky for you, you don't have to learn everything yourself, since I wanted to share this program with you. Or then I maybe just wanted to share my troubles with everyone.


Anyway here you have my final product. A tool for authenticating mopidy on spotify, so you save a few clicks if you go through the trouble of installing my tool.

https://redd.it/fxpp42
@r_linux
Razer laptops now have native keyboard backlight control under Linux

TLDR; Razer uses some odd proprietary way to control keyboard brightness via software that only works under Linux. My project I've been working on for a while finally allows for easy configurable keyboard brightness control

​

This has been a 3 month journey to get to this point. Razer uses a very strange way of controlling the keyboard backlight on their keyboards, such that even Windows does not recognize it like it does for thinkpad keyboards, no keyboard backlight control without synapse under windows.

So I'm pretty happy that I finally worked on this, but essentially managed to expose a sysfs file in /sys/class/leds/ that now allows for KDE and Gnome to see the keyboard backlight as a 'normal' keyboard backlight, and can control the keyboard backlight natively depending on what i set in power management for AC or battery power.

​

Demo video of this working with KDE:
[https://youtu.be/9HrKqD5xZVU](https://youtu.be/9HrKqD5xZVU)

Project link (the testing code is in the procfs\_test branch):
[https://github.com/rnd-ash/razer-laptop-control](https://github.com/rnd-ash/razer-laptop-control)

​

Feedback is welcome from any devs here (I reckon my codebase is seriously messy and needs work).

​

I do eventually hope to mainline this some day!

https://redd.it/fxqy3w
@r_linux
ww - watch, but better

I have been using this snippet as a way of `watch`ing things in a terminal for some time and found it incredible useful. Have posted it to Github in case anyone else also finds a use for it.

In a nutshell, it is `watch`, but with inotify (i.e. file-watching) support, shell alias support, one highlighting support and a few other bits. For my style of working, just makes it way more productive in little things.

https://github.com/jtyers/ww

https://redd.it/fxpozs
@r_linux
Was cleaning out my bedroom and found an old Ubuntu install disk. Probably circa 2005? Was using Suse out of college in 2003. Switched to Ubuntu a couple years later, then to Debian after the Cannocial/ Microsoft partnership. I've played with other distros. What is your distro journey?
https://redd.it/fy1tsh
@r_linux
Redhat 7 disk partition expansion

/dev/sdc has two partitions dev/sdc1 & dev/sdc2. Both mounted on /opt & /var respectively. Since we wanted more space on /opt hence, I added more space on Azure disk and then tried to increase partition size of /dev/sdc1 --- Using fdisk i deleted partition tables for sdc1 & sdc2. I have created new partition table for sdc1 with more space and kept the same size of dev/sdc2. After server reboot /var created issues and does not let server boot up. As it does not have filesystem and mount point. here how it looks like shown below.

[How to get \/var on this partition without loosing any existing data in it.](https://preview.redd.it/zr8d3cmj5wr41.png?width=1045&format=png&auto=webp&s=e50a50f584e88de910182730bd221f7ec46af9f4)

How to get /var on this partition without loosing any existing data in it.

https://redd.it/fy52tf
@r_linux
Linux kernel

Hello all,

hope everyone is keeping safe through the crises..

I'm a Linux beginner to intermediate user, and would like to ask if any of you could recommend a good book to help me understand the Linux kernel. I understand programming and hardware enough to grasp the terms but not looking for something too advanced..

Thank you guys

https://redd.it/fy5kvs
@r_linux
swiper - a libinput gesture handler

[https://git.sr.ht/\~maringuu/swiper](https://git.sr.ht/~maringuu/swiper)
Hello r/linux

I really like having gestures on my trackpad and wanted to do some programming so I decided to write my own programm.

The main feature that I did not find in other gesture handlers are "continous" gestures which means that one command gets execute multiple times during one single gestures. One example is swiping up and down to adjust volume. Or switching workspaces.

​

The code is kind of wip in the sense that I can image some features that could be implemented sometime.

https://redd.it/fxvb96
@r_linux