Linux: Difference between revisions

From David's Wiki
No edit summary
No edit summary
Line 1: Line 1:
The notes here are mainly for Ubuntu/Debian.
The notes here are mainly for Ubuntu/Debian.
==SSH==
====SSH Keys====
Generate an ssh-key for every client
<syntaxhighlight lang="bash">
ssh-keygen -t ed25519 -a 100 [-C "comment your client name"] [-f output_path]
</syntaxhighlight>
Manage ssh keys
<syntaxhighlight lang="bash">
# On the client
ssh-copy-id [email protected]
</syntaxhighlight>
<syntaxhighlight lang="bash">
# On the server
vim ~/.ssh/authorized_keys
</syntaxhighlight>


===Switching between Nvidia and Intel===
===Switching between Nvidia and Intel===

Revision as of 01:11, 14 September 2019

The notes here are mainly for Ubuntu/Debian.


SSH

SSH Keys

Generate an ssh-key for every client

ssh-keygen -t ed25519 -a 100 [-C "comment your client name"] [-f output_path]

Manage ssh keys

# On the client
ssh-copy-id [email protected]
# On the server
vim ~/.ssh/authorized_keys


Switching between Nvidia and Intel

Reference Make sure the Nvidia graphics drivers are installed. Then you can select between Nvidia and Intel GPUs using the Nvidia X Server Settings application nvidia-settings. Alternatively, you can use the following commands in the terminal.
To switch to the Nvidia GPU:

sudo prime-select nvidia

To switch back to the Intel GPU:

sudo prime-select intel

prime-select query will print either nvidia or intel to stdout.