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…
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.
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….
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…
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…
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:
# $OpenBSD: sshd_config,v 1.75 2007/03/19 01:01:29 djm Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.
ibmpaseforishell=/path/to/bash # Defines shell for pase. Can be any path to bash you like. For example: /bin/bash