PGP encrypt file without showing password in plaintext
This is more a question of concept than a way to do it. Here's the scenario, which I believe is fairly common:
I have a bunch of personal text files I want to backup to an online storage. I want to archive these together into archives before I send them and password protect the archive.
One of the straight forward solutions I've found is to use PGP: $pgp -c \[myfile\] will do nicely, and I can do that to tar archives. OK, so far so good. This asks for a password, and I can create a long complicated password. My issue happens when I want to automate this using a cron job.
Say I want to cron this every day at 1am. The scrip will run and ask me to create a password, only thing is I will be deep asleep in my bed. There's probably a way to specify a password in the pgp command itself, but that's dumb: anyone who has access to the noscript will have access to the password in plaintext.
So! this is a pretty basic concept in linux (I think), but I'm missing something. How do you password protect this? Again, the idea is that these files need to be protected before I upload to an online service. What would you guys do?
https://redd.it/ck6naq
@r_linux
This is more a question of concept than a way to do it. Here's the scenario, which I believe is fairly common:
I have a bunch of personal text files I want to backup to an online storage. I want to archive these together into archives before I send them and password protect the archive.
One of the straight forward solutions I've found is to use PGP: $pgp -c \[myfile\] will do nicely, and I can do that to tar archives. OK, so far so good. This asks for a password, and I can create a long complicated password. My issue happens when I want to automate this using a cron job.
Say I want to cron this every day at 1am. The scrip will run and ask me to create a password, only thing is I will be deep asleep in my bed. There's probably a way to specify a password in the pgp command itself, but that's dumb: anyone who has access to the noscript will have access to the password in plaintext.
So! this is a pretty basic concept in linux (I think), but I'm missing something. How do you password protect this? Again, the idea is that these files need to be protected before I upload to an online service. What would you guys do?
https://redd.it/ck6naq
@r_linux
reddit
r/linux - PGP encrypt file without showing password in plaintext
2 votes and 12 comments so far on Reddit
How I almost nuked my entire /home directory with 'find'
So... I was using the `find` command to look for some files and directories that I wanted to remove. I entered `find . -iname '*somestring*'` to see what would be removed. Then I started typing `find . -delete -ina` and at this time I stopped and thought to myself "Nah, -delete should go at the end." I thought the logic is "find where, what, do what/action."
I didn't think it mattered, it was just the way I often condition myself to do things right. Because while in Linux you have freedom to do a thing in one of 6783 ways, most ways are wrong, for what you are trying to achieve. It may work but it may be the wrong approach for your specific situation. Or it works, but only for 95% of scenarios... and one day, you'll hit that 5%. And I think that if you do things wrong out of laziness and just tell yourself "I know this is wrong, but I'm just lazy now because it doesn't matter" then this will leak in other tasks, where it WILL matter.
So I finally enter `find . -iname '*somestring*' -delete`
I later find out that `find . -delete -iname '*somestring*'` will delete everything in your current directory (subdirectories included) because find interprets parameters in their order. Which means it's "find everything in ., delete what you find, then find files/dirs with this -iname."
Maybe this is old news for some, or uninteresting for others. Hopefully, it helps some people avoid this potential mistake in the future. I'm also curious how there's no idiot proof mechanism for this, at least "Are you sure you want to delete everything fool?" Type "yes, I am deleting everything with find, instead of rm -r, for no reason." Maybe there are some scenarios where this is useful? But I couldn't think of anything yet.
https://redd.it/ckabln
@r_linux
So... I was using the `find` command to look for some files and directories that I wanted to remove. I entered `find . -iname '*somestring*'` to see what would be removed. Then I started typing `find . -delete -ina` and at this time I stopped and thought to myself "Nah, -delete should go at the end." I thought the logic is "find where, what, do what/action."
I didn't think it mattered, it was just the way I often condition myself to do things right. Because while in Linux you have freedom to do a thing in one of 6783 ways, most ways are wrong, for what you are trying to achieve. It may work but it may be the wrong approach for your specific situation. Or it works, but only for 95% of scenarios... and one day, you'll hit that 5%. And I think that if you do things wrong out of laziness and just tell yourself "I know this is wrong, but I'm just lazy now because it doesn't matter" then this will leak in other tasks, where it WILL matter.
So I finally enter `find . -iname '*somestring*' -delete`
I later find out that `find . -delete -iname '*somestring*'` will delete everything in your current directory (subdirectories included) because find interprets parameters in their order. Which means it's "find everything in ., delete what you find, then find files/dirs with this -iname."
Maybe this is old news for some, or uninteresting for others. Hopefully, it helps some people avoid this potential mistake in the future. I'm also curious how there's no idiot proof mechanism for this, at least "Are you sure you want to delete everything fool?" Type "yes, I am deleting everything with find, instead of rm -r, for no reason." Maybe there are some scenarios where this is useful? But I couldn't think of anything yet.
https://redd.it/ckabln
@r_linux
reddit
r/linux - How I almost nuked my entire /home directory with 'find'
0 votes and 6 comments so far on Reddit
The Linux App Summit to be held in Barcelona in November. KDE and GNOME join forces to create a strong, free and open app ecosystem.
https://dot.kde.org/2019/07/31/linux-application-summit-coming-barcelona-november
https://redd.it/ckbddd
@r_linux
https://dot.kde.org/2019/07/31/linux-application-summit-coming-barcelona-november
https://redd.it/ckbddd
@r_linux
reddit
r/linux - The Linux App Summit to be held in Barcelona in November. KDE and GNOME join forces to create a strong, free and open…
0 votes and 1 comment so far on Reddit
Manjaro alternatives ?
After the recent news on manjaro I'd like another arch-based distro.
https://redd.it/ckdpze
@r_linux
After the recent news on manjaro I'd like another arch-based distro.
https://redd.it/ckdpze
@r_linux
reddit
r/linux - Manjaro alternatives ?
0 votes and 11 comments so far on Reddit
Rockbox user since 2010, now updated to 3.14. The USB Keypad mode when plugged in blows my mind!
When you have it plugged into your computer, to charge or transfer files, it also acts like a USB keypad, with different modes you can switch between. With one I can flip between slides of a presentation. Another gives me multimedia keys so I change the volume, skip track, pause music, it's all there.
I never thought that after all this time, I'd still discover something new about Rockbox. And the release notes from 2017 say my battery life should have doubled? Again, I'm speechless.
And it's not like these people are stopping. [Less than two weeks ago](https://www.rockbox.org/wiki/MajorChanges) they added Quake. I'm thinking of getting a third Clip+ as backup just so I can keep using Rockbox as long as possible.
https://redd.it/ckdbrt
@r_linux
When you have it plugged into your computer, to charge or transfer files, it also acts like a USB keypad, with different modes you can switch between. With one I can flip between slides of a presentation. Another gives me multimedia keys so I change the volume, skip track, pause music, it's all there.
I never thought that after all this time, I'd still discover something new about Rockbox. And the release notes from 2017 say my battery life should have doubled? Again, I'm speechless.
And it's not like these people are stopping. [Less than two weeks ago](https://www.rockbox.org/wiki/MajorChanges) they added Quake. I'm thinking of getting a third Clip+ as backup just so I can keep using Rockbox as long as possible.
https://redd.it/ckdbrt
@r_linux
reddit
r/linux - Rockbox user since 2010, now updated to 3.14. The USB Keypad mode when plugged in blows my mind!
0 votes and 3 comments so far on Reddit
Manjaro Developer on FreeOffice (Starts at 13:40) - xpost
https://youtu.be/-lB6I8bCZt8
https://redd.it/ckep2w
@r_linux
https://youtu.be/-lB6I8bCZt8
https://redd.it/ckep2w
@r_linux
YouTube
What Modern Linux Looks Like | LINUX Unplugged 312
Manjaro takes significant steps to stand out, and the shared problem major distributions are trying to solve, and why it will shape the future of Linux. Plus...
List of the best CLI apps that i use as a daily driver and my story of migration from GUI to Terminal
First i want to share my story of migration, but you can skip it to TL;DR and the list.
One day, around a year ago i woke up, opened the Gnome File manager and was feeling a bit depressed... It was the design that made me sad. Took me several hours to find a decent GTK theme, but it was still not okay, here and there something was a bit off.
I opened Google Play Music to find the music for the working day and it was loading and loading, spinner after spinner it took around 30 seconds to load the initial bloated slow GUI. At this point i didn't want to listen to music.
No music today, I've stared some radio station and opened Sublime Editor. Thank god (Sublime Devs), it loaded very quickly and was actually okay, the only GUI app that works fast and that i still use. So finally i started working and after hour of work I've opened the Gnome Calculator to solve some math equations. It started in 5 seconds, but when i tried to close it it just stuck unresponsive for around 10 seconds at this point i wasn't depressed anymore, i was laughing.
In the evening the same day I've decided to make a pizza, after the pizza was in oven i opened chromium, duckduckgo, started the timer for 5 minutes, after 10 minutes i switched to duck duck go tab with a timer and it started ringing with minus 5 minutes left. Probably because of new chromium autoplay policy - cheese on pizza was brown.
That was more than enough. That day I've decided that modern software is not only bloated, it sometimes can't even do the work it created for. I've started switching apps one by one.
The next day i switched from Gnome to i3 and started searching for replacement apps. After around a year i have a list of great apps that i want to share with you.
TL;DR: GUI apps are slow, bloated, ugly and sometimes don't work, CLI apps are fast and do their job well.
1. Calcurse - Calendar and scheduling application - helps me add tasks and events, keeps my day planned.
2. Cmus - The greatest music player for Linux. I usually download albums from Bandcamp (you can pay author approx $5 per album or download some of them for free).
3. Calc - Just a calculator.
4. Timer - Actually not an app. I have simple noscript for timer. I just write in terminal timer 10 and it sets the timer for 10 minutes with backwards countdown and alert. Useful for cooking and i love cooking.
5. Ranger - Great terminal file manager, supports panels and stuff, you can also bind your own keys, bundle noscripts and edit open with list. It's not so fast as nnn, as some people say, but it has great functionality.
6. Top - I don't use htop, because top is absolutely okay for me and gives all the info i need.
7. Units - Useful when you need to convert some metric units to imperial system and back.
8. Ncdu - When i need to keep track on directories/files size in my file system i use this utility. I used baobab before, but i don't like it's ugly GUI, so i found this app. I've also added an alias -x for ncdu to not cross the filesystem boundaries when scanning files.
I think that there are even more awesome apps, you can share them in comments.
https://redd.it/ckdk28
@r_linux
First i want to share my story of migration, but you can skip it to TL;DR and the list.
One day, around a year ago i woke up, opened the Gnome File manager and was feeling a bit depressed... It was the design that made me sad. Took me several hours to find a decent GTK theme, but it was still not okay, here and there something was a bit off.
I opened Google Play Music to find the music for the working day and it was loading and loading, spinner after spinner it took around 30 seconds to load the initial bloated slow GUI. At this point i didn't want to listen to music.
No music today, I've stared some radio station and opened Sublime Editor. Thank god (Sublime Devs), it loaded very quickly and was actually okay, the only GUI app that works fast and that i still use. So finally i started working and after hour of work I've opened the Gnome Calculator to solve some math equations. It started in 5 seconds, but when i tried to close it it just stuck unresponsive for around 10 seconds at this point i wasn't depressed anymore, i was laughing.
In the evening the same day I've decided to make a pizza, after the pizza was in oven i opened chromium, duckduckgo, started the timer for 5 minutes, after 10 minutes i switched to duck duck go tab with a timer and it started ringing with minus 5 minutes left. Probably because of new chromium autoplay policy - cheese on pizza was brown.
That was more than enough. That day I've decided that modern software is not only bloated, it sometimes can't even do the work it created for. I've started switching apps one by one.
The next day i switched from Gnome to i3 and started searching for replacement apps. After around a year i have a list of great apps that i want to share with you.
TL;DR: GUI apps are slow, bloated, ugly and sometimes don't work, CLI apps are fast and do their job well.
1. Calcurse - Calendar and scheduling application - helps me add tasks and events, keeps my day planned.
2. Cmus - The greatest music player for Linux. I usually download albums from Bandcamp (you can pay author approx $5 per album or download some of them for free).
3. Calc - Just a calculator.
4. Timer - Actually not an app. I have simple noscript for timer. I just write in terminal timer 10 and it sets the timer for 10 minutes with backwards countdown and alert. Useful for cooking and i love cooking.
5. Ranger - Great terminal file manager, supports panels and stuff, you can also bind your own keys, bundle noscripts and edit open with list. It's not so fast as nnn, as some people say, but it has great functionality.
6. Top - I don't use htop, because top is absolutely okay for me and gives all the info i need.
7. Units - Useful when you need to convert some metric units to imperial system and back.
8. Ncdu - When i need to keep track on directories/files size in my file system i use this utility. I used baobab before, but i don't like it's ugly GUI, so i found this app. I've also added an alias -x for ncdu to not cross the filesystem boundaries when scanning files.
I think that there are even more awesome apps, you can share them in comments.
https://redd.it/ckdk28
@r_linux
reddit
r/linux - List of the best CLI apps that i use as a daily driver and my story of migration from GUI to Terminal
3 votes and 8 comments so far on Reddit
New release of you-should-use zsh plugin (reminds you to use your aliases)
https://www.reddit.com/r/zsh/comments/ckasqb/new_release_of_youshoulduse_plugin_reminds_you_to/
https://redd.it/ckcsza
@r_linux
https://www.reddit.com/r/zsh/comments/ckasqb/new_release_of_youshoulduse_plugin_reminds_you_to/
https://redd.it/ckcsza
@r_linux
reddit
r/zsh - New release of you-should-use plugin (reminds you to use your aliases)
10 votes and 4 comments so far on Reddit
Windows to Linux home server, good distos?
So, thinking about switching from Windows 10 Enterprise LTSB to Linux for my home server but I'm not 100% sure yet. The reason I'm thinking about switching is because I'm sick of Windows update breaking things, currently it's VM's, cant run any without a BSOD.
I've got very basic knowledge of Linux, played with it on and off over the years but never really stuck to it because everything I was doing at the time needed Windows. Now with my home server I've realised I should be able to do everything on Linux without to much of an issue (hopefully), all I do is: Folding, VM's, Steam game servers, Minecraft servers, batch file renaming, CD / DVD burning / ripping & some file storage.
Currently I'm playing around with Debian 10 KDE and Ubuntu 18.04.2 LTS. So far Debian has been a little quicker with somethings but more of a pain to set things up (network sharing of folders and drives hasn't worked at all) while Ubuntu has been pretty easy but seems a little sluggish, maybe the default desktop is a little to "fancy" for VNC & IPMI.
Are there any other distros I should look at that are easy enough to work with, preferably mostly GUI?
Also are there any issues I could run into with any of the stuff I do? Sometimes I'm doing multiple servers while folding, ripping, renaming and a VM or 2.
Thanks.
https://redd.it/cki4wt
@r_linux
So, thinking about switching from Windows 10 Enterprise LTSB to Linux for my home server but I'm not 100% sure yet. The reason I'm thinking about switching is because I'm sick of Windows update breaking things, currently it's VM's, cant run any without a BSOD.
I've got very basic knowledge of Linux, played with it on and off over the years but never really stuck to it because everything I was doing at the time needed Windows. Now with my home server I've realised I should be able to do everything on Linux without to much of an issue (hopefully), all I do is: Folding, VM's, Steam game servers, Minecraft servers, batch file renaming, CD / DVD burning / ripping & some file storage.
Currently I'm playing around with Debian 10 KDE and Ubuntu 18.04.2 LTS. So far Debian has been a little quicker with somethings but more of a pain to set things up (network sharing of folders and drives hasn't worked at all) while Ubuntu has been pretty easy but seems a little sluggish, maybe the default desktop is a little to "fancy" for VNC & IPMI.
Are there any other distros I should look at that are easy enough to work with, preferably mostly GUI?
Also are there any issues I could run into with any of the stuff I do? Sometimes I'm doing multiple servers while folding, ripping, renaming and a VM or 2.
Thanks.
https://redd.it/cki4wt
@r_linux
reddit
r/linux - Windows to Linux home server, good distos?
0 votes and 2 comments so far on Reddit
New function tracing feature released
Guider provides with a new function tracing feature that do not require any kernel or program rebuild.
Just run it on linux shell.
# git clone https://github.com/iipeace/guider
# guider/guider/guider.py usertop -g TID or COMM
https://redd.it/ckex38
@r_linux
Guider provides with a new function tracing feature that do not require any kernel or program rebuild.
Just run it on linux shell.
# git clone https://github.com/iipeace/guider
# guider/guider/guider.py usertop -g TID or COMM
https://redd.it/ckex38
@r_linux
GitHub
GitHub - iipeace/guider: Real-time Performance & Fault Detection Service Enabled by Comprehensive Built-in Command
Real-time Performance & Fault Detection Service Enabled by Comprehensive Built-in Command - iipeace/guider
Onivim2: "In 24 hours we'll be releasing our pre-alpha builds to backers and raising the price."
https://twitter.com/oni_vim/status/1156272977874309120
https://redd.it/ck7uuv
@r_linux
https://twitter.com/oni_vim/status/1156272977874309120
https://redd.it/ck7uuv
@r_linux
Twitter
Onivim 2
In 24 hours we'll be releasing our pre-alpha builds to backers and raising the price. LAST CHANCE to get in on the pay-what-you-want special at https://t.co/7u4Gl0zPgd ! Thanks to all our pre-orderers and backers that have helped get us this far! #vim #reasonml…
GNU/Linux vs KDE/Linux?
Some people prefer to call Linux for GNU/Linux since they are using the GNU tool chain. Should I then be calling Linux for KDE/Linux since I am running KDE Plasma and KDE's programs as well?
Or should we just call it Linux?
https://redd.it/ckl1bc
@r_linux
Some people prefer to call Linux for GNU/Linux since they are using the GNU tool chain. Should I then be calling Linux for KDE/Linux since I am running KDE Plasma and KDE's programs as well?
Or should we just call it Linux?
https://redd.it/ckl1bc
@r_linux
reddit
r/linux - GNU/Linux vs KDE/Linux?
0 votes and 0 comments so far on Reddit
A beginner's guide to Silverblue: Fedora Silverblue is an immutable, easy to install, and simple to use Linux operating system
https://www.redhat.com/sysadmin/beginners-guide-silverblue
https://redd.it/ckliyp
@r_linux
https://www.redhat.com/sysadmin/beginners-guide-silverblue
https://redd.it/ckliyp
@r_linux
Enable Sysadmin
A beginner's guide to Silverblue
Fedora Silverblue is an immutable, easy to install, and simple to use Linux operating system.
Summer Update for FreeCAD & Debian Science Work
https://www.patreon.com/posts/summer-update-28822998
https://redd.it/cklds0
@r_linux
https://www.patreon.com/posts/summer-update-28822998
https://redd.it/cklds0
@r_linux
It feels like an unpopular opinion, but I really like GNOME!
Coming from macOS, I'm used to 'very opinionated' desktop environments, where you can learn the proposed workflow or just have a bad experience. The lack of a lot of customization is also not unusual to me.
Coming to linux, I tried XFCE, KDE, Budgie and GNOME and I gotta say, GNOME just fits so well. The consistency between everything is great (better than macOS, if you ask me) and it just feels really simple. It gets out of my way. The animations are discrete and pretty and runs butter smooth in my PC (which has some horse power, so I guess there's that).
I feel that people hate on GNOME a lot, and maybe they're right for old hardware. For me, it fits like a glove and I wouldn't trade it for any other DE, even macOS.
Is there any more people that really like GNOME out there? :D
https://redd.it/ckm50s
@r_linux
Coming from macOS, I'm used to 'very opinionated' desktop environments, where you can learn the proposed workflow or just have a bad experience. The lack of a lot of customization is also not unusual to me.
Coming to linux, I tried XFCE, KDE, Budgie and GNOME and I gotta say, GNOME just fits so well. The consistency between everything is great (better than macOS, if you ask me) and it just feels really simple. It gets out of my way. The animations are discrete and pretty and runs butter smooth in my PC (which has some horse power, so I guess there's that).
I feel that people hate on GNOME a lot, and maybe they're right for old hardware. For me, it fits like a glove and I wouldn't trade it for any other DE, even macOS.
Is there any more people that really like GNOME out there? :D
https://redd.it/ckm50s
@r_linux
reddit
r/linux - It feels like an unpopular opinion, but I really like GNOME!
0 votes and 19 comments so far on Reddit
Drawing is a Promising ‘Microsoft Paint’ Alternative for Linux
https://moopost.blogspot.com/2019/08/drawing-is-promising-microsoft-paint.html
https://redd.it/ckmksg
@r_linux
https://moopost.blogspot.com/2019/08/drawing-is-promising-microsoft-paint.html
https://redd.it/ckmksg
@r_linux
Moopost
Drawing is a Promising ‘Microsoft Paint’ Alternative for Linux
Moopost is a top tech blog offers insights into blogging, SEO, affiliate marketing, WordPress, Android, hosting, and Adsense optimization.
Arch Linux + Gnome or Android x86
Hello!
I am very new to Linux and I want to install something lightweight with touch support on my Acer Aspire R3-131T.
It has an Intel Celeron N3160 with the Intel AC 3165 Wi-Fi Card.
Would you recommend Arch Linux with Gnome or Android x86?
Does Android x86 support my CPU?
Does Android x86 support the Wireless Card?
I googled a lot but couldn't find very much.
Cheers,
Tschöppeli
https://redd.it/cknamk
@r_linux
Hello!
I am very new to Linux and I want to install something lightweight with touch support on my Acer Aspire R3-131T.
It has an Intel Celeron N3160 with the Intel AC 3165 Wi-Fi Card.
Would you recommend Arch Linux with Gnome or Android x86?
Does Android x86 support my CPU?
Does Android x86 support the Wireless Card?
I googled a lot but couldn't find very much.
Cheers,
Tschöppeli
https://redd.it/cknamk
@r_linux
reddit
r/linux - Arch Linux + Gnome or Android x86
0 votes and 6 comments so far on Reddit