date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,499,090,140,000 |
I'm scripting a special program to my company.
By using Inotifywait from inotify-tools, I'm watching a specific folder for new items, and as soon a new file appears, it will be encrypted with gpg and moved to another folder for further treatment.
For a single file, it works fine, but I noticed a problem: When a new fi... |
Don't run inotifywait repeatedly, run it once in the monitor mode and read from its output:
inotifywait -m ... |
while read dir event file ; do
...
done
| Use Inotifywait to handle multiple files at the same time |
1,499,090,140,000 |
Allmost all documentation I've found about debian package signing omit the topic of crypto algorithms entirely, and the few I've seen touching the topic mention only RSA, and in one case, DSA.
gpg seems to be at the root of all the debian package signing.
gpg has had e.g. elliptic curves since 2011, and the 2014 relea... |
Assuming you're referring to the signing of APT repositories, which is usual, and not to signing individual packages, which is not, then the answer is that APT uses gpgv, and therefore supports all the algorithms that that binary does. Since gpgv is part of GnuPG, it should support all the relevant algorithms the equ... | are crypto algorithms other than RSA valid for debian package signing? |
1,499,090,140,000 |
command:
gpg -vvv --debug-all --recv-keys A8BD96F8FD24E96B60232807B3B4C3CECC10C662
output:
gpg: Note: no default option file '/home/user/.gnupg/gpg.conf'
gpg: using character set 'utf-8'
gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache memstat trust hashing ipc clock lookup extprog
gpg: DBG: [not... |
I was struggling with this too for a long time. Then I found in the manual for dirmngr:
--standard-resolver
This option forces the use of the system's standard DNS resolver
code. This is mainly used for debugging. Note that on Windows
a standard resolver is not used a... | gpg recv-keys error: DBG: Not enabled <Dirmngr>, keyserver receive failed: Not enabled |
1,499,090,140,000 |
I want to get rid of two first lines generated after the usage of gpg -d file.txt.gpg, meaning that only text itself would be left. I tied to use --no-comment, but it seems to not work.
gpg: encrypted with 2048-bit RSA key, ID 4FXXXXXXXXD30D52, created 2020-01-22
"test test <[email protected]>"
test
test444
|
gpg --quiet -d file.txt.gpg
(or -q)
| GPG - remove header from decrypted text |
1,499,090,140,000 |
I've been using a ssh key for a while by opening it using gpg agent. I do remember the gpg agent password, but I don't remember the ssh key.
How could I recover the ssh key from the gpg agent?
|
gpg-agent emulates ssh-agent. Auth requests are sent to the agent, and agent returns the authentication. You can't retrieve any private key but only public keys from the agent. It is designed in this way on purpose for security.
The agent will never send a private key over its request channel. Instead, operations tha... | Recover lost ssh key still registered in gpg agent |
1,499,090,140,000 |
Under Debian 8 I created (presumably, then with gpg 1 or 2.0) and published my key secring.gpg to a keyserver, the file is still under the directory ~/.gnupg/. But now with gpg 2.1:
gpg --list-secret-keys
has no output and attempts to sign something
gpg -s tmp.txt
fail with
gpg: no default secret key: secret key not... |
GnuPG 2.1 no longer uses ~/.gnupg/secring.gpg; instead, it uses separate files in ~/.gnupg/private-keys-v1.d`, with the help of its agent. There should have been an automatic migration at some point, however there are a number of scenarios where that misses some information (including the case where a private key is a... | gpg on Debian 9.3 isn't finding any private keys only public ones |
1,499,090,140,000 |
I'm completely new to GnuPGP and I'm trying to test it.
Basically, what I've done is downloaded the Linux Mint key (ID 0FF405B2) from pgp.mit.edu.
gpg --keyserver pgp.mit.edu --recv-keys 0FF405B2
I've verified that it's in my keychain, from Clement Lefebvre.
After that was done, I download the PGP block from a Linux ... |
The various checksum and signature files allow you to verify the files you downloaded, not files you re-create yourself. So you download the ISO image and the verification files
wget http://mirror.csclub.uwaterloo.ca/linuxmint/stable/17.3/linuxmint-17.3-cinnamon-64bit.iso
wget http://mirror.csclub.uwaterloo.ca/linuxmi... | Trying to verify file integrity with GnuPG. "BAD signature" all the time |
1,499,090,140,000 |
I want to check whether the passphrase of my user-id located inside a file is correct or not. I have stored my passphrase in a file (/home/user/.gpg_pass.txt), than I use it as:
gpg --verbose --batch --yes --pinentry-mode loopback \
--passphrase-file=/home/user/.gpg_pass.txt
--decrypt <file>
Before using this... |
Try
gpg --batch --pinentry-mode loopback --passphrase-file=/home/user/.gpg_pass.txt --dry-run --passwd your-keyid
as the man page also says that these are the options to allow to get the password from a file.
Note that if you want to do that from inside a script, I'd assume it sets the return code depending on the ou... | How can I check passphrase of gpg from a file? |
1,499,090,140,000 |
Maybe this problem is not good, but I have tried it for two days. Still no success. I want to download the 1.4.13 version of gnupg, but I found that the various websites of gnupg are not accessible. I saw gnupg on github, but when I use git clone -b 1.4.13 https://gitee.com/mirrors/GnuPG.git, it shows that there is no... |
I want to download the 1.4.13 version of gnupg
https://gnupg.org/ftp/gcrypt/gnupg/gnupg-1.4.13.tar.bz2
https://gnupg.org/ftp/gcrypt/gnupg/gnupg-1.4.13.tar.bz2.sig
| How to download 1.4.13 version of gnupg in linux server? |
1,499,090,140,000 |
I have a command piping an encrypted gpg stream into curl:
echo "Some Text" | gpg -o - | curl --silent -T - \
-X PUT \
--output /dev/null \
${myurl} \
When running this, I see something like
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload ... |
How to prevent curl output from printing a preceding pipe's output?
curl does not print the "preceding pipe's output". What happens is curl and gpg print some messages to your terminal. The messages interfere with each other.
Remember that piped commands run concurrently.
If you expect the output from successful gp... | How to prevent curl output from printing a preceding pipe's output? |
1,499,090,140,000 |
openssl this way can only encrypt small files:
openssl rsautl -encrypt -pubin -inkey public_key.pem -in secret.txt -out secret.enc
openssl as I found suggested here throws an error:
openssl smime -encrypt -aes-256-cbc -binary -in secret.txt -outform DER -out secret.txt.der public_key.pem
not that you're supposed to ... |
Well, the first problem is that you really don't want to encrypt a large file with an asymmetric cipher. Nobody does this, as they are slow, and limited in size in any case. What you do is create a session key for a symmetric cipher, encrypt the session key with the asymmetric cipher, encrypt the large file with the... | How can I use an unsigned public key to encrypt a large file using openssl? |
1,499,090,140,000 |
I have some strange behavior I don't understand. I'm just trying to list some files in a directory:
sudo find /home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root produces:
/home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root/
/home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root/.gnupg
/home/vsts/work/_temp/tmp.Q8K2bSe... |
As you noted correctly, the expansion order is the root of your problem. The step relevant for filename globs is "filename expansion". Although it is rather late in the order of expansions (see here e.g.), it is performed before the command is actually invoked. This means that e.g. ls * in a directory containing file1... | ls shows "no such file", but why? [duplicate] |
1,499,090,140,000 |
I'm new to GPG and I've learned some basic GPG commands recently. I just found that using the same GPG command to encrypt the same data always generates different result. Below is an example. Is is normal? I took a quick look at the GPG man page and found there is a parameter --faked-system-time which seems indicates ... |
Yes, GnuPG stores the time in the encrypted data. To see this, run
echo xxx | gpg -ear [email protected] > encryptedexample
(using an id for which you have a private key), then
gpg --list-packets --verbose encryptedexample
will end with something like
:literal data packet:
mode b (62), created 1599715776, na... | Same gpg command applied on the same string but got different result |
1,499,090,140,000 |
I have a file that is decrypted with a similar command:
gpg --batch --yes -q -d --passphrase-fd 0 -o "/var/file.out" "/var/file.gpg" < /var/secret.key
I want to change the content of the /var/file.gpg but the decryption should continue work as before. Any idea how to encrypt it (I was able to find some examples with... |
Ok. I've found what I needed:
passphrase=$(head -n 1 /var/secret.key)
gpg --symmetric --batch --yes --passphrase $passphrase --output some.gpg toEncrypt.txt
| How to encrypt file with gpg and a passphrase only? |
1,499,090,140,000 |
I'm on Linux Mint 19.1 Cinnamon.
I have a minor problem with identifying the actual up-to-date GPG public key used by apt-get with Spotify music application.
I would like to remove the old - deprecated public keys.
I would like to do all this from CLI, if possible.
I'm unsure where to start, could anyone navigate me ... |
List apt keys as root with spotify string:
# apt-key list 2>&1 | grep -i spotify -B 2
Remove, but the newest key with:
# apt-key del <keyid>
Example output in my case:
pub rsa4096 2018-05-23 [SC] [expires: 2019-08-16]
931F F8E7 9F08 7613 4EDD BDCC A87F F9DF 48BF 1C90
uid [ unknown] Spotify Public... | How to find out which public key is actually in use and remove deprecated ones (gpg)? |
1,541,010,146,000 |
I have a problem with gpg2 and signing my commits in git. I should preface all this by saying this all worked yesterday before I did an apt-get update && apt-get upgrade and a reboot.
Now when I try to sign my commits I get the following error message:
gpg: skipped "3C27FEA3B5758D9E": No secret key
gpg: signing failed... |
You don't have the private part of your GPG key. A GPG key consists of a public key, the piece of information that other computers can use to verify signatures coming from you, and the private key, the part that is needed to create a signature or decrypt messages sent to you. This is why Git is giving you an error. It... | gpg2 and git signing |
1,541,010,146,000 |
Duplicity by default asks for passwords to GnuPG keys on start up and caches them in memory throughout process lifetime. Is there a way to have it use /usr/bin/pinentry instead so I know I'm not passing the passphrase through Duplicity?
I'm using GnuPG hardware smart cards, so generally when a sign or decrypt operatio... |
Duplicity does not cache gpg pass phrases by default (you can give them as env vars though). All prompts you see are from the gpg binary run underneath. Hence, when you configure your gpg into the desired state, duplicity will use it as configured and you are set.
For using gpg-agent read what the parameter --use-agen... | Configure Duplicity to use pinentry? |
1,541,010,146,000 |
I am currently trying to add a new repository to apt-get but it is not working.
I'm adding it like this:
deb http://volatile.debian.org/debian-volatile wheezy/volatile non-free
Then I get this error:
Get:11 http://volatile.debian.org wheezy/volatile Release [7626 B]
Ign http://volatile.debian.org wheezy/volatile Rele... |
Volatile was discontinued with Squeeze; the replacement is suite-updates (in your case, wheezy-updates) on the standard mirrors:
deb http://ftp.debian.org/debian wheezy-updates main
You can add contrib non-free if necessary.
| GPG error with http://volatile.debian.org : 'The following signatures were invalid: NODATA 1 NODATA 2' |
1,541,010,146,000 |
Recently I happend to experience a quite unpleasant power outage
which caused my system to go down unexpectadly. After power came
back the system came back as well and other than a fsck being required
all seemed fine. The unedifying surprise hit me when I first tried
to access my pass password store - it complained ab... |
Your folder /home/meUser/.gnupg is gone. You have to restore it from lost+found or backup.
| gnupg broken after power outage |
1,541,010,146,000 |
I'm having a problem building GPG on my system; when I try to run make it fairly well before it suddenly bails out with an error. Here's my latest result from running it:
make all-recursive
Making all in m4
make[2]: Nothing to be done for `all'.
Making all in gl
make all-am
make[3]: Nothing to be done for `all-am'.
... |
Your version of the GPG source code has a typo on line 69 in scd/pcsc-wrapper.c: someone mistyped unsigned as unsinged. Fix that, and GPG will compile.
| Problem building GPG |
1,541,010,146,000 |
The pass program is a command line utility to store passwords plus free form extra data in small files encrypted with gpg. It provides a grep sub-command in particular to find passwords by the extra data.
But this grep sub-command is painfully slow on my machine. I have nearly 200 passwords stored and internally each ... |
KDF's are Key Derivation Functions that convert a password into a cryptographic key. It needs this to decrypt your passwords. To keep passwords from being guessed they are all intentionally slow when first designed.
Generally GPG will cache a private key once you've entered the password for it or used it recently. It... | Decrypting multiple files quicker with gpg |
1,541,010,146,000 |
On server there is no browser nore gui, so is it possible to disable the gpg-agent-browser.socket ?
On debian 10.13 I can see those files:
/usr/lib/systemd/user/gpg-agent.socket
/usr/lib/systemd/user/gpg-agent.service
/usr/lib/systemd/user/gpg-agent-ssh.socket
/usr/lib/systemd/user/sockets.target.wants/gpg-agent.socke... |
This is a user service, so it’s only active in user sessions started by systemd. On a server, it’s likely you don’t have any most of the time.
If you do want to disable it, you need to do so for each user:
systemctl --user disable gpg-agent-browser.socket
| debian howto disable gpg-agent-browser.socket |
1,541,010,146,000 |
I have been losing my mind due to IntelliJ not wanting to commit my code. I had put export GPG_TTY=$(tty) into my .bash_profile instead of my .bashrc; echoing $GPG_TTY responded with the proper path, but I still kept getting the gpg: failed to sign the data error.
From what I gather, .bash_profile is read and executed... |
Solution to a problem: put the export var into .bashrc, and call the .bashrc from .bash_profile.
Yes, the difference is login vs non-login. The bash would be in login mode, when you login to bash, for example through ssh or on a non-gui machine. But once you logged in, all new instances of bash would be started in non... | How does bashrc function differently from bash_profile? |
1,541,010,146,000 |
How do I install gpgv, the stripped-down version of gpg (and one of the helper tools)? I'm looking for a solution that I can use on Photon OS containers, without installing the full gpg.
I know that on Ubuntu it can be done with sudo apt install gpgv2 which I see only takes "52.2 kB of additional disk space".
Photon O... |
You can get what you want using a multi-stage Dockerfile:
FROM docker.io/photon:latest AS builder
RUN yum -y install gnupg
FROM docker.io/photon:latest
COPY --from=builder /usr/bin/gpgv /usr/bin
COPY --from=builder /lib64/libgcrypt.so.20 /lib64/libgcrypt-error.so.0 /lib64/
But unless you are running in an extremel... | How to install standalone gpgv signature verification tool |
1,541,010,146,000 |
Warning info "This key is not certified with a trusted signature!" when to verify apache :
wget https://downloads.apache.org/accumulo/1.10.2/accumulo-1.10.2-bin.tar.gz
wget https://downloads.apache.org/accumulo/1.10.2/accumulo-1.10.2-bin.tar.gz.asc
wget https://downloads.apache.org/accumulo/KEYS
gpg --import KEYS ... |
Either setting trust to ultimate (5), or signing the key, will do the trick (but see the caveat below!).
Option 1: set trust to ultimate
$ gpg --edit-key 8CC4F8A2B29C2B040F2B835D6F0CDAE700B6899D
[...]
gpg> trust
[...]
Please decide how far you trust this user to correctly verify other users' keys
(by looking at pa... | How can suppress the warning info when to verify apache? |
1,541,010,146,000 |
I want to use the pass credential store for DockerHub login. Therefore, following mainly this link
I installed pass (apt install pass)
I installed docker-credential-pass, but following the instruction 4 to 7 under How to set up credential storage in this other link
I modified the ~/.docker/config.json file adding the... |
Solved!
The issue was that "my" old GPG ID belonged to my root user, so I needed to generate a key with my non-root user
| `gpg: error retrieving "email" via WKD: No data` when trying credential storage for DockerHub login |
1,541,010,146,000 |
I am trying to install https://electrum.org/#download for that I am following the instructions, but when I trying to verify the signature, I have the following error:
└─$ gpg --verify Electrum-4.1.5.tar.gz.ThomasV.asc Electrum-4.1.5.tar.gz ... |
gpg: Can't check signature: No public key
You need to gpg --import public keys.
here is a list of Electrum pubkeys
And then sign them with your own private key (Which means they are trusted by you)
in the end:
gpg --verify signature-of-file.asc file
| How to verify Electrum signature in Linux? |
1,541,010,146,000 |
I want to do regular backups of my remote VPS via a cronjob. Both systems run Debian 10.
I have been following this guide and tweaked it to my liking. Relevant parts of the script:
/root/.local/bin/backup
#!/bin/bash
SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
rsync -avzAHXh -e ssh root@[someIP]:/path/to/r... |
Commands executed by Cron have an extremely basic execution environment and path setting, a frequent error is to test a command or script as your normal user id. Then it fails when run by Cron.
Exported Environment variables are often overlooked. It is prudent to do a final test, as root, with a completely cut down en... | Remote Server: Permission denied (publickey) when using rsync with ssh with gpg via cronjob |
1,541,010,146,000 |
So I've got a situation where programX.py creates files such as file1.txt.
How could one make it so that only programX.py has the rights to edit (write to) file1.txt?
So anything else (such as a user) cannot edit file1.txt - they would only be able to read from it.
I've read up about digital signatures (gpg), but I'm ... |
Run programX.py as a separate functional user account and group. This will cause all files created by that program to be owned by the functional account. Set the umask in the functional accounts profile to 0077. This will limit access to the files to the functional account only.
From there, within programX.py you c... | Make files read-only - except for the program that creates them |
1,541,010,146,000 |
I use Gnome 3.36.3 (Ubuntu 20.04.1) with GnuPG 2.2.19 as SSH agent.
I tell OpenSSH where to find the GnuPG SSH agent socket in my ~/.profile file:
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
This works fine in terminal windows. Whenever I connect to a remote SSH server, I get prompted for my PIN.
But... |
TLDR:
sudo chmod +x /lib/systemd/user-environment-generators/90gpg-agent && reboot
The Longread:
When opening remote locations with Nautilus, the gvfs-daemon takes care of
connecting to the remote system and mounting its file-system in the background.
gvfs is managed by systemd. And systemd seems to manage its own env... | How to start GnuPG SSH Agent for gvfs? |
1,541,010,146,000 |
I am trying to verify the file
https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-108.4.453.tar.gz
using the signature provided here:
https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-108.4.453.tar.gz.asc
I am using the following command:
gpg --verify dropbox-lnx.x8... |
Having dug a bit deeper into this, I think I can now at least partly answer this myself. Any supplemental information is of course still welcome. :)
The reason is probably the fact that the given signature does not contain the fingerprint of the key, but only the key ID. You can see this for example with gpg --list-pa... | `gpg --recv-keys` works, but `auto-key-retrieve` does not |
1,541,010,146,000 |
When the same string is encrypted with gpg2 multiple times, the result would differ, even when the encryption key is the same.
$ echo "secret message" | gpg2 --batch --passphrase-file /tmp/key --output - --symmetric > /tmp/r
$ xxd r
00000000: 8c0d 0409 0302 49c1 3718 910a c1ca f3d2 ......I.7.......
00000010: 4401 85a... |
You can't. The most commonly accepted definitions of security (e.g., semantic security and adaptive chosen-ciphertext security) do not admit deterministic encryption.
To see why, imagine that I ask you two yes/no questions, and that you encrypt the answers to me deterministically under some pre-shared key. With dete... | How do I force `gpg2` to always produce the same output for the same input? |
1,541,010,146,000 |
I followed these instructions for installing docker on debian 9.11 "stretch"
https://docs.docker.com/engine/install/debian/
My file /etc/apt/sources.list looks like this
deb http://repo.myloc.de/debian stretch main non-free contrib
deb-src http://repo.myloc.de/debian stretch main non-free contrib
deb http://repo.mylo... |
Yes , you need to remove the docker repository under /etc/apt/sources.list.d/ (It is not a valid docker repo, it is an url to docker installation script):
sudo rm /etc/apt/sources.list.d/docker.list{,.save}
Then edit your sources.list:
sudo apt edit-sources
Change the following line:
deb https://download.docker.com/... | gpg error installing docker on debian stretch |
1,541,010,146,000 |
During work with RPM packages I frequently need to validate signatures against available GPG keys.
Using
rpm -qip --nosignature <package.rpm> | grep Signature
gives me an Key ID, i.e.:
Signature : RSA/SHA1, Mon 28. Aug 2019 06:00:00 AM CET, Key ID 1234567890abcdef
whereby
gpg --with-fingerprint <RPM-GPG-KEY-pac... |
During research I've found that the Key ID are usually the last 8 or 16 bytes of the Key Fingerprint. So I wanted to extract just them from the output. How to achieve that?
I've found the following approach which seems to be working:
keyID.sh
#! /bin/bash
KEY_PATH=$1
KEY_FINGERPRINT=$(gpg --with-fingerprint ${KEY_P... | Compare Key ID of RPM package with Key Fingerprint of RPM-GPG-KEY |
1,541,010,146,000 |
I transferred my keys using unison to another machine. On the other machine, gpg cannot find any keys.
$ gpg --list-secret-keys
$
list-secret-keys does not output anything.
$ ls -lha .gnupg/
total 76K
drwx------ 5 alex alex 4,0K Mär 8 23:38 .
drwxr-xr-x 116 alex alex 36K Mär 8 23:11 ..
drwx------ 2 alex alex ... |
Note that pubring.kbx is sized 2,0K on the first machine, but only 32 bytes on the second machine. So either the file has different contents or the transfer was incomplete.
The timestamp is older on the second machine too, so I'd guess the second machine got an out-of-date version of the file for some reason.
| GPG Cannot Find Keys |
1,541,010,146,000 |
How do I decrypt files that are stored in cascade subdirectories with gpg? Something like a bash script:
for file in all_subdirs; do
gpg --passphrase passphrase *.gpg
|
Two options; the first (given the bash tag):
shopt -s globstar
for file in **/*.gpg
do
gpg --passphrase passphrase "$file"
done
Alternatively, using the find command:
find . -name '*.gpg' -exec gpg --passphrase passphrase {} \;
| gpg decryption of multiple subdirectories |
1,541,010,146,000 |
I import [E] subkey to different folder from ~/.gnupg, and export subkey's public key with --homedir option.
I can see subkey's public key has less lines than master's plublic, using diff results that they has some starting lines the same, but then different lines at the bottom so at the end it's still different publi... |
In asymmetric cryptography you always deal with key-pairs. For each secret key there is a corresponding public key. So to answer your first question: yes, the public key of a primary key pair is different from the public key of its subordinate key pair.
I tried to reproduce your experiment and created a GnuPG test key... | GPG: [E] subkey's public key is the same as master's public key? |
1,541,010,146,000 |
I'm trying to migrate a (PHP) software module into a new server (from a CentOS 6.9 to an Ubuntu 16.04). In a certain part of a process, the code tries to launch the following command:
gpg --no-tty --sign --encrypt --armor --passphrase=whatever --local-user A188E1E4! --recipient A188E1E4
So I'm trying to export the pr... |
gpg will try to load the keys from ~/.gnupg and will not list "All keys in the system" as each user has a separate keyring. You cannot do this.
In your case the gpg application will try to list the keys from www-data, php or what is the name of the user that owns the php process.
You can change the location of the key... | List and export GPG keys |
1,541,010,146,000 |
I would like sudo to always do as if I had passed the -A (--askpass) option.
I would like that so that sudo always uses my gnupg agent and password store. It already works if I pass -A manually, but I would like -A to always be passed.
|
Would an alias be enough? You can go to your $HOME/.bashrc file and bellow other existing alias you can enter
alias sudo='sudo -A'
I have similar customized alias in my .bashrc file that work fine.
Before to make it permanent, you can try it in your shell to verify that works ok.
| Always passing -A (--askpass) to sudo |
1,541,010,146,000 |
I would like to know about the safety of RSA based encryption, especially when used to encrypt files with gpg or encrypt connections over ssh.
Is it possible to reconstruct a working private key, given some public key?
Is it easier to decrypt one small file? Or is the complexity of decrypting a small file equal to th... |
You should read the manual, it explains a lot. I'll comment mostly.
The public key in RSA consists of 2 large carefully chosen primes that are multiplied. To attack RSA, the attacker needs to find these factors.
So yes, actually, when you publish your public key the attacker knows what number to factorize. But in fact... | RSA: private key safety? (ssh/gpg) [closed] |
1,541,010,146,000 |
How can I choose which software I want to install from a Debian repository? I know that didn't make much sense, let me explain more detail.
I want to install a «unstable» version of gnupg with (ECC support), but I'm afraid of adding a «unstable» repository to my sources.list file, because it will mess up other sotware... |
Pinning all packages in unstable is easy. Just add
Package: *
Pin: release a=unstable
Pin-Priority: 50
or similar to /etc/apt/preferences.
This will hold back all packages in unstable from upgrade by apt or aptitude. Note that there is nothing magic about 50. From man apt_preferences:
0 < P < 100
causes... | Choose software from Debian repository |
1,541,010,146,000 |
This is what I get when running apt-get update:
/root$ sudo apt-get update
Get:1 http://security.debian.org jessie/updates InRelease [1,507 B]
Get:2 http://cdn.debian.net jessie InRelease [1,507 B]
Get:3 http://cdn.debian.net jessie-updates InRelease [1,507 B]
Err http://security.debian.org jessie/updates InReleaset/l... |
I wasn't sure whether or not I should just delete this question because it turned out to be the very common proxy problem.
I was convinced this wasn't it but doing a wget -O- http://cdn.debian.net/debian/dists/jessie/InRelease as suggested returned a response from our proxy. I didn't think I was pointing to our proxy... | Debian jessie GPG error Clearsigned file isn't valid |
1,541,010,146,000 |
I'm trying to setup custom Ubuntu install CD using instructions on http://beezari.livejournal.com/191717.html
I've added my GPG key to ubuntu-keyring and signed Release file with it (resulting in Release.gpg signature file)
But during installation I get
gpgv: Can't check signature public key not found
It looks like t... |
Looks like the problem has to do with the fact that I use initrd from netboot. And that initrd has /usr/share/keyrings in it.
I've updated ubuntu-archive-keyring.gpg there and problem with signature seems to be solved.
Though ubuntu-installer can not find my packages added to extras.
| How do I add custom GPG key to Ubuntu/Debian installer? |
1,716,209,189,000 |
I need to change the gpg key originally used for pass on my system to a newly generated key.
However, when I follow the advice I found on this thread: https://unix.stackexchange.com/questions/226944/pass-and-gpg-no-public-key, things don't seem to work out as they should. The command used and its output while trying t... |
The issue can/was resolved using the GUI QTPass app. QTPass made it straightforward to add the second key, re-encrypting all files in the store with it, and then uncheck the original key.
| how to change/add gpg key to pass |
1,716,209,189,000 |
pass was recently removed on my Debian sid setup when gpg (namely dirmngr gpg gpg-agent gpg-wks-client gpgsm gpgconf gpgv) were upgraded to unstable version 2.2.40-3.
At this time, reinstalling pass requires downgrading gpg to 2.2.40.1. Is there a clean way for me to downgrade without apt-get removing several other pa... |
The problem you’re running into comes from your switch to testing. It’s fine to do this, and thank you for helping test the next release; but usually it’s best done at a quieter time in the development process.
To fix your immediate problem, the safest option is to install gnupg from unstable:
sudo apt install -t sid ... | re-install pass on Debian sid |
1,716,209,189,000 |
When I create a keypair with gpg, then it stores the secret key inside of
~/.gnupg/private-keys-v1.d
It stores the public-key inside of a keyring-file - I can name it or it uses the default-location.
If I have a look (--list-public-keys and --list-secret-keys) at my public and secret-keys I can see what pair matches.... |
Use gpg --list-secret-keys --with-keygrip.
This path stores private keys for several different protocols (PGP, SSH, S/MIME), so it cannot use the PGP fingerprint; instead the 40-character name is the hash of the raw public key (as in, not including the PGP certificate metadata) in libgcrypt s-exp format.
| GPG: find secret-keyfile that matches my public-key |
1,716,209,189,000 |
Just upgraded my Buster server to Debian 11 Bullseye.
However, gpg is now broken.
apt update fails with Unknown error executing apt-key
apt-key --list fails with gpg: symbol lookup error: gpg: undefined symbol: gpgrt_set_confdir, version GPG_ERROR_1.0
any attempt to run gpg fails with the above error.
GPG is version... |
As you discovered, the error is caused by one of these libraries:
libreadline.so.8 => /usr/local/lib/libreadline.so.8 (0x00007fc36eb79000)
libassuan.so.0 => /usr/local/lib/libassuan.so.0 (0x00007fc36eb65000)
libgpg-error.so.0 => /usr/local/lib/libgpg-error.so.0 (0x00007fc36eb41000)
To fix this... | GPG broken after debian 10 -> 11 upgrade |
1,716,209,189,000 |
I have just restored my data from a borg backup repository after a computer failure.
My ~/.gnupg folder seems fine, private keys are there, and permissions look correct. Usually borg does a good job at this. When I cat the private keys files, there is no sign of data corruption.
However I cannot list or use the privat... |
I am trying a garuda kde install at the moment, and it turns out it comes with some default gpg settings I have not yet completely figured out.
Anyway, it turns out some process is constantly recreating a basic .gnupg folder. It does not look like it is to blame on gpg agent since I was able to disable all gpg related... | Recover poorly backed up gpg secret keys |
1,716,209,189,000 |
How do I change the passphrase of an SSH key that is stored in the gpg-agent?
|
First of all, if you want to change the passphrase for a key that you use for a longer time, consider replacing the key entirely. Usually it's not a big effort and key rotation is a good routine.
Now to the question: While you can change the passphrase of the ssh-key stored in you ~/.ssh directory with
ssh-keygen -p -... | Change passphrase of SSH key stored in the gpg-agent |
1,716,209,189,000 |
GPG decrypt command
I'm try to decrypt a file by gpg and to do this I'm executing (with success) the following command:
gpg --passphrase "12345678" --batch --yes --no-symkey-cache filename.tar.gz.gpg
The result of the execution of the command is:
the file filename.tar.gz.gpg is correctly decrypted and is created the... |
Solution: option --output and command --decrypt
Thanks to @GracefulRestart and to this post (which explains me how to set the target of the output of gpg), I have finally found the command suited for my needs:
gpg --passphrase "12345678" --batch --yes --output filename.tar.gz --no-symkey-cache --decrypt filename.tar.g... | Find an option other than --quiet to avoid GPG warning when a file is decrypted |
1,716,209,189,000 |
Environment
OS is Artix Linux 6.0.11
GPG is 2.2.40
libcrypt is 1.10.2
keyserver is any (ubuntu , sks, mit, etc.)
Problem
I wanted to update my system via pacman -Syu and needed to import a key by Torsten Kessler, David Runge and others, whose keys "could not be looked up remotely".
OK, gpg --recv-keys it is then! Bu... |
Remember to keep your keyrings and mirrorlists up-to-date, and join your repo's mailinglist for install breaking changes like adding a repository and moving several packages there.
Artix had (now quite some time ago) added the [universe] repo and moved several arch packages there, the most important one being the arch... | gpg cannot resove/connect to keyserver |
1,716,209,189,000 |
I recently learned about pass git integration, which allows to sync my passwords with a remote git repo. Which I instantly didn't hesitate to configure.
So then I decided to clone this repo on another computer (with another GPG key installed) and try to access the passwords. It however complained:
pass myaccount
gpg: ... |
I still haven't tried it myself, but pass should be able to encrypt passwords for multiple GPG keys, so transfer the public key from the second computer to the first, and run pass init <id-of-GPG-key-1> <id-of-GPG-key-2>, then pass should encrypt all passwords in your store that aren't encrypted for those two keys for... | How do I access my passwords from `pass` from another computer without transferring private GPG keys? |
1,716,209,189,000 |
I am using GPG Version 2.2.20 and whenever I run the following command while signing the release file, I am prompted for the passphrase.
gpg --default-key <my_email> --clearsign -o - Release > InRelease
I want to avoid getting prompts and pass the passphrase directly in the command. After reading a few answers for o... |
For GnuPG version 2.1 and later you must include the option --pinentry-mode loopback in order for the --passphrase option to work.
| How to avoid prompts for passphrase while clearsigning a file? |
1,716,209,189,000 |
Is there a way to generate the default gpg.conf file? I can't find one in my fs with find / -name gpg.conf. I also tried checking gpgconf to see if it had an option for generating one, and looked for other gpg utils that come with the standard gnupg2 installation, but nothing stood out.
|
Note that the contents of gpg.conf are only used to set options that are not the default. So if you want the default options, there's no reason to have a gpg.conf file.
That said, the correct placement for gpg.conf is in the .gnupg folder and it is easily created with touch ~/.gnupg/gpg.conf.
| Generating default gpg.conf with default gnupg2 utils |
1,614,473,006,000 |
I have a Debian buster system where I am logged in to the local GUI and also logged in over ssh. I need to sign something with gnupg over ssh.
Unfortunately I get no prompt for a passphrase on my ssh session, I suspect the prompt is being shown graphically in the GUI, but since I'm not in front of the machine right no... |
I was able to work around this issue by creating a symlink to my gnupg home directory with.
ln -s .gnupg .gnupg_
I was then able to start a gpg agent manually in the symlinked gnupg home with
GNUPGHOME=$HOME/.gnupg_ gpg-agent --pinentry-program /usr/bin/pinentry-curses --daemon bash
And within that session I was abl... | How to use gnupg remotely on buster while also logged into the local GUI |
1,614,473,006,000 |
I installed GnuPG and KGPG. I created a text doc whereby I wrote down nothing except the other person's public key configuration. There is a tab for importing public keys. However, when I select the file for import, it does not import it. When trying it manually, without KGPG, I get the error message: no valid KGPG da... |
The main thing was first using the "export public key" tab and saving it using the clipboard (not file) and then transferring via copy/paste to a doc. This saved the public keys in an encrypted form. Then when the person receives this, they use the import tab and the encrypted data of the public key gets imported corr... | How do I import public keys when using KGPG? |
1,614,473,006,000 |
I'm trying to install docker on my Raspberry Pi 4b (raspian 10 buster), but get this error on running the installation command as listed on the official website:
~ > sudo curl -sSL https://get.docker.com | sh
# Executing docker install script, commit: f45d7c11389849ff46a6b4d94e0dd1ffebca32c1
+ sudo -E sh -c apt-get u... |
I had some issues installing Raspberry Pi as well, the one that helped me the most was the one from Docker Wiki:
https://docs.docker.com/install/linux/docker-ce/debian/.
However, your issue seems to be lying with the repo itself. In the URL you can see that it's a repository for Jessie and not for Buster.
You should... | GPG error: "The following signatures were invalid" on Docker installation with cURL |
1,614,473,006,000 |
I am looking for a simple, open-source password manager for linux with a CLI. It has to have a way of retrieving a password via the command line, so I can use it in several scripts (that sync my email for example).
I came across pass (https://www.passwordstore.org/). It looks very promising and exactly like the progra... |
In the end, I gave up on trying to make this work and used KeePassXC.
Then, in order to obtain a password from KeePass using the command line, I use:
gpg2 --use-agent --output - -q passphrase.gpg | keepassxc-cli show -q -a Password passwords.kdbx the_secret_password_i_am_looking_for
The passphrase.gpg file conta... | Synchronise passwords across devices with pass |
1,614,473,006,000 |
Hay all i am trying to build an openvas docker container and haveing some issues with openvasmd.
I now have it 80% working, but stuck with something, that will cause me issues, when i try to add auto updating and so on.
i got three sessions open
Session A: Where i ran all the commands to setup openvas
Session B: moni... |
found it out :D
ASked the IRC chat and some on came back wiht the below link
https://lists.wald.intevation.org/pipermail/openvas-discuss/2017-January/010592.html
Turns out, to be an know bug in an lib file with debian
| GPG openvas9 debian |
1,614,473,006,000 |
How can I check that the "enabled=1" repositories have "gpgcheck=1" in the "/etc/yum.repos.d/" directory (and the "gpgkey=" file exist or not?)?
Q: I'm searching for a solution to do this (oneliner?), I mean to list all the "enabled=1" repositories and "gpgcheck" status, and does the "gpgkey=XXX" file exist or not? - ... |
Can't think of any kind of simple way to do this. Whipped the following together, though it's not particularly elegant.
sed '/^\[.*\]/s,\[,\n<<[,' /etc/yum.repos.d/*.repo |
awk '
BEGIN {
RS = "\n<<"
}
/\nenabled=1/ && !/\ngpgcheck=1/ {
print $1"~gpgcheck disabled for enabled repo"
}
... | How to check that gpg checking is correct on RHEL based machines or not? |
1,614,473,006,000 |
I'm using kali wsl(version 1) on Windows 10, and I installed it on non-C drive with this method here.
This is the return of uname -r:
4.4.0-19041-Microsoft
I got this error while apt update:
user@host:~$ sudo apt update
[sudo] password for user:
Get:1 <mirror_site> kali-rolling InRelease [30.5 kB]
Err:1 <mirror_site> ... |
This appears to be due to an outdated link in the Microsoft docs for installing distributions manually. The Kali package linked to there is 2019.2, and I can reproduce the problem you are experiencing with that (outdated) package. There's certainly a later Kali WSL package available, because the version installed f... | How to apt update for kali on a manually installed wsl? |
1,614,473,006,000 |
I want to be able to encrypt and decrypt a simple file.
I followed this tutorial to generating an OpenPGP Key, it gets stuck at this step You will be asked to tap on the keyboard (or do any of the things you normally do) in order for randomization to take place.
And are these the right commands to encrypt and decryp... |
Generation of new OpenPGP key pairs with GnuPG requires quite a lot of entropy, and thus key generation can take some time. Do some work while waiting to help the kernel provide more random bits, in case of virtual machines which often suffer from low entropy consider using software like haveged.
The commands seem rea... | Encryption & decryption with PGP |
1,614,473,006,000 |
Getting this error on running following command
sudo apt-get update
Error:
GPG error: http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/grizzly Release: Detached signature file '/var/lib/apt/lists/partial/ubuntu-cloud.archive.canonical.com_ubuntu_dists_precise-updates_grizzly_Release.gpg' is in unsuppo... |
You are trying to install to Kali some updates intended for a version of Ubuntu (12.04 LTS, Precise Pangolin) that reached End-of-Life at the end of April 2017. The particular Release file apt-get is accessing is from year 2014, and its GPG signature file from year 2016.
See for yourself:
http://ubuntu-cloud.archive.... | GPG: Unsupported Binary Format |
1,614,473,006,000 |
How can I install GnuPG on my CentOS 7 system?
I want to use GnuPG alongside Thunderbird and Enigmail to manage pgp keys, as per the instructions in this link.
The problem is that the download instructions I find for linux all have to do with Debian. Here is an example.
EDIT
typing which gpg resulted in /usr/b... |
install Enigmail
Thunderbird > Add-ons Menu > Enigmail
If you do not already have a PGP key, generate one:
gpg --gen-key
(follow its prompts to complete the process; default values are generally fine)
3. Restart Thunderbird. Enigmail will probably auto-detect the presence of your GnuPG keychain and use it. If it... | installing GnuGPG with Thunderbird on CentOS 7 |
1,336,906,003,000 |
I installed CUDA toolkit on my computer and started BOINC project on GPU. In BOINC I can see that it is running on GPU, but is there a tool that can show me more details about that what is running on GPU - GPU usage and memory usage?
|
For Nvidia GPUs there is a tool nvidia-smi that can show memory usage, GPU utilization and temperature of GPU. There also is a list of compute processes and few more options but my graphic card (GeForce 9600 GT) is not fully supported.
Sun May 13 20:02:49 2012
+--------------------------------------------------... | GPU usage monitoring (CUDA) |
1,336,906,003,000 |
How can I verify whether hardware acceleration is available and whether it is enabled for my video card.
|
If you don't already have it, install glxinfo; in APT it's part of mesa-utils:
apt-get install mesa-utils
Run glxinfo and look for a line about direct rendering (another term for hardware acceleration):
> glxinfo | grep "direct rendering"
direct rendering: Yes
If it says "Yes", hardware acceleration is enabled
| How to verify if hardware acceleration is enabled? |
1,336,906,003,000 |
How to install Cuda Toolkit 7.0 or 8 on Debian 8?
I know that Debian 8 comes with the option to download and install CUDA Toolkit 6.0 using apt-get install nvidia-cuda-toolkit, but how do you do this for CUDA toolkit version 7.0 or 8?
I tried installing using the Ubuntu installers, as described below:
sudo wget http:/... |
The following instructions are valid for CUDA 7.0, 7.5, and several previous (and probably later) versions. As far as Debian distributions, they're valid for Jessie and Stretch and probably other versions. They assume an amd64 (x86_64) architecture, but you can easily adapt them for x86 (x86_32).
Installation prerequi... | How to install CUDA Toolkit 7/8/9 on Debian 8 (Jessie) or 9 (Stretch)? |
1,336,906,003,000 |
How is it possible to control the fan speed of multiple consumer NVIDIA GPUs such as Titan and 1080 Ti on a headless node running Linux?
|
The following is a simple method that does not require scripting, connecting fake monitors, or fiddling and can be executed over SSH to control multiple NVIDIA GPUs' fans. It has been tested on Arch Linux.
Create xorg.conf
sudo nvidia-xconfig --allow-empty-initial-configuration --enable-all-gpus --cool-bits=7
This wil... | How to adjust NVIDIA GPU fan speed on a headless node? |
1,336,906,003,000 |
I'm working on a system with multiple NVIDIA GPUs. I would like disable / make-disappear one of my GPUs, but not the others; without rebooting; and so that I can later re-enable it.
Is this possible?
Notes:
Assume I have root (though a non-root solution for users which have permissions for the device files is even be... |
Disabling:
The following disables a GPU, making it invisible, so that it's not on the list of CUDA devices you can find (and it doesn't even take up a device index)
nvidia-smi -i 0000:xx:00.0 -pm 0
nvidia-smi drain -p 0000:xx:00.0 -m 1
where xx is the PCI device ID of your GPU. You can determine that using lspci | gr... | How can I disable (and later re-enable) one of my NVIDIA GPUs? |
1,336,906,003,000 |
I have these commands compiled and running but their contents are a bit of a mystery to me.
The processes from intel-gpu-overlay read something like: 15R, 16B, 41ms waits. What is an R, what is a B, what does that wait time indicate?
It has CPU: 152% (I'd guess this is the same as what I get from top). render: 32%,... |
Taken from the link given in the comments in OP.
I was curious as well, so here are just a few things I could grab from the reference manuals. Also of interest is the intel-gpu-tools source, and especially lib/instdone.c which describes what can appear in all Intel GPU models. This patch was also hugely helpful in tra... | How do I interpret the output of intel-gpu-top and intel-gpu-overlay? |
1,336,906,003,000 |
I have seen in forums and manuals that you have to add
Option "Coolbits" "value"
to xorg.conf or similar files.
I have been able to get this working for the first GPU, the one rendering the display. I have not been able to get overclocking options in nvidia-settings for the second GPU, not rendering any display.
I ha... |
Changing the xorg.conf file to add virtual X servers for each of the cards (even those not connected to a monitor) solved the issue.
Basically, you want to have a server layout section with all of your real and virtual screens:
Section "ServerLayout"
Identifier "Layout0"
# Our real monitor
Screen ... | Multi Nvidia GPU overclocking for computations (CUDA) |
1,336,906,003,000 |
I am using ArchLinux on an HP Pavilion dv9000t which has overheating problems. I did all what I can do to get a better air flow in the laptop and put a better thermal paste but there is still a problem:
the fan stops spinning when the CPU temperature is low (even if the GPU temperature is high, which is problematic).
... |
I finally decided to choose a hardware solution.
I cut two wires from the fan and now the fan always spin (at the max level though).
I found this solution in this blog post.
| How to force the fan to always spin? |
1,336,906,003,000 |
I wonder how to log GPU load. I use Nvidia graphic cards with CUDA.
Not a duplicate: I want to log.
|
It's all there. You just didn't read carefuly :) Use the following python script which uses an optional delay and repeat like iostat and vmstat:
https://gist.github.com/matpalm/9c0c7c6a6f3681a0d39d
You can also use nvidia-settings:
nvidia-settings -q GPUUtilization -q useddedicatedgpumemory
...and wrap it up with so... | How to log GPU load? [duplicate] |
1,336,906,003,000 |
I have installed latest nVidia graphic driver via this PPA "xorg-edgers/ppa". Now in Nvidia X server setting showing the driver version is 346.35. But in Ubuntu's Additional Drivers there is no such driver rather it marks the Nouveau driver.
I ran lspci -vnn | grep -i VGA -A 12.
01:00.0 VGA compatible controller [030... |
Update typing:
nvidia-smi
gives you the driver verson nowadays.
Old answer:
Typing nvidia-settings --version will tell you what version of the NVidia driver is currently installed (even when it's not running).
lsmod | grep video will show you the running video module.
modinfo szWhateverWasTheOutputOfThePreviousComman... | What is the GPU driver I am currently running? |
1,336,906,003,000 |
I use the CUDA toolkit to perform some computations on my Nvidia GPUs. How to kill all processes that use a given GPU? (killing at once, i.e. without having to manually type the PIDs behind kill -9.)
E.g. killing all processes using GPU 2:
|
Following the Unix philosophy, you have a tool that lists processes using a given GPU, and a tool that kills processes. Combine them using shell constructs and text processing tools.
For example, to kill all the processes using GPU 2, you can execute the following command:
kill $(nvidia-smi | awk '$2=="Processes:" {p=... | How to kill all processes using a given GPU? |
1,336,906,003,000 |
How can I tell what OpenGL versions are supported on my (Arch Linux) machine?
|
$ sudo pacman -S mesa-demos
$ glxinfo | grep "OpenGL version"
| How can I tell what version of OpenGL my machine supports on Arch Linux? |
1,336,906,003,000 |
How can I turn off Hardware Acceleration in Linux, also known as Direct Rendering. I wish to turn this off, as it messes with some applications like OBS Studio which can't handle capturing of hardware acceleration on other applications since it's enabled for the entire system. Certain apps can turn it on and off, but ... |
You can configure Xorg to disable OpenGL / GLX.
For a first try, you can run a second X session: switch to tty2, log in and type:
startx -- :2 vt2 -extension GLX
To permanently disable hardware acceleration, create a file:
/etc/X11/xorg.conf.d/disable-gpu.conf
with the the content:
Section "Extensions"
Option "G... | How to disable Hardware Acceleration in Linux? |
1,336,906,003,000 |
What distinguishes kitty from the vast majority of terminal emulators?
It offers GPU-acceleration combined with a wide feature set. It’s
targeted at power keyboard users. It’s billed as a modern, hackable,
featureful, OpenGL based terminal emulator.
What are the advantages of hardware-accelerated terminal emulators?... |
They can potentially be faster at outputting and refreshing vast amounts of information. It could also allow for smooth(er) scrolling. Human beings however are quite slow at reading this information, so I'm kinda doubtful this can be beneficial - the average person is unlikely to be able to comprehend it anyways. CPU ... | What are the advantages of hardware-accelerated terminal emulators? |
1,336,906,003,000 |
How does X11 forwarding work? I am interested in knowing whether the processing to render graphics is done at the end of the host running the application or the host displaying the graphical interface?
Should I use a GPU intensive application (game) - where should I have the GPU installed (server end / client end)? Of... |
Assuming you're using OpenGL, the GPU should be installed on the host where the X server is running. The client will send rendering commands to the X server, which will then take advantage of the GPU to process the rendering commands.
| How does X11 forwarding work? |
1,336,906,003,000 |
I'm trying to understand what the difference is between DRM (Direct Rendering Manager) and a graphics driver, such as AMD or Nvidia GPU drivers.
Reading the DRM wiki[1], it seems to me like DRM is basically a graphics hardware driver, however this doesn't explain the existence of proprietary or FOSS graphics drivers f... |
"Graphics driver" can mean any number of things.
The way X (the graphical windowing system) works is that there is a central X server, which can load modules ("X drivers") for different hardware. Like vesa, fbdev, nvidia, nouveau, amdgpu.
Some of these drivers can work on their own (vesa). Some need linux kernel drive... | What's the difference between DRM and a graphics driver? |
1,336,906,003,000 |
I'm about to buy a new laptop that is being used with Linux only. Unfortunately finding a Linux laptop is not simple at all, and it seems the only option I found includes a nvidia Quadro M1200 and an Intel HD 630.
I know that it is very complex/impossible to properly run wayland (Ubuntu for instance) on nvidia. Actual... |
The answer was simple: just install nvidia drivers, open the nvidia settings page and set to use the Intel HD GPU only. Login again and you are done. Works perfectly. Battery lasts much much longer and wayland works properly.
As soon as the nvidia GPU is enabled, it seems that the fan turns on immediately, and keeps r... | Is it possible to completely turn off nvidia GPU to be able to run wayland? |
1,336,906,003,000 |
I'm using fedora 28 because it seems that is the only distro where that detects the rx560x correctly. Nonethe ess, I noticed that the performance when using the discrete GPU is significantly worse than using the integrated one.
My machine configuration is:
ACER nitro 5 an515-42,
8gb ram,
APU ryzen 2500u with vega 8 in... |
I regard the same issue as you on the Arch Linux (mesa-git, llvm-svn, linux 4.18.12 (even running 4.19.x or mainline 4.20rcx)). Stable linux kernel isn't, I would say, optimized for our gpu yet. Luckily, there is a temporary solution. I tried linux-amd-wip-git (drm-next-4.21-wip) which has the latest amd patches (ther... | rx 560x slower than integrated vega gpu on fedora 28 |
1,336,906,003,000 |
I believe we are running into a possible bug with the GTX 1080 (driver) and PCI Passthrough.
My host is an Ubuntu 14.04 system.
My guest is an Ubuntu 14.04/16.04 system (both do the same thing).
I can see device inside the guest VM:
$ lspci -vnn | grep VGA
00:05.0 VGA compatible controller: NVIDIA Corporation Device 1... |
I had the same problem, I found the answer at https://www.evonide.com/non-root-gpu-passthrough-setup/. You need to add -cpu host,kvm=off to the qemu command line. I'm using ganeti, so the following fixed the problem:
gnt-instance modify -H cpu_type="host\,kvm=off"
If I understand correctly this flag does not switch o... | Driver for GTX 1080 doesn't work on guest when using KVM PCI Passthrough |
1,336,906,003,000 |
I was wondering if Unix systems use the GPU for the startup splash/loading screen because I've been having some trouble with an overheating Mac with graphics issues. Unix-type systems (such as MacOS 10.6, 10.10 and different versions of Ubuntu) show the splash screen, but never actually boot into the GUI (typically ju... |
The answer to your literal question is yes: all systems use the GPU to display startup messages and splash screens. That's because going through the GPU is the only way to display something on the monitor.
However, the answer to the question you meant to ask is no: the ways the GPU is used during startup and after the... | Do Unix systems and other similar systems use the GPU for the startup splash/loading screen (when there is one)? |
1,336,906,003,000 |
My nvidia-smi output is as follows
COVID19_002_6LU7_Protease_Top_3/ni_fda130/fda130_fix$ nvidia-smi
Sun Jun 7 15:00:30 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.33.01 Driver Version: 440.33.01 CUDA Version: 10.2 |
|--------------------------... |
Your GPU is being used for both display and compute processes; you can see which is which by looking at the “Type” column — “G” means that the process is a graphics process (using the GPU for its display), “C” means that the process is a compute process (using the GPU for computation).
To move a type “G” process of th... | How to shift process from GPU to CPU usage |
1,336,906,003,000 |
I have a Ubuntu Version here, that is started from USB as a Live version. I do not want to install it on hard disk, because it would be too much for only testing a small thing on Ubuntu.
So I started Ubuntu and installed the nvidia driver (from nvidia) for a GPU (Tesla C2050) with the following commands:
sudo apt-add-... |
You need to unload the nouveau driver before you can load the nvidia driver.
However, the nouveau driver is currently in use by the X-server, so it cannot be unloaded yet.
You have to stop the X-server first (but don't just re-start it, as then it will use the nouveau driver again).
So in short:
stop X-server: sudo s... | Remove nouveau driver (nvidia) without rebooting |
1,336,906,003,000 |
I was wondering how Linux could handle a Gamer Computer, so I have built one, but as we know GeForce does not like Linux so much as AMD, that is why I choose the last.
I built up a computer with AMD Ryzen 7 1800X CPU and Radeon RX 560D GPU, as the Vega is too expensive for me to purchase, and the benchmarking said 560... |
I found the solution, there are some files on /sys/class/drm/card0/device the file pp_dpm_mclk indicates GPU memory clock, and the file pp_dpm_sclk indicates GPU core clock, mine:
$ egrep -H . /sys/class/drm/card0/device/pp_dpm_*
/sys/class/drm/card0/device/pp_dpm_mclk:0: 300Mhz
/sys/class/drm/card0/device/pp_dpm_mcl... | How to prevent GPU from overheating and auto turning off |
1,336,906,003,000 |
I've spent a few hours trying to understand the differences between KVM and Xen without much succes. So both are Type 1 Hypervisors with comparable performances (source) and I don't understand what differenciates them.
The only specific needs I have are that the guest OS isn't able to interract with the hosts's files... |
KVM is normally supported already via libvirt and the kernels in modern distros without much hassle. You just need a CPU that has VT-d extensions (or AMD-V for AMD processors), and your BIOS has to have it enabled. After that, it's all about installing the necessary packages to get it going.
XEN, yes, does support it... | Should I use KVM or Xen ? What are the main differences? [closed] |
1,336,906,003,000 |
I am curious about how data is copied back and forth between CPU and GPU memories when I run a CUDA program. Specifically, I want to know how the Linux kernel is involved in this process.
I had a few possible assumptions:
The CUDA user library sees the GPU as a file and calls read(2) and write(2) for every transactio... |
The application asks the kernel to mmap a set of buffers at startup, creating this mapping is a privileged operation.
Normal operation just fills these buffers with data (such as textures, vertices or commands), and finally makes a single kernel call to start the submitted command queue. This start strobe is the only ... | From the Linux kernel's point of view, how does a user program communicate with a CUDA GPU? |
1,336,906,003,000 |
I have a rendering software, to be more specific, it's a Unity3D «game» that renders video (saving rendered frames).
Unfortunately Unity3D doesn't support «headless» rendering (it can run in headless mode, but in this case it doesn't render frames), so it needs an X server to create a window.
I have a Debian Bullseye... |
My xorg.conf is like this
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Prot... | Best way to do rendering on Linux server with GPU but without a display? |
1,492,630,278,000 |
What does this mean, what is hyst? "hyst = -273.1°C"
$ sensors
k10temp-pci-00c3
Adapter: PCI adapter
Tctl: +45.0°C
Tdie: +45.0°C
Tccd1: +45.2°C
nvme-pci-0100
Adapter: PCI adapter
Composite: +48.9°C (low = -5.2°C, high = +83.8°C)
(crit = +87.8°C)
amdgpu-pci-04... |
“hyst” stands for hysteresis. In a sensor’s configuration, it’s the threshold below which the temperature must return for a sensor to no longer be considered critical. In your case, if the “edge” sensor reports a temperature of 94°C or above, it will be considered critical; once the sensor is critical, it will only be... | lm-sensors meaning of output |
1,492,630,278,000 |
I recently purchased a new laptop and installed openSUSE Tumbleweed on it. The laptop has an Intel Core i5 processor with integrated graphics and an NVIDIA 3050 Ti. My goal is to configure Xorg to run on the integrated GPU and disable the NVIDIA GPU when it's not required (to save power, as it consumes around 6 watts)... |
OHHHHHH, YESSSSS. I SOLVED IT! I simply added GPUDevice "intel" to the xorg.conf file! Now there are no processes running on the NVIDIA GPU! It doesn't go into low power state but I think I will figure it out.
I saw it in the logs that it used nvidia as the GPUDevice.
Edit: I eventually got the PRIME offloading workin... | Dual GPU Setup: Xorg on Intel Integrated GPU, NVIDIA GPU for Gaming |
1,492,630,278,000 |
I'm trying to get the optirun command to work with the FOSS Nouveau drivers on my computer that has an embeddded graphics unit and a discrete graphics processing unit. Here's my setup provided by the lspci | egrep -i 'vga|3d'command:
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (r... |
I finally found a solution to my problem by continuing my research.
Solution: do not use Optimus to switch between GPU
The Primus and Optimus programs are made to be used with Nvidia proprietary drivers. It is therefore not recommended to use them with Nouveau drivers. The Linux kernel has tools that allow you to swit... | Nvidia Optimus with Nouveau drivers |
1,492,630,278,000 |
using the following line I have been able to see processes that use the GPU some of which are mentioned python under the COMMAND column.
sudo fuser -v /dev/nvidia*
which prints:
USER PID ACCESS COMMAND
/dev/nvidia0: root 1197 F...m Xorg
alireza 1451 F.... |
EDIT
Here is a one-liner that should kill all python processes using /dev/nvidia*:
sudo fuser -v /dev/nvidia* 2>&1 | grep python | grep -o -E " [0-9]+ " | xargs kill
The 2>&1 redirection is necessary because of how fuser outputs its results. grep python will select all lines contain python, then grep -o -E " [0-9]+ "... | kill processes shown by sudo fuser filtered by COMMAND column |
1,492,630,278,000 |
This is with Ubuntu 18.04 on a Dell 7920. So the Dell power light goes on but I get nothing aside from the occasional flickering of the HD light, trying to boot when I put the 2080 in my box. (I have two actually and same thing with either one.) Everything boots fine when the RTX comes out. The monitor is plugged int... |
Following @K7AAY's suggestion and making this an answer.
On a hunch (anticipated by @SiXandSeven8ths) I took out the P2000 Quadro and things booted just fine, again with the 415.23 NVIDIA drivers. nvidia-smi works and everything appears in order. I've since installed Cuda 10, CuDNN 7, PyTorch, and everything seems we... | Black screen after inserting RTX 2080 Ti, computer won't boot at all |
1,492,630,278,000 |
I have installed the Lightworks video editor on Debian Jessie. For best performance it needs to run on a discrete video card with the proprietary driver. A Nvidia GTX 860M in my case. I have installed Bumblebee to switch between video cards as needed. With optirun or primusrun it is possible to run an application usin... |
Bumblebee, earlier, was using VirtualGL as its core and now switched to Primus technology.
optirun uses VirtualGL and primusrun uses the Primus technology. That must be the reason.
Note: Though the question was posted long back, the answer would help those want to understand the difference.
| What is the difference between optirun and primusrun (bumblebee) |
1,492,630,278,000 |
I have found a benchmark from computerbase.de (http://www.computerbase.de/artikel/grafikkarten/2013/intel-haswell-grafik-fuer-desktop-pcs-im-test/3/ in german) where in one case a task (here video transcoding) is done by the CPU and in the other case by the (integrated) GPU:
How can I assign a task (for example video... |
I think the best way to make use of your cores in GPU is to use OpenCL. The idea is quite simple. You write a kernel (a small block of code, where you can use only basic C code without libraries). For example, if you want to filter a frame, you have to do some calculations on each pixel and that is what the kernel cod... | How to assign tasks to GPU |
1,492,630,278,000 |
My laptop is a normal, uninteresting machine with two standard, unmultiplexed GPUs and an ordinary Debian stretch installation. The secondary GPU (a Radeon) is usually powered down but I can activate and use it by (for example) DRI_PRIME=1 glxgears. Mesa's source file src/loader/loader.c manages it.
Is DRI_PRIME undoc... |
I wrote up some notes at https://robots.org.uk/LinuxMultiGPUDeviceSelection - these are not complete but could be used as the basis for a more complete answer if someone wants to write one. :)
| The standard mechanism to switch GPUs isn't undocumented, is it? |
1,492,630,278,000 |
I have two GPU's, GTX 1070 and GT 710. I have only one display and I would like this display to run off of the GT710 so that I can continue to work when I am training models using CUDA. I have been at this for quite a few hours and the furthest I have been able to get is to boot into Mint in "fallback mode" with the m... |
I solved the problem. The solution is to use approach #2 and edit /etc/X11/xorg.conf/ to add second GPU as shown above. Then under Section "screen" change "MultiGPU" to "on"
more details can be seen hereenter link description here
I will post my new xorg.con in case it helps anyone in the future
# nvidia-settings: X c... | How do I use my secondary GPU for display output and primary only for computation? |
1,492,630,278,000 |
I have a supermicro server running ubuntu server 14.04, and I would like to install a Quadro 400 (for display) a Nvidia GTX 295 and a Nvidia K80 however, when I install the driver for the K80 the Quadro 400 and Nvidia GTX 295 do not appear in nvidia-smi
When I try to install the drivers for the GTX 295 (which seem to... |
This is the solution
I re-installed Ubuntu server 14.04
I followed point 1-2 and 3 from the official documentation
cuda-getting-started-guide-for-linux
I ran nvidia-smi which only showed me the K80
I unplugged the K80
I installed the drivers for the gtx295 and quadro 400 manually
sudo apt-get install nvidia-... | Multi GPU Supercomputer |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.