Category Archives: Fedora

A GNOME Shell extension to tell whether GNOME is running under Xorg or Wayland

Since the release of Fedora GNU/Linux 25 in November 2016, Wayland has become the default choice for Gnome Shell sessions (where supported by the underlying hardware stack).

Altough GNOME Shell under Wayland works very well (actually, better than under Xorg), it is sometime required (or preferred) to run Xorg instead  (ie, some applications requires Xorg, for example TeamViewer).

So, I often wondered whether I was running Wayland or Xorg.

Since I’m lazy I developed a very simple GNOME Shell extension which does exactly that.

Here’s how it looks like:

That’s my first GNOME Shell extension (also, I don’t quite like JavaScript…) so it is probably far from perfect!¬† The source code is publically available on GitHub. Suggestions and pull requests are very welcome!

 

Dropbox hint: enabling LAN mode (in Linux)

If you are using Dropbox with multiple machines living in the same network, you can get advantage from the so-called LAN mode.

Basically, if you need to sync some Dropbox’s content between those machines, they’ll talk directly each one with the other instead of talking with the Dropbox servers.

This will drastically decrease the time to finish the operation (and reduce your Internet bandwidth usage)

A typical Fedora GNU/Linux installation won’t make use of the Lan mode feature because by default the needed network ports are close by the firewall.

All you need to do to make it work is open the port 17500 for both TCP and UDP protocols on all the machines involved.

To change your firewall configuration you can edit the file

/etc/sysconfig/system-config-firewall

and add the bold lines to your configuration

# Configuration file for system-config-firewall
--enabled
--port=17500:tcp
--port=17500:udp


and issue a

service iptables restart

as root.

If you feel more comfortable with a GUI, then you can find the firewall configuration tool under the Application->Other->Firewall menu.

You have to click on “Other ports” on the left menu, and then click on the “Add” button two times adding the TCP protocol the first one, and the UDP the second one.

Firewall GUI for Dropbox

You can make sure everything is working right clicking the Dropbox icon in the notification area during a sync: you should see “(LAN)” beside syncing and …a much faster synching!

Update: … and by the way, if you haven’t a Dropbox account yet, get one using my referral link http://db.tt/bEYuwB8 . In this way you’ll get 250MB bonus space (and I get the same amount too :D )