[CentOS] Adding a new disk to an existing raid 10

2014-04-01 Thread Roland RoLaNd
Dear all,
I'm not used to handling software raid.
I've inherited a server which has raid 10 set.
one of our disks failed, and it's to be replaced today.
My question is; any hint how to add this new disk to the existing raid array ?
first thought is :- Create identical partitions as other disks in the array i'd 
like to add it to.- add it to raid.
Though i'm extremely worried of messing things up and wiping all my data.
Any hint would be appreciated 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Centos as Gateway ? (Router/transparent proxy)

2011-05-02 Thread Roland Roland

  Hi All,

I'm lately suffering from Quota abuse at home. believe it or not my 
teenagers are eating through my allowed quota.

Hence, i'm thinking of setting up a centos machine to work as such:

HDSL modem(natted to an onboard dhcp service for lan users) - Centos - 
  Switch - LAN users


Hw specs:

3 GB ram
3.0 core 2 duo
2 X 1 TB HDD
2 X 1 Gb NIC


Centos will contain the following:

 1. DHCP # is there a way i could use the modem's dhcp service 
instead? or using a centos based dhcp service is better?
 2. Samba # sharing files for lan users
 3. Squid
 4. clamav
 5. OpenRadius # wifi authentication
 6. knockd service (anyone tried it? i read about this service a few 
weeks ago and am wondering if it's worth giving it a shot... for public 
access to the server )
 6. Things which are needed :
 a. Ability to separate Wireless router from LAN. (thinking 
of vlans though as i have a dumb switch am thinking of adding a 3d NIC 
to my desktop and dedicating it to the wifi ? )
 b. Accountablity of quota and bandwidth used (i was 
thinking of SARG and SQstat for squid)
 c. using some sort of shell script that will parse squid 
logs (mysar will help me access squid logs through mysql) and if someone 
bypassed their allowed quota for the day they will be moved to a delay 
pool with lower bandwidth.

As you noticed above, my whole connection management is relying on 
squid,  i'm worried that it will process only traffic that's forwarded 
to port 80 instead of everything going through the server. any idea if 
thats the case?


I previously thought of untangled, and IPCOp, though i don't want a 
standalone router as i'd like to be able to use VirtualBox over it 
occasionally.
waiting for your advice about the above setup, keep in mind that i don't 
mind changing the setup if there's something better to use, actually i 
do prefer it.

Best,


--Roland
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] /etc/bashrc help!

2011-04-19 Thread Roland Roland

  Dear all,

i've appended the below to /etc/bashrc it works like a charm with ssh 
connections though SFTP sessions fail since the below is being sent to 
the intiator.
any way of limiting the below to none sftp sessions? or any other idea 
for it to work?


# If id command returns zero, you’ve root access.
if [ $(id -u) -eq 0 ];
then # you are root, set red colour prompt
echo ###
echo ### You are now working as ROOT. ###
echo ### Pay attention to what you type. ###
echo ###
PS1=\\[$(tput setaf 1)\\]\\u@\\h:\\w #\\[$(tput sgr0)\\]
else # normal
echo
echo  ###
echo Welcome $(whoami), here's something to start your day with:
echo
echo `sh /etc/lines.sh /etc/quotes.txt`
echo  
echo
PS1=[\\u@\\h:\\w] $
fi



Thanks,

--Roland
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Failed to start new browser session: Error while launching browser on session null

2011-03-28 Thread Roland RoLaNd

Hope this email finds you well.

I need your advice with something if you can help out.

I have an RC serer (selenium rc) which is running on a centos 5.2 and another 
on a 5.4 machine.
if i run it through X server, in other words if i run the server while 
connected to VNC. 
it works fine.
but if i run it through ssh, it will start normally though upon test execution 
it will fail with the following error:


11:05:01.571 INFO - Preparing Firefox profile...
Error: no display specified
11:05:21.818 ERROR - Failed to start new browser session, shutdown browser and 
clear all session data
java.lang.RuntimeException: Timed out waiting for profile to be created!
 
11:05:21.833 INFO - Got result: Failed to start new browser session: Error 
while launching browser on session null


any idea how i can solve this?

Thanks,

--Roland  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] BUG: soft lockup CPU stuck for 10seconds (Server went down)

2011-03-08 Thread Roland RoLaNd

well i'm already running that kernel version.
i've upgraded to the latest *194*


 Date: Mon, 7 Mar 2011 01:46:45 -0600
 From: thea...@sasktel.net
 To: centos@centos.org
 Subject: Re: [CentOS] BUG: soft lockup CPU stuck for 10seconds (Server went 
 down)
 
 On Mon, 07 Mar 2011 09:31:42 +0200
 Roland RoLaNd wrote:
 
  BUG: soft lockup - CPU#0 stuck for 10s! [java:13959]
 
  i tried googling with no luck for direct relevant info.
 
 The first google result for the above string takes me here:
 
 http://bugs.centos.org/view.php?id=3582
 
 Which in turn contains a reference that takes me here:
 
 https://bugzilla.redhat.com/show_bug.cgi?id=484590
 
 And it appears that this issue  was fixed with kernel version 2.6.18-164.
 
 -- 
 MELVILLE THEATRE ~ Melville Sask ~ www.melvilletheatre.com
 www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER!
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] BUG: soft lockup CPU stuck for 10seconds (Server went down)

2011-03-07 Thread Roland RoLaNd

i couldn't connect to it to check through ssh.
and when it comes to the console, i couldn't do anything either as a repetitive 
output as the screen shot attached keeps appearing.

this is an internal testing server with apache and mysql installed.
usually the load average is 8 % max. 

server's specs:

Intel Core i7-950 3.06GHz 8MB Quad Core 4.8GT/s
8 GB of RAM

