configuring_parabola.html 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <style type="text/css">
  7. @import url('../css/main.css');
  8. </style>
  9. <title>Configuring Parabola (post-install)</title>
  10. </head>
  11. <body>
  12. <div class="section">
  13. <h1 id="pagetop">Configuring Parabola (post-install)</h1>
  14. <p>
  15. Post-installation configuration steps for Parabola GNU/Linux-libre. Parabola is extremely flexible; this is just an example.
  16. </p>
  17. <p>
  18. <a href="index.html">Back to previous index</a>
  19. </p>
  20. </div>
  21. <div class="section">
  22. <h1>Table of Contents</h1>
  23. <ul>
  24. <li>
  25. <a href="#pacman_configure">Configuring pacman</a>
  26. <ul>
  27. <li><a href="#pacman_update">Updating Parabola</a></li>
  28. <li>
  29. <a href="#pacman_maintain">Maintaining Parabola during system updates</a>
  30. <ul>
  31. <li><a href="#pacman_cacheclean">Clearing package cache after updating</a></li>
  32. <li><a href="#pacman_commandequiv">Pacman command equivalents (compared to other package managers)</a></li>
  33. </ul>
  34. </li>
  35. <li><a href="#yourfreedom">your-freedom</a></li>
  36. </ul>
  37. </li>
  38. <li><a href="#useradd">Add a user account</a></li>
  39. <li><a href="#systemd">System D</a></li>
  40. <li><a href="#interesting_repos">Interesting repositories</a></li>
  41. <li>
  42. <a href="#network">Setup a network connection in Parabola</a>
  43. <ul>
  44. <li><a href="#network_hostname">Setting hostname</a></li>
  45. <li><a href="#network_status">Network status</a></li>
  46. <li><a href="#network_devicenames">Network interface names</a></li>
  47. <li><a href="#network_setup">Network setup</a></li>
  48. </ul>
  49. </li>
  50. <li><a href="#system_maintain">System maintenance</a> - important!</li>
  51. <li>
  52. <a href="#desktop">Configuring the desktop</a>
  53. <ul>
  54. <li><a href="#desktop_xorg">Install Xorg</a></li>
  55. <li><a href="#desktop_kblayout">Xorg keyboard layout</a></li>
  56. <li><a href="#desktop_lxde">Install LXDE</a></li>
  57. <li><a href="#lxde_clock">LXDE - clock</a></li>
  58. <li><a href="#lxde_font">LXDE - font</a></li>
  59. <li><a href="#lxde_screenlock">LXDE - screenlock</a></li>
  60. <li><a href="#lxde_automount">LXDE - automounting</a></li>
  61. <li><a href="#lxde_suspend">LXDE - disable suspend</a></li>
  62. <li><a href="#lxde_battery">LXDE - battery monitor</a></li>
  63. <li><a href="#lxde_network">LXDE - network manager</a></li>
  64. </ul>
  65. </li>
  66. </ul>
  67. </div>
  68. <div class="section">
  69. <p>
  70. While not strictly related to the libreboot project, this guide
  71. is intended to be useful for those interested in installing
  72. Parabola on their libreboot system.
  73. </p>
  74. <p>
  75. It details configuration steps that I took after installing the base system,
  76. as a follow up to <a href="encrypted_parabola.html">encrypted_parabola.html</a>.
  77. This guide is likely to become obsolete at a later date (due to the volatile
  78. 'rolling-release' model that Arch/Parabola both use), but attempts will be made to maintain it.
  79. </p>
  80. <p>
  81. <b>
  82. This guide was valid on 2014-09-21. If you see any changes that should to be made at the present date, please get in touch
  83. with the libreboot project!
  84. </b>
  85. </p>
  86. </div>
  87. <div class="section">
  88. <p>
  89. You do not necessarily have to follow this guide word-for-word; <i>parabola</i> is extremely flexible.
  90. The aim here is to provide a common setup that most users will be happy with. While Parabola
  91. can seem daunting at first glance (especially for new GNU/Linux users), with a simple guide it can provide
  92. all the same usability as Trisquel, without hiding any details from the user.
  93. </p>
  94. <p>
  95. Paradoxically, as you get more advanced Parabola can actually become <i>easier to use</i>
  96. when you want to set up your system in a special way compared to what most distributions provide.
  97. You will find over time that other distributions tend to <i>get in your way</i>.
  98. </p>
  99. </div>
  100. <div class="section">
  101. <p>
  102. <b>
  103. This guide assumes that you already have Parabola installed. If you have not yet installed Parabola,
  104. then <a href="encrypted_parabola.html">this guide</a> is highly recommended!
  105. </b>
  106. </p>
  107. <p>
  108. A lot of the steps in this guide will refer to the Arch wiki. Arch is the upstream distribution that Parabola uses.
  109. Most of this guide will also tell you to read wiki articles, other pages, manuals, and so on. In general it tries
  110. to cherry pick the most useful information but nonetheless you are encouraged to learn as much as possible.
  111. <b>It might take you a few days to fully install your system how you like, depending on how much you need to read. Patience is key,
  112. especially for new users</b>.
  113. </p>
  114. <p>
  115. The Arch wiki will sometimes use bad language, such as calling the whole system Linux, using the term open-source (or closed-source),
  116. and it will sometimes recommend the use of proprietary software. You need to be careful about this when reading anything on the
  117. Arch wiki.
  118. </p>
  119. </div>
  120. <div class="section">
  121. <p>
  122. Some of these steps require internet access. I'll go into networking later but for now, I just connected
  123. my system to a switch and did:<br/>
  124. # <b>systemctl start dhcpcd.service</b><br/>
  125. You can stop it later by running:<br/>
  126. # <b>systemctl stop dhcpcd.service</b><br/>
  127. For most people this should be enough, but if you don't have DHCP on your network then you should setup your network connection first:<br/>
  128. <a href="#network">Setup network connection in Parabola</a>
  129. </p>
  130. </div>
  131. <div class="section">
  132. <h2 id="pacman_configure">Configure pacman</h2>
  133. <p>
  134. pacman (<b>pac</b>kage <b>man</b>ager) is the name of the package management system in Arch, which Parabola
  135. (as a deblobbed parallel effort) also uses. Like with 'apt-get' on debian-based systems like Trisquel,
  136. this can be used to add/remove and update the software on your computer.
  137. </p>
  138. <p>
  139. Based on <a href="https://wiki.parabolagnulinux.org/Installation_Guide#Configure_pacman">https://wiki.parabolagnulinux.org/Installation_Guide#Configure_pacman</a>
  140. and from reading <a href="https://wiki.archlinux.org/index.php/Pacman">https://wiki.archlinux.org/index.php/Pacman</a> (make sure to read and understand this,
  141. it's very important) and
  142. <a href="https://wiki.parabolagnulinux.org/Official_Repositories">https://wiki.parabolagnulinux.org/Official_Repositories</a>
  143. </p>
  144. <p>
  145. <a href="#pagetop">Back to top of page.</a>
  146. </p>
  147. </div>
  148. <div class="section">
  149. <h2 id="pacman_update">Updating Parabola</h2>
  150. <p>
  151. In the end, I didn't change my configuration for pacman. When you are updating, resync with the latest package names/versions:<br/>
  152. # <b>pacman -Syy</b><br/>
  153. (according to the wiki, -Syy is better than Sy because it refreshes the package list even if it appears to be up to date,
  154. which can be useful when switching to another mirror).<br/>
  155. Then, update the system:<br/>
  156. # <b>pacman -Syu</b>
  157. </p>
  158. <p>
  159. <b>
  160. Before installing packages with 'pacman -S', always update first, using the notes above.
  161. </b>
  162. </p>
  163. <p>
  164. Keep an eye out on the output, or read it in /var/log/pacman.log. Sometimes, pacman will show messages
  165. about maintenance steps that you will need to perform with certain files (typically configurations)
  166. after the update. Also, you should check both the Parabola and Arch home pages to see if they mention any issues.
  167. If a new kernel is installed, you should also update to be able to use it (the currently running kernel will
  168. also be fine). It's generally good enough to update Parabola once every week, or maybe twice. As a
  169. rolling release distribution, it's a good idea never to leave your install too outdated; update regularly. This
  170. is simply because of the way the project works; old packages are deleted from the repositories quickly, once they are updated.
  171. A system that hasn't been updated for quite a while will mean potentially more reading of previous posts through the website,
  172. and more maintenance work.
  173. </p>
  174. <p>
  175. The Arch forum can also be useful, if others have the same issue as you (if you encounter issues, that is). The <i>Parabola</i>
  176. IRC channel (#parabola on freenode) can also help you.
  177. </p>
  178. <p>
  179. Due to this and the volatile nature of Parabola/Arch, you should only update when you have at least a couple hours of spare time
  180. in case of issues that need to be resolved. You should never update, for example, if you need your system for an important event,
  181. like a presentation or sending an email to an important person before an allocated deadline, and so on.
  182. </p>
  183. <p>
  184. Relax - packages are well-tested regularly when new updates are made to the repositories. Separate 'testing' repositories
  185. exist for this exact reason. Despite what many people will tell you, Parabola is fairly stable and trouble-free,
  186. so long as you are aware of how to check for issues, and are willing to spend some time fixing issues in
  187. the rare event that they do occur.
  188. </p>
  189. <p>
  190. <a href="#pagetop">Back to top of page.</a>
  191. </p>
  192. </div>
  193. <div class="section">
  194. <h2 id="pacman_maintain">Maintaining Parabola</h2>
  195. <p>
  196. Parabola is a very simple distro, in the sense that you are in full control
  197. and everything is made transparent to you. One consequence is
  198. that you also need to know what you are doing, and what you have done before. In general, keeping notes (such as what I have done
  199. with this page) can be very useful as a reference in the future (if you wanted to re-install it or install the distro
  200. on another computer, for example).
  201. </p>
  202. <p>
  203. <a href="#pagetop">Back to top of page.</a>
  204. </p>
  205. <h3 id="pacman_cacheclean">Cleaning the package cache</h3>
  206. <p>
  207. <b>
  208. The following is very important as you continue to use, update and maintain your Parabola system:<br/>
  209. <a href="https://wiki.archlinux.org/index.php/Pacman#Cleaning_the_package_cache">https://wiki.archlinux.org/index.php/Pacman#Cleaning_the_package_cache</a>.
  210. Essentially, this guide talks about a directory that has to be cleaned once in a while, to prevent it from growing too big (it's a cache
  211. of old package information, updated automatically when you do anything in pacman).
  212. </b>
  213. </p>
  214. <p>
  215. To clean out all old packages that are cached:<br/>
  216. # <b>pacman -Sc</b>
  217. </p>
  218. <p>
  219. The wiki cautions that this should be used with care. For example, since older packages are deleted from the repo,
  220. if you encounter issues and want to revert back to an older package then it's useful to have the caches available.
  221. Only do this if you are sure that you won't need it.
  222. </p>
  223. <p>
  224. The wiki also mentions this method for removing everything from the cache, including currently installed packages that are cached:<br/>
  225. # <b>pacman -Scc</b><br/>
  226. This is inadvisable, since it means re-downloading the package again if you wanted to quickly re-install it. This should only be used
  227. when disk space is at a premium.
  228. </p>
  229. <p>
  230. <a href="#pagetop">Back to top of page.</a>
  231. </p>
  232. <h3 id="pacman_commandequiv">pacman command equivalents</h3>
  233. <p>
  234. The following table lists other distro package manager commands, and their equivalent in pacman:<br/>
  235. <a href="https://wiki.archlinux.org/index.php/Pacman_Rosetta">https://wiki.archlinux.org/index.php/Pacman_Rosetta</a>
  236. </p>
  237. <p>
  238. <a href="#pagetop">Back to top of page.</a>
  239. </p>
  240. </div>
  241. <div class="section">
  242. <h2 id="yourfreedom">your-freedom</h2>
  243. <p>
  244. your-freedom is a package specific to Parabola, and it is installed by default. What it does is conflict with packages
  245. from Arch that are known to be non-free (proprietary) software. When migrating from Arch (there is a guide on the Parabola
  246. wiki for migrating - converting - an existing Arch system to a Parabola system), installing
  247. your-freedom will also fail if these packages are installed, citing them as conflicts; the recommended solution
  248. is then to delete the offending packages, and continue installing <i>your-freedom</i>.
  249. </p>
  250. <p>
  251. <a href="#pagetop">Back to top of page.</a>
  252. </p>
  253. </div>
  254. <div class="section">
  255. <h2 id="useradd">Add a user</h2>
  256. <p>
  257. Based on <a href="https://wiki.archlinux.org/index.php/Users_and_Groups">https://wiki.archlinux.org/index.php/Users_and_Groups</a>.
  258. </p>
  259. <p>
  260. It is important (for security reasons) to create and use a non-root (non-admin) user account for everyday use. The default 'root' account is intended
  261. only for critical administrative work, since it has complete access to the entire operating system.
  262. </p>
  263. <p>
  264. Read the entire document linked to above, and then continue.
  265. </p>
  266. <p>
  267. Add your user:<br/>
  268. # <b>useradd -m -G wheel -s /bin/bash <i>yourusername</i></b><br/>
  269. Set a password:<br/>
  270. # <b>passwd <i>yourusername</i></b>
  271. </p>
  272. <p>
  273. Use of the <i>diceware method</i> is recommended, for generating secure passphrases (instead of passwords).
  274. </p>
  275. <p><a href="#pagetop">Back to top of page</a></p>
  276. </div>
  277. <div class="section">
  278. <h2 id="systemd">systemd</h2>
  279. <p>
  280. This is the name of the system used for managing services in Parabola. It is a good idea to become familiar with it.
  281. Read <a href="https://wiki.archlinux.org/index.php/systemd">https://wiki.archlinux.org/index.php/systemd</a>
  282. and <a href="https://wiki.archlinux.org/index.php/systemd#Basic_systemctl_usage">https://wiki.archlinux.org/index.php/systemd#Basic_systemctl_usage</a>
  283. to gain a full understanding. <b>This is very important! Make sure to read them.</b>
  284. </p>
  285. <p>
  286. An example of a 'service' could be a webserver (such as lighttpd), or sshd (openssh), dhcp, etc. There are countless others.
  287. </p>
  288. <p>
  289. <a href="https://bbs.archlinux.org/viewtopic.php?pid=1149530#p1149530">https://bbs.archlinux.org/viewtopic.php?pid=1149530#p1149530</a> explains
  290. the background behind the decision by Arch (Parabola's upstream supplier) to use systemd.
  291. </p>
  292. <p>
  293. The manpage should also help:<br/>
  294. # <b>man systemd</b><br/>
  295. The section on 'unit types' is especially useful.
  296. </p>
  297. <p>
  298. According to the wiki, systemd 'journal' keeps logs of a size up to 10% of the total size your / partition takes up.
  299. on a 60GB root this would mean 6GB. That's not exactly practical, and can have performance implications later when the
  300. log gets too big. Based on instructions from the wiki, I will reduce the total size of the journal to 50MiB (the wiki
  301. recommends 50MiB).
  302. </p>
  303. <p>
  304. Open /etc/systemd/journald.conf and find the line that says:<br/>
  305. <i>#SystemMaxUse=</i><br/>
  306. Change it to say:<br/>
  307. <i>SystemMaxUse=50M</i>
  308. </p>
  309. <p>
  310. The wiki also recommended a method for forwarding journal output to TTY 12 (accessible by pressing ctrl+alt+f12,
  311. and you use ctrl+alt+[F1-F12] to switch between terminals). I decided not to enable it.
  312. </p>
  313. <p>
  314. Restart journald:<br/>
  315. # <b>systemctl restart systemd-journald</b>
  316. </p>
  317. <p>
  318. The wiki recommends that if the journal gets too large, you can also simply delete (rm -Rf) everything inside /var/log/journald/*
  319. but recommends backing it up. This shouldn't be necessary, since you already set the size limit above and systemd will automatically
  320. start to delete older records when the journal size reaches it's limit (according to systemd developers).
  321. </p>
  322. <p>
  323. Finally, the wiki mentions 'temporary' files and the utility for managing them.<br/>
  324. # <b>man systemd-tmpfiles</b><br/>
  325. The command for 'clean' is:<br/>
  326. # <b>systemd-tmpfiles --clean</b><br/>
  327. According to the manpage, this <i>&quot;cleans all files and directories with an age parameter&quot;</i>.
  328. According to the Arch wiki, this reads information in /etc/tmpfiles.d/ and /usr/lib/tmpfiles.d/
  329. to know what actions to perform. Therefore, it is a good idea to read what's stored in these locations
  330. to get a better understanding.
  331. </p>
  332. <p>
  333. I looked in /etc/tmpfiles.d/ and found that it was empty on my system. However, /usr/lib/tmpfiles.d/ contained some files.
  334. The first one was etc.conf, containing information and a reference to this manpage:<br/>
  335. # <b>man tmpfiles.d</b><br/>
  336. Read that manpage, and then continue studying all the files.
  337. </p>
  338. <p>
  339. The systemd developers tell me that it isn't usually necessary to touch the systemd-tmpfiles utility manually at all.
  340. </p>
  341. <p><a href="#pagetop">Back to top of page</a></p>
  342. </div>
  343. <div class="section">
  344. <h2 id="interesting_repos">Interesting repositories</h2>
  345. <p>
  346. Parabola wiki at <a href="https://wiki.parabolagnulinux.org/Repositories#kernels">https://wiki.parabolagnulinux.org/Repositories#kernels</a>
  347. mentions about a repository called [kernels] for custom kernels that aren't in the default base. It might be worth looking into what is available
  348. there, depending on your use case.
  349. </p>
  350. <p>
  351. I enabled it on my system, to see what was in it. Edit /etc/pacman.conf and below the 'extra' section add:<br/>
  352. <i>
  353. [kernels]<br/>
  354. Include = /etc/pacman.d/mirrorlist
  355. </i>
  356. </p>
  357. <p>
  358. Now sync with the repository:<br/>
  359. # <b>pacman -Syy</b>
  360. </p>
  361. <p>
  362. List all available packages in this repository:<br/>
  363. # <b>pacman -Sl kernels</b>
  364. </p>
  365. <p>
  366. In the end, I decided not to install anything from it but I kept the repository enabled regardless.
  367. </p>
  368. <p><a href="#pagetop">Back to top of page.</a></p>
  369. </div>
  370. <div class="section">
  371. <h2 id="network">Setup a network connection in Parabola</h2>
  372. <p>
  373. Read <a href="https://wiki.archlinux.org/index.php/Configuring_Network">https://wiki.archlinux.org/index.php/Configuring_Network</a>.
  374. </p>
  375. <p>
  376. <a href="#pagetop">Back to top of page.</a>
  377. </p>
  378. <h3 id="network_hostname">Set the hostname</h3>
  379. <p>
  380. This should be the same as the hostname that you set in /etc/hostname when installing Parabola. You can also do it with systemd (do so now, if you like):<br/>
  381. # <b>hostnamectl set-hostname <i>yourhostname</i></b><br/>
  382. This writes the specified hostname to /etc/hostname. More information can be found in these manpages:<br/>
  383. # <b>man hostname</b><br/>
  384. # <b>info hostname</b><br/>
  385. # <b>man hostnamectl</b>
  386. </p>
  387. <p>
  388. Add the same hostname to /etc/hosts, on each line. Example:<br/>
  389. <i>
  390. 127.0.0.1 localhost.localdomain localhost <u>myhostname</u><br/>
  391. ::1 localhost.localdomain localhost <u>myhostname</u>
  392. </i>
  393. </p>
  394. <p>
  395. You'll note that I set both lines; the 2nd line is for IPv6. More and more ISPs are providing this now (mine does)
  396. so it's good to be forward-thinking here.
  397. </p>
  398. <p>
  399. The <i>hostname</i> utility is part of the <i>inetutils</i> package and is in core/, installed by default (as part of <i>base</i>).
  400. </p>
  401. <p>
  402. <a href="#pagetop">Back to top of page.</a>
  403. </p>
  404. <h3 id="network_status">Network Status</h3>
  405. <p>
  406. According to the Arch wiki, <a href="https://wiki.archlinux.org/index.php/Udev">udev</a> should already detect the ethernet chipset
  407. and load the driver for it automatically at boot time. You can check this in the <i>&quot;Ethernet controller&quot;</i> section
  408. when running this command:<br/>
  409. # <b>lspci -v</b>
  410. </p>
  411. <p>
  412. Look at the remaining sections <i>'Kernel driver in use'</i> and <i>'Kernel modules'</i>. In my case it was as follows:<br/>
  413. <i>
  414. Kernel driver in use: e1000e<br/>
  415. Kernel modules: e1000e
  416. </i>
  417. </p>
  418. <p>
  419. Check that the driver was loaded by issuing <i>dmesg | grep module_name</i>. In my case, I did:<br/>
  420. # <b>dmesg | grep e1000e</b>
  421. </p>
  422. <h3 id="network_devicenames">Network device names</h3>
  423. <p>
  424. According to <a href="https://wiki.archlinux.org/index.php/Configuring_Network#Device_names">https://wiki.archlinux.org/index.php/Configuring_Network#Device_names</a>,
  425. it is important to note that the old interface names like eth0, wlan0, wwan0 and so on no longer apply. Instead, <i>systemd</i>
  426. creates device names starting with en (for enternet), wl (for wifi) and ww (for wwan) with a fixed identifier that systemd automatically generates.
  427. An example device name for your ethernet chipset would be <i>enp0s25</i>, where it is never supposed to change.
  428. </p>
  429. <p>
  430. If you want to enable the old names (eth0, wlan0, wwan0, etc), the Arch wiki recommends
  431. adding <i>net.ifnames=0</i> to your kernel parameters (in libreboot context, this would be accomplished by following the
  432. instructions in <a href="grub_cbfs.html">grub_cbfs.html</a>).
  433. </p>
  434. <p>
  435. For background information,
  436. read <a href="http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/">Predictable Network Interface Names</a>
  437. </p>
  438. <p>
  439. Show device names:<br/>
  440. # <b>ls /sys/class/net</b>
  441. </p>
  442. <p>
  443. Changing the device names is possible (I chose not to do it):<br/>
  444. <a href="https://wiki.archlinux.org/index.php/Configuring_Network#Change_device_name">https://wiki.archlinux.org/index.php/Configuring_Network#Change_device_name</a>
  445. </p>
  446. <p>
  447. <a href="#pagetop">Back to top of page.</a>
  448. </p>
  449. <h3 id="network_setup">Network setup</h3>
  450. <p>
  451. I actually chose to ignore most of Networking section on the wiki. Instead, I plan to set up LXDE desktop with the graphical
  452. network-manager client. Here is a list of network managers:<br/>
  453. <a href="https://wiki.archlinux.org/index.php/List_of_applications/Internet#Network_managers">https://wiki.archlinux.org/index.php/List_of_applications/Internet#Network_managers</a>.
  454. If you need to, set a static IP address (temporarily) using the networking guide and the Arch wiki, or start the dhcpcd service in systemd.
  455. NetworkManager will be setup later, after installing LXDE.
  456. </p>
  457. <p>
  458. <a href="#pagetop">Back to top of page.</a>
  459. </p>
  460. </div>
  461. <div class="section">
  462. <h2 id="system_maintain">System Maintenance</h2>
  463. <p>
  464. Read <a href="https://wiki.archlinux.org/index.php/System_maintenance">https://wiki.archlinux.org/index.php/System_maintenance</a> before continuing.
  465. Also read <a href="https://wiki.archlinux.org/index.php/Enhance_system_stability">https://wiki.archlinux.org/index.php/Enhance_system_stability</a>.
  466. <b>This is important, so make sure to read them!</b>
  467. </p>
  468. <p>
  469. Install smartmontools (it can be used to check smart data. HDDs use non-free firmware inside, but it's transparent to you
  470. but the smart data comes from it. Therefore, don't rely on it too much):<br/>
  471. # <b>pacman -S smartmontools</b><br/>
  472. Read <a href="https://wiki.archlinux.org/index.php/S.M.A.R.T.">https://wiki.archlinux.org/index.php/S.M.A.R.T.</a> to learn how to use it.
  473. </p>
  474. <p>
  475. <a href="#pagetop">Back to top of page.</a>
  476. </p>
  477. </div>
  478. <div class="section">
  479. <h2 id="desktop">Configuring the desktop</h2>
  480. <p>
  481. Based on steps from
  482. <a href="https://wiki.archlinux.org/index.php/General_recommendations#Graphical_user_interface">General Recommendations</a> on the Arch wiki.
  483. The plan is to use LXDE and LXDM/LightDM, along with everything else that you would expect on other distributions that provide LXDE
  484. by default.
  485. </p>
  486. <p>
  487. <a href="#pagetop">Back to top of page.</a>
  488. </p>
  489. <div class="subsection">
  490. <h3 id="desktop_xorg">Installing Xorg</h3>
  491. <p>
  492. Based on <a href="https://wiki.archlinux.org/index.php/Xorg">https://wiki.archlinux.org/index.php/Xorg</a>.
  493. </p>
  494. <p>
  495. Firstly, install it!<br/>
  496. # <b>pacman -S xorg-server</b><br/>
  497. I also recommend installing this (contains lots of useful tools, including <i>xrandr</i>):<br/>
  498. # <b>pacman -S xorg-server-utils</b>
  499. </p>
  500. <p>
  501. Install the driver. For me this was <i>xf86-video-intel</i> on the ThinkPad X60. T60 and macbook11/21 should be the same.<br/>
  502. # <b>pacman -S xf86-video-intel</b><br/>
  503. For other systems you can try:<br/>
  504. # <b>pacman -Ss xf86-video- | less</b><br/>
  505. Combined with looking at your <i>lspci</i> output, you can determine which driver is needed.
  506. By default, Xorg will revert to xf86-video-vesa which is a generic driver and doesn't provide true hardware acceleration.
  507. </p>
  508. <p>
  509. Other drivers (not just video) can be found by looking at the <i>xorg-drivers</i> group:<br/>
  510. # <b>pacman -Sg xorg-drivers</b><br/>
  511. </p>
  512. <p>
  513. Mostly you will rely on a display manager, but in case you ever want to start X without one:<br/>
  514. # <b>pacman -S xorg-xinit</b>
  515. </p>
  516. <p>
  517. &lt;optional&gt;<br/>
  518. &nbsp;&nbsp;&nbsp;Arch wiki recommends installing these, for testing that X works:<br/>
  519. &nbsp;&nbsp;&nbsp;# <b>pacman -S xorg-twm xorg-xclock xterm</b><br/>
  520. &nbsp;&nbsp;&nbsp;Refer to <a href="https://wiki.archlinux.org/index.php/Xinitrc">https://wiki.archlinux.org/index.php/Xinitrc</a>.
  521. and test X:<br/>
  522. &nbsp;&nbsp;&nbsp;# <b>startx</b><br/>
  523. &nbsp;&nbsp;&nbsp;When you are satisfied, type <b><i>exit</i></b> in xterm, inside the X session.<br/>
  524. &nbsp;&nbsp;&nbsp;Uninstall them (clutter. eww): # <b>pacman -S xorg-xinit xorg-twm xorg-xclock xterm</b><br/>
  525. &lt;/optional&gt;
  526. </p>
  527. <p>
  528. <a href="#pagetop">Back to top of page.</a>
  529. </p>
  530. </div>
  531. <div class="subsection">
  532. <h3 id="desktop_kblayout">Xorg keyboard layout</h3>
  533. <p>
  534. Refer to <a href="https://wiki.archlinux.org/index.php/Keyboard_configuration_in_Xorg">https://wiki.archlinux.org/index.php/Keyboard_configuration_in_Xorg</a>.
  535. </p>
  536. <p>
  537. Xorg uses a different configuration method for keyboard layouts, so you will notice that the layout you
  538. set in /etc/vconsole.conf earlier might not actually be the same in X.
  539. </p>
  540. <p>
  541. To see what layout you currently use, try this on a terminal emulator in X:<br/>
  542. # <b>setxkbmap -print -verbose 10</b>
  543. </p>
  544. <p>
  545. In my case, I wanted to use the Dvorak (UK) keyboard which is quite different from Xorg's default Qwerty (US) layout.
  546. </p>
  547. <p>
  548. I'll just say it now: <i>XkbModel</i> can be <i>pc105</i> in this case (ThinkPad X60, with a 105-key UK keyboard).
  549. If you use an American keyboard (typically 104 keys) you will want to use <i>pc104</i>.
  550. </p>
  551. <p>
  552. <i>XkbLayout</i> in my case would be <i>gb</i>, and <i>XkbVariant</i> would be <i>dvorak</i>.
  553. </p>
  554. <p>
  555. The Arch wiki recommends two different methods for setting the keyboard layout:<br/>
  556. <a href="https://wiki.archlinux.org/index.php/Keyboard_configuration_in_Xorg#Using_X_configuration_files">https://wiki.archlinux.org/index.php/Keyboard_configuration_in_Xorg#Using_X_configuration_files</a> and<br/>
  557. <a href="https://wiki.archlinux.org/index.php/Keyboard_configuration_in_Xorg#Using_localectl">https://wiki.archlinux.org/index.php/Keyboard_configuration_in_Xorg#Using_localectl</a>.
  558. </p>
  559. <p>
  560. In my case, I chose to use the <i>configuration file</i> method:<br/>
  561. Create the file /etc/X11/xorg.conf.d/10-keyboard.conf and put this inside:<br/>
  562. <i>
  563. Section "InputClass"<br/>
  564. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Identifier "system-keyboard"<br/>
  565. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MatchIsKeyboard "on"<br/>
  566. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Option "XkbLayout" "gb"<br/>
  567. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Option "XkbModel" "pc105"<br/>
  568. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Option "XkbVariant" "dvorak"<br/>
  569. EndSection
  570. </i>
  571. </p>
  572. <p>
  573. For you, the steps above may differ if you have a different layout. If you use a US Qwerty keyboard, then
  574. you don't even need to do anything (though it might help, for the sake of being explicit).
  575. </p>
  576. <p>
  577. <a href="#pagetop">Back to top of page.</a>
  578. </p>
  579. </div>
  580. <div class="subsection">
  581. <h3 id="desktop_lxde">Install LXDE</h3>
  582. <p>
  583. Desktop choice isn't that important to me, so for simplicity I decided to use LXDE. It's lightweight
  584. and does everything that I need.
  585. If you would like to try something different, refer to
  586. <a href="https://wiki.archlinux.org/index.php/Desktop_environment">https://wiki.archlinux.org/index.php/Desktop_environment</a>
  587. </p>
  588. <p>
  589. Refer to <a href="https://wiki.archlinux.org/index.php/LXDE">https://wiki.archlinux.org/index.php/LXDE</a>.
  590. </p>
  591. <p>
  592. Install it, choosing 'all' when asked for the default package list:<br/>
  593. # <b>pacman -S lxde obconf</b>
  594. </p>
  595. <p>
  596. I didn't want the following, so I removed them:<br/>
  597. # <b>pacman -R lxmusic lxtask</b>
  598. </p>
  599. <p>
  600. I also lazily installed all fonts:<br/>
  601. # <b>pacman -S $(pacman -Ssq ttf-)</b>
  602. </p>
  603. <p>
  604. LXDE comes with a terminal. You probably want a browser to go with that; I choose GNU IceCat, part of the <i><a href="https://gnu.org/">GNU project</a></i>:<br/>
  605. # <b>pacman -S icecat</b><br/>
  606. And a mail client:<br/>
  607. # <b>pacman -S icedove</b>
  608. </p>
  609. <p>
  610. In IceCat, go to <i>Preferences :: Advanced</i> and disable <i>GNU IceCat Health Report</i>.
  611. </p>
  612. <p>
  613. I also like to install these:<br/>
  614. # <b>pacman -S xsensors stress htop</b>
  615. </p>
  616. <p>
  617. Enable LXDM (the default display manager, providing a graphical login):<br/>
  618. # <b>systemctl enable lxdm.service</b><br/>
  619. It will start when you boot up the system. To start it now, do:<br/>
  620. # <b>systemctl start lxdm.service</b>
  621. </p>
  622. <p>
  623. Log in with your standard (non-root) user that you created earlier.
  624. It is advisable to also create an xinitrc rule in case you ever want to start lxde without lxdm.
  625. Read <a href="https://wiki.archlinux.org/index.php/Xinitrc">https://wiki.archlinux.org/index.php/Xinitrc</a>.
  626. </p>
  627. <p>
  628. Open LXterminal:<br/>
  629. $ <b>cp /etc/skel/.xinitrc ~</b><br/>
  630. Open .xinitrc and add the following plus a line break at the bottom of the file.<br/>
  631. <i>
  632. # Probably not needed. The same locale info that we set before<br/>
  633. # Based on advice from the LXDE wiki
  634. export LC_ALL=en_GB.UTF-8<br/>
  635. export LANGUAGE=en_GB.UTF-8<br/>
  636. export LANG=en_GB.UTF-8<br/>
  637. <br/>
  638. # Start lxde desktop<br/>
  639. exec startlxde<br/>
  640. </i>
  641. Now make sure that it is executable:<br/>
  642. $ <b>chmod +x .xinitrc</b>
  643. </p>
  644. <p>
  645. <a href="#pagetop">Back to top of page.</a>
  646. </p>
  647. </div>
  648. <div class="subsection">
  649. <h3 id="lxde_clock">LXDE - clock</h3>
  650. <p>
  651. In <b>Digital Clock Settings</b> (right click the clock) I set the Clock Format to <i>%Y/%m/%d %H:%M:%S</i>
  652. </p>
  653. <p>
  654. <a href="#pagetop">Back to top of page.</a>
  655. </p>
  656. </div>
  657. <div class="subsection">
  658. <h3 id="lxde_font">LXDE - font</h3>
  659. <p>
  660. NOTE TO SELF: come back to this later.
  661. </p>
  662. <p>
  663. <a href="#pagetop">Back to top of page.</a>
  664. </p>
  665. </div>
  666. <div class="subsection">
  667. <h3 id="lxde_screenlock">LXDE - screenlock</h3>
  668. <p>
  669. Arch wiki recommends to use <i>xscreensaver</i>:<br/>
  670. # <b>pacman -S xscreensaver</b>
  671. </p>
  672. <p>
  673. Under <i>Preferences :: Screensaver</i> in the LXDE menu, I chose <i>Mode: Blank Screen Only</i>,
  674. setting <i>Blank After</i>, <i>Cycle After</i> and <i>Lock Screen After</i> (checked) to 10 minutes.
  675. </p>
  676. <p>
  677. You can now lock the screen with <i>Logout :: Lock Screen</i> in the LXDE menu.
  678. </p>
  679. <p>
  680. <a href="#pagetop">Back to top of page.</a>
  681. </p>
  682. </div>
  683. <div class="subsection">
  684. <h3 id="lxde_automount">LXDE - automounting</h3>
  685. <p>
  686. Refer to <a href="https://wiki.archlinux.org/index.php/File_manager_functionality">https://wiki.archlinux.org/index.php/File_manager_functionality</a>.
  687. </p>
  688. <p>
  689. I chose to ignore this for now. NOTE TO SELF: come back to this later.
  690. </p>
  691. <p>
  692. <a href="#pagetop">Back to top of page.</a>
  693. </p>
  694. </div>
  695. <div class="subsection">
  696. <h3 id="lxde_suspend">LXDE - disable suspend</h3>
  697. <p>
  698. When closing the laptop lid, the system suspends. This is annoying at least to me.
  699. NOTE TO SELF: disable it, then document the steps here.
  700. </p>
  701. <p>
  702. <a href="#pagetop">Back to top of page.</a>
  703. </p>
  704. </div>
  705. <div class="subsection">
  706. <h3 id="lxde_battery">LXDE - battery monitor</h3>
  707. <p>
  708. Right click lxde panel and <i>Add/Remove Panel Items</i>. Click <i>Add</i> and select <i>Battery Monitor</i>, then click <i>Add</i>.
  709. Close and then right-click the applet and go to <i>Battery Monitor Settings</i>, check the box that says <i>Show Extended Information</i>.
  710. Now click <i>Close</i>. When you hover the cursor over it, it'll show information about the battery.
  711. </p>
  712. <p>
  713. <a href="#pagetop">Back to top of page.</a>
  714. </p>
  715. </div>
  716. <div class="subsection">
  717. <h3 id="lxde_network">LXDE - Network Manager</h3>
  718. <p>
  719. Refer to <a href="https://wiki.archlinux.org/index.php/LXDE#Network_Management">https://wiki.archlinux.org/index.php/LXDE#Network_Management</a>.
  720. Then I read: <a href="https://wiki.archlinux.org/index.php/NetworkManager">https://wiki.archlinux.org/index.php/NetworkManager</a>.
  721. </p>
  722. <p>
  723. Install Network Manager:<br/>
  724. # <b>pacman -S networkmanager</b>
  725. </p>
  726. <p>
  727. You will also want the graphical applet:<br/>
  728. # <b>pacman -S network-manager-applet</b><br/>
  729. Arch wiki says that an autostart rule will be written at <i>/etc/xdg/autostart/nm-applet.desktop</i>
  730. </p>
  731. <p>
  732. I want to be able to use a VPN at some point, so the wiki tells me to do:<br/>
  733. # <b>pacman -S networkmanager-openvpn</b>
  734. </p>
  735. <p>
  736. LXDE uses openbox, so I refer to:<br/>
  737. <a href="https://wiki.archlinux.org/index.php/NetworkManager#Openbox">https://wiki.archlinux.org/index.php/NetworkManager#Openbox</a>.
  738. </p>
  739. <p>
  740. It tells me for the applet I need:<br/>
  741. # <b>pacman -S xfce4-notifyd gnome-icon-theme</b><br/>
  742. Also, for storing authentication details (wifi) I need:<br/>
  743. # <b>pacman -S gnome-keyring</b>
  744. </p>
  745. <p>
  746. I wanted to quickly enable networkmanager:<br/>
  747. # <b>systemctl stop dhcpcd</b><br/>
  748. # <b>systemctl start NetworkManager</b><br/>
  749. Enable NetworkManager at boot time:<br/>
  750. # <b>systemctl enable NetworkManager</b>
  751. </p>
  752. <p>
  753. Restart LXDE (log out, and then log back in).
  754. </p>
  755. <p>
  756. I added the volume control applet to the panel (right click panel, and add a new applet).
  757. I also later changed the icons to use the gnome icon theme, in <i>lxappearance</i>.
  758. </p>
  759. <p>
  760. <a href="#pagetop">Back to top of page.</a>
  761. </p>
  762. </div>
  763. </div>
  764. <div class="section">
  765. <p>
  766. Copyright &copy; 2014, 2015 Leah Rowe &lt;info@minifree.org&gt;<br/>
  767. Permission is granted to copy, distribute and/or modify this document
  768. under the terms of the GNU Free Documentation License, Version 1.3
  769. or any later version published by the Free Software Foundation;
  770. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
  771. A copy of the license can be found at <a href="../gfdl-1.3.txt">../gfdl-1.3.txt</a>
  772. </p>
  773. <p>
  774. Updated versions of the license (when available) can be found at
  775. <a href="https://www.gnu.org/licenses/licenses.html">https://www.gnu.org/licenses/licenses.html</a>
  776. </p>
  777. <p>
  778. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
  779. EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
  780. AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
  781. ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
  782. IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
  783. WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
  784. PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
  785. ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
  786. KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
  787. ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
  788. </p>
  789. <p>
  790. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
  791. TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
  792. NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
  793. INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
  794. COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
  795. USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
  796. ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
  797. DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
  798. IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
  799. </p>
  800. <p>
  801. The disclaimer of warranties and limitation of liability provided
  802. above shall be interpreted in a manner that, to the extent
  803. possible, most closely approximates an absolute disclaimer and
  804. waiver of all liability.
  805. </p>
  806. </div>
  807. </body>
  808. </html>