scripting question
I have a simple script that counts up the number of spam messages each day and prints the total number into a text field. This is fine as far as it goes, however I would like to also include the date and the number of non-spam messages. I can get this to run, however each piece of information is printed on it's own line. I would like to have all of the results append in my text file on the same line so that I can easily import it into a spreadsheet or database. How would I go about doing this? My script is as follows: #!/bin/sh TERM=vt100 export TERM exec /root/countspam.txt date echo Spam Count /bin/more /var/log/syslog | /bin/grep -c 'identified spam' echoecho Clean Message Count/bin/more /var/log/syslog | /bin/grep -c 'clean message'
RE: scripting question
Thanks - that was exactly what I was looking for. Now I just need to find a good scripting tutorial. :) -Original Message- From: Michael Marsh [mailto:[EMAIL PROTECTED] Sent: Friday, September 21, 2007 8:38 AM To: debian-user@lists.debian.org Subject: Re: scripting question On 9/21/07, Michael Martinell [EMAIL PROTECTED] wrote: I have a simple script that counts up the number of spam messages each day and prints the total number into a text field. This is fine as far as it goes, however I would like to also include the date and the number of non-spam messages. I can get this to run, however each piece of information is printed on it's own line. I would like to have all of the results append in my text file on the same line so that I can easily import it into a spreadsheet or database. How would I go about doing this? My script is as follows: ... date echo Spam Count /bin/more /var/log/syslog | /bin/grep -c 'identified spam' echoecho Clean Message Count/bin/more /var/log/syslog | /bin/grep -c 'clean message' You can concatenate things in a single echo simply by passing multiple arguments. Slinging a few backticks, and you can do something like: echo `date` dollar signs: `grep -c \$ ~/.bashrc` comments: `grep -c \# ~/.bashrc` Put the file name in a variable, and it should be even simpler. -- Michael A. Marsh http://www.umiacs.umd.edu/~mmarsh http://mamarsh.blogspot.com http://36pints.blogspot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Back to original topic [Was: [Poll: debian-newcomer list [Was: Re: newbies needing help for graphic login]]
On Tue, January 10, 2006 11:08 am, Richard Lyons wrote: On Tuesday, 10 January 2006 at 14:43:18 +0100, David Jardine wrote: On Tue, Jan 10, 2006 at 04:35:22AM +0200, Andrei Popescu wrote: [...] Ok, then let's get back to the original topic of this thread: the help help messages won't stop (and we don't want them to stop) so what can we do? Installing Linux on ones computer requires a conscious decision; choosing Debian as the distribution to install must presuppose some awareness of the issues involved. So how did these people come to be installing Debian in the first place without knowing what to expect? When I first installed RedHat 4.1 on my 486 box, I had no idea what I was getting myself into. But I'm glad I did it anyway. -- richard I second that. I first installed Mandrake in 97 on an IBM Thinkpad. I had no idea what I was doing either. I had read about how Linux was a great alternative to windows. Other than that I really had no real *nix experience. It would be great, especially as Debian modernizes, if it would more seemlessly install the basic workstation - kind of like Red Hat does these days without having to enter video and monitor specifics that the casual home user or even some admins do not know. That would at least get the user into a familiar environment quickly. They could then learn from there. That would lower some barriers and hopefully reduce the I have a black screen with a cursor, now what do I do? type of questions. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: i8253 count too high! resetting..
On Thu, January 5, 2006 12:54 pm, Paolo Pantaleo wrote: 2006/1/5, Michael Martinell [EMAIL PROTECTED]: I am getting the following error during the install of 3.1r0a. The error is: i8253 count too high! resetting.. I am installing this in a virtual pc environment. I am pretty sure that the emulated hardware is causing the problem. Any idea what needs to be reset? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] The 8253 is a programmable Interval timer/counter specifically designed for use with the Intel Micro computer systems. Its function is that of a general purpose, multi-timing element that can be treated as an array of I/O ports in the system software. [from http://www.pci8255.net/8253%20data%20sheet.htm] The 8253 chip is an element of the i386 architecture. This should be a time based interrupt generator. (I hope I have been useful) PAolo Ok, I found a work around for the problem. Basically the virtual hardware is not good enough - no surprise there. What I did was recompile the kernel and removed aspci support. I believe this shows that the emulated pci system was not good enough. Strange - before Microsoft bought the company, I used Virtual PC without any problems at all on several differnt OS's. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
i8253 count too high! resetting..
I am getting the following error during the install of 3.1r0a. The error is: i8253 count too high! resetting.. I am installing this in a virtual pc environment. I am pretty sure that the emulated hardware is causing the problem. Any idea what needs to be reset? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: New kernel unable to mount/see a whole HD
On Mon, January 2, 2006 9:39 am, J.F. Gratton wrote: (I must first start by apologizing if you've seen this post twice in 12hrs.. I've had problems here with my smtp; not sure it went well) Hello, I've been unable to access any partition on /dev/hda since I've compiled my own kernel 2.6.14.5 . I'm currently running 2.6.12-10. I want to get rid of initrd and compile my own kernels (I've done it for a long time, it's just that since Deb 3.0 rX I have been a bit lazy and let the OS install new ones when new ones were available). Now, on /dev/hda I have all my foreign OS partitions (ntfs and vfat filesystems, as well as UFS -for solaris). For the life of me, I can't see any pertinent changes between my two kernel configs (provided in attachments) that might give the slightest clue as to why kernel-2.6.12 (dpkg-provided) will mount /dev/hda* and why kernel-2.6.14.5 (user-compiled) won't. The console won't spew any error messages concerning the missing vfat partitions. If I manually try to mount them (say.. mount -t vfat /dev/hdb6 /mnt/temp-mountpoint), I get a /dev/hda6 : device busy. So I guess it knows that /dev/hdb6 exists, right ? It's not a question of filesystems not being included in modules/kernel; there are vfat partitions on /dev/hdb and those are being seen and mounted. I insist on the fact that *everything* works just fine with 2.6.12 but not with 2.6.14.5. Anyhow.. I'm stumped, can't see why it won't go ok with 2.6.15.4, if anyone can help me out with the files attached, just go ahead, please :) Regards, and best wishes for 2k6 ! -- Jeff This may seem a bit obvious, but did you try to copy config-currentkernel that relates to your old install (from /boot), rename it to .config and put it into your source path for the new kernel. That should give you the exact same config that you are currently using. Then you could just run the configure program (make menuconfig) for the kernel to select or unselect any other features. Then save the new .config file. In this way you can verify that your previously known good config is the one you are using. I have complied lots of kernel's, however have only had problems when I try to create a .config from scratch. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
change networks
Hi, I am going to migrate an Debian server from the current network to a new network. It does use DHCP so that part should not be a problem. How do I change the gateway and dns settings to get everything to work in the new network? Most of what I can find specifies changing a static ip range. For example: iface eth0 inet static address 192.168.0.111 netmask 255.255.255.0 gateway 192.168.0.1 up route add -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.0.2 dev $IFACE down route del -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.0.2 dev $IFACE up echo Interface $IFACE going up | /usr/bin/logger -t ifup down echo Interface $IFACE Going down | /usr/bin/logger -t ifdown I don't know that this is what I need though. Any help would be greatly appreciated. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: OT: Shared calendar server on Debian
On Thu, November 3, 2005 1:47 pm, Caleb Walker wrote: Hello all, I am wondering if there are any suggestions for a shared calendar system on Debian. My setup is as follows. I have a Cyrus, Spamassassin, Procmail, Postfix and OpenLDAP running on a server that I have in this office for mail flow and single sign on to different web applications and email. I also want to implement a shared calendar where I can have shared personal calendars as well as shared public calendars depending on login or group. Has anyone done this and if so how or what products? I breifly searched the debian archives and google and came up with Kolab so far which seems to be more Redhat freindly then I like. Thanks in advance, Caleb Walker -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Squirrelmail - a webmail addon to your procmail has a nice shared calendar and personal calendar plugin(s). Even if you don't use squirrelmail the plugins are php so I would suppose you can port them. Disclaimer: This communication represents the official view of the voices in my head and should not be confused with whatever voices you are hearing. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
apache-php file creation question
Hi. I did ask this question to same apache people and they think it must be the OS. So here goes: I am running debian woody with apache and php. I have created a php application that should let me create and edit text files in a particular directory. When I try out my program I get a security error from (I think) debian. The error when I go to save is as follows: Warning: fopen(index_blog.html): failed to open stream: Permission denied in /usr/local/apache/htdocs/blogs/savecreatefile.php on line 38 I have tried changing the permissions on all relevant files to run as priveleged with 777 just to try to get it to work. So far I just get the same error. Any ideas as to what permissions need to be changed? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Drivers for Adaptec aar-1420sa
On Wed, October 5, 2005 11:49 am, Michael Martinell wrote: Trying to install debian on a system that has 4 SATA drives connected to an Adaptec AAR-1420SA RAID card. I have looked at adaptec's site and have not found any drivers that will work with the kernel I am using. My kernel is 2.6.12. I have tried to install debian using the linux26 option on the cd as well as using the net install floppies. I am pretty much out of ideas, can anyone provide any suggestions as to how to make this work? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Just a follow up if anybody out there is pondering my question. I can see these terrabyte arrays in MS-DOS, OS/2 Warp 4, Red Hat, Win 95, Win 2000 and Win XP. Why can't I see them with Debian? I feel that I must be doing something wrong, but I am not sure what. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Drivers for Adaptec aar-1420sa
Trying to install debian on a system that has 4 SATA drives connected to an Adaptec AAR-1420SA RAID card. I have looked at adaptec's site and have not found any drivers that will work with the kernel I am using. My kernel is 2.6.12. I have tried to install debian using the linux26 option on the cd as well as using the net install floppies. I am pretty much out of ideas, can anyone provide any suggestions as to how to make this work? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Help!
On Fri, September 9, 2005 11:22 pm, Carl Fink wrote: On Fri, Sep 09, 2005 at 09:49:53PM -0500, Michael Martinell wrote: On Fri, September 9, 2005 8:53 pm, Carl Fink wrote: [] Any information needed to make a choice should be PART OF THE PROGRAM (minus very rare cases). Why make the new user go searching? If you are so lazy as to not want to read through the getting started guide then you don't have much of a future period. Most things in life that are worth doing require study - driving a car, being a doctor, being a computer tech, it doesn't really matter. If you are looking for instant gratification watch tv and allow the television stations to think for you while the government takes care of you. This thinking sounds like a typical liberal to me - unable to take care of yourself, (minus very rare cases). What the HELL? Anyone who want software to be easy to use is a liberal? What are you, the Ann Coulter of bad software design? Why are you participating here? Surely e-mail mailing lists are too easy. You should use quill pens and parchment. -- I see heavy sarcasm is lost on you - maybe you do let the tv think for you after all? Most software is easy and can be figured out by the casual end user. The point here is the OS. The differences are extreme. My point (however lost it was):Being a system administrator is not for the lazy. If it is your hobby and you are enthusiastic about the hobby you will still read the documentation. The only person who will not at least read the quick start guide (there is one and it is 10 pages long) is the person who has no business installing an OS to begin with. The only easy OS install I have ever done was with the microsoft answer file, where I created an answer file on a floppy put in the disk and let it install, with every question and setup taken care of by my pre-planning. Of course I had to read the documentation to do that . . . . I do wish that debian had such a utility though, it would be the ultimate in simplicity. You could just download a generic answer file from Debian for your x86 platform and an hour later the system would be done. By the way how did you know I consider calligraphy to be art? Quill pens and parchment are cool - I just can't figure out the delete feature. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Help!
On Sat, September 10, 2005 9:20 am, David Clymer wrote: On Sat, 2005-09-10 at 08:39 -0500, Michael Martinell wrote: I do wish that debian had such a utility though, it would be the ultimate in simplicity. You could just download a generic answer file from Debian for your x86 platform and an hour later the system would be done. Quickstart guide: google: automatic debian install - [i'm feeling lucky] You didn't miss this out of lazyness, did you? ;o) -davidc -- gpg-key: http://www.zettazebra.com/files/key.gpg hey cool - I haven't looked for quite some time. Apparently I missed that episode. lol Well IMO, it can't get any easier than an answer file, unless you bought it preinstalled. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Help!
On Sat, September 10, 2005 9:28 am, Kent West wrote: Continuing your analogy, I want auto manufacturers and software manufacturers to design for the consumer's benefit, rather than the manufacturer's benefit. Although this is what I want, I don't expect it from auto manufacturers, nor do I expect it from software manufacturer's just out to scratch their own itch. Shame. -- Kent HUMOR Car Owner: Hey Maude, the windows roll down and we have air conditioning. I wish we had read the manual *before* we drove across Death Valley. /HUMOR Actually cars are not that hard either ... just buy the Haines manual for your particular model and you have step by step instructions on how to fix nearly any part, as well as the specs for all of the parts. For most things you don't really need the mechanics computer to fix it. The point is that you have to read the manual. Experience also helps. But it's a learning process for everybody. I find it easier not to repeat the mistakes that everybody else made and read how they recommend to do a task. Of course that has never stopped me from trying it the same way they did just so I can see the failure. My failing I suppose. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Help!
On Sat, September 10, 2005 10:22 am, Hendrik Boom wrote: On Fri, Sep 09, 2005 at 09:49:53PM -0500, Michael Martinell wrote: On Fri, September 9, 2005 8:53 pm, Carl Fink wrote: On Fri, Sep 09, 2005 at 05:30:29PM -0700, Steve Lamb wrote: If you install an OS, expect to read docs, period. No. Any information needed to make a choice should be PART OF THE PROGRAM (minus very rare cases). Why make the new user go searching? -- If you are so lazy as to not want to read through the getting started guide then you don't have much of a future period. Most things in life that are worth doing require study - driving a car, being a doctor, being a computer tech, it doesn't really matter. If you are looking for instant gratification watch tv and allow the television stations to think for you while the government takes care of you. This thinking sounds like a typical liberal to me - unable to take care of yourself, (minus very rare cases). I've tried to avoid responding to this bait many times but it's really getting too much. I've always considered a typical liberal to want primarily to take care of people, not to be taken care of. The intent being to structure society so that most everyone will get to the point of being able to take care of themselves as opposed to being downtrodden. -- hendrik Since you responded here is my completely off-topic response. Interesting. I work part time at an adjustment training center helping those who are mentally handicapped get to the point where they can take care of themselves. These are people who are striving to acheive greater things in life than being constantly cared for by others and are definately not lazy. Many of them are more than happy to get information in whatever way they can to achieve independence. I have also known many self professed liberals who meet my definition. Those would be the normal people who can't meet their daily needs without the government telling them how to think and how to live. By your definition I am a liberal, which I can assure you that I am not - at least not by my definition. I believe that everybody in society should do as much as they are capable of to push the society forward to acheive the highest point it possibly can. By necessity this means that not everybody will be equal, hence some will be downtrodden. That is the choice that they will make to remain that way. Inaction is a choice. By the way I grew up in your downtrodden mass as a farm hand. I just barely graduated high school - probably would not have by today's standards. This is because I was lazy and did not study. It was my fault and I learned to stop thinking that it was society's fault. When I realized that I also realized that I could change stations in life. I did this with no outside government or societal assistance. I fully beleive that most of the downtrodden can do the same without government aid. If they have something actually wrong with them that is one thing, however it seems that most of them that I personally know are just too lazy. Certainly too lazy to read the manual. (That was the point of my original post.) Of course the only thing we will probably agree on is that we disagree with everything. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Help!
On Fri, September 9, 2005 8:53 pm, Carl Fink wrote: On Fri, Sep 09, 2005 at 05:30:29PM -0700, Steve Lamb wrote: If you install an OS, expect to read docs, period. No. Any information needed to make a choice should be PART OF THE PROGRAM (minus very rare cases). Why make the new user go searching? -- If you are so lazy as to not want to read through the getting started guide then you don't have much of a future period. Most things in life that are worth doing require study - driving a car, being a doctor, being a computer tech, it doesn't really matter. If you are looking for instant gratification watch tv and allow the television stations to think for you while the government takes care of you. This thinking sounds like a typical liberal to me - unable to take care of yourself, (minus very rare cases). -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Help!
On Wed, September 7, 2005 1:59 pm, Olle Eriksson wrote: I don't think people should ever have to read documents in order to use a product. Requiring people to read the docs suggests that the product itself isn't designed well enough that it explains its own usage. You claim that it allows programmers to be lazy - I challenge that it makes the end user lazy and also dangerous when they do not read and understand what they are doing before they do it. The click first and ask questions later approach does not actually work very well. At this company we have a department that fits this bill completely: accounting. I'm not too familiar with the new installer, but couldn't there be a question about whether or not a GUI should be installed and have the GUI as the default option. People who know what they are doing can select the non-GUI option and the rest will probably be happy with getting a GUI. You think the current installer is hard? It's almost mindless - you can just keep pressing enter and everything will be fine for most newbies. Disclaimer: This communication represents the official view of the voices in my head and should not be confused with whatever voices you are hearing. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Disk dont work with linux ?!
On Fri, August 19, 2005 4:03 pm, Attila Szilagyi wrote: Hi dear debian users, I would like ask for some help. I need install Debian Sarge on an old 333MHZ Celeron machine. This machine include an old SEAGATE 3,2GB hdd. With win98 this disc work good. I started install debian and i made an ext3 partition on the disk, bat after made a partition debian-installer saw me unable to mount /. Next i inserted this disk to another computer and i installed debian on the disk. After i again connected a disk to old machine workd good for 20 minits. After 20min the system remounted root file system in read-only mod, and printed out Ext3 error ext3_reserve_inode_write: IO failure. Why it dont work? Why work it good with win98? How can i solve a problem? Please help. Thx: Szati. When you make the partition are you telling it to mount as root? Also, if the hard drive has bad sectors it is possible to experience this problem. Windows 98 FAT file system is much less robust, and in some ways more forgiving then the ext3 file system. You might try performing a low level format (wipe) of the hard drive. wipe.exe is a free but effective program that will do this. It is a DOS program, but you can probably find it on the internet. Otherwise, have you considered other hardware aspects? The cpu or power supply fan may be going out causing those components to overheat. It wouldn't be the first time that a bad fan caused strange, not readily apparently related problems. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
script copy files based upon content
I am trying to figure out how to come up with a shell script that will cat or grep a file and if it contains the word SPAM it will then move it to another folder. I have been trying combinations of grep SPAM * | mv * ../spam however I don't know what to put in for * since the filenames are always changing. I am guessing that I need to create an array by doing something with ls, however I am having trouble puzzling this one out. This job would then run out of cron. Help is greatly appreciated. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Load and run Debian from a USB stick
I am attempting to get debian to run completely from an USB hard drive. I have followed the instructions at http://www.debian.org/releases/sarge/i386/ch04s04.html with success. However this only enables me to boot from the usb drive and then do a full install to the hard drives. I want the entire boot sequence to run from usb. The only thing that I want on the actual hard drives are installed applications and data. I have tried created an USB boot disk like I would a floppy with the idea that I could put the /boot partition on the usb however I have failed with this. Is this possible to accomplish? Does anybody have any documentation on how they did this? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
unable to boot new kernel
I upgraded my woody install to use grub using (I had been using lilo) apt-get install grub grub0install /dev/hda update-grub I then rebooted and everything was good, I am using grub and all is well. I then decided to upgrade the kernel from 2.2.20 to 2.6.12.3 with CIFS support. This worked fine, however when I went to dpkg the new kernel it activiated the lilo script and not the grub. I do run update-grub. When I reboot I am unable to boot the new kernel due to a message that it cannot find the \boot file system. Of course the 2.2.20 kernel boots fine. How can I completely get rid of lilo so that grub is properly set up? Here are some excerpts from my menu.lst: (I tried both with and without the initrd) title Debian GNU/Linux, kernel 2.6.12.3.qmail root(hd0,0) kernel /boot/vmlinuz-2.6.12.3.qmail root=/dev/hda1 ro initrd /boot/initrd.img-2.6.12.3.qmail savedefault boot title Debian GNU/Linux, kernel 2.2.20-idepci root(hd0,0) kernel /boot/vmlinuz-2.2.20-idepci root=/dev/hda1 ro savedefault boot -- Disclaimer: This communication represents the official view of the voices in my head and should not be confused with whatever voices you are hearing. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: new to debian
On Tue, July 12, 2005 2:24 pm, Johan said: hi to.. Kent West, Sorry for funny mail..had call in my laptop to do messaging. The station switch off replace drive and reboot. Apg-get refuses to install any og those pckages you mentoned..dependencie problem. Seem that all those 13 dics in source list does not have all the dependencies johan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] apt-get update This will refresh your sources list Also, do you have disk 1 in the /etc/sources ? I believe that the X install is still located there. -- Disclaimer: This communication represents the official view of the voices in my head and should not be confused with whatever voices you are hearing. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: new to debian
apt-get update This will refresh your sources list Also, do you have disk 1 in the /etc/sources ? I believe that the X install is still located there. -- makes no difference johan So what message do you get when you type startx? What errors are you seeing in /var/log logfiles? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: OT (and Flamebait): Top-Posting
On Fri, July 8, 2005 8:45 pm, Cybe R. Wizard said: Yes, that makes perfect sense and reiterates what I have said; that if a thing has dropped in price 2000-fold /someone/ should now be paying me to use their hardware. Isn't it similar to the problem in saying that something costs, say, three times less than time ago? Isn't /one/ time less than what was paid equal to zero? Wouldn't we be more correct in saying one third the price? Cybe R. Wizard -wants to understand, not just pedantic Following these statements and math, one is always dividing, not subtracting. No matter how many times you divide you are still left with parts. If you then call each of the new parts a whole and divide it you never end up with 0 or less then 0. Unless you divide by 0, but of course that is an imaginary number (i). -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: OT (and Flamebait): Top-Posting
On Fri, July 8, 2005 10:25 pm, Carl Fink said: On Fri, Jul 08, 2005 at 09:24:07PM -0500, Michael Martinell wrote: Following these statements and math, one is always dividing, not subtracting. No matter how many times you divide you are still left with parts. If you then call each of the new parts a whole and divide it you never end up with 0 or less then 0. Unless you divide by 0, but of course that is an imaginary number (i). Division by zero is invalid. It does not produce i, the square root of -1, it simply means you can't use that formula in that situation. -- hmmmI distinctly remember doing that in college algebra (during calculus prep) a few years ago. It's true that you can't do it on most calculators though. The instructor did have a method for dividing by zero, producing an imaginary value (which are actually real) and solving the equation. Here is some an excerpt from a calculus web site: http://quantumrelativity.calsci.com/Calculus/Chapter5.html If you want to know q, you can't just use the ArcTangent function. First of all, if the hypotenuse is verticle, that is the Side Adjacent has length 0, then you have to divide by zero before you can use the function. Because of this, most computer programming languages have two functions, one called arctan, and one called something like arctan2. Arctan2 take two arguments, the Side Adjacent and the Side Opposite, which allows the function to check and not divide by zero. Secondly, the arctan function returns the wrong values for most of the circle. What you really want is this: -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RAID 5 questions (software)
I have been experiementing with the RAID stuff in Debian 3.1r0a In this experiment I configured as follows: 1st Hard Drive /boot 400mb swap 2GB partition for Raid volume 37 GB 2nd - 4th HD partition for Raid volume 37 GB. A few questions have came up: When I replace a hard drive (simulated crash) in RAID 5 do I have to do any configuration to make it work? When I tested this it appeared to just take off, however I could not even find a log entry that it had actually done anything. If the first hard drive crashes how do you recover? I pulled it out, put in a brand new drive, inserted my boot floppy, and of course had no kernel to boot. Is there a way to set it up so that I could have a back up boot sector on the other hard drives? On a regular hardware raid system I would have set up raid 1 for my boot disks and raid 5 for my data disks. Since I am limited to just 4 hard drives I obviously can't do that here. Even if I were to leave the first drive out of the raid mix, the question still stands, how do I recover if that hard drive fails? -- Disclaimer: This communication represents the official view of the voices in my head and should not be confused with whatever voices you are hearing. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: RAID 5 questions (software)
On Thu, July 7, 2005 11:11 am, Andy Smith said: On Thu, Jul 07, 2005 at 10:53:34AM -0500, Michael Martinell wrote: I have been experiementing with the RAID stuff in Debian 3.1r0a In this experiment I configured as follows: 1st Hard Drive /boot 400mb swap 2GB partition for Raid volume 37 GB 2nd - 4th HD partition for Raid volume 37 GB. [...] When I was reworking the raid I noticed that the hard drive that I had replaced earlier was NTFS instead of ext3. I take it that the raid controller does not reformat the drive to support the change? What are the proper steps (or where are they located) for replacing a raid drive? I did reconfigure with a 2gb and a 37 GB partition per device w the /boot and swap each raid 1. Seems to be working so far. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: RAID 5 questions (software)
You never mentioned a RAID controller so I assumed software RAID. If you have a hardware RAID controller then the steps are usually unique to that hardware and you need to consult its documentation. That would be a typo - I have no raid controllor - just IDE. What I should have said was when I reran the software raid part of the sarge setup I noticed that it listed the drive as ntfs. an aside: what is the command to invoke the raid software w/o using the setup disk? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: RAID 5 questions (software)
On Thu, July 7, 2005 11:11 am, Andy Smith said: If the first hard drive crashes how do you recover? You restore from backups or do a new install. There has got to be a better solution than that. I never want to consider my backups to be a first line of defense against hardware failure. I would definately create a step by step disaster recovery guide for debian software raid and make it available if anybody would find it interesting. It seems that there are many methods to set up a raid, however no one has a method to repair a raid. Sources used: http://www.tldp.org/HOWTO/Software-RAID-HOWTO-5.html debian mailing list In that spirit I have set up the following: Debian 3.1r0a IDE 1-4 each with a 2 GB and a 38 GB RAID configured using Debian software RAID tool RAID 1 = 2 GB ext3 /boot (from disks 1 3) RAID 1 = 2 GB swap (from disks 2 4) RAID 5 = 114 GB ext3 / (from disks 1,2,3,4) Results: If I replace hard drive 1 I am unable to boot. Using the grub boot disk and pointing at hd 2,0 generates the following messages: md2 No spare disk to reconstruct array! continuing in degraded mode EXT3-fs: unable to read superblock pivot_root: No such file or directory /sbin/init: 432: cannot open dev/console: No such file Kernel panic: Attempted to kill init! How do I get the OS to recognize the spare disk now, after the failure? If the RAID 1 was truly working would it have not booted? Is there another setting on my boot floppy that would help here? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
thinkpad 770 X full screen
I am running Debian 3.1r0a I have been trying to get X to run full screen on an IBM thinkpad 770z. X runs, however it leaves a large matte area of dead screen. The monitor is fine, since that other OS uses it all. I've tried to change various options in x86Config however I have yet to hit upon the right combination. Any suggestions? -- Disclaimer: This communication represents the official view of the voices in my head and should not be confused with whatever voices you are hearing. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: thinkpad 770 X full screen
On Wed, July 6, 2005 2:45 pm, martin f krafft said: also sprach Michael Martinell [EMAIL PROTECTED] [2005.07.06.2128 +0200]: I have been trying to get X to run full screen on an IBM thinkpad 770z. X runs, however it leaves a large matte area of dead screen. The monitor is fine, since that other OS uses it all. Try to hit Fn-F8 or Fn-F6 or any of those function-F* key combos. One of them should turn on the full screen, IME. - friedrich nietzsche This works on the dark side, however not in X. I tried every Fn-F* combination. I even forced the screen to full size mode with lilo and booted full screen. It still loads X small. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: secure apache in debian
-Original Message- From: Jon Dowland [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 22, 2005 6:24 AM To: debian-user Subject: Re: secure apache in debian Michael Martinell wrote: What is the best way to secure an entire site in apache? I have 3.1 r0 and have installed the apache package. Basically I want 1 user to be able to access any directory or folder that exists now or will ever exist in the future in the /var/www path. You'll have to be a bit more specific. When I read 'secure' I think, 'secure transmission' and you mean setting up HTTPS. However, it sounds like what you're really after is realm-based HTTP authentication. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] I have an in-house server for administrators, technicians and such to get install files and so forth off of. I do not really want the casual user to be able to access this server and install software without approval. Since security isn't real high here I thought a single log in would be ok. I thought there was a way to put some entries into httpd.conf that would cause the whole server, no matter what page it served up to prompt for a password. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: secure apache in debian - FINISHED
-Original Message- From: Petri Varsa [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 22, 2005 8:30 AM To: Michael Martinell; debian-user@lists.debian.org Subject: Re: secure apache in debian I think this should work for you: Location / AuthType Basic AuthUserFile /etc/apache2/ssl/user_auth AuthName Test Require valid-user /Location Put this in under the VirtualHost section. Then use the htpasswd program to create the /etc/apache2/ssl/user_auth file. -petri On 6/22/05, Michael Martinell [EMAIL PROTECTED] wrote: -Original Message- From: Jon Dowland [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 22, 2005 6:24 AM To: debian-user Subject: Re: secure apache in debian Michael Martinell wrote: What is the best way to secure an entire site in apache? I have 3.1 r0 and have installed the apache package. Basically I want 1 user to be able to access any directory or folder that exists now or will ever exist in the future in the /var/www path. You'll have to be a bit more specific. When I read 'secure' I think, 'secure transmission' and you mean setting up HTTPS. However, it sounds like what you're really after is realm-based HTTP authentication. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] I have an in-house server for administrators, technicians and such to get install files and so forth off of. I do not really want the casual user to be able to access this server and install software without approval. Since security isn't real high here I thought a single log in would be ok. I thought there was a way to put some entries into httpd.conf that would cause the whole server, no matter what page it served up to prompt for a password. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] This solution was exactly what I needed. I had tried this before, however I had not put it in the VirtualHost section. That did make all of the difference for me. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: OT - recommendations for a simple shopping cart
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 22, 2005 1:20 PM To: debian-user@lists.debian.org Subject: OT - recommendations for a simple shopping cart Anyone have any suggestions for an easy to setup easy to administer shopping cart system so I don't have to re-invent the wheel? Thanks in advance for your input -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] I don't know if they have a debian version, however we use Actinic here. Very easy to set up and run. The setup side is ms windoze based, however the actual cart runs out of an apache server with cgi enabled. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
mount file share in cron
I have set up a backup job that will mount a share, perform the backup and then umount the share. This works fine as root. When I schedule the job in cron however, the backup always fails because the mount never occurs. If I manually mount and then run the backup job in root it is successful. For various reasons I don't want to leave the mounts permanent. OS Data you might need: OS: Debian 3.1 r0 Kernel: 2.6.11.12 w/ CIFS support compiled in Mount Type: Samba CIFS I do not seem to have a cron.log file, however here are some relevant excerpts from my kern.log file: Jun 17 12:50:05 localhost kernel: CIFS VFS: Send error in SessSetup = -13 Jun 17 12:50:05 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13 Jun 17 12:50:17 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13 Jun 17 12:51:19 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13 Jun 17 12:56:59 localhost kernel: CIFS VFS: Send error in SessSetup = -13 Jun 17 12:56:59 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13 My main question is why does this mount fail when ran in cron? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: mount file share in cron --SOLVED
-Original Message- From: Michael Martinell [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 7:02 AM To: debian-user@lists.debian.org Subject: mount file share in cron I have set up a backup job that will mount a share, perform the backup and then umount the share. This works fine as root. When I schedule the job in cron however, the backup always fails because the mount never occurs. If I manually mount and then run the backup job in root it is successful. For various reasons I don't want to leave the mounts permanent. OS Data you might need: OS: Debian 3.1 r0 Kernel: 2.6.11.12 w/ CIFS support compiled in Mount Type: Samba CIFS I do not seem to have a cron.log file, however here are some relevant excerpts from my kern.log file: Jun 17 12:50:05 localhost kernel: CIFS VFS: Send error in SessSetup = -13 Jun 17 12:50:05 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13 Jun 17 12:50:17 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13 Jun 17 12:51:19 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13 Jun 17 12:56:59 localhost kernel: CIFS VFS: Send error in SessSetup = -13 Jun 17 12:56:59 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13 My main question is why does this mount fail when ran in cron? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] I had a typo in my export term. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
secure apache in debian
I know that this might not be entirely on-topic however: What is the best way to secure an entire site in apache? I have 3.1 r0 and have installed the apache package. Basically I want 1 user to be able to access any directory or folder that exists now or will ever exist in the future in the /var/www path. Is there a guide somewhere that shows this? I have tried following some .htaccess examples however they don't appear to block *everything* without a separate file for each directory. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: Looking for recommendation or backup/restore tool - FINISHED
Thanks for providing me with some very valuable ideas. I ended up doing the following: 1. Compiled kernel to 2.6.11.12 with CIFS support 2. Mounted my win 2003 shares 3. Used rsnapshot to back up shares to apache web directory - easy for file restore. This seems to be a good solution that will apparently work well. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
FW: Sarge Upgrade DEBOCLE ! ! !
-Original Message- From: Joerg Rossdeutscher [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 15, 2005 2:15 PM To: debian-user@lists.debian.org Subject: Re: Sarge Upgrade DEBOCLE ! ! ! AFAIK dselect gets removed from debian. apt-get is deprecated. aptitude is the tool to be used. Bye, Ratti An aside: I sincerely hope that apt-get does not go away. Aptitude has *a long* ways to go before it is very useful to me. It reminds me of dselect - clumsy and not very efficient. I could have a package found and installed using apt-get before I even began to guess which subheading it is hiding under in aptitude. To me aptitude is just an unwanted step-child of dselect - which I didn't like either. That is just my 2 cents worth of course. Everybody else in the world is free to disagree. Disclaimer: This official communication represents the views of the voices in head and should not be confused with any other voices that you are hearing. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Looking for recommendation or backup/restore tool
I am looking for a backup/restore solution that would fall into the following category: 1. Web interface to apache 2. Able to select mount points or files in the interface 3. Able to perform a restore of a specified file in the backup I have searched google quite a bit, however I can only find good ideas for backup jobs, however when it comes to restore everything seems to fall short. Does anybody have any suggestions for this? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
access windows 2003 server shares
My question is two-fold. My primary question as follows: How can you access windows 2003 shares? I have tried smbmount however I get the following error: debian:/backup# smbmount //jupiter/c$ /jupiter -o username=mis/mike cli_negprot: SMB signing is mandatory and we have disabled it. 4261: protocol negotiation failed SMB connection failed debian:/backup# What am I doing wrong? In my smb.conf file I do have the client signing = yes option. I did find reference to something called CIFS, however it seems that all of the links are dead. The second part of my question: Once I do get this to work properly, does anybody have any good suggestions for a backup solution of these file shares? Any help would be greatly appreciated. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Configure X on virtual pc 2004
I just downloaded 3.01 r5 and wanted to try it out. I set up an virtual pc 2004 session in and installed it. I can only get X to start in 256 color 640x480 mode. Not a very useful mode. I have tried just about every combination of xf86config and dpkg-reconfigure xserver-xfree86 however I always get a variation of the same error: failed to load module s3 module does not exist I did do an apt-get update/upgrade however the problems have persisted. I have tried using both S3 and Vesa drivers as various sources on the internet have suggested. Has anybody here gotten this to work? If so how did you do it? If anybody has successfully gotten this going I would be happy to know how you did it. Thanks. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
putting ascii keys in a script
I have a script that I need to send an enter keystroke with. On the keyboard I can do alt + 013 which is the ascii code for the enter key. I wanted to put this into my script using vi. Any suggestions for an escape-type sequence that will record the keystroke and not cause vi to interpret it as a request to insert a new line? Thanks for any help. Michael Martinell Manager of Information Systems Dakota Nation Gaming Enterprise (605) 882 2051 ext 716 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
password change
Is there a way to script out the changing of passwords at the command line. I have about 60 passwords to change manually, according to federal policy. In windows I would just do a net user username password Is there no similar linux command? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: mail server changing machines
For what it's worth this is how I did it: Since I only had 100 users I added them new. If you have more users you will want to script this. Then I copied the contents of the squirrelmail data directory to my new machine. Since I already had samba on both boxes I then copied the /home directory from old box to new box. When all was copied over, I called the ISP and had them change the MX record to point to the new box. After that was done, I did a final check for any missed messages and copied them across. Once again if you have allot of users, you will definitely want to script out some of this. I had no downtime, and no lost mail. -Original Message- From: Nick Smith [mailto:[EMAIL PROTECTED] Sent: Friday, June 04, 2004 3:16 PM To: [EMAIL PROTECTED] Subject: mail server changing machines im going to be moving my mail server to another machine, and moving it off site at another location (more bandwidth). what would the easiest way and least down time way of doing that? i have the other machine already installed debian and updated stable, courier is installed, squirrelmail, etc, can i just copy over the config files and the Mailbox folders in each account and have it work? i really dont want to have to go through the hassle of reconfiguring everything and risk alot of downtime if i dont have to. TIA nick -- ComputerNick a.k.a. Nick Smith Email - [EMAIL PROTECTED] Web - https://www.ComputerNick.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
chkrootkit slapper detected
This morning I checked my chkrootkit log and had the following message: Checking `slapper'... Warning: Possible Slapper Worm installed I looked at the chkrootkit script, manually checked each of its checks and did not find anything either. I re-ran the chkrootkit command to generate a new report and it came up with: Checking `slapper'... not infected The question is, should I be concerned about a compromised system, or could I chalk it up to an anomaly? Has anybody else experienced this? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: spamassassin question
I am assuming you are processing spamassassin before you tell sendmail to deliver. I use qmail so I can't really tell you how to make sure. At any rate: Otherwise go to /etc/spamassassin and edit the local.cf file and change the subject tag to what you want. If you change the required hits in this file it will set it for the entire system. Otherwise, just get the spamassassin webmin, it works really slick for administration. You do have to point it at your spamassassin install, ie, /etc/spamassassin/spamassassin -Original Message- From: Jacob Vallandingham [mailto:[EMAIL PROTECTED] Sent: Thursday, May 27, 2004 12:04 PM To: [EMAIL PROTECTED] Subject: spamassassin question I am trying to run spamassassin on an internal linux box with sendmail. It is runing but the e-mails I send for tests don't get the *SPAM* message in the header. I know the content of the e-mails should be classified as spam and I've even changed the number of hits required to 1 and got no results. Does spamassassin have to be run on a public maiol server? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
extended character sets
How does one use the extended ascii character sets? I am referring to the alt + number combinations that I like to use in passwords. For example: alt + 0161 = an upside down exclamation mark. When used in passwords most cracking software does not work since they do not check for the extended set even in brute force hacks.
possible to use windows 2003 logins in debian
Is it possible to configure debian to authenticate using an windows 2003 active directory? Would you need to have the following installed? apt-get install slapd ldap-utils I can't really find allot of documentation on this, however have been told that it is possible. Any help, even a pointer to a website I might have missed would be greatly appreciated. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
sharepoint server type
Does anybody know if there is any Linux software similar in functionality to the Microsoft Sharepoint server? This is a server that enables users to collaborate on various projects and tasks across the internet. I currently have a sharepoint on Windows, however would like to migrate it to Linux.
shell scripting question
Hopefully somebody here has perhaps seen this oddity and can provide some insight into the cause. I have a very simple shell script as follows: mail:~/scripts# more topcheck #!/bin/bash date /usr/local/apache/htdocs/topout.txt echo \c ; top -n 1 /usr/local/apache/htdocs/topout.txt I have also tried just: top -n 1 /usr/local/apache/htdocs/topout.txt Both top commands do the same thing. I then have this scheduled in cron to run every 5 minutes. If I run this from the command line I get a nice report. When I run it in cron all I get is the date. Does anybody know why this would happen like this? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
run a script at startup
I have a script that I would like to run every time the computer is restarted. Is there a particular file that I would call it from? It must start after all of the other start-up processes have finished since it relies upon some of them. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
unlock a locked up tty session
This has happened several times recently. I have changed from one tty session to another, come back to the first, and the session is locked up. If I was in an application, it just sits there, if I was at the command line, I cannot type. I can change back to other tty sessions and continue to do work. I generally keep this up until I am down to my last session, then reboot, which clear up the problem, for awhile. I have 2 questions: 1. How do I log off of the locked-up session without restarting? 2. Where would I look to see what is causing the problem to begin with? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: unlock a locked up tty session
-Original Message- From: Matt Price [mailto:[EMAIL PROTECTED] Sent: Thursday, April 22, 2004 5:17 PM To: [EMAIL PROTECTED] Subject: Re: unlock a locked up tty session On Thu, Apr 22, 2004 at 04:15:11PM -0500, Michael Martinell wrote: This has happened several times recently. I have changed from one tty session to another, come back to the first, and the session is locked up. If I was in an application, it just sits there, if I was at the command line, I cannot type. I can change back to other tty sessions and continue to do work. I generally keep this up until I am down to my last session, then reboot, which clear up the problem, for awhile. I have 2 questions: 1. How do I log off of the locked-up session without restarting? 2. Where would I look to see what is causing the problem to begin with? I have no idea about 2, but you aren't by chance typing Control-s, are you? That locks the screen; typing Control-q frees it back up again. (sorry if you know this already...) m Sometimes it is the strangest of things. I am not pressing ctrl + s however Yes ctrl + q does the trick. Thanks. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
ssh stopped working
I had ssh working fine on my debian server running woody. I changed the password of the root user and restarted the machine and am now unable to locally or remotely connect using ssh clients. If I start ssh in debug mode with ssh d it will connect with client tools. I am not getting any messages in /var/log/messages relating to failed connections. I also tried to regenerate the key with sshkeygen t rsa f The command completed successfully, however I am still unable to connect. I have verified hosts.allow and hosts.deny and they are both correct. I have tried changing the password back to the original one and restarting. I tried changing the listening port to 222 and it would still not connect. I have searched google, but am unable to find anything that will help. Thanks in advance for your suggestions.
RE: ssh stopped working
-Original Message- From: Jan Minar [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 7:11 PM To: [EMAIL PROTECTED] Subject: Re: ssh stopped working On Thu, Jan 22, 2004 at 06:42:23PM -0600, Michael Martinell wrote: I changed the password of the root user and restarted the machine and am now unable to locally or remotely connect using ssh clients. snip (0) Perhaps the restart of your machine was what was the cause: maybe you configured the running system, but didn't alter the configfiles? (1) See if sshd is really listening there: netstat -a; nc localhost ssh (2) Are you sure you looked in the appropriate logfile? The default one is /var/log/auth.log (3) Sniff on the connection using tcpdump(8) or friends (4) Maybe it's not the server, but the client where the problem lies? (5) Debugging both sshd ssh with strace(1), you can get a really detailed picture of what's going on; combine with (3). HTH, Jan. -- Jan Minar Please don't CC me, I'm subscribed. x 9 (0) I have restarted the machine several times before without a problem. I have actually not worried much about the server side of ssh since I installed it, and the installer set it up. (1) ssh was not listening, Even when I run sshd -d I don't see anything. On another machine where ssh words, I see the expected output, so I know I typed it in correctly. (2) I tail -f this logfile. The only time it came up with a new entry was when the connection was successful during the sshd -d This entry stated that the connection was successful for root. (3) I used tcpdump and saw the ssh request being made by my client computer. Since ssh wasn't actually listening it did not respond. When in debug mode I also saw the ssh connection. (4) I can connect in debug mode. (5) I did the strace, and it is very detailed. I compared it to a strace from another machine where ssh works, and I don't see any significant differences. Is there anything I should be looking at specifically? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: ssh stopped working
-Original Message- From: Henning Moll [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 7:14 PM To: [EMAIL PROTECTED] Subject: Re: ssh stopped working On Friday 23 January 2004 01:42, Michael Martinell wrote: I changed the password of the root user and restarted the machine and am now unable to locally or remotely connect using ssh clients. Did you use any non-ascii characters in your new root password? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] I used a combination that contained: ! @ The rest were letters and numbers, starting with a letter. No non-standard alt + characters were used. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
delete file based on content
Can anybody tell me what I am doing wrong? I am trying to delete files based upon content. As an example I have files called log1, log2, log3 Log 1 contains the words Processing completed correctly and can be deleted. I tried the following: grep li Processing completed correctly * This gave me the list of logs that were complete. How can I send the results of this to the rm command. The redirection that I tried did not seem to work.
RE: delete file based on content
-Original Message- From: Tom [mailto:[EMAIL PROTECTED] Sent: Monday, January 05, 2004 5:41 PM To: [EMAIL PROTECTED] Subject: Re: delete file based on content On Mon, Jan 05, 2004 at 05:35:26PM -0600, Michael Martinell wrote: [snip] I tried the following: grep -li Processing completed correctly * This gave me the list of logs that were complete. How can I send the results of this to the rm command. The redirection that I tried did not seem to work. #rm `grep -li Processing completed correctly *` This worked nicely at the command line, however when I put in into a script I received the error rm :too few arguments Any other thoughts? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: delete file based on content
Please ignore former post. It was an ID10T error on my part. -Original Message- From: Tom [mailto:[EMAIL PROTECTED] Sent: Monday, January 05, 2004 5:41 PM To: [EMAIL PROTECTED] Subject: Re: delete file based on content On Mon, Jan 05, 2004 at 05:35:26PM -0600, Michael Martinell wrote: [snip] I tried the following: grep -li Processing completed correctly * This gave me the list of logs that were complete. How can I send the results of this to the rm command. The redirection that I tried did not seem to work. #rm `grep -li Processing completed correctly *` This worked nicely at the command line, however when I put in into a script I received the error rm :too few arguments Any other thoughts? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: Linux is not for consumers!
That's why the people doing the documentation should be the power-user who is not familiar with every intricate detail, and has had to struggle and learn the system. That is the person who can usually explain things in a matter that does not bore the general populace to tears. After all, if you're talking about getting a typical, home-user, windows-user to use Linux, you had better be talking at a For Dummies level. Which isn't anything against the windows person, it's just that Linux is allot more in touch with the hardware side than most users would want to be. -Original Message- From: Colin Watson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: Re: Linux is not for consumers! On Thu, Dec 11, 2003 at 05:17:28PM +, Richard Kimber wrote: On Thu, 11 Dec 2003 09:07:16 -0500 Robert L. Harris [EMAIL PROTECTED] wrote: You're right. Too many consumers are too dumb for for Linux, especially Debian. It requires more than a room tempature IQ and the willingness to use it. This may be true of some; but even reasonably intelligent users with quite a lot of experience can come unstuck in those areas with which they are not familiar, simply because the documentation is often so poor. In many cases it will remain poor until people report what they found confusing about it - it's sometimes hard to document something you wrote in a way that somebody unfamiliar with it can understand. -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Virtual PC 5.2
I have tried every card (I think) listed and I have not had any luck with virtual pc. If anybody out there knows what it takes to configure the startx for the virtual pc environment I would be interested. I know that it works, as I had it running with Knoppix at one time. Unfortunately my knoppix disk got a big scratch and I have not downloaded it again. I have been using dpkg-reconfigure xserver-xfree86 to try to set this up. In Response to Hi,I hope this is the place for newbie questions...I am trying to install Debian on Virtual PC 5.2 (on a wintel box)The first part of the install works fine, but I am having troublegetting X-Windows to work. I have edited the XF86Config fileto use the s3 driver, but I think I have made a mistake somewhere.The output from startx (or at least the last part of the output)is: (II) S3VIRGE: driver (version 1.6.13) for S3 ViRGE chipsets: virge,86C3 virge vx, 86C988, virge dx, virge gx, 86C375, 86C385, virgegx2, 86C357, virge mx, 86C260, virge mx+, 86C280, trio 3d, 86C365, trio 3d/2x, 86C362, 86C368 (--) Assigning device section with no busID to primary device (EE) No devices detected. Fatal server error: no screens foundI can't figure out if this means that the driver is not detecting thevideo card, or whether it means I have made a mistake in theconfigurationfile. Any help on this would be appreciated.Adelle.
RE: Virtual PC 5.2
It lists it as a VGA Compatible controller S3 Inc 86c764/765 [Trio32/64/64+] The x error is Assigning device section with no busID to primary device (EE) No devices detected. Fatal Server error: No Screens found. -Original Message- From: Kent West [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 11:49 AM To: [EMAIL PROTECTED] Subject: Re: Virtual PC 5.2 Michael Martinell wrote: I have tried every card (I think) listed and I have not had any luck with virtual pc. If anybody out there knows what it takes to configure the startx for the virtual pc environment I would be interested. I know that it works, as I had it running with Knoppix at one time. Unfortunately my knoppix disk got a big scratch and I have not downloaded it again. I have been using dpkg-reconfigure xserver-xfree86 to try to set this up. Does lspci give you any indication as to what video chipset is detected? In Response to Hi, I hope this is the place for newbie questions... I am trying to install Debian on Virtual PC 5.2 (on a wintel box) The first part of the install works fine, but I am having trouble getting X-Windows to work. I have edited the XF86Config file to use the s3 driver, but I think I have made a mistake somewhere. The output from startx (or at least the last part of the output) is: (II) S3VIRGE: driver (version 1.6.13) for S3 ViRGE chipsets: virge, 86C3 virge vx, 86C988, virge dx, virge gx, 86C375, 86C385, virge gx2, 86C357, virge mx, 86C260, virge mx+, 86C280, trio 3d, 86C365, trio 3d/2x, 86C362, 86C368 (--) Assigning device section with no busID to primary device (EE) No devices detected. Fatal server error: no screens found I can't figure out if this means that the driver is not detecting the video card, or whether it means I have made a mistake in the configuration file. Any help on this would be appreciated. Adelle. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: Virtual PC 5.2
I have tried the vga driver with no success. How do you get the busID? I have tried searching google but have came up empty. -Original Message- From: Derrick 'dman' Hudson [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 1:01 PM To: [EMAIL PROTECTED] Subject: Re: Virtual PC 5.2 On Tue, Dec 09, 2003 at 11:53:29AM -0600, Michael Martinell wrote: | It lists it as a VGA Compatible controller S3 Inc 86c764/765 [Trio32/64/64+] Try the 'vga' driver. It might not be as good as the s3 driver on real hardware, but it should at least be operational and give you something to start with. | The x error is | Assigning device section with no busID to primary device | (EE) No devices detected. The driver you tried was unable to detect the device. Perhaps specifying the busID will solve that. -- One OS to rule them all, one OS to find them, One OS to bring them all and in the darkness bind them, In the Land of Redmond, where the Shadows lie. www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: Virtual PC 5.2
It appears that xfree86 does not support the base S3 card after 3.3.6. It only supports the savage series. Is there a recommended downgrade path that works? Or in other words, what would the apt-get command for this be? -Original Message- From: Michael Martinell [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 1:05 PM To: [EMAIL PROTECTED] Subject: RE: Virtual PC 5.2 I have tried the vga driver with no success. How do you get the busID? I have tried searching google but have came up empty. -Original Message- From: Derrick 'dman' Hudson [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 1:01 PM To: [EMAIL PROTECTED] Subject: Re: Virtual PC 5.2 On Tue, Dec 09, 2003 at 11:53:29AM -0600, Michael Martinell wrote: | It lists it as a VGA Compatible controller S3 Inc 86c764/765 [Trio32/64/64+] Try the 'vga' driver. It might not be as good as the s3 driver on real hardware, but it should at least be operational and give you something to start with. | The x error is | Assigning device section with no busID to primary device | (EE) No devices detected. The driver you tried was unable to detect the device. Perhaps specifying the busID will solve that. -- One OS to rule them all, one OS to find them, One OS to bring them all and in the darkness bind them, In the Land of Redmond, where the Shadows lie. www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: making a floppy for essential modules
Here is how I set up my Dell Set up Debian 3.0r1 on Dell Poweredge 2400 1. Insert Debian disk and boot from it. 2. At boot: prompt type bf24 and press enter. 3. Complete rest of install normally. Make sure to install the c compiler. 4. Download most current kernel. For this example it was 2.4.20 5. Copy kernel to /usr/src 6. tar xzvf linux-2.4.20.tar.gz 7. rm linux 8. ln -s linux-2.4.20 linux 9. ls -al (verify symbolic link you just created) 10. cd /usr/src/linux 11. make menuconfig 12. Select your options in the menu 13. Store configuration to file. This is your backup. 14. make dep 15. make clean 16. make bzImage (ignore warning message) 17. make modules 18. make modules_install 19. make install 20. vi /etc/lilo.conf 21. Verify settings are correct. lilo.conf Samba:/etc# more lilo.conf # /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)', # --- `install-mbr(8)', `/usr/share/doc/lilo/', # and `/usr/share/doc/mbr/'. # +---+ # |!! Reminder !! | # | | # | Don't forget to run `lilo' after you make changes to this | # | conffile, `/boot/bootmess.txt', or install a new kernel. The | # | computer will most likely fail to boot if a kernel-image | # | post-install script or you don't remember to run `lilo'. | # | | # +---+ # Support LBA for large hard disks. # lba32 # Overrides the default mapping between harddisk names and the BIOS' # harddisk order. Use with caution. #disk=/dev/hde #bios=0x81 #disk=/dev/sda #bios=0x80 # Specifies the boot device. This is where Lilo installs its boot # block. It can be either a partition, or the raw device, in which # case it installs in the MBR, and will overwrite the current MBR. # boot=/dev/sda # Specifies the device that should be mounted as root. (`/') # root=/dev/sda1 # Enable map compaction: # Tries to merge read requests for adjacent sectors into a single # read request. This drastically reduces load time and keeps the # map smaller. Using `compact' is especially recommended when # booting from a floppy disk. It is disabled here by default # because it doesn't always work. # # compact # Installs the specified file as the new boot sector # You have the choice between: bmp, compat, menu and text # Look in /boot/ and in lilo.conf(5) manpage for details # install=/boot/boot.b # Specifies the location of the map file # map=/boot/map # You can set a password here, and uncomment the `restricted' lines # in the image definitions below to make it so that a password must # be typed to boot anything but a default configuration. If a # command line is given, other than one specified by an `append' # statement in `lilo.conf', the password will be required, but a # standard default boot will not require one. # # This will, for instance, prevent anyone with access to the # console from booting with something like `Linux init=/bin/sh', # and thus becoming `root' without proper authorization. # # Note that if you really need this type of security, you will # Note that if you really need this type of security, you will # likely also want to use `install-mbr' to reconfigure the MBR # program, as well as set up your BIOS to disallow booting from # removable disk or CD-ROM, then put a password on getting into the # BIOS configuration as well. Please RTFM `install-mbr(8)'. # # password=tatercounter2000 # Specifies the number of deciseconds (0.1 seconds) LILO should # wait before booting the first image. # delay=100 # You can put a customized boot message up if you like. If you use # `prompt', and this computer may need to reboot unattended, you # must specify a `timeout', or it will sit there forever waiting # for a keypress. `single-key' goes with the `alias' lines in the # `image' configurations below. eg: You can press `1' to boot # `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'. # # message=/boot/bootmess.txt prompt # single-key # single-key # delay=100 # timeout=100 # Specifies the VGA text mode at boot time. (normal, extended, ask, mode) # # vga=ask # vga=9 # vga=normal # Kernel command line options that apply to all installed images go # here. See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in # the Linux kernel `Documentation' directory. # # append=ide2=0xd400,0xd002 ide3=0xcc00,0xc802 hdb=ide-scsi hdc=ide-scsi # Boot up Linux by default. # default=Linux image=/boot/vmlinuz-2.4.20-x label=Linux read-only # restricted # alias=1 image=/vmlinuz label=OldLinux read-only # restricted # alias=2 # If you have another OS on this machine to boot, you can uncomment the
crontab
I am definitely doing something wrong here. I want to schedule a job to run once at 12:00 noon. I set it up in cron. It waits until 12:00 noon, runs, and then runs every minute after. Can anybody tell me what I have done wrong? Here is my cron entry for this job. * 12 * * * /usr/sbin/parselog
permamently load a network module
I have configured my network to use a driver, however when the computer restarts it no longer has the network. I installed the driver as follows: /etc/init.d/networking stop copy the module to /lib/modules/2.4.18-bf2.4/kernel/drivers/net /sbin/insmod /lib/modules/2.4.18-bf2.4/kernel/drivers/net/eepro100.o /sbin/lsmod (shows that the module is loaded) I then configured the /etc/network/interfaces the way I wanted it. /etc/init.d/networking start no errors ifconfig shows my new interfaces eth0 and lo eth0 is the one I am trying to configure. I can ping other computers on the network. When I restart eth0 does not show up in ifconfig. The module does not show up when /sbin/lsmod is ran. If I run the networking start command after reboot it tells me that eth0 and lo are configure correctly. However still no output from ifconfig or any network access. Sorry about the long post, but I wanted to be as thorough as possible.
RE: permamently load a network module
It was actually the eepro1000.o driver, not the eepro100.o as I typed earlier. This worked, so now one more problem is solved. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Janssen Sent: Thursday, December 04, 2003 3:01 PM To: [EMAIL PROTECTED] Subject: Re: permamently load a network module Hello Michael Martinell ([EMAIL PROTECTED]) wrote: I have configured my network to use a driver, however when the computer restarts it no longer has the network. I installed the driver as follows: /etc/init.d/networking stop copy the module to /lib/modules/2.4.18-bf2.4/kernel/drivers/net /sbin/insmod /lib/modules/2.4.18-bf2.4/kernel/drivers/net/eepro100.o Was your card not supported by the eepro100 module in 2.4.18? The config file for the 2.4.18-bf2.4 kernel says it already hat that driver compiled as a module. [ module is not loaded at startup ] Either add a line eepro100 to /etc/modules, manually or by using modconf, or add a line alias eth0 eepro100 to /etc/modutils/aliases or your own file in /etc/modutils and run update-modules to save the change to /etc/modules.conf. best regards Andreas Janssen -- Andreas Janssen [EMAIL PROTECTED] PGP-Key-ID: 0xDC801674 Registered Linux User #267976 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
dell poweredge 2400
I am trying to install debian 3.0r1 on a dell poweredge 2400. This has the perc 2/si adaptec aic7880 raid controller installed. I am unable to get this to run. I did try to compile the latest kernel on another machine and boot with those disks however it did not work either. If anybody has any guidance it would be appreciated.
RE: dell poweredge 2400
This seems to have worked. Thanks. Now I have to get the gigabit NIC to work. -Original Message- From: Ken Gilmour [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 1:11 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: dell poweredge 2400 Replying to the message sent by Michael Martinell on Tue, 2 Dec 2003 11:04:31 -0600, received at 19:08:56 on 02/12/2003. Michael Martinell wrote: I am trying to install debian 3.0r1 on a dell poweredge 2400. This has the perc 2/si adaptec aic7880 raid controller installed. I am unable to get this to run. I did try to compile the latest kernel on another machine and boot with those disks however it did not work either. If anybody has any guidance it would be appreciated. If you type bf24 enter when you get to the install menu while booting from the CD you will be able to install 2.4 kernel which should have the latest drivers for that. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]