1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<meta name="author" content="Robert Alessi" />
<title>The x200-my package – README file</title>
<style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<div id="header">
<h1 class="title">The x200-my package – README file</h1>
<h1 class="subtitle">An openrc service dedicated to Thinkpads X200</h1>
<h2 class="author">Robert Alessi</h2>
</div>
<h1 id="overview">Overview</h1>
<p>x200-my is a simple openrc script primarily designed to make the distinctive whining noise of Thinkpads X200 disappear. But it can also be used on other laptops.</p>
<p>It is written to be used on <a href="https://www.hyperbola.info">Hyperbola GNU/Linux-libre</a> but it should work on other Arch-based + openrc distributions.</p>
<h2 id="privacy-settings">Privacy Settings</h2>
<p>It also provides a “Privacy settings” section: if <code>enable_privacy</code> is set to <code>true</code>, then the wired internet interface that may or may not be connected to the internet can have its MAC address spoofed at startup. (The wireless interfaces must also be spoofed, but this can be handled by wpa_supplicant.) Additionally, x200-my will delete <code>/etc/dhcpcd.duid</code>, which will make <code>dhcpcd</code> generate a new DUID-LLT based file with an updated timestamp and the link-layer address of the network interface that is connected to the DHCP device at the time that the DUID is generated.</p>
<h2 id="backup">Backup</h2>
<p>Finally x200-my has the ability to backup essential files or directories—for instance a backup disk mounted inside the dock. Of course, the backup process is triggered on certain conditions only:</p>
<ol style="list-style-type: decimal">
<li>The option must be enabled in the <code>/etc/conf.d/x200-my</code> file</li>
<li>The disk must be mounted</li>
<li>An (empty) <code>dobackup</code> file must be present in the backup directory.</li>
</ol>
<p>Then, once these conditions are met, the backup process is triggered whenever the service is stopped. It additionally generates a list of installed packages in case the disk should die and everything should be reinstalled.</p>
<h1 id="license-and-disclamer">License and Disclamer</h1>
<p>x200-my - An openrc service dedicated to Thinkpads X200 Copyright (C) 2019 Robert Alessi <a href="mailto:alessi@robertalessi.net">alessi@robertalessi.net</a></p>
<p>This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.</p>
<p>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</p>
<h1 id="installation">Installation</h1>
<ol style="list-style-type: decimal">
<li>Clone this repository locally</li>
<li>Do <code>makepkg</code></li>
<li>Install the generated x200-my as root with <code>pacman -U</code></li>
<li>Edit <code>/etc/conf.d/x200-my</code></li>
</ol>
</body>
</html>
|