Linux - Reddit – Telegram
Linux - Reddit
773 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
Weekend Fluff / Linux in the Wild Thread - June 14, 2019

Welcome to the weekend! This stickied thread is for you to post pictures of your ubuntu 2006 install disk, slackware floppies, on-topic memes or more.

When it's not the weekend, be sure to check out r/WildLinuxAppears or r/linuxmemes!

https://redd.it/c0mmik
@r_linux
Grub is not necessary and causes slower boots!

Over the years I've noticed a few people mention that Linux didn't boot up as fast as they originally thought it would before they switched. Although this is probably a result of multiple reasons, (BIOS options, drive speed, services, and drivers enabled for startup) a lot of the time grub is one of the culprits. If you're using a systemd distro, grub is not needed and you can use systemd-boot to improve boot times.

Other things you can do to improve boot times:

- Go through BIOS and disable boot splash image and other boot checks like non-installed drives or the network chip you're not using.

- Set the systemd timeout selector to 0 to skip the selection menu (/boot/loader/loader.conf)

- Reduce the number of services being started by systemd

- Use a custom kernel that has a minimal amount of modules/drivers for your system.

- Use an SSD(preferably NVME)

With all of these optimizations, I've been able to go from powerbutton to login (userland) in 6 seconds.

edit: I've also heard that using coreboot or libreboot can improve boot times but I haven't been able to personally verify it.

edit2: Apparently `EFI Stub` is faster than both systemd and grub.

https://redd.it/c0m4uf
@r_linux
Basic DMS. Full text search on image pdf,jpg and png files

I've created a very simple bash noscript which I decided to share here because it may be useful to many linux user. The goal is to have all your documents easily searchable using only default Ubuntu/Gnome tools.

It will first convert all jpg/png image to pdf, then it will verify each pdf if they are only image or if it has text on it. If it doesn't, the noscript will run OCR and append the text to the file. Using any Pdf reader, you will be able to copy/paste text regardless if the file was originally only image or not.

Beside that, you will be able to search inside all the files using only Nautilus (default Ubuntu/Gnome file manager), just remeber to select "Full text" under the arrow down search menu.

## Instructions:

1. Install the following packages: tesseract-ocr, tesseract-ocr-lang, ocrmypdf, imagemagick (*)
1. Create a text file with the noscript below. Save it on a directory on your $PATH. Give execution permission
3. Usage: imgtopdf [directory] [lang] (*)

(*) To know all available languages, type on the terminal: ` apt search tesseract-ocr-* `

*This noscript will remove the jpg/png image after converting*

## Script: imgtopdf

```bash
#!/bin/bash
OLDIFS="$IFS"
IFS=$'\n'
DIR="$1"

trap "echo Exited!; exit 2;" SIGINT SIGTERM
test -n "$DIR" || (echo "Error: Unknown directory"; exit 1)

cd "$DIR" || (echo "Error: Unknown directory"; exit 1)
IMAGES=$(find . -iname "*.jpg" -o -iname "*.png" 2>/dev/null)
for IMAGE in $IMAGES; do
IMAGE_PDF="${IMAGE%.*}.pdf"
if convert "$IMAGE" "$IMAGE_PDF"; then
echo "Created $IMAGE_PDF"
rm "$IMAGE"
else echo "Error when creating pdf from $IMAGE"
fi
done

PDFS=$(find . -iname "*.pdf" 2>/dev/null)
for PDF in $PDFS; do
HAS_TEXT=$(pdftotext "$PDF" - | wc -c)
if [ "$HAS_TEXT" -lt 10 ]; then
if ocrmypdf -l por "$PDF" "$PDF";
then echo "Extracted text from $PDF";
else echo "Couldn't extract text from $PDF"
fi
else echo "Text from $PDF already extracted"
fi
done

printf "\\n All files from directory\\n"
IFS="$OLDIFS"
```

https://redd.it/c0lrmh
@r_linux
Lenovo is Now Shipping ThinkPads with Ubuntu 18.04 Pre-Installed!

Lenovo finally followed Dells footsteps and is now offering all their P series ThinkPads with the option to have Ubuntu 18.04 pre-installed! The new P1 2nd gen, P53, P53s, P73 and P43s can be ordered with Ubuntu pre-installed beginning this June!

​

[https://youtu.be/yIflLxNyPBo](https://youtu.be/yIflLxNyPBo)

https://redd.it/c0q4ra
@r_linux
Command highlighting in interactive shell?

Hello,

Is there any way to color highlight commands entered in BASH terminal?

For example, if my foreground color is set to white and background set to black, are there any utilities or way to make the last command I entered appear orange or green? I'm not talking about color highlighting in vim--just the standard output to host in the interactive shell.

It would be so cool to have this feature because if I type a command and a big block of text spits out right after, it's a little difficult to look back at my command and see what it is I did. It would be great to have it color coded for easier readability.

https://redd.it/c0p29n
@r_linux
Hello im creating a new distro for newbies, based from mx ,any suggestions?

Hello im creating a new distro for newbies, based from mx ,any suggestions?

Does the ui look good its alpha 0.3 :D

​

[https://snag.gy/VQhUwH.jpg](https://snag.gy/VQhUwH.jpg)

​

[https://snag.gy/yiqBmE.jpg](https://snag.gy/yiqBmE.jpg)

https://redd.it/c0rlie
@r_linux
I think Arch is becoming more of a beginner distro.

I don't think it deserves the fame of "being difficult to install". The wiki is great, and you can just straight up copy all of the commands.

You don't even compile the kernel, cause the whole installation part is handled by 'pacstrap'. Most Arch users probably don't even know what/where a kernel is.

Also I see many questions on r/archlinux asking about complex partition setups. People don't know how to handle them thanks to the 'genfstab' command.

Then 'arch-chroot' command hides everything that is actually happening behind the scenes.

I think you don't actually install Arch, you just run a bunch of noscripts that do it for you. I realized this after installing Gentoo. Don't get me wrong, I like Arch as a distro (I have it on my main pc). But I don't like how noscripts obscure most of the installation and people come to the forums asking stupid questions. What I would prefer is Gentoo, with the binaries and the wiki from Arch.

Basicly to sum up people want to be cool so they install Arch and just paste all the commands from a guide without understanding anything, and when something doesn't work they come to reddit and say 'Installing steam doesn't work, what do I do?' without any more information.

Hope you enjoyed my little rant

https://redd.it/c0qdul
@r_linux
Why I love Linux and why it will never be popular or mainstream

You build your own system from the ground up. There's so many options, a lot of distros hold your hand and create an easy user experience like Windows or Mac OS (Ubuntu, Mint, Elementary, Debian), and then other distros are very time-consuming, but ensure a much more secure and stable system (Gentoo, Void, Arch, Slackware, OpenBSD). But the best part is, because of the free and open source software, you can control every inch of your own system and adjust it to your heart's content. You can have a shell noscript for every single task that can be automated, and eventually your daily workflow becomes easier and smoother. I'm not crazy about systemd, so I chose a distro that leaves it out on purpose with Devuan. I love compiling my own programs and kernel and experimenting with build systems, so right now I'm happy with Void Linux and its XBPS.

If someone makes a piece of software you really like, like a window manager, terminal, web browser, music player, video player - you can improve on that software yourself and re-compile it yourself, until it solves your problems and you're happy with the result. Sure, you can make a pull request on GitHub and everything, and if you're lucky the maintainers will like it and you'll contribute to open source, but there's absolutely nothing stopping you from just running your own modified version of whatever software you like.

Me, I run a minimal, stripped-down system. Herbstluftwm or Bspwm, Polybar, Dmenu, Ncmpcpp + Mpd, and the suckless simple terminal are really all I need. Transmission-remote-cli for extra fun. I like the idea of DWM even though I don't use it. I love putting unicode icons in my Polybar and in my terminal, I love Vim status lines, I love Z Shell, I love icons in Ranger. Sure, it takes a while for a new or inexperienced user to re-learn all the key bindings for a certain program, but once they do, it's worth it.

I'm not really trying to say anything. I think it's kind of self-defeating and futile to expect the Linux world, which is very niche and time-consuming and hard on new users, to be a bigger, mainstream, commercial thing like Windows. It's fun like this.

https://redd.it/c0pgxf
@r_linux
Features Microsoft "stole" from linux, that linux already had for years

Hello,

I have recently read somewhere, that they finally separated userspace from kernelspace. Maybe hoax, maybe not, but ghis question rose in my mind: name things linux had for years and windows copied it calling it a new feature, like virtual desktops. Or name a thing linux stole from windows, I am curious :)

https://redd.it/c0u073
@r_linux
Recording 4K Linux (including gaming) footage using AverMedia GC553 4k Ultra capture card - finally got it to work

So I've been messing around with a new AverMedia GC553 Live Gamer 4k Ultra card recently and I just could not get it to work on Linux. AverMedia have their own stream/record studio software called RECCentral which does not run on Linux (tried with Wine) so I had to get creative and use a tweaked V4L2 raw stream in OBS.

​

Here's a video of some test footage I recorded yesterday:

[https://www.youtube.com/watch?v=JyNAXJL0eS8](https://www.youtube.com/watch?v=JyNAXJL0eS8)

​

I'm using two machines running Manjaro Linux 18.04, one recording the capture card in OBS and the other one using the cards passthrough to a 4K monitor for the actual gaming. If anyone wants to know how I set this up and my thoughts just hit me up.

https://redd.it/c0vy1c
@r_linux
ElectronMail - unofficial open-source desktop app for ProtonMail and Tutanota E2EE email providers

The project page is [here](https://github.com/vladimiry/ElectronMail).

Linux is well supported by the app (deb/snap/freebsd/pacman/AppImage/rpm packages provided, the program author is a Linux user).

The below quote is picked from the [readme](https://github.com/vladimiry/ElectronMail#readme) file:

> ElectronMail is an [Electron](https://electronjs.org)-based unofficial desktop client for [ProtonMail](https://protonmail.com/) and [Tutanota](https://tutanota.com/) end-to-end encrypted email providers. The app aims to provide enhanced desktop user experience enabling features that are not supported by the official in-browser web clients.

Among other things, the program tackles the issue raised by Nadim Kobeissi in [An Analysis of the ProtonMail Cryptographic Architecture](https://eprint.iacr.org/2018/1121) paper and [highlighted in "Linux" subreddit](https://www.reddit.com/r/linux/comments/9yqfao/an_analysis_of_the_protonmail_cryptographic/) about 6 months ago.

https://redd.it/c0w2bk
@r_linux
CRUX 3.5 is released :)

[https://lists.crux.nu/pipermail/crux/2019-June/006291.html](https://lists.crux.nu/pipermail/crux/2019-June/006291.html) i have not updated my laptop yet, but i will!

https://redd.it/c0wr96
@r_linux
Let your Linux server have the GUI in one minute. linux-remote 2 is publish!

linux-remote is a webside remote desktop of Linux. Create by Nodejs/js, html, css. Connecting via HTTP Websocket Protocol. Use browser visit.

It is tiny. It takes less than a minute to complete the installation and startup.

​

github: [linux-remote](https://github.com/linux-remote/linux-remote)

**Online demo:**

First register a new user: [http://149.129.62.26:3000](http://149.129.62.26:3000/)

Then visit demo: [http://149.129.62.26:3001](http://149.129.62.26:3001/)

https://redd.it/c0xmqh
@r_linux
Two new ISOs images for Artix: Plasma/LXQt and MATE/LXDE

Artix is a fork of Arch **\[without systemd\]**.
Originally pure LXQT, installer & installed system, you can always install later on any other DE.

​

**Artix Linux is a rolling-release distribution, based on Arch Linux.**
**It uses OpenRC as init because PID1 must be simple, secure and stable.**

​

**The news is that 2 new ISOs, community supported.**

A QT-based ISO featuring the KDE Plasma and LXQt desktop environments and a GTK-based ISO with MATE and LXDE are [available for downloading](https://artixlinux.org/download.php). Both ISO images come equipped and ready for general use (multimedia, office, internet, productivity), offering the latest software available and are, despite their general DE/toolkit orientation, preconfigured for completely uniform look between QT and GTK applications, allowing for aesthetically pleasing integration of the best apps from both worlds. Read [the forum announcement](https://forum.artixlinux.org/index.php/topic,1010.0.html) for more information and screenshots.

https://i.redd.it/fwaa0qt3dj431.png

https://redd.it/c0y9z8
@r_linux