How To Install HipChat on Linux Mint 18.3

If you are using Hipchat from Atlassain for work or projec chat then the install guide for Linux is made for Ubuntu.

Only problem if you are using another distribution based on Ubuntu like Linux Mint 18.3 Cinnamon then it will fail to install.

The original guide looks like this

The problem is that the repository that the install guide will generate is wrong and not existing.

Just replace $(lsb_release -c -s) with xenial like this

sudo sh -c 'echo "deb xenial main" > /etc/apt/sources.list.d/atlassian-hipchat4.list'
wget -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install hipchat4

That will match with the Ubuntu 16.04 branch that Linux Mint 18.3 is based on.

If you allready have done the damage using the guide from Atlassain then just edit the file with

sudo nano /etc/apt/sources.list.d/atlassian-hipchat4.list

And find the sylvia line, replace it with xenial so it looks like this

deb xenial main


sudo apt update
sudo apt install hipchat4

WordPress | Writing Code in Your Posts

If you wan’t to use some of the special characters in your posts that overlabs html codes then will be hidden because they overlab HTML codes.

But there is a solution for that, you can use character codes in your source instead, just switch to Text view and replace them.

Here is a list of most used special character entities:

< = &lt; or &#60;
> = &gt; or &#62;
/ = &#47;  	
] = &#93;
[ = &#91;
" = &quot; or &#34;
' = &#39;
“ = &ldquo; or &#8220;
” = &rdquo; or &#8220;
‘ = &lsquo; or &#8216;
’ = &rsquo; or &#8217;
& = &amp; or &#38;

apache | redirect from http to https

I found this guide to how to redirect http to https on the apache wiki

I use it within the virtualhost container like this

<VirtualHost *:80>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

ServerAdmin webmaster@somesite.tld
ServerName somesite.tld
ServerAlias www.somesite.tld
DocumentRoot /home/somesite/public_html

ErrorLog /var/log/apache2/somesite.tld-error.log
CustomLog /var/log/apache2/somesite.tld-access.log combined

DocumentRoot /home/somesite/public_html

ErrorLog /var/log/apache2/somesite.tld-error.log
CustomLog /var/log/apache2/somesite.tld-access.log combined

Then you can have your ssl <virtualhost *:443> section

That ensure that if another application like wordpress wan’t to write something to .htacces then it will not we overwritten.

CRON | how to pipe stderr to /dev/null

If you get a lot of mails to your root account with output from your cronjob then it can be solved by redirecting your output from the job to /dev/null by adding >/dev/null 2>&1 to the end of your crontab line.

Like this example from my /etc/crontab where i sync my nameservers during the day

*/30 5-23 * * * root /root/sync_dns >> /var/log/sync-dns.log >/dev/null 2>&1