Traceback (most recent call last):To fix it I manually had to install the package python-pkg-resources.
File "/usr/bin/glances", line 5, in
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts
Monday, June 17, 2013
Installing "Glances" system monitor on ubuntu 12.04
Glances is a curses based tool for monitoring your system - kind of like top on steroids. There is a small issue with using the version in the PPA on Ubuntu 12.04 (specifically the 12.04.2 minimal install); it crashes on startup with the following error:
Tuesday, January 11, 2011
Ubuntu and OpenVPN FQDN Problems.
I have been having some weird problems with OpenVPN on my clean Ubuntu 10.10 (desktop) install whenever I connect to a remote LAN using OpenVPN. The remote LAN hosts a number of servers, all located under the domain company.local (example). Even if it connects and I can ping the remote machine that is called testserver, I can NOT ping the same server through its fully qualified domain name (FQDN) testserver.company.local. Ping would fail with the following error:
Trying to lookup the FQDN with nslookup works just fine! Strange!
Now it appears that the reason is something called a MDNS (Multicast DNS) which kicks in and handles (by default) all .local domains. Looking at the file /etc/nsswitch.conf I found a line that looks like this:
Apparently the '.local' extension is not sent to the DNS server for resolution if the MDNS system cant resolve it. So I went ahead and changed the line to:
I went back to the shell and ran ping testserver.company.local again, and lo-and-behold it works!
Software used:
ping: unknown host testserver.company.local
Trying to lookup the FQDN with nslookup works just fine! Strange!
Now it appears that the reason is something called a MDNS (Multicast DNS) which kicks in and handles (by default) all .local domains. Looking at the file /etc/nsswitch.conf I found a line that looks like this:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
Apparently the '.local' extension is not sent to the DNS server for resolution if the MDNS system cant resolve it. So I went ahead and changed the line to:
hosts: files mdns4_minimal dns mdns4
I went back to the shell and ran ping testserver.company.local again, and lo-and-behold it works!
Software used:
- NetworkManager
- NetworkManager-OpenVPN
- OpenVPN
- Ubuntu 10.10 Desktop
Tuesday, October 19, 2010
Ubuntu PHP, PDO and MySQL
Note to self:
In order for the PDO MySQL driver to get installed, you need to install the php5-mysql package.
In order for the PDO MySQL driver to get installed, you need to install the php5-mysql package.
sudo aptitude install php5-mysql
Subscribe to:
Posts (Atom)