it's worth mentioning that i have software raid and LVM set on it.
iv'e reach online that the weekly raid schedule may cause this though i cant 
seem to b sure of that any advice how to check?




 Date: Mon, 7 Mar 2011 09:24:16 -0800
 From: jpelt...@sfu.ca
 To: centos@centos.org
 Subject: Re: [CentOS] BUG: soft lockup CPU stuck for 10seconds (Server went 
 down)
 
 - Original Message -
 | Hello,
 | 
 | Today my server stopped responding.
 | i went to the console and on the screen there were a continuous loop
 | of the following info shown on the screen:
 | 
 | BUG: soft lockup - CPU#0 stuck for 10s! [java:13959]
 | 
 | and alot of other information.
 | ii've took a screen shot of the info shown , you can find it under the
 | following url: http://img585.imageshack.us/i/img00012201103070833.jpg/
 | and had to hard reset for it to be back up and running.
 | 
 | i tried googling with no luck for direct relevant info.
 | so hoping you can help out
 | 
 | Thanks,
 | 
 | --Roland
 | 
 | ___
 | CentOS mailing list
 | CentOS@centos.org
 | http://lists.centos.org/mailman/listinfo/centos
 
 This is likely due to thread deadlock.  What is the load on the machine at 
 the time that this error occurs?  I've seen this very error when running The 
 Mathworks Distributed Computing Toolbox server.  The machine would become 
 very unsettled when it tried to run on more than four 2 CPUs.  How many 
 CPUs are in this system?
 
 -- 
 James A. Peltier
 IT Services - Research Computing Group
 Simon Fraser University - Burnaby Campus
 Phone   : 778-782-6573
 Fax : 778-782-3045
 E-Mail  : jpelt...@sfu.ca
 Website : http://www.sfu.ca/itservices
   http://blogs.sfu.ca/people/jpeltier
 
 
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] BUG: soft lockup CPU stuck for 10seconds (Server went down)

2011-03-06 Thread Roland RoLaNd

Hello,

Today my server stopped responding.
i went to the console and on the screen there were a continuous loop of the 
following info shown on the screen:

BUG: soft lockup - CPU#0 stuck for 10s! [java:13959]

and alot of other information.
ii've took a screen shot of the info shown , you can find it under the 
following url: http://img585.imageshack.us/i/img00012201103070833.jpg/
and had to hard reset for it to be back up and running.

i tried googling with no luck for direct relevant info.
so hoping you can help out

Thanks,

--Roland
  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] cronjob to intiiate checkdisk ?

2011-02-28 Thread Roland RoLaNd

Dear all,

I'm trying to find a way to automate checkdisk every 1 month on a weekend.
in other words i want checkdisk to run every saturday morning.

i can of course change the default mount/count though that wont let me control 
WHEN it will happen.

so i need your expert opinion with the following if possible: 

1. reboot into single user mode
2. start checkdisk for all disks
3. once done, reboot into runlevel 3

i've did a certain script that force checkdisk at night if there's a bad sector 
using the badblocks command though that's not enough.



PS: i was thinking of something of this sort:

1 4 * sat /bin/touch /forcefsck;reboot
1  1 * sun rm /forcefsck

Would the above work? for all disks?


  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] selenium rc server - run it on a specific display help!

2011-02-07 Thread Roland RoLaNd

ok i'll specify the display though not experienced with xauth i'll search for 
it.

as for cron vs gui well any advice?
i really need this service to be up and running 24/7 with no downtime
so i'm thinking of the following cronjob:

if netstat -ntulp  | grep -v 
DISPLAY=localhost:1; java - jar selenium-server.jar  /tmp/rc.log  21;
else 
echo nothing to do `date`  /tmp/rc.log
echo
echo
fi

# Can you advise me with a better idea?

thanks,

--Roland


From: came...@humbledown.org
Date: Sat, 5 Feb 2011 05:51:17 +1300
To: centos@centos.org
Subject: Re: [CentOS] selenium rc server - run it on a specific display help!



You need to instruct it what DISPLAY to run on.
DISPLAY=... command-to-run-selenium
You should also need (I think) to do something with X authentication (xauth)
Are you sure that running it from cron is suitable? Seems very unusual for a 
GUI program.
On 5/02/2011, at 3:08 AM, Roland RoLaNd wrote:Dear all,

i'm trying to run multiple  selenium rc server on a centos box (different ports)
with developers connecting to it through VNC (different respective ports) to 
check their automated test result.
i can easily do the above manually (when it comes to running RC server).
though automating the process is proving to be difficult.
can anyone guide me on how to run a service on a specific display in an 
automated process?

right now if i connect to a vnc session (any port) and i run it manually 
through iterm, it works normally.
though setting an cron job that does the above, isnt working (rc opens in shell 
instead of on each dev's assigned display)


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos 
  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] selenium rc server - run it on a specific display help!

2011-02-04 Thread Roland RoLaNd

Dear all,

i'm trying to run multiple  selenium rc server on a centos box (different ports)
with developers connecting to it through VNC (different respective ports) to 
check their automated test result.
i can easily do the above manually (when it comes to running RC server).
though automating the process is proving to be difficult.
can anyone guide me on how to run a service on a specific display in an 
automated process?

right now if i connect to a vnc session (any port) and i run it manually 
through iterm, it works normally.
though setting an cron job that does the above, isnt working (rc opens in shell 
instead of on each dev's assigned display)


  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] /etc/bashrc causing probs..

2011-01-13 Thread Roland RoLaNd

Hello,i've appended the below to /etc/bashrc, which is causing an error once i 
try to rsync using ssh to this specific box.any idea how to prevent bashrc to 
execute the below to a no login shell ? or any other advice for that matter.


