Archive for the ‘ubuntu’ Category

screen zoom

February 11, 2020 Leave a comment

I wanted to enable screen zoom. It’s very handy for presentations.

Under Manjaro, it worked out of the box with Alt + mouse wheel.

For Ubuntu, I found a video that presents a solution based on Compiz (see here). Unfortunately it didn’t work for me. It turned out that Ubuntu 18.04 uses Gnome Shell, which is not compatible with Compiz.

However, there’s a way to make it work under Gnome Shell, see the video here.

In short:

  • open Settings; on the left Devices -> Keyboard. Scroll down to “Universal Access” and assign key combinations to 1) turn zoom on or off, 2) zoom in, and 3) zoom out. I assigned Super+Alt+*, Super+Alt++, and Super+Alt+, respectively.
  • Go back to the main menu of Settings and select Universal Access on the left. Click on Zoom. Enable it (ON), set magnification to 1.00, and I chose “follow mouse cursor”.
  • CLose the Zoom settings window. At the top, enable “always show universal access menu” (ON).

Now you can zoom in and out with Super+Alt++ and Super+Alt+, respectively.

Categories: manjaro, ubuntu Tags: , ,

Dropbox is stuck at syncing

February 11, 2020 Leave a comment

Under Ubuntu 18.04, my Dropbox client stopped working. I have a big Dropbox folder and it synced at least 90% of it. But then, it simply indicated “Syncing…” and nothing happened. I left it like that for a night but next morning it was still “Syncing…”. What da hell?

I stopped the client and launched it from the command-line:

$ cd ~/.dropbox-dist/
$ ./dropboxd &

And luckily it dropped an error message on the screen:

Unable to monitor entire Dropbox folder hierarchy. Please run "echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -p" and restart Dropbox to fix the problem.

So that’s it. This Ubuntu box of mine was freshly installed and the default settings were not good for Dropbox. After executing the proposed command, Dropbox started to work normally.

Thus, the command to issue is:

echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -p
Categories: linux, ubuntu Tags: , ,

Ubuntu 18.04

I upgraded some of my machines to Ubuntu 18.04. It looks good and the installation went flawlessly. Here is a nice post with some post-installations tips: Things To Do After Installing Ubuntu 18.04 Bionic Beaver Linux.

I did the followings:

  • install Gnome Tweaks
  • place titlebar buttons to the left
  • Make workspaces static. Number of workspaces: 4.
  • Install the the Gnome shell extension TaskBar. With this I can see the running apps in a bottom panel.
  • Redefine the lock screen shortcut to Ctrl + Alt + L.
  • force Alt + TAB to switch only on current workspace (read more)
Categories: ubuntu Tags: , ,

[mongodb] invalid GPG signatures

February 8, 2018 Leave a comment

I have an Ubuntu 14.04 LTS box with MongoDB. When I tried to update the packages, I got a similar error:

W: GPG error: trusty/mongodb-org/3.2 Release: The following signatures were invalid: BADSIG D68FA50FEA312927 MongoDB 3.2 Release Signing Key 
WARNING: The following packages cannot be authenticated!
mongodb-org-shell mongodb-org-server mongodb-org-mongos mongodb-org-tools mongodb-org E: There are problems and -y was used without --force-yes


sudo apt-key list | \
 grep "expired: " | \
 sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | \
 xargs -n1 sudo apt-key adv --keyserver hkp:// --recv-keys

Full explanation of this is here. In a nutshell: update expired keys from Ubuntu key server.

Install the Numix theme and icons for Ubuntu 16.04

November 24, 2017 Leave a comment

The look and feel of Ubuntu is quite boring. It looks the same with every release. If you want a fresh look, check out the Numix theme, it looks great.

Installation instructions are here.

Here is a screenshot of my desktop. I use the Numix Circle icons.

Update (20171126): I also updated my Manjaro box. You can customize the look and feel with the Xfce Theme Manager. Here is my current setting: Themes: Vertex; Windows Borders: Numix-Manjaro; Controls: Vertex; Icons: Numix Circle; Cursors: aero-drop. With “yaourt numix” and “yaourt numix circle” you can find easily what packages to install. I wanted to go full Numix, but then my Firefox looked ugly: the title of the tabs and the texts in the popups were unreadable, so I had to mix the themes Numix and Vertex to get a good result.

Categories: ubuntu Tags: , , ,

Introduction to Linux

September 23, 2017 Leave a comment

I want to start a new video series entitled “Introduction to Linux”. It is intended for beginners who never (or not much) used Linux before. So far I have one video, but I plan to add more videos in the future. I will update this post with the new videos.

Complete playlist: here.

Videos in the series:

Categories: linux, ubuntu Tags: ,

a new range of shortcuts with the Hyper key

February 9, 2017 Leave a comment

On the YouTube channel of gotbletu I found a very nice trick (video). It explains how to replace the Caps Lock with the so-called Hyper key. And why? Because Caps Lock is pretty useless and you cannot use it for shortcuts. But if you tell the system that at the place of Caps Lock there is another key, namely the Hyper key, then you can use a new range of shortcuts.

You can find my .Xmodmap file here. Just put it in your HOME folder and upon the next reboot it’ll be activated automatically. To activate it without a reboot, use the command “xmodmap ~/.Xmodmap“.

Then, under Manjaro (XFCE), go to the Start menu, start typing “keyboard”, and open the Keyboard application. Go to the “Application Shortcuts” tab and add some new shortcuts. This time, when you press Caps Lock, it’ll be recognized as the Hyper key. I added these:

Hyper + g    gedit
Hyper + k    konsole
Hyper + f    file browser (thunar)

Update (20170416)
Under Manjaro I had to create the .Xmodmap file and it is read automatically at each boot. However, under Ubuntu it’s not the case. I tried several methods and here is what worked for me: add “xmodmap ~/.Xmodmap” to the end of your ~/.bashrc file. Now, when you open a terminal, it’ll be activated for sure.

Music video

And if Hyper Hyper, then Scooter, of course: