Re: [CentOS] Replacing disk in RAID array with bigger disk?

2010-12-15 Thread James Bensley
Side Note :Obviously backup what ever is on there! Back on track: Yes, you can replace the first disk with a bigger one, then the second at a later date and expand your LVM to fill out the remaining space. Read up on how to do this, depending on your set up; read about LVM growing/expanding, fs

Re: [CentOS] Dual or quad fast ethernet NICs (that work with CentOS)

2010-12-30 Thread James Bensley
We have an Intel Pro 1000 MT, quad port Gig NIC in a CentOS 5.5 box, works great. -- Regards, James. http://www.jamesbensley.co.cc/ There are 10 kinds of people in the world; Those who understand Vigesimal, and J others...? ___ CentOS mailing list

[CentOS] Basic Permissions Questions

2011-01-26 Thread James Bensley
Hi List :) So, I have a folder1, its owner is user1 who has r+w on the folder. User2 is the group owner who only has read access (when I say user2, I mean the group called user2, because when you make a new user the OS can make them their own group). You can see these permissions below:

Re: [CentOS] Basic Permissions Questions

2011-01-26 Thread James Bensley
On 26 January 2011 10:17, Rafa Griman rafagri...@gmail.com wrote: Directories should have +x permissions. Do a: chmod    0750    /directory And see what happens. Hi Rafa, like a fool I sent that email and then worked this out shortly after :) Still, if I hadn't your response was quick so I

Re: [CentOS] Basic Permissions Questions

2011-01-26 Thread James Bensley
Thanks to all for your replies; the ability to set the group ID (SGID) was the solution I needed, thanks very much guys :D -- Regards, James. http://www.jamesbensley.co.cc/ There are 10 kinds of people in the world; Those who understand Vigesimal, and J others...?

Re: [CentOS] SSH Automatic Log-on Failure - Centos 5.5

2011-01-27 Thread James Bensley
Hello all, I've been reading this thread and have a question. I would like to set up passwordless ssh between two servers for some automated tasks but I don't like the paswordless key's option. How can I supply a passphrase when generating my keys but still have this process automated? --James.

Re: [CentOS] SSH Automatic Log-on Failure - Centos 5.5

2011-01-27 Thread James Bensley
On 27 January 2011 08:48, Cameron Kerr came...@humbledown.org wrote: I think 'keychain' is often used for this. It's a bit like ssh-agent, in that you unlock the key manually (eg. just after starting the system), but it can be accessed by other programs later. I've never used it myself. Ah

[CentOS] Lost root access

2011-02-02 Thread James Bensley
So on a virtual server the root password was no longer working (as in I couldn't ssh in anymore). Only I and one other know it and neither of us have changed it. No other account had the correct privileges to correct this so I'm wondering, if I had mounted that vdi as a secondary device on another

[CentOS] User Details

2011-02-03 Thread James Bensley
I have some questions on how I can perform the following actions from the terminal in CentOS 5.5 final. My Google searches aren't helping and I keep seeing references to the command 'useradd' but this isn't present on my box; -How to add a new user? $ useradd -bash: useradd: command not found

Re: [CentOS] Lost root access

2011-02-03 Thread James Bensley
On 2 Feb 2011 15:07, Robert Heller hel...@deepsoft.com wrote: At Wed, 2 Feb 2011 14:44:01 + CentOS mailing list centos@centos.org wrote: So on a virtual server the root password was no longer working (as in I couldn't ssh in anymore). Only I and one other know it and neither of us

Re: [CentOS] Lost root access

2011-02-03 Thread James Bensley
On 2 Feb 2011 16:36, m.r...@5-cent.us wrote: Well, if you could get on the system at all, and had sudo privileges, no problem. mark No sudo priv's, remote VM so ssh only to a stanard user not in sudoers. --James. (This email was sent from a mobile device)

Re: [CentOS] User Details

2011-02-15 Thread James Bensley
On 3 February 2011 12:45, Nico Kadel-Garcia nka...@gmail.com wrote: But the result for normal users is that command like useradd, chkconfig, and service need to be typed out with their full path, such as /usr/sbin/useradd or /sbin/chkconfig. Thanks Nico, I was aware of this but I couldn't find

[CentOS] Authentication Problems

2011-02-16 Thread James Bensley
Hi List, We have a CentOS VPS running a web site in a DC far away. The chap that dev's this site told me he couldn't SFTP in yesterday, his password was being rejected (I went to his desk to confirm and saw it was telling him the password was incorrect but neither him nor me had changed it and we

Re: [CentOS] Authentication Problems

2011-02-16 Thread James Bensley
On 16 Feb 2011 12:34, Nico Kadel-Garcia nka...@gmail.com wrote: Uh-oh. Has your developer, or you, been editing the /etc/passwd, /etc/shadow, /etc/group, or /etc/gshadow files manually? Nope. And do you use NIS or LDAP for authentication? Nope. And this is a publicly exposed webserver,

Re: [CentOS] Authentication Problems

2011-02-16 Thread James Bensley
Thanks to all for your various replies On 16 February 2011 12:50, Nico Kadel-Garcia nka...@gmail.com wrote: Check the /etc/shadow and /etc/group for consistent numbers of entries, and /etc/group and /etc/gshadow. Do you mean duplicate entries? If so there are none of those. No, I mean

Re: [CentOS] Authentication Problems

2011-02-16 Thread James Bensley
On 16 February 2011 13:00, ... wrote: you realize that there are no passwords in /etc/passwd, so if you delete /etc/shadow and rebuild it using pwconv there will be no passwords in the new /etc/shadow... depending on the exact state, you either won't be able to log in, or the machine will be

Re: [CentOS] Authentication Problems

2011-02-16 Thread James Bensley
On 16 February 2011 14:17, m.r...@5-cent.us wrote: What does lastlog | grep -v Never show you? Hi Mark, This has shown something (potentially) interesting: [root@server ~]# lastlog | grep -v Never Username Port From Latest root pts/2x.x.x.x Wed Feb 16

Re: [CentOS] Authentication Problems

2011-02-16 Thread James Bensley
On 16 February 2011 14:34, ... wrote: yes, that is what doing an su - user as *root* will do, which doesn't tell you much. instead of doing this from a root login, do it from a regular account (you don't routinely log in as root i hope - actually it sounds like you do). if this works, then

Re: [CentOS] Authentication Problems

2011-02-16 Thread James Bensley
Ok, everything is fixed now. I spoke with the VPS providers; The jailed shell was removed from the webdev user (and the webmaster user?) and they reset the password. I logged into ssh as the webdev user to change the password and they told me off for trying and said I must do it through

Re: [CentOS] Authentication Problems

2011-02-18 Thread James Bensley
No --James. (This email was sent from a mobile device) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] Basic Bash Script Question

2011-02-21 Thread James Bensley
I'm stuck trying to work this one out and my Google skills are apparently lacking today. This is a test bash script; #!/bin/bash do something | tee a.log if [ $? -ne 0]; then echo broken fi The problem with this script is $? contains the exit value of the tee command, but I want to check the

Re: [CentOS] Basic Bash Script Question

2011-02-21 Thread James Bensley
On 21 February 2011 11:05, Pascal pax...@gmail.com wrote: man bash search for Pipelines, pipefail and PIPESTATUS. Great, thanks for that, pipefail is exactly what I need :) -- James. http://www.jamesbensley.co.cc/ There are 10 kinds of people in the world; Those who understand Vigesimal,

[CentOS] File-system Corruption

2011-04-06 Thread James Bensley
Hi List, I suppose this isn't strictly CentOS but I'm talking about some 5.5 servers so I thought someone else here may have had the same issues; We power on servers at night via IPMI and shut them down the same way for automation. The problem I'm facing is that the servers are shutdown in about

[CentOS] Dell PE2970 with ATI RN50

2008-11-25 Thread James Bensley
Hey Guys, I'm having a few troubles trying to get Cent OS 5.2 displaying correctly on my Dell PowerEdge 2970 (I also have two PowerVault NF500 III's but they are just getting a little screen lag at the minute, the 2970 is getting white artifacts when I drag a window!). Can anyone help me locate

Re: [CentOS] squidGuard-simple.cgi display fields

2008-12-09 Thread James Bensley
I assume that based on your last message to the list of is there another way to handle redirects other than installing an Apache server and now this, there is no other way? I only ask because I am now setting up squid in my spare time and this is the next task to handle? Regards, James.

Re: [CentOS] Bash Script for Beginners! oh dear :'(

2008-12-23 Thread James Bensley
$line.new rm $line mv $line.new $line i=`expr $i + 1` done 2008/12/23 James Bensley jwbens...@gmail.com: Hey guys, I'm a bit of a beginner (understatement!) with shell scripting and seek help! I am setting up our new squid proxy. Its working a treat and squidGuard is the icing

Re: [CentOS] 2 internet connections and one for backup

2008-12-29 Thread James Bensley
I use load balancing on my firewall, it had a spare interface and our main office is out in the sticks, so I put our second slower connection on the spare interface and set up load balancing so technically its always in use; but our main, higher speed line is less stable (because we couldn't get

[CentOS] xCache install error ($PHP_AUTOCONF?)

2009-01-06 Thread James Bensley
Hey Guys I'm trying to install xcache on our web server (php optcode cacher) but I am having the following error. I have download the xcache tar ball, unzipped and when in the unzipped directory attempting to run phpize but it fails with the following error: [r...@server1882 xcache-1.2.2]#

Re: [CentOS] xCache install error ($PHP_AUTOCONF?)

2009-01-06 Thread James Bensley
Hey Kai, thanks for the response, I think I have found the problem; For some reason if I download the source for xCache or eAccelerator and unpack the tar ball then change to that directory and run phpize I still get the error: Cannot find autoconf. Please check your autoconf installation and the

Re: [CentOS] xCache install error ($PHP_AUTOCONF?)

2009-01-07 Thread James Bensley
Hi David, Thanks for the reply; Yeah I have everything that is required already installed that's why I'm trying to move away from building to xCache source to using the rpm instead. I downloaded the i386 rpm package you linked to me for CentOS 4 (as I am actually running Red Hat 3.4.5-2!) but got

Re: [CentOS] xCache install error ($PHP_AUTOCONF?)

2009-01-07 Thread James Bensley
Hi David, Well, you should mention it first you are running RHEL 3.x. Yes, my bad, sorry about that! So you are running php 4.3.2. Package you are trying to install is built agains Centos 4 Plus php. I have php 4.4.9. Yeah I was hoping the CentOS 4 build might work on RHEL 3.4.5-2?

Re: [CentOS] xCache install error ($PHP_AUTOCONF?)

2009-01-07 Thread James Bensley
Hi David, Thanks for the speed reply; So everything's installed from the source rpm knows nothing about them php is needed by php-xcache-4.4.9_1.2.1-jason.1.x86_64 php-devel is needed by php-xcache-4.4.9_1.2.1-jason.1.x86_64 Try to build it with --nodeps, so it will not looup in rpm db.

Re: [CentOS] xCache install error ($PHP_AUTOCONF?)

2009-01-07 Thread James Bensley
Hey David, Kai; Thanks for the replys. I'd get rid of PHP from source and install php-* packages. David I didn't think rpm packages for php exist, I am searching on google for some to download but I can't find any? -BEGIN GEEK CODE BLOCK- Version: 3.1 GIT/MU/U dpu s: a-- C++$ U+

Re: [CentOS] [OT] Remote control of a WinXP machine from a Linux host

2009-01-11 Thread James Bensley
No, the main problem is that A is behind my ISP's NAT. I want to access it from C (yes, I'll be travelling a lot and C might be just about anywhere). But the problem is that since A is behind a NAT, the connection must be initiated from A's side to C. Also, since C might be behind some other

Re: [CentOS] hardware info

2009-01-14 Thread James Bensley
Look in the /proc directory, use the cat command and read the files in there, cpuinfo, memory etc ;) 2009/1/14 ann kok annkok2...@yahoo.com Hi How can I know the hardware info eg: type of memory No need to turn off the machine Thank you -BEGIN GEEK CODE BLOCK- Version: 3.1

[CentOS] Upgrade to 5.3?

2009-01-26 Thread James Bensley
Hey Listee's! I'm not that up on CentOS so I'd be curious to know if it is possible to upgrade CentOS 5.2 to 5.3 without reinstalling? Perhaps via Yum? Or can you get update RPMs? I hope this doesn't pose to much of a stupid question. Thanks for your help everyone. Regards, James ;)

Re: [CentOS] Upgrade to 5.3?

2009-01-26 Thread James Bensley
Great! Thanks for that I thought it was probably possible! Thanks Barry, that's greatly appreciated! 2009/1/27 Barry Brimer li...@brimer.org: I'm not that up on CentOS so I'd be curious to know if it is possible to upgrade CentOS 5.2 to 5.3 without reinstalling? Perhaps via Yum? Or can you

Re: [CentOS] yum problem

2009-01-26 Thread James Bensley
Can you surf the web ok? Is it a DNS resolution problem, 'Temporary failure in name resolution' ? Have you tried another mirror? -BEGIN GEEK CODE BLOCK- Version: 3.1 GIT/MU/U dpu s: a-- C++$ U+ L++ B- P+ E? W+++$ N K W++ O M++$ V- PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+ DI D+++ G+ e(+)

Re: [CentOS] yum problem

2009-01-27 Thread James Bensley
, Jan 27, 2009 at 9:45 AM, James Bensley jwbens...@gmail.com wrote: Can you surf the web ok? Is it a DNS resolution problem, 'Temporary failure in name resolution' ? Have you tried another mirror? -BEGIN GEEK CODE BLOCK- Version: 3.1 GIT/MU/U dpu s: a-- C++$ U+ L++ B- P+ E? W+++$ N K

Re: [CentOS] More than 2TB RAID...

2009-01-27 Thread James Bensley
I have this problem, I just boot from usb sticks? A 512MB usb pen drive is (just about extinct!) only about £2.00 so get three, make one an ms-dos disk with parted and format it ready. Then pop-in CentOS and install it mounting the usb pen as /boot so grub boots from that msdos partition and then

Re: [CentOS] DNS

2009-01-27 Thread James Bensley
I don't quite follow this thread? Are your pinging your web server, its is hosted with a hosting company (i.e. you don't personal host it on a server you manage?) It could just be the details for their set up (i.e. multiple servers with load balancing across multiple IPs?) -BEGIN GEEK CODE

Re: [CentOS] raid 1 disks upgrade

2009-07-13 Thread James Bensley
Just my two pence; So just to confirm do you have 3 physical raid 1 arrays you want to merge into 1? Or are these 3 partitions on a single physical raid 1array; If its the later I find the easiest way (providing your hardware supports this) is to set one drive as off line (so you are now in

Re: [CentOS] Bash Help

2009-08-17 Thread James Bensley
I can't think of the exact syntax at the minute but something like; if $# = 4 then for i = 1 to ($# - 4) echo arg number $i is $expr($i) next fi $# is the number of args passed so just pass the total number of args minus four ($~-4) That syntax is all wrong, but somebody on

Re: [CentOS] rsync

2009-09-03 Thread James Bensley
Does the script normally when your run it manually with the use of cron? Do you have the correct access permisions to the local directory and the script file? Have you looked in your console log? Try running it without sending the output to /dev/null to see if errors come up? James ;)

Re: [CentOS] OT: Forum or mailing list for Bash-related questions?

2009-09-06 Thread James Bensley
I find that the people at LinuxQuestions are always able to help me if I need some scripting help and the list can't come to my rescue (http://www.linuxquestions.org/) James ;) -- Ogden Nash - The trouble with a kitten is that when it grows up, it's always a cat. -

Re: [CentOS] Segmentation fault

2009-09-18 Thread James Bensley
I am clutching at straws here but would that suggest there is a hardware incompatibility issue, what is you physical set up? -- Pablo Picasso - Computers are useless. They can only give you answers. - http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html

[CentOS] Software Raids Questions (I have only ever used hardware?)

2009-09-27 Thread James Bensley
Hey List; I have no experience with software RAIDs; at work we only use hardware RAIDs and I'm looking to implement, probably a RAID 5 set up at home for a media server however I have a few questions; I have three 1TB drives in various places; one is inside a USB caddy, one is inside my PC and

Re: [CentOS] Software Raids Questions (I have only ever used hardware?)

2009-09-27 Thread James Bensley
2009/9/27 aurfal...@gmail.com: you must format those drive to the desired fs after raiding them Those where my initial thoughts, damn it! Hmm, going to have to bring a sand box server home from work, oh the hassle. Thanks for the confirmation though. ... md (software raid mechanism or watever

Re: [CentOS] Software Raids Questions (I have only ever used hardware?)

2009-09-28 Thread James Bensley
Hi All, Thanks for all your replies. I understand what I have to do now and have read several tutorials to get a good grasp of everything. All your input has been greatly appreciated. Thank you all. Regards, James ;) -- Jonathan Swift - May you live every day of your life. -

Re: [CentOS] vncserver startup error??

2009-10-07 Thread James Bensley
I have no idea what your issue is but for us vncserver works great. If you are having a lot of difficulties then I would suggest un-installing it and starting again as it works pretty well; i.e. all you have to do is install and configure it like any other program and it works. We didn't have any

Re: [CentOS] To all of the group

2009-10-22 Thread James Bensley
Wait a minute, didn't someone just try and offer their help to the community; Where in their email did they mention cpanel? 2009/10/22 Christopher Chan christopher.c...@bradbury.edu.hk DTS-Corp (Knowledgebase) wrote: I am pretty much a newbie at CentOS, and Linux on client side, Just in

Re: [CentOS] To all of the group

2009-10-22 Thread James Bensley
2009/10/22 Chan Chung Hang Christopher christopher.c...@bradbury.edu.hk Sorry, got mixed up. I thought he was talking about what he was doing for his company. Just kind of wary of people who go: Calling all Hackers but they actually mean Calling all Crackers Now what are you on about, are

Re: [CentOS] To all of the group

2009-10-22 Thread James Bensley
Agreed! http://theweekendhaslanded.org/ 2009/10/22 Chan Chung Hang Christopher christopher.c...@bradbury.edu.hk James Bensley wrote: 2009/10/22 Chan Chung Hang Christopher christopher.c...@bradbury.edu.hk Sorry, got mixed up. I thought he was talking about what he was doing for his

[CentOS] CentOS Mirrored On RapidShare [Links Here]

2009-11-01 Thread James Bensley
Hey List, Firstly I am sorry for the length of this email and that you are all having too receive it but the point is that this email will now go into the archive and be indexed by Google (hopefully) and thusly, people will be able to find these links through Google. My goal is to mirror CentOS

Re: [CentOS] RAIDs and JBOD?

2009-11-10 Thread James Bensley
Thanks all for the promptness of your responses and the details you have provided it is greatly appreciated. Since this is a home media server performance isn't imperative and mirroring and RAID 10/0+1 are too expensive so I am going to use my three existing drives of different manufactures as

Re: [CentOS] OMG! Microsoft patents sudo! Linux and MacOS dead!

2009-11-12 Thread James Bensley
Worked for me, see http://downforeveryoneorjustme.com/ -- Regards, James ;) Ogden Nash http://www.brainyquote.com/quotes/authors/o/ogden_nash.html - The trouble with a kitten is that when it grows up, it's always a cat. ___ CentOS mailing list

Re: [CentOS] RAIDs and JBOD?

2009-11-16 Thread James Bensley
Ok, I'm back again... Thanks again to all for more replies and info, all the info of the list members is really appreciated. So I have found this card and wondered if anyone has a second opinion on it (http://www.supermicro.com/products/accessories/addon/AOC-SAT2-MV8.cfm). Seeing as it states on

Re: [CentOS] RAIDs and JBOD?

2009-11-16 Thread James Bensley
Thanks for the speedy replies guys, I had an itch, so I itched it; In the back of my head I couldn't help but think I had miss-read the details about my mobo and that it was PCI-E not PCI-X and I was right, so the previous card is no longer an option although I am not liking the look of it thanks

[CentOS] GGI or Server Based Proxy Recommendations

2009-11-26 Thread James Bensley
Hey List, Can anyone recommend any software like that at http://proxify.co.uk/ for me to install on a server for use as a http proxy? TIA, -- Regards, James ;) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] GGI or Server Based Proxy Recommendations

2009-11-26 Thread James Bensley
I didn't think you could access squid via a web front end like proxify.co.uk? -- Regards, James ;) Mike Ditka - If God had wanted man to play soccer, he wouldn't have given us arms. - http://www.brainyquote.com/quotes/authors/m/mike_ditka.html ___

Re: [CentOS] GGI or Server Based Proxy Recommendations

2009-11-26 Thread James Bensley
Haven't used webmin in a while, I'll give a go! -- Regards, James ;) Pablo Picasso - Computers are useless. They can only give you answers. - http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] SAMBA vs NFS

2009-11-26 Thread James Bensley
I think the file locking only causes a problem with windows clients because of certain files types such as Access databases (.mdb) wanting to lock the file so that other users don't open the same database and corrupt data, for example. -- Regards, James ;) Charles de Gaulle - The better I get

[CentOS] Unable to share directory via Samba?

2009-12-01 Thread James Bensley
So I went to System Administration Server Settings Samba and added a folder to share and initially set it to guest access to get things going. I couldn't access this one and only share on this server with guest access from either my Windows laptop (XP Pro SP3) or a Leopard server (10.5.8) so

Re: [CentOS] Unable to share directory via Samba?

2009-12-01 Thread James Bensley
The server is called Mars with one user, Mars! [m...@mars ~]$ testparm Load smb config files from /etc/samba/smb.conf Processing section [homes] Processing section [printers] Processing section [hestia] Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your

Re: [CentOS] Unable to share directory via Samba?

2009-12-01 Thread James Bensley
This is the repeating entry from my smbd.log from every time I try to mount the share via samba; [2009/12/01 09:32:59, 0] lib/util_sock.c:get_peer_addr(1224) getpeername failed. Error was Transport endpoint is not connected I had read online that this can be caused by samba not making its mind

[CentOS] Redistributing CentOS

2009-02-02 Thread James Bensley
Hey Listees, Just a quick question. I hope this isn't received incorrectly by everyone as I do mean the best for the CentOS project; I am wondering if it would be frowned upon to upload CentOS to my RapidShare account. I understand I can freely distribute CentOS but to what extent? In its

[CentOS] Being Green, Time to make the servers sleep!

2009-03-19 Thread James Bensley
Shadies and Mentlemen; I am trying to be green and put our backup servers to sleep during the day and have them wake on LAN and fire back up at night for our nightly backups as sleep is a sort of low power usage mode. (At this point I would be curious to know the different levels of sleep, what

Re: [CentOS] live audio feed via telephone link

2009-03-26 Thread James Bensley
I would of thought that ISDN would be the perfect solution and if not settle for a standrad POTS line and use one of the folloing; http://www.tieline.com/ http://www.glensound.co.uk/GS-MPI004%20Broadcasters%20Mobile%20Phone.htm http://www.pots.audiotx.com/

[CentOS] Wake On LAN

2009-04-27 Thread James Bensley
Hey Listees I can not work out how to get my Dell NF500 III server to use wake on LAN using the on board Broadcom NetExtreme II BCM5708 NIC card? I'm running Cent OS 5.3 final (i386). Basically, If I had windows server 2k3 installed I know that the cards mobo etc support WOL I would just have

Re: [CentOS] extend raid volume - new drive

2009-04-28 Thread James Bensley
Thanks for the clarification, I have no experience with software raid only hardware which you can probably tell from my response as it was slightly bias to hardware raid options but hey, that's my two pence ;) James. -BEGIN GEEK CODE BLOCK- Version: 3.1 GIT/MU/U dpu s: a-- C++$ U+

Re: [CentOS] extend raid volume - new drive

2009-04-28 Thread James Bensley
Hi there, Just to clarify; You have two 1TB disk that are mirrored (raid 1)? Normally a mirror can't be extended as the mirror is between block 0 to 100 (for example if 100 was the end of the drive) on one drive with block 0 to 100 on the other (if you have used block level mirror,

[CentOS] Rsync/SSH automation problem?

2009-04-29 Thread James Bensley
Hi All, I have a win2k3 server that its backing up to a CentOS 5.3 server. On the Win2k3 machine I plan to have rsync back up nightly to the CentOS server through ssh. The command I am using is as follows: rsync -vrPtz -e ssh myu...@myserver:/remote/backup/folder/ /local/backup/folder/ This all

Re: [CentOS] Wake On LAN

2009-04-29 Thread James Bensley
OK, this is solved now so thought I would post back to the list in case future users search the archives for the same problem and for anyone who is interested ;) Thanks Tony, you answer was partially it. I hadn't correctly enabled WOL on the NIC card: I don't know about your Dell, but on my HP

Re: [CentOS] Rsync/SSH automation problem?

2009-04-29 Thread James Bensley
hi Kai, You can't. Thats what I thought, I have been looking into using certificates and passphrases and that will have to be it! Thank for your help! James ;) -BEGIN GEEK CODE BLOCK- Version: 3.1 GIT/MU/U dpu s: a-- C++$ U+ L++ B- P+ E? W+++$ N K W++ O M++$ V- PS+++ PE++ Y+ PGP t

Re: [CentOS] Rsync/SSH automation problem?

2009-04-29 Thread James Bensley
Thanks for your input, unfortunately the servers will be communicating via the inter-web-net-spagetthi. Its OK I have sorted this with ssh passphrases, the only reason I posted to the list instead of using them in the first place is that I was sceptical of the reliability of using them from a

Re: [CentOS] Rsync/SSH automation problem?

2009-04-29 Thread James Bensley
Maybe you guys should start your own thread about how to reply to emails and how changing the subject isn't really appropriate? -BEGIN GEEK CODE BLOCK- Version: 3.1 GIT/MU/U dpu s: a-- C++$ U+ L++ B- P+ E? W+++$ N K W++ O M++$ V- PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+ DI D+++ G+ e(+)

Re: [CentOS] SSH problems - command not found

2009-05-06 Thread James Bensley
sudo find / -name ssh See if you can find ssh anywhere on the system? -BEGIN GEEK CODE BLOCK- Version: 3.1 GIT/MU/U dpu s: a-- C++$ U+ L++ B- P+ E? W+++$ N K W++ O M++$ V- PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+ DI D+++ G+ e(+) h--(++) r++ z++ --END GEEK CODE BLOCK--

[CentOS] Hibernate Timeout

2009-05-08 Thread James Bensley
Hi Guys n Gals, I've been trying to find out how to set the timeout value for how long my machine will wait before it goes into hibernation via the terminal but I can't find it anywhere? Does any one know? Any help would be greatly appreciated. Regards, James ;) -BEGIN GEEK CODE BLOCK-

[CentOS] Shell Script Pointers?

2009-05-13 Thread James Bensley
Hey Listee's I am trying to write a shell script to sort and compare my blacklist for squidGuard with the nightly updates that come down in a tar ball. It should be rather simple but I'm not to grate at this. The script is to run nightly, it will download the latest blacklist tarball, un tar it

Re: [CentOS] Shell Script Pointers?

2009-05-13 Thread James Bensley
if you're already going to the effort of downloading the entire blacklist every night, why not dump the old database, and just insert the newly downloaded one? Because we also add our own entries to the current blacklist so we are just adding any new entries from the nightly updates of our

Re: [CentOS] Shell Script Pointers?

2009-05-14 Thread James Bensley
I have written my script but I wanted to add this on before and after the update to see the difference but all it returns are zeros? Anyone have any idea why? #!/bin/sh f=0 #Folder count d=0 #Domains count (one per line in each file) u=0 #Url count (one per line in each file) t=0 #Total of

Re: [CentOS] Shell Script Pointers?

2009-05-14 Thread James Bensley
Update: these lines should be: + $X                d=`expr $d + 1` and snip                u=`expr $u + 1`        fi done James ;) -BEGIN GEEK CODE BLOCK- Version: 3.1 GIT/MU/U dpu s: a-- C++$ U+ L++ B- P+ E? W+++$ N K W++ O M++$ V- PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+ DI D+++

Re: [CentOS] Dell 2950 with CentOS 5.3

2009-05-15 Thread James Bensley
We run CentOS 5.3 on 2970's and NF500 III's, all were 5.2 but are now 5.3 and all running ok? -- -- - Iain Morris iain.t.mor...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos --

[CentOS] [OT] Simple Shell Script (while loop)

2009-06-03 Thread James Bensley
Hey Guys, I can not find the corrent syntax for what I am trying to acheive with a while loop. Having said that I'm not exactly sure what you would call it so I have been googling with no success probably for that reason. I am just working with some sub directories except there is one I don't

Re: [CentOS] [OT] Simple Shell Script (while loop)

2009-06-03 Thread James Bensley
Thanks guys the continue command was what I was looking for. Also to those who pointed out the lack of quotation marks around the string, they are on my original script but somehow vanished during the copy and paste operation between my shell window and browser...werid?!?! Still If I hadn't of

[CentOS] System V Init Script

2009-06-03 Thread James Bensley
Hey Listees, I have a question (hopefully quite simple) about the system V init scripts in /etc/init.d. I have an app installed and for some reason it had no system V init script. It has been installed a long while now so I can't quite remember whats going on but basically I remember I wrote the

Re: [CentOS] System V Init Script

2009-06-03 Thread James Bensley
As you spotted john my killing loop was killing the system V script itself also hence it never starting my_app again, so instead a simple if skips the process ID of the system V script itself so it can continue on to start my_app again: I'd think that the pgrep is matching both the

[CentOS] Swap priorities with swapon (Is my swap drive working?)

2009-06-05 Thread James Bensley
Hey Listee's I have a CentOS server with 2GB of ram and a swap drive of 4GB; swapon -a shows my swap drive as 4GB with only about 350 bytes in use (which is fine as my server idles with about 350-400MB ram usage so no swap should be in use. However my one and only swap drive had a priority of

Re: [CentOS] Swap priorities with swapon (Is my swap drive working?)

2009-06-05 Thread James Bensley
It will kick in, regardless of priority. But probably someone will come up with a small c program which eats all available memory :) Regards, Ralph I would be interested in such a program if anyone has one or a mega bash script that can achive the same? If your system starts to swap,

Re: [CentOS] OT: looking for a rsync equivalent for Windows platforms

2009-06-06 Thread James Bensley
Hi! As Lucian said, DeltaCopy IS rsync on windows. If you download that it comes with two or three cygwin dll's, an ssh binary and the rsync binary for windows. DeltaCopy is just a visual front end (GUI) some guy made for the windows cygwin port of rsync but I don't like it but it has normal

Re: [CentOS] OT: looking for a rsync equivalent for Windows platforms

2009-06-06 Thread James Bensley
had a look @ Deltacopy as well, but see that it needs a client server to run No, have a look in the folder where you installed it, it is rsync! DeltaCopy is a visual front end someone made for rsync for windows. Look in the folder it IS rsync. James ;) -BEGIN GEEK CODE BLOCK-

Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread James Bensley
Is there anyway you can tell which field it will be in (i.e. to use as a search clause, so search for the field with X properties?) Ultimately to get the data in the X'th field you are going to need either awk or sed (they can both easily do this, awk probably easier than sed) You need to work

[CentOS] Crontabs

2009-06-10 Thread James Bensley
Hey list, I have several crontabs set up to run at night and I'm not convinced they are running but of course, I'm not here to see for sure! The crontabs are like the following example; 30 20 * * * sh /home/a_user/nightlyscrips/nightly_script_1 /home/a_user/nightlyscripts/`date

Re: [CentOS] Crontabs

2009-06-10 Thread James Bensley
Paul, I think its fair to say, Yo Da Man!. I saw the note at the end of the crontab man pages when trying to find and answer yet for some reason didn't look at crontab (5) man page, what a fool I have been. This has totally resolved the issue, thanks very much...for pointing out im a fool ;)

Re: [CentOS] problems accessing: http://apt.sw.be/

2009-06-11 Thread James Bensley
No I get a page headed with: RPMforge RPM repository for Red Hat, RHEL, CentOS and Fedora Is that correct? -BEGIN GEEK CODE BLOCK- Version: 3.1 GIT/MU/U dpu s: a-- C++$ U+ L++ B- P+ E? W+++$ N K W++ O M++$ V- PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+ DI D+++ G+ e(+) h--(++) r++ z++

[CentOS] Shell Script: Simple array usage = bad substitution?

2009-06-19 Thread James Bensley
Hey Guys n Gals; I have some arrays that I can't seem to expand correctly (if that's the correct word?), imagine the following example: #!/bin/bash myArray=(First Second Third) First=(Monday Tuesdays Wednesday) Second=(One Two Three) Third=(A B C) for ((i=0;i${#myarr...@]};i++)) do for

Re: [CentOS] Unable to share directory via Samba?

2009-12-01 Thread James Bensley
Hmm some progress has been made. I removed the smb.conf file and wrote a new one manually but for some reason it only wants to let me connect as Guest and not a real user with some privileges? [global] workgroup = my group server string = Mars netbios name = Mars security = SHARE load printers

Re: [CentOS] Unable to share directory via Samba?

2009-12-01 Thread James Bensley
No I haven't but thanks for having a guess xD -- Regards, James ;) Ogden Nash - The trouble with a kitten is that when it grows up, it's always a cat. - http://www.brainyquote.com/quotes/authors/o/ogden_nash.html ___ CentOS mailing list

Re: [CentOS] Migrating to RAID

2009-12-10 Thread James Bensley
You will have to reinstall because if you add two more 500GB drives to make your set up into a three drive horse, you then need to format each drive and synchronise them together creating the new logical RAID volume so no data can be kept on said disks prior to the creation of the RAID. HTH! --

Re: [CentOS] Unable to share directory via Samba?

2009-12-10 Thread James Bensley
Thanks for all the input everyone, Basically I trashed the smb.conf and the folder I wanted to share, restarted the machine, re-wrote the smb.conf (again) and re-made the directory and set permissions etc, restarted the machine and all is well! Thanks all for your input it has helped me write

  1   2   >