I recently added a few new files (.tar.gz archives) to the ownCloud folder on my desktop PC. The next morning I discovered that my laptop couldn’t sync them. The ownCloud client (Csync) displayed:

Csync processing step propagate failed

Starting the client with “owncloud --logwindow” produced this message:

Read the rest of this entry »

Tags:

A few months ago, I moved to Linux Mint 14 “nadia”, which is based on Ubuntu 12.10 “quantal quetzal”. I sometimes see this error after running a commmand with sudo:

rm: cannot remove `/run/user/root/gvfs': Is a directory

This happens because the root user has started a gvfsd daemon, which mounts a virtual filesystem on that directory. The root user should never run GNOME, so it should never need gvfsd. But something in Ubuntu 12.10 starts one sometimes.

Read the rest of this entry »

Tags: , , ,

Cacti is a wonderful tool, but many of the default graphs are ugly. Worse, the “ucd/net Memory Usage” graph is totally useless. It displays memory which is free, or dedicated to cache or buffers. But it doesn’t display the actual used memory or total. And it uses the wrong base, assuming there are 1000 bytes in a kilobyte of memory. I can’t imagine why this graph template is even included with Cacti by default. So, I set out to make a better one.

Read the rest of this entry »

Tags:

My friend Soren recently gave me a Super Power Bank, a nifty portable Lithium battery pack with two USB ports for charging devices on the go. The Super Power Bank has a 6600 mAh battery with two USB ports for charging devices; one providing 1.0 A, the other 2.1 A. He asked me a question: do my devices charge faster on the 2.1 A port? Down the rabbit hole I flew.

Read the rest of this entry »

Tags: , , ,

I recently upgraded to Linux Mint 14 “nadia”, which is based on Ubuntu 12.10. I use dnsmasq as a local DHCP server and DNS resolver for virtual machines. Installing dnsmasq on Linux Mint 14 broke host DNS resolution. The issue is easily reproducible: stop dnsmasq, DNS stops working. Start dnsmasq, and it works again.

Read the rest of this entry »

Tags: , , , ,

In another post, I talked about running Wireshark and other sniffing programs as an unprivileged user. You can do the same with Nmap, but it’s a little more tricky.

WARNING: This is dangerous. The Nmap Scripting Engine (NSE) allows scripts to sniff the network, change firewall roules and interface configuration, or exploit vulnerabilities including on localhost. It’s possible, especially with elevated capabilities, for a clever person to use Nmap and NSE to escalate to full root privileges. If you do not understand these risks, do not do this.

Read the rest of this entry »

Tags: , ,

The Wireshark team has long warned us not to run Wireshark as root. However, since Wireshark 1.4 (between Ubuntu 10.04 and 12.04), they’ve raised the stakes. Wireshark no longer loads all its plugins and protocol dissectors when run by root, and it displays warning messages on the CLI and the GUI:

root@laptop:~# tshark 
tshark: Lua: Error during loading:
 [string "/usr/share/wireshark/init.lua"]:45: dofile has been disabled
Running as user "root" and group "root". This could be dangerous.

Read the rest of this entry »

Tags: , ,

I spent part of the last two days solving a fun billing problem (if such a thing exists). We had a voice customer on the wrong rate plan, and had to correct the billing using his call data records (CDRs) in CSV format. I had the correct price list, also in CSV format. Enter Super Python Man!

Read the rest of this entry »

Tags:

Merry Christmas!

It’s that time again … Merry Christmas, everyone! We have a special card just for you:

http://www.tolaris.com/xmas/xmas2012.php

(In case you miss it the first time, try reloading or clicking the button.)

Read the rest of this entry »

Tags:

I recently packaged MikroTik Winbox for our company desktops. We use RouterOS devices for many applications, and Winbox is the easiest way to manage them. It is a windows application, but it runs perfectly in wine. This package includes a desktop launcher, icon, and winbox.

Read the rest of this entry »

Tags: ,

« Older entries § Newer entries »