LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-29-2022, 03:35 AM   #16
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053

accidental duplicate post

Last edited by ondoho; 01-29-2022 at 03:51 AM.
 
Old 01-29-2022, 03:50 AM   #17
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by andrewysk View Post
This as i know, is the default tty shell, or ssh shell.
Code:
╰─ grep user1 /etc/passwd
user1:x:1000:1000:myname:/home/user1:/bin/bash
This i was told is tty shell or ssh shell (same as taken from /etc/passwd
Code:
╰─ echo $SHELL
/bin/bash
This however is the current shell that is using .. which i do commandline with on emulated terminal which is zsh.
Code:
╭─ ~                                                                          
╰─ echo $0
/bin/zsh
You see, there are 2 shell "profile" , one for konsole (emulated terminal) and one for the real tty shell.
Only the first code snippet tells you anything about the default shell for user1.

For the last 2 I wonder: why did you use $SHELL and $0, not just $SHELL for both?
And: where are those snippets from? I guess they aren't both from just opening the default terminal in KDE, so what's the difference?

OK I went ahead and looked at manjaro.org. Dog, I hate that website. The update announcements are apparently here. What an effing mess, good luck finding out how your default shell changed. After I while I found this thread which looks strangely familiar.

I'm not sure (OP doesn't appear to be well-informed, just angry) but they later say:
Quote:
I’m a idiot - you know what it is … konsole sets it’s own shell rather than respecting the users… duh!
I hope you understand that this is not the same as changing the default shell.
However: this is most likely something that Manjaro devs did, not KDE/konsole itself.

Hence, my satement stands:
Quote:
Originally Posted by ondoho View Post
OK, theoretically any distro can do anything with their updates, but I know for a fact that the underlying archlinux would never do anything like that, and any distro that does would be seriously broken and should not be used, full stop.
And, sorry to harp on it, but you really need to get a better grasp on your OS if you want to tinker with it.
You can't be an eternal newbie AND have full control over your system.
 
1 members found this post helpful.
Old 01-29-2022, 09:05 AM   #18
calvinmeadows
Member
 
Registered: Jul 2016
Location: Manassas Virginia USA
Distribution: Manjaro KDE
Posts: 39

Rep: Reputation: Disabled
I reinstalled Manjaro KDE earlier this month and yes it did install zsh console rather than my usual bash.

Last edited by calvinmeadows; 01-29-2022 at 09:08 AM.
 
Old 01-30-2022, 04:52 AM   #19
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by calvinmeadows View Post
I reinstalled Manjaro KDE earlier this month and yes it did install zsh console rather than my usual bash.
Doesn't make sense.
zsh is a shell, not a "console".
And I doubt that bash is not installed anymore, as your phrasing suggests.
 
Old 02-02-2022, 07:22 AM   #20
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Fearless Fred View Post
The main folder to back up from the home folder then is the .local folder, that contains all your user preferences.
I would like to know:
Let's say i have backup my ".local" folder (which is now 500Mb on my pc)
Then arch upgrade again (changes default of theme, default windows style, default shell on emulated terminal, changes default login manager...etc)
I run the arch upgrade.
After successfully upgraded my arch,
I replace the whole ".local" folder from /home with the ".local" folder that i have backup earlier...
**The question now is: will this causes Problem to any part of my system (eg: Desktop manager ) ?

Thx
 
Old 02-02-2022, 07:30 AM   #21
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Fearless Fred View Post
Use Virtual Machines, and try several flavours and find one you like, I used to use Desktop Environments, but these days use Window Managers like openbox or i3 etc, it just depends on what you use your system for as to the best way to go, so try them all and find one you like!
This is a bit of branching of thread title:
I couldn't help it but wondering :
Since you said you used to use DE (KDE, GNOME, XFCE, LXDE, LQXT.....) ,but now you prefer to using window manager like (openbox, i3.... i suppose fluffybox also) ?
I am confused here.
You said these days, you are no longer using DE , you just use window manager ??
I have got window manager here on KDE plasma as well.. Isn't it window manager is default in all linux with gui ? Desktop manager rely on window manager to function.. Then i can use window manager on top of KDE (chuck away my kde (DE) ) ??
Does window manager can function like Desktop manager ?? then why bother to have a duplicate of it on KDE or Gnome eco system ?
I am a bit confused here.
 
Old 02-02-2022, 08:03 AM   #22
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,599

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546

Where did "desktop manager" term come from?

Put simply:
Code:
desktop environment = window manager + STUFF
Some people want the convenience of STUFF that DEs like Plasma provide.
Some people prefer their OS to provide just the WM part, and have the greater control/precision of manually providing their own STUFF.

