Posts: 153
andfree
Joined: 16 Jan 2016
#1
Somebody played with menu and now, after turning on my laptop, a help.txt appears. Its first line is

Code: Select all

Getting started with herbstluftwm (hlwm)
The other lines are instruction about getting to the login screen, rebooting, opening terminal and one-two more.

I found out that I can pass it by opening a terminal and running

Code: Select all

sudo startx
But how to return back to the previous state that there was no need to do so every time I turn on the laptop?
Last edited by andfree on 03 Apr 2016, 06:16, edited 3 times in total.
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#2
That help text tells you how to get to login.
(Windows key + Shift + Q)
Use F1 to login to the desktop of your choice. Reboot to chosen desktop
Posts: 153
andfree
Joined: 16 Jan 2016
#3
That's it. I chose jwm because the laptop is old. I rebooted and everything is ok. Thanks a lot.
Posts: 153
andfree
Joined: 16 Jan 2016
#4
Finally, it's not everything ok. As I said, the way I had found to pass the problem was running

Code: Select all

sudo startx
And this, because startx without sudo was no accepted.

But now I boot to jwm I have problem with files I created at that time: docs I created are now read-only. I also can't save changes to txts I had created. Transmissions that are half-completed have no access. Now, any idea?
Posts: 1,139
masinick
Joined: 26 Apr 2008
#5
andfree wrote:Finally, it's not everything ok. As I said, the way I had found to pass the problem was running

Code: Select all

sudo startx
And this, because startx without sudo was no accepted.

But now I boot to jwm I have problem with files I created at that time: docs I created are now read-only. I also can't save changes to txts I had created. Transmissions that are half-completed have no access. Now, any idea?
It sounds very much to me as though the default access rights to your account are incorrect in one or more ways. You'll probably have to use sudo (or switch to root) at least one more time to fix all of this, but hopefully if you do so, these problems can be resolved.

My suspicion is that either some of the files and directories beneath your user account have some other user (root?) or insufficient access rights.

To solve the first issue, make sure that all files in your account are owned by you.

sudo chown -hR andfree:andfree /home/andfree

will set the owner:group of the files under /home/andfree to andfree (change these names to whatever you use).

Next, make sure that all the files in your directory are at least readable (and if appropriate, writable as well):

sudo chown -R u+w,a+r /home/andfree

In both of these commands the R option recursively applies the change to the directory and every file and directory beneath it. For the chown command, u+w adds write access to the user andfree, a+r adds read access for the user, group, and"others".


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.computerhope.com/unix/overview.htm"
linktext was:"http://www.computerhope.com/unix/overview.htm"
====================================
provides documentation for common UNIX and Linux commands, and quite a few examples. It may be useful for additional details.

I hope you find these comments useful. Feel free to continue the dialog as needed with additional comments or questions.
Posts: 153
andfree
Joined: 16 Jan 2016
#6
andfree@antix1:~
$ sudo chown -hR andfree:andfree /home/andfree
[sudo] password for andfree:
andfree@antix1:~
$ sudo chown -R u+w,a+r /home/andfree
chown: invalid user: ‘u+w,a+r’
andfree@antix1:~
$
------------------------------------------------------------------------------------

Thanks a lot for your help. I had already backup all my files and clear the visible part of home directory by using commands as"sudo cp","sudo rm" etc. Then I copied the files back to home folder and they are ok.

I only was boring to backup all the"bookmarks" directory of the browser and copied only the last date json. Now, I used the"sudo chown -hR" command you said and I did backup for the whole directory.

The only problem I see now is that after having cleaned browser from cookies, I write on address bar and addresses I had visited as root appear."Sudo chown -hR" doesn't seem to have helped on this.