Posts tagged ‘ubuntu’

1 August, 2016

Upgrade Ubuntu 15.04 to 16.04

by gorthx

I use Ubuntu on my home machines, and tend to rely on the GUI Software Updater for upgrades & such.  Life happens and I left one of them on 15.04 past EOL, and the Software Updater didn’t provide an upgrade path directly to 16.04.  I had to upgrade to 15.10 first, which is also EOL.

Here’s what I pieced together from various forums around the net.  (I took this after-the-fact from my command-line history;  I’ll take better notes next time.)

apt-get update
apt-get upgrade # make sure system is as up-to-date as possible
apt-get autoremove # clean up some leftover crap

apt-get dist-upgrade # recommended next step on one of the forums,
                     # but didn't actually do anything
                     # and I probably could have skipped this

do-release-upgrade -d # supposely this should have worked without the -d
                      # but it didn't
                      # -d means "latest development release"

And booyah, I’m on 15.10 and could continue on to 16.04.

 

5 April, 2013

Installing PostgreSQL (and friends) from source on Ubuntu 12.04 (Precise Pangolin)

by gorthx

This is an update to this post from a few years back. This time I’m installing Postgres 9.2.3, PostGIS 2.0.1, and pgAdmin 1.17.0 on Ubuntu 12.04.

read more »

15 March, 2013

Monitoring Tools: sar

by gorthx

What: sar
What it monitors: pretty much every system stat you can imagine (and some you haven’t)
Where to get it: it’s probably pre-installed on your system; if not, try the sysstats package (the same one that includes iostats)
Why you’d want to use it:

  • you need an answer fast, but maybe don’t have access to the “enterprise” monitoring (or there isn’t any…[1])
  • you’re doing system testing and want a command-line tool that’s easy to configure and run in discrete timeframes.

Why you wouldn’t want to use it:

  • you want data you can easily throw into a graphing or analysis program; the data produced by sar isn’t readily machine-readable
  • you’re looking for a near-real-time long-term monitoring solution. In that case, just go ahead and set up munin or collectd.

Because it’s lightweight and so readily available, it’s a good tool to have in your toolbox. Plus, it’ll tell you things like fan speed and temperature, and I’m just a sucker for environmental monitoring [2].

read more »

6 April, 2012

Ubuntu + wine + ADE + nook + library2go

by gorthx

I’m pre-empting my promised posting about Cisco SLA syslog messages (it was a bit of a disappointment, anyway) to post the steps I took to get my nook to download a book from library2go [1].

I had to try a bunch of different things (links at the bottom) to get this to work. The basic procedure is:
– Install Wine (the windows emulator).
– Install Adobe Digital Editions (ADE) under Wine.
– Configure Wine so ADE can see your nook.
– Visit the library2go website & check out your chosen reading material; it downloads as a .ascm file.
– Open the .ascm file with ADE; you can read it in ADE if you want (ew)
– Use ADE to transfer the book to your nook.

read more »

Tags: ,
16 December, 2011

Generic steps for troubleshooting wireless on Ubuntu.

by gorthx

Fresh from my success with my Thinkpad T420, I tackled my Dell Latitude E6410, which had its own interesting quirks. So, here are some basic wireless troubleshooting steps for Ubuntu.

Step 1: Make sure the hardware switch is not set to off.

Step 1a: Is there another “hardware” switch? My HP2501p had an extra firmware switch for the wireless, accessible only from Windows. (Good thing I hadn’t deleted that partition…)

Step 2: Check the permissions: System -> Administration -> Users and Groups -> Advanced Settings; make sure “allow to connect to ethernet and wireless networks” is checked.

Step 3: Use lpsci to make sure your machine can see your card. Should look something like this (output filtered for brevity):
lspci -nn
02:00.0 Network controller [0280]: Broadcom Corporation BCM43224 802.11a/b/g/n [14e4:4353] (rev 01)

Step 4: Check the drivers: System -> Administration -> Additional Drivers. You should see a driver appropriate for your card there, e.g. I have the Broadcom STA Wireless Driver. It should show green and say “activated”. If not, click the “Activate” button. (I needed to reboot the Dell in order to get this change to take.)

Step 5: Find your ethernet interface:
:::-->iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 IEEE 802.11 Access Point: Not-Associated
Link Quality:5 Signal level:0 Noise level:163
Rx invalid nwid:0 invalid crypt:0 invalid misc:0

…and enable power*:
sudo iwconfig eth1 txpower on

Et voila.


* This page: http://www.cs.bham.ac.uk/~axs/laptop/#wireless helped me figure this out.

2 December, 2011

Installing Ubuntu 10.10 on a Thinkpad 420

by gorthx

(This post is mainly about getting the RealTek wireless card working.)

I went with 10.10, mainly because I had the image handy on a USB key, and I’m not so excited about what I’ve heard about 11 yet. (Although I do intend to try it at my next available opportunity.)

To get the Thinkpad to boot from a USB, I hit F12 during boot (gotta be quick with it!) to access the boot menu, then -s to get the startup menu. (The ‘thinkvantage’ button didn’t get me where I wanted to be.) Once I was in the startup menu, I was in the ‘boot options’ tab. Hit the down arrow to select “USB HD”, then hit enter. Voila.

The install went pretty fast, but then I spent a fair bit of time with updates. In retrospect, I probably should have updated the image on the USB key. :shrug:

First, the most important configuration change: put the #&@* minimize/maximize buttons back on the right side, where they belong.

Next: install my favorite font.

