Setup plugin manager for vim on fedora 28

Vim is one of the tool that must have in any unix like system. One of the reason for using vim is the customization and the plugins that can be used depending on the needs. To install plugins on vim, I’m using vim-plugin from junegunn/vim-plug.

Check vim version

In fedora vim already installed, but you might want to check the version just in case yours behind of the newest version.

$ vim --version

Update vim

Update vim to the newest, for better experience

$ sudo dnf update vim

Setup plugin manager for vim

Setting up vim-plug, this will be downloaded the plugin and put it inside ~/.vim/ autoload directory:

$ curl -fLo ~/.vim/autoload/plug.vim --create-dirs \

Open ~/.vimrc, and put these lines at the bottom of the file. Between the lines of call plug#begin(‘~/.vim/plugged’) and call plug#end(), are the plugins that you want to install.

call plug#begin('~/.vim/plugged')
Plug 'junegunn/vim-easy-align'
Plug 'itchyny/lightline.vim'
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'Valloric/MatchTagAlways'
call plug#end()

Save, and restart vim config without restart:

:so ~/.vimrc

Update plugin

After the vim-plug has been setup, now we can easily install these plugin that has been listed inside ~/.vimrc by this command:


Finally, let vim-plug installing these plugins

All set!



Install TeamViewer On Fedora 28, Easy setup

Installing rpm package can be tricky, sometimes dependecies that required are not met.

I’ve experienced this when installing TeamViewer for fedora 28. Here’s just another snippet to installing the TeamViewer on fedora 28 with nice and easy.

Download teamviewer from the source:

$ wget

Install the dependencies and the rpm target:

$ sudo dnf install qt5-qtwebkit qt5-qtquickcontrols -y
$ sudo rpm -i teamviewer.x86_64.rpm

Linux machine Failed to hibernate, “system via logind: Sleep verb not supported”

So after using fedora 28 for a while. I tried to configure my power management using xfce power management system.

Looking at these power management settings, are very simple explanation. I set my machine to hibernate or sleep mode when inactive for 16 minutes.

Saved the settings. then I closed the laptop lid, so it started to be inactive until the next 16 minutes. Supposed to be hibernated.

But it did not, instead…

I opened up my laptop, and there is this error:

System via logind: Sleep verb not supported...

It turns out that the states of the machine are not available for hibernate. You can check them out with this simple command:

$ sudo cat /sys/power/disk

Now, that’s a problem. The machine cannot be hibernate, nor suspend if the output is disabled.

The solution is quite simple. Reboot the machine, then enter BIOS mode. This one is requires the BIOS setting, secure boot to be disabled.

Secure boot setting in BIOS

Switch the secure boot in BIOS setting to Disabled. Then reboot the system.

After I rebooted the system with secure boot disabled, the output of /sys/power/disk now is contains more than one, including suspend/hibernate.

$ cat /sys/power/disk 
[platform] shutdown reboot suspend test_resume

The machine’s power management system now can run the machine with hibernate mode.

Install pulse secure linux 9 on Fedora 28

This installation is using pulse secure linux version 9 with rpm package ps-pulse-linux-9.0r1.0-b739-centos-rhel-64-bit-installer.rpm

$ sudo dnf install compat-libicu57-57.1-2.fc28.x86_64
$ sudo dnf install libgnome-keyring
$ sudo rpm -i ps-pulse-linux-9.0r1.0-b739-centos-rhel-64-bit-installer.rpm

Create vpn shortcut (optional):

$ sudo touch /usr/bin/vpn
$ sudo vim /usr/bin/vpn

Fill with this script below:


export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pulse

Make it executable:

$ sudo chmod +x /usr/bin/vpn

Now, you can just open the app with command vpn

Install Arcanist Phabricator on Fedora 28

$ mkdir $HOME/arctools
$ cd $HOME/arctools
$ git clone
$ git clone
$ mv $HOME/arctools /opt
$ echo 'export PATH=$PATH:/opt/arctools/arcanist/bin' >> ~/.bash_profile
$ source ~/.bash_profile
$ sudo dnf install php php-json
$ arc --help
$ arc install-certificate
# and follow the rest of the instruction from the arc