Re: [vox-tech] Tunneling vnc over ssh

2006-12-08 Thread Alex Mandel

Henry House wrote:

I normally do this to connect to my VNC session from a remote host with
tunneling through ssh:

ssh wotan.hajhouse.org cat .vnc/passwd > .vnc/passwd
ssh -CNf wotan.hajhouse.org -L 5902:wotan.hajhouse.org:5902
xtightvncviewer :2 -passwd .vnc/passwd \
   -encodings 'copyrect tight hextile zlib corre rre raw'

Surely there must be a more automatic way to set up the ssh tunnel and
authenticate to the VNC server. I have looked at gnome-rdp and KDE's
remote-desktop client, but neither has apparently any concept of vnc
tunneled over ssh. In xtightvncviewer there is an option -via that
appears to do what I want (setting up an ssh tunnel automatically), but
my best effort at using it, 


sudo xtightvncviewer wotan.hajhouse.org:2 -via \
[EMAIL PROTECTED] -passwd .vnc/passwd

did not work (the process hung, no vnc window appeared). The sudo in
the above was necessary to allow xtightvncviewer to bind to a
privileged port, the need for which I fail to grasp.

Has anybody used xtightvncviewer this way sucessfully?




Sounds like you should just write a script on your local machine to do 
these in order.


Typically I have port forward preconfigured by hostname in my .ssh file.
so I can just type:
ssh work
and it's asks me for my password and forwards 5900 to 5900 locally.
Example from http://linuxgazette.net/115/chirico.html:
## Linux Laptop .ssh/config ##
Host work
HostName 66.35.250.203
User sporkey
LocalForward 2 192.168.0.66:80
LocalForward 22000 192.168.0.66:22
LocalForward 22139 192.168.0.8:139
LocalForward 22110 192.168.0.5:110
(Your case) LocalForward 5902 5902
This solves the how to automate ssh.

As for the vncviewer, I have an icon setup on my toolbar that I click 
and it has all the parameters in it.(you could do this with a short 
script too)

just make a file(executable) and put
>xtightvncviewer :2 -passwd .vnc/passwd \
>-encodings 'copyrect tight hextile zlib corre rre raw'

I'm not familiar with the password stuff you're doing but to be honest 
my vncserver isn't running by default. I actually turn it on once I'm in 
via ssh and then connect to the vnc.

Call it a little extra paranoia.

Alex




___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] failing hard drive...

2006-12-08 Thread Ted Deppner
On Fri, Dec 08, 2006 at 11:52:19AM -0800, Jonathan Stickel wrote:
> before; I guess I have been lucky.  The hard drive is a 160 GB Maxtor 
> ATA drive purchased and installed in a custom built desktop pc a few 
> years ago (2003?).

Maxtors typicailly have a 3 or 5 year warrantee... this might be worth
looking into.  Maxtor will also cross ship, giving you 30 days to move
your data onto the replacement before you send the failed disk back.

> So I must have bad sectors somewhere in the physical region of the first 
> partition.  Will this problem get worse and propagate to my other 

Yes, typically it'll only get worse.  Soft sectors will continue to worsen
until they're a hard failure.

> partitions?  I see several non-free programs on the web that advertise 
> recovery of bad sectors.  Does anyone know about these?  I'm not about 

I'd guess these are editting the bad sectors map, but that's something you
only really ever want to do on a new hard drive, or if your bad sectors
map got lost (yes, I had this happen once).  If the map is lost,
essentially you "gain" sectors in the wrong places, and the hd becomes
totally unusuable because there's extra blocks.  I doubt you've any
problem with the map.

> to drop $50 for software that /might/ fix my drive when I can go buy a 
> replacement drive for $50.  So my last question(s):  any recommendations 
> for a replacement drive?  Are Maxtor drives considered "low end"?  I'm 
> stuck with PATA since my motherboard does not have SATA.  I bought it 
> just before that technology became standard.

I like Seagate, Western Digitial, IBM drives, and Maxtor, roughly in that
order.

-- 
Ted Deppner
http://www.deppner.us/
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] failing hard drive...

2006-12-08 Thread Alex Mandel

Henry House wrote:

På 2006-12-08, skrev Rod Roark:

On Friday 08 December 2006 11:52, Jonathan Stickel wrote:
...
So I must have bad sectors somewhere in the physical region of the first 
partition.  Will this problem get worse and propagate to my other 
partitions?

Um, yeah.  Back up anything you care about *immediately* and get a
replacement drive ASAP.

Most currently manufactured drives are quite good.  I've had good luck
reliability-wise with Seagate.


