Posts in category ubuntu

Upgrade notes Ubuntu 12.04 to 14.04

Just a few things I encountered in my upgrade on my Zotac Zbox going to from Ubuntu Precise (12.04) to Ubuntu Trusty (14.04)

  • Couldn't get it to use an iso as the upgrade material since there's no alternate cd anymore, so did an online upgrade which worked fine.

Fixes:

  • Atheros driver is way better, I went from 1 Mbps to 4 Mbps on Speedtest.net, nothing else changed in my network, the latter speed what I always got from other computers.
  • Streaming video full screen no longer requires gpu acceleration to be disabled.

Bugs (related):

  • nouveau driver hiccups on sound every few seconds when streaming videos
  • Nvidia Ion graphics/sounds always transmits sound on HDMI even if you switch to analog. In my case this provided a weird problem, where I couldn't use analog audio to bypass the previous bug above. See fix below...

Workarounds:

  • Installed the Nvidia drivers, which had major issues in 12.04 (screen blank or not lined up with monitor/tv) - works great now
  • Forgot that Amazon Prime streaming require hal for flash drm get it from this  ppa
  • Chromium and Chrome no longer work with Adobe flash from the repos, you need pepperflash
    sudo apt-get install pepperflashplugin-nonfree
    sudo update-pepperflashplugin-nonfree --install
    
  • If you're using Apache pay attention to the 2.2 to 2.4 upgrade, syntax of allows and conf file names changed and are important.

Scan over wifi from multi-functions in Linux

Ended up needing to configure a few multi-function machines to print and scan via wifi with Linux. Here's the details of what you need to know. Specifically I did a Brother HL-2280DW and an Epson WF-3540 on Ubuntu 12.04

In general set a static IP address, either on the printer or with your home router using DHCP reservations based on MAC address.

Figuring out the device URI was the trickiest part as Ubuntu never seems to guess that quite right. The drivers for printing tend to be found automatically. If that fails both vendors have them available on their website.

Brother

Printing

Add Printer, from network, give it the ip of the machine, then pick the lpd option.

Device URI: lpd://192.168.1.1xx/BINARY_P1

Scanning

Go to the brother  support site and get the following files for installation.

  • Scanner driver
    • brscan4-0.4.2-1.amd64.deb
  • Scanner Setting File
    • brother-udev-rule-type1-1.0.0-1.all.deb

Now also make sure you have sane installed.

Run the following to register your multi-function

brsaneconfig4 -a name=Brother model=HL-2280DW ip=192.168.1.1xx

Should now work with sane based programs.

Epson

Printing

Add Printer, from network, give it the ip of the machine, then pick the lpd option.

Device URI lpd://192.168.1.1xx/printers/epson

Scanning

Search the  epson download site for drivers. I needed:

  • WF-3540 Series Scanner Driver Linux core package&data package
    • iscan-data_1.28.0-2_all.deb
    • iscan_2.29.3-1~usb0.1.ltdl7_amd64.deb
  • WF-3540 Series Scanner Driver Linux network plugin package
    • iscan-network-nt_1.1.1-1_amd64.deb

Install them in that order. Now also make sure you have sane installed. Then edit /etc/sane.d/epkowa.conf (This is the part no one on web seems to describe.) Can't find the file you might needs to install libsane-extras

In the net section add a line with your multi-function ip address.

net 192.168.1.1xx

Save that and now when you open iscan or sane it should find your scanner.

GPT Booting with Ubuntu

So if you buy a 3 TB drive (or anything bigger than 2TB) and want to use it as the primary drive for your machine you will need to use a GPT paritioning system instead of the classic MBR.

Here's a couple of tricks/tips which should help:

  • You need to be using an OS that has GRUB2
  • When partitioning, the 1st partition should be a 1 MB section with the bios_grub flag (recent versions of the Ubuntu installer, at least 11.04 has this option, 10.04 I had to set if with a Live disc and parted)
  • When you get to the install GRUB question, if you happen to be installing to something other than /dev/sda say no, and then it will ask you which drive or partition to install to.

Un-doing the partition mess from a dual boot

More and more, when I make a dual boot system it turns out that 6 months to a year down the line the windows partition just isn't needed anymore. But now you've got 10GB+ of disk just sitting out at the front of the drive.

Over the holiday I tackled a shuffling of partitions and here's the important tips I picked up.

  1. Copy your important data to another drive (an external usb is great)
  2. Using the Ubuntu disk tools like gparted blank the space where you want to move stuff to.
  3. Using the  Clonezilla live disc (and either partimage or  partclone [the new variant that handles ext4]) clone your / partition over to the new space.
  4. Relabel the UUID of this new partition, otherwise it will be identical to the UUID of the original and the bootloader will quasi load both
      uuidgen
      tune2fs /dev/hdaX -U numbergeneratedbyuuidgen
    

5.Edit your grub config to boot the new drive. If you reboot into Ubuntu running the update-grub will find it.

  1. Once you're sure you can boot the relocated / you can add the empty space onto your /home (I always recommend separate / and /home partitions)

Things I also recommend:

  1. Converting ext3 to ext4
  2. Creating a Private directory for storing encrypted stuff.

Installing Sqlite 3.6.x on Ubuntu Intrepid

I needed sqlite 3.6 or newer for an application I'm working on but Ubuntu Intrepid has 3.5.9, specifically for Rtree spatial indexes. (In order to build and use  Spatialite.

After weighing my options and doing a little research I noticed that the Jaunty packages barely have any dependencies and they are already met by Intrepid.

So I downloaded:

Steps to follow:

  1. Uninstall libsqlite3-dev 3.5.9
  2. Install libsqlite3 3.6.10
  3. Install libsqlite3-dev 3.6.10
  4. Install sqlite3 3.6.10

To test with python(happens to be what I'm developing with)

from pysqlite2 import dpapi2 as sqlite3
print sqlite3.sqlite_version