Re: [Trisquel-users] 2FA
Look into oathtool: https://www.nongnu.org/oath-toolkit/ You don't say what you want to use 2FA for but here's an example for SSH: First install libpam-oath and oathtool. A seed is needed. The seed should be unique for every user. One way to make a seed: head -10 /dev/urandom | sha512sum | cut -b 1-30 Edit or create /etc/users.oath and put in something like this using the seed from the previous step: HOTP/T30/6 myusername - d1da273d1e26613289efb82bca8a9b Edit /etc/ssh/sshd_config and edit or include these values: ChallengeResponseAuthentication yes PasswordAuthentication no UsePAM yes AuthenticationMethods publickey,keyboard-interactive Edit /etc/pam.d/sshd Add the line: auth required pam_oath.so usersfile=/etc/users.oath window=30 digits=6 Comment out common-auth: # Standard Un*x authentication. @include common-auth And after setting up the various machines you might, for example, run this: oathtool --totp d1da273d1e26613289efb82bca8a9b And get your 2FA code: 639420 Ta Da.
Re: [Trisquel-users] Different battery monitor needed -- Trisquel 8, MATE
> The first one should arrive after 10 seconds (if the definition of PERIOD is left as in the script above). Right, this is indeed what I am getting if I insert the "Battery OK" line at the proper position in the script. Else, increasing the sound volume with every occurrence of a grating noise would be perfect.
[Trisquel-users] Re : Help Retrieving Icedove mail files.
That may help: https://askubuntu.com/questions/473124/extract-duplicity-files-manually
Re: [Trisquel-users] Trisquel 9.0 Etiona Fully updated Gapcoin Core........CAN WE BUILD IT?
Gapcoin does not Build using Windows so you should be safe and sound!
Re: [Trisquel-users] Trisquel 9.0 Etiona Fully updated Gapcoin Core........CAN WE BUILD IT?
If your both "Afraid" you should both use Windows OS. Bill Gates has a nice "Protective" cage to keep you safe from all the Trisquel "baddies"!
[Trisquel-users] Re : Different battery monitor needed -- Trisquel 8, MATE
I am getting the proper visual notifications every ten seconds Lol. It would be funnier (although a tiny bit annoying) to get the audio notification every 10 seconds: else paplay /usr/share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga I have noticed that notifications do not always immediately start when I run the script. The first one should arrive after 10 seconds (if the definition of PERIOD is left as in the script above).
Re: [Trisquel-users] Different battery monitor needed -- Trisquel 8, MATE
I was able to reproduce the notification glitch occurring with the modified script after modifying the value of HIGH in the scrip, saving and running the script. Each time I do that, nothing happens until the HIGH value is reached. When the HIGH value is reached, the sound is played and the visual notification is displayed as expected. After which, the "Battery OK" notifications are porperly displayed after every interval. Note that the notification does not last more than a second, while the notification from the battstat-applet is persistent until the user clicks on it.
Re: [Trisquel-users] Help Retrieving Icedove mail files.
Instead of 'install', I should have said "restore". The Restoration did not work. Here are the alerts I received when trying to restore a Deja-Dup/Duplicity backup onto a fresh (and updated) install of Uruk:
[Trisquel-users] Re : Find the instances of each of a list of strings and print each set in a separate file
Let's look at Magic Banana's awk command You did not copy the second argument, -, which is essential: it is the standard input, as always with GNU commands. Here: the output of sort -u IPv4.May2020.37.nMapoG.txt. so ARGV[1] has to be www.newsgeni.us and ARGV[2] ought to be 10. No. ARGV contains the arguments given to AWK. Here: ARGV[1] is PTRList.txt and ARGV[2] is -, the standard input. Excerpt from 'man awk': ARGVArray of command line arguments. The array is indexed from 0 to ARGC - 1. ./MB.suggestion.bin: line 1: $: command not found awk: cmd. line:1: (FILENAME=- FNR=2) fatal: can't redirect to `out/2,lo0-100.NYCMNY-VFTTP-421.verizon-gni.net' (No such file or directory) You apparently copied a command line, including the prompt ($, which is not a command, as the error says), not the script in https://trisquel.info/forum/find-instances-each-list-strings-and-print-each-set-separate-file#comment-150649 Also, a shell script is not a binary, contrary to what the extension you chose suggests. The usual extension is "sh", but there is no need to give an extension. If you had properly copied the script, you would have got the help message (because the test [ -z "$3" ] passes: the third argument is empty). It would have informed you that, after the two files, you must give the output directory. In the script, mkdir -p "$3" creates that directory (and even its parent directories) if it does not exists. . could be a default value for that third argument, complementing the script in this way: #!/bin/sh if [ -z "$2" ] then printf "Usage: $0 PRT_list IPv4_addresses [output_dir] Both files must have two fields. The first field must be the PTR and must be unique in PTR_list. " exit fi out=. if [ -n "$3" ] then mkdir -p "$3" out="$3" fi sort -u "$2" | awk -v out="$out/" 'FILENAME == ARGV[1] { a[$1] = $2 } FILENAME == ARGV[2] && $1 in a { print $2 >> out a[$1] "," $1 }' "$1" - Just in case, I'll sort PTRList.txt before running ./MB.suggestion.bin It is useless. Now lo0-100.NYCMNY-VFTTP-421.verizon-gni.net in the error response is the same as the first argument of MB.suggestion.sort.bin. That's progress. No it is not. You should try to understand what you are executing instead of doing random things such as sorting "just in case". Read the help message I wrote: the first argument is called "PTR_list". Not "PTR". It is a file. The rest of the message confirms it: "Both files...". Example of a call of the script (I named it "join-and-group-by-ptr": give meaningful names!), which here writes the files in the directory "out": $ ./join-and-group-by-ptr PTRList.txt IPv4.May2020.37.nMapoG.txt out
Re: [Trisquel-users] Different battery monitor needed -- Trisquel 8, MATE
Thanks for the script, it is more convenient than the default battery notifivation applet (battstat-applet). I added this line just before the end of the first 'if' statement in order to check its activity: else notify-send "Battery OK" In its current form, I am getting the proper visual notifications every ten seconds and both notification and sound when appropriate but I have noticed that notifications do not always immediately start when I run the script. Still investigating.
[Trisquel-users] Re : Different battery monitor needed -- Trisquel 8, MATE
I hard-coded everything in the script. That includes the played sound, /usr/share/sounds/question.wav, and how to play it, with aplay, which can only play raw formats. You can modify both lines "aplay /usr/share/sounds/question.wav" (and even play a different sounds, depending on whether the battery became low or high). For example, to play the far more noticeable /usr/share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga file with paplay (which can play that file format and more): paplay /usr/share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga We can change the script so that the file(s) to play, the two thresholds, the check period, ... become arguments. Since you will not run the command by hand, it does not look very useful to do so, in my opinion. notify-send (on the two previous lines) is supposed to send a notification. It works on GNOME Shell. I am surprised it does not work on MATE. Try to execute the following command in a terminal emulator: $ notify-send banana Is "banana" displayed in a notification? If not, any error message?
Re: [Trisquel-users] Find the instances of each of a list of strings and print each set in a separate file
Magic Banana, on the subject of the -a argument of join: The real "succinct one", as you write, would be without option -a. Neither -a 1 nor -a 2. That is what I meant. Which is absolutely correct; subconsciously I was using -a as an either/or choice, but it's also useful to make the choice in the present anaylsis because unmatched lines indicate errors. Magic Banana wondered about my inability to recognize those two arguments: The two files? They are in the command line I gave. The two files in the script that I immediately recognize as my own are PTRList.txt and IPv4.May2020.37.nMapoG.txt, I now appreciate that the first argument is the (presumably first) PTR in PTRList.txt, but that second one still goes over my head. Let's look at Magic Banana's awk command: awk 'FILENAME == ARGV[1] { a[$1] = $2 } FILENAME == ARGV[2] && $1 in a { print $2 >> "out/" a[$1] "," $1 }' PTRList.txt Column $1 of PTRList.txt holds the multi-address PTR's; Column $2 holds the corresponding number of instances, so ARGV[1] has to be www.newsgeni.us and ARGV[2] ought to be 10. That makes the first trial command: ./MB.suggestion.bin www.newsgeni.us 10 Which elicits the following responses: ./MB.suggestion.bin: line 1: $: command not found awk: cmd. line:1: (FILENAME=- FNR=2) fatal: can't redirect to `out/2,lo0-100.NYCMNY-VFTTP-421.verizon-gni.net' (No such file or directory) I tried the two files instead, but I get the exact same responses as the first two arguments. Here's the text of MB.suggestion.txt (from which MB.suggestion.bin was made): $ mkdir out; sort -u IPv4.May2020.37.nMapoG.txt | awk 'FILENAME == ARGV[1] { a[$1] = $2 } FILENAME == ARGV[2] && $1 in a { print $2 >> "out/" a[$1] "," $1 }' PTRList.txt - Just in case, I'll sort PTRList.txt before running ./MB.suggestion.bin in the second trial command: sort PTRList.txt > PTRListSort.txt ; ./MB.suggestion.sort.bin lo0-100.NYCMNY-VFTTP-421.verizon-gni.net 2 PTRList.txt was changed to PTRListSort.txt & MB.suggestion.sort.bin subsequently was made executable beforehand. Terminal responses: ./MB.suggestion.sort.bin: line 1: $: command not found awk: cmd. line:1: (FILENAME=- FNR=2) fatal: can't redirect to `out/2,lo0-100.NYCMNY-VFTTP-421.verizon-gni.net' (No such file or directory) Now lo0-100.NYCMNY-VFTTP-421.verizon-gni.net in the error response is the same as the first argument of MB.suggestion.sort.bin. That's progress. George Langford
Re: [Trisquel-users] Different battery monitor needed -- Trisquel 8, MATE
Thank you very much! This script has been playing reliably a sound at 20%/80% for a couple of weeks now. How can I configure which sound is played? And can I also make a notification appear? Thanks in advance. anatom
Re: [Trisquel-users] 2FA
I would love to know this too it's really important. Thanks for making this topic.
[Trisquel-users] 2FA
Any free sotware to use 2FA autentification without mobile phone? Typical use: amazon, banks and online shops.
Re: [Trisquel-users] about printing
I bought this printer from an internet auction site. I remembered that the former owner of this printer wrote that he had registered the printer, or something like that. It is inkjet, so it seems no problem though. I realized that their tracking habit is an end rather than a mean. Maybe making a GPLed tracking game might hit it big. The hero of the game would be an officer of NSA or something of course. Use tax and PRISM or other stuff to track criminals or inviting men or beautiful women, famous public figures, his ex girl friend, his mother, etc!
Re: [Trisquel-users] about printing
From the EFF website(1), you can learn this: "(Added 2017) Reminder: it appears likely that all recent commercial color laser printers print some kind of forensic tracking codes, not necessarily using yellow dots. This is true whether or not those codes are visible to the eye and whether or not the printer models are listed here. This also includes the printers that are listed here as not producing yellow dots." You get tracked through the documents you print, in the sense that they can be traced to your printer's serial number, and hence to you if you have somehow registered it or if can be associated to another document you printed using the same printer. This does not apply to inkjet printers or to watercolor paintings, except of course if you sign them. I still like the idea of being able to hide the picture of a cat in the picture of a tree. (1) https://www.eff.org/pages/list-printers-which-do-or-do-not-display-tracking-dots
[Trisquel-users] Re : Help Retrieving Icedove mail files.
Trisquel has had Icedove by default since version 8 was released. Duplicity does not install anything. It recovers files. Icedove's data and configuration are recovered in ~/.icedove whether Icedove is installed or not.
Re: [Trisquel-users] about printing
Thank you. I was searching the built-in margins setting in the printer's option you say, I could not find it, though, while I was doing that I modified some things which did not seem to be related to the issue in the printer's option. Then somehow the issue was a bit fixed. Not the exact center, but it became nearer to the center. Almost center. I might try to disable it from the commandline when I got the issue again with print of other works. > You can check it with a blue light. You can also use one of the following tricks to check if the dots appear : I was thinking about something like online tracking. Anyway mine seems not to have the function. Still imagining the people planning this kind of a function and actually implementing it makes me tired very much. That's enough. Do we have to associated with them until the end of our life.