Quick nmcli notes

This is a quick post so I can remember these details.

So, on the R810, I am currently running ArchLinux, which uses by default NetworkManager, which I have a love/hate relationship with. At my last job, I recommended removing it from our servers, as under RHEL6, it does very odd things to the network and is hard to manage. I have heard that it is better under RHEL7. But, it does let you do some really cool things. On the R810, there is a cellular modem, and on previous installes, I have had it configured and scripted using nmcli to easily bring up and down the cellular connections.

The problem I am facing now is that my current DHCP server for the house does not let me provide two MAC Address for a single IP, so when I dock the R810, it gets a different IP address than when it is on WiFi. Very annoying. Also, for some reason, it would prefer to use WiFi when the ethernet connection was present, thus giving me a slower connection.

The documentation I found was a bit light in examples and/or dated (I am running version 1.6.2 of NetworkManager, and the examples were from 1.2.x or 1.4.x, which did not work). So, with a bit of expermenting, I finally got it fixed to:

  • Chose the ethernet connection over the Wifi when both are present
  • ‘Clone’ the MAC address of the Wifi NIC to the ethernet NIC

Here are the commands. local is what I called the local ethernet connection, and home-wifi is what I call the house Wifi Network.

  • To set the MAC adress:

nmcli connection modify local ethernet.cloned-mac-address aa:bb:cc:dd:ee:ff

  • To set the connection priorities:

nmcli connection modify local connection.autoconnect-priority 999
nmcli connection modify home-wifi connection.autoconnect-priority 999

Updates to AUR packages

So, with the migration of the AUR to version 4, I looked at the 12 AUR packages I had created over the years which I have not looked at in a long, long time.

The list started out with:

In the end, I only kept xlhttp as I do not use the others anymore. Surprisingly enough, only one of the packages (chronicle) was out of date. I disowned all the others, so if you want, you can pick them up.

FreeBSD Challenge II, End Report

And, again, I hit something which is causing massive disk performance issues. That, and suspend/resume does not work on either laptop.

I would try to debug the issues, but that means learning a whole new set of tools, and I will not have time for a while. Next week, I am in week long meetings which will run late every day, and then I have to finish writing and present a training class the last week of the month. The hour or two I can spare will be far better spent for me by backup, re-installing ArchLinux than by starting to learn the tools. Yes, a bit of a cop-out, but I need the machines to do what I need to do. I will keep the servers FreeBSD, however, as it works great there.

I will revisit the issue of FreeBSD on the laptops when I either get new kit, or support for my models gets better.

Command-Line blog posts

So, it only seems fitting that I should talk about a command-line interface to posting on this blog. No, I do not mean using links or the like, but a way to post from the command line.

So, this post is being typed up in vim on my Fedora 8 laptop. I will use this great little tool I found called wppost to post. wwpost is part of the perl module WordPress::Post.

A brief summary of its commands are bellow:

 -c category, can be a list separated by commas, no spaces
-t title
-i description, main body of post, if it has a slash, it is interpreted as a file to slurp
like a text or html file
-D iso formatted date for post, can be left out
-T if there are image attachments, place them as thumbnails only, with link, not just resized

Some usage examples taken from the man page:

 Most basic of usage, (provided you have a ~/.wppost file) wppost -t 'hi everyone' -i 'i just wanted to say hello' If you want to specify two different categories: wppost -t 'Another Apple' -i 'Apples are really great. I do love them so.' -c food,rant -D 20071231 If the body of the post is in a file wppost -t 'title here' -i ./content.txt If the content of the post is in a file and you want to use the file
name as the title wppost -i ./Title_Here.txt If you want to have file attachments: wppost -t 'recent photos' -i 'these are recent pictures i took' ./*jpg

Pretty cool, huh?

Peace out!