You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/tips/bash.mdx
+38-1Lines changed: 38 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,50 @@ This should return `/QOpenSys/pkgs/bin/bash`. If it doesn't then you need to ta
18
18
19
19
## Setting Bash as the Default Shell
20
20
21
+
*Some techniques come directly from the official [IBM i OSS docs page](https://ibmi-oss-docs.readthedocs.io/en/latest/troubleshooting/SETTING_BASH.html)*
22
+
23
+
### Technique #1: Code for IBM i
24
+
21
25
When you connect to a server, _Code for IBM i_ checks that bash is your default shell. If bash is not the default shell, it will offer to set bash as the default.
22
26
23
27

24
28
25
29
This is the most convenient way to set bash as your default shell. You can ignore this prompt, but be aware that not all capabalities may work.
26
30
27
-
You can get information on setting bash as your default shell [from IBM here](https://ibmi-oss-docs.readthedocs.io/en/latest/troubleshooting/SETTING_BASH.html).
31
+
### Technique #2: chsh
32
+
33
+
1. Use yum to install the `chsh` package (for instamce, `yum install chsh`)
34
+
35
+
2. From a shell, use the `chsh` command to set your shell
More information on this IBM i service can be found on [developerWorks](https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/IBM%20i%20Technology%20Updates/page/QSYS2.SET_PASE_SHELL_INFO%20Procedure)
62
+
63
+
Also, the default shell setting can be queried out with [QSYS2.USER_INFO](https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/IBM%20i%20Technology%20Updates/page/QSYS2.USER_INFO%20catalog)
0 commit comments