Linux - Reddit – Telegram
Linux - Reddit
751 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
Bionic libc Based Linux Distro

I wonder Is there a Linux distro that uses Google's bionic libc by default? İf there, what is? And if no, is there a use case for bionic libc on desktop Linux distros? Is it possible to run regular Linux programs via bionic libc? Are there any advantages bionic libc over gnu libc?

https://redd.it/leue20
@r_linux
Free and Easy Keyboard Cover

Take a couple of sandwich bags, and cut the edges to open them long-wise,

Stretch them out, maybe you'll need a bag-and-a-half,, a bit of Scotch tape, and you've got a hugely efficient keyboard cover.

Chow down to your heart's content.

(The LifeTips bot rejected me..sob sob)

https://redd.it/lf0pcn
@r_linux
Terminal as "pop-up" open file menu for apps!

Here goes a huge ideia! When we are at Firefox or another any program and goes to Ctrl+o to open a file, it will be amazing if we could open a terminal instance instead of a GUI pop-up. As if any terminal emulator was launched from there.

https://redd.it/lf0ud4
@r_linux
Zoom on Linux is TERRIBLE.

I use Zoom (as I suspect many people do).

Last I used Zoom in Novemeber/early December…

<rant>

1) Joining meetings doesn't work half the time (in my case, waiting rooms are enabled). If I try to join, I literally get stuck and I never join. Then I have to leave, rejoin, and hope that I can be let in properly. It usually works the second time, but maybe not.

2) Joining breakout rooms doesn't work. Instead of joining the breakout room, Zoom on Linux has a MUCH better feature: kicking you out of the meeting (while it looks like you're still joining that breakout room for others in there) :P

2a) Then, since the meetings I'm in are classes, if you try rejoining the meeting, you get to miss the entire class since the teacher is in a breakout room and can't see who's in the waiting room. Great design choice, Zoom!

2b) Oh, and if you manage to join a breakout room, Zoom will randomly decide to set your audio output volume to like 10%, so good look scrambling around wondering why your audio is randomly broken (hint: it's not Linux's fault).

3) Reactions literally don't exist. Hmm… so if someone does a reaction/your meeting is based around reactions, you won't be able to see it.

4) The styling is literally awful. Half the elements on my screen look poorly positioned and sometimes they overlap and the borders don't work.

Solution: install a Windows VM. Oh, and if you can't do that since you have a bad computer, you're screwed. Haha. The web version of Zoom doesn't work with microphones on Linux for some reason and even if you do get it to work, the latency is god-awful and your webcam will stream at a whopping 2fps.

So, because of 1) and 2) especially the first, STOP SAYING ZOOM WORKS ON LINUX. It is a awful buggy mess and barely can keep itself together.

Also, Zoom? Please STOP telling me that Zoom "works" on Linux and add a disclaimer or something to your website that you ship an unstable piece of garbage to your third-class Linux users.

</rant>

https://redd.it/lf3mih
@r_linux
GNOME Shell Extensions error

I'm trying to configure gnome-shell-extensions so I can set up a better interface for NordVpn. After I installed the necessary packages in the terminal it still posted an error that says, "Unable to locate GNOME Shell settings or version. Make sure it is installed and running." I've tried re-running the commands to install but to no avail. Anyone had the same issue?

https://redd.it/lf3afx
@r_linux
Turning my screen off with a keyboard shortcut, or: Why GNU/Linux is easier and more user-friendly than Windows.

maybe the power button on your monitor is broken, it doesn't matter why: you want to turn the thing off without touching it (that includes yanking the cable out). you want to press a single button on your keyboard and have the screen turn off

most distros make this easy to setup through the GUI: just open the preinstalled keyboard applet, create a new shortcut, paste "xset dpms force off" or into the command box, and press the button you want to use. that's literally it. the moment you press the assigned button the screen goes into standby and wakes up under the same conditions as it does when you've set it to turn off automatically after X minutes of inactivity