Jonathan: if it were my drive, I would not trust it to store anything
important ever again. As for new drives, I have experienced hardware
failures with every brand I've tried, with the exception of expensive
SCSI drives.  Assuming that you want to stick with ATA hardware, I've
heard from Ryan Castelluci that Seagates drives are the best bet for
reliability.


I agree(Seagate) from experience and the fact that they have 5 year 
warranties instead of the standard 3.


Once you get backed up, for kicks run some things like testdisk in linux 
to probe around your old drive. I'm sure there are some other sector 
testing utilities, just to give an idea about how bad the drive is.


Alex
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


[vox-tech] Tunneling vnc over ssh

2006-12-08 Thread Henry House
I normally do this to connect to my VNC session from a remote host with
tunneling through ssh:

ssh wotan.hajhouse.org cat .vnc/passwd > .vnc/passwd
ssh -CNf wotan.hajhouse.org -L 5902:wotan.hajhouse.org:5902
xtightvncviewer :2 -passwd .vnc/passwd \
   -encodings 'copyrect tight hextile zlib corre rre raw'

Surely there must be a more automatic way to set up the ssh tunnel and
authenticate to the VNC server. I have looked at gnome-rdp and KDE's
remote-desktop client, but neither has apparently any concept of vnc
tunneled over ssh. In xtightvncviewer there is an option -via that
appears to do what I want (setting up an ssh tunnel automatically), but
my best effort at using it, 

sudo xtightvncviewer wotan.hajhouse.org:2 -via \
[EMAIL PROTECTED] -passwd .vnc/passwd

did not work (the process hung, no vnc window appeared). The sudo in
the above was necessary to allow xtightvncviewer to bind to a
privileged port, the need for which I fail to grasp.

Has anybody used xtightvncviewer this way sucessfully?

-- 
Henry House
+1 530 753 3361 ext. 13
Please don't send me HTML mail! My mail system frequently rejects it.
The unintelligible text that may follow is a digital signature.
See  to find out how to use it.
My OpenPGP key: .



signature.asc
Description: Digital signature
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] failing hard drive...

2006-12-08 Thread Henry House
På 2006-12-08, skrev Rod Roark:
> On Friday 08 December 2006 11:52, Jonathan Stickel wrote:
> ...
> > So I must have bad sectors somewhere in the physical region of the first 
> > partition.  Will this problem get worse and propagate to my other 
> > partitions?
> 
> Um, yeah.  Back up anything you care about *immediately* and get a
> replacement drive ASAP.
> 
> Most currently manufactured drives are quite good.  I've had good luck
> reliability-wise with Seagate.

Jonathan: if it were my drive, I would not trust it to store anything
important ever again. As for new drives, I have experienced hardware
failures with every brand I've tried, with the exception of expensive
SCSI drives.  Assuming that you want to stick with ATA hardware, I've
heard from Ryan Castelluci that Seagates drives are the best bet for
reliability.

-- 
Henry House
+1 530 753 3361 ext. 13
Please don't send me HTML mail! My mail system frequently rejects it.
The unintelligible text that may follow is a digital signature.
See  to find out how to use it.
My OpenPGP key: .



signature.asc
Description: Digital signature
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] failing hard drive...

2006-12-08 Thread Rod Roark
On Friday 08 December 2006 11:52, Jonathan Stickel wrote:
...
> So I must have bad sectors somewhere in the physical region of the first 
> partition.  Will this problem get worse and propagate to my other 
> partitions?

Um, yeah.  Back up anything you care about *immediately* and get a
replacement drive ASAP.

Most currently manufactured drives are quite good.  I've had good luck
reliability-wise with Seagate.

Rod
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


[vox-tech] failing hard drive...

2006-12-08 Thread Jonathan Stickel
It looks like I have a failing hard drive.  I've never experienced this 
before; I guess I have been lucky.  The hard drive is a 160 GB Maxtor 
ATA drive purchased and installed in a custom built desktop pc a few 
years ago (2003?).


The first partition is NTFS with winXP installed.  I have several more 
partitions for Linux and data (reiserfs and FAT32).  Only the NTFS 
partition is experiencing problems at the moment.  Windows no longer 
boots.  Using the repair console of the windows installation disk, a 
chkdsk /r reports "unrecoverable errors".  Not trusting windows tools, I 
ran Maxtor's PowerMax self-booting utility.  An advanced scan reports 
"device is failing" with not much more information.  File system checks 
of all the other partitions report no errors.