Everything worked out of the box (external keyboard, external monitor, card reader, etc) except wireless. My laptop wasn’t even detecting that I had a wireless interface.

First I tried enabling “connect to ethernet and wireless networks”. (System -> Administration -> Users & Groups; select the user; click “Advanced Settings”; select the “User Priveleges” tab; make sure “Connect to wireless and ethernet networks” is checked). No dice.

I could see my card:
lspci -nn
Realtek Semiconductor Co., Ltd. Device [10ec:8176] (rev 01)

…but I needed the drivers. This thread (specifically, the post by canucked) had the info I needed:

sudo add-apt-repository ppa:lexical/hwe-wireless
sudo apt-get update
sudo apt-get install rtl8192ce-dkms

(Kind of confusing that the driver has what seems to be a different model # in it, but there it is.)

I pulled up System -> Administration -> Additional Drivers to check the status of my new driver, and discovered it was activated but not currently in use. Deactivating and reactivating it didn’t change anything, but a reboot did.

10 December, 2010

Installing PostgreSQL from source on Ubuntu 10.10 (Maverick Meerkat)

by gorthx

About a month ago, I rebuilt my laptop with Ubuntu 10.10. This week, while I was waiting around to be selected for jury duty, I decided I should be constructive with my time instead of just getting annoyed with the really loud people sitting next to me. So I slurped up some of that delicious courthouse wireless & downloaded & installed Postgres 9.0.1. (You can get 8.4.5 as a package for Ubuntu, but I like using a more recent version.)

During my install, I remembered I’d had some problems the first time I installed Pg from source on Ubuntu, and had never written about it. I had the same problems this time, but they are all easily solvable by installing some extra packages.

Here’s my configuration command:
./configure
–with-openssl
–with-perl
–with-libxml

When I tried this, I got:
configure: error: readline library not found
…even though I already had readline installed. The solution was to install libreadline6-dev*. The -dev libraries include the header files needed to compile Pg.

For reference (and search engine) purposes, here are the other errors I got:
configure: error: library ‘crypto’ is required for OpenSSL
…fixed by installing libssl-dev.
configure: error: library ‘xml2’ (version >= 2.6.23) is required for XML support
…fixed by installing libxml2-dev.
/usr/bin/ld: cannot find -lperl #got this one during make
…fixed by installing libperl-dev.

‘make clean’, ‘make’, and ‘sudo make install’, and then I continued with the normal installation steps. Ta-da.


*libreadline5-dev may work; I didn’t try that.

eta I’ve since been informed of this repo: https://launchpad.net/~pitti/+archive/postgresql (I’ll continue to install from source, myself, because I like having control over all the little details.)

28 July, 2010

Contributing to the PostgreSQL Documentation

by gorthx

Sign up to be a proofreader:
http://wiki.postgresql.org/wiki/Documentation_Proofreading

Or just submit fixes as you find them.

References for building the docs:
http://www.postgresql.org/docs/current/static/docguide-toolsets.html
http://www.postgresql.org/docs/current/static/docguide-build.html

To build the PostgreSQL docs on Ubuntu, I had to install the following packages* additional to my base install:
– docbook
– docbook-utils (contains the collateindex.pl script)
– jade

Build the html docs from your top-level pg source dir:
./configure [options]
make html

…make is actually gmake on ubuntu.

This puts the html doc files in /path/to/pg_src/doc/src/sgml/html; view them with your favorite browser.

Make corrections on the sgml source files in /path/to/pg_src/doc/src/sgml; `make html` to re-generate the html docs.

I work with a git repo. Here’s how I create a patch:
git format-patch [id of version I want to patch]
The id is usually the version prior to my most recent commit.

*next time:
apt-get build-dep postgresql-doc
should pull down the packages needed to build the docs. Keep in mind this is going to pull the build requirements for the packaged version, which may not be the one you want (e.g., if the build requirements changed between versions; but this is unlikely).

10 November, 2008

Quick Guide: Ubuntu box as syslog server

by gorthx

You need:
root/sudo access to a statically-addressed Ubuntu machine.  (It will need to be on whenever your router is on in order to get anything good out of this.) This is your log host.
Enable access to your Cisco router.

Part 1: Set up your log host.

Step 1: before editing any of the files discussed below, be sure to back them up, e.g.:
cp /etc/syslog.conf /etc/syslog.conf.dontmessthisup

Step 2: edit /etc/syslog.conf to include this:
#router logging
local6.debug                    /var/log/cisco.log

This means “send all messages from facility local6, with a priority of debug or greater, to /var/log/cisco.log”.

(Note that the default facility for Cisco is local7; if you want/need to use the Cisco default, change the above accordingly.)

Step 3: create the log file I specified above:
sudo touch /var/log/cisco.log

read more »

25 August, 2008

hiberfil.sys conflict with partitioning

by gorthx

(Some notes from my initial install of Ubuntu, backdated so they’re in the correct place.)

When attempting to install Ubuntu (Hardy Heron) on my laptop, I couldn’t get past the partitioning step: I’d get “Partman failed with exit code 10” or “Summary failed with exit code 141”. Apparently windows hibernation mode can cause some conflicts with partitioning…ugh. [That windows partition came in handy later though; I’m glad I didn’t delete it.]

To fix:
– in windows, disable hibernation mode to delete hiberfil.sys.
– reboot & make sure it’s gone. ;)
– defrag C:
– run chkdsk on C: (required a reboot; chkdsk ran at reboot)
– run chkdsk on C: a second time (annoying!)
– boot from Ubuntu CD & install.

Voila.

Link to Ubuntu LTT page for this laptop

Tags: ,