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

Home Network Updates

So, in the last couple of weeks, I have had the following issues:

  • The CMOS battery dies on my file-server (a FreeNAS box), taking it, and the zpools down with it. I fought over a long weekend to recover the data, and in the end, got it mounted read-only, and copied it off. New hardware, and new zpools, and we seem to be going again. Recovering services is taking a bit of time.
  • There is a bug with the ZFS on Root for Antergos Linux. Seems that it does not put all the kernel drivers in the init image when you upgrade. Last time, I booted off the instal media to fix it. I lost that USB stick, so I downloaded a new one. Guess what? They have turned that feature off ZFS, so there is no way to recover. Since FreeBSD still does not support suspend/resume on the Acer C720 that is my small travel laptop, I have to reinstall Antergos and reload my data. Which I had to do because
  • My main laptop, the HP R810G1 seems to be having major battery issues. I bought a new battery in Novembers, and it died. I bought a new one a couple of weeks ago, and it at first did not seem to be holding a charge. Now, the OS does not see the battery. I think I might need a ‘new’ laptop.

I am torn between getting something one or two reves old with a solid record in the size I want (sub 13″, under 1″ thin, and good 6+ hours of battery) or the latest shiny.

Other news, I have the ownCloud server upgraded to nesxtcloud, and everything I have tried works out of the box, which is a lot more than I can say for ownCloud. Last major thing I need to recover it the Plex Server!

Goodbye 2014!

As 2014 draws to a close, I look back at the year.

Overall, it was a good year. The family staid reasonably health (just a case of the flu which every one of us caught).

Work slowed down a bit after only three trips, and the last one was in June, but I did get to spend two weeks in London which was cool. While the work has been not what I really want to be doing, it has been interesting, and next year promises to be very interesting. I have no clue if travel is in the cards or not, but I will keep the camera handy.

In the coming year, I plan to focus on health, photography, and technology. I want to get back to taking photos every day, and to bring the quality back up to art level over the snapshots and historical documentation that I have been doing.

Also, I want to revisit the 30 Day FreeBSD challenge again in January. I have the old HP R810 running PCBSD 10.1 already set up that I have been using for a couple of days working the kinks out of it, so I think I can do it this time. Normal caveat applies…I have a work laptop which dual boots Windows 8.1 and Fedora 21 for my work stuff. The home stuff should work nicely on the laptop.

Just to prove things, this post was written under FreeBSD.

I also need to fix up my virtual host farm. I have one too many, and do not need it, but of course, it is the one with the main mail and other services, so I need to hurry up and migrate things off of it.

I hope your 2015 is a great year.

FreeBSD Switch

I just noticed I have not updated this in a few weeks. Sorry about that.

I have my R810 running PCBSD 10.0.2, and I just patched and configured WiFi on it. I need to figure out how to submit a patch to see if I can get the Centrino supported in the main-line kernel so I do not have to compile a custom kernel just for that.

I almost have this working where I can switch to it full time. I need to deal with getting my killer apps installed and working. I had most (all?) of them working before, so I know I can do it again.

Currently, FireFox is not working for me for some reason, but Chromium is, so I will use that for now.

I have started a wiki to keep some notes for myself on this (what SA has not done that?), so I hope this process will be easier this time.

peace.

Back to FreeBSD (maybe back to the challenge)

So, I had a bit of time over the weekend, and spent it doing a bit of hacking around.

I had re-installed PC-BSD on my HP EliteBook R810. I used 10.0.2, and everything but the wireless looked good. I decided to try to get the wireless working with the internal WNIC. Previously, I used an external dongle to get WiFi working, but it was a pain to remember to pull it out, so I decided to try again.

I updated the base OS to 10-CURRENT, and then ‘patched’ the source tree using the info I found in this forum post. Once I rebooted, and used the PC-BSD tools to enable the device, things worked! Since this was only last night, I need to test it a bit to make sure it stands up to load.

There is a PR, and support has been added to HEAD. I am going try to write a patch to get this added before then. I will need to see if I can figure out how to do that. 🙂

Since my work laptop uses the same WNIC, I am one step closer to being able to install it on the work machine.

I am going to see about trying to use dragon as my non-work daily driver and shake out what I need to do, so I may be restarting the 30 Day Challenge again, but a lot of that depends on how work goes.