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 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. ...
Save, and restart vim config without restart:
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
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 https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm
Install the dependencies and the rpm target:
$ sudo dnf install qt5-qtwebkit qt5-qtquickcontrols -y
$ sudo rpm -i teamviewer.x86_64.rpm
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
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.
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:
Make it executable:
$ sudo chmod +x /usr/bin/vpn
Now, you can just open the app with command
$ sudo systemctl stop docker
$ sudo touch /etc/docker/daemon.json
$ sudo systemctl start docker
Check your docker0 ip address now:
$ ip addr
$ sudo wget -P /etc/yum.repos.d/ https://download.docker.com/linux/fedora/docker-ce.repo
$ sudo dnf install docker-ce -y
$ sudo systemctl start docker
$ sudo systemctl docker ps -a
$ sudo vim /etc/my.cnf
$ mkdir $HOME/arctools
$ cd $HOME/arctools
$ git clone https://github.com/phacility/libphutil.git
$ git clone https://github.com/phacility/arcanist.git
$ 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
sudo dnf install gstreamer-ffmpeg
Printer series: HP 2130
$ sudo dnf install hplip hplip-gui -y
Open the app :