File tree Expand file tree Collapse file tree 3 files changed +47
-3
lines changed Expand file tree Collapse file tree 3 files changed +47
-3
lines changed Original file line number Diff line number Diff line change 1+ Finding Things
2+ ==============
3+
4+ Find the alias, binary location, etc. for a command:
5+
6+ ` type -a COMMAND NAME `
7+
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Basics on SSH
22=============
33Generate our key on the local machine:
44
5- * ssh-keygen [ params for algo] ~ /.ssh/name-of-key
5+ ` ssh-keygen [params for algo] ~/.ssh/name-of-key `
66
77Use the key:
88
@@ -12,8 +12,8 @@ Use the key:
1212
1313Add our pubkey to the remote machine:
1414
15- * ssh-copy-id -i USERNAME@HOSTNAME (if using key)
16- * ssh-copy-id -i ~ /.ssh/name-of-key USERNAME@HOSTNAME (if not)
15+ * ` ssh-copy-id -i USERNAME@HOSTNAME ` (if using key)
16+ * ` ssh-copy-id -i ~/.ssh/name-of-key USERNAME@HOSTNAME ` (if not)
1717* ssh USERNAME@HOSTNAME (to test that password isn't asked)
1818
1919* If it fails, make sure to chmod +755 ~ /.ssh and authorized\_ keys on the remote machine.*
Original file line number Diff line number Diff line change 1+ Multiple Monitor Setup
2+ ======================
3+
4+ Query the displays for their names and available modes,
5+
6+ ` xrandr -q `
7+
8+ To reset the displays,
9+
10+ ` xrandr --auto `
11+
12+ Shows each display's optimal (` + ` ) and current (` * ` ) resolution "mode". LVDS is the laptop screen, and eg. CRT1 is the external display.
13+
14+ To (turn on) and change the resolution,
15+
16+ ` xrandr --output SCREEN_NAME --mode WIDTHxHEIGHT `
17+
18+ To position one display relative to another,
19+
20+ ` xrandr --output SCREEN1_NAME --right-of SCREEN2_NAME `
21+
22+ * --above
23+ * --below
24+ * --right-of
25+ * --left-of
26+
27+ (Some setups may not be possible.)
28+
29+ To sort a screen first in RandR and Xinerama,
30+
31+ ` xrandr --output SCREEN1_NAME --primary `
32+
33+ It's easiest to set in one command
34+ ----------------------------------
35+
36+ ` xrandr --output LVDS --mode 1280x720 --pos 0x-720 --output VGA1 --mode 1280x720 --pos 0x0 `
37+
You can’t perform that action at this time.
0 commit comments