Restarting XServer in Fedora 20

I was having problems logging in this morning to my laptop.  When I entered my password, it just hung.   I pressed Ctrl-f2 to switch to an alternate tty, logged in as root and checked for errors in /var/log/messages.

Not seeing anything, I figured, I’d try and restart the Xserver.  Still not being completely familiar with the sysctl paradigm it wasn’t obvious how to restart it.

So, as root, I simply switched the runlevel to 3, and then back to 5 → Continue reading “Restarting XServer in Fedora 20”

Creating a Beep from a Command Line or Shell Script

If you have a long-running command on shell-script that you want to generate a beep upon completion on your PC running Linux do the following:

Make sure that the pcspkr module is loaded:

# modprobe pcspkr

Then create a wrapper shell script that looks something like this:

#!/bin/bash

# Some long running command here . . .

echo -e '\a' /dev/console
Continue reading “Creating a Beep from a Command Line or Shell Script”

Disabling Window Snapping for Fedora Core 20 Under Xfce

For me, window snapping is incredibly annoying.

For FC 20 with the Xfce spin, there a couple of knobs to turn before it can be turned off completely:

Applications Menu/Settings/Window Manager:

Go to the Advanced tab and uncheck ‘Snap windows to screen border’ and ‘Snap windows to other windows’

Applications Menu/Settings/Window Manager Tweaks:

Go to Accessibility tabUncheck the ‘Use edge resistance instead of window snapping’→ Continue reading “Disabling Window Snapping for Fedora Core 20 Under Xfce”