Re: [CentOS] dirty screen

2011-01-13 Thread Cameron Kerr
What about ^L, which is a common redraw keystroke for applications and shells (although it will also clear the screen on a shell). On 14/01/2011, at 6:54 AM, Jerry Geis wrote: Is there a command that marks the screen as dirty and hopefully redraws it? If I do a control ALT F1 and the F7

Re: [CentOS] keychain problem

2011-01-15 Thread Cameron Kerr
On 16/01/2011, at 5:22 AM, bluethundr wrote: hello centos.. I am having a very annoying problem on my network right now. it looks like every time I try to add my ssh key to keychain I have to issue a command just to get my ssh subsystem communicating with the ssh-agent: I have this line

Re: [CentOS] keychain problem

2011-01-15 Thread Cameron Kerr
On 16/01/2011, at 11:56 AM, Cameron Kerr wrote: On 16/01/2011, at 5:22 AM, bluethundr wrote: I have this line in my .bashrc file $(keychain --eval --quick --quiet private_key1 private_key2 private_key3) Should not this go into your ~/.bash_profile? (disclaimer: I've not used

Re: [CentOS] keychain problem

2011-01-15 Thread Cameron Kerr
On 16/01/2011, at 2:12 PM, bluethundr wrote: Hello and thanks for your reply! Well I took your advice and removed that keychain scriptlet from .bashrc and put it into .bash_profile. Not sure what the functional difference between the two would be. Perhaps you would care to elaborate? I

Re: [CentOS] Network bandwidth tools.

2011-01-15 Thread Cameron Kerr
It all depends on your requirements: - what sort of questions would you like your solution to be able to answer? (can you give us a few?) - what monitoring infrastructure do you already have? (SNMP, for example, could be rather useful here) - how much level of ad-hoc reporting do you

Re: [CentOS] Troubles for an non-IT beginner

2011-01-16 Thread Cameron Kerr
On 17/01/2011, at 7:43 AM, Parshwa Murdia wrote: On Sun, Jan 16, 2011 at 6:40 PM, Digimer li...@alteeve.com wrote: If you are completely new to Linux, may I suggest you start with Fedora or Ubuntu? CentOS is a wonderful distrobution, but it is aimed at somewhat more advanced used. It is

Re: [CentOS] Troubles for an non-IT beginner

2011-01-16 Thread Cameron Kerr
On 17/01/2011, at 8:38 AM, Parshwa Murdia wrote: On Sun, Jan 16, 2011 at 8:03 PM, John R Pierce pie...@hogranch.com wrote: the LiveCD does not have the installer, its more of a demo. But then what's the utility of that live CD? It doesn't need to be installed onto the hard-disk, so it

Re: [CentOS] can't start iscsi - and can't find answer on google

2011-01-17 Thread Cameron Kerr
Okay, so we need to find out why it can't create its PID file. First, run dmesg (and scan through the logs) to see if there is anything iSCSI or SELinux-related reported in the logs. Then, try using strace to run the iscsi process, and see what the error code is (ideally, it ought to have been

Re: [CentOS] KVM host question about host firewall

2011-01-18 Thread Cameron Kerr
On 19/01/11 11:21, Kwan Lowe wrote: Hello All: I'll ask this in the virt list later if this is not the appropriate forum... Yesterday I was troubleshooting an issue with a KVM host. I was unable to access the DNS service on a KVM virtual machine. From where? Another VM, the host or

Re: [CentOS] measuring performance of glibc

2011-01-19 Thread Cameron Kerr
Have a look at the GLibc manual regarding profiling tools. Of course, that depends on what exactly you mean by 'performance' here, as that can be measured in a number of different ways. On 20/01/2011, at 4:46 PM, Mag Gam wrote: I was wondering, how does one measure the performance of glibc?

Re: [CentOS] dmesg and messages differences

2011-01-20 Thread Cameron Kerr
dmesg is everything sent from the kernel for logging (ie. the historical content of the dmesg(8) command). messages is basically a syslog fall-through (a bit like /var/log/syslog) On 21/01/2011, at 7:02 AM, Keith Roberts wrote: Hi everyone. I just wondered what's the difference between

Re: [CentOS] backup script

2011-01-25 Thread Cameron Kerr
On 25/01/11 21:56, madu...@gmail.com wrote: Am thinking to have this in my script #!/bin/bash tar -cvzf /tmp/website-$(date +%Y%m%d-%H%M).tgz /var/www/htdocs/* find /tmp/website/website*.tgz -ctime +5 -exec rm {} \; # removes older then 5 days That should do in your case. Though, in

Re: [CentOS] #!/bin/csh -v not work on CENTOS 5.5

2011-01-25 Thread Cameron Kerr
On 26/01/11 08:48, mcclnx mcc wrote: We have several csh batch scripts using #!/bin/csh -v. It work fine, before Centos 5.5. After cenos 5.5, it will NOT execute and only list history. Any particular error message that is generated? ___ CentOS

Re: [CentOS] #!/bin/csh -v not work on CENTOS 5.5

2011-01-26 Thread Cameron Kerr
On 27/01/2011, at 7:27 AM, David G. Miller wrote: chmod -R g+rx,o+rx Nelson/ cd What is the result of 'cd' (a shell-internal command) in this version of tcsh? It is the same as in sh? The history is listed for some reason after the script (in the above example starting with the chmod).

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

2011-01-26 Thread Cameron Kerr
On 27/01/2011, at 7:45 PM, Always Learning wrote: Hallo, I wanted to avoid typing-in my password every occasion I remotely logged-on to a server. I created my SSH keys and copied the public part to the server and renamed it authorized_keys.

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

2011-01-27 Thread Cameron Kerr
On 27/01/2011, at 9:32 PM, James Bensley wrote: 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

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

2011-01-27 Thread Cameron Kerr
On 27/01/2011, at 8:48 PM, Nico Kadel-Garcia wrote: And the permissions of $HOME/.ssh should be 0700. Ah, yes. My mistake, sorry. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] How to relocate $HOME directory

2011-01-31 Thread Cameron Kerr
On 1/02/2011, at 7:19 AM, Paul Heinlein heinl...@madboa.com wrote: Lots of good advice snipped 12. Tell your users emphatically that they should use $HOME anywhere they're tempted to hardwire their home directory path into a script. :-) Although this is still painful for any users

Re: [CentOS] sshd problem

2011-01-31 Thread Cameron Kerr
The TCP connection is being built successfully. We can know this by the fact that it has progressed to sending an application-layer PDU. If it were a routing issue, it would have failed to build a TCP connection (the SYN-ACK would have failed to return). However, it is closed very soon after,

Re: [CentOS] [OT] Best way to get dhcpd messages piped to a web service.

2011-02-02 Thread Cameron Kerr
On 03/02/11 12:45, Jason Pyeron wrote: [snip] Does anyone see a more proper way? That depends. What are you really wanting to achieve? Might your problem be better solved by looking at the dhcp leases file instead, or are you really just interested in the logs? search.cpan.org reveals

Re: [CentOS] centos 5.5 check memoray usage too high???

2011-02-02 Thread Cameron Kerr
On 03/02/11 10:58, mcclnx mcc wrote: We have DELL R900 server with 128GB RAM (CENTOS 5.5)in it. This server only have one application running and few people use it. Every week I ata least get one or two messages from monitor tool mail to me say: Message=Memory Utilization is 92.02%,

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

2011-02-04 Thread Cameron Kerr
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

Re: [CentOS] if the file changes send email about diff

2011-02-06 Thread Cameron Kerr
On 7/02/2011, at 2:33 AM, kellyremo wrote: I have 2 script. Script A, Script B. Script A is regulary watching the dhcpacks [dhcp release is configured to 2mins] in the logs, for the past 2 minutes. it writes the MAC addresses to a file [/dev/shm/dhcpacks-in-last-2min.txt] every 2

Re: [CentOS] SSH AllowUser WildCard

2011-02-07 Thread Cameron Kerr
On 7/02/2011, at 9:06 PM, Stephen Cox wrote: Ned, thanks but I also can read the man page. My question is what would an entry be if the user bob can login from 17363.myhost.com and 2373.myhost.com? It would be reasonable to try bob@*.myhost.com Did you try it?

Re: [CentOS] SSH AllowUser WildCard

2011-02-07 Thread Cameron Kerr
I think you need to do a 'host the-ip-address' to see what the reverse DNS is doing; that seems to be what is causing the problem. On 8/02/2011, at 6:37 PM, Stephen Cox wrote: It didnt work. Here is the logs: Feb 7 18:17:25 server sshd[3537]: reverse mapping checking getaddrinfo for

Re: [CentOS] VPN inside VPN?

2011-02-09 Thread Cameron Kerr
On 10/02/11 02:52, Giles Coochey wrote: On 09/02/2011 15:46, n...@nux.ro wrote: Fajar Priyanto writes: Hi all, Just wondering if VPN inside VPN is possible? I've created PPTP VPN in the office. Then from home, first I need to use company's official ATT VPN. Then after connected, I fire up

Re: [CentOS] NIC bonding - missing eth0?

2011-02-16 Thread Cameron Kerr
On 16/02/2011, at 3:12 PM, Smithies, Russell wrote: 802.3ad info LACP rate: slow Active Aggregator Info: Aggregator ID: 19 Number of ports: 3 Actor Key: 17 Partner Key: 5 Partner Mac Address: 00:1b:90:3d:90:c0 Slave Interface: eth0 MII

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-17 Thread Cameron Kerr
On 17/02/2011, at 9:35 PM, Mathieu Baudier wrote: I've been running our apps as purely as I can (java -cp /path/to/libs/* path.to.the.App) and they're still being send SIGHUP signals for reasons I can't understand. I have only started in this thread, but your description of unexplainable

