Sunday, October 10, 2010

Wine


Installation:
system > administration > synaptic package manager
find wine
select wine1.2 and install (it will automatically get the dependencies)

Configuration:
terminal > type 'winecfg'

Application Install:
cd /Downloads
type 'wine <executable>', where <executable> is the name of the program to install

Running Application:
open terminal
type 'wine '

Uninstalling Application:
open terminal
type 'wine uninstaller'

Friday, October 8, 2010

Tweetdeck

Download AIR & TweetDeck - http://bit.ly/getair & http://bit.ly/thedeck
(as of this posting AIR is version 2.0.4 and TweetDeck is version 0.35.2)

Open-up Terminal and type:
cd Downloads/
chmod +x AdobeAIRInstaller.bin
sudo ./AdobeAIRInstaller.bin
enter password
agree to Adobe Air installer setup license agreement

Once Adobe AIR is installed, right click the TweetDeck air file.
Select 'open with other application'
find the Adobe AIR Application Installer from the list
-OR-
choose 'use a custom command', select browse
from the list, choose Adobe AIR Application Installer
on the screen which displays, select Install

for installation preferences, add shortcut to my desktop and start application after installation are checked
for installation location, default value is /opt
agree to TweetDeck license agreement (looks vaguely familiar to the Adobe AIR earlier)
insert password at dialogue prompt
sign into TweetDeck and enjoy!

Wednesday, October 6, 2010

Recover Mozilla Profiles

retain the default profile for firefox (from the installation) and recover the old profiles:
backup the current profile.ini to profile.ini.bak

open terminal
cd .mozilla/firefox/
cp profile.ini profile.ini.bak

copy profiles from /home//.mozilla/firefox to /home//.mozilla/firefox
modify profiles.ini to include old profiles

old profile:
[General]
StartWithLastProfile=1

[Profile0]
Name=default
IsRelative=1
Path=<random>.default
new profile:
[General]
StartWithLastProfile=0

[Profile0]
Name=default
IsRelative=1
Path=<random>.default

[Profile1]
Name=default_old
IsRelative=1
Path=<random>.default
Default=1

[Profile2]
Name=36x
IsRelative=1
Path=<random>.36x
<random>

[Profile3]
Name=_36x
IsRelative=1
Path=<random>._36
start firefox and test

Tuesday, September 21, 2010

PDF and Printing

Install Network Printer:
System > Administration > Printing
Add > Network Printer
select HP Printer on network, choose Forward (to find drivers), change the name and location if desired and apply
select yes to print test page

Install cup-pdf (version 2.5.0-12):
create a 'PDF' folder in the home directory (otherwise this won't work)
type 'mkdir ~/PDF'

method1:
open terminal
type 'sudo aptitude install cups-pdf'

method2:
open synaptic package manager
find cups
select cups-pdf (version 2.5.0.12)

by default on this Lucid install, the permissions for /usr/lib/cups/backend/cups-pdf show:
-rwx------
this translates to owner having read, write and execute permissions (7), group and other have no permissions (both are 0)

i ran this on 9.10 (Karmic) but haven't need it for 10.04 (Lucid):
sudo chmod 700 /usr/lib/cups/backend/cups-pdf

Alternatively to print to PDF:
from the application, select Print
in the print window, choose 'Print to File'
for output format, select 'PDF'
in the name area, give the file a name

other programs like OpenOffice allow an 'Export to PDF' option

to view cups info go to http://localhost:631/

Sunday, September 19, 2010

Sources.list

Ok, time to update the sources.list to get started with packages.
First I'm going to backup the original sources.list file with a copy command.

[code]
sudo cp /etc/apt/sources.list sources.list.original
[/code]

Next I'm going to get my original sources.list from my backup, copy it to the directory and modify it to work with Lucid. Here's my modified sources.list.

[code]
#
# Ubuntu Lucid Lynx 10.04 Repositories, modified by jeremy
# orignially taken for Karmic Koala from the_guv @ http://guvnr.com
#
#

#
# Ubuntu Lucid
#

deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted multiverse universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted multiverse universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted multiverse universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted multiverse universe
deb http://security.ubuntu.com/ubuntu lucid-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu lucid-proposed main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-proposed main restricted universe multiverse

#
# Canonical Commercial
#

deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner
deb http://archive.canonical.com/ubuntu lucid-backports partner
deb-src http://archive.canonical.com/ubuntu lucid-backports partner
deb http://archive.canonical.com/ubuntu lucid-updates partner
deb-src http://archive.canonical.com/ubuntu lucid-updates partner
deb http://archive.canonical.com/ubuntu lucid-security partner
deb-src http://archive.canonical.com/ubuntu lucid-security partner
deb http://archive.canonical.com/ubuntu lucid-proposed partner
deb-src http://archive.canonical.com/ubuntu lucid-proposed partner


#
# System Tools
#

# Ubuntu Tweak
# Must-have Ubuntu configuration tool .. http://ubuntu-tweak.com/about
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 6AF0E1940624A220
deb http://ppa.launchpad.net/tualatrix/ubuntu lucid main
deb-src http://ppa.launchpad.net/tualatrix/ubuntu lucid main

#
# Productivity
#

# Gnome-do
# Mac-like desktop apps dock for improved productivity .. http://do.davebsd.com/
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 28A8205077558DD0
# not found jeremy
# deb http://ppa.launchpad.net/do-core/ppa/ubuntu lucid main

# Gnome-Globalmenu
# OS X-style global menu .. http://code.google.com/p/gnome2-globalmenu/
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 7889D725DA6DEEAA
deb http://ppa.launchpad.net/globalmenu-team/ubuntu lucid main

# Nautilus-dropbox
# File syncing online & across machines, with 2Gb space for free .. http://www.getdropbox.com/
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com FC918B335044912E
deb http://linux.getdropbox.com/ubuntu lucid main

#
# Computer Graphics & Themes
#

# Compiz-Fusion
# Improved usability with jazzed up graphics .. http://www.compiz-fusion.org/
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2ED6BB6042C24D89
deb http://ppa.launchpad.net/compiz/ubuntu lucid main

# Gnome Icon Theme
# Nice desktop graphics .. http://www.gnome-look.org/content/show.php/GNOME-colors?content=82562
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2D79F61BE8D31A30
# not found jeremy
# deb http://ppa.launchpad.net/gnome-colors-packagers/ppa/ubuntu lucid main
# deb-src http://ppa.launchpad.net/gnome-colors-packagers/ppa/ubuntu lucid main

# Project Bisigi Themes
# Strikingly beautiful Gnome themes .. http://www.bisigi-project.org/?lang=en
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 6E871C4A881574DE
deb http://ppa.launchpad.net/bisigi/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/bisigi/ppa/ubuntu lucid main

#
# Web browsers
#

# Chromium Browser
# Open-source Webkit browser, for testing Safari and Chrome .. http://dev.chromium.org/
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 5A9BF3BB4E5E17B5
deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu lucid main

# Epihany
# Another Webkit browser, for testing Safari and Chrome .. http://projects.gnome.org/epiphany/
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2D9A3C5B
deb http://ppa.launchpad.net/webkit-team/epiphany/ubuntu lucid main
deb-src http://ppa.launchpad.net/webkit-team/epiphany/ubuntu lucid main

# Firefox
# Gecko browser
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 632D16BB0C713DA6
# deb http://ppa.launchpad.net/fta/ppa/ubuntu lucid main
# This gets latest beta .. for addon conpatability, add bolean to about:config: extensions.checkCompatibility
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 247510BE
# deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu lucid main
# deb http://dl.google.com/linux/deb/ stable non-free

# Opera
# Presto browser
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F9A2F76A9D1A0061
deb http://deb.opera.com/opera/ stable non-free

#
# Communication
#

# Pidgin
# Multi-client instant messenger .. http://www.pidgin.im/
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 7FB8BEE0A1F196A8
deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu lucid main

#
# Media
#

# Medibuntu
# Multimedia, entertainment and other distractions .. http://www.medibuntu.org/
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2EBC26B60C5A2783
deb http://packages.medibuntu.org/ lucid free non-free
deb-src http://packages.medibuntu.org/ lucid free non-free

# VLC Player
# Media player, well decked with codecs .. http://www.videolan.org/vlc/
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com D739676F7613768D
# not found jeremy
# deb http://ppa.launchpad.net/c-korn/vlc/ubuntu lucid main

#
# Extend with Web Development Packages Tools
#

# Drizzle
# Modular relational db optimised for Cloud and Net apps, a MySQL fork .. https://launchpad.net/drizzle
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4FEC45DD06899068
deb http://ppa.launchpad.net/drizzle-developers/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/drizzle-developers/ppa/ubuntu lucid main

#
# Graphics Tools
#

# Shutter
# Feature-rich screenshot program .. http://shutter-project.org/
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 009ED615
deb http://ppa.launchpad.net/shutter/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/shutter/ppa/ubuntu lucid main

#
# Windows/OS Emulators, Translators, Virtualizers, all that
#

# PlayOnLinux
# Run Windows wares and games .. http://www.playonlinux.com/en
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com FC6D7D9D009ED615
deb http://deb.playonlinux.com/ lucid main

# Setup a Virtual OS with Virtualbox (sure beats a dual-boot!)
# Virtualization software for guest OSes .. http://www.virtualbox.org
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com DCF9F87B6DFBCBAE
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 54422A4B98AB5139
deb http://download.virtualbox.org/virtualbox/debian lucid non-free

# Wine
# Run Windows apps .. http://www.winehq.org/
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 58403026387EE263
# deb http://wine.budgetdedicated.com/apt lucid main

#
# Package Management
#

# Subversion
# Software versioning .. http://subversion.tigris.org/
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 6298AD34413576CB
# not found jeremy
# deb http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu lucid main
# deb-src http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu lucid main

#
# Other Applications
#

# Google
# Picassa, Google Desktop and maybe other stuff .. er, google it!
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com A040830F7FAC5991

# Ubuntuzilla
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com CCC158AFC1289A29
deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main

# Gnome-GlobalMenu
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com
deb http://ppa.launchpad.net/globalmenu-team/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/globalmenu-team/ppa/ubuntu lucid main
# deb http://ppa.launchpad.net/globalmenu-team/ppa/ubuntu jaunty main
# deb-src http://ppa.launchpad.net/globalmenu-team/ppa/ubuntu jaunty main

# Cairo-Dock
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 7F519117BF5E1805D98075E21392A97E41317877
deb http://repository.glx-dock.org/ubuntu lucid cairo-dock

# KeePassX

# TransmissionBT
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 365c5ca1
deb http://ppa.launchpad.net/transmissionbt/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/transmissionbt/ppa/ubuntu lucid main
[/code]

Once that's complete I'll issue an update command and add any missing keys. I've marked those that don't work (with # not found jeremy).

[code]
sudo apt-get update
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com
[/code]

If an error is encountered, it may look like the following:

[code]
Fetched 1,172kB in 4s (249kB/s)
Reading package lists... Done
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://deb.opera.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9A2F76A9D1A0061

W: Failed to fetch http://deb.opera.com/opera/dists/stable/Release

W: Some index files failed to download, they have been ignored, or old ones used instead.
[/code]

To fix, perform the following:

[code]
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F9A2F76A9D1A0061
[/code]

This results, in the following:

[code]
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver keyserver.ubuntu.com F9A2F76A9D1A0061
gpg: requesting key 9D1A0061 from hkp server keyserver.ubuntu.com
gpg: key 9D1A0061: public key "Opera Software Archive Automatic Signing Key 2010 " imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1
[/code]

Now off to install and update packages!

Sunday, September 5, 2010

The Beginning...

This blog is going to server as my Ubuntu Lucid Lynx installation record. I meant to do this after (and during) my Karmic Koala install so I am doing it now. Why now? I made a big mistake before beginning my upgrade process from Karmic to Lucid and want to document the process, the programs and commands I like to use (which I know I will forget later). Makes sense, right?

History:
In preparation of my move to Lucid, I figured it was time to backup my /home directory as 10.04 had been out for a while and now was listed as 10.04.1. I began searching for a tool to help my backup operation. I found a few, one of them being LuckyBackup (http://luckybackup.sourceforge.net/manual.html) which itself uses rsync. I began using the program and it appeared to be working quite well. I was backing up my /home dir and thought I'd go ahead and backup /etc, /usr/local and /var (as recommended by sbackup). In the process I messed up the permissions on those special directories by doing a synchronization back from the external drive (read point 3: http://luckybackup.sourceforge.net/manual.html#OperationType). I should have read the instructions *before* beginning the backup process. LuckyBackup is a great program and it isn't at fault for what happened. It did exactly what I told it to do. If you use it, be sure to read the instructions (note to self: heed own advice). Oh well, this is how I learn!

To make matters worse and because the permissions were changed, I could no longer use sudo to try and fix things. Failed attempts at rebooting and changing a few permissions didn't work. I thought maybe performing the upgrade from Karmic to Lucid could possibly fix the permission issues. It did not. So after a failed upgrade (some parts were upgraded, some weren't), I tried to repair the permission issues further with no luck (by looking at what the permissions *might be* using another machine with Karmic loaded via Virtual Box). Now what?

I talked with Nate (linux user and comrade) and he led me to a couple of resources: http://ubuntuforums.org/showthread.php?t=166626 and http://www.linuxquestions.org/questions/ubuntu-63/can-i-delete-and-reinstall-ubuntu-8-04-and-keep-a-home-partition-697267/. Read up a bit and decided to go for it!

To start, I ended up booting up the Lucid live CD, getting a desktop (which loaded all the internal drives) and backed up my /home dir once more (paranoia) using rsync (rsync -avzhPn --exclude='/*/.gvfs' /home/<userdir> /media/<location>/<dir>) to the external and a new directory. (I now have my /home dir backed up three times.) With that done, I started the clean install process by choosing the Install option from the Live CD.

I setup Karmic originally with three ext4 partitions: root, home and swap . I chose to format / (sda1) which got rid of the old Karmic installation, kept my /home (sda2) partition untouched (no format) and elected to format /swap (sda3). (Choosing to format /swap is irrelevant as it will occur if you don't select the format option!)

The installation proceeded, finished successfully and I was at a new shiny 10.04 login screen. I logged in using my old /home user but found I could not setup any new users. I dropped into terminal, added a new user as admin and was able to login and perform all the sudo duties. This meant there was a problem with my /home dir. Well, let's try again.

I booted up the Lucid Live CD to a desktop, used ctrl-alt-f1 to get into terminal (after loading the internal drives), logged-in (by default using the Live CD, this gives root access), renamed the /home user dir, used ctrl-D to logout, used alt-f7 to get back to the desktop and started the install again. After it completed, I was able to login and everything is working as expected now. Now, on to configuring Lucid so I can do all the things I was doing before when Karmic was rock solid.

Prior to installing:
Backup /home to external (my /home dir is on a separate partition; I want to make sure I don't lose anything before the upgrade - so far so good)
commands: rsync -avzhPn --exclude='/*/.gvfs' /home/<userdir> /media/<location>/<dir>
rename /home/user to /home/user_bak - after install I will use beyond compare to diff the two and bring back any settings (like .mozilla profiles, etc)
commands: mv /home/user /home/user_bak

Installing:
Install Lucid from Live CD
Format sda1 and sda3 (root and swap), leave sda2 (home) untouched

Post install:
install nVidia recommended video driver (as opposed to version 173 listed - both found under system > administration > hardware drivers; which one is better?)
install scooter's beyond compare (for diff functions) - http://www.scootersoftware.com/download.php
install x.flux (for saving the eyes; it works in windows too) - http://www.stereopsis.com/flux/

To Do:
install wifi drivers - need to compare B43 vs. STA
check backup of /etc/ sources list
backup sources.list and then edit (changing Karmic references; reconfigure for Lucid)
make list of useful commands (i.e. lspci, ls, modprobe, ps, adduser, deluser, userdel, useradd and others)
make list of useful keyboard strokes (i.e. ctrl-alt-f1, ctrl-alt-f7, f2 and others)
make list of software to install (compiz, gnomedo, zenmap, ubuntu tweak and others)