aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2021-02-07 11:50:26 +0100
committerRobert Alessi <alessi@robertalessi.net>2021-02-07 11:50:26 +0100
commit7d0a96e7b5cf4541b07570d54829e152ff9b9a5c (patch)
tree349c3fc6cb6a3a44eb28f12c281ac4616d59775f /README.md
downloadmy-x200-7d0a96e7b5cf4541b07570d54829e152ff9b9a5c.tar.gz
initial Debian/Devuan commit
Diffstat (limited to 'README.md')
-rw-r--r--README.md170
1 files changed, 170 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..3a7dcf2
--- /dev/null
+++ b/README.md
@@ -0,0 +1,170 @@
1---
2author:
3- Robert Alessi
4title: 'The my-x200 package – README file'
5subtitle: 'A Debian/Devuan service dedicated to Thinkpads X200'
6---
7
8License and Disclamer
9=====================
10`my-x200` - A Debian/Devuan service dedicated to Thinkpads X200
11Copyright (C) 2021 Robert Alessi <alessi@robertalessi.net>
12
13This program is free software; you can redistribute it and/or
14modify it under the terms of the GNU General Public License
15as published by the Free Software Foundation; either version 3
16of the License, or (at your option) any later version.
17
18This program is distributed in the hope that it will be useful,
19but WITHOUT ANY WARRANTY; without even the implied warranty of
20MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21GNU General Public License for more details.
22
23You should have received a copy of the GNU General Public License
24along with this program; if not, write to the Free Software
25Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
2602110-1301, USA.
27
28Overview
29========
30`my-x200` is a simple script primarily designed to make the distinctive
31whining noise of Thinkpads X200 disappear. But it can also be used on
32other laptops.
33
34It is written to be used on [Devuan
35GNU+Linux](https://www.devuan.org/) but it should work on other
36Debian-based distributions.
37
38Configuration
39-------------
40Once installed, `my-x200` is configured by editing
41`/etc/default/my-x200`.
42
43Noise Removal
44-------------
45Set the variable `is_thinkpad_x200` to `yes` (which is the default
46value). The default frequency rate should work. It may be change by
47modifying the value of `PWMFREQ_RATE`.
48
49Privacy Settings
50----------------
51`/etc/default/my-x200` also provides a “Privacy settings” section: if
52`enable_privacy` is set to `true`, then the wired internet interface
53that may or may not be connected to the internet will have its MAC
54address spoofed at startup. (The wireless interfaces must also be
55spoofed, but this can be handled by wpa_supplicant: see below.)
56Additionally, `my-x200` will delete `/var/lib/dhcpcd/duid`, and use
57`/proc/sys/kernel/random/boot_id` to generate a new DUID-LLT based
58file with an updated timestamp. A new DUID is generated each time the
59computer is started.
60
61Backup
62------
63Finally `my-x200` has the ability to backup essential files or
64directories—for instance to a backup disk mounted inside the dock. Of
65course, the backup process is triggered on certain conditions only:
66
671. The option must be enabled in the `/etc/default/my-x200` file.
682. The disk must be mounted.
693. An (empty) `dobackup` file must be present in the backup directory.
70
71Then, once these conditions are met, the backup process is triggered
72whenever the service is stopped.
73
74Installation
75============
76
771. Clone this repository locally.
782. Do `make debian`.
793. Install the generated `my-x200` `.deb` package as root with `dpkg
80 -i`.
814. Edit `/etc/default/my-x200`.
82
83Alternatively, a `.deb` file ready to be installed and its associated
84`.dsc` source package file are provided in this repository. Once
85these two files and the corresponding two source files `.orig.tar.gz`
86and `debian.tar.xz` are downloaded in the same directory, it is
87advisable to verify the signature like so:—
88
891. Download `my-x200` master tarball: <>
902. Import the developer's [public PGP
91 key](https://pgp.ocf.berkeley.edu/pks/lookup?search=0x1773e9248085c8c7),
92 like so: `gpg --recv-keys 8085C8C7`
933. Verify the signature: `dscverify --keyring ~/.gnupg/pubring.gpg
94 my-x200_<ver>.dsc` (Replace `<ver>` with the actual release
95 number.)
96
97For a good GPG cheat sheet, see [here](https://guides.library.illinois.edu/data_encryption/gpgcheatsheet).
98
99Use and recommended configuration
100---------------------------------
101> The command `rc-update` that is used below refer to `openrc`. Other
102> init systems use other commands. Please adapt.
103
104It is advisable to use my-x200 in conjunction with `wpa_supplicant`
105and `dhcpcd` only. In addition, `wpagui` and `dhcpcd-gtk` are also
106recommended to be able to configure the network from systray
107applets. If so, `wicd` may be disabled: as root, simply do `rc-update
108del wicd`.
109
110### `wpa_supplicant`
111For this to work properly, it is important to have these lines in
112`/etc/wpa_supplicant/wpa_supplicant.conf`:
113
114````
115ctrl_interface=DIR=/run/wpa_supplicant GROUP=netdev
116update_config=1
117mac_addr=1
118preassoc_mac_addr=1
119````
120
121(For additional security, do (as root) `chmod 700
122/etc/wpa_supplicant`)
123
124### `dhcpcd`
125And these settings in `/etc/dhcpcd.conf`:
126
127````
128hostname "localhost"
129hostname_short
130````
131
132### `/etc/network/interfaces`
133Finally, `/etc/network/interfaces` should look like this:—
134
135````
136# This file describes the network interfaces available on your system
137# and how to activate them. For more information, see interfaces(5).
138
139source /etc/network/interfaces.d/*
140
141# The loopback network interface
142auto lo
143iface lo inet loopback
144
145# The primary network interface
146allow-hotplug eth0
147iface eth0 inet manual
148
149# wlan interface
150allow-hotplug wlan0
151iface wlan0 inet manual
152wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
153````
154
155Do Not Use
156----------
1571. NetworkManager
1582. Avahi
159
160To disable `avahi`, do (as root):
161
162````
163rc-update del avahi-daemon
164chmod -x /etc/network/if-up.d/avahi-daemon
165````
166
167Further Information
168-------------------
169More information in `my-x200` initd file:
170<https://git.robertalessi.net/my-x200/tree/my-x200.confd>