[newbie] Server keeps falling asleep :(
I have Mandrake Corp Server 1.0.1 running email and http for my small home office. It seems that my server falls asleep every night from a lack of activity. If I try to log in to my pop3 server from my remote office via the internet the server won't respond. I have to log in 1st from my home network before I leave the house to wake up the server. Once I do that it works all day without a problem. I am not sure what might cause this. Can anyone enlighten me? TIA Steve
[newbie] Help! Newbie needs help with bash script :(
I wrote a bash search script that creates a directory named after the search word and greps all the files and copies the ones that match to the new directory and generates a printed output of the file. To make a very long story short I have about 150 more searches to perform and each one takes between 10 and 15 mins searching over 12,000 files. This is the first bash script I have evr written and I am sure it could be done better but it works for me for now. What I really need is a quick and dirty way for the script to pull the search words from a list so that I can go home tonight :) The script is as follows: == # /bin/bash mkdir ../success/"$1" echo "" ../success/"$1"/"$1_success" echo "###" ../success/"$1"/"$1_success" echo "###" ../success/"$1"/"$1_success" echo "Files that contain the search string $1" ../success/"$1"/"$1_success" echo "###" ../success/"$1"/"$1_success" echo "###" ../success/"$1"/"$1_success" echo "" ../success/"$1"/"$1_success" grep -l "$1" dump1* ../success/"$1"/"$1_success" grep -l "$1" dump2* ../success/"$1"/"$1_success" grep -l "$1" dump3* ../success/"$1"/"$1_success" grep -l "$1" dump4* ../success/"$1"/"$1_success" grep -l "$1" dump5* ../success/"$1"/"$1_success" grep -l "$1" dump6* ../success/"$1"/"$1_success" grep -l "$1" dump7* ../success/"$1"/"$1_success" grep -l "$1" dump8* ../success/"$1"/"$1_success" grep -l "$1" dump9* ../success/"$1"/"$1_success" grep -l "$1" plow* ../success/"$1"/"$1_success" grep -l "$1" excel* ../success/"$1"/"$1_success" cp $(cat ../success/"$1"/"$1_success") ../success/"$1" lpr -PBrother ../success/"$1"/"$1_success" As you can see it is envoved by ./scriptname searchword I would like to do it by ./scriptname searchlist Could some one point me to a quick way to do this so I can get the heck out of here? A million TIA Steve
RE: [newbie] Emergency--Is there any way to undelet a file?
Thanks but the page is 404 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of L. H. LOO Sent: Monday, February 19, 2001 10:17 PM To: [EMAIL PROTECTED] Subject: Re: [newbie] Emergency--Is there any way to undelet a file? www.linuxave.net/~recover/index.html or http://linux.davecentral.com/4126_sysutilfile.html At 19-02-2001 -0500, you wrote: Boy oh boy did I just mess up big time! Please tell me there is a way I can undelete a directory. Thanks, Steve just sitting here in a world of hurt :(
[newbie] APC BackUPS 500 and autoshutdown
I have an APC BackUPS 500 hooked up to a 7.1 box using the cable provided with the UPS. I installed the apcupsd-3.8.0-1mdk-i586.rpm and followed the instructions for setting up the config file for my UPS. The daemon doesn't power down the Linux box and I am not sure what I did wrong. Below is a copy of my apcupsd.conf file TIA Steve ## apcupsd.conf v1.1 ## # # for apcupsd release 3.8.0 # # "apcupsd" POSIX config file # # If you have used a prior version of apcupsd, the CONTROL script file # (/sbin/powersc) has now been replaced by /etc/apcupsd/apccontrol. # Consequently, the CONTROL configuration statement is obsolete. # The following configuration statements have been replaced by scripts # called from /etc/apcupsd/apccontrol, and thus are obsolete: # BATTCMD, LIMITCMN, LOADCMD, PWRCMD, REBOOTCMD, REMOTECMD, RETCMD, # and TIMECMD. # # # # = General configuration parameters # # UPSCABLE [ simple | smart | #940-00(20B,23A,24B,24C,24G,95A,95B,95C) | #940-15(24C) | #ether ] # defines the type of cable that you have. UPSCABLE simple # # UPSTYPE [ backups | sharebasic | netups | # backupspro | smartvsups | # newbackupspro | backupspropnp | # smartups | matrixups | sharesmart ] # defines the type of UPS you have. UPSTYPE backups # # #DEVICE string /dev/serial port # name of your serial port DEVICE /dev/ttyS0 # #LOCKFILE path to lockfile # path for serial port lock file LOCKFILE /var/lock # # # # configuration parameters used during power failures == # # Note: BATTERYLEVEL, MINUTES, and TIMEOUT work in conjunction, so # the first that occurs will cause the initation of a shutdown. # # If during a power failure, the remaining battery percentage # (as reported by the UPS) is below or equal to BATTERYLEVEL, # apcupsd will initiate a system shutdown. BATTERYLEVEL 5 # # # If during a power failure, the remaining runtime in minutes # (as calculated internally by the UPS) is below or equal to MINUTES, # apcupsd, will initiate a system shutdown. MINUTES 5 # # # If during a power failure, the UPS has run on batteries for TIMEOUT # many seconds or longer, apcupsd will initiate a system shutdown. # A value of 0 disables this timer. # # Note, if you have a Smart UPS, you will most likely want to disable #this timer by setting it to zero. That way, you UPS will continue #on batteries until either the % charge remaing drops to or below BATTERYLEVEL, #or the remaining battery runtime drops to or below MINUTES. Of course, #if you are testing, setting this to 60 causes a quick system shutdown #if you pull the power plug. # If you have an older dumb UPS, you will want to set this to less than #the time you know you can run on batteries. TIMEOUT 10 # # # Time in seconds between annoying users to signoff prior to # system shutdown. 0 disables. ANNOY 0 # # Initial delay after power failure before warning users to get # off the system. ANNOYDELAY 60 # # The condition which determines when users are prevented from # logging in during a power failure. # NOLOGON string [ disable | timeout | percent | minutes | always ] NOLOGON disable # # # # Configuration statements the network information server = # # NETSERVER [ on | off ] on enables, off disables the network # information server. If netstatus is on, a network information # server process will be started for serving the STATUS and # EVENT data over the network (used by CGI programs). NETSERVER off # # SERVERPORT port default is 7000 # port to use for sending STATUS and EVENTS data over the network. # It is not used unless NETSERVER is on. If you change this port, # you will need to change the corresponding value in the cgi directory # and rebuild the cgi programs. SERVERPORT 7000 # # If you want the last few EVENTS to be available over the network # by the network information server, you must define an EVENTSFILE. # Only the last 50 or so events are kept. EVENTSFILE /var/lib/apcupsd/apcupsd.events # # # # # = Configuration statements to control apcupsd system logging # # Time interval in seconds between writing the STATUS file; 0 disables STATTIME 0 # # Location of STATUS file (written to only if STATTIME is non-zero) STATFILE /var/lib/apcupsd/apcupsd.status # # # LOGSTATS [ on | off ] on enables, off disables # Note! This generates a lot of output, so if # you turn this on, be sure that the # file defined in syslog.conf for LOG_NOTICE is a named pipe. # You probably do not want this on. LOGSTATS off # # # Time interval in seconds between writing the DATA records to # the log file. 0 disables. DATATIME 0 # # FACILITY defines the logging facility (class) for logging to syslog. # If not specified, it defaults to "daemon". This is useful # if you want to separate the data logged by apcupsd from other # programs. FACILITY local0 # # # # # == Configuration
[newbie] Emergency--Is there any way to undelet a file?
Boy oh boy did I just mess up big time! Please tell me there is a way I can undelete a directory. Thanks, Steve just sitting here in a world of hurt :(
[newbie] Need a recommendation for a good DATA RECOVERY Company
Can anyone recommend a good data recovery company that specializes in Linux data recovery? A whole directory tree was deleted today and it looks like we are going to have to send it out to try and get it back. TIA Steve
RE: [newbie] VPN Client software
FWIW, A company called Netmax makes a Linux based VPN out of the box. They clain it can be up and running in about 15mins. It cost $499 :( But if you can get work to pay for it it may be worth the money. Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bob Currey Sent: Wednesday, January 17, 2001 2:58 AM To: [EMAIL PROTECTED] Subject: RE: [newbie] VPN Client software Maybe nobody else here has been able to both figure out the how to's and get it to work? That wouldn't be too surprising on a Newbie list. FWIW, I have successfully setup VPN on NT Servers, and clients on Win/95, Win/98 (1 machine unsuccessful, even reloaded - I refuse to pay M$ $245 to help, screw that machine), and Win/2000. With Linux, I tried to read the VPN how to and mini how to a week ago, figuring to use it to connect to a site I was having problems connecting to with a Win/98 machine, and after a few hours of reading, decided I didn't have the time to get Linux VPN capability as complex as it looked. Maybe its just that the M$ stuff is simplistic or something, options wise, but it was nowhere near as daunting to figure out how to set it up. If anyone actually gets a Linux VPN client to connect and work on an NT Server, please post what software versions are running and what options are set to on the server and client so as to provide a trail of crumbs for those of us unable to sort it all out and make sense of it. It makes me feel better that it wasn't just me. Sorry I had no solution to offer... BobC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mark Johnson Sent: Tuesday, January 16, 2001 2:53 PM To: '[EMAIL PROTECTED]' Subject: RE: [newbie] VPN Client software I've been beating my head against this one for a while. No one here has responded to my VPN questions. My problem is that I have to connect to a VPN server running W2K. Consequently, it's my impression that I have to do PPTP because that's how MS VPN server operates. Check out: www.freeswan.org http://neurosis.hungry.com/~ben/software/pptp.html and of course the VPN HOW-TOs If you can, let me know if you get this working... -Original Message- From: Wignall, Mark T [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 1:45 PM To: [EMAIL PROTECTED] Subject: [newbie] VPN Client software Greets Penguin-Pals! Looking for something similar to NT2000's built in feature to VPN to our corporate network. Commercia/Share/Freeware are all fine. I'm NOT looking to do ssh/PPTP if I don't have to. I also, don't want to run linux masquerading if I don't have to as both my machines at home NT and Linux, each have their own static IP's, so don't see the need. Can any of you guru's out there help me out? TIA, __ Mark T. Wignall MES Database Administrator Xerox Corporation Email: [EMAIL PROTECTED] (503) 685-3071 (Office) (503) 703-9383 (Cell) (503) 599-6213 (Pager)
RE: [newbie] VPN Client software
Sorry It's aserver -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mark Johnson Sent: Wednesday, January 17, 2001 9:57 AM To: '[EMAIL PROTECTED]' Subject: RE: [newbie] VPN Client software $499 would be outrageous for a VPN client... In my opinion that should be as standard as a mail and news reader that comes with your distribution, or just plain built-in kernel support that comes along with ppp and etc... -Original Message- From: Steve Gulick [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 6:05 AM To: [EMAIL PROTECTED] Subject: RE: [newbie] VPN Client software FWIW, A company called Netmax makes a Linux based VPN out of the box. They clain it can be up and running in about 15mins. It cost $499 :( But if you can get work to pay for it it may be worth the money. Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bob Currey Sent: Wednesday, January 17, 2001 2:58 AM To: [EMAIL PROTECTED] Subject: RE: [newbie] VPN Client software Maybe nobody else here has been able to both figure out the how to's and get it to work? That wouldn't be too surprising on a Newbie list. FWIW, I have successfully setup VPN on NT Servers, and clients on Win/95, Win/98 (1 machine unsuccessful, even reloaded - I refuse to pay M$ $245 to help, screw that machine), and Win/2000. With Linux, I tried to read the VPN how to and mini how to a week ago, figuring to use it to connect to a site I was having problems connecting to with a Win/98 machine, and after a few hours of reading, decided I didn't have the time to get Linux VPN capability as complex as it looked. Maybe its just that the M$ stuff is simplistic or something, options wise, but it was nowhere near as daunting to figure out how to set it up. If anyone actually gets a Linux VPN client to connect and work on an NT Server, please post what software versions are running and what options are set to on the server and client so as to provide a trail of crumbs for those of us unable to sort it all out and make sense of it. It makes me feel better that it wasn't just me. Sorry I had no solution to offer... BobC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mark Johnson Sent: Tuesday, January 16, 2001 2:53 PM To: '[EMAIL PROTECTED]' Subject: RE: [newbie] VPN Client software I've been beating my head against this one for a while. No one here has responded to my VPN questions. My problem is that I have to connect to a VPN server running W2K. Consequently, it's my impression that I have to do PPTP because that's how MS VPN server operates. Check out: www.freeswan.org http://neurosis.hungry.com/~ben/software/pptp.html and of course the VPN HOW-TOs If you can, let me know if you get this working... -Original Message- From: Wignall, Mark T [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 1:45 PM To: [EMAIL PROTECTED] Subject: [newbie] VPN Client software Greets Penguin-Pals! Looking for something similar to NT2000's built in feature to VPN to our corporate network. Commercia/Share/Freeware are all fine. I'm NOT looking to do ssh/PPTP if I don't have to. I also, don't want to run linux masquerading if I don't have to as both my machines at home NT and Linux, each have their own static IP's, so don't see the need. Can any of you guru's out there help me out? TIA, __ Mark T. Wignall MES Database Administrator Xerox Corporation Email: [EMAIL PROTECTED] (503) 685-3071 (Office) (503) 703-9383 (Cell) (503) 599-6213 (Pager)
[newbie] Drive set up for RAID
I am real new to this so please bear with me. I am trying to set up software RAID on a small office server. I have 2 30gig drives hda and hdb. I have mandrake corporate server 1.0 already installed on hda in the following partions: hda1 399mbswp hda2 249mb/ hda5 6805mb /usr hda6 3146mb/var hda7 18027mb /home hdb is not currently partitioned. My question is what is the proper way to partion hdb? DO I make the partions linux native? or Linux RAID or what? I am a bit confused. Any guidance would be appreciated. TIASteve
[newbie] RAID 1 Set up question
I have two identical ide drives that I want to set up RAID 1 on. I already partitioned and installed hda and am getting ready to partition hdb the partitions on hda are as follows: hda1 swap hda2 / hda5 /usr hda6 /var hda7 /home I am not sure of the proper way to partition hdb. Do I create the same sized partitions as on hda and just name them some thing diferent then create the raid devises and point them where they need to go? Or do I have to partion hdb so that I have md0 md1 md2 md3 md4 md5 I am a bit confused any advise would help. TIA Steve
[newbie] Software RAID setup question
Please have patients with me as I have never used RAID before. I have an existing partitioned drive with corp server 1.0 installed on it and I want to set up RAID mirroring on another drive that is exactly the same make and model as the source drive. Do I have to partition both drives the same or does theRAID do that? Can I set up RAID without repartioning the source drive? or will it hurt any data on the existing source drive? TIA Steve
RE: [newbie] Setting up Samba as Passowrd Server for win98
Thanks Bill! I have it working now -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill ShirleySent: Wednesday, January 10, 2001 10:14 PMTo: [EMAIL PROTECTED]Subject: RE: [newbie] Setting up Samba as Passowrd Server for win98 Look in /usr/doc/samba-2.0.7/docs/textdocs . You might also check out www.samba.org Basicly, you want: workgroup = WORKGROUP domain master = yes preferred master = yes local master = yes logon script = %U.bat logon path = \\%L\Profiles\%U logon drive = h: logon home = \\%L\%U\.profile and probably: security = user encrypt passwords = yes smb passwd file = /etc/smbpasswd username map = /etc/smbusers wins support = yes and you should have: [netlogon] comment = Network Logon Service path = /home/lan/shares/netlogon guest ok = yes writable = no share modes = no [Profiles] path = /home/lan/shares/profiles# browseable = no# guest ok = yes browseable = yes write list = @smbusers force group = lanadmin create mask = 0771 directory mask = 0770 map system = Yes map hidden = Yes map archive = Yes available = yes Of course, change the paths to the apropriate directory names. The permissions should be: drwxrwx--- 2 bill smbusers 4096 Sep 30 11:30 netlogon/drwxrwx--- 2 bill smbusers 4096 Sep 30 11:30 profiles/ Bill PS. I have a group "smbusers" that I put all samba users in. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Steve GulickSent: Wednesday, January 10, 2001 11:14 AMTo: [EMAIL PROTECTED]Subject: [newbie] Setting up Samba as Passowrd Server for win98 Can some one point me to a source of info on how to properly configure samba with webmin to act as a PDC for password authentication of win98? TIA Steve
RE: [newbie] Boot disk for Corp Server 1.1 that enables DMA?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of civileme Sent: Sunday, January 07, 2001 12:19 PM To: [EMAIL PROTECTED] Subject: Re: [newbie] Boot disk for Corp Server 1.1 that enables DMA? On Sunday 07 January 2001 17:07, you wrote: I'm sorry, I am kind of new at all this I believe I mislead you in thinking that the system is already installed. It is not. I am trying to install corp server 1.1 on a box with 2 ata100 drives and I can't get corp server 1.1 to find the drives. What do I have to do to fix this? I have an Abit KT7-RAID motherboard Thank you, Steve OK There is I believe a standard 33 MHz ide channel on board Put an ide disk on that port and do a minimal install run "cat /proc/pci" from a console--you do not need X somewhere in the output you will see five numbers of a form like 0x9902 0xa740, and so on record the first two of these numbers and restore your setup to its original form to the second number add 2 in hexadecimal arithmetic. Now fire it up and at the splash screen hit F1 type in linux idebus=33 ide2=0x9902 0xa742 but use your numbers, not mine If you have two sets of 5 numbers, that's OK--one of them will be ide2 and the other ide3 which is which? Well, it doesn't hurt to experiment on that since nothing is committed til the install is done. Now it should see your controller but limit it to 33MHz for the install. And, you need to put the ide2= and perhaps ide3= to the append at the bootloader step of install as well. It will not be possibel to make corporate server see the ATA/100 drives as 100s--66 is the limit for that kernel. Corporate servers are not issued on the same schedule as desktops and are based on proven software exclusively. The reasons for this are marketing-based Server customers are usually large systems who don't like to upgrade every 4-6 months. Civileme Thanks! I'll give it a try. Steve
RE: [newbie] 7.2 Install Woes
Thanks! I have it working now. I downloaded the latest install boot images and they fixed the problem. The new problem I am experiencing now is when I do a 100% install of 7.2 I get to cd4 and it reports package headers missing and skips some of the packages. Then quits the install before finishing. This is the store bought version of 7.2. Any ideas or work arounds for this? I also was wondering if there was a install boot image that enables UDMA in Corporate server 1.1? I really like the ease of setup for the Corporate Server but can't seem to get it to recogonize my drives on the ATA100 ports. Thanks for all you help! Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of civileme Sent: Saturday, January 06, 2001 4:06 AM To: [EMAIL PROTECTED] Subject: Re: [newbie] 7.2 Install Woes On Friday 05 January 2001 16:08, you wrote: I am trying to install 7.2 and after it loads the second stage install it gives me an error message: an error occured insmod'ing module ide-cd failed Any idea how to fix this? TIA Steve I think you are using a hd.img file from cooker or other files from cooker. That was one of their errors for a few days. Otherwise you have a media problem or possibly a drive problem. Civileme And to make a better guess, we need more info. Like are you installing from CD? Where did you get the CDs if so, and a description of procedure used. Civileme
[newbie] 7.2 Install Woes
I am trying to install 7.2 and after it loads the second stage install it gives me an error message: an error occured insmod'ing module ide-cd failed Any idea how to fix this? TIA Steve
[newbie] Boot disk for Corp Server 1.1 that enables DMA?
Is there an updated boot img for corp server 1.1 that will enable dma access as the new 7.2 boot img does? TIA Steve
RE: [newbie] 7.2 Install Woes
Nevermind fixed it with the updated boot disk Sorry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Steve Gulick Sent: Friday, January 05, 2001 10:08 AM To: newbie@mandrake Subject: [newbie] 7.2 Install Woes I am trying to install 7.2 and after it loads the second stage install it gives me an error message: an error occured insmod'ing module ide-cd failed Any idea how to fix this? TIA Steve
[newbie] ABit KT7-RAID Motherboaard
Anyone know what drivers to use for this board so that ATA100 and RAID will work? TIA STeve
RE: [newbie] ABit KT7-RAID Motherboaard
I don't know Greg. When I install Mandrake it asks me to choose my scsi card. Mandrake install does not list the High Point HTP370 controller. If I bypass it install won't find the drives. I'm not sure how to get around this. Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Greg Sarsons Sent: Thursday, January 04, 2001 11:01 PM To: [EMAIL PROTECTED] Subject: Re: [newbie] ABit KT7-RAID Motherboaard why would you need drivers for this board? Mine is working fine with an IBM ATA-100 drive. Just make sure you have the latest BIOS installed and double check the BIOS settings. I initially have some trouble but now everything is fine. Greg Steve Gulick wrote: Anyone know what drivers to use for this board so that ATA100 and RAID will work? TIA STeve -- It said use Windows 98 or better so I installed Linux.