WebStorm (IDEA) on FreeBSD

Installation

by ross at 11:44:02 on August 3, 2017

Download

Fisrt step - download WebStorm: https://www.jetbrains.com/webstorm/ and extract the .tar.gz to someplace you have write access to.

Install Java:

# pkg install openjdk8

Fix file watcher

> git clone https://github.com/idea4bsd/fsnotifier
> cd fsnotifier
> make

Put the path to the fsnotifer binary into bin/idea.properties file (append this line):

idea.filewatcher.executable.path=/path/to/fsnotifier/fsnotifier

Fix builtin terminal

> git clone https://github.com/traff/pty4j
> cd /path/to/WebStorm/lib/libpty
> ln -s /path/to/pty4j/os/freebsd

Fix slow render

Edit bin/webstorm64.vmoptions (for 64bit systems) or bin/webstorm.vmoptions (for 32bit), append this line:

-Dsun.java2d.xrender=false

You can also tweak -Xmx option here to set memory size of WebStorm.

Note: On upgrade WebStorm will reset this file to defaults and you will have to re-edit it.

Run WebStorm

> ./bin/webstorm.sh

Click Tool → Create Desktop Entry to create launch icon for KDE or whatever you have.

Enjoy.

 

Comments