So I must have bad sectors somewhere in the physical region of the first 
partition.  Will this problem get worse and propagate to my other 
partitions?  I see several non-free programs on the web that advertise 
recovery of bad sectors.  Does anyone know about these?  I'm not about 
to drop $50 for software that /might/ fix my drive when I can go buy a 
replacement drive for $50.  So my last question(s):  any recommendations 
for a replacement drive?  Are Maxtor drives considered "low end"?  I'm 
stuck with PATA since my motherboard does not have SATA.  I bought it 
just before that technology became standard.


Thanks,
Jonathan
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] LATEX, ucthesis.cls and changes in font size

2006-12-08 Thread Boris Jeremic

Hello All,

Take a look at this set of styles (ucthesis.cls...) that all of my students 
used:

http://sokocalo.engr.ucdavis.edu/~jeremic/LearnLaTeX/Thesis/

(thanks to Henry for fixing my httpd.conf so that my web site now works after 
upgrade...)


The most important thing is that thesis and dissertations produced using these 
styles are in accord what UCD grad school expect in terms of formating (Ms. 
Evelyn Dennis never complained about the format...).


Boris






Dylan Beaudette wrote:

On Friday 08 December 2006 10:47, Shwaine wrote:


On Thu, 7 Dec 2006, Dylan Beaudette wrote:


Thanks Pete!

I will look into this immediately!

Also, as a more general question: would you or any others recommend
using the slightly dated ucthesis.cls ? Or would the book class, with
some tweaking be better?

Any ideas?

Cheers,

Dylan


Dylan, I will mail you privately the ucdthesis tarball that I used for
my PhD thesis that was submitted in June. It's one of those "holy"
artifacts handed down from one Computer Science major to another, but I
suppose we can go outside the department for this once, heh. It was
updated by a former roommate of mine and several others to be
consistent with UC Davis requirements. I added one more update to
properly do the UMI abstract in the "abstract" environment.
Additionally, the inline abstract needs to be moved inside of the
frontmatter environment according to my coordinator, so I updated the
sample document to reflect that. I did not change the font size of my
verbatim environments, so I can't tell you if that will work or not.

And Pete, they do still check the margins with rulers, along with
making sure the paper had the appropriate watermark and that all the
pages were numbered appropriately. As if my filing wasn't hectic and
stressful enough, I had to sit there for 10 minutes while she checked
all the minutia. At least I walked out with the little pieces of paper,
although I'm still waiting for the actual diploma to be mailed to me.

Melissa Danforth





Melissa,

Wow! This is will be a great time save for both me and my wife (writing MS 
thesis at the same time). In addition this fills a nice gap in my latex 
installs -- texlive at work (debian unstable) has a newer ucthesis.cls than 
my texlive install at home (mac os ) -- causing strange errors.


I will double check with the authorities and post back of this document class 
is ok as far as my dept. is concerned- it should be...


just for the record, I unarchived what you sent, adjusted my thesis, and it 
compiles cleanly into a shiny PDF -- thanks!


Cheers,

dylan


___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] dhcp vs static hosts file

2006-12-08 Thread Henry House
På 2006-12-07, skrev David Rosenstrauch:
[...]
> Turn off DHCP serving on the router.  Then pick one of your linux boxes 
> to be your new DHCP plus DNS server for the LAN.  Then install and 
> configure dnsmasq (http://thekelleys.org.uk/dnsmasq/doc.html) on that 
> box, and it will solve your problem.  Dnsmasq is a perfect little util 
> for exactly this situation: a small DHCP server which has a built-in DNS 
> server - unlike most small LAN routers, as you've seen.
> 
> I've been using dnsmasq for a few years now, and it works like a charm. 
>  It took a little bit of trial and error at first to configure it 
> right, but after that it was "set it and forget it".  If you have any 
> probs. configuring it (or want to see a copy of my config), email me 
> back on or off-list.

I concurr with the recommendation to use dnsmasq. I did not find it
particularly difficult to configure. (I'm using it for DNS only, with
dhcpd version 3 running separately for address assignment.) A feature of
dnsmasq worth noting is that it can set MX records for all hosts, which
makes mail routing within your private network work easily.

-- 
Henry House
+1 530 753 3361 ext. 13
Please don't send me HTML mail! My mail system frequently rejects it.
The unintelligible text that may follow is a digital signature.
See  to find out how to use it.
My OpenPGP key: .



signature.asc
Description: Digital signature
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] LATEX, ucthesis.cls and changes in font size

2006-12-08 Thread Dylan Beaudette
On Friday 08 December 2006 10:47, Shwaine wrote:
> On Thu, 7 Dec 2006, Dylan Beaudette wrote:
> > Thanks Pete!
> >
> > I will look into this immediately!
> >
> > Also, as a more general question: would you or any others recommend
> > using the slightly dated ucthesis.cls ? Or would the book class, with
> > some tweaking be better?
> >
> > Any ideas?
> >
> > Cheers,
> >
> > Dylan
>
> Dylan, I will mail you privately the ucdthesis tarball that I used for
> my PhD thesis that was submitted in June. It's one of those "holy"
> artifacts handed down from one Computer Science major to another, but I
> suppose we can go outside the department for this once, heh. It was
> updated by a former roommate of mine and several others to be
> consistent with UC Davis requirements. I added one more update to
> properly do the UMI abstract in the "abstract" environment.
> Additionally, the inline abstract needs to be moved inside of the
> frontmatter environment according to my coordinator, so I updated the
> sample document to reflect that. I did not change the font size of my
> verbatim environments, so I can't tell you if that will work or not.
>
> And Pete, they do still check the margins with rulers, along with
> making sure the paper had the appropriate watermark and that all the
> pages were numbered appropriately. As if my filing wasn't hectic and
> stressful enough, I had to sit there for 10 minutes while she checked
> all the minutia. At least I walked out with the little pieces of paper,
> although I'm still waiting for the actual diploma to be mailed to me.
>
> Melissa Danforth
>
>

Melissa,

Wow! This is will be a great time save for both me and my wife (writing MS 
thesis at the same time). In addition this fills a nice gap in my latex 
installs -- texlive at work (debian unstable) has a newer ucthesis.cls than 
my texlive install at home (mac os ) -- causing strange errors.

I will double check with the authorities and post back of this document class 
is ok as far as my dept. is concerned- it should be...

just for the record, I unarchived what you sent, adjusted my thesis, and it 
compiles cleanly into a shiny PDF -- thanks!

Cheers,

dylan

-- 
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] Slow pdf printing

2006-12-08 Thread Henry House
På 2006-12-07, skrev Alex Mandel:
[...]
> Well, neither. I have foomatic installed and I assume that the Ubuntu 
> GUI takes advantage of this as its an "official" component. 

I believe that actually foomatic is only used if you install the printer
queue via foomatic (either using foomatic-configure on the CLI or
foomatic-gui).

> The driver is actually from brother, its the OS 9 ppd file. When I got
> the printer 2 years ago this was the only driver.  It turns out I had
> some sort of ghostscript pre-filter set and removing this seems to
> help and I remember at some point I tweaked with the spooling between
> straight to printer or pre on the computer, but I don't see this in
> the GUI and I must have done it via CLI can anyone remind me what I
> might have done to check and adjust these settings. Likely a cupsys
> command?

Probably lpadmin is what you are looking for. You can also edit
/etc/cups/printers.conf by hand if you are careful.

On a side note, I am not impressed with the robustness of Cups. I'm
strongly considering going back to lprng one of these days, because Cups
frequently loses print jobs and mysteriously fails to honor my chosen
duplex settings with one printer; setting up a customized input filter
is also a pain while it is fairly straightforward in in lprng once you
grok the format of /etc/printcap.

-- 
Henry House
+1 530 753 3361 ext. 13
Please don't send me HTML mail! My mail system frequently rejects it.
The unintelligible text that may follow is a digital signature.
See  to find out how to use it.
My OpenPGP key: .



signature.asc
Description: Digital signature
___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] LATEX, ucthesis.cls and changes in font size

2006-12-08 Thread Shwaine
On Thu, 7 Dec 2006, Dylan Beaudette wrote:
> Thanks Pete!
>
> I will look into this immediately!
>
> Also, as a more general question: would you or any others recommend
> using the slightly dated ucthesis.cls ? Or would the book class, with
> some tweaking be better?
>
> Any ideas?
>
> Cheers,
>
> Dylan

Dylan, I will mail you privately the ucdthesis tarball that I used for
my PhD thesis that was submitted in June. It's one of those "holy"
artifacts handed down from one Computer Science major to another, but I
suppose we can go outside the department for this once, heh. It was
updated by a former roommate of mine and several others to be
consistent with UC Davis requirements. I added one more update to
properly do the UMI abstract in the "abstract" environment.
Additionally, the inline abstract needs to be moved inside of the
frontmatter environment according to my coordinator, so I updated the
sample document to reflect that. I did not change the font size of my
verbatim environments, so I can't tell you if that will work or not. 

And Pete, they do still check the margins with rulers, along with
making sure the paper had the appropriate watermark and that all the
pages were numbered appropriately. As if my filing wasn't hectic and
stressful enough, I had to sit there for 10 minutes while she checked
all the minutia. At least I walked out with the little pieces of paper,
although I'm still waiting for the actual diploma to be mailed to me.

Melissa Danforth


___
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech