(for developer: detail descriptions of this bug, in English, are given at the end of this article.) ======================== 避開臭蟲:帳號設定 ======================== .. _`link-2-01-bug`: qwerty 沒有權限 ----------------- 我們在安裝時是用預設的帳戶名 *qwerty* 來進行安裝,並且用 *123* 做為他的密碼。 然而, 在安裝好後,電腦唯一的 *qwerty* 帳號,並沒有權限來增加新的用戶帳號。 這個情形八成是臭蟲 (bug) 在作怪 [#註1]_,依稀記得網上有人提過類似的情形, 下面我們會用一些方法,避開這隻臭蟲。 .. rubric:: 註 .. [#註1] *「臭蟲」* 是從英文的 *"bug"* 翻譯過來的。 據聞,早年電腦剛發明的時候,所有電路是用成千上萬機械式的開關所構成。 當有蟲子跑到這些開關的接點時,開關就無法正常地接通或切斷,會導致電腦的功能失常。 這時電腦的工程人員就要想辦法找出是哪一個開關失靈,然後再把跑進那個開關的蟲子除掉,讓電腦恢復正常。 這種工作被稱為 *"de-bug"* (*「除蟲」*)。 雖然現代電腦電路的開關都是用半導體所構成,蟲子不再是一個問題, 但是電腦的問題被稱為 *"bug"* ,卻一直沿用至今。 現在的軟體有問題,通常也會被稱為有 *"bug"* ,而軟體除錯則被稱之為 *"debug"* 。我們認為把 *"bug"* 翻譯成 *「臭蟲」* 會比較貼切。 如何避開這隻臭蟲 ----------------------- 因為每隻臭蟲都不一樣,所以沒有一種固定避開臭蟲的方法,每一種方法,大概也 只能避開一種特定的臭蟲。下面是我們避開這隻臭蟲的方法: #. 先關上 *帳號管理* 的視窗。 #. 開啟 *終端機視窗* 或稱為 *命令視窗* 。方法:同時按下 Ctrl + Alt + t, 就會出現如 :num:`圖 #fig2-01-term` 所示的視窗。 .. _fig2-01-term: .. figure:: _images/Terminal_SMark.png :scale: 80 % :alt: CMD Terminal :align: right 終端機視窗 #. 在 *終端機視窗* 中鍵入 ``users-admin`` 然後按下 鍵。 然後,當 *帳號管理* 視窗出現後,再把它用正常的方法關上。 (也許這一步沒有真正的作用,但是這是紀錄我們在試著避開這隻臭蟲時的步驟。) #. 當 *帳號管理* 視窗關閉後,我們再在 *終端機視窗* 中鍵入 ``sudo users-admin`` 然後按下 鍵。 在 *終端機視窗* 的下一行會出現輸入密碼的要求,這時輸入 *"123"* , 如 :num:`圖 #fig1-04-Termianl_Pwd` 所示的畫面。 當 *帳號管理* 的視窗又出現後,你也許會注意到:視窗中的文字沒有顯現。 如 :num:`圖 #fig2-01-uwait` 所示的畫面。 這時,進到下一步。 .. _fig1-04-Terminal_Pwd: .. figure:: _images/TerminalPwd_wMark.png :scale: 80 % :alt: CMD Password :align: center 終端機密碼輸入 .. _fig2-01-uwait: .. figure:: _images/UWait.png :scale: 80 % :alt: User Setting Window :align: center 帳號管理沒有文字 #. 不需要等 *帳號管理* 視窗的文字顯現(因為再等,也不會顯現), 在 *終端機視窗* 中同時按下 **Ctrl + c** (意思是:結束上面為完成的命令)。 這時, *帳號管理* 的視窗會再次關閉。 #. 大功告成,我們已經避開這隻臭蟲了,可以繼續回到 :doc:`《新增帳號》 <./Lesson-2-01>` 中的步驟。 | | .. rubric:: 臭蟲的細節 (下面英文的部份為這隻臭蟲的相關資料,是專給軟體開發者用,對一般用戶而言,並不重要。) For Developer ----------------- This section is for developer to reproduce and to fix the bug. Bug shows up once and only once '''''''''''''''''''''''''''''''' This bug(I believe it is a bug!) will only show up once after installation. What's happen? '''''''''''''' Right after installation, it is not possible to add any new user account due to the permission limitation of "qwerty". (by using GUI, e.g. Start -> Control Menu -> Security -> Users and Groups ) I didn't take the screenshot of the "permission msg". And, after some steps of fixing the issue (described below), I couldn't reproduce the "permission msg" any more. How was it fixed? '''''''''''''''''' (note: I just put down what I did. I guess those steps has fixed the issue but I am not 100% sure. Anyway, the issue has gone now.) #. The first session of bringing up LXLE after installation, i.e. turn-on power and login "qwerty". #. Start -> Control Menu -> Security -> Users and Groups -> Add Then, something like "qwerty doesn't have the authority to do so..." #. (still in the "Users Setting" window) click the "Change..." of the Account type Then, something like "qwerty doesn't have the authority to do so..." #. Close the "Users Setting" window (not 100% sure I did it) #. Open a terminal (Ctrl + Alt + T), then key-in $ users-admin (I don't remember what was happened.) Still in terminal, $ sudo users-admin The "Users Setting" windows was opened but waiting, waiting, and waiting. So, Ctrl + c to kill the commend #. Reboot #. Start -> Control Menu -> Security -> Users and Groups -> Add It is able to add new user from now on. What I did during the installation? ''''''''''''''''''''''''''''''''''''' (Maybe the following information will help.) #. In the **"Who are you?"** window during the installation process, the *"Log in automatically"* was selected. Then, #. the *"Require my password to log in"* was selected. Then, #. Password *"123"* was entered and confirmed. Then, #. Continuing the installation process. #. After installation, *"continue to testing"* was selected. Then, #. Did something then shutdown the computer.