I installed DB2 on an Ubuntu Linux server via SSH and the command line installer this morning. This is not particularly exotic, but is different from using the GUI installer on either platform. Still, I should jot down my steps:
- SSH to your server. On Windows, use Putty or the OpenSSL package in Cygwin.
- Open up a text mode browser like lynx or links
- Go to http://www.ibm.com/db2/express/
- Download Express-C. Get some tea and snacks while that happens.
tar xzvvfthe file and
cdinto the directory
- If the next step fails, you may need to install some libraries. I had to
sudo apt-get install libstdc++5
- You now need to manually configure the DB2 server
Extra notes just in case:
sudois the usual way to escalate privileges on Ubuntu.
sudo su - db2inst1is the way to switch users to, in this case, user db2inst1.
- Default settings in the steps above make db2inst1 the user with SYSADM permissions for DB2.
- For SFTP file transfer, you can use WinSCP or Filezilla with the same credentials as for SSH.