if [ $(id -u) -eq 0 ];then # you are rootecho 
###echo ### You are now working 
as ROOT.###echo ### Pay attention to what you type. 
###echo ### PS1=\\[$(tput setaf 
1)\\]\\u@\\h:\\w #\\[$(tput sgr0)\\]else # nothing to doechoecho  
###echo Welcome 
$(whoami), here's something to start your day with:echoecho   `sh 
/etc/lines.sh /etc/quotes.txt`echo  
echo 
PS1=[\\u@\\h:\\w] $fi


  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Centos installation Vs Disk partitioning

2011-01-10 Thread Roland RoLaNd

Dear all,
I'm trying to setup a development server which hosts a number of virtual 
hosts.and i need your advice with the following:
1. What's the best Filesystem to be used with an apache server?Relevant info: 
i. Mysql DB size' 1 GBii. Code directory size' 8 GB (Max file size is 5 KB)2. 
What's the best file structure to maximize seek time from drives?Relevant 
info:i. 2 X 1 TB SATAII 64MB blk Edition Int HDDii. 1 X 320GB 
General info:
I have an additional directory which hosts all my code under /Development . 
this directory has a size of almost 300 GB.14 Virtual Hosts would be created on 
the server under /etc/httpd/VHosts/
I was thinking of the following structure:
Drive A (320 GB): OS Drive B (1 TB): Mysql + /homeDrive C (1 TB): /development 
+ /opt
Would this work? i followed no guidelines with the above setup, it's just using 
my own logic. so i'd appreciate an expert advice with this.
Thanks,
--Roland  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos installation Vs Disk partitioning

2011-01-10 Thread Roland RoLaNd

I'm using rsync with a cronjob everynight at 11 pm to do the following:
sync relevant directories to a running phsycial machine (same specs more or 
lesS)Sync relevant directories to a running Virtual Machine(vmware) On down 
time i'll run either one of those machines till problem is fixed. 
wouldn't that be enough?



 Date: Mon, 10 Jan 2011 03:01:56 -0800
 From: jd...@yahoo.com
 To: centos@centos.org
 Subject: Re: [CentOS] Centos installation Vs Disk partitioning
 
 From: Roland RoLaNd r_o_l_a_...@hotmail.com
 1. Drive A (320 GB): OS 
 2. Drive B (1 TB): Mysql + /home
 3. Drive C (1 TB): /development + /opt
 
 Does that mean no RAID and downtime to recover from backups is acceptable...?
 
 JD
 
 
   
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] centos as a firewall help

2010-12-31 Thread Roland RoLaNd

Hello all,

first of all i'd like to wish you all happy holidays, and a merry belated 
christmas.

Secondly, i'm trying to setup  a centos 5.4 to act as:

1. firewall # can you check my config below and tell me if i missed anything?
2. DHCP # already configured
3. transparent squid proxy #  already configured
4. http (virtual hosts) # in the near future
5. squirrelmail # in the near future

- Relevant info:

Two NICs:

eth0 LAN: with dhcp service: 192.168.57.1(255.255.255.0) # my lan users are 
connected to this interface
eth1 WAN: static: 172.16.2.14 gw/172.16.2.13 (255.255.255.248) # My isp is 
connected to this interface

I want my firewall to do the following:

1. get my box to be completely secure from outside access, in other words deny 
all access from the outside world to my box /or my LAN
2. allow my LAN users to access the internet/ box without any restrictions, 
through a transparent squid installation 

i've searched a bit online, i must admit i never used iptables before (i 
thought of using firestarter as it's graphical and am no iptables guru, not 
even a novice user though i've installed my box with no X  hence no graphical 
applications)

i finally used bits an pieces and came up with the following:

Chain INPUT (policy DROP)
target prot opt source   destination 
ACCEPT all  --  anywhere anywhere    state 
RELATED,ESTABLISHED 
In_RULE_0  all  --  anywhere 172.16.2.14 
In_RULE_2  udp  --  192.168.57.1 anywhere    udp multiport 
dports bootpc,bootps state NEW 

Chain FORWARD (policy DROP)
target prot opt source   destination 
ACCEPT all  --  anywhere anywhere    state 
RELATED,ESTABLISHED 

Chain OUTPUT (policy DROP)
target prot opt source   destination 
ACCEPT all  --  anywhere anywhere    state 
RELATED,ESTABLISHED 
Cid1888X3970.0  udp  --  192.168.57.1 anywhere    udp multiport 
dports bootpc,bootps state NEW 
Out_RULE_3  all  --  192.168.57.1 anywhere    state 
RELATED,ESTABLISHED 
Cid1594X3970.0  all  --  192.168.57.1 anywhere    state NEW 

Chain Cid1594X3970.0 (1 references)
target prot opt source   destination 
Out_RULE_4  all  --  anywhere 172.16.2.14 
Out_RULE_4  all  --  anywhere 192.168.57.1    

Chain Cid1888X3970.0 (1 references)
target prot opt source   destination 
Out_RULE_2  all  --  anywhere 172.16.2.14 
Out_RULE_2  all  --  anywhere 192.168.57.1    

Chain In_RULE_0 (1 references)
target prot opt source   destination 
LOG    all  --  anywhere anywhere    LOG level info 
prefix `RULE 0 -- DENY ' 
DROP   all  --  anywhere anywhere    

Chain In_RULE_2 (1 references)
target prot opt source   destination 
LOG    all  --  anywhere anywhere    LOG level info 
prefix `RULE 2 -- ACCEPT ' 
ACCEPT all  --  anywhere anywhere    

Chain Out_RULE_2 (2 references)
target prot opt source   destination 
LOG    all  --  anywhere anywhere    LOG level info 
prefix `RULE 2 -- ACCEPT ' 
ACCEPT all  --  anywhere anywhere    

Chain Out_RULE_3 (1 references)
target prot opt source   destination 
LOG    all  --  anywhere anywhere    LOG level info 
prefix `RULE 3 -- ACCEPT ' 
ACCEPT all  --  anywhere anywhere    

Chain Out_RULE_4 (2 references)
target prot opt source   destination 
LOG    all  --  anywhere anywhere    LOG level info 
prefix `RULE 4 -- ACCEPT ' 
ACCEPT all  --  anywhere anywhere    

  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] DHCPD troubleshooting..? help!

2010-12-31 Thread Roland RoLaNd

Hello,

i've setup dhcp as such:

yum install dhcp

vim /etc/dhcpd.config
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample  
#ddns-update-style interim;
ddns-update-style interim;
ddns-rev-domainname in-addr.arpa;
ignore client-updates;
subnet 192.168.75.0 netmask 255.255.255.0 {
   option routers  192.168.75.25; #Default Gateway
   option subnet-mask  255.255.255.0;
   option domain-name  home.local;
   option domain-name-servers  8.8.8.8;
   #option netbios-name-servers 192.168.0.2; #WINS Server    
    range dynamic-bootp 192.168.75.26 192.168.75.100;  #DHCP Range to assign
   default-lease-time 43200;
   max-lease-time 86400;
}

more /etc/sysconfig/dhcpd 
# Command line options here
DHCPDARGS=eth0

tail -f /var/log/messages:

Jan  1 01:25:58 dnalor dhcpd: DHCPREQUEST for 192.168.25.100 (192.168.25.25) 
from 00:23:4b:cc:6c:b7 (oli) via eth0
Jan  1 01:25:58 dnalor dhcpd: DHCPACK on 192.168.25.100 to 00:23:4b:cc:6c:b7 
(oli) via eth0
Jan  1 01:26:16 dnalor dhcpd: Unable to add forward map from oli.home.local to 
192.168.25.100: timed out


