Archive for February, 2007
Monday, February 26th, 2007
Adding and Configuring Printers from the Command Line (Shell)
My first attempt at adding and configuring printers from the command line in Linux. Posting script and references here.
#!/bin/bash
########################################################################
#
# Author: Lee Patton, 2007
# This script adds Wright State printers. To get drivers see:
# http://openprinting.org/printer_list.cgi
#
########################################################################
######################################
# Common Printers in Russ
######################################
NAME=”Russ1″
DESC=”Lexmark Full-Duplex B/W”
LOC=”1st Floor RC”
PPD=”Lexmark-Optra_T616-Postscript.ppd”
HOST=”valhalla.cs.wright.edu”
QUE=”russ1″
OPS=”-o Duplex=DuplexNoTumble”
echo Adding Printer: $NAME, $DESC, $LOC
lpadmin -p “$NAME” -v “lpd://$HOST/$QUE” […]
No Comments » - Posted in Linux, Networking, Printing by lee
Friday, February 23rd, 2007
CSS Code for Scrolling Box
For some reason wordpress theme designers like to specify everything in pixels. I imagine it has to do with the fact that most themes have an image as the header, and the designers want everything to be even with the image. Well, for whatever the reason, every theme I’ve tried out does a […]
No Comments » - Posted in WordPress by lee
Friday, February 23rd, 2007
Computer Migration (Ubuntu 6.06 to 6.10)
Personal notes for migrating between computers.
Copy relevant directories
Use tar in order to preserve file permissions
sudo tar -pczvf somedir.tar.gz somedir/
sudo scp -r somedir.tar.gz username@host:/home/username/
sudo tar -pxzvf somedir.tar.gz
Get packages:
Enable all universes/multiverses by editing /etc/apt/sources.list or checking all of the boxes under Settings->Repositories in the package manager. Next, run the update manager, then install the […]
No Comments » - Posted in Subversion, Ubuntu, Firefox, LaTeX by lee
Thursday, February 22nd, 2007
Switching SVN Repository
If a subversion repository is moved from on one location to another, all checked out working copies must be updated to reflect this change. The command for this is
svn switch –relocate http://old-svn-location.org http://new-svn-location.com
See the SVN book for more details.
No Comments » - Posted in Subversion, Linux by lee
Wednesday, February 21st, 2007
Ubuntu 6.10 (Edgy Eft) on a Dell D620 with D/Port Port Replicator and Dell UltraSharp 1707FP Flat Panel
Abstract
In this post I report my experience installing Ubuntu 6.10
(Edgy Eft) on a Dell D620 laptop with a D/Port port replicator
and Dell UltraSharp 1707FP flat panel display. (Full system specs here).
Most things worked right out of the box, including the Intel 3945
[…]
No Comments » - Posted in Ubuntu, Linux by lee
Sunday, February 4th, 2007
IEEE Xplore CrossRef Search Plugin for Firefox Search Bar
I just discovered the CrossRef search option on the IEEE Xplore website. For those not familiar with this project,
A group of leading publishers is participating in a CrossRef Search Pilot. Google has indexed the full text of scholarly documents on the publishers’ websites through a CrossRef gateway. This effort focuses users’ […]
2 Comments » - Posted in Engineering, Firefox, Research by lee
Saturday, February 3rd, 2007
Compiling with LaTeX-Suite for Vim in a Gnome Terminal
When I typed \ll to compile my LaTeX document, I would get a message saying Ran Latex 1 time(s). Press ENTER or type command to continue. However, upon pressing enter, Vim would not redraw the screen. Instead, I would end up with a blank screen. The only way I could get […]
6 Comments » - Posted in Linux, LaTeX by lee
Thursday, February 1st, 2007
Installing personal BibTeX files under Linux
If you have BibTeX *.bib and *.bst files you would like to use in multiple documents, then you can make them available to all of your documents by following these simple steps:
If they doesn’t already exist, create the directories $HOME/texmf/bibtex/{bib,bst}
Place your *.bib files in $HOME/texmf/bibtex/bib/ and your *.bst files in $HOME/texmf/bibtex/bst/
In the directory $HOME/texmf/, type […]


