I thought I'd throw in a super beginner friendly video, I know that a lot of people already know how to do this, but if this helps someone who wasn't sure how to change their shell then I'm glad to be of service.
I symlink /bin/sh to dash, its a very minimal/posix compliant implementation, that runs quite a bit faster than bash/zsh. wiki.archlinux.org/index.php/Dash
Let’s see what I can find in this video ... * on Arch, /bin is symlinked to /usr/bin, thus /bin/zsh is the same as /usr/bin/zsh. * there are ways to modify the environment without .profile scripts: rc scripts (not with sysD what Arch sadly uses), on OpenBSD the file /etc/login.conf, on Arch the ENV_PATH variable in /etc/login.defs, ... * even if you change the `shell` variable in st, it uses a few other things to determine the shell used, one of them $SHELL, which gets exported by login(1) * there should not be any problems running scripts (if $PATH is set correctly and stuff) after changing shells, because they are started as ordinary programs and the interpreter is only determined through the shebang (the #! line at the start) * on Arch, /bin/sh is a symlink to bash, I changed it on my machine to dash
@@BrodieRobertson Pretty much everything in /bin is syslinked to /usr/bin in arch. The story behind why there is /bin and /usr/bin actually goes back to the devs at bell labs running out of disk space and having to mount another disk.
@@BrodieRobertson @Wil T on Arch /bin is a symlink to /usr/bin, zsh itself doesn’t care about that. But yes, /usr originates from space issues at Bell Labs on single storage mediums.
Leftwm review? Rust based wm... Also hunter.... A ranger/lf alternative in rust (has previews...)... And ion shell... Rust shell for redox os but can be used in Linux, apparently
If the login shell is not available, login(1) from util-linux just says “login incorrect”. For some reason, the install script for the zsh Arch package adds both /bin/zsh and /usr/bin/zsh to /etc/shells.
Not gonna lie, I've been meaning to switch to ZSH, but have been to lazy to figure out how to actually switch lmao (newish user in case you can't tell).
@@BrodieRobertson For some reason it seems to be as the command is on the arch wiki. I even checked the Debian repo in case something was not install which stopped the command from working on Debian. I have noted both commands in my help files. Thanks you for your work.
zsh is not considered a standard software and it has mostly the purpose of portability. Install ksh(1) and you will find it in /bin/ksh and /usr/bin/ksh. And please.. in the name of all gods! .. dont tell people to edit the passwd directly! $SHELL is wrong in this case because this variable shall represent a pathname of the user's preferred command language interpreter. $0 shows you the actually used shell. A "nologin shell" is for daemons like http, smtp oder simple for users with just "ftp privileges" (/bin/nologin, /sbin/nologin, ..). /bin/sh is mostly a symlink against bash or ash.
I didn't tell people to do it, I showed them that it can be done if for some weird reason you need to. I didn't realise they were different, I've never had a situation where I noticed that they differed.
@@GrumpyCrash I'm not going to pretend that you can't do something in a dangerous way, I specifically said I don't trust myself not to break something so I'm not going to save my changes. There shouldn't be a reason but there could be.
Not gonna lie, I've been meaning to switch to ZSH, but have been to lazy to figure out how to actually switch lmao (newish user in case you can't tell).
I thought I'd throw in a super beginner friendly video, I know that a lot of people already know how to do this, but if this helps someone who wasn't sure how to change their shell then I'm glad to be of service.
chsh -s $(which zsh) replace “zsh” with preferred shell
echo $SHELL
"But if you're on Linux from scratch, I don't know why you're watching this"
Fucking quote of the day there.
If you're doing Linux from scratch and you don't know how to change your shell you should readdress your priorities
I symlink /bin/sh to dash, its a very minimal/posix compliant implementation, that runs quite a bit faster than bash/zsh. wiki.archlinux.org/index.php/Dash
"aiming for 1k subs". mate have you seen ur sub count, ur almost at 3k mah guy.
I didn't feel like re-recording the intro and outro for 7 videos after I got a shout out.
Mate have you seen your pee pee it's 1 inch
you can also get your current shell by "echo $0" :)
Someone else beat you to it
@@BrodieRobertson blast!
it also doesnt work for me ((already changed to/)in fish (which i presume is likely why)).
Let’s see what I can find in this video ...
* on Arch, /bin is symlinked to /usr/bin, thus /bin/zsh is the same as /usr/bin/zsh.
* there are ways to modify the environment without .profile scripts: rc scripts (not with sysD what Arch sadly uses), on OpenBSD the file /etc/login.conf, on Arch the ENV_PATH variable in /etc/login.defs, ...
* even if you change the `shell` variable in st, it uses a few other things to determine the shell used, one of them $SHELL, which gets exported by login(1)
* there should not be any problems running scripts (if $PATH is set correctly and stuff) after changing shells, because they are started as ordinary programs and the interpreter is only determined through the shebang (the #! line at the start)
* on Arch, /bin/sh is a symlink to bash, I changed it on my machine to dash
I think /usr/bin/zsh is sym linked to /bin/zsh
That was my assumption I just don't know what the point is.
@@BrodieRobertson Pretty much everything in /bin is syslinked to /usr/bin in arch. The story behind why there is /bin and /usr/bin actually goes back to the devs at bell labs running out of disk space and having to mount another disk.
@@BrodieRobertson @Wil T
on Arch /bin is a symlink to /usr/bin, zsh itself doesn’t care about that.
But yes, /usr originates from space issues at Bell Labs on single storage mediums.
Leftwm review? Rust based wm... Also hunter.... A ranger/lf alternative in rust (has previews...)... And ion shell... Rust shell for redox os but can be used in Linux, apparently
Thanks for the suggestions
If the login shell is not available, login(1) from util-linux just says “login incorrect”.
For some reason, the install script for the zsh Arch package adds both /bin/zsh and /usr/bin/zsh to /etc/shells.
So it will just stop you being able to login then, that's what I assumed would happened.
Not gonna lie, I've been meaning to switch to ZSH, but have been to lazy to figure out how to actually switch lmao (newish user in case you can't tell).
chsh doesn't need sudo because it's got the suid bit.
Oh I thought it did, my bad
huh chsh -l doesn't work on my gentoo install.
That's weird i had a look into Gentoo it seems to come with chsh, check the man page, maybe the option is different.
@@BrodieRobertson it only provides -R and -s
it belongs to package shadow-4.8.1. Perhaps it's too old.
Try cat /etc/shells works on Debian. As chsh -l is not working.
@@williamjohn1815 is it just the Arch version that has this option?
@@BrodieRobertson For some reason it seems to be as the command is on the arch wiki. I even checked the Debian repo in case something was not install which stopped the command from working on Debian. I have noted both commands in my help files. Thanks you for your work.
zsh is not considered a standard software and it has mostly the purpose of portability. Install ksh(1) and you will find it in /bin/ksh and /usr/bin/ksh. And please.. in the name of all gods! .. dont tell people to edit the passwd directly! $SHELL is wrong in this case because this variable shall represent a pathname of the user's preferred command language interpreter. $0 shows you the actually used shell. A "nologin shell" is for daemons like http, smtp oder simple for users with just "ftp privileges" (/bin/nologin, /sbin/nologin, ..). /bin/sh is mostly a symlink against bash or ash.
I didn't tell people to do it, I showed them that it can be done if for some weird reason you need to. I didn't realise they were different, I've never had a situation where I noticed that they differed.
@@BrodieRobertson There is absolutely no reason for editing /etc/passwd directly. Bad habits under linux are.. well.. bad.
@@GrumpyCrash I'm not going to pretend that you can't do something in a dangerous way, I specifically said I don't trust myself not to break something so I'm not going to save my changes. There shouldn't be a reason but there could be.
will you shut up about the subscriptions once you hit your next landmark? ~ it's distracting annoying off-putting and makes me consider unsubscribing.
I've changed up my intro after the backlog is over
sry, that was an overly harsh way of putting that. loving the content, great service, hampered by the subscription requests.
I've kept it in the outro but I've wanted to slim down my intro for a while
Will you shut up, we know your boyfriend isn't putting out
Not gonna lie, I've been meaning to switch to ZSH, but have been to lazy to figure out how to actually switch lmao (newish user in case you can't tell).
I've only been on Linux for about 7 months, I know the feeling