any help?

PS: i dont have named installed as i use the ISP's dns, may that be the cause?

Thanks for your advice in advance and happy new year

  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Text Proccessing script - advice?

2010-12-21 Thread Roland RoLaNd

Hello,

I have a log file with the following input:
X , ID , Date, Time, Y
01,01368,2010-12-02,09:07:00,Pass
01,01368,2010-12-02,10:54:00,Pass
01,01368,2010-12-02,13:07:04,Pass
01,01368,2010-12-02,18:54:01,Pass
01,01368,2010-12-03,09:02:00,Pass
01,01368,2010-12-03,13:53:00,Pass
01,01368,2010-12-03,16:07:00,Pass

My goal is to get the number of times ID has a TIME that's after 09:00:00 each 
DATE.
That would give me two output. one is the number of days ID has been late, and 
secondly, the day and time this ID has been late .

I've started as such:

sort -t ','  -k 3,3 -k 4,4  file.log  # this will sort the file according to 
the DATE field as well as the Time fileld.
I'm stuck for the last 30 min to find a way to get the first line of each day 
(logically it'll be the earliest as i've sorted by date/time previously) once i 
know how to do this, i'll be able to compare time and proceed..

Can any one help ?
i looked into sort - u and uniq -f3 though i didnt get far with it..


  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Text Proccessing script - advice?

2010-12-21 Thread Roland RoLaNd

First of all i'd like to appologize for those who helped me by giving an advice 
using perl i'm ashamed to say that i have no experience with it.

Mark, thanks for your effort in writing the below though could you help me 
understand how it goes ? the best way to do thigns, is to learn them for future 
references.

I'm no expert with AWK, so i need your help with the below if possible:



awk 'BEGIN { FS=,;} \ ## awk -f begin triggers the afterwords commands to be 
executed in awk, with , as field delimiter
{ if ( $4  09:00:00 ) { # condition that matched 09 am
 array[ $2 ][1]++; # incrementing count by one though im a bit at a 
loss with array 
 array[ $2 ][ array[$2][1] + 1] = $3 :: $4; } # couldn't figure it out
}
END {
   for j in array {
  for k in array[j] {
 print j, array[j][k]; # prints out what exactly? 
   }
   }
}


 Date: Tue, 21 Dec 2010 12:58:33 -0500
 From: m.r...@5-cent.us
 To: centos@centos.org
 Subject: Re: [CentOS] Text Proccessing script - advice?

 Roland RoLaNd wrote:
 
  I have a log file with the following input:
  X , ID , Date, Time, Y
  01,01368,2010-12-02,09:07:00,Pass
  01,01368,2010-12-02,10:54:00,Pass
  01,01368,2010-12-02,13:07:04,Pass
  01,01368,2010-12-02,18:54:01,Pass
  01,01368,2010-12-03,09:02:00,Pass
  01,01368,2010-12-03,13:53:00,Pass
  01,01368,2010-12-03,16:07:00,Pass
 
  My goal is to get the number of times ID has a TIME that's after 09:00:00
  each DATE.
  That would give me two output. one is the number of days ID has been late,
  and secondly, the day and time this ID has been late .
 
 awk 'BEGIN { FS=,;} \
 { if ( $4  09:00:00 ) {
 array[ $2 ][1]++;
 array[ $2 ][ array[$2][1] + 1] = $3 :: $4; }
 }
 END {
 for j in array {
 for k in array[j] {
 print j, array[j][k];
 }
 }
 }

 It's been a while since I needed to do this, but I *think* the nested for
  in array will work.
 
 mark



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Text Proccessing script - advice?

2010-12-21 Thread Roland RoLaNd

Thanks to your help i've reached this step:

original data:

01,01368,2010-12-02,09:07:00,Pass
01,01368,2010-12-02,10:54:00,Pass
01,01368,2010-12-02,13:07:04,Pass
01,01368,2010-12-02,18:54:01,Pass
01,01368,2010-12-03,09:02:00,Pass
01,01368,2010-12-03,13:53:00,Pass
01,01368,2010-12-03,16:07:00,Pass




awk -F , '{if ($4  09:10:00) print $2  was late on, $3  by coming at 
,$4}' test | tee  DaysLate ; wc -l DaysLate

01368 was late on 2010-12-02 by coming at  10:54:00

01368 was late on 2010-12-02 by coming at  13:07:04

01368 was late on 2010-12-02 by coming at  18:54:01

01368 was late on 2010-12-03 by coming at  13:53:00

01368 was late on 2010-12-03 by coming at  16:07:00

   5 DaysLate


the only thing missing is to find a way to just take the earliest time of each 
day.

in other words the above output should be:


  0 DaysLate # as on 12-02 he came in at 09:07 which is before 09:10 and on 
