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
Sandboxing system app, Snap or Flatpak?

Real PC noob here

Hello, i've heard that both, Snap and Flatpak are sandboxing their apps.

Alot of post/article/video are old now.

Which one in 2019 offer the best secure sandbox system?

https://redd.it/c0bln6
@r_linux
Gamified operations?

The noscript is probably not the most helpful, but I'll try my best to explain what I'm thinking about.

​

In fictional depictions of nerdy computer systems, you often see basic operations played out in a kind of video game-like fashion. I can't think of anything off hand, although Newman's lock screen in Jurassic Park is similar to what I'm imagining.

​

Can any of you think of such a thing? For example, maybe there is some sort of program you'd run that is effectively a wrapper for mv/cp that pulls up a little terminal game where you have to lay down pipes to get file A to location B similar to the minigames in Bioshock. I just made that one up, but I have the feeling something like this exists. I imagine they'd all be pointless, but it seems like they'd be neat little novelty things to do when showing off your riced system.

https://redd.it/c0eqhj
@r_linux
I spent good time doing this and I dont know why
https://redd.it/c0fwsy
@r_linux
Is it safe to have two efi partitions in one disk drive

I am dual booting ubuntu and windows 10, and i am thinking of installing Tails with it too. The thing is Tails installer cleans all the partition in the storage drive and then installs Tails. So i installed Tails on a usb drive then thinking of cloning it to my main hard disk.

Is it safe to do so?? Will it give any problem when i update Ubuntu or Windows??

https://redd.it/c0hx2r
@r_linux
Jit for firefox ppc64

Discalmet: I'm not a dev or affiliate to this project, i'm just a regular user who want to see this technology succeed and i try to help as i can.

As many of you already know for some people free software are important for privacy, security and ideology, i think the same for open hardware that's why i'm interested on raptorcs systems, this platform is based on powerpc and some distros already support it, as debian, ubuntu and fedora. Of course there are some programs do not really work as it should, one of them is firefox, it miss JIT for this architecture and won't work good in some webpage. Firefox is the only other choice otherwise it's just google chrome and derivates, so i think it's important to preserve diversity and give a real choice to people.

I'm here to spread a voice hoping someone could give some help to this project who trying to port JIT for ppc64

[https://github.com/classilla/jitpower](https://github.com/classilla/jitpower)

That's the link, i hope you could help as you can if you are a dev joining the project or if you are a regular user spreading the word as i'm doing

https://redd.it/c0hoxa
@r_linux
Fractional scaling on HiDPI monitor

Do any distro or DE, actually supports fractional scaling for HiDPI? Because scaling to 2.0 makes things to big and 1.0 is too small for a 4K monitor.

https://redd.it/c0img5
@r_linux
Linux Plumbers Conference 2019

Hey guys,

This year, the Linux Plumbers Conference is going to be on my hometown and I wanted to get *some things* sorted out.

I love Linux and open source in general. I've even participated on some open projects and have some public code. But from what I've seen on YouTube, this conference is more *low level* and I consider myself a mid/high level developer, even though I understand general computer architecture (and have a Bachelor's in Computer Engineering and I'm finishing my Master's in Information Security).

I'm trying to figure out if it's worth my time and money for a conference that I wouldn't be enjoying for not understanding half of it.

I'd love to hear about your opinions and experiences with such conferences.

https://redd.it/c0kis2
@r_linux
There is no such things as a free lunch. So how can I help?

Everything has a price but how to do my part?


I do not have time/energy to contribute source code but I do have some extra cash in my pocket. But where should it be put to do the best? Should it be the distro I use? The Desktop or selected programs or frameworks?

https://redd.it/c0jjk4
@r_linux
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