Re: permissions and fstab
Carel Fellinger wrote: > Or look through /etc/passwd. > >$ grep carel /etc/passwd >carel:x:1001:1001:Carel Fellinger,,,:/home/carel:/bin/bash Or for variety (and a saving of milliseconds) do it this way: $ getent passwd jbr jbr:x:1013:1013:Justin B Rye,,,:/home/jbr:/bin/bash I love these obscure utilities - that one comes with libc6. -- Justin B Rye - writing from but not for Datacash Ltd
Re: visudo not vi?
Aaron Lehmann wrote: > Using a non-vi-compatable editor on boot disks is a hanging offense > that debian will pay for once sysadmins try to install Debian but > realize they have better things to do than learn a whimpy editor. It > would be excusable if it was emacs-compatable, but it's not. e3 > supports vi, emacs, wordstar, AND pico bindings. It just depends > whether you type vi, emacs, or pico to start it. > > Personally I would perfer ed to nano, since it is traditional and more > people know how to use it. The great Vi/Emacs Wars are irrelevant to this issue: the people encountering ae for the first time aren't looking for a crash course in your favourite coding utility, they need an instantly usable text editor, and one that's perfectly accessible to newbies who have never seen anything better than Wordpad. Nano-tiny scores highly on this count, since it is a functional bonsai-scale editor any fool can pick up on their first encounter - no "learning" is necessary (or worthwhile, unless they're going to be keeping it as the only editor on the system). But ae will do. Just about. -- Justin B Rye - writing (in jed) from but not for Datacash Ltd
Re: Email client and conversion from Netscape Mail on win32
Mike Fedyk wrote: [...] > I'm going to keep my search to a text based email client, because I > don't like to have to use vnc to view my email from home... Mutt is > great in an Xterm, and picture viewing is good too. I wonder if mutt > can use links or netscape for html viewing... Anyone know? It's > probably in the config file, or some symlinked "html-viewer" in a bin > dir... Looked in /etc/alternatives, but no browser or www grep > results... I missed this first time round - the answer I use (on a solidly potato system) is urlview (from the package of the same name) to launch a browser out of mutt - there's even a control-b macro ready and waiting for it. Then the browser I have urlview configured to use is w3m, which may be a humble non-graphical browser, but it can in turn be configured to hand URLs over to other browsers - the three I have it use are =netscape, 2=mozilla, and 3="xterm -e w3m &". -- Justin B Rye - writing from but not for Datacash Ltd
Re: event viewer application
>Wesley Jay Deypalan wrote: >> im just new to linux, i would like to if debian linux has a program similar >> to windows nt event viewer. i have seen that program in corel linux but i >> heard corel linux is mostly for desktop only, we would like it to be server. >> your help is greatly appreciated. ktb wrote: > I've never seen "event viewer" but did a quick look on the web and it > looks like a logging tool. If that is the case, yes debian has syslog. > sysklogd is the actual daemon that runs. Type "man sysklogd" into > your favorite search engine and you should come up with enough info to > give you a basic idea. If I were you I would install debian > without any graphical interface and start playing with it, until you > become familiar enough to administer it. To cover a few basics, the logfiles mostly live in /var/log, and are "rotated" into gzipped archives on (usually) a daily basis, with a week's worth around at any point. When something goes wrong, the debugging process almost always starts with "ls -lrt /var/log/" and "tail -f /var/log/log" (you can read them without being root if you're in the "adm" group). I don't know of any good GUI logfile-readers, but anyway I wouldn't swap one for what I have got - the package "logcheck", which monitors the logs for anomalies and mails me regular "edited highlights". -- Justin B Rye - writing from but not for Datacash Ltd
Re: adding user to dip group doesn't work
Sean 'Shaleh' Perry wrote: > When you add a user to a group, they must log off of the system completely and > log back in before the changes take affect. You just need a fresh login - a new xterm won't do it, but su-ing to yourself will. > Run 'groups' as the user to ensure > they are actually in the right groups. Or "id"; and there's "members" (in its own package) to tell you who's in a given group. -- Justin B Rye - writing from but not for Datacash Ltd
Re: Newbie upgrading question
Harrie ter Rele wrote: > I'm working on a debian 2.0.38 system. You mean the kernel is Linux 2.0.38; the Debian GNU/Linux "distribution" has its own version numbering, which is independent of the kernel version (though the numbers happen to be similar). With a kernel that old I'd guess it's Debian 2.0, known as "slink"; the current version is 2.2(r2), known as "potato". You can check by looking in /etc/debian_version. > Now i have to upgrade samba (to 2.0.7). > I need to upgrade some other product(s) also. Well, I don't know your circumstances but I'd recommend upgrading to 2.2(r2) - which includes Samba 2.0.7. And as a separate step, switching to a more recent kernel. > Can i upgrade from libc5 to libc6 without many problems using dpkg or do > i have to do this another way (how ?) You'd cause yourself some problems going from slink to potato using just dpkg - do you know about dselect? -- Justin B Rye - writing from but not for Datacash Ltd
Re: crontab ?
Timo wrote: > Yes, you are rigth, it´s not good reason to use that file. (but test) > And (crontab -e) uses vi editor. > > crontab -l looks: > > # DO NOT EDIT THIS FILE - edit the master and reinstall. > # (Eth0Dwn installed on Mon Jan 29 17:07:59 2001) > # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp > $) > 00 21 * * * /sbin/ifdown eth0 That's odd, actually - I'd expect to see that from "sudo cat /var/spool/cron/crontabs/username" but "crontab -l" normally filters all that header material. Is it possible you've ended up with duplicate headers? Compare the DEBIAN SPECIFIC section in "man crontab". -- Justin B Rye - writing from but not for Datacash Ltd
Re: crontab ?
> On Mon, Jan 29, 2001 at 01:56:02PM +0000, Justin B Rye wrote: >> This is a strange way to want to set a crontab... Dave Sherohman wrote: > Actually, considering that it's how crontab expects to work if no flags are > given, I suspect that `crontab ` is the most historically standard/ > normal way to use it. Doh, yes - just like ln is "normally" used for creating hard links! >> Why do you want to do this anyway? Isn't it simpler to edit the >> crontab directly with "crontab -e"? > Don't know if it's why the OP was doing it this way but potato's elvis > returns an exit status of 1 even if it exits cleanly. crontab sees this, > assumes an error, and doesn't update anything. So, if elvis is your default > editor, `crontab -e` doesn't work. (This has been fixed in woody.) Wasn't the problem that "crontab -e" did work and "crontab " didn't? (If it *is* an editor problem, the solution is of course to start with "export EDITOR=emacs" - or nano, or whatever - though if you can write working crontabs, odds are you'll probably know this.) -- Justin B Rye - writing from but not for Datacash Ltd
Re: crontab ?
Timo wrote: > why my crontab not / works like > crontab -e 00 21 * * * /sbin/ifdown eth0 > works fine You mean you run "crontab -e", and then when it starts its editor (vi by default) you enter "00 21 * * * /sbin/ifdown eth0" then save it? Yes, that should work. But why do you want this to be in your own crontab, not /etc/crontab (or as /etc/cron.d/eth0down)? > But when I try start with file > crontab Eth0Dwn > starts job, but nothing else happend. This is a strange way to want to set a crontab... "man crontab" seems to say it'll work, but the file might need to be executable or something. > Eth0Dwn > 00 21 * * * /sbin/ifdown eth0 I presume you mean that the file "Eth0Dwn" contains that line. What do you see when you "crontab -l"? Why do you want to do this anyway? Isn't it simpler to edit the crontab directly with "crontab -e"? -- Justin B Rye - writing from but not for Datacash Ltd
Re: jpeg bad bitmap format file (was: xsetroot -bitmap)
Xucaen wrote: > Hall Stevenson <[EMAIL PROTECTED]> wrote: > > somewhere else instead of one you made with > > gimp ?? Speaking of gimp, > > how are you telling it what format to use ?? I > > think you have to tell > > gimp to use "jpg" or "bmp" format ... just > > naming it that way *may* not > > do it. > > correct. I tell it specifically which format to > save as. I have saved as "jpeg" and as "bmp" > ah well.. at least I can play around with xpmroot > now. You might also want to test that it really has saved it as that format, not just with the extension .bmp - you can check this quickly and easily with "file": $ file foo.bmp foo.bmp:PC bitmap data, Windows 3.x format, 256 x 256 x 24 But they're right, don't use .bmp! -- Justin B Rye - writing from but not for Datacash Ltd
Re: .Xdefaults problem
Torben Korte wrote: > in the ~/.Xdefaults file i have put some thinks for xemacs but the file > isn't read on startup? Did I get the wrong file or the wrong place for > the file? Thanks ~/.Xresources -- Justin B Rye - writing from but not for Datacash Ltd
Re: SSH
> Joris Lambrecht wrote: >> Only SSH 1 is OPEN. From what i recall SSH2 and following are licensed >> (payware) Jason Holland wrote: > incorrect. openssh is NOT licensed at all. it includes ssh v1, ssh v2 and > sftp-server. What you're trying to say is that it isn't *restrictively* licensed. (If a piece of software isn't licensed at all - if, say, there turns out to be a crippling flaw in its legal verbiage - that doesn't mean anybody can rip it off without comeback; it means that nobody is entitled to use it. I know what you mean; but it's a point worth keeping clear.) -- Justin B Rye - writing from but not for Datacash Ltd
Re: [OT] two domains and one ip / apache [ css weirdness ]
Joris Lambrecht wrote: > this is what i meant by verified to work ... i opened it directly in my > browser ... no problem whatsoever Yup, so the html's workable. > original : does not work : intranet.css is at root of website (verified 10 > times) ("Original"?) You're sure it's readable (to the webserver)? By the way, does the website really have directories called "htdocs/site/" *inside* the DocumentRoot? > > > Looks okay - as long as the html and the stylesheet are in the same directory. Otherwise you need to give a relative path. Or since the css is in root, try href="/intranet.css", or even href="http://servername/intranet.css";. (Oh, if and this is the of your html, you haven't given it a .) > apache : i've created a scope that runs all files as text/css : intranet.css > is in /css (verified 10 times) No idea what you mean by this - apache doesn't need any reconfiguring to serve css. It might even have broken something. > > > This one'll work if there's a readable intranet.css in a readable, executable css subdirectory of the html file's location. > The text should render als helvetica but the output is times new roman, > opening the page without using apache (file - open ...) uses the style sheet What exactly is it you're trusting the reactions of here? Would it happen to be Internet Explorer? -- Justin B Rye - writing from but not for Datacash Ltd
Re: [OT] two domains and one ip / apache [ css weirdness ]
Joris Lambrecht wrote: > Whenever i published these pages i noticed that the css was no longer > functional. > > Hence my question, what's up with apache ? Apache can serve stylesheets "out of the box", as long as the html+css syntax and paths+permissions are right, so I doubt that's the problem. > PS : Below is the error.log content when it loads the site, to bad i feel > rather sure this has nothing to do with the problem. > > [Tue Jan 16 17:36:29 2001] [error] [client 127.0.0.1] Filename is not valid: > /:/htdocs/site/./default.htm.meta It's saying that something is pointing at an impossible filename, and if that string's really anything like a URL it's being told to fetch data from I don't blame it. /:/? htdocs? /./? .meta? What's your DocumentRoot, where relative to that are your stylesheets, what are the filenames, and what's the "" line in your html? -- Justin B Rye - writing from but not for Datacash Ltd
Re: (newbie) how can I change the display resolution???
Pietro Cagnoni wrote: > 1) make a backup copy of XF86Config, just in case; This can be a riskier step than it sounds - let me share a tale of an obscure gotcha. It goes like this: 1) gather a collection of interesting XF86-related files to study 2) put them in a directory called ~/XF86Config 3) come up with a new idea you want to try out 4) cautiously stash a copy of /etc/X11/XF86Config as XF86Config.bak 5) even more cautiously decide to restart X before editing anything 6) run "sudo /etc/init.d/xdm restart" 7) boggle as X dies with unedifying errors Turns out, the reason it was dying was that it was choking on an invalid XF86Config. No, not the pristine /etc/X11 copy - *first* it checks ~/, and since I didn't say "sudo -H", it was trying to use the directory /home/jbr/XF86Config as its configfile! I don't know if passing that on will save anyone from an unnecessary panic, but at least people here might find it funny. -- Justin B Rye - writing from but not for Datacash Ltd
Re: [OT] See you next year...
will trillich wrote: > On Thu, Dec 28, 2000 at 11:36:16PM -0800, kmself@ix.netcom.com wrote: >> on Thu, Dec 28, 2000 at 09:50:47PM +, sena ([EMAIL PROTECTED]) wrote: >>> I'll be going in a new-year vacations until 3 January. As someone suggested >>> in another thread, I'll be using procmail to redirect debian mailing lists >>> to /dev/null... I hope it works... >> >> Make sure to check the latest 2.4.0 pre kernels for the /dev/null patch >> to prevent a /dev/null overflow, particularly with the Debian lists. If the machine's going to be up over this weekend, /dev/random might be more of a problem since /etc/cron.millennial/standard will be introducing extra chaos into the system. The best fix is to install anarcron, which runs cronjobs at random intervals. > i was wondering about that. my /dev/zero and /dev/null have been > growing above their usual restrictions lately -- but i'm still > on potato (2.2.17). who's responsible for this anomaly? Well, who's got root on your machine? >> ;-) -- Justin B Rye - writing from but not for Datacash Ltd grep gullible /usr/share/dict/words
Re: mutt question...
Olivier Billet wrote: > On Wed, Dec 06, 2000 at 12:41:07PM +, Ricardo Rodrigues Morais Diz wrote: >> How can I put in my ~/.muttrc file an option so that whenever I start mutt >> all threads are collapsed? > > Maybe you can add this line: > > folder-hook . 'push \eV' These days mutt allows you to reference things by function-name, which is more robust if like me you've been messing about with all the key-bindings, and clearer even if not: folder-hook . 'push ' Works for me... -- Justin B Rye - writing from but not for Datacash Ltd
Re: to install or not to install
QBA wrote: > [...] > And there is also a second reason to install tarballs - > some cool programs are available only in this format (e.g. w3mir). > And here's my question: is it a bad idea to install tarballz on Debian? > Thanks for help, > [...] Wait! If you're looking for "WWW-wo-Miru", the .deb is called w3m, so you needn't resort to tarballs for that one. See "http://packages.debian.org/stable/text/w3m.html";. -- Justin B Rye - writing from but not for Datacash Ltd
slaying the inodosaur
I've got a machine that until recently used a ludicrously inode-hungry tree structure containing half a million files where it should have had (and now has) a database. Now I want to delete the leftover files, but it occurs to me that I may be risking some sort of IO catastrophe. Is a niced "rm -rf" as safe as I'm going to get, or is it worth messing about with "while sleep 1 do stopafter..."? -- Justin B Rye - writing from but not for Datacash Ltd
Re: scp from stdin
Carel Fellinger wrote: > On Tue, Nov 28, 2000 at 04:10:17PM -0600, Brian McGroarty wrote: >> Is there a way to pipe input to a file on a remote host via scp? >> >> i.e. >> >> tar cz ~user | scp ??? [EMAIL PROTECTED]:outfile.tgz > > I think not directly, but you could try: > > $ tar cz ~user | ssh [EMAIL PROTECTED] 'umask 077 && cat >outfile.tgz' > > ofcourse umask is futile if the file allready exists:( Well, try tempfile: $ tar cz ~user | ssh [EMAIL PROTECTED] \ 'umask 077 && OUT=$(tempfile -d ~/ -p out -s .tgz) && cat >$OUT' -- Justin B Rye - writing from but not for Datacash Ltd