you can even control individual monitors. i haven't tested this but "xset -display $DISPLAY dpms force off" or "xrandr --output $DISPLAY --off" should turn it off ("xrandr -q" to list your monitors) and "xset -display :0.0 dpms force on" or "xrandr --output CRT1 --auto" should turn it back on. in the xrandr command the "auto" can be replaced with "on" and you can add something like "--right-of $OTHERDISPLAY" to control its relative position

 

now i want to do the same thing in windows. here, the relevant powershell command is "(Add-Type 'DllImport("user32.dll")public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)"

yikes. whatever, not like it matters when i'm only going to copy-paste it once. except windows won't let you just paste that into a shortcut. you have to paste it into powershell or a .ps1 file. except for "security reasons" windows doesn't let you run unsigned .ps1 files or something? i dunno. the official workaround is to invoke powershell through cmd with the following command: "powershell (Add-Type 'DllImport(\"user32.dll\")^public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)"

microsoft even provides a .cmd file with just this command, and some advice on how to turn it into a keyboard shortcut: you know how you can right-click a .exe and create a shortcut to it on your desktop? well you can ONLY do that with a .exe, so we need to convert our .cmd file. microsoft provides a tool to do that too, and it only takes 10 steps to point it at the file we want to convert. half a minute later it spits out an .exe that's basically a self-extracting zip of the original .cmd file. when run, it extracts the .cmd and runs it, which invokes powershell, which imports user32.dll and then sends the monitor shutdown command

now that we have that, we can right-click it, create a shortcut, right-click THAT, and assign it a shortcut key. success! ...sorta

first of all, the converter is unreliable as hell. 1 out of 10 .exes i generated worked, 1 spawned an empty cmd window, and the other 8 did nothing at all. second of all, windows has certain preconceptions about which keys are suitable for shortcuts. while linux would let me assign any key (or combination of keys) i could come up with, windows is not a big fan of me repurposing the "wake" key on my keyboard. which is sad because the only thing it does is pull the PC out of a sleep state, and i don't need a dedicated key for that when EVERY key pulls my PC out of sleep state. so that's out. guess i'll pick a different key i don't use? after trying 5 different keys with the same result i get one windows accepts... only for it to automatically add CTRL+ALT in front of it. this forces me to use a three-key, two-hand combo, and we can't have that

after some digging, i find out CTRL+ALT is not added to every key. the numpad is an exception. so i compromise and assign the "minus" key on the numpad as my shortcut. the "dash" key on the main keyboard serves the same purpose, so i'm not really losing anything. finally i have a single-key shortcut to turn my screen off! i press it... and nothing happens

why? maybe "minus" isn't valid even though the
GUI accepted it? i wouldn't put it past windows. but the same happens when i try CTRL+ALT+F and CTRL+ALT+6 and a bunch of other combinations. is it just broken? more digging gets me this lol-worthy answer. TLDR:

>before launching a program via its shortcut key, Windows first polls all currently running programs and asks "Is this your shortcut key?" If so it switches focus to that window rather than spinning up a new copy of the program. The problem happens when a window somewhere refuses to answer the question. This can be a program that's generally non-responsive for some reason, though it can also happen for other reasons (see below). Windows waits 3 seconds before muttering "jerk" under its breath and moving on to the next window to ask it the same shortcut question.

so i try my shortcut again and wait. ~10 seconds later, my screen turns off! hooray!

 

note: this is the official solution using built-in tools. it's probably a lot easier to just install autohotkey and use that

https://redd.it/lepvcp
@r_linux
install uninstall loop

Hi all,

&#x200B;

I recently got into the world of NAS (ubuntu server).

A lot is running nicely.. PLEX, minecraft, I even ahd a wordpress server running, but it had a small hickup with the MYSQL server, so I uninstalled it..At least, I thought I did.

Errors were encountered while processing: /tmp/apt-dpkg-install-0TJWYH/06-mysql-server-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

and there it went down hill.

Preparing to unpack .../mysql-server-8.08.0.23-0ubuntu0.20.04.1amd64.deb ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initnoscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mysql-server-8.08.0.23-0ubuntu0.20.04.1amd64.deb (--unpack):
new mysql-server-8.0 package pre-installation noscript subprocess returned error exit status 1
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server8.0.23-0ubuntu0.20.04.1all.deb ...
Unpacking mysql-server (8.0.23-0ubuntu0.20.04.1) ...
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-8.08.0.23-0ubuntu0.20.04.1amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@vicsserver:/home/victoroos# sudo mysqlsecureinstallation
mysqlsecureinstallation: ERROR unknown variable 'default-character-set=utf8mb4'.

Securing the MySQL server deployment. Enter password for user root: Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) root@vicsserver:/home/victoroos# ^C root@vicsserver:/home/victoroos# sudo service mysql start
failed to start mysql.service: Unit mysql.service not found.

I already tried these steps:

stopping or starting:

Stopping mysql (via systemctl): mysql.serviceFailed to stop mysql.service: Unit mysql.service not loaded. failed! and When I start: Starting mysql (via systemctl): mysql.serviceFailed to start mysql.service: Unit mysql.service not found. failed!

f install:

victoroos@vicsserver:~$ sudo apt -f install sudo password for victoroos: Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libmysqlclient21 libsnappy1v5 libterm-readkey-perl mariadb-common php7.4-mysql Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: mysql-server-8.0 Suggested packages: mailx tinyca The following NEW packages will be installed: mysql-server-8.0 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed.

Now, I can't install anything (I tried to update my plex)

victoroos@vicsserver:~$ sudo apt-get purge mysql-common mysql-server-8.0
sudo password for victoroos:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mysql-server-8.0' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libmysqlclient21 : Depends: mysql-common (>= 5.5) but it is not going to be installed
mariadb-common : Depends: mysql-common (>= 5.6.25) but it is not going to be installed
mysql-client-8.0 : Depends: mysql-common (>= 5.5) but it is not going to be installed
mysql-server : Depends: mysql-server-8.0 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
victoroos@vicsserver:~$ ^C
victoroos@vicsserver:~$ sudo apt --fix-broken
E: Command line option --fix-broken is not understood in combination with the other options
install uninstall loop

Hi all,

&#x200B;

I recently got into the world of NAS (ubuntu server).

A lot is running nicely.. PLEX, minecraft, I even ahd a wordpress server running, but it had a small hickup with the MYSQL server, so I uninstalled it..At least, I thought I did.

`Errors were encountered while processing: /tmp/apt-dpkg-install-0TJWYH/06-mysql-server-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)`

and there it went down hill.

Preparing to unpack .../mysql-server-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initnoscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mysql-server-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb (--unpack):
new mysql-server-8.0 package pre-installation noscript subprocess returned error exit status 1
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_8.0.23-0ubuntu0.20.04.1_all.deb ...
Unpacking mysql-server (8.0.23-0ubuntu0.20.04.1) ...
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@vicsserver:/home/victoroos# sudo mysql_secure_installation
mysql_secure_installation: [ERROR] unknown variable 'default-character-set=utf8mb4'.

Securing the MySQL server deployment. Enter password for user root: Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) root@vicsserver:/home/victoroos# ^C root@vicsserver:/home/victoroos# sudo service mysql start
failed to start mysql.service: Unit mysql.service not found.

I already tried these steps:

stopping or starting:

Stopping mysql (via systemctl): mysql.serviceFailed to stop mysql.service: Unit mysql.service not loaded. failed! and When I start: Starting mysql (via systemctl): mysql.serviceFailed to start mysql.service: Unit mysql.service not found. failed!

f install:

victoroos@vicsserver:~$ sudo apt -f install [sudo] password for victoroos: Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libmysqlclient21 libsnappy1v5 libterm-readkey-perl mariadb-common php7.4-mysql Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: mysql-server-8.0 Suggested packages: mailx tinyca The following NEW packages will be installed: mysql-server-8.0 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed.

Now, I can't install anything (I tried to update my plex)

victoroos@vicsserver:~$ sudo apt-get purge mysql-common mysql-server-8.0
[sudo] password for victoroos:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mysql-server-8.0' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libmysqlclient21 : Depends: mysql-common (>= 5.5) but it is not going to be installed
mariadb-common : Depends: mysql-common (>= 5.6.25) but it is not going to be installed
mysql-client-8.0 : Depends: mysql-common (>= 5.5) but it is not going to be installed
mysql-server : Depends: mysql-server-8.0 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
victoroos@vicsserver:~$ ^C
victoroos@vicsserver:~$ sudo apt --fix-broken
E: Command line option --fix-broken is not understood in combination with the other options
victoroos@vicsserver:~$ sudo apt-get purge mysql-common mysql-server*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'mysql-server-5.5' for glob 'mysql-server*'
Note, selecting 'mysql-server-5.6' for glob 'mysql-server*'
Note, selecting 'mysql-server-5.7' for glob 'mysql-server*'
Note, selecting 'mysql-server' for glob 'mysql-server*'
Note, selecting 'mysql-server-8.0' for glob 'mysql-server*'
Note, selecting 'mysql-server-core-5.5' for glob 'mysql-server*'
Note, selecting 'mysql-server-core-5.6' for glob 'mysql-server*'
Note, selecting 'mysql-server-core-5.7' for glob 'mysql-server*'
Note, selecting 'mysql-server-core-8.0' for glob 'mysql-server*'
Package 'mysql-server-5.5' is not installed, so not removed
Package 'mysql-server-5.7' is not installed, so not removed
Package 'mysql-server-core-5.7' is not installed, so not removed
Package 'mysql-server-core-5.5' is not installed, so not removed
Package 'mysql-server-core-5.6' is not installed, so not removed
Package 'mysql-server-5.6' is not installed, so not removed
Package 'mysql-server-8.0' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libmysqlclient21 : Depends: mysql-common (>= 5.5) but it is not going to be installed
mariadb-common : Depends: mysql-common (>= 5.6.25) but it is not going to be installed
mysql-client-8.0 : Depends: mysql-common (>= 5.5) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
victoroos@vicsserver:~$ sudo apt-get purge mysql-common mysql-common*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'mysql-common-5.6' for glob 'mysql-common*'
Note, selecting 'mysql-common' for glob 'mysql-common*'
Note, selecting 'mysql-common' instead of 'mysql-common-5.6'
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libmysqlclient21 : Depends: mysql-common (>= 5.5) but it is not going to be installed
mariadb-common : Depends: mysql-common (>= 5.6.25) but it is not going to be installed
mysql-client-8.0 : Depends: mysql-common (>= 5.5) but it is not going to be installed
mysql-server : Depends: mysql-server-8.0 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

&#x200B;

&#x200B;

I hope I gave enough insight on what I already tried?

&#x200B;

cheers

Victor

https://redd.it/lf89vt
@r_linux
What should be used instead of grub loader?

I have been using linux mint for few years but I always get to some hickups. Usually I use it for few months and almost always something in grub loader gets broken(sometimes it's just broken packages and stuff like that but sometimes I lose eletricity and have to repeat everything). Long story short what do you use instead of grub loader?

https://redd.it/lf98le
@r_linux
Name workspaces in Ubuntu 18

When I click the windows key, on the right, I can see my workspace. Thing is, I can't seem to name them like in Windows. Is it possible to easily name & view workspaces, so that when I go to the workspaces, I can see the name I gave to each one?

I'm on ubuntu 18.04.

Huge thanks ahead!

https://redd.it/lf9dv4
@r_linux
What’s your way to migrate your data/prefs to a new desktop?

I know you should just be able to migrate your home and all the prefs are stored in dot-files, but that doesn’t always work, for once you also have to have the same programs installed.
You can easily do that by extracting the list of packages installed in the old laptop and then pass that to your package manager, still, it’s kinda of a lot of work.

Is there an application that will paese all my dot-files, installed packages and allow me to choose what to re-install in the new desktop and automatically put the relevant dot-files there?

What about stuff in /etc or some other place in the system, like network-manager stuff (I’ve got heaps of VPN and remmina stuff) and various tools like apache or dnsmasq or whatever I might need and have customized/confed/added user data to it in the past.

I didn’t keep track of everything I did, that’s why I was thinking maybe somebody already did something to do this easily without me having to reinvent the wheel.

What about KDE, I have a number of settings/conf I do (I’m on fedora), what’s your way to migrate these (for this case I believe KDE should manage with the dot-files in my home)

https://redd.it/lfcsbj
@r_linux
TUTORIAL Install Brother old drivers in Raspberry PI with QUEMU (pretty easy)

Hi, just managed to print from my Android device in my old DCP-197C and I want to share it with you

I don't know if I miss something, because I tried it so many times, but I want to write somewhere what I did today, when it finally worked:

INSTALL ALL THE NECESARY STUFF

apt-get install qemu binfmt-support qemu-user-static cups a2ps

ADD ARCHITECTURE

dpkg --add-architecture i386

DOWNLOAD LIBC6 FOR i386 (I found it here)

wget `old.kali.org/kali-security/pool/main/e/eglibc/libc6_2.13-38+deb7u8_i386.deb`

IF YOU TRY TO INSTALL THIS, YOU WILL MESS AROUND WITH APT, SO WE WILL EXTRACT THE DEB AND COPY THESE FILES MANUALLY

>dpkg -x libc6_2.13-38+deb7u8_i386.deb data
>
>sudo cp -r data/lib/* /lib
>
>sudo cp -r data/usr/* /usr
>
>sudo cp -r data/etc/* /etc

RUN THIS AND ADD IT TO BASHRC TO RUN IN EVERY REBOOT

EXTRA_OPTS="-L /lib/i386-linux-gnu"

DOWNLOAD AND INSTALL YOUR DRIVERS - FOR ME:

>wget https://download.brother.com/welcome/dlf005405/dcp197ccupswrapper-1.1.3-1.i386.deb
>
>wget https://download.brother.com/welcome/dlf005403/dcp197clpr-1.1.3-1.i386.deb
>
>sudo dpkg -i dcp197ccupswrapper-1.1.3-1.i386.deb
>
>sudo dpkg -i dcp197clpr-1.1.3-1.i386.deb

https://redd.it/lfaox9
@r_linux
TIL that you can't use microsoft's new python language server on unofficial builds of visual studio code.

Basically the noscript.

Vent ahead

I was trying out VS Code for using the python, but was not able to install Pylance language server. It does not show any error or warning, when you change from the default language server (jedi) it just sits there.

So after digging a little bit I found this.

Not sad just a little disappointed. I mainly use vim with a language server protocol client like coc.nvim but they recently archived coc-python and recommends using coc-pyright. It's alright but the completion is not as good as microsoft's initial language server mpls, can't really complain pyright is a type checker which it does quite well and jedi usually lags a lot on large project and modules.

https://redd.it/lfi9in
@r_linux
How to get static routes and running services remotely for Linux machines?

I need to determine if the Red Hat 7 Linux machines in our environment have static routes specified in the VM?
Also, I need to check the services running on these machines before patching and compare that to services running after reboot and list out the ones that have failed to start after reboot to make post reboot checks easier.


I am very new to Linux and thus need help in creating a noscript that can achieve this.
Please advise how I can do this.

https://redd.it/lfld2w
@r_linux
Lightweight terminal emulator suggestions?

Hello, I hope this doesn't fall under the category of "support question." If it does, let me know and I'll promptly remove.

I've been sort of jumping X11 terminals for a while, going through Konsole, st, and Alacritty to name a notable few.

I like the speed and lightweight feel of terminals like Alacritty and st, but they can't take IBus input methods, which is beginning to become problematic.

Konsole has no such problem, but feels a bit bloated.

So does anyone have lightweight terminal emulator suggestions?

https://redd.it/lfnesj
@r_linux