I have to use the public Windows 2000 computers to use the network, and there is no way that the ARmy is going to let me attach anything else to one of the wires.
No big deal, I thought. I just need to get my own little piece of the world set up.
The computers resist most changes. I may change a setting only to see it disappear when the computer restarts or I log out. That seems reasonable enough for a public computer. However, I read about "Roaming Profiles" for Windows 2000. Just the thing!, I thought. Alas, I have to be the administrator to set it up.
Now I am on to Plan Q. I copied the "Documents and Settings" folder to my USB key, and I will look at it later to see what I can set. If I can run an itty-bitty command file to set the PATH and home directory (apparently that is not HOME), I might be set. Then my programs (just added WinSCP which works, but is a GUI---cannot have it both ways) should save their settings in the right place and then look for them in the right place.
I even got a version of BASH for Windows, but I need to figure out how to set the paths so it looks for a .bash_profile on my USB key.
Sadly, success stories about this sort of thing come from people either using administrator privileges or some $500 program, so I am having very slow progress.
In the meantime, I am using my Pair.com account to update some modules. They seem to have more modules installed than Randal (who installs every module, mostly), but with the crappy IP system they have here, SSH drops the connection after about 5 minutes most of the time. I think it is related to the number of people on the computers somehow. I have to run some commands with nohup and in the background then re-login to see if they worked.
Right now I am doing all of this work to update a problem in HTTP::Cookies::Mozilla. I have to change 1 bit---literally one bit---make a 0 into a 1---because one of the cookies in the test suite have a date in the past, so the test fails. Then, while I was there, I decide if I was going to change 1 bit I might as well change a lot of them, so I updated pod.t and prereq.t to only run if the modules are installed, and I got rid of the File::Find::Rule stuff. I have wanted to do this to all my modules, but just getting this far has taken me a week.
All I want is a computer that lets me get work done. Is that so much to ask?
If you use Windows a bit more you will learn to hate it with every fibre in your being!
Roaming profiles seems such a good idea, we use to have them at work, but IT found that with NT5 (2K) and particularly NT5.1 (XP) were so unreliable that they gave up on the idea, and roaming profiles are gradually being withdrawn.
The lack of a sane file system is also a pain. I understand that since NT5/2K you can mount drives or devices(?) within a unified path structure, but I've never seen an NT admin do this, they seem to prefer a profusion of drive letters. This means that if you use different machines you come un-stuck if you expect your paths to remain constant.
If I were you I'd hack a DOS batch script to start Bash from Cygwin. Once Bash has started it only uses it's own local and mostly sane file system, which shouldn't be dependent on the underlying broken Windows one. With Cygwin you get gcc, Perl and OpenSSH, all nice tools that work almost as if they were on a real computer. Nothing is perfect but if you stay within your Cygwin world on the NT system, things are pretty much okay.
To make Cygwin/Bash work like this, you have to fiddle with some DOS environment variables, and tamper with the PATH if I recall. Then you can run Bash as a login shell off the USB device, and Bash should behave the way you expect. You should also be able to get any SSH keys to behave the way you'd expect if you ssh-add them.
Windows isn't such a bad single user, non-networked GUI. It's just a shame that Microsoft put more emphasis in eye-candy than in making it work in a multi-user and networked environment.
Good luck with your struggles, as I'm forced to use Windows at work, I shall feel your pain every work day....
Re:Learn to hate Windows
brian_d_foy on 2004-01-04T17:21:23
I already do not like Windows. It is the epitome of anti-productivity tools (despite a recent add I saw for Office).
No chance of Cygwin, which I have used elsewhere. I cannot install things, and the distro is bigger than the portable storage space I have.
I really do not need the command line that often. If I could change some settings and run a.ini or .bat or .whatever I would be happy.
Re:dropping connections
brian_d_foy on 2004-01-04T17:31:41
I have lived such the life of privilege up to now that these things are foreign to me.
Still, how often do you get to sit at a computer, a public one no less, with a loaded pistol? I did unholster it and threaten the computer, and everyone laughed. I was really going to put a bullet through the screen though. I mean, I have enough money to replace it, and I have not shot a computer since Camp Camel.Re:dropping connections
drhyde on 2004-01-04T17:59:48
Even though I'm in the Land Of Copious Bandwidth And Sane Client Machines, I still use screen. It means I can leave my IRC client connected all the time and just ssh in to see what rude things people have been saying about me.There are six key-strokes you need at minimum to drive screen. For all of them press C-a, then
... a - type a literal C-a (so that's C-a, a)
c - create a new screen
d - disconnect
n - go to the next screen
p - go to the previous screen
? - help! help! i'm being repressed!
Re:dropping connections
brian_d_foy on 2004-01-04T18:40:23
Hey, thanks for the info. My usual development cycle has been---download, go away, read docs, plan my half hour of time, try something, fail, repeat.
Shortcuts and wisdom cut down on that.:) Re:dropping connections
nicholas on 2004-01-04T21:47:16
I'm too used to using
control A
to mean start of line to cope with screen usurping it, so I make screen usecontrol O
. I also like more scrollback lines than the default, so I tend to invoke screen asscreen -e^Oo -h 5000
I'm not a big
vi
user, so the lack ofcontrol O
doesn't bother me.(Actually, I've got nested screens on different machines, sometimes 3 deep, with
O
,J
and_
as the command keys. I thinK I identifiedcontrol ^
as a viable 4th level screen)
(just added WinSCP which works, but is a GUI---cannot have it both ways)
Does that mean that the PSCP that goes with PuTTY didn't work?
Re:scp
brian_d_foy on 2004-01-07T05:31:51
I haven't had luck with pscp because I don't have a working command line. I can't change directories. I think that is related to Admin privileges or some such. WinSCP is a GUI thing.
Even my Windows friends here think Windows 2000 is stoopid.
I have figured out, however, that my preferences for Mozilla and whatnot do get saved to the logged in users directory, so if I use the same computer again, my changes show up.
I am still struggling to figure out how to set things myself so I can have my home directory on my USB key. The control panels are locked down, and everything I have found on the web assumes that I control the computer. I cannot figure out which settings I need to affect to make things happen.