LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2016, 09:04 AM   #1
bksubhuti
LQ Newbie
 
Registered: Mar 2016
Posts: 8

Rep: Reputation: Disabled
why need the path with second user


Hello,
I am new to this.
I messed up my system and created a new user and then deleted my original admin user (created with the install)
Then I created that same user again to start fresh with xfce.

So when I added my shortcuts again. It was not working for me. I had made some scripts to run dmenu and to shutdown and had them in the home/bin directory

Before all of this happened, I did not need to qualify the location. It just worked.
Now I need to qualify the location in the keyboard shortcuts for it to work (took a long time to figure out)


SO Why is this?


Another question I have is:
Lubuntu has a longer (easy to notice) boot time than xfce.
WHY? (I like xfce4 now too).
 
Old 03-15-2016, 02:29 AM   #2
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,620
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by bksubhuti View Post
So when I added my shortcuts again. It was not working for me. I had made some scripts to run dmenu and to shutdown and had them in the home/bin directory

Before all of this happened, I did not need to qualify the location. It just worked.
Now I need to qualify the location in the keyboard shortcuts for it to work (took a long time to figure out)
PSE post here the content of your PATH variable, when you are logged in as that user. This may just be the output of
Quote:
~$ echo $PATH
If I understand correctly that the scripts in your home-directory /home/[username]/bin are not executed, it may just be because this directory is not included in the path. The correction in that case will have to be done by editing a file, but I do not yet want to say which. Other people may have a different opinion or solution...

I do not know, why LXDE starts up slower than XFCE. There are probably more processes started, some checks added... no idea.

Last edited by Michael Uplawski; 03-15-2016 at 07:21 AM. Reason: am I dyslexic? - No. A Kraut.
 
Old 03-15-2016, 06:46 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
As stated, your path variable is simply different. You should be running a shell, and probably bash. You can set the path variable from within your .bashrc which should be located in your home directory. An example of the line in your .bashrc file might be:[code]PATH=".:/home/<username>:/home/<username>/bin"[code]Where <username> is replaced by your actual user named directory under /home. Note that my example, I prefer "." to be in my path variable, therefore wherever I am located, directory wise, it considers that location as part of my path. Also in that example, the /home/user/bin directory is in there.

Do what Michael Uplawski has recommended and view your path variable to determine if your home user bin directory is in your path, and then from there update the path variable in your startup scripts and when you re-login, it should now work properly.

There is also a possibility that the directories and files got changed if you moved them around, along with whatever manipulations you used in fixing the user account oops. Check to verify that they are owned by your username, in the same group as your username, and also executable. Same for your bin sub-directory.
 
Old 03-15-2016, 11:01 AM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
quick fix?

reinstall and do not make that same mistake twice.

PS. do not forget to back up you custom scripts and config files first. it's just an option I use when I want to avoid timely fix this crap I screwed up scenarios, or for whatever reason I decide to just re-install my system. Freewill baby

Re-install vs trouble shooting. How much time does it take to fix it vs just re-install it? Which ever is the quickest always wins out in my book.

Having your system split
/
/home

makes for a easier just reinstall the system because all of the customization files are mostly in the users home directory. Having it split you do not lose these files nor personal data. if you back up your other conf files properly then all one has to do is replace them with the ones that are installed during the re-install.

Having extra users on your system does not take up but maybe 4k of space providing they do not have anything within their home directory. FYI

Last edited by BW-userx; 03-15-2016 at 11:18 AM.
 
1 members found this post helpful.
Old 03-15-2016, 03:33 PM   #5
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,620
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
Re-install vs trouble shooting. How much time does it take to fix it vs just re-install it? Which ever is the quickest always wins out in my book.
Talking of personal predilections, I must state that I feel bad, worse or downright sick, whenever I do stuff and I do not know why I do it.

Whatever you do - Try to have a reason to do it” (Winston Groom - Forest Gump)
 
Old 03-15-2016, 04:10 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Michael Uplawski View Post
Talking of personal predilections, I must state that I feel bad, worse or downright sick, whenever I do stuff and I do not know why I do it.

Whatever you do - Try to have a reason to do it” (Winston Groom - Forest Gump)
I'd say in this instance you where just acting on logical conclusions without gaining the full knowledge of what will actually take place afterwords.

Just knowing that you had no real use of said user so it made no sense to you to have it within your system. So you just preformed the next logical action, removed it. No real harm done. It can be fixed, it is not like you murdered anyone so let it go, get on with your life. Just learn from your mistakes, no big deal.

You now know what the conclusion of this action is. Just add it to your knowledge base and move forward. Because now you have knowledge to share with them that have not yet experienced what you just have. That is the bright side of life.

Do not allow guilt to over come you for something such as that.

MOD:
wait a minute you're not the OP
what R U talking about?

what did you do now?

to further ponder on this you commenting on my comment.

trial and error hacking away on Linux to see what my actions do. I do not hap haphazardly just hack away, but I am not afraid to just change things to see if I can get it to do what I want.

When I first started I'd modify and modify and modify, sometimes screw things up then say screw it. It is just faster to reinstall then have to go through all of the commands to see what what's doing and why. then change config files and reboot and everything else two days go by when I could have just reinstalled and had everything back up and running in an hour system, and all of my apps re-installed. Faster then two days trouble shooting.

Now not so much. but I have found too to not be too scared to just reinstall it when people do the ole' oops screwed up grub on my first install. then they spend days trying to get in to their system, when all they had to do is re-install it only the next time let it do it, or until they get that step down pat.

It too is a good learning tool to learn how to install a system from scratch just by re-installing it again and again if you have to until you get it right. then do it again just to be sure you know what you are doing. Experience is gained by this.

perfection is gained by repetition.

Last edited by BW-userx; 03-15-2016 at 04:39 PM.
 
1 members found this post helpful.
Old 03-16-2016, 03:02 AM   #7
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,620
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
perfection is gained by repetition.
Probably, your conclusions and recommendations come to abruptly for me and are not easily palatable in this way. Short statements often have the charm of being quickly internalized. Often they have the disadvantage of being completely off-track. The above statement is simply false.

Repetition may create a habit. Not more than that. You can put a cover of mutual consent over it, you can call it “our beloved tradition” or you can celebrate it and make a public holiday. Still there are people who do the same job the wrong way for 35years. And there are whole professions who drag behind them an heritage of 5000 years of false assumptions and misinterpretation.

In air-traffic services, perfection is sought by avoiding repetition by all means, routine is recognized as a principal source of risk. I could give more examples. A path-variable which is lacking a value is recognized by looking at the values that are present. You do not have to re-install your operating system to repair anything. Just put the value where it is due.
 
Old 03-16-2016, 08:17 AM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Michael Uplawski View Post
Probably, your conclusions and recommendations come to abruptly for me and are not easily palatable in this way. Short statements often have the charm of being quickly internalized. Often they have the disadvantage of being completely off-track. The above statement is simply false.

Repetition may create a habit. Not more than that. You can put a cover of mutual consent over it, you can call it “our beloved tradition” or you can celebrate it and make a public holiday. Still there are people who do the same job the wrong way for 35years. And there are whole professions who drag behind them an heritage of 5000 years of false assumptions and misinterpretation.

In air-traffic services, perfection is sought by avoiding repetition by all means, routine is recognized as a principal source of risk. I could give more examples. A path-variable which is lacking a value is recognized by looking at the values that are present. You do not have to re-install your operating system to repair anything. Just put the value where it is due.
I half hearty agree with your option. Yes, habits may form, some maybe bad habits, but some maybe good habits. First this remark, “A heritage of 5000 years of false assumptions and misinterpretation.” I do wonder what was your catalyst to cause you to make such a broad statement that a false assumptions and misinterpretation that has lasted for 5000 yrs. for an entire heritage came from. Which heritage do you refer to that has been wondering around for 5000 years lost in their thoughts and beliefs? Pagans and the Jewish people are the only ones that have been around that long. As far as heritages go.

Nevertheless, to this same line of thought between right and wrong and how long will man do wrong before he sees what he has been doing is wrong then changes his mind and starts trying to doing it right thought of yours.

If one allows themselves to become ridged in their thinking then this will effect their abilities to change and adapt to the circumstances around them. Human Nature, we are creators of habit and lazy on top of that. Always looking for the easy way to get things done. It is only when we want it to be harder and more complex it seems this is for the other guy and not them that cause this hardship.

Mankind with his technology even proves this. Along with tyranny against a people too proves this. Where the dictator or government is living in lascivious state and its people it governs is living in squarer. Technology makes the things man uses easier to do while at time same time more complected and drives man to more laziness. Along with destroying the economy and equality between man.

You compare my statement to just re-install the system, that is an inanimate object that has no feelings or thoughts of its own that by the cause of mans error may take two to three days to try and fix a mistake that was made to it to Air traffic controllers where peoples lives are at stake. Apples and oranges. First off. Bad logic and comparisons now been applied to your line of thought. To cause you to create another line of thought that you do not like the way I think, because I do not think like you, obviously.

Your thinking is you trying to prove to me and the others that read what you have written about me that my way of thinking is entirely wrong whereas yours is not by the use of bad comparisons and faulty logic to try and prove your point. To me and all the others that read what you have said to me. I am wrong and you are right. This too is human nature. The single entity of one human being is always is wanting to be the truth. Then when he sees others that do not think like him well then it disrupts his psyche, no more oneness between the two is present it effects some to the point they just have to voice their option in protest against the other(s). The dual effect of this is. One that person is trying to prove himself right because he either doubts himself and his way of thinking that directly effects his ways of doing things.OR he actually believes he is right no matter what.

but when it goes against his psyche so much that the stress of it causes him to act out. This time vocally. Thus reviling himself to the world just who he really is. For a tree is known by its fruits.

What does you comparing life threatening situations to a non-life threatening situation really say about you? In your attempt to prove my line of thought wrong and what you have accepted into your belief system of being the right way to think therefore governing how you should then act as a direct result of it. Due to what you have accepted into your brief system as a truth. You are now making faulty conclusions as a result of it.

My statement is not “completely off-track.” as you stated. It is an option, that weighs out the differences of time to get something done without loss of life. No loss of life so what does it matter if I just pull the plug on my system and start all over again? No real harm done. I am up and running again with a full system that is no longer having that same problem that I caused do to my human error.

Whereas the other like you is still sitting there experiencing stress while you beat your brains out trying to figure out how to fix your mistake, when I already have. Fixed mine and now am back into a stress free environment. My psyche is now regained equilibrium whereas yours has not.

Whereas with your hard core line of thought. You are still in a state of distress when I can now rest easy. you’re still trying to figure out how to fix your mistake, causing you more stress. Whereas I already did thus revealing me of that stress, and any more stress that may arise as a result of not just tossing it in and starting over from scratch.

So now how is it that you come to the conclusion that I am dead off center when I have just regained my center and it is you that are so rigged in your thinking that you always looking for a better way or a different way to do the same thing just to keep yourself from becoming ridged in your ways as actually keeping yourself in a state of stress. When in my less ridged way of thinking am not.

This “No I will not take the easy way out, I will try to be a man about it and deal with it instead.” way of thinking only to cause the one that thinks like this more loss then not. Loss of time and happiness. The time he or she has to now spend doing what ever it is they have to do to try and put this inanimate object that has no feelings or thoughts of its own and no felling of its own either back into a state of equilibrium while letting it, the machine now control the person in taking that person by no real fault of the machine. But it is that persons fault for allowing “it to take control of the situation” and not maintaining control of the situation.

I am talking about an inanimate object that has no feelings or thoughts of its own that is of no real consequence for no loss of life is at hand. Whereas you’re are talking about when personal loss of live is at hand. What is wrong with you?

Your statement, “You do not have to re-install your operating system to repair anything. Just put the value where it is due.” is an incomplete thought.