12-03 he came in at 09:02 which is also before the set time





 Date: Tue, 21 Dec 2010 14:35:13 -0500
 From: m.r...@5-cent.us
 To: centos@centos.org
 Subject: Re: [CentOS] Text Proccessing script - advice?

 John Lundin wrote:
  On Tue, Dec 21, 2010 at 08:30:43PM +0200, Roland RoLaNd wrote:
 
  (chuckle) That's a bit more verbose than necessary. As a one-liner:
 
  awk -F, '($409:00:00){c[$2 , $3]++};END{for (i in c){print i ,
  c[i]}}' $filename
 

 Well, yes, but he also wanted a count

 mark

  01368,2010-12-02,4
  01368,2010-12-03,3
 
  (You might check if you want =09:00:00, and include the edge case.)
 
  -F, # set separator to comma
 
  # (automatic loop over all data lines)
  ($409:00:00){ # do if fourth field greater than 09:...
  c[$2 , $3]++ # increment hash element pointed to by
  # second and third fields separated by comma
  # (that is, hash on id,date)
 
  END{ # after finishing the data
  for (i in c){ # for each observed hash value in array c
  print i , c[i] # print the hash value, comma, count
 
  --
  lun...@fini.net
  ___
  CentOS mailing list
  CentOS@centos.org
  http://lists.centos.org/mailman/listinfo/centos
 


 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Text Proccessing script - advice?

2010-12-21 Thread Roland RoLaNd

Exactly, hence:

[quote]
the only thing missing is to find a way to just take the earliest time of each 
day.
 
in other words the above output should be:
 
 
  0 DaysLate

[/quote]



 Date: Tue, 21 Dec 2010 13:54:41 -0600
 From: lesmikes...@gmail.com
 To: centos@centos.org
 Subject: Re: [CentOS] Text Proccessing script - advice?

 On 12/21/2010 1:40 PM, Roland RoLaNd wrote:
 
 
 
  awk -F , '{if ($4 09:10:00) print $2  was late on, $3  by coming at 
  ,$4}' test | tee DaysLate ; wc -l DaysLate
 
  01368 was late on 2010-12-02 by coming at 10:54:00
 
  01368 was late on 2010-12-02 by coming at 13:07:04
 
  01368 was late on 2010-12-02 by coming at 18:54:01
 
  01368 was late on 2010-12-03 by coming at 13:53:00
 
  01368 was late on 2010-12-03 by coming at 16:07:00
 
  5 DaysLate

 On my calendar 12-02 and 12-03 are only 2 days...

 --
 Les Mikesell
 lesmikes...@gmail.com



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] how to run a command on a specific vnc display

2010-12-09 Thread Roland RoLaNd

Hello,

I'm using selenium rc for automated testing on a centos box.

working on the box itself has no problem as long as i start the server through 
terminal.

though if i wanted to run tests remotely i have a problem with firefox not 
knowing on  which display to run.

i have a vnc client running on port 1 (5801/5901)

I've tried the following:

export DISPLAY=1 ; java -jar selenium-server.jar  /opt/selenium/Logs/logs.txt 
# through ssh session though that didn't work


the only way to initiate it properly is to connect through vnc, open a terminal 
and type : java -jar $PWD/selenium-server.jar
though i don't know how to automate this.

so i thought of setting this in xstartup # vnc's startup for display 1

as such:


  1 #!/bin/sh
  2 
  3 # Uncomment the following two lines for normal desktop:
  4  unset SESSION_MANAGER
  5  exec /etc/X11/xinit/xinitrc
  6 while true ;do sh /opt/scripts/rc; done 
  7 [ -x /etc/vnc/xstartup ]  exec /etc/vnc/xstartup
  8 [ -r $HOME/.Xresources ]  xrdb $HOME/.Xresources
  9 xsetroot -solid grey
 10 vncconfig -iconic 
 11 xterm -geometry 80x24+10+10 -ls -title $VNCDESKTOP Desktop 
 12 twm 

]# more /opt/scripts/rc
java -jar /opt/selenium/selenium-server.jar  /opt/selenium/Logs/logs.txt


Though that isn't working either, and still the firefox profile doesnt know 
where to start.

this is the error :


PHPUnit_Framework_Exception: Response from Selenium RC server for 
getNewBrowserSession(*firefox, http://www.test.com).
Failed to start new browser session: Error while launching browser.


any help to automate the startup on display 1 would be greatly appreciated

  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] how to do repetetive command in shell

2010-10-21 Thread Roland RoLaNd

Dear all,

i'm writing a certain script which does a specific task in a repetitive manner, 
i'm going to give a similar script with the same concept hope you could advise 
me to a better way:


USER1=roland
USER2=dany
USER3=kevin


cp -r /opt/$USER1/test /backup/$USER1
cp -r /opt/$USER2/test /backup/$USER2


such a command would be repeated 832 times (this is just an example) 
so instead of copying the above line 832 times and appending that user's number 
in each $USER

is there a way to do it in a  smarter way ?


thanks,

--Rolad

  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] sendmail substitute?

2010-10-14 Thread Roland RoLaNd

Hi all,

i'm following online guides to secure my centos 5.4
it's advised to turn off sendmail service among others.
but how can i forward my /var/log/mail to my webmail ?

any help would be greatly appreciated..

thank you
  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] best filesystem for a webserver

2010-10-03 Thread Roland RoLaNd

Dear all,

i'm setting up a new machine to handle a webserver with mysql

web directory contains alot of small files and database is around 15 GB

i've did a bit research, read alot of articles..
mainly i came up with the understanding that:

EXT3 is the set it and forget it kind of filesystem.
and reiserFS is the best choice for small files though there's a bigger risk of 
data loss upon power failure (better solved in ext3)

any advice on this matter? or any other filesystem you advise me to use on a 
production system?

thanks






  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] securing centos 5.2 for public usage

2010-09-18 Thread Roland RoLaNd

Dear all,

i Just finished setting up an apache service on a centos 5.2 VM machine.

i need to secure this machine as i'm soon to be setting a public IP over it 
where i'd be opening up the following services:


1. http
2. https
3. ssh


Things i've done so far:

