Ubuntu/Mint show git branch in terminal (bashrc edit)

I just wanted to share with you how my terminal looks like and how to export the PS1 variable. To achieve it for Ubuntu: sudo gedit ~/.bashrc For Linux Mint: sudo gedit /etc/bash.bashrc And paste the following there at the line before the last one: export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] '

May 4, 2020 · 1 min · gmirchev90

Failed to start mongod.service: Unit mongod.service not found. – Ubuntu 16.04

Recently, I installed MongoDB following the tutorial on their site on Ubuntu 16.04 64 bit. But when trying to start the mongod service I got the following error: “Failed to start mongod.service: Unit mongod.service not found.”

May 4, 2020 · 1 min · gmirchev90

/dev/kvm permission denied on Ubuntu 18.04

Edit (06.06.2018):{{ double-space-with-newline }}You can follow the simple tutorial here to install KVM. Thanks to azbest! I got this error when I was trying to create an emulator: /dev/kvm permission denied

May 4, 2020 · 1 min · gmirchev90

Ubuntu – Alt + Shift + any key switches the language and does not work

I faced this bug in Ubuntu 18.04. When I used Alt + Shift + 7 inside Webstorm which is the command for Find Usages, it actually changed the language because the command included Alt + Shift (I previously set this by using Gnome Tweak Tool). Here is a bug related to this in Launchpad.

May 4, 2020 · 1 min · gmirchev90

“No space left on device” message with npm & Ubuntu 18.04

I got the “No space left on device” message when trying to run a React website using npm. The fix was fast and easy following THIS advice: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

May 4, 2020 · 1 min · gmirchev90

Installing Grub fails on Ubuntu 16.04

I got this nasty error when it came to having a fresh install of Ubuntu 16.04. It says that GRUB cannot be installed on /target device. In order to fix this you need to: Create a partition around 300 mbs Use the FAT32 format and target it as EFI partition Choose that the GRUB installer should be installed on this 300 mbs partition Then the installation should finish succesfully without any errors.

May 4, 2020 · 1 min · gmirchev90

Add application to launcher in Ubuntu 16.04

Just use a program called alacarte: sudo apt-get install alacarte Click on the New Item button, write the command & name of the app, choose a logo if you want and you will see it appearing shortly in the Unity launcher by typing the name. Otherwise, you will have to create a *.desktop file and add it to .local/share/applications which I couldn’t make it work after spending a couple of hours.

May 4, 2020 · 1 min · gmirchev90