The act of reinstalling an Operating system does to repair it in the sense that it does more then that. It puts it back into that state of being that it is suppose to be in in order for it to operate properly. By doing so cuts down on down time of said operating system. Whereas it is actually the hardware down time that is really in play here. The software is just what it needs to perform its operations.
If one cannot see the benefits of just re-installing a system then getting on to the next thing, as apposed to hacking away at it with troubling shooting everything possible to try and get it back to where it was before they screws it up as an option then they have removed one possibility to regaining their sanity in a timely manner. Meaning removing the stress out of their lives so they will no longer have to deal with that instead. Stress free life is a better more healthy way of living. Too much of anything is bad for you. Is what you are trying to tell me? If yes, then, you are applying it wrongly. Your way of thinking is faulty. Comparing nonthreatening situations to life threatening situations to try and prove your point that I am wrong and you are right in your thinking is a misdirection of the truth.

You sir, the way you allow yourself to think is causing you yo be a liar that accepts lies into your life therefore places them in to your belief system as truths that causes you to act on lies that you think are truths that does nothing but sets yourself up for an even greater loss in the end by your way of thinking.

That is not even the tip of the ice burg in this how should one think and what should one do before accepting something into their belief system as a complete truth to govern how they act and no longer even listen to what another has to say about the subject and conciser it first before discarding it way of living. That you seem to not be doing. As far as one having to re-install their system when ever something goes wrong, I did not say that. I did not say they HAD TO do anything. I just shared what I do and how I come to that conclusion for the most part, suggested a better way to set up their system so if such an event should happen that they actually do have to re-install they will not lose all of their personal data and config files. Causing it for an easier recovery from having to or electing to re-install their entire OS. the benefits of having a split system, that having just a user account does not take up that much space, to learn from ones mistakes, that advice and more. That was an option of mine that I gave that person, and all that read it. I never not once held a gun to his head and told him YOU HAVE to do this. nor in any other fashion did I do such a thing. Again you lie.

furthermore, I am not the only one in here allowed to post. therefore, he too has the option to wait and see if another has a different quick fix for him to use instead. Not once did I take away that mans freewill or any part of it. I only suggested and shared an option and some common wisdom along with a little bit of knowledge he may not have already had.

the only safe word you used was "Probably" and that was at the beginning of your accusement of me being wrong. Then you proceeded to lay down your argument using faulty logic and bad comparisons to try and prove your point. What is really going on in that head of yours?

Last edited by BW-userx; 03-16-2016 at 10:10 AM.
 
Old 03-16-2016, 11:56 AM   #9
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,620
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
What is really going on in that head of yours?
Obviously more than you arrive to explain. You already called me a liar, so why ask?
 
Old 03-16-2016, 12:05 PM   #10
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,620
Blog Entries: 40

Rep: Reputation: Disabled
Agriculture, especially the cultivation of cereals, uses techniques that were documented by the Egyptians and are still in use, despite being proven useless and in the long term harmful in view of the quality of the soil.
 
Old 03-16-2016, 02:06 PM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
yes but they too gave us Beer MMmmmmmmm yummy BEER! and it can even kill you! but it too is still in use today.
 
Old 03-18-2016, 01:33 AM   #12
bksubhuti
LQ Newbie
 
Registered: Mar 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled
I did the path thing and got a blank line. But no I see bin in there.
However, that was after I reinstalled.
I am late to reply because,
1. I needed to go to Yangon to speak with someone at a uni ersatz I will attend.
2. I finally picked up the november windows usb installer so I could reformat my empty system that was taking up 2gb of my 3 gb drive.

With that, I reformatted the windows drive, got rid of uefi, and I reserved, 10 gb for a fresh lubuntu install on a proper hard disk (sd 32gb). I wonder if I can handle ubuntu now (nah!)
32 gb is all I have. My previous lubuntu nd was on the removeable SD card that i did not remove.

The results of a full reinstall on a proper sdd were 10 fold. I did not expect a 10 minute install when it takes 35 to 40 on an SD.
The boot time is super short.
And I have a new system that perhaps I will tweak less!
The real lesson to learn, "just use it"

Thanks for answering my question.
With loving kindness
Bhikkhu Subhuti
(Usa Monk in Myanmar)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get root user PATH from normal user nagendrar Linux - Newbie 11 08-23-2011 08:40 PM
set up java_home path in /home/user/.bashrc but use path in /usr/lib/java vitalstrike82 Slackware 4 01-13-2009 11:25 PM
Suse -- How to export user PATH to super user? w0262 Linux - Newbie 5 01-10-2006 09:39 PM
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 12:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration