Facebook: Unfollowed Still Getting Notifications on Timeline

by Super User

We all get those people that use their personal Facebook pages to display adds, every hour, for sunglasses, herbal remedies, miracle candles or annoyinig social/political views. If you want to remain "friends" with them, but don't want to see their posts anymore, it is easy enough to unfollow them, but what if they still show up? You might have forgotten a setting. 

Reset USB HDD, Over SSH, Without Unplugging

by Super User

There comes a time when we write a script that requires us to unplug and replug some USB component. In my case, a 6tb hdd, in a USB Inateck docking station.  I'm not sure if this process will work the same for every device, but it worked for me. I'm running Ubuntu 16.02 Server and here's what I did. 

First, you need to know what device you're trying to cycle, reset or replug. In my case, it was /dev/sdb. I knew this because I typed sudo fdisk -l and found it in the list of storage devices.

reset USB linux Ubuntu 1

Next, I used udevadm to check what the device was labled as, in the bind/unbind file.

The command is: udevadm info -q all /dev/sdb | grep -i devpath 

reset USB linux Ubuntu 2

For me, I'll want to use the part underlined in blue, above, for the next command. For you, it might say 1-1.2 or something else. 

The next two commands will both disconnect and reconnect the USB disk, causing it to appear as if it was unplugged.

echo 1-1 > /sys/bus/usb/drivers/usb/unbind
echo 1-1 > /sys/bus/usb/drivers/usb/bind

You can monitor the procress by watching syslog with this command: tail -f /var/log/syslog.

reset USB linux Ubuntu 3

SOGo, MIcrosoft Active Sync Behind Apache ProxyPass

by Super User

Proxy pass allows you to forward requests from a perimeter Apache server (a proxy or gateway) to an internal web server. In this case, we'll be forwarding Microsoft Active Sync from an Android smartphone, configured to use Corporate email, to Zentyal/SOGo, using Apache. In this example, we'll be using internal.server.tld as our hostname. Substitute your own hostname, in its place.