1. stopped root ssh access in sshd.conf
2. tried configuring PAM so i get a more secure ssh passwords (dictionary wise) 
as well as tried setting up a 2 times authentication failure for the account to 
be disabled for 12 hours (i couldnl't succeed in setting this up)
3. disabled port forwarding (to deny outsiders to tunnel through the server 
inside my network) couldn't succeed with this either.


Any help or advice would be greatly appreciated..

thanks,

--Roland
  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Centos Virtual Machine 32 bit with 8 GB ram ?

2010-09-14 Thread Roland RoLaNd

Hello,

I have a centos 5.2 core 2 duo 3.0 GHZ with 2 GB ram which is working as a 
Virtual machine.
i've just upgraded the hosting physical server from 32 GB to 64 GB of ram. 
which in turn, would require me to upgrade the VM to 8 GB.
this is a 32 bit centos installation, would the system recognize and use the 8 
GB? 
the option of using a 64 bit centos isnt possible.

So i'm turning to you for advice.
would upgrading the Ram be enough, or is there anything to be done that's 
kernel based of some sort?


best,

--Roland
  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos Virtual Machine 32 bit with 8 GB ram ?

2010-09-14 Thread Roland RoLaNd

Thanks for your feedback..

So if i set my VM to 8 GB, each proccess would use a max of 3 GB (even with PAE 
 installed and selected on boot)?



Date: Tue, 14 Sep 2010 08:50:18 +0200
From: l.wandreb...@gmail.com
To: centos@centos.org
CC: r_o_l_a_...@hotmail.com
Subject: Re: [CentOS] Centos Virtual Machine 32 bit with 8 GB ram ?

On Tue, 14 Sep 2010 09:44:28 +0300
Roland RoLaNd r_o_l_a_...@hotmail.com wrote:
 
 
 Hello,
 
 I have a centos 5.2 core 2 duo 3.0 GHZ with 2 GB ram which is working as a 
 Virtual machine.
 i've just upgraded the hosting physical server from 32 GB to 64 GB of ram. 
 which in turn, would require me to upgrade the VM to 8 GB.
 this is a 32 bit centos installation, would the system recognize and use the 
 8 GB? 
Yes, using a PAE enabled kernel. Anyway, apps won't be able to use more
than 3GB per process. Welcome in 32 bits limitations.
 the option of using a 64 bit centos isnt possible.
Strange. 64 bits is here for years, 64 runs 32 bits code perfectly.
 
 So i'm turning to you for advice.
 would upgrading the Ram be enough, or is there anything to be done that's 
 kernel based of some sort?
Either PAE or switch to 64 bits. There's no other path.
HTH,
-- 
Laurent Wandrebeck
GPG fingerprint/Empreinte GPG: F5CA 37A4 6D03 A90C 7A1D  2A62 54E6 EF2C
D17C F64C

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos 
  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos Virtual Machine 32 bit with 8 GB ram ?

2010-09-14 Thread Roland RoLaNd

Crystal clear!
thank yo..!!

Though another Q if possible..

i've done the following:

yum install kernel-pae

vim /etc/grub.conf
#outputs the following:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#  all kernel and initrd paths are relative to /boot/, eg.
#  root (hd0,0)
#  kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#  initrd /initrd-version.img
#boot=/dev/sda

default=0 #BOOTING with PAE for additional RAM on 32 bit##
timeout=1 ###speeding things up##
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.11.3.el5PAE)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.11.3.el5PAE ro root=/dev/VolGroup00/LogVol00 
rhgb quiet
initrd /initrd-2.6.18-194.11.3.el5PAE.img
title CentOS-base (2.6.18-92.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00 rhgb 
quiet
initrd /initrd-2.6.18-92.el5.img


After booting, the system hangs on: 

Memory for crash kernel (0x0 to 0x0) notwithin permissible range for about 2 
to 4 minutes.
and then continue booting with the following marked as failed:


1. Mounting HGFS shared
2. VM communication interface
3. VM communication interface socket family
4. blocking file system
5. Virtual printing daemon

Are there related errors to PAE itself, or is it just that VM tools do not 
support PAE kernel?

thanks

Date: Tue, 14 Sep 2010 15:58:15 +0200
From: l.wandreb...@gmail.com
To: centos@centos.org
CC: r_o_l_a_...@hotmail.com
Subject: Re: [CentOS] Centos Virtual Machine 32 bit with 8 GB ram ?

On Tue, 14 Sep 2010 16:45:50 +0300
Roland RoLaNd r_o_l_a_...@hotmail.com wrote:
 
 
 Thanks for your feedback..
 
 So if i set my VM to 8 GB, each proccess would use a max of 3 GB (even with 
 PAE  installed and selected on boot)?
PAE allows a 32 bits host to see more than 4GB of ram. but each process
is still limited to ~3gb. To dive a bit more into technical details,
PAE is like EMS in DOS time. In EMS, you saw the whole ram, but
couldn't allocate more than 64KB per process. With PAE, the same, with
a limit of 4GB-OS stuff per process, so it gives something like 3GB.
Hope I'm clear.
-- 
Laurent Wandrebeck
GPG fingerprint/Empreinte GPG: F5CA 37A4 6D03 A90C 7A1D  2A62 54E6 EF2C
D17C F64C

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos 
  ___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] centos 5.2

2010-07-05 Thread Roland RoLaNd

Hello,

where can i get centos 5.2 64 bit ?
all i can find is 5.5 ...
any help?
  
_
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Centos to use two ISP concurrently..?

2010-06-27 Thread Roland RoLaNd

Hi all,



I'm currently getting my Centos working as a proxy (squid) on a 2 Mb bandwidth 
plan that's 
serving 20 users. it's all good though our need for speed is increasing 
by the day.

soon enough i'll be serving up to 60 user, hence the need to get higher 
bandwidth though here where the problem is. 

as i'm using HDSL, 2 Mb is the highest plan available. 

hence, i need to get 2 HDSL subscriptions, in other words 2 modems/IPs 
to work with.. ( 2 x 2 Mb)

the possibility to use routing table isn't feasible as these two ISP's would 
only be used for browsing, so routing destinations one way or the other isn't 
an option.


i have two initial thoughts to solve this hope you could straighten me 
out if they're wrong or suggest something better that your experience 
lead you to use:



1. setup Openvz on a centos box, get two templates up and running with 
squid setup on them. each one with a different IP. 

Each template would be routed to one ISP, and both proxies would be used
 in child/parent proxy manner so i could use caching from both. 

and i could split my users in half, 1 half would be using Squid#1 and 
the other using squid#2. 



2. the same squid box have two Nics, with two IPs, one routed to each 
ISP, i get squid listening to port  80 on both IPs, and same as above,
 half of my users would be running on IP#1 and the others on IP#2. 



do all this make any sense? i'm seeking your help as both ideas does not
 seem very professional to me, and i doubt that's the optimal solution 
so any help would be greatly appreciated.



thanks ,



--Roland
  
_
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Debugging slow apache server?

2010-04-20 Thread Roland RoLaNd

hello,

i'm using an apache server to host 8 virtual hosts.

even though this server is local.. 7 out of these 8 virtual hosts open extremly 
slow..
it takes around 10 seconds to open a page..

though the 8th (which is a completely different site) it opens fairly fast in 
around 1 or 2 seconds tops..

i tried tailing the error_log and i found nothing ..
is there a way i could monitor wht each branch is doing and what's causing it 
to be so slow?
any suggestion ?


  
_
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] SVN server update

2010-04-14 Thread Roland RoLaNd

Dear all,

i have SVN server 1.4.x working on production.
i want to go ahead and update to 1.6.x

i'm hoping your experience would help me prevent possible downtime..
is there any issues that may arise from updating the SVN server from one 
version to another on a production server?

  
_
Hotmail: Free, trusted and rich email service.
https://signup.live.com/signup.aspx?id=60969___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] file sharing?

2010-04-10 Thread Roland Roland
Hi all,

I've inherited from a previous It personnel a centos server which works as a 
fileserver and at the same time has one Vmware (windows xp) working on it.
due to file server data load, the windows xp services get unreachable until the 
data transfer from the fileserver itself slows down..
the NIC max out its transfer speed..
the same server has two * 1 GB nics
one is currently being used..
my question is this:

is there a way to make the afp/smb services work only one ONE nic..
in other words users accessing the shared files from a specific NIC..
that way I can divide the load. file transfers goes from one NIC and windows 
services gets reached from the other..(different IPs)
doo all this make any sense? is there any other way of solving this (other than 
moving the VM elsewhere) ?

thanks in advance for yoru help


__ Information from ESET Smart Security, version of virus signature 
database 5015 (20100410) __

The message was checked by ESET Smart Security.

http://www.eset.com

Emoticon1.gif___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] System and Server Status help ?

2010-04-01 Thread Roland RoLaNd

dear all,

i can't count the times that webmin came to my rescue.
whenever i face a dead end in doing something through CLI i always turn to 
webmin..
though at the moment i wanna learn how to do things through cli instead of 
relying on webmin as i said..
especially System and Server Status
theres a module that supports such a thing where i can set monitors that checks 
specific services or directories or... and reports the output..
so i wanna do this through command line.. any help ? 
i've checked crontab -l and it doesnt list anything that i've set in webmin
so where is it and how to do it through cli ?


  
_
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] help!

2010-03-24 Thread Roland RoLaNd

hello,

i've just wrote the following :

more ./*.csv | grep -i XXX | echo Dear XXX, This email is for informative 
purposes. Your total number of hours for the week of `date` is: `cut  -d, -f2` 
hours  Kindly note that the average weekly working hours is : 40. | 
/usr/sbin/sendEmail -t m...@domain.com -u Test email- disregard it  -f 
otherm...@subdomain.com -s smtp.domain.com:25

this looks in a csv file that exists in the same directory for XX and outputs 
the field right next to it as you notice from : `cut  -d, -f2` 

It's working pretty fine for just one user, but i have to do the same for 432 
person. and its obviously not as professional as it should be due to the 
following reasons:

1. i have to fill the name for each person in place of XXX as well as their 
m...@domain.com
2. the date command gives the hour as well which is a bit annoying


can anyone guide me on how to proceed? 
as you notice im a bit of a newbie with bash  and im trying my best to improve 
my one liners/scripts

thanks :)



  
_
Hotmail: Trusted email with powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Java 1.5

2010-03-15 Thread Roland RoLaNd

Hello,

i'm trying to install jboss where it asks me for java 1.5
i have both 1.4 and 1.6 installed
with JAVA_HOME pointing to 1.6

i downloaded jdk-1_5_0_17-linux-i586.bin  and executed it..
though nothing changed..
when i execute : alternatives --config java

i can only see 1.4 and 1.6

any advice?
  
_
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Linux printing server?

2010-03-06 Thread Roland Roland
hello all,

is there any other way to setup some kind of service that converts user's 
printed jobs to pdf files other than ghostscript + samba?
if theres none, can any1 help me set ghostscript + samba up?




__ Information from ESET Smart Security, version of virus signature 
database 4755 (20100108) __

The message was checked by ESET Smart Security.

http://www.eset.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] block port forwarding?

2010-02-25 Thread Roland RoLaNd

Hello,

 i have internet usage rules for all of my network.
only 2 servers have full access to the internet..
lately i've noticed that lots of traffic being produced by the servers ..
is there a way to know whose using port forwarding to my server so they access 
the internet ?
or is there a way to block people from doing such a thing ?
  
_
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] block port forwarding?

2010-02-25 Thread Roland RoLaNd


 cat /proc/sys/net/ipv4/ip_forward
0


 Date: Thu, 25 Feb 2010 13:39:41 +0200
 From: eero.voloti...@iki.fi
 To: centos@centos.org
 Subject: Re: [CentOS] block port forwarding?

 2010/2/25 Roland RoLaNd :

 Hello,

  i have internet usage rules for all of my network.
 only 2 servers have full access to the internet..
 lately i've noticed that lots of traffic being produced by the servers ..
 is there a way to know whose using port forwarding to my server so they 
 access the internet ?
 or is there a way to block people from doing such a thing ?

 Err. Disable ip_forwardnat on server and limit connections on main firewall 
 ..

 --
 Eero
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
  
_
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] DNS issue.. help ?!

2010-01-25 Thread Roland Roland
Hi All,

i have DNS configured on my centos 5.2 server.

it's all working fine, right now i want to change the main public dns 
from one IP to another to do some testing (the new public dns ip has 
records which the old one doesnt have and it's done as such for testing)

so i got into /etc/resolv.conf and changed the first nameserver to the 
NEW public DNS.
/etc/init.d/network restart
/etc/init.d/named restart

when i issue an nslookup example.com ON the dns server, i get the exact 
IP i want to do testing on.
but when i do nslookup example.com on the clients machine. the website 
resolves to another IP ( the one set in the initial public dns records)


is there any other changes i need to do for the DNS server redirects its 
requests to the new public dns ?



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] how to send mail from console

2010-01-15 Thread Roland Roland
Hi all,

i'm trying to get a script to send me an email whenever a certain 
condition takes place..
i'm afraid i dont have experience with mail command nor anything else 
related to sending emails for that matter..

i googled a bit and tried using mutt and mail ...
though i do not recieve any email in my inbox...

the command im using is the following : mail -s “disk space report” 
r_o_l_a_...@hotmail.com

should i setup a default smtp to use? where can i check for the errors 
that are taking place?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] PAM configuration?

2010-01-04 Thread Roland Roland
Hello all,

Can anyone please help out with configuring PAM?
I've checked a couple of tutorials online..
though most of them are related to Login though I want to set PAM up for SSH 
logins...
I've set the max erroneous logins to just THREE and even after trying to login 
with an error pass I still can get in... 

also is there a way I could enable the PAM module which uses crack library to 
check the strength of a users password?

any help with this is truly appreciated...
thanks in advanceEmoticon1.gif___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] I/o Read/write BYTes ?

2009-12-14 Thread Roland Roland
Hello,


is there a way to detect the r/w i/o bytes on a hdd under centos?

  i know i can do it through task manager under windows though what 
about centos  through cli ?

any advice?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Cron job? or something else? help..

2009-12-13 Thread Roland Roland
Hello,

i have a certain issue at hand that i'm trying to solve.

there's a certain command that i need to execute 10 minutes after boot.
how can i set that? im not very expert with cron jobs but can it be done 
that way? i know that cronjob works on specified time but how can i set 
it to run with '10 min after startup as a condition ?



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] how to do startup scripts?

2009-12-07 Thread Roland Roland
Hello,

I've just finished installing Atlassian's bamboo 
it comes with two ways to start it up one through a bash shell script bamboo.sh
and another through java script (this one is better as it has the ability to 
start up the service if it got shutdown for any reason)

so I'm wondering how can I set this service to start on boot..
I know how to set a script on login in my profile though not on boot..

any suggestion?
I've looked around about none interactive shells and so on.. so if I did a 
symbolic link from bamboo.sh script to /etc/init.d would that work?
what about variables inside the script would they b read ? 

obviously a newbie here so appreciate any detailed explanation if possible 
about interactive/ none interactive shells and of course if theres an advice 
about how to solve this issue..

PS: trying to educate myself about linux along the way so any explanation would 
be greatly appreciated...


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Centos as a file storage/backup destination (Advice)

2009-11-08 Thread Roland Roland
Hello all,

am considering setting up centos as a file storage/ backup destination for 
Mac's TimeMachine.

all my users would get synced directly to specific folders on this machine..
needless to say space is of importance. where every user has an average 200 GB 
of data to b synced (entire system)...
I have 27 users hence 27 *200 equals to almost 6 TB so I was considering 
getting either 4 * 1.5 TB or 6 * 1 TB to be used on one PIV with a 1 GB 
ethernet.

but the thing is, I'm an expert with this! so I'm seeking your help..
is there any other way to do so ? is there any limitation hardware/centos wise 
for the amount of drives available on a system?
is Motherboard available sata/ide slots is the only limitation? how about using 
a USB hub and plugging them as such?

any advice is greatly appreciated 


thanks and excuse my newbie question.

best,

RolandEmoticon1.gif___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Help! i want to clone my Centos machine to another box..

2009-10-22 Thread RoLaNd RoLaNd

Hello all,

i've spent the last week trying to find something that will clone my existing 
Centos server to a more powerful box.
i've used clonezilla though that resulted in a complete failure..

can anyone please guide me in the right direction? 
all i want to do is to clone my entire server and all of it's directories to a 
more powerful server so i start using it instead..
i dont want to get rid of the current server as i want both of them to run in 
parallel with the same backed up services/data on each of them..


can anyone please help! im honestly desperate!! 


best,

Roland
  
_
Windows Live Hotmail: Your friends can get your Facebook updates, right from 
Hotmail®.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Backing up a centos serveR? how to ? Newbie question..

2009-10-19 Thread RoLaNd RoLaNd

Hi all,


excuse my newbie question but how can i backup my centos server?

i have a dozzen of virtual hosts over it as well as substantial database 
entries..

i've backed up the following directories using rsync:

workspace/
/etc/httpd/
/etc/apache-tomcat-6.0.20/
/usr/lib/mysql/
/var/lib/mysql


though i'm still not at ease with this, so i decided to do a some sort of clone 
or something to move this server to a VMWARE which i will turn on when needed 
(if main server failed)

any advice on how to do so ?

i've looked around and tried using clonezilla though that didn't work with 
me, i guess i mustve done something wrong... each time i try to boot from the 
cloned image of the local disk (which in turn cloned to the VM's local disk) it 
gives an error bout root records...

so any other way ? 


any sort of help is greatly appreciated :) 


thanks and best regards,

Roland
 
  
_
Keep your friends updated—even when you’re not signed in.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] bind dns help?

2009-09-16 Thread Roland Roland
Hello,

I've recently inherited a network with bind dns already set in it..
the thing is, the previous admin added our networks domain as our default 
company's website..
lets say abcd.com

first of all, I'm a complete newbie with DNS under linux so I've sruggled my 
way and finally landed on webmin that helps me out in adding local dns records.
though the problem occurs whenever there's a url on our website that needs to 
be accessed...
let me explain..

  a.. I can browse to abcd.com 
  b.. I can browse to local.abcd.com 
  c.. but I cannot access public.abcd.com  as the dns search for public under 
it's records and it cannot find it..
how can I solve this? changing the domain is in no way possible, as there's 
almost 200 virtual host setup in my  local network.. so I need a quick solution 
for this..
any advice?

PS: if any of you can guide me to a good DNS under centos tutorial I'll 
appreciate it 

Emoticon1.gif___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Antwort: bind dns help?

2009-09-16 Thread Roland Roland
I'll explain again... excuse my english..

1. I can browse local virtual hosts normaly
2. I can browse abcd.com (my company's website, and is set also as my local 
network domain)
3. if go to public.abcd.com from outside my network (any public place) I can 
access that page normally.
4. if try browsing public.abcd.com from inside my network, I cannot as my 
local DNS search it's own records for public and obviously it wont find 
it.
the reason such a thing is happening is due to the fact that abcd.com' is 
also set as our network's domain. so instead of forwarding requests to my 
ISP's dns to resolve public.abcd.com it simply search it's own records.


--
From: frank.brodb...@klingel.de
Sent: Wednesday, September 16, 2009 12:27 PM
To: CentOS mailing list centos@centos.org
Cc: centos@centos.org; centos-boun...@centos.org
Subject: [CentOS] Antwort:  bind dns help?

 Hi,

 Roland Roland r_o_l_a_...@hotmail.com  schrieb am 16.09.2009 11:10:05:
 I can browse to abcd.com
 I can browse to local.abcd.com
 but I cannot access public.abcd.com  as the dns search for public
 under it's records and it cannot find it..
 how can I solve this? changing the domain is in no way possible, as
 there's almost 200 virtual host setup in my  local network.. so I
 need a quick solution for this..
 any advice?

 This is just a quickshot as I don't feel like I fully understood
 your problem, but maybe we're lucky ;-)

 Can you browse/ping/resolve public.abcd.com.abcd.com?

 Frank.
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] how to mount a remote directory on linux

2009-07-19 Thread Roland Roland
Hello,

i'd like to mount a remote directory that exists on a CENTOS 5 machine to a 
similar but local machine.

i've made a local cron job that executes a script on the data provided in 
that folder hence the request above.

if any help could be provided i'd appreciate it..

ps: sshfs seems unsupported on centos using yum installation.. 

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos