Skip to content

Commit e79dbcb

Browse files
committed
Lots more documentation I hadn't added
1 parent d0ae4cf commit e79dbcb

File tree

3 files changed

+47
-3
lines changed

3 files changed

+47
-3
lines changed

finding.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Finding Things
2+
==============
3+
4+
Find the alias, binary location, etc. for a command:
5+
6+
`type -a COMMAND NAME`
7+

ssh.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Basics on SSH
22
=============
33
Generate 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

77
Use the key:
88

@@ -12,8 +12,8 @@ Use the key:
1212

1313
Add 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.*

xrandr.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+

0 commit comments

Comments
 (0)