Skip to main content


Showing posts from 2017

Setup SSL for Jira

How to do it...

Perform the following steps to import an SSL certificate:

1. Open up a command window and go to the directory where the certificate file

2. Generate a Java KeyStore (JKS) for JIRA by running the

keytool -genkey -alias jira -keyalg RSA -keystore /opt/jks/jira.jks

3. Import the certificate into KeyStore repository
keytool -import -alias jira -keystore JIRA_INSTALL/jira.jks -file file.crt

where file.crt is the certificate file.

4. Open the server.xml file located in the /opt/atlassian/jira/conf directory in a text editor.

5. Locate and uncomment the following XML configuration snippet:

minSpareThreads="25" maxSpareThreads="75"
sslProtocol="TLS" useBodyEncodingForURI="true"

Navigate through bash history with page up/down key

Linux bash history with Page up / Page down In linux you can configure the pgup/pgdown keys to navigate through commands you typed that begin with the string you just typed. Type "mysql" and then hit "Page up", and you will see nothing but mysql-related commands.
Unfortunately this has to be configured anew on every machine or server/vm I work on, and I always forget where this is configured (and it takes a while to find it in google), so I thought I should write it down.

In /etc/inputrc, uncomment: # alternate mappings for "page up" and "page down" to search the history
Restart your shell or use Ctrl+X, Ctrl+R to tell it to re-read.
(thanks stackoverflow)
Yep, it's not ".bashrc" but "inputrc". Not sure why this one is not hidden, but so it is. You could try ~/.inputrc for a local, user-specific configuration.
Tried this in Ubuntu, an…

Error mounting NFS volume

If you got error to mount NFS volume in CentOS like below:

#mount -t nfs  /mnt/test                                             
       missing codepage or helper program, or other error
       need a /sbin/mount. helper program)

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

To solve this problem, you need to install nfs-utils package:

#yum install nfs-utils

In debian-based distros, you can try install nfs-common package:

#apt install nfs-common

That's all there is to it!

Have fun :)