Re: Module Errors!!
On Fri, 7 Mar 1997, Thought wrote: > Do you or does anyone else get these errors right after installing Debian? > I would imagine that at least for the first day or so most everything > would be error free and ready to go, but maybe not? The only thing I can > think of that would cause ME to have these errors and nobody else would be > that I do a make zlilo and my boot is /dev/fd0 even though my root is > /dev/hda2 (in other words, I stick in my floppy to boot off /dev/hda2). > Could this be causing a problem? I don't really see why it would affect > /sbin/depmod...(I think the root to solving this problem would be found > easier by looking at why depmod gets errors instead of why the kernel does > at bootup, no?) > depmod is NOT causing the errors, the errors are due to the fact that you did NOT compile support for these modules in your kernel. Get rid of them. You don't need them. This is NOT an error in the kernel, this is NOT an error with your system. The error is because make modules made ALL the modules, and they get installed into the modules directory. Depmod attempts to build a dependency table on them, but since they are NOT supported by the kernel, the errors occur. As I said before, ALL you have to do is delete modules you don't need, and if the errors persist by depmod on modules you DO need, then you may have to recompile them, or if they DO work, just ignore dependency problems. The modules setup is far from perfect,and sometimes due to some setup error it tends to do stupid stuff, like install all the modules, etc. It's far from ideal, but it works. Will
Re: wtmp locking problem (was: Re: SOLVED: Erk! Something is *really* wrong here!)
On 8 Mar 1997, Guy Maor wrote: > Karl Ferguson <[EMAIL PROTECTED]> writes: > > > I agree. I've got login 1.45a-3 installed and the problem hasn't appeared > > - it's definately a problem in the rex-fixed/binary/base and bo/binary/base > > because if I dpkg -i *.deb in either directory the problem re-appears - if > > I then go back to original rex/binary/base it fixes it. > > As far as I know, the only other program that messes with wtmp in base > is init. So could you just try the different versions of it? Now this IS the answer. I just downgraded one of my systems to sysvinit 2.69-1, rebooted, and the corruption seems to be gone. With sysvinig 2.70 I could produce the wtmp corruption at will just by doing "killall getty". With sysvinit 2.69 this does not cause the corruption. I'll leave it running for a day or so before i'm completely convinced but this definitely looks like it's the answer. BTW, does anyone know of a way to restart init without rebooting? Maybe there should be a 'telinit R' option to force an 'exec /sbin/init'? craig
Re: Noch da... (dies gehoert zur ersten Mail)!!!!
On Sat, 8 Mar 1997 23:30:15 +0100 (MET), you wrote: Sorry, wrong adress. Plase refrain from sending mailbombs ;-) Ciao...bjoern
Re: Installing a new kernel....
On Sat, 8 Mar 1997, Bjoern Starke wrote: > Hello, > > today i tried to install a new kernel. After making xconfig, make > zImage and running lilo Did you issue "make mrproper" before "make dep" and "make zImage"? Your output indicates a problem with modules. After makeing a new kernel image, you have to also make new modules with "make modules" and "make modules_install". It is not clear from your message if you did this as well. When that has all been done, do a "rm /lib/modules/modules.dep" before "depmod -a". See if that gives better results. Even better, get the kernel-package. It is a really cool util. Not only can you use it to register the kernel-source and kernel-image to the debian system (very convenient if you patch or customize it), but it also greatly simplifies building kernels. With the kernel-package you won't have to bother anymore about all the targets to make. Just make your favorite config and run "make-kpkg" (read the man page of course for the proper parameters.) Cheers, Joost
very small bash script question
Lawrence Chim writes: > Does anyone know how to check a directory is empty > in bash script? > > lawrence, > This seems to work for me. --- dir_is_empty --- #! /bin/bash # syntax dir_is_empty [optional_directory] # return 0 if it is empty #1 if it isn't empty (but is a directory) #2 if parameter is not a directory (error) # or too many args given (error) # Thee 2 varriables must be set for bash to expand the way # we want it to. See man bash(1). glob_dot_filenames=1 allow_null_glob_expansion=1 DIR="." case $# in 0 ) DIR="." ;; 1 ) DIR=$1 if [ ! -d $DIR ] ; then echo >&1 $DIR is not a directory exit 2 fi ;; * ) echo >&1 "syntax is $0 [optional directory]" exit 2 ;; esac X="`(cd $DIR ; echo *)`" if [ "$X" = ". .." ] ; then exit 0 else exit 1 fi Testing it. ls -al Empty Non1 Non2 Empty: total 3 drwxr-xr-x 2 rs rs 1024 Mar 8 16:56 . drwxr-xr-x 11 rs rs 2048 Mar 8 17:26 .. Non1: total 4 drwxr-xr-x 2 rs rs 1024 Mar 8 16:56 . drwxr-xr-x 11 rs rs 2048 Mar 8 17:26 .. -rw-r--r-- 1 rs rs 29 Mar 8 16:56 date Non2: total 4 drwxr-xr-x 2 rs rs 1024 Mar 8 16:56 . drwxr-xr-x 11 rs rs 2048 Mar 8 17:26 .. -rw-r--r-- 1 rs rs 29 Mar 8 16:56 .date ./dir_is_empty Empty/ ; echo $? 0 ./dir_is_empty Non1/ ; echo $? 1 ./dir_is_empty Non2/ ; echo $? 1 ./dir_is_empty ; echo $? 1 ./dir_is_empty dir_is_emptry ; echo $? dir_is_emptry is not a directory 2 bash%
Installing a new kernel....
Hello, today i tried to install a new kernel. After making xconfig, make zImage and running lilo and restarting the system the following happens: This messeges are printed by the kernel at startup. I am beginning at the point where the problems started: Loading modules: binfmt_aout nfs smbfs vfat Initialization of vfat failed lp lp: unable to get major 6 Initialization of lp failed --- -->eine reihe von Dingen die wieder ausgezeichnet funktionieren --- dummy ether_setup: Wrong version or undefined dev_kfree_hkb: Wrong version or undefined dev_get: Wrong version or undefined register_netdev: Wrong version or undefined unregister_netdev: Wrong version or undefined Loading failed! The module symbols (from linux-2.0.27) don't match your linux-2.0.27) eql dev_queue_xmt: Wrong version or undefined dev_kfree_skb: Wrong version or undefined dev_get: Wrong version or undefined register_netdev: Wrong version or undefined unregister_netdev: Wrong version or undefined Loading failed! The module symbols (from linux-2.0.27) don't match your linux-2.0.27) new_tunnel: Wrong version or undefined dev_kfree_skb: Wrong version or undefined ip_rt_put: Wrong version or undefined skb_device_unlock: Wrong version or undefined dev_slloc_skb: Wrong version or undefined ip_forward: Wrong version or undefined kfree_skb: Wrong version or undefined dev_get: Wrong version or undefined register_netdev: Wrong version or undefined Loading failed! The module symbols (from linux-2.0.27) don't match your linux-2.0.27) ppp CSLIP: code Copyright 1989 Regents of the University of California my_register_ldisc: dev_close: dev_alloc_skb: netif_rx: hilt_fasync: n_my_ioctt_ dev_kfree_skb: register_netdev: unregister_netdev: Loading failed! The module symbols (from linux-2.0.27) don't match your linux-2.0.27) slip CSLIP:code Copyright 1989 Regents of the University of California dev_alloc_skb: netif_rx: dev_kfree_skb: register_netdev: dev_close: unregister_netdev: n_my_ioctt: my_register_ldisc: Loading failed! The module symbols (from linux-2.0.27) don't match your linux-2.0.27) slhc CSLIP:code Copyright 1989 Regents of the University of California Chequing all filesystems -->the the system boots correct to the end. Has anyone ideas what went wrong. I would be very pleased if someone could help me :-) Ciao...bjoern --AOL has been called "the largest anonymous remailer in the world", and for good reason. (--->Raph Levien) Bjoern Starke (BjS) --->Pgp-Key on http://home.pages.de/~BjS
Noch da... (dies gehoert zur ersten Mail)!!!!
Hallo Christian, Hier ein kleiner Nachtrag, der sicherlich ertragreicher ist als die vorangegangene Unmutsbekundung: Die Meldungen gibt der Kernel beim Systemstart aus. Ich beginne ab der Stelle wo die Probleme auftreten: Loading modules: binfmt_aout nfs smbfs vfat Initialization of vfat failed lp lp: unable to get major 6 Initialization of lp failed --- -->eine reihe von Dingen die wieder ausgezeichnet funktionieren --- dummy ether_setup: Wrong version or undefined dev_kfree_hkb: Wrong version or undefined dev_get: Wrong version or undefined register_netdev: Wrong version or undefined unregister_netdev: Wrong version or undefined Loading failed! The module symbols (from linux-2.0.27) don't match your linux-2.0.27) eql dev_queue_xmt: Wrong version or undefined dev_kfree_skb: Wrong version or undefined dev_get: Wrong version or undefined register_netdev: Wrong version or undefined unregister_netdev: Wrong version or undefined Loading failed! The module symbols (from linux-2.0.27) don't match your linux-2.0.27) new_tunnel: Wrong version or undefined dev_kfree_skb: Wrong version or undefined ip_rt_put: Wrong version or undefined skb_device_unlock: Wrong version or undefined dev_slloc_skb: Wrong version or undefined ip_forward: Wrong version or undefined kfree_skb: Wrong version or undefined dev_get: Wrong version or undefined register_netdev: Wrong version or undefined Loading failed! The module symbols (from linux-2.0.27) don't match your linux-2.0.27) ppp CSLIP: code Copyright 1989 Regents of the University of California my_register_ldisc: dev_close: dev_alloc_skb: netif_rx: hilt_fasync: n_my_ioctt_ dev_kfree_skb: register_netdev: unregister_netdev: Loading failed! The module symbols (from linux-2.0.27) don't match your linux-2.0.27) slip CSLIP:code Copyright 1989 Regents of the University of California dev_alloc_skb: netif_rx: dev_kfree_skb: register_netdev: dev_close: unregister_netdev: n_my_ioctt: my_register_ldisc: Loading failed! The module symbols (from linux-2.0.27) don't match your linux-2.0.27) slhc CSLIP:code Copyright 1989 Regents of the University of California Chequing all filesystems -->von hier an geht wieder alles korrekt seinen weg. Ich hoffe das Dir diese Informationen weiterhelfen. Danke im Vorraus. May live Linux foreverbjoern -- Eine Telekom, sie zu knechten, sie alle zu finden, Ins Dunkel zu treiben und ewig zu binden Im Lande Deutschland wo die Schatten drohn. > C by J.R.R. Tolkien (leicht abgeaendert :-) Bjoern Starke (BjS) ->Pgp-Key on http://home.pages.de/~BjS
Re: Zimmerman case
On Fri, 7 Mar 1997, Bruce Perens wrote: > Bruce: > > The government dropped its case against Zimmerman long ago. > > From: Dale Scheetz <[EMAIL PROTECTED]> > > That is true, but he is still be "pestered" more than you and I would like > > to live with. > > Uh, maybe. He seems to be making money on the issue. Take a look at > http://www.pgp.com/pgpcorp/pgpcorp.cgi . They don't give details on > their financing, but the people on the board certainly have access to > good financing. This is the only known method an individual has for protection from abuse by large groups. Rich == powerful -> safe > > > I just wish our government would get over the fascist notion that only > > governements should be allowed to "protect" secrets. > > No argument there. At least not between you and I ;-) I have never heard an "individual" produce "good" arguments for this behavior. It is only when large "groups" respond that you hear that magic phrase "national security", which, in this day of "international terrorist activities" is a truely self contradictory term. Luck, Dwarf -- aka Dale Scheetz Phone: 1 (904) 656-9769 Flexible Software 11000 McCrackin Road e-mail: [EMAIL PROTECTED] Tallahassee, FL 32308 If you don't see what you want, just ask --
zsh vs bash
Thought writes: > Hey, what do you guys think is better, zsh or bash? > I prefer zsh, I find it easier to work with. For a while it had several features missing from bash (and most shells), but bash has caught up on many of them. It still has some features which don't seem to be in bash (though perhaps it's just a matter of finding out how to setup bash): * ability to line edit a multi-line command. I find this very useful. Say you've just typed in a multi-line "for"..."done" line and need to fix a type or redo it slightly differently. Under zsh you simply using ^p like any single line. * the "vared" builtin -- allows you to line edit a variable (e.g. "vared path"). * allows you to defined what a "word" is (e.g. for using backward-word). Using the vared command makes it nice and simple, just do "vared WORDCHARS". * accepts both csh and sh syntax, which is useful if you're used to a tcsh environment at work, or just like some of the csh things like "prompt" instead of "PS1", or using a wordlist $path rather than a colon-separated $PATH. * ability to try out an interactive command with "M-x" without having to specifically bind it. * the "infer next" command. (Hmmm, this seems to be broken now; it used to work and was very nice.) (Bash now has something limilar, operate-and-get-next (C-o). I like zsh's approach where you use this command when you want the next command; bash requires you to think ahead and realize before submitting that you will want the next command.) * automatic completion on variables names, e.g. type "export DISP" and hit tab. (I just checked, in bash you can use Esc-$ to specifically complete a variable name; in zsh the default compctl (completion) has been setup to complete for a variable name if the command is "export". While the zsh seemed easier, I guess the bash approach allows you to control it more.) However, bash has some advantages: * better built-in help (zsh has some if you set it up as suggested, but bash seems better and works out-of-the-box) * Ability to interactively define keyboard macros (similar to within emacs) * Bash uses the GNU readline which can be used from any C-program. Actually, I think the last point is probably a very important one. Both shell's line editing is good, but bash's readline can be included in any C program. By putting your preferences in your ~/.inputrc file you can thus customize many programs in one fell swoop. In any case, I would say try them both, and then pick one and read the manual or info and get familiar with it. And every so often read it again to pick some more hints. There are 2 programs that really pay off putting a bit of effort into learning: the shell you use and the editor you use. Picking a "simple and easy to use" editor is a short sighted approach. Pick a powerful editor and invest some time in learning it. (You don't have to learn it all, and you don't have to learn all that much at first, either.) It will really pack off. And I think the same philosophy applies, perhaps to a lesser degree, to the shell you use. Richard
X
Hello I've finally managed to make X work. At least in a way. When I write "startx" I get a patterned background and a square in the upper left corner in which it says xterm. I have no mouse response, even though I have in text mode. All I can do is to press Enter. Then the square disappears and everything appears to be locked. What shall I do to at least get a window with a shell? And what shall I do to get a higher resolution? Hoping for answers.. _ __ __ | _ \ | |/ / | E-post: [EMAIL PROTECTED] | | | | | | ' / | WWW : http://www-und.ida.liu.se/~c95danka/ | | | | | | < | Tel : 013 - 17 82 76 | | |_| | | . \ | Adress: Rydsvägen 246 C:21 584 34 LINKÖPING | |/ aniel |_|\_\ arlsson |__|
Local X application defaults
Where should I put the app-defaults files of locally installed (non-Debian, in /usr/local/) X applications? Thus far I've just put them in /usr/X11R6/lib/X11/app-defaults/, even though /usr/doc/xbase/debian.README says I shouldn't do that... (I don't really want to cat them all to the end of /etc/X11/Xresources, since some are quite big and it's tedious to remove stuff from it. And I don't want to create custom Debian packages for every nonstandard X application I install, just to get `legal' app-defaults.) Is there a Debian-specific place for them? Can X be set to read app-defaults files in /usr/local/X11/app-defaults/ (or whatever) in addition to the normal directory? -- -=- Rjs -=- [EMAIL PROTECTED], [EMAIL PROTECTED]
Re: Where to go next
Many thanks to all who've answered my questions about how to get started with Linux. When the documentation said there was an entheusiastic user group out their its right. I've posted to other lists and just gotten nasty replies about how the question wasn't on topic enough or how I should really ask that at such and such a site, but here the folks all seem so kind and willing to help. Thanks.
Re: syslog question
>In message <[EMAIL PROTECTED]> you wro >t >e: >> >>Hi, >> >>I just installed the unstable version on my computer. Everything seems >>fine bu tthere is one problem . I have my innitab file sending the >>contents of /tmp/messages to /dev/tty8 . Additionally I have >>the syslog.conf file sending some messages to /tmp/messages so I can see >>syslog mesages on /dev/tty8. Now what happens is that stuff are written to >>/tmp/messages but are not sent to /dev/tty8 which remains empty. Instead >>they are sent to /dev/tty1 . I thought bash 2.0 might have something to do >>with this so I downgraded to 1.14.-- . The problem has disappeared. So >>bash 2.0 is to blame. I don't mind sticking to 1.14. for the moment. But >>does any new program from unstable depend on 2.0 ?? Additionally what can >>I do to solve my syslog problem. I would really appreciate any help. > >Here's the relevant part of my /etc/syslog.conf: > ># I like to have messages displayed on the console, but only on a virtual ># console I usually leave idle. >auth.*;daemon.*;*.=debug;*.=info;*.=notice;*.=warn;cron.none /dev/tty8 > ># The named pipe /dev/xconsole is for the `xconsole' utility. To use it, ># you must invoke `xconsole' with the `-file' option: ># >#$ xconsole -file /dev/xconsole [...] >auth.*;daemon.*;mail.*;news.crit;news.err;news.notice;*.=debug;*.=info;*.=noti >c >e;*.=warn;cron.none|/dev/xconsole > ># > >As you can see, messages are logged to /dev/tty8 and /dev/xconsole. >Works with any bash version. ;-) >BTW, why use /tmp/messages when their proper place is in /var/log ? > >Dimitri >emaziuk @ curtin.edu.au >--- >What color is a chameleon on a mirror? > ( Zen koan ) pgprMNdN5O4AG.pgp Description: PGP signature
syslog question
Hi, I just installed the unstable version on my computer. Everything seems fine bu tthere is one problem . I have my innitab file sending the contents of /tmp/messages to /dev/tty8 . Additionally I have the syslog.conf file sending some messages to /tmp/messages so I can see syslog mesages on /dev/tty8. Now what happens is that stuff are written to /tmp/messages but are not sent to /dev/tty8 which remains empty. Instead they are sent to /dev/tty1 . I thought bash 2.0 might have something to do with this so I downgraded to 1.14.-- . The problem has disappeared. So bash 2.0 is to blame. I don't mind sticking to 1.14. for the moment. But does any new program from unstable depend on 2.0 ?? Additionally what can I do to solve my syslog problem. I would really appreciate any help. Thanks George --- George Kapetanios Churchill College Cambridge, CB3 0DS U.K.E-Mail: [EMAIL PROTECTED] ---
Re: pine producing gratuitous folder locks
> On Fri, 7 Mar 1997, David C. Winters wrote: > > Today, I started getting running into a problem with Pine 3.94--it began [Del.] On Fri, 7 Mar 1997, Pete Templin wrote: > Are the permissions on the /tmp directory correct? (1755, which looks > like drwxrwxrwt in ls -l /) This is often my first clue that /tmp has the > wrong perms. That was it--my clue was when X didn't start either. Now I need to try to track down whatever it was I did that changed its perms. I posted my question too soon--sorry, everyone, for the wasted bandwidth. D. David [EMAIL PROTECTED] If the Force with Yoda is so strong, construct Office: 3503 WeH, x86720a sentence with in the proper order the words MTFBWY then why can't he?
Q: Will Digital HiNote run Linux
Hi Does anybody knows if the Digital HiNote (laptop) VP 535 can run the Debien Linux? Thank you in advance. John -- John Plate <[EMAIL PROTECTED]>
Re: Another shared lib question
> On Sat, 08 Mar 1997 00:55:46 CST "Walter L. Preuninger II" > ([EMAIL PROTECTED]) wrote: > > > I have been reading the gcc-howto and the elf-howto... and have made my > > first shared library. My question is: does the code have to be > > rewritten/redesigned to take care of any reentrantcy problems? I have a > > feeling that globals/statics are bad news. Am I right? I would think that the "copy on write" feature comes into play here. As soon as you change any value, you get your own copy of that page and that page is no longer shared. So, globals/statics are no worse in a shared library thatn they usually are anyway. As this strace shows, the shared library is mmap'ed with MAP_PRIVATE: open("/lib/libc.so.5", O_RDONLY)= 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096 mmap(0, 757760, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000a000 mmap(0x4000a000, 528099, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4000a000 mmap(0x4008b000, 22860, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x8) = 0x4008b000 And here's some snippets of the man page for mmap: The prot argument describes the desired memory pro- tection. It has bits PROT_EXEC Pages may be executed. PROT_READ Pages may be read. PROT_WRITE Pages may be written. The flags parameter specifies the type of the mapped object, mapping options and whether modifications made to the mapped copy of the page are private to the process or are to be shared with other references. It has bits MAP_PRIVATE Create a private copy-on-write mapping. As somebody else already mentioned, thread-safeness is a whole other issue and your statics I'd say would be a problem. I _think_ that each thread shares the same copy of the "copy-on-write mapping". ...RickM...
libraries
Hi, I was wondering what the difference is between lib*.so and lib*.a libraries and is there any way to switch between them? For examples, I have in my /lib directory libtermcap.so, but when I try to compile stuff with that library I get an error from the compiler saying that the library doesn't exist. I checked the man pages for the compiler and it said that the libraries it looks for are in the lib*.a format. Is there a way to convert lib*.so to lib*.a? Thanks, Rich
Re: now what
Dave -- Since you're using a modem and don't have a direct internet connection, I'd suggest ordering the debian cd's from i-connect (web = www.i-connect.net). The installation should go pretty smooth, although you may have to repeat the procedure a few times to get everything to install correctly. However, if you're in the mood for adventure, to upload everything from the web using a modem, you'll need to get the "diald" package along with a ppp daemon (don't know if they're included in the base disk set). Get these in dos, transfer them to linux, and then unpack them using "dpkg". Then you'll need to configure them... Also, you may need more than just diald and ppp... Maybe it's just better to order the cd's from i-connect. To answer your specific questions -- To unmount the floppy, user "umount /floppy". X-windows isn't the next thing you need, since you'll need the base-level packages like the "vi" editor first. ".tar.gz" packages need the "tar" and "gunzip" utilities, etc. Your best bet is to order the cd :-). -- Harmon
Re: alias?
Hi Bjoern. To get an alias to be "permanent", it depends on what shell you're using. For the korn-shell, place the alias in your .kshrc file under your home directory. For bash, put it in .bash_profile and .bashrc -- all of these files are executed by a shell whenever you have either a) just logged on and therefore have a "login shell" (.bash_profile and .kshrc fall into this category) or b) spawned a subshell (.bashrc and .kshrc fall into this category). There's more info in the man pages. Anyway, the alias you mentioned: alias down="shutdown -h now" shouldn't be a security risk, since it will only work when you are "root". However to perform such an operation as a user, I suggest checking out the "sudo" package. Regards, -- Harmon
Re: Locate
Hi, On 08-Mar-97 Heikki Vatiainen wrote: >If you check /etc/crontab you'll notice that there's a line that does >something like 'run-parts /etc/cron.daily'. /etc/cron.daily has among others a >file called 'find' that includes the commands to update the locatedb. > >Like the name implies, files in /etc/cron.daily are run once a day, in my case >at 6:42 am. Cron, crontab, updatedb, run-parts etc. have all manpages that >have more info about them. > >If you want your locatedb updated now, just run /etc/cron.daily/find as root >and wait a little. I guess your locate database was never initially built. Shouldn't this be automagically done when base is installed? I seems to get same error. Thanks, David >Pete Poff wrote: >[cut] >> like locate . Like locate new.stuff. I get locate: >> /var/lib/locate/locatedb: No suck file or directory. Can anyone tell >> why? And is there a command to see how much disk space I have left?
Re: GCC problems
Hi. I had the same problem when trying to use the "c++" side of gcc. The problem was with "gnat", which created some links that caused gcc to be unable to find particular executables. You can fix this by de-installing "gnat" (NOT TO BE CONFUSED WITH "gnats", WHICH IS A TOTALLY DIFFERENT PACKAGE). Let be know how things turn out. -- Harmon
Re: zsh vsh bash
On Fri, Mar 07, 1997 at 11:19:28PM -0800, Thought wrote: > Hey, what do you guys think is better, zsh or bash? > I like zsh, as I'm not that good at typing both quickly and accurately. The command-line spelling correction is helpful. What's also nice is that the init-file syntax is almost the same as bash's, so changing from one to the other is quick. Larry -- ~~~ Larry Ayers_/_/_/_/ _/_/ _/ Knox County, _/__/ Missouri_/_/_/_/ _/ _/ ~~~
very small bash script question
Does anyone know how to check a directory is empty in bash script? lawrence,
Re: Locate
If you check /etc/crontab you'll notice that there's a line that does something like 'run-parts /etc/cron.daily'. /etc/cron.daily has among others a file called 'find' that includes the commands to update the locatedb. Like the name implies, files in /etc/cron.daily are run once a day, in my case at 6:42 am. Cron, crontab, updatedb, run-parts etc. have all manpages that have more info about them. If you want your locatedb updated now, just run /etc/cron.daily/find as root and wait a little. I guess your locate database was never initially built. Pete Poff wrote: [cut] > like locate . Like locate new.stuff. I get locate: > /var/lib/locate/locatedb: No suck file or directory. Can anyone tell me > why? And is there a command to see how much disk space I have left? // Heikki -- Heikki Vatiainen * [EMAIL PROTECTED] Tampere University of Technology * Tampere, Finland
Re: Debian on the shuttle
In article <[EMAIL PROTECTED]>, Dave Van Dijck <[EMAIL PROTECTED]> writes: > Maybe a new project could be started to create a good desktop that takes a few > good idea's from other desktops like win95 and OS/2's PM, and adds idea's of > it's own. It has been tried several times before, examples : GREAT, tkdesk, > xfm, xfilemanager, TheNextLevel, etc... but none of them really got me too > excited. > Well, just have a close look at the "Kool Desktop Environment's" homepage at "http://www.kde.org";. Maybe they are offering what you are looking for!? P. *8^) -- Paul Seelig [EMAIL PROTECTED] African Music Archive - Institute for Ethnology and Africa Studies Johannes Gutenberg-University - Forum 6 - 55099 Mainz/Germany Our AMA Homepage in the WWW at http://www.uni-mainz.de/~bender/
Re: Another shared lib question
On Sat, 8 Mar 1997, Walter L. Preuninger II wrote: > I have been reading the gcc-howto and the elf-howto... and have made my > first shared library. My question is: does the code have to be > rewritten/redesigned to take care of any reentrantcy problems? I have a > feeling that globals/statics are bad news. Am I right? > > For Example: > program a calls foo > foo is about to return x to a when > program b calls foo, setting x to something else > > Does this make sense? Well, if you do not use statics or globals you have no re-entrancy problems. It is also likely that Linux does NOT use shared data segments, as the standard library is a shared library and it contains many globals. This is probably a Good Thing (TM) shared data segments are usually trouble. Jason
zsh vsh bash
Hey, what do you guys think is better, zsh or bash?
Re: nslookup
edit your /etc/hosts and put mybox on the line with 127.0.0.1 it should then look something like: 127.0.0.1 localhost localhost.quicklink.net mybox On Fri, 7 Mar 1997, Gith wrote: > > Ok, I think this gets into the bind/named realm and I really try to avoid > going there if at all possible. > > Here's the general question, > > Running "nslookup localhost" shows me this: > # nslookup localhost > Server: localhost > Address: 127.0.0.1 > > Non-authoritative answer: > Name:localhost.quicklink.net > Address: 127.0.0.1 > > > > Running "nslookup mybox" shows me this" > # nslookup mybox > Server: localhost > Address: 127.0.0.1 > > *** localhost can't find mybox: Non-existent host/domain > > > > In general, how could I get nslookup to return localhost.quicklink.net > when queryed about "mybox". > Any ideas? > > -- > - > Willie Daniel > [EMAIL PROTECTED] > http://users.quicklink.net/~gith/ > - > >
Re: Another shared lib question
On Sat, 08 Mar 1997 00:55:46 CST "Walter L. Preuninger II" ([EMAIL PROTECTED]) wrote: > I have been reading the gcc-howto and the elf-howto... and have made my > first shared library. My question is: does the code have to be > rewritten/redesigned to take care of any reentrantcy problems? I have a > feeling that globals/statics are bad news. Am I right? That's one of the nice things of ELF. You don't have to care about it. The system does. That's much different from the old a.out where globals were also allowed, you you had to take care of them during the build process. Notice that reentrancy is still a concern for you if you want your library to be thread-safe... Phil.
Another shared lib question
I have been reading the gcc-howto and the elf-howto... and have made my first shared library. My question is: does the code have to be rewritten/redesigned to take care of any reentrantcy problems? I have a feeling that globals/statics are bad news. Am I right? For Example: program a calls foo foo is about to return x to a when program b calls foo, setting x to something else Does this make sense? TIA, -- Walter L. Preuninger II waldo @ irc.wasteland.org:#unix [EMAIL PROTECTED] http://walterp.rapidramp.com L I N U X Where You Will Want To Be!
Re: lynx lagzzzzz
In article <[EMAIL PROTECTED]>, "Brian S. Julin" <[EMAIL PROTECTED]> writes: > > I upgraded tons of packages (stable) and now lynx takes about > a minute to start. > This is because your "/etc/mailcap" has a ridiculous lot of goodies been added to via a installation routine of packages who use install-mime. I remember to have had a "/etc/mailcap" of more than 200KB once making lynx take quite some minutes to start up! :-( Just reinstall the mime-support package to get a reasonably sized "/etc/mailcap" or buy yourself a reasonably fast PentiumPro and you are done. ;-) As someone else has already pointed out before it looks like a bug in the install-mime routine or one of the packages taking advantage of it has gone nuts!? I don't know how to trace it down other than deinstalling all packages using the install-mime routine and reinstall them one after another with appropriate checking. Regards, P. *8^) -- Paul Seelig [EMAIL PROTECTED] African Music Archive - Institute for Ethnology and Africa Studies Johannes Gutenberg-University - Forum 6 - 55099 Mainz/Germany Our AMA Homepage in the WWW at http://www.uni-mainz.de/~bender/
Re: lynx lagzzzzz
In article <[EMAIL PROTECTED]>, "Brian S. Julin" <[EMAIL PROTECTED]> writes: > > I upgraded tons of packages (stable) and now lynx takes about > a minute to start. > This is because your "/etc/mailcap" has a ridiculous lot of goodies been added to via a installation routine of packages who use install-mime. I remember to have had a "/etc/mailcap" of more than 200KB once making lynx take quite some minutes to start up! :-( Just reinstall the mime-support package to get a reasonably sized "/etc/mailcap" or buy yourself a reasonably fast PentiumPro and you are done. ;-) As someone else has already pointed out before it looks like a bug in the install-mime routine or one of the packages taking advantage of it has gone nuts!? I don't know how to trace it down other than deinstalling all packages using the install-mime routine and reinstall them one after another with appropriate checking. Regards, P. *8^) -- Paul Seelig [EMAIL PROTECTED] African Music Archive - Institute for Ethnology and Africa Studies Johannes Gutenberg-University - Forum 6 - 55099 Mainz/Germany Our AMA Homepage in the WWW at http://www.uni-mainz.de/~bender/
Re: Kernel compilation problem
Hi, Firstly: It was a problem with kernel sources not expecting the suddenly POSIX compliant expr in shell utils, not with make-kpkg. (/usr/doc/kernel-package.Problems.gz in newer kernel-packages dissects this in detail). Secondly, sure, this is Unix. You can always do things multiple ways, in this case, you could do things the old way. You'll have to manage modules, System.map, psdatabse, and the kernel-image, make sure Lilo knows about the location of the kernel images on your machine, and remember to update the lilo database every time you install or remove an image, and remember to remove *all* components of the image safely. No special procedures required. It can be done. We all used to have to, before kernel-package was written (the tedium of a kernel upgrade was one reason it *was* written). make-kpkg just makes it a tad bit easier. But there is no arm twisting going on ;-) Manoj -- "Bush has it backwards -- abortion is surgical; bombing is murder." sign at anti-war march Manoj Srivastava mailto:[EMAIL PROTECTED]> Mobile, Alabama USAhttp://www.datasync.com/%7Esrivasta/>
Re: TO the holier-than-thou guru
Craig Sanders writes: [snip] > > from the pppd man page: > >ipcp-accept-local > With this option, pppd will accept the peer's idea > of our local IP address, even if the local IP > address was specified in an option. > >ipcp-accept-remote > With this option, pppd will accept the peer's idea > of its (remote) IP address, even if the remote IP > address was specified in an option. > > . > . > . > >noipdefault > Disables the default behaviour when no local IP > address is specified, which is to determine (if > possible) the local IP address from the hostname. > With this option, the peer will have to supply the > local IP address during IPCP negotiation (unless it > specified explicitly on the command line or in an > options file). > > > > if you haven't already done so, print out the pppd man page - it's very > readable (for a man page). pppd is one of the best documented programs > around - clear, straightforward man page and lots of howtos and readme > files (in /usr/doc/HOWTO and /usr/doc/ppp, of course). > > > if you have ghostscript installed and working, or a postscript printer, > then "man pppd | enscript -2r -G" makes a nice 2 pages on 1 sheet > printout > > craig > > Thanks for reminding me of this resource. Sometimes, one gets so involved reading other doc files that you can overlook a valuable resource. I'll do just that (print man page)! -- -= Sent by Debian 1.2 Linux =- Thomas Kocourek KD4CIK - member of ARRL [EMAIL PROTECTED]
libvga?
* Reply to a message in linux-debian-users. [EMAIL PROTECTED] wrote in a message to Dave Van Dijck: --==>OT-RSN: MOVED by text! jN> From: [EMAIL PROTECTED] jN> To: debian-user@lists.debian.org jN> I've been trying to run several svga games and keep getting this jN> error: jN> /usr/games/doom-1.8/sdoom: can't load library jN> '/usr/lib/libvga.so.1' Unknown error jN> /usr/games/doom-1.8/sdoom: can't load library '/lib/libvga.so.1' jN> Unknown error jN> /usr/games/doom-1.8/sdoom: can't find library 'libvga.so.1' jN> I have svgalib1 version 1.210-3 installed. /usr/lib/libvga.so.1 jN> *does* exist, and /lib/libvga.so.1 is a link to it. In fact, jN> /usr/lib/libvga.so.1 is a link to /usr/lib/libvga.so.1.2.10. jN> I've tried using strace, but I didn't get any useful info from jN> there. What am I doing wrong? Almost 2 years ago, the linux community switched from a.out executables and libs to ELF. Doom didn't. You're probably using ELF svgalib with a.out doom. Get a.out versions of svgalib, and put'm where doom needs'm. Greetz, Dave
Kernel compilation problem
* Reply to a message in linux-debian-users. Steve Reid wrote in a message to Dave Van Dijck: --==>OT-RSN: MOVED by text! > Well, I am trying to compile a custom kernel, which I've done SR> This is a known bug in make-kpkg. SR> I haven't tried make-kpkg since I reported the bug, but I suspect SR> it may have been fixed by now. Try upgrading make-kpkg. SR> If all else fails you could hack the scripts. Do you really have to use make-kpkg with debian? Can't I just do it the old fashioned way, like make menuconfig, make dep, make zImage, make modules, make zlilo, make modules_install, or does debian require some special procedures? Greetz, Dave
Debian on the shuttle
* Reply to a message in linux-debian-users. Jason Killen wrote in a message to Dave Van Dijck: --==>OT-RSN: MOVED by text! JK> From: Jason Killen <[EMAIL PROTECTED]> JK> To: "W. Joseph Mantle" <[EMAIL PROTECTED]> JK> cc: debian-user@lists.debian.org JK> Why does everyone keep saying that X should look like Win 95. I JK> don't want to get into a shouting match about which is easer to use JK> and those people who like the Win 95 look and feel can stick with JK> it. I just don't like the fact that some people feel we should JK> masqurade(?), I feel we should give the option of looking like 95 JK> but is looking like 95 that big of a deal. I guess my tiff is not JK> with the people working on making X look like 95 but more with JK> people who compare all operating systems and user interfaces with JK> Win 95. JK> Sorry for the rant...I'll be quiet now. I think you're absolutely right. Agreed, there are good things about the win95 desktop that X could use, but not everything about it is good (eg. the start menu really sucks IMHO, and fvwm already had a thing like that.) Maybe a new project could be started to create a good desktop that takes a few good idea's from other desktops like win95 and OS/2's PM, and adds idea's of it's own. It has been tried several times before, examples : GREAT, tkdesk, xfm, xfilemanager, TheNextLevel, etc... but none of them really got me too excited. What most of them really lacked, was the ability to alter the desktop without having to edit some config files of some sort. Well, waddya say folks? Greetz, Dave
resolv.conf
It is made by the installation process when you configure your network. The one made then has these two lines: search DOMAIN_NAME nameserver XX.XX.XX.XX Bruce -- Bruce Perens K6BP [EMAIL PROTECTED] 510-215-3502 Finger [EMAIL PROTECTED] for PGP public key. PGP fingerprint = 88 6A 15 D0 65 D4 A3 A6 1F 89 6A 76 95 24 87 B3
Re: make-kpkg
Hi, make-kpkg is part of the package kernel-package, which is designed to make it easier to compile kernels. The idea is that one configures the kernel to ones liking, using one of make config, make menuconfig, or make xconfig, and then sit back and let make-kpkg take care of the details of creating a kernel-image*.deb file, which can then be installed with dpkg -i kernel-image*.deb. The command has to be run from the top level kernel source directory, and the kernel-image*.deb file is put in the parent directory (../). I am biased, but I like to think it is desirable to let the make-kpkg take care of details like modules, System.map, and psdatabase files, as well as allowing simple upgrades, and easily removing older kernels, etc, without mishap. Do read the documentation in the Documentation directory of the kernel source, /usr/doc/kernel-package (sfter you have installed it, of course), and man make-kpkg. I hope this helps. manoj -- "Gentlemen, gentlemen! You can't fight in here! This is the war room!" Doctor Strangelove Manoj Srivastava mailto:[EMAIL PROTECTED]> Mobile, Alabama USAhttp://www.datasync.com/%7Esrivasta/>
Re: lynx lagzzzzz
On Mar 03, 1997 at 07:38:33PM -0500, Brian S. Julin wrote: > I upgraded tons of packages (stable) and now lynx takes about > a minute to start. Same here; well, about five seconds, but it doesn't seem to be doing anything in that time. Hamish -- Hamish Moffatt, [EMAIL PROTECTED], Melbourne, Australia. Student, computer science & computer systems engineering. 3rd year, RMIT. http://yallara.cs.rmit.edu.au/~moffatt CPOM: [ ] 40% PGP key available from web page above.
Re: wtmp locking problem (was: Re: SOLVED: Erk! Something is *really* wrong here!)
Craig Sanders: > > On Thu, 6 Mar 1997, Joey Hess wrote: > > > This doesn't explain why the problems have only started occurring in > > the past few days. I've been using the same set A/set B mix for many > > months, and only started getting corruption this week. Something must > > have changed, and that should be fixed. > > login changed. it was updated on approx Feb 20. But I don't use the standard login, I use shadow-login. And I haven't changed it in a long time. -- #!/usr/bin/perl -pl- # ,,ep) ayf >|)nj,, $_=reverse lc$_;s@"@''@g;y/[]{A-U}<>()a-y1-9,!.?`'/][} # Joey Hess {><)(eq)paj6y!fk7wuodbjsfn^mxhl5Eh29L86`i'%,/;[EMAIL PROTECTED]@>|@g # [EMAIL PROTECTED]
Re: wtmp locking problem (was: Re: SOLVED: Erk! Something is *really* wrong here!)
On Thu, 6 Mar 1997, Joey Hess wrote: > This doesn't explain why the problems have only started occurring in > the past few days. I've been using the same set A/set B mix for many > months, and only started getting corruption this week. Something must > have changed, and that should be fixed. login changed. it was updated on approx Feb 20. craig
BlankTime, SuspendTime and OffTime?
Hi all, Does anyone know why blanktime, suspendtime and offtime don't work in the XF86_S3 server anymore? I have the X package from 1.2.7 on ftp.debian.org. Mark -- [EMAIL PROTECTED] Applied Digital Access, Inc. San Diego, CA 92121
Re: Sz Program for Minicom
On Fri, 07 Mar 1997 16:46:44 CST Pete Poff ([EMAIL PROTECTED] .edu) wrote: > I don't have the sz program for the minicom program so that I can > download with my zmodem. I've looked around on the ftps sites and can't > find the sz. Could anyone point me out to where I might be able to find it? It comes with the lrzsz package (recommended by minicom BTW). Phil.
nslookup
Ok, I think this gets into the bind/named realm and I really try to avoid going there if at all possible. Here's the general question, Running "nslookup localhost" shows me this: # nslookup localhost Server: localhost Address: 127.0.0.1 Non-authoritative answer: Name:localhost.quicklink.net Address: 127.0.0.1 Running "nslookup mybox" shows me this" # nslookup mybox Server: localhost Address: 127.0.0.1 *** localhost can't find mybox: Non-existent host/domain In general, how could I get nslookup to return localhost.quicklink.net when queryed about "mybox". Any ideas? -- - Willie Daniel [EMAIL PROTECTED] http://users.quicklink.net/~gith/ -
Re: make-kpkg
On Fri, 7 Mar 1997, johannes martinez wrote: > What exactly does this do? Does it make a package or does it > make a new kernel? both. it makes a .deb package of your customized kernel. > If either where does it put it? i ran: make-kpkg -revision custom.1.0 kernel_image from the directory /usr/src/linux, and it put the file: kernel-image-2.0.27_custom.1.0_i386.deb into /usr/src > Is it of any use to use make-kpkg or should i just do a normal > make dep, clean, zlilo etc...? make-kpkg is easier to use and easier to keep track of changes once you figure out how to use it right. > One more question: do you need a resolv.conf in debian, and if so why > isn't it made? mine was created. /etc/resolv.conf brad [EMAIL PROTECTED] - http://weber.u.washington.edu/~maximill
Re: Which OSF/Motif ?
"BB" == Brown, Paul, BROWNPA2 <[EMAIL PROTECTED]> writes: BB> I was wondering if anybody had any recommendations as to which BB> versions of Motif are any good and what the prices are. CheapBytes has SWiM Motif for $69.00. It's working well for me so far. Install the 2.0 version, not the 2.0.1 version, as the 2.0.1 version is built with an incompatible soname. And don't get the Motif archive CD. It's a waste of money. Nothing much useful on there at all. But it works, and I strongly doubt anyone's going to beat their price. -Larry -- Larry Daffner| Linux: Unleash the workstation in your PC! [EMAIL PROTECTED] / http://web2.airmail.net/vizzie/ "I believe every human has a finite number of heartbeats. I don't intend to waste any of mine running around doing exercises." --Neil Armstrong
make-kpkg
What exactly does this do? Does it make a package or does it make a new kernel? If either where does it put it? Come to think of it now i could have did a find on the newest files but, a little to late for that now. Is it of any use to use make-kpkg or should i just do a normal make dep, clean, zlilo etc...? One more question: do you need a resolv.conf in debian, and if so why isn't it made? johannes martinez
Re: Locate
Try running updatedb to fix your locate problem df will tell you about your disk space On Fri, 7 Mar 1997, Pete Poff wrote: > Hi, > when I use locate I get an error. This is what I get if I type > like locate . Like locate new.stuff. I get locate: > /var/lib/locate/locatedb: No suck file or directory. Can anyone tell me > why? And is there a command to see how much disk space I have left? > > Thanks, > Pete Poff---AKA---BlackJack >Personal E-Mail Address: [EMAIL PROTECTED] > Kyron E-Mail Address:[EMAIL PROTECTED] >Kyron address: telnet.cyberconinc.com 4000 > >
lynx lagzzzzz
FYI I upgraded tons of packages (stable) and now lynx takes about a minute to start. -- Brian S. Julin
Re: experiences with /dev/md? (multiple device) drivers ?
[EMAIL PROTECTED] writes: > > Hi, > > Does anybody here have experience with the multiple device drivers > under linux? [ snip ] > My main worry is reliability of the driver. And speed matters, too. > > Hints and recommendations welcome! I've been using it for a few months on a machine that does LOTS of I/O. I just installed processor #2 this week, and the md stuff seems to work fine even in SMP mode. Make sure you read the docs a few times. Also, before you put anything important on your striped volume, reboot, and make sure that you can remount it and still read it. "mdcreate" and I have had a battle or two in the past :-) > Thanks, Later, Dale -- + finger for pgp public key -+ | Dale E. Martin | University of Cincinnati Savant Research Laboratory | | [EMAIL PROTECTED]| http://www.ececs.uc.edu/~dmartin | +--+
Re: VIM Editor
William Chow <[EMAIL PROTECTED]> wrote: > > >On Fri, 7 Mar 1997, Mr Stuart Lamble wrote: [...] >> There shouldn't be. Which version of vim do you have installed? When I >> changed the compilation procedure to configure vim with X support, I >> created two versions - one for 1.2 (which, at the time, was slated to >> use 3.1.2), and one for unstable (shortly to become 1.3). >> >Well, I think I'm using one of the more current stable versions, the one >that came with the current stable (1.2). I did not use unstable. Is vim >supposed to be dynamically linked to the Xaw library? I and another user >have reported that an ldd does NOT in fact show it to be dynamically >linked to any X11 libraries. Is there one that has X support and one that >doesn't? That's where the confusion was. 4.5-3 doesn't have X support. 4.5-4 and later should. If you're using stable, you'll be using 4.5-3, hence the lack of X support. If you do an ldd on the vim binary in 4.5-4 or later, it _should_ come up with a dynamic link to libX11, libXaw, etc., etc. If it doesn't, it's a bug in the package.
Re: SVGATextMode...
On Fri, 7 Mar 1997 [EMAIL PROTECTED] wrote: > Hi, > > (2) I seem to have a problem configuring my SVGATextMode program. For a start > I > have a cirrus Logic GP-5446 Card and this in not listed amongs the list of > supported cards (XFREE does) Also, could someone with a cirrus logic car, who > has SVGATextMode running mail me their TextConfig file ... > There are many cards that are not supported, if you can't get it to work with the 542x option, then you probably are out of luck with SVGATextMode. I don't know that new chipsets are being actively added. I haven't seen this type of activity anytime recently. I could be wrong. The only other thing I can suggest for changein video modes is the vga= kernel parameter (appended to lilo or loadlin). Use vga=ask initially until you find a mode you like. They specify that one. You will be limited to bios supported modes though. Not as flexible as stm. If you are using a newer kernel, I believe there is a compile config option to allow this. You should verify that this functionallity is compiled in. Good Luck, Erv ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ ==-- _ / / \ ---==---(_)__ __ __/ / /\ \- [EMAIL PROTECTED] --==---/ / _ \/ // /\ \/ / / /_/\ \ \ - [EMAIL PROTECTED] -=/_/_//_/\_,_/ /_/\_\ /__\ \ \ - [EMAIL PROTECTED] http://www.linux.org \_\/
Re: now what
On Fri, 7 Mar 1997, MR DAVID C STEIN wrote: > So I downloaded my debian base sysetem now what do I do?? > > Where do I go??? > > Is xwindows the next thing I need?? > > Also someone showed me how to mount a floppy disk > > mount -t msdos /dev/fd0 /floppy > > How do I unmount it > > Where is a file that shows me basic unix commands to type at the > propmt? > > prefereably in ascii sice my modem is on my dos machine and I haven't > figured what > to do with tar.gz etc.. yet pkunzip doesn't know what to do with > that in dos > It sounds like you are new to unix in addition to linux. I would recommend a good unix primer (there are many good ones, but I like the O'reilly book). It will not only answer most of your questions, but it will make you more productive in the future. Erv ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ ==-- _ / / \ ---==---(_)__ __ __/ / /\ \- [EMAIL PROTECTED] --==---/ / _ \/ // /\ \/ / / /_/\ \ \ - [EMAIL PROTECTED] -=/_/_//_/\_,_/ /_/\_\ /__\ \ \ - [EMAIL PROTECTED] http://www.linux.org \_\/
Re: Locate
On Fri, 7 Mar 1997, Pete Poff wrote: > Hi, > when I use locate I get an error. This is what I get if I type > like locate . Like locate new.stuff. I get locate: > /var/lib/locate/locatedb: No suck file or directory. Can anyone tell me > why? And is there a command to see how much disk space I have left? > > Thanks, Hi Pete not sure about the locate cmd but to see you current disk usage use the df command. look at man df and also man locate. -Rob