(There is no better - it's an individual choice - and a good choice for one person may be a bad choice for another person.)

KWin is the window manager the Plasma desktop environment uses; apparently one can run Plasma on other window managers, but that seems a good way to discover more weird quirks/annoyances.


Last edited by boughtonp; 02-02-2022 at 08:06 AM.
 
Old 02-02-2022, 05:45 PM   #23
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
I hope you understand that this is not the same as changing the default shell.
However: this is most likely something that Manjaro devs did, not KDE/konsole itself.
Yes, i understand now.

As regarding your question on why i use "echo $SHELL" and "echo $0". Well it was due to i never use a zsh shell before and i didn't knew there is different between tty shell and emulated shell, hence i was in a mess asking for help.

Later i learnt that my tty shell didn't change, still bash as "echo $SHELL" tells me that.
one person in manjaro forum told me that to know what shell i am using in Emulated shell, i should use "echo $0" instead.
 
Old 02-03-2022, 01:04 AM   #24
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by andrewysk View Post
I would like to know:
Let's say i have backup my ".local" folder (which is now 500Mb on my pc)
Then arch upgrade again (changes default of theme, default windows style, default shell on emulated terminal, changes default login manager...etc)
I run the arch upgrade.
After successfully upgraded my arch,
I replace the whole ".local" folder from /home with the ".local" folder that i have backup earlier...
**The question now is: will this causes Problem to any part of my system (eg: Desktop manager ) ?
NO.

System updates do not touch stuff under your $HOME.
And despite being snarky about it before, I don't think Manjaro is so broken that it would attempt that.
________________________________________

To wrap all this up...

I was thinking the other day - the word "default shell" is really a little ambiguous.

Usually it just means "the shell a normal user gets after a console login" and is not very important for GUI users, because:
The terminal emulator (remember this is just a GUI program like any other) usually defaults to the user login shell, but most have a config option to change that. I believe that is what has been happening to you, and simply trying another terminal emulator (xterm, urxvt, xfce4-terminal etc. etc.) would have been enough to clarify. This is called troubleshooting, something we keep preaching to newbs like you (sorry for the lecture).

OTOH though, what shell does the system "default" to? Or the root user? I guess it is whatever is linked to /bin/sh.
Try it on your system:
Code:
ls -l /bin/sh
On Debian systems it should be dash, on Arch systems it should be bash (by default).
 
Old 02-04-2022, 09:25 AM   #25
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
The terminal emulator (remember this is just a GUI program like any other) usually defaults to the user login shell, but most have a config option to change that. I believe that is what has been happening to you, and simply trying another terminal emulator (xterm, urxvt, xfce4-terminal etc. etc.).

OTOH though, what shell does the system "default" to? Or the root user? I guess it is whatever is linked to /bin/sh.
Try it on your system:
Code:
ls -l /bin/sh
On Debian systems it should be dash, on Arch systems it should be bash (by default).
Thanks for telling me that terminal emulator is just an another GUI program, i thought it is something different.. lol
[code]ls -l /bin/sh[/code
Yes, default is bash still.
 
Old 02-04-2022, 09:31 AM   #26
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
System updates do not touch stuff under your $HOME.
And despite being snarky about it before, I don't think Manjaro is so broken that it would attempt that.
Thanks for remind this again.
So , now i know my default terminal emulator (gui program) has got a default personalization config file that is located outside of /home . .hence when they upgrade it, they change the config file to run zsh instead of bash.
When i personalized terminal emulator, it actually generate personalized config file in my /home (whatever location), hence this will prevent future changed due to upgrade.

Is the logic still true to my <b>wall paper</b> ? it changes everytime after upgrade..
 
Old 02-04-2022, 07:08 PM   #27
Fearless Fred
Member
 
Registered: Jan 2022
Location: UK
Distribution: Mabox - Manjaro/Arch
Posts: 54

Rep: Reputation: 37
If you back up your .local folder, and restore it after a fresh install, you should be back at a familiar place with your settings restored.
 
Old 02-06-2022, 02:31 AM   #28
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Fearless Fred View Post
If you back up your .local folder, and restore it after a fresh install, you should be back at a familiar place with your settings restored.
This thread addressed various things over its course, but as far as the last 10 or so posts are concerned, no.
It seems Manjaro itself changed some konsole settings after an update.
Changing things under $HOME would not fix this problem. As was said numerous times now, was actually an important point for OP to understand: updates don't change things under $HOME.

Last edited by ondoho; 02-06-2022 at 02:34 AM.
 
Old 02-06-2022, 06:59 AM   #29
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by ondoho View Post
NO.

System updates do not touch stuff under your $HOME.
And despite being snarky about it before, I don't think Manjaro is so broken that it would attempt that.
Quote:
Originally Posted by ondoho View Post
It seems Manjaro itself changed some konsole settings after an update.
Changing things under $HOME would not fix this problem. As was said numerous times now, was actually an important point for OP to understand: updates don't change things under $HOME.

Now i am confused !
On one hand you said system upgrades won't touch stuff under $HOME.
On the other hand you said, manjaro itself changed some konsole settings after an update; changing things under $HOME would not fix this problem (this statement simply means things in $HOME will be change ...
 
Old 02-07-2022, 02:32 AM   #30
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Then disregard the 2nd quote. You only misundertood it. I am still saying the same thing as in the 1st quote.

updates don't change things under $HOME. is the same as System updates do not touch stuff under your $HOME.
 
  


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
Theme and Icons personalization Deepin 15.11 edition dariodeepin Linux Deepin 1 09-19-2019 07:08 PM
LXer: Introducing Apricity OS, an Arch Linux Derivative for the Modern Linux User - Video LXer Syndicated Linux News 0 09-06-2015 09:05 AM
Will Manjaro Linux Net edition act like Manjaro or a base install of Arch? punchy71 Linux - Newbie 4 06-28-2014 08:05 AM
LXer: Personalization with Respect LXer Syndicated Linux News 0 05-11-2013 06:22 PM

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

All times are GMT -5. The time now is 07:00 AM.

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