Re: [CentOS] openoffice command line printing

2011-02-17 Thread Cameron Kerr
On 18/02/2011, at 2:29 PM, Gregory P. Ennis wrote: Everyone, I am trying to print some *.doc files from the command line with openoffice on centos 5.5 with using cups as the print server. I can open the file from the command line with open office and then print it manually from the gui,

Re: [CentOS] openoffice command line printing

2011-02-18 Thread Cameron Kerr
On 19/02/2011, at 3:30 AM, Gregory P. Ennis wrote: Cameron, Thanks for your suggestion On my system that command results in printing the document on the desired printer, but does not return back to the shell prompt. If I add -terminate_after_init so that the command line is :

Re: [CentOS] System Log Error

2011-02-22 Thread Cameron Kerr
On 22/02/11 19:25, sync wrote: Jan 11 07:56:00 kernel: [17179663.076000] atkbd.c: Unknown key released (translated set 2, code 0x81 on isa0060/serio0). Jan 11 07:56:00 kernel: [17179663.076000] atkbd.c: Use 'setkeycodes e001 keycode' to make it known. Jan 11 07:56:00 kernel:

Re: [CentOS] System Log Error

2011-02-22 Thread Cameron Kerr
Oh, and I forgot to mention this one also: http://ubuntuforums.org/showthread.php?t=76271 (The problem also happens in Redhat-based systems, but there seems to be more resolution in Debian-based forums) ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] System Log Error

2011-02-22 Thread Cameron Kerr
On 22/02/11 22:28, sync wrote: On Tue, Feb 22, 2011 at 4:42 PM, Cameron Kerr came...@humbledown.org mailto:came...@humbledown.org wrote: On 22/02/11 19:25, sync wrote: Jan 11 07:56:00 kernel: [17179663.076000] atkbd.c: Unknown key released (translated set 2, code

Re: [CentOS] how to optimize CentOS XEN dom0?

2011-02-22 Thread Cameron Kerr
On 23/02/11 12:29, Rudi Ahlers wrote: Hi, I have a problematic CentOS XEN server and hope someone could point me in the right direction to optimize it a bit. The server runs on a Core2Quad 9300, with 8GB RAM (max motherboard can take, 1U chassis) on an Intel motherboard with a 1TB SATA

Re: [CentOS] Unicode in C++

2011-02-23 Thread Cameron Kerr
The same as on any other Linux box. Some important tips for beginners: * Don't forget to set your locale appropriately at the beginning of your program. * Use ONE encoding CONSISTENTLY (utf-8 or utf-16) inside your program, and trans-code appropriately to/from outer

Re: [CentOS] IP6 Anyone?

2011-02-28 Thread Cameron Kerr
On 28/02/2011, at 10:30 AM, Les Mikesell wrote: On 2/27/11 12:50 PM, John R Pierce wrote: On 02/27/11 9:16 AM, Les Mikesell wrote: Is there any difference in efficiency in how well the NIC hardware filters the assigned addresses? Yes, as mentioned below, the NIC is given a list of

Re: [CentOS] Logwatch reporting spamassassin messages as unmatched entries

2011-02-28 Thread Cameron Kerr
On 28/02/2011, at 10:19 PM, Steve Searle wrote: I've recently switched to using spamassassin via a sendmail milter, rather than using procmail to invoke it. This means that I get a number of messages appearing in my maillog, and then being reported by logwatch as unmatched entries. An

Re: [CentOS] how to make centos safty(php+mysql)

2011-02-28 Thread Cameron Kerr
On 1/03/2011, at 4:51 AM, Yang Yang wrote: hi,every i have a php project and use centos to go and how to make folder's privilage and make it saft like: /home/htdocs/test chown -R www:www /home/htdocs/test chmod -R 644 /home/htdocs/test Almost correct, but directories also need

Re: [CentOS] how to control sftp's user file folder

2011-03-01 Thread Cameron Kerr
On 2/03/2011, at 3:20 AM, Eero Volotinen wrote: Is it possible to only chroot some users, not all. Yes, you can you use a Match block -- see sshd_config(5) -- to conditionally set the ChrootDirectory option. Cheers, Cameron ___ CentOS mailing list

Re: [CentOS-virt] Extract ip address from a kvm guest

2011-04-23 Thread Cameron Kerr
And if you can't run arpwatch on such router, you could try SNMP to query the ARP table on the router. On 24/04/2011, at 1:35 PM, Manuel Wolfshant wrote: On 04/23/2011 09:27 PM, carlopmart wrote: Arpwatch is a correct solution when host and guests are in the same network, but in my