File tree 3 files changed +47
-3
lines changed
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
2
2
=============
3
3
Generate our key on the local machine:
4
4
5
- * ssh-keygen [ params for algo] ~ /.ssh/name-of-key
5
+ ` ssh-keygen [params for algo] ~/.ssh/name-of-key `
6
6
7
7
Use the key:
8
8
@@ -12,8 +12,8 @@ Use the key:
12
12
13
13
Add our pubkey to the remote machine:
14
14
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)
17
17
* ssh USERNAME@HOSTNAME (to test that password isn't asked)
18
18
19
19
* 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