http://www.stat.ufl.edu http://www.stat.ufl.edu

How to finish setting up Ubuntu 7.10

Dual booting to preserve existing Windows

If you want to dual boot a laptop between Ubuntu and Windows, there is video documentation if you google 'youtube dual boot ubuntu'. I have seen Ubuntu 7.04 successfully shrink the partitions and create boot menu entries for both Windows XP and Vista. I expect this still works with 7.10. During the first boot of XP or Vista after shrinking the partition, it does a filesystem consistency check, then reboots and it's fine.

Run the disk defragmenter before shrinking the XP or Vista partition. This may take most of an hour to run. Menu paths to defragmenters are: XP: [path goes here] Vista: [path goes here]. The first boot of Windows after Ubuntu resizes it, checkdisk runs, but doesn't report any errors. Don't hit any key, and let it run.

A Vista machine only a month old was using 15 Gig of disk. Here's how to shrink overly enthusiastic use of disk space for system restore points:

  1. Click the start menu
  2. Click on All Programs, and then Accessories
  3. From the accessories menu, right click on Command Prompt and select "run as administrator"
  4. Type "vssadmin list shadowstorage" into the command prompt
  5. The results should tell you the amount of storage used and the maximum amount allotted
If you're not happy with those numbers, here's how to resize them. Keep in mind, you will lose some older system restore points when you do this.
  1. Repeat steps 1-3 to get bring up the Command Prompt
  2. Type "vssadmin Resize ShadowStorage /For=[your hard disk]: /On=[your hard disk]: /MaxSize=[how much space you want to allocate]"
  3. For example: "vssadmin Resize ShadowStorage /For=C: /On=C: /MaxSize=2GB"
  4. You should get a message saying Successfully resized the shadow copy storage association, and you should have more free space on your hard drive.
Then I ran the defragmenter. After that Vista was consuming a more reasonable Gig or two, and I proceeded with an Ubuntu dual boot install in a stock fashion.

Ubuntu 7.10

This document assumes you have just installed Ubuntu 7.10 (Gutsy Gibbon) from the cd, and then are dismayed to find that emacs, tex, R, etc. are missing. This describes how to add the missing packages.
log in to the user account you created during the install
You can set up wireless networking from the top-bar menu System -> Administration -> Network -> Wireless connection. After you enable the wireless interface in Ubuntu, start a Firefox browser and log in with your Gatorlink to enable the wireless connection.
sudo -i		# give your personal login password
Now add updates made since the cd. Download this script, make it executable with "chmod +x ubuntu-cd-updates-gutsy.sh", and run it in the Terminal window you did sudo in with "./ubuntu-cd-updates-gutsy.sh". If you have flaky wireless access at home that interrupts this script in the middle, it is safe to rerun this script, which will pick up where it left off.

ubuntu-cd-updates-gutsy.sh

There may be a popup asking for a reboot, or the menu bar in the upper-right may show a blue circle formed by two arrow heads. If so, do the reboot with:

Top menu bar: System -> Quit -> Restart
If you rebooted:
log in to the user account you created during the install
sudo -i		# give your personal login password
Now add applications most everyone will want:

ubuntu-statuser-packages-gutsy.sh

Populate /usr/local/share/texmf with letterhead.

Environment variables that you want to be set under the window system,
so that programs started from the window manager menus get them,
should be set with "export TEXMF=blah" in ~/.profile.  This works even
if you use tcsh.  Use LC_COLLATE=POSIX to switch back to the old sort
order of capital letters first.
Some R packages may be installed as "apt-get install r-cran-PACKAGE_NAME", but not enough of them are available. Instead, install R packages using the native R install feature:

ubuntu-r-packages-gutsy.sh

Here are some more packages which appeal to me:

ubuntu-additional-packages-gutsy.sh

Also adjust:

focus follows mouse in System -> Preferences -> Windows
Subpixel smoothing (LCDs) in System -> Preferences -> Appearance -> Fonts
Your choice in System -> Preferences -> Appearance -> Visual Effects
left windows key for raiselower in System -> Preferences -> Keyboard Shortcuts
gconftool-2 --set /desktop/gnome/interface/gtk_key_theme Emacs --type string
gconftool-2 --set /apps/metacity/general/focus_mode mouse  --type string
gconftool-2 --set /apps/metacity/general/num_workspaces 4 --type int
firefox about:config middlemouse.contentLoadURL set true
add local printer System -> Administration -> Printing, set as default per user
thunderbird config for eelpout, see http://www.stat.ufl.edu/system/imap.bb.shtml
The new system administrator of a personally maintained system should skim through this document for everything that seems relevant: http://ubuntuguide.org

Ubuntu questions may be asked of more experienced users on this forum: http://www.ubuntuforums.org

To add other software, start the gui package manager and add other things that seem attractive. Note: Synaptic locks the package system, and you can't use apt-get when Synaptic is running, even if you haven't asked for any operations to be performed.

Top menu bar: System-> Administration -> Synaptic Package Manager

	upper right panel gives list of packages,
		check square on left side of line, do 'mark for installation'
		do Apply from top menu bar
Here are additional packages and integration for Stat-managed machines. For a personally-managed machine you probably don't want any of this:
ubuntu-stat-managed-packages-gutsy.sh
Also adjust:
passwd root
collect or reload /etc/ssh/*key*

/etc/{passwd,shadow,group}

/etc/auto.{data,home,master,misc}
rm -r /home/ubntinst		# from console login, ctrl-alt-f1
mkdir /data
/etc/init.d/autofs reload

/etc/gdm/gdm.conf-custom	# versions for lab or faculty
/etc/nmh/mts.conf
/etc/ntp.conf			# if desktop on campus
/etc/pam.d/gdm
/etc/security/group.conf
/root/.bashrc
/usr/local/bin
/usr/local/depot
/usr/local/depot/shellrc-1.0
/usr/local/share/texmf
/usr/share/emacs/site-lisp/default.el

true > /etc/aliases
newaliases
emacs /etc/postfix/main.cf
append_dot_mydomain = yes
mydomain = stat.ufl.edu
myorigin = $mydomain
comment mydestination
comment mynetworks
postfix reload

/depot	# except for hostgen-2.0

hard code IP settings instead of dhcp System -> Administration -> Networking
nfs server turned off in System -> Administration -> Services

update-rc.d -f mysql remove
update-rc.d -f mysql-ndb remove
update-rc.d -f mysql-ndb-mgm remove
update-rc.d mysql stop 21 0 1 2 3 4 5 6 S .
update-rc.d mysql-ndb stop 21 0 1 2 3 4 5 6 S .
update-rc.d mysql-ndb-mgm stop 21 0 1 2 3 4 5 6 S .

/etc/X11/xorg.conf	# collect
/etc/fstab		# collect
/boot/grub/menu.lst	# collect

# Adobe Flash installer bug workaround
apt-get -y remove flashplugin-nonfree
apt-get -y install flashplugin-nonfree
sed -e 's/821cc72359a937caef85bb4cc74ef5cd/93b7c48eaa492237b807a3ae1de65cf9/g' -e 's/echo "be5a2f9032f8fc8bccbbf5d96c5028f9/#echo "be5a2f9032f8fc8bccbbf5d96c5028f9/g' -e 's/echo "a81fd3b03b8c6d6e5a14298110718d3f/#echo "a81fd3b03b8c6d6e5a14298110718d3f/g' -e 's/|| fp_exit_with_error "plugin changed, not trusted"/#|| fp_exit_with_error "plugin changed, not trusted"/g' < /var/lib/dpkg/info/flashplugin-nonfree.postinst > /tmp/postinst
cat /tmp/postinst > /var/lib/dpkg/info/flashplugin-nonfree.postinst
dpkg-reconfigure flashplugin-nonfree	# yes and defaults to all

tsm client on servers
Notes on mysql initial setup:
ubuntu-mysql-gutsy.shtml


(C) University of Florida, Gainesville, FL 32611; (352) 392-1941.
This page was last updated Tue Sep 25 00:55:54 EDT 2012
http://www.ufl.edu