IBM i Dotfiles – How to Configure BASH on IBM i

Dotfiles – Hidden configuration files, usually found in one’s home directory, that are characterized by the dot at the beginning of the filename. Example: .profile If you’re like me and need to access many IBM i instances, copying your dotfile configurations and keeping them synced between instances can become cumbersome. Maybe you don’t need to…

Make Vi work on IBM i

Have you SSHed into your IBM i and tried to edit a file with vi only to be greeted with this? The default TERM for IBM i is currently set to xterm-256color. You can test this by typing echo $TERM: Solution To fix this, simply define your terminal to the proper value, usually just xterm.

Yum for IBM i

The IBM i finally has Yum! So what is Yum? It’s a Package Manager for RPMs! So what are RPMs? Why should we start using Yum instead of 5733-OPS? I’ll cover these questions and more in this article. What is Yum? No more PTFs? Yum is an automatic updater and package installer/remover for rpm systems….

db2.sh: A Command Line Interface for DB2 on IBM i

Recently starting the IBM i BASH Tools repository has prompted me to think¬† of some scripts that would be useful. One that I have wanted for quite awhile is a Command Line Interface (CLI) for DB2 on the IBM i. Calling DB2 from Command Line Calling DB2 from the command line is done in the…

Writing Helpful BASH Scripts for IBM i

I feel like BASH is sometimes an overlooked tool these days. Writing scripts is simple, and a script can create efficient command line interfaces to achieve tasks that would normally take a lot longer. A great example of this is starting, stopping, and restarting Apache on the IBM i. For those of us not accustomed…

Pretty BASH Configuration with IBM i Helpers

Making BASH Your Default Shell There are (at least) a couple of different ways to achieve having BASH on login. sshd_config РGlobally (not recommended) This will make it so anyone that SSHs in will have BASH at login. More information can be found here Edit sshd_config (usually found at /QOpenSys/QIBM/UserData/SC1/OpenSSH/etc/sshd_config) to have the following:

.profile –…