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

Powered by : @r_channels
Download Telegram
"NORMAL" text in deb version of Chrome

Is anybody else seeing this in their Chrome browser?

On the right side the text "NORMAL" is displayed just above the customize menu.

I just reinstalled my O/S (Pop! OS) and noticed it. Tried changing appearance from GTK+ to classic but it's still there. Also, this is the only window that is displaying this.

Thanks for any feedback.

​

[screenshot of top right corner Chrome window](https://preview.redd.it/vhsp7s7mws841.png?width=251&format=png&auto=webp&s=484f9185ea5a597debc166a4a7fa2078a84cdd88)

https://redd.it/ek07bi
@r_linux
Where to define aliases/functions/variables is the Blink shell on iOS: Is there some .rc file?

Not sure if anyone in this sub uses the Blink Shell iOS app, a Linux command line emulator: https://www.blink.sh

Anywho, I recently started using it for SSHing into remote servers from my iPad. Works perfectly for that.

But when I’m cruising in the Blink shell itself, rather than a remote server, it seems incredibly barebones and user-unfriendly. If I could at least define aliases that persist across shell sessions (e.g., nicknames for my remote servers; custom prompt/`$PS1` variable), it would be much more pleasurable to use.

But unlike e.g., the Bash shell, where there’s typically a `.bashrc` or `.bash_profile` config file for shell customization, I don’t see anything like that in Blink.

Can I just create the file myself? If so, what should it be called? Or is Blink customized in a totally different manner? Or does Blink just suck and can’t be customized at all?

https://redd.it/ek1xfn
@r_linux
How do I do this

I’m in the process of downloading Linux for my chromebook and it’s asking me to enter a new UNIX password. Problem is it won’t let me type anything and if I hit enter twice it just asks me again. What should I do?

https://redd.it/ek2rig
@r_linux
Switch to a better wifi network automatically based on signal's strength

Hi,

I wanted to share a bash version of the python noscript that [u/sqrt7744](https://www.reddit.com/user/sqrt7744/) posted here : [https://www.reddit.com/r/linux/comments/bbzm9t/automatically\_switch\_to\_the\_strongest\_wifi\_signal/](https://www.reddit.com/r/linux/comments/bbzm9t/automatically_switch_to_the_strongest_wifi_signal/)

This noscript adds desktop notifications when switching networks.

#!/bin/bash
min_signal_diff_for_switching=12

# Lets do a scan first
sudo /usr/bin/nmcli -t -f ssid,signal,rate,in-use dev wifi rescan

# And get the list of known networks
known_networks_info=$(/usr/bin/nmcli -t -f name connection show | sed -e 's/^Auto //g')

# What's the current network, yet?
current_network_name=$(/usr/bin/nmcli -t -f ssid,signal,rate,in-use dev wifi list | grep ':\*' | cut -d ':' -f1)
current_network_strength=$(/usr/bin/nmcli -t -f ssid,signal,rate,in-use dev wifi list | grep ':\*' | cut -d ':' -f2)

# Now see if we have a better network to switch to. Networks are sorted by signal strength so there's no need to check them all if the first signal's strength is not higher than current network's strength + min_signal_diff_for_switching.
for network in $(/usr/bin/nmcli -t -f ssid,signal,rate,in-use dev wifi list | grep -v $current_network_name | sort -nr -k2 -t':') ; do
network_name=$(echo $network | cut -d ':' -f1)
network_strength=$(echo $network | cut -d ':' -f2)
if [[ "$network_name" == "" ]]; then continue ; fi # MESH hotspots may appear with an non existent SSID so we skip them
if [[ "$known_networks_info" == *"$network_name"* ]]; then
if [ $network_strength -ge $(($current_network_strength + 12)) ]; then
notification="Switching to network $network_name that has a better signal ($network_strength>$(($current_network_strength + 12)))"
echo $notification
notify-send "$notification"
sudo /usr/bin/nmcli device wifi connect $network_name
else
#echo "Network $network_name is well known but its signal's strength is not worth switching."
exit 0
fi
fi
done

You should run the noscript as normal user (to get desktop notifications) and allow this user to run nmcli passwordless in /etc/sudoers:

fred ALL = NOPASSWD: /usr/bin/nmcli

You may run the noscript on a time basis by editing your user's crontab with crontab -e

* * * * * for i in 1 2 3 ; do /usr/local/bin/ns ; sleep 20 ; done

Hope you'll like it,

Frédéric.

https://redd.it/ek3hmw
@r_linux
Layer 1 GIMP image on top of another?

Can someone instruct me on how to do that? I just want to put one GIMP file/ image on top of another (simply put it in the corner of another image). Nothing complicated...thanks!

https://redd.it/ek4ain
@r_linux
Light distro for use as a web UI for plex server on old-ish TV?

I currently use an old laptop with CentOS to run a plex server. It works fine with streaming to my laptop or phone, but when family visit I'd like to stream to my old-ish TV. It's a smart TV, but it's from around 2013 and isn't an android TV. I can stream to it, but it can't run certain formats (possibly due to requiring DLNA service?).

A possible solution to this is to install a distro with a GUI on the server, keep the server connected to the TV via HDMI, and switch to the server to run the web app.

If all I wanted to do was use firefox for the plex web app and run the plex server on an old laptop, what would be a good lightweight distro? Something based on Ubuntu/Debian based would be good for ease of plex server install, but I'm open to other options if it will provide better performance. I've been running it on CentOS for quite a while, so I'm used to just using the terminal.

https://redd.it/ek5vhs
@r_linux
A beginner needs help

I'm a college senior studying information security. I've had decent amount of experience with Linux. I took a class that required running a virtual Ubuntu server with multiple profiles with different privileges, downloading/configuring/hardening Apache, Postfix, Dovecot, OpenSSH, and PostGresql, and set up the firewall via IPtables. I got pretty good at the CLI, using basic commands like netstat, cp, rm, and many others.

I recently picked up a Raspberry Pi b and downloaded a basic ARM linux distro to keep my CLI skills sharp. I booted it up and thought, "what the heck do I do with this thing?" I don't have any project ideas.

How should I keep up with my linux skills with a blank linux distro and no plans to build something out of it?

Posts like this usually get downvoted to oblivion. Take it easy on me! I'm just an aspiring technologist who lacks direction. I'm sure you've all been there before.

https://redd.it/ek9s1v
@r_linux
I'm looking for a set of noscripts to install a Debian based Linux distribution LIVE CD to a disk partition

Hello.

I need a set of noscripts to turn an existing preinstalled Debian based Linux distribution into a Live Kit (formely known as Live CD) AND another set of noscripts to install the Debian distro Linux LIVE CD to a disk partition. I found this :

[https://github.com/Tomas-M/linux-live](https://github.com/Tomas-M/linux-live)

it can accomplish only the first part of the job. I'm looking for a set of noscripts for the second part. Let me know,thanks.

https://redd.it/ekaxjy
@r_linux
Upgrading Linux Kernel to the Latest.

I'm currently using 2 Linux distro on 2 separate machine. One of the machine being using somewhat latest kernel version, 5.3 and I know the most latest right now is 5.4.8. Most of the distros bring the latest kernel support out of the box. We all knows that Linux kernel being updated so frequent even distros developer couldn't ship their distro up to the current version because of some test need to be done in order to maintain stability support.

In the same time, those kernel updates comes with bug fixes to the hardwares, firmwares as well as security fixes that happening around Linux users. My nature agreed to the latest the kernel version is, the higher the gap between me and other glitches as well as receiving some supports, such as Wi-Fi drivers or CPU/GPU drivers. As of now I never tried to update the kernel manually without, not the one from the app store, command line is what I meant cause some people been talking about the system crash... Is that true?


I wanna know if it's worth or safe or recommended or anything to update the kernel before the distro developer ship the update.

https://redd.it/ekca6z
@r_linux