Re: [CentOS] RS-485 over a half duplex serial in Centos 6.5
Hi Jason, I don't know what temperature range you want to sense. I have had success using I-Button temperature sensors directly on a USB RS232 connector. With this set up you can have multiple sensors on one line as each sensor has a unique address. The software I used for this was from a book Linux Toys by Christopher Negus and Chuck Wolber. ISBN: 0-7645-2508-5 Regards ChrisG On 11/09/2014 12:21 AM, Jason Ricles wrote: Gotcha and yes that was the problem I was having, I could transmit but would just get bounced but what I transmitted due to not being able to set transmit mode. So I basically have to use /drivers/serial/crisv10.c: serial driver used on the Cris ETRAX platform /drivers/serial/atmel_serial.c: serial driver used on Atmel platforms (AVR32 and AT91 included) for my drivers. Sorry I am not a fully hardware guy so am a little lost at some of this stuff, but I know the software is not working since the hardware has no way to know how to interact through software. On Sat, Nov 8, 2014 at 5:16 PM, John R Pierce pie...@hogranch.com wrote: On 11/8/2014 1:55 PM, Jason Ricles wrote: I am not too sure, it is for work and we got a custom board. My co worker who is more the hardware guy set it up. I did notice it is thin before 3.0 kernal. I saw in the 3.0 kernal they have more support. So we are basically up the creek without a paddle with the device and kernal 2.6. Would a RS-485 to RS-232 converter possibly fix the problems? the problem is, a 232-485 converter needs to be told when to be in transmit vs recieve mode for a half duplex single pair circuit to function. as that article says, this can be done by using the RS232 RTS signal to control the RS485 line driver, but the linux driver has to know about this and support it. -- john r pierce 37N 122W somewhere on the middle of the left coast ___ 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] find troubles
On 10/28/2014 11:00 PM, Tim Dunphy wrote: Hey guys, Sorry not sure what's wrong with this statement. I've tried a few variations of trying to exclude the /var/www directory. [root@224432-24 apr-1.5.1]# find / -name *httpd* -type d \( ! -name www \) /usr/lib/httpd /usr/lib64/httpd /var/www/vhosts/johnnyenglish/httpdocs /var/www/lpaddevbkp/alchemist/namespace/system-config-httpd /var/www/lpaddevbkp/httpd The ultimate intention once I get a suitable find command is to delete all references to httpd. I'm trying to do a clean install of apache 'the company way'. But before I do that I want to get rid of the apache that was there. I've already queried the rpm database and did a yum remove of the apache packages. So where I'm I going wrong with the above statement? Looks right to me! Thanks Tim Hi, Try: find / -name *httpd* -type d |grep -v www Regards ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] RAM Requirements
On 11/23/2013 07:35 AM, Mark LaPierre wrote: Hey Y'all, Does anyone know where I can look, please post a URL, where I can find out what the minimum system requirements are for CentOS 6.4? I've searched the CentOS.org web site for this but I've come up empty. I've got an old machine that had RH9 on it. The HD died so I had to replace that. Now I'm thinking that I want to install CentOS 6.4 on it but the minimal install disk says that I don't have enough RAM for it to do the install. Hi Mark, I recently installed CentOS 6.4 on a 386 system with 512kb of memory. I had to use a kickstart file to achieve this as the text installer does not give you any opportunity to partition the disk to your specification. Regards ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] [CEntOS] - problem with iptables
On 10/10/2013 10:09 AM, Eero Volotinen wrote: chkconfig iptables on fixes the problem.. On Oct 10, 2013 10:51 AM, Paolo De Michele pa...@paolodemichele.it wrote: hi all, I have a problem with iptables on CentOS 6.2. I configured: chkconfig iptables on and the file /etc/sysconfig/iptables if you reboot the machine configurations are not loaded. iptables-L gives me the default configurations (not assigned) if I (a machine booted): service iptables start then then it works. how can I fix? thanks in advance ___ 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 After service iptables start do: service iptables save This saves your configuration for the next restart / reboot ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Centos.org webpage down
On 10/11/2013 06:35 AM, Iqbal Aroussi wrote: 504 Gateway Time-out nginx/0.8.55 Best Regards Iqbal Aroussi 514 451-9122 On Fri, Oct 11, 2013 at 12:34 AM, Iqbal Aroussi iq...@aroussi.ca wrote: Confirmed, Down from Canada, Best Regards Iqbal Aroussi 514 451-9122 On Fri, Oct 11, 2013 at 12:31 AM, Digimer li...@alteeve.ca wrote: On 10/10/13 23:52, Erick Ocrospoma wrote: Hi, It seems that centos.org is not working properly, got a 502 bad gateway message. Down here in Canada. -- Digimer Papers and Projects: https://alteeve.ca/w/ What if the cure for cancer is trapped in the mind of a person without access to education? ___ 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 Down from South Africa as well: 502 Bad Gateway nginx/0.8.55 ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] the at command
On 01/21/2013 11:46 PM, Jerry Geis wrote: @Jerry: You might explain what it is you are attempting to do or why it is you need to schedule a job down to the second. I am looking for a way to sync up running a command on 10 boxes at the same time. So I thought - hey in my program I can send a command out that I want to run - this command is also another program of mine, get the current time, add 5 seconds to it, send this time HH:MM:SS to all 10 boxes and schedule an at command to run at that time. So all 10 boxes are running NTP and I thought it would be fine then if one box got it slightly faster than the last it would not matter as the at command would schedule the command to run all at the same time. So what mechanizim exists to run command down to the second? I'd rather not wait an entire 59 seconds to run the command. Thanks, Jerry ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Jerry, AFAIK the at and cron command do a best effort to run during the minute that you have specified. There is no guarantee that the process will kick off at 00 seconds. This all depends on load etc. etc. so that scheduling a job to start on an exact second is always going to be a problem. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Sending Email Via Telnet
On 10/16/2012 04:42 PM, Joseph Spenner wrote: From: John Reddylinuxpen...@hotmail.com To: centos@centos.org Sent: Tuesday, October 16, 2012 7:30 AM Subject: Re: [CentOS] Sending Email Via Telnet So I go to this page and get an example of how to do this: http://www.freebsdwiki.net/index.php/SMTP,_testing_via_Telnet and follow the example: [root@mydomain john]# telnet 127.0.0.1 25 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. HELO justtesting MAIL FROM: test...@gmail.com RCPT TO: test...@gmail.com DATA To: test...@gmail.com From: test...@gmail.com Subject: testing Date: Tu, Oct 2012 10:21:11 -0500 Testing . QUIT Something isn't quite right with your setup. When you do the HELO command, the server should reply with something. For example: == $ telnet smtp.comcast.net 25 Trying 76.96.40.155... Connected to smtp.comcast.net. Escape character is '^]'. 220 omta12.emeryville.ca.mail.comcast.net comcast ESMTP server ready HELO comcast.net 250 omta12.emeryville.ca.mail.comcast.net hello [69.24.1.7], pleased to meet you == Does the mail server ever return anything back to you? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos The correct way to get out of a Telnet session is to use the escape sequence given. Esc] shown as Escape character is '^]' in your session above. That should get you back to your prompt. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] ssh port forwarding
On 07/13/2012 03:45 AM, SilverTip257 wrote: Doug, It's also possible to send ssh to the background and also skip remote commands (perfect for tunneling). Options for ssh command: -f .. background -N . skip remote commands ** Personally I'd look for a more robust tunnel/VPN alternative. ** 1) OpenSSH tun/tap devices - but this should really be used for a 'one-off' quick tunnel = requires root to establish, so it's not ideal for every situation! (think roadwarriors, etc) 2) OpenVPN - SSL VPN - software/application based - simpler to set up as a result 3) OpenSWAN - IPSec VPN - hooks into the kernel (netkey or klips) ---~~.~~--- Mike // SilverTip257 // On Thu, Jul 12, 2012 at 4:15 PM, We Are Heresupp...@wearehere.net wrote: At 19:15 12/07/2012, you wrote: Hi Doug, Thanks for the feedback Tim. Glad I could help. Using your string, I can now telnet to port 2 on localhost (hostA) and I get the mysql connection string (from hostB), but it is not able to make a mysql connection (using mysql -u user -p -h localhost --port=2 from hostA), with a test user that I set up to allow connections from anywhere. The error that I am getting is: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) I did test and the mysql test user that I created is able to connect from hostB. Because the mysql connection is via an ssh tunnel, you need to ensure on the MySQL server hostB that is allows the mysql user access from 127.0.0.1 on hostB as that is effectively where the MySQL server on hostB sees the connection coming from. Also, when I do this, it still opens up an ssh session, logging me into the remote machine, thus making it so I can't use this terminal. Yes you need to run it is a screen session if you want it permanently connected. The eventual goal is to do this in a script, that will open the connection, use it for the duration of the script, and then close it when the script finishes, but it looks like that won't work, since it is logging me into the remote machine. I guess I could get around that by always leaving the screen session going with the connection, but I would prefer only creating the connection when I need it. Any ideas how to do this without leaving the connection open all the time? I have used an expect script to do this in the past. Which allows you to remotely log in to a server. Downside is you need to store the password in plain text in the expect script. So make sure only root can read the script. Or setup a lower privilege user to use sudo and do it that way. regards Tim Tim D'Cruz ___ 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 Hi, You can also set up ssh access using keys so that you do not need to enter a password when connecting. Regards ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Python version fights.
On 06/24/2012 02:47 AM, Gene Heskett wrote: Greets; This centos6.2 system seems to have python-2.6.6, but that is turning into a huge problem because I now have a backlog of about 40 packages that will not upgrade because they all need python 2.4. That, and importing gpg keys doesn't seem to be helping in that regard. But first, how to go about down grading python to 2.4? Thanks. Cheers, Gene Hi Gene, Down grading to Python 2.4 will break your CentOS 6.2 system. Rather install python 2.4 side by side with 2.6 and point the packages that need to use 2.4 to it by changing the first line in the scripts to #!/usr/bin/python2.4 instead of #!/usr/bin/python. I have had to do this the other way around on CentOS nad Red Hat 4 systems where I needed newer features and it work well. The instructions on how to do this are included in the tarball downloaded from the Python site. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS-virt] Failing to start or create VM, cannot connect to hypervisor host
On 06/16/2012 11:14 PM, jbo...@meridianenv.com wrote: Greetings - I shutdown one of my Centos 6.2 VMs for some offline maintenance and am now unable to get it to restart. I am also unable to create and start a new VM. The host system is Centos 6.2, fully up to date. I have been searching Google for two days and have not been successful in getting a VM to start. I have restarted libvirtd, but did not want to shutdown my other two running VMs and reboot my host system, unless I felt confident that it would solve the problem. The other two VMs on the box are still running fine, but I am also unable to connect to a console in VirtManger with them. I was able to connect to all these VM consoles from the host system just a week or so ago. The only changes that I had recently made to the host system was to add some restrictions in my /etc/hosts.allow and hosts.deny files and installed Fail2ban. I have reversed all of the changes to my hosts.allow/deny files and have stopped the Fail2ban service. Still unable to start or create a VM. I am at the end of my rope here and am hoping someone will be able to direct me with where I should be looking next. My error and log messages are listed below. Thanks. Jeff Trying to start the VM using VirtManager at the console of the host results in the following error. error: Failed to start domain SequoiaVM error: internal error process exited while connecting to monitor: char device redirected to /dev/pts/7 inet_listen_opts: bind(ipv4, 127.0.0.1, 5902) : Cannot assign requested address inet_listen_opts: FAILED Each attempt at a restart results in the following set of messages in /var/log/messages Jun 16 13:45:04 earth kernel: device vnet2 entered promiscuous mode Jun 16 13:45:04 earth kernel: br0: port 4(vnet2) entering learning state Jun 16 13:45:04 earth qemu-kvm: Could not find keytab file: /etc/qemu/krb5.tab: No such file or directory Jun 16 13:45:04 earth kernel: br0: port 4(vnet2) entering disabled state Jun 16 13:45:04 earth kernel: device vnet2 left promiscuous mode Jun 16 13:45:04 earth kernel: br0: port 4(vnet2) entering disabled state Jun 16 13:45:04 earth kernel: libfcoe_device_notification: NETDEV_UNREGISTER vnet2 Log messages in /var/log/libvirt/libvirtd.log are similar to the console 2012-06-16 19:56:39.807+: 32175: error : virNetSocketReadWire:911 : End of file while reading data: Input/output error 2012-06-16 20:15:23.672+: 32176: error : qemuMonitorOpenUnix:290 : failed to connect to monitor socket: No such process 2012-06-16 20:15:23.672+: 32176: error : qemuProcessWaitForMonitor:1289 : internal error process exited while connecting to monitor: char device redirected to /dev/pts/7 inet_listen_opts: bind(ipv4,127.0.0.1,5902): Cannot assign requested address inet_listen_opts: FAILED Log messages in /var/log/libvirt/qemu/SequoiaVM.log are similar 2012-06-16 13:45:04.572: starting up LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -S -M rhel6.2.0 -enable-kvm -m 2048 -smp 4,sockets=4,cores=1,threads=1 -name SequoiaVM -uuid 1ca3a14b-cd4b-f371-b3fe-1cd518480c09 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/SequoiaVM.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot order=dc,menu=on -drive file=/dev/vg_mei/lv_sequoiaroot,if=none,id=drive-virtio-disk0,format=raw,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0 -drive file=/dev/vg_mei/lv_sequoiaswap,if=none,id=drive-virtio-disk1,format=raw,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk1,id=virtio-disk1 -drive file=/dev/vg_mei/lv_sequoiavar,if=none,id=drive-virtio-disk2,format=raw,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk2,id=virtio-disk2 -drive file=/dev/vg_mei/lv_sequoiahome,if=none,id=drive-virtio-disk3,format=raw,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x8,drive=drive-virtio-disk3,id=virtio-disk3 -drive file=/dev/vg_mei/lv_sequoiaecosystem,if=none,id=drive-virtio-disk4,format=raw,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x9,drive=drive-virtio-disk4,id=virtio-disk4 -drive file=/dev/sr0,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=28,id=hostnet0,vhost=on,vhostfd=29 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:9d:b2:49,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -device usb-tablet,id=input0 -vnc 127.0.0.1:2 -vga cirrus -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0xa char device redirected to /dev/pts/7 inet_listen_opts: bind(ipv4,127.0.0.1,5902):
Re: [CentOS] Allow updates but not upgrades
On 05/13/2012 01:18 AM, Johnny Hughes wrote: On 05/12/2012 05:23 PM, Les Mikesell wrote: On Fri, May 11, 2012 at 5:48 PM, Warren Youngwar...@etr-usa.com wrote: knows where to get them. Isn't it overkill to keep a whole repo snapshot copy when you really just need a way to tell yum the package versions you want on the 2nd box? Why all the agida? This isn't difficult: What is the point of even having revision numbers on packages in the public repositories if I can't trust that installing that package on another system will be that same and instead have to maintain my own snapshot copy to be sure I can reproduce it. Step 0, done only once: set up yum repo, and modify the stable clients to use it: Repeat for _every_ different system in every state you might want to be able to reproduce... Step 1: Step 2: Step 3: That's it. Some minor setup, then three (or two) easy steps per update. I just don't understand why such cumbersome multi-step processes and local storage facilities are needed. Why aren't the tools that people need shipped to work as-is? The tools that PEOPLE need are shipped. The tools that LES need obviously are not. This is open source ... so if it doesn't work like you want, download the source and change it so it does work like you want. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Bravo Johnny !! ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Berkeley DB SQL
Hi, I am converting a system to use Berkeley DB for file access instead of ISAM files, but need to be able to examine the data in the files while testing. Does anyone know whether the DB SQL from Russian Fedora Free Updates for CentOS 6 (RHEL 6) (libdb-sql-devel-5.2.36-5.el6.R.x86_64.rpm) will work with the version of Berkeley Data Base on CentOS and RH 6? Regards ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] OT Open Cobol
Hi, Has anyone on this list had any success with installing and using Open Cobol on RH or CentOS? Any pointers would be very welcome. I have Googled and am working with Vince on the Open Cobol mailing list to try to resolve installation problems. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT Open Cobol
On 04/27/2012 06:09 PM, Jesus del Valle wrote: Hi Chris, In CentOS 6.2: yum install gmp gmp-devel libtool ncurses ncurses-devel ncurses-libs yum install libdbi libdbi-devel libtool-ltdl libtool-ltdl-devel db4 db4-devel (I think I had all but db4-devel pre-installed, not sure now) Hi Jesus, Thanks very much, I removed all of the stuff that I had manually downloaded and followed your instructions and the make check completed all tests without errors. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Machine becoming irresponsive
Dotan Cohen wrote: On Mon, Jan 23, 2012 at 16:23, Phil Schaffner philip.r.schaff...@nasa.gov wrote: I'd have a look at why an apparently Internet-facing server is 5 point releases, plus a lot of subsequent errata, behind the current 5.7 release level; and what resultant vulnerabilities might have been exploited. Thanks. There are a lot of very specific software on that server that precludes it from being updated. I believe that 5.2 still is seeing security updates, no? In any case, a complete reinstall with either 5.2 or a latter version is pretty much out of the question for now, though I will try to see what needs to be done in that direction. In the meantime, where should I concentrate my efforts? Thanks. Hi Dotan, I think that you are mistaken in your belief that 5.2 is still receiving security updates. CentOS 5 is still receiving updates but to benefit from them you have to be at the latest point release, at the moment 5.7. Regards ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Changes at Red Hat confouding CentOS
Steve Thompson wrote: On Tue, 15 Nov 2011, Timothy Murphy wrote: Reindl Harald wrote: But isn't everyone today using laptops for everyday use? this is what some braindead developers seems to think but it is not true nor will it never get true! why in the world should i use a laptop in my office if i can have a Core i7 Quad combined with much more and better hardware as ever possible in a laptop? Don't you think you are in a very small minority, like 1% of the world? Not by a long long way. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos +1 ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Show your CentOS Support
Karanbir Singh wrote: hi guys, I have about 80 CentOS T-Shirts, ranging from Medium to 3XL in size. These are the grey T-shirts we can see Ralph, Garry and the guys from hostdime modeling for us at: http://www.karan.org/pics/centos/images/002-IMG_2571.JPG If you would like one, please send me an email on kbsingh at the centos.org domain, and let me know your address and what size you would want, I would be happy to ship it out to any part of the world as long as you are willing to cover postage costs ( as an example : they fit into jiffy bags that cost £1 at the postoffice, and its about £1.50 shipping per Tshirt to the UK via first class ). First come, first serve! And I will confirm costs before sending them out. - KB ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Karanbir, If you still have I would like a 3XL T shirt. I will use it for Software Freedom Day (South Africa) in September where I have had a CentOS table for the past two years. My Address is: Chris Geldenhuis P.O. Box 44002 Linden 2104 Alternatively you could ship it to my daughter at: Mrs A Delcroix, Avenue Bel Horizon 48 Genval, 01332 Belgium I will sort out the cost of the T Shirt and postage with you. TIA ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: RHEL 6.1 is out
R P Herrold wrote: On Mon, 23 May 2011, Timothy Murphy wrote: This seems to me to be an unnecessarily agressive response to what appeared to me a rational question from Les Mikesell. But I don't think the fact that a service is free entitles its proponents to be rude to those using it. You must be new to this mailing list :) no -- this post was intentional on my part as part of a new approach to this mailing list's 'poisonous people' [1] ... I am going to try: stop ignoring public misbehaviour, and rather point it out expressly (that is: 'shame' rather than 'shun') Sort of like St. Patrick driving the Celtic snake spirits out of Ireland 'Banishment' either by way of unsubscription, or moderation cannot work -- a troll will just subscribe another sock puppet Well-known trolls who find their entertainment during the workday sowing discontent here, with the techniques of 'Twenty-Five Rules of Disinformation' [2] and otherwise, will be invited by me to put up or shut up We'll see how (and if) this works -- it formerly worked well in the IRC channel where we could use a LART; dunno that it will work here -- Russ herrold [1] http://video.google.com/videoplay?docid=-4216011961522818645 [2] Google knows ... This enumeration seems to be of unknown authorship, but 'rings true' for much seen here ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Russ, Thanks for the link, most enlightening and I wish you every success in your efforts to improve the SNR. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] virtdown script
Ljubomir Ljubojevic wrote: Tim Dunphy wrote: hello list! I have a small shell script that I wrote that is meant to quickly bring down all of my xen instances in a quick and easy manner. Odd thing is, it does work on the command line. But if I put it into a script this happens: [root@LCENT03:/home/bluethundr/bin] #virtdown it expects another command to happen. which is odd since all of the text delimiters ( and ') are balanced according to vim. I was wondering if I could have an opinion on why this might be happening. Here's the script: #/bin/bash for i in $(virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'); do /usr/bin/virsh shutdown $i done thanks in advance! tim Last thing I saw is #/bin/bash instead of #!/bin/bash. Fix and try. The rest of suggestions: Add plenty of unique echo lines so you can see where it brakes. Also try $(`virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'`) and try sending that same part to variable first and echo the variable so you can see output. #!/bin/bash list=$(virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}') echo the list is=$list; sleep 2 for i in $list; do echo Running shutdown for item $i; sleep 2 /usr/bin/virsh shutdown $i echo shutdown for item $i is complete; sleep 2 done and try version with: list=$(`virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'`) Ljubomir ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos In cases like this it is also useful to put in a line set -x early on in the script. It will then output every stage as it parses each command allowing you to see where the resulys are not as expected. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] preparing to migrating to new system
Rajagopal Swaminathan wrote: Greetings, On Tue, Dec 21, 2010 at 10:07 PM, Jerry Geis ge...@pagestation.com wrote: hi all, hmm.. scp oldbox:/etc/passwd brand new CentOS 6 Box geewiz:/etc/passwd ditto /etc/gshadow,/etc/groups, /etc/gshadow YMMV Regards Rajagopal ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi, Be aware that if you are doing this between different releases 4.x to 5.x for instance you stand a good chance of breaking your system as the systems account set up by the installer may well differ between the two releases. It is safer to extract the users that you have added to the system from the password and shadow files and to append the resulting files to the new system's password and shadow files. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 6
m.r...@5-cent.us wrote: Daniel Heitmann wrote: On 20.12.2010 21:35, m.r...@5-cent.us sent: *sigh* I'm sitting here with my manager and the other admin, as they argue as to when CentOS 6 will be out. Anyone have a clue as to when? Are we getting close? Just follow kbsingh and/or centos on Twitter and you'll know if its done. I'd also expect info on early testing-releases there. Ah, no. I'm not a twit, so I'll just check the CentOS.org website, and here. mark, who remembers too bloody well wearing a pager 24x7x365.25, except when he was wearing *two* of the damn things, so screw Twitter ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos +1 ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)
Sven Aluoor wrote: Hi folks I have more than 12 years experience with UNIX system administration, but I am too stupid for programming. My only programming experience is shell scripting. I tried to learn Java, but don't understand it because it is too complicated for my limited brainpower. What programming language should I learn? A friend said that C-Sharp (Mono) is very simple. Is this true? cheers Sven ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Look at Python, the syntax is very structured and has few gotchas. It is also very useful for various sysadmin tasks. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] SELinux - way of the future or good idea but !!!
Rob Kampen wrote: Daniel J Walsh wrote: I wrote this paper to try to explain what SELinux tends to complain about. http://people.fedoraproject.org/~dwalsh/SELinux/Presentations/selinux_four_things.pdf I am having difficulty with the pdf file - both adobe and kpdf have problems with the pages with screen shots - any chance of a fix? Paper is well writen and sheds light on the SElinux methodology. TIA - Rob -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAkz+XQsACgkQrlYvE4MpobNrgACfZduLdW/ISac6otm8SRO+c4Za S0QAn3l00KRGtNmnaVAy4cFpL/jjrwuz =7ega -END PGP SIGNATURE- ___ 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 Hi, I can open it with KGhostView all pages display properly except that page 7 is (intentionally ?) blank. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Terminal - name too long
Vnpenguin wrote: On Thu, Nov 25, 2010 at 23:02, Johan Scheepers johans...@telkomsa.net wrote: John R Pierce wrote: On 11/25/10 12:36 PM, Johan Scheepers wrote: Good day, [jo...@unknown2a68 ~]$ How/where could I make the above a lot shorter please. A) choose a shorter hostname B) change your default prompt via an export PS1= in $HOME/.bashrc see http://tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html for the PS1 options... ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos gedit .bashrc # User specific aliases and functions PS1=[jo...@\w] \$ [jo...@~] $ cd /bin [jo...@bin] $ [jo...@bin] $ su root Password: [r...@unknown2a68 bin]# Now only need to fix superuser. Kindly where/how please * man hostname * vim /etc/sysconfig/network ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Johan, Follow exactly the same procedure that you did with your own login. Edit .basrc in /root and change the PS1 setting there. You have to be root to be able to do this. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT: Strange Email Problem
Susan Day wrote: With regard to Richard's comments, I will get in touch with my server farm (or garden, small company) that handles the same. Regarding Simon's comments, these DNS packets have got to be teeny tiny. This is plain text and very little of that. Your response was full of terms I didn't understand and of course can look up and will if necessary, but I think you're seeing a size that isn't merited. I'll await your response before proceeding. TIA, Susan ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Susan, The records that Richard was talking about was not that of your actual mail, but the Domain Name Service (DNS) records required to find the destination server and for that server to look up your server to verify that the mail comes from a valid address. I recall a discussion earlier this month about the root DNS servers being updated to a new version of DNS software that would increase the size of the DNS records. This would then take a while to filter through the tree of DNS servers and eventually software that could not handle these larger records would fail. I hope that this sheds some light. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Text file manipulation in CentOS?
John R. Dennison wrote: On Wed, May 12, 2010 at 05:12:48AM +0100, hadi motamedi wrote: $ cat hadi | sort | uniq -c -w 9 | sort -n | perl -ne 'print unless /(\d+)/ and $1 3' 4 CallId 91 State TK Bts 5 Bt 1 Tr (4 0x0f) E1 (4 0 18) Tru (0 1 1) 7 CallId 92 State CL Bts 7 Bt 1 Tr (6 0x0a) E1 (3 1 Thank you for your reply. To just have one 'State' for the CallId , I created one new logfile as the following: #more logfile1 | grep State TK logfile2 Then in the logfile2 , I tried to count the number of occurances of each distinct CallId with the aid of your proposed command . But in the output, I see differences between the number obtained from counting them manually with the one generated from your command. Can you please correct me? I'm likely to get in trouble for this, but frankly I don't really care. This list doesn't exist to do *your* job for you. We are not here to do *your* work. In the past few months you've done nothing but use the members of this list as your personal please come do my job for me group because you choose not to do any research or learning on your own. While members of the list are quite happy to help people, you're taking advantage of their kindness and patience. Why should you be paid or earn class credit based on our expertise? It is not clear whether you are a paid IT person, consultant or just a student learning about the IT field. But it is also not relevant, as you are just depending on us to do your work. There are a bazillion resources on the web, starting with google, that will help you learn *basic* shell scripting as is needed to solve your most current issue. There exist *many* excellent books on shell scripting; there is also man bash; man awk; man cut; man sed; etc. READ THEM. Have you taken the time to make use of any of these resources? Have you decided to resort to this list every time something basic is needed that you refuse to take the time to learn so you are able to put together solutions yourself? DO YOUR OWN RESEARCH ONCE IN A WHILE. You might be amazed at what you can learn when you do so. At some point you *will* be in a position where you have a task that needs to be done and you will not have this list to fall back on. What are you going to do then? Cry to your boss or your professor that you can't do it because all the people that have been doing your work for you up to that point aren't available? If you were working for me I'd terminate you for not making any effort on your own. If you were a student of mine I would fail you for not expending any effort at learning the material. If you were a consultant I'd make sure you never worked for any company I was a part of and also blacklist you on top of it. Really, enough is just enough. Enough is also enough with the spoon-feeding. I realize that most of you are kindhearted souls that delight in helping people and that is, in most cases, to be commended. But this never-ending spoon-feeding doing Hadi's job for him is not helping him in the least. Make him stand on his own two feet for a change. It is *obvious* he has made no attempt at resolving the problems he has brought to this list on his own and it has been obvious since his first post. And yes, I know, we all started somewhere, blah, blah, blah. While this is indeed true it is *also* true that we spent the time to learn what we needed in order to do our jobs, including the most important of all: how to find the information we need which in this day and age is google or some other search engine. (http://stuff.gerdesas.com/images/spoon.png) To any on the list *other* than Hadi that I've offended by this post you have my most sincere apologies. Sorry for wasting your time but this has been building up for a long time. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos +1 ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Problem updating VM
Hi, I am trying to bring one of my CentOS 5 VMs up to date. I have run: yum clean all yum update yum yum clean all yum update python* rpm* yum clean all without any problems or error messages. Now when I try to run yum update, I get the following: [r...@tusker ~]# yum update There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named cElementTree Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.4.3 (#1, Sep 3 2009, 15:37:37) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq I then downloaded the python-clementtree package from dags site and tried to install it and get: [r...@tusker ~]# rpm -i ./python-celementtree-1.0.5-1.2.el5.rf.x86_64.rpm warning: ./python-celementtree-1.0.5-1.2.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6 error: Failed dependencies: python-elementtree conflicts with python-celementtree-1.0.5-1.2.el5.rf.x86_64 yet when I query the package I get: [r...@tusker ~]# rpm -q python-celementtree-1.0.5-1.2.el5.rf.x86_64.rpm package python-celementtree-1.0.5-1.2.el5.rf.x86_64.rpm is not installed and when I try to remove it I get: [r...@tusker ~]# rpm -e ./python-celementtree-1.0.5-1.2.el5.rf.i386.rpm error: package ./python-celementtree-1.0.5-1.2.el5.rf.i386.rpm is not installed I have tried rebuilding the rpm database with no result. Any suggestions? TIA ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Problem updating VM
Kwan Lowe wrote: That module is from CentOS python-elementree. Try validating that package: rpm -qV python-elementtree Note that this is different from python-celementtree from rpmforge... [snip] When you do a query, just use the basename: rpm -q python-celementtree ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Kwan and Stephen, Thanks for your replies. When I do: [r...@tusker ~]# rpm -qV python-elementtree [r...@tusker ~]# I get no output as you can see. When I do: [r...@tusker ~]# rpm -q python-elementtree python-elementtree-1.2.6-7.el4.rf [r...@tusker ~]# I get the package name listed: When I then do: [r...@tusker ~]# rpm -q --info python-elementtree Name: python-elementtree Relocations: (not relocatable) Version : 1.2.6 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ Release : 7.el4.rf Build Date: Sun 13 Aug 2006 06:38:39 PM SAST Install Date: Mon 05 Apr 2010 06:46:15 PM SAST Build Host: lisse.leuven.wieers.com Group : Development/Libraries Source RPM: python-elementtree-1.2.6-7.el4.rf.src.rpm Size: 471008 License: PSF Signature : DSA/SHA1, Sun 13 Aug 2006 09:39:29 PM SAST, Key ID a20e52146b8d79e6 Packager: Dag Wieers d...@wieers.com URL : http://effbot.org/zone/element-index.htm Summary : Fast XML parser and writer Description : The Element type is a simple but flexible container object, designed to store hierarchical data structures, such as simplified XML infosets, in memory. The element type can be described as a cross between a Python list and a Python dictionary. This package also includes the C implementation, cElementTree-1.0.5-20051216. [r...@tusker ~]# Which appears to tell me that this is an old version possibly installed from an incorrect repositry (Dags) and not the standard CenTOS repositries. My problem now is that yum does not work as there is a conflict between this version of the package and the updated Pyhton. Any idea on recovering from this situation. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Problem updating VM
Stephen Harris wrote: On Mon, Apr 05, 2010 at 11:01:19PM +0200, Chris Geldenhuis wrote: My problem now is that yum does not work as there is a conflict between this version of the package and the updated Pyhton. Any idea on recovering from this situation. Remove it (with rpm -e - use --nodeps if you have to!) and then download manually and rpm -i the correct version from a CentOS mirror repository. Hi Stephen, Thanks I'll try that tomorrow evening after work - I have to go now. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Problem updating VM - SOLVED
Chris Geldenhuis wrote: Stephen Harris wrote: On Mon, Apr 05, 2010 at 11:01:19PM +0200, Chris Geldenhuis wrote: My problem now is that yum does not work as there is a conflict between this version of the package and the updated Pyhton. Any idea on recovering from this situation. Remove it (with rpm -e - use --nodeps if you have to!) and then download manually and rpm -i the correct version from a CentOS mirror repository. Hi Stephen, Thanks I'll try that tomorrow evening after work - I have to go now. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Stepen and Kwan, That appears to have worked - at least yum is now running to update the remainder of the systems. Thanks again for your help. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] SSH Remote Execution - su?
Tim Nelson wrote: Tim Nelson Systems/Network Support Rockbochs Inc. (218)727-4332 x105 - Jeremy Rosengren jeremy.roseng...@gmail.com wrote: On Wed, Mar 3, 2010 at 3:36 PM, James Hogarth james.hoga...@gmail.com mailto:james.hoga...@gmail.com wrote: On 3 March 2010 21:20, Tim Nelson tnel...@rockbochs.com mailto:tnel...@rockbochs.com wrote: Greetings All- I'm about to embark on some remote management testing and need a way to login to a remote system running CentOS 4.x/5.x via SSH, su to root (using a password), then execute a command. I currently login to the boxes using key based SSH like this: ssh -i ~/remote_key ad...@$remoteip Then, I SU to root. However, if I try to do this automatically like this: ssh -i ~/remote_key ad...@$remoteip 'su -l' I'm getting: standard in must be a tty So, how am I able to remote login using SSH, su to root, then execute a command as root? All comments and suggestions welcome. Thanks! --Tim ___ CentOS mailing list CentOS@centos.org mailto:CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Best off configuring sudo for that user (with no password) and make sure that user has !requiretty in the sudoers configuration. James ___ CentOS mailing list CentOS@centos.org mailto:CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Does ssh -t help? YESS. It prevents the tty error from showing up and asks me for a password as expected. BUT, how do I then automate the entering of the password? John Kennedy mentioned using expect which I've used before but found it to be 'finnicky'. I may have to look at it again... Changing settings such as sudo configuration or ssh config may be daunting since I have a large number of systems(150+) that would need to be modified. :-/ --Tim ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos I found that Python expect is far more logical and understandable for complex tasks than the expect command. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Temperature sensor
Wade Hampton wrote: Try the Dallas/Maxim 1-wire system. They have serial port controllers with an RJ11 jack so you can use a phone cable to the sensor. I got one of their temp sensors and a cheap RJ11 jack from Radio Shack and had a remote temp sensor. They use a simple serial protocol and some of the controllers are smart like the DS9097U $28 or so for the controller: http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2983 http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2923 For temperature DS28EA00: http://www.maxim-ic.com/quick_view2.cfm/qv_pk/5355 On Fri, Feb 26, 2010 at 2:02 PM, nate cen...@linuxpowered.net wrote: Dominik Zyla wrote: You have right. While you checking sensors from few machines, you can see the trend. Gotta think about changing the way of temperature monitoring here. Myself I wouldn't rely on internal equipment sensors to try to extrapolate ambient temperature from their readings. Most equipment will automatically spin their fans at faster RPMs as the temperature goes up which can give false indications of ambient temperature. I do monitor the temperature of network equipment, but also have dedicated sensors for ambient readings. Already saved us some pain once, opened up a new location in London last year and the ambient temperature at our rack in the data center was 85+ degrees F. The SLA requires temperature be from 64-78 degrees. Alarms were going off in Nagios. The facility claimed there was no issue, and opened up some more air vents, which didn't help. They still didn't believe us so they installed their own sensor in our rack. The next day the temperature dropped by ~10 degrees, I guess they believed their own sensor.. http://portal.aphroland.org/~aphro/rack-temperature.png People at my own company were questioning the accuracy of this sensor(there was only one, I prefer 2 but they are cheap bastards), but I was able to validate the increased temperature by comparing the internal temp of the switches and load balancers were significantly higher than other locations. Though even with the ambient temperature dropping by 10+ degrees, the temperature of the gear didn't move nearly as much. The crazy part was I checked the temperature probes at my former company(different/better data center) and the *exhaust* temperature of the servers was lower than the *input* temperature from this new data center. Exhaust temperature was around 78-80 degrees, several degrees below the 85+. It seems the facility in London further improved their cooling in recent weeks as average temperature is down from 78 to about 70-72 now, and is much more stable, prior to the change we were frequently spiking above 80 and averaging about 78. Also having ambient temperature sensors can be advantageous in the event you need to convince a facility they are running too hot(or out of SLA), as a tech guy myself(as you can probably see already) I am much less inclined to trust the results of internal equipment sensors than a standalone external sensor which can be put on the front of the rack. nate ___ 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 +1 ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] OT TTW Email Interface
Susan Day wrote: Hi; I don't know what these things are called so that I can look for an OS solution. I want to install an email server interface like Hotmail where people can check their email TTW. What is this called? Any recommendations? TIA, Susan ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Susan, You could also look at the free (or paid if you want all the features) of Zimbra. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] update of openssh-server i386 4.3p2-36.el5, dependencies
zagiatakrapo...@gmx.ch wrote: so far: - not a yum bug - not a configuration issue - other persons could reproduce this behaviour even under RHEL right? so this backport is actually broken or let's say the guy who did this, improved encryptFS-utils that much, it uses now X11 libraries even if it actually has no GUI... still right? ok, so now what is the next step? There is a ticket for this issue but it is reported as a yum bug (see my last post). we all just wait until somebody kicks some #$!@ of the responsible code monkeys? rant on I usually stay out of flame wars an observe from the side lines or just discard the offending messages. However this time you have gone too far by calling the people who make this project possible both the CentOS team and the RedHat staff Code Monkeys. I would suggest that you volunteer to fix the problem instead of name calling and being abusive or else pay for support to Redhat or another distro. ChrisG rant off ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] rsync
chloe K wrote: Hi I put the rsync in cronjob but it won't work in root user cron */30 * * * * /home/chloe/rsy.sh /dev/null 21 1/ why it needs pw when I run this rsy.sh in root? but if I run it in chloe user, it doesn't need pw as I put authoized_key in remote host chloe 2/ why this root cronjob is not working? what wrong? I can't see this cron in message the rsy.sh is below #! /bin/sh rsync -essh -av ch...@remotehost:/var/www/html mailto:ch...@remotehost:/var/www/html /backup/html Thank you Ask a question on any topic and get answers from real people. *Go to Yahoo! Answers.* http://ca.answers.yahoo.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Chloe, How did you create your cron table? You have to craete it with crontab and not with vi for it to be effective. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Add instantly active local user accounts *with* password using useradd -p option ?
Niki Kovacs wrote: Hi, I need to setup a load of user accounts on a series of machines, for testing purposes. I'm using a script to do this, but the only problem I have so far: I have to activate them all manually by doing passwd user1, passwd user2, passwd user3, etcetera. The useradd man page mentions a -p option to define a password, but I can't seem to get this to work. Here's what I'd like to be able to do: # useradd -c Gaston Lagaffe -p abc123 -m glagaffe And put that line in a script, so the account is *instantly* activated. I tried it, but to no avail. Looks like there's some burning loop I have to jump through first :o) No security considerations here for the moment, since it's for testing. Any idea how this works? Niki ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Niki, I have a script called usergen that does this for 1 user at a time. You can wrap this in a loop and feed it a list of names for the accounts that you need to create. The script is: PWD=`mkpasswd -l 8 -s 2`; export PWD echo user = $1 password = $PWD /usr/sbin/useradd -c $2 -m -k /home/skeleton -n -p $PWD $1 echo $PWD| passwd --stdin $1 You can of course vary the parameters for password generation by changing the length (-l) and allowing special characters etc. The directory /home/skeleton contains all the files that you need to set up in each user's account. This can also be a customized .bashrc to set environmental variables etc. The line with the echo command is there so that you have a record of the password generated for each user. Hope this helps ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Linuxtag 2009
Ralph Angenendt wrote: Cheers. It is this time of year again: CentOS is going to Linuxtag 2009 (well, at least we will try to get a booth there). If you want to be part of the team there, stay tuned for news here in centos-pr...@centos.org. Deadline for the projects is 24th of march (short call!), I will try to apply sooner than that :) Cheers and thanks, Ralph ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Ralph, As it happens I have a trip to Europe planned that will allow me to attend Linuxtag. I would be happy to help if there is anything I can do on the CentOs stand (if there is one). ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] WAY OT: domain name registration .co.za
Glenn wrote: Hello All, Very sorry about WAY off-topic query, but you folks really are one of my most International subscribed groups. I am looking for a recommendation for a domain name registrar I can register my .co.za domain name with that won't 'yank my chains'. I tried a couple attempts at registering and found some hidden fees along with the insistence that I had to host my DNS with them. Lots of hosting bundles! I just want a registrar that can register the domain name and use MY DNS servers. I'll do all the hosting, thank you very much! Thanks in Advance! Glenn ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Glen Try http://www.coza.net.za I'm registered with them and host my own site - no problems. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] shell script
Mad Unix wrote: I have to run multiple command about 20x on linux each one got his own output, I want to bind all the out puts of them in one file then read this file and mail it to user account sample [r...@imail pons]# /home/pons/tsmmonitor stgpool SDC-STAFF stgpool - utilization of storage pool SDC-STAFF 62%, OK [r...@imail pons]# /home/pons/tsmmonitor stgpool ISO-BACKUP-POOL stgpool - utilization of storage pool ISO-BACKUP-POOL 41%, OK [r...@imail pons]# /home/pons/tsmmonitor stgpool ORACLE-DUMP-POOL stgpool - utilization of storage pool ORACLE-DUMP-POOL 62%, OK [r...@imail pons]# /home/pons/tsmmonitor stgpool ORACLE-DUMP-POOL stgpool - utilization of storage pool ORACLE-DUMP-POOL 62%, OK I want all these out puts be bind it in one file myfile: stgpool - utilization of storage pool SDC-STAFF 62%, OK stgpool - utilization of storage pool ISO-BACKUP-POOL 41%, OK stgpool - utilization of storage pool ORACLE-DUMP-POOL 62%, OK stgpool - utilization of storage pool ORACLE-DUMP-POOL 62%, OK then to read this file and send it to email address Thanks ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi, Do this by re-directing the output from your commands into a file like this: [r...@imail pons]# /home/pons/tsmmonitor stgpool SDC-STAFF outfile [r...@imail pons]# /home/pons/tsmmonitor stgpool ISO-BACKUP-POOL outfile [r...@imail pons]# /home/pons/tsmmonitor stgpool ORACLE-DUMP-POOL outfile [r...@imail pons]# /home/pons/tsmmonitor stgpool ORACLE-DUMP-POOL outfile Note that the single in the first line will create a new outfile that is it will create the file if it does not exist or over-write it if it does exist. The double in the following commands will append the output of those commands to the already existing outfile. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] shell script
Matt Shields wrote: On Sun, Feb 8, 2009 at 9:52 AM, Chris Geldenhuis chris.gel...@iafrica.com mailto:chris.gel...@iafrica.com wrote: Mad Unix wrote: I have to run multiple command about 20x on linux each one got his own output, I want to bind all the out puts of them in one file then read this file and mail it to user account sample [r...@imail pons]# /home/pons/tsmmonitor stgpool SDC-STAFF stgpool - utilization of storage pool SDC-STAFF 62%, OK [r...@imail pons]# /home/pons/tsmmonitor stgpool ISO-BACKUP-POOL stgpool - utilization of storage pool ISO-BACKUP-POOL 41%, OK [r...@imail pons]# /home/pons/tsmmonitor stgpool ORACLE-DUMP-POOL stgpool - utilization of storage pool ORACLE-DUMP-POOL 62%, OK [r...@imail pons]# /home/pons/tsmmonitor stgpool ORACLE-DUMP-POOL stgpool - utilization of storage pool ORACLE-DUMP-POOL 62%, OK I want all these out puts be bind it in one file myfile: stgpool - utilization of storage pool SDC-STAFF 62%, OK stgpool - utilization of storage pool ISO-BACKUP-POOL 41%, OK stgpool - utilization of storage pool ORACLE-DUMP-POOL 62%, OK stgpool - utilization of storage pool ORACLE-DUMP-POOL 62%, OK then to read this file and send it to email address Thanks ___ CentOS mailing list CentOS@centos.org mailto:CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi, Do this by re-directing the output from your commands into a file like this: [r...@imail pons]# /home/pons/tsmmonitor stgpool SDC-STAFF outfile [r...@imail pons]# /home/pons/tsmmonitor stgpool ISO-BACKUP-POOL outfile [r...@imail pons]# /home/pons/tsmmonitor stgpool ORACLE-DUMP-POOL outfile [r...@imail pons]# /home/pons/tsmmonitor stgpool ORACLE-DUMP-POOL outfile Note that the single in the first line will create a new outfile that is it will create the file if it does not exist or over-write it if it does exist. The double in the following commands will append the output of those commands to the already existing outfile. ChrisG Actually will also create the file if it doesn't exit. Try it :) -matt http://www.sysadminvalley.com http://www.beantownhost.com http://www.linkedin.com/in/mattboston Joe E. Lewis - I distrust camels, and anyone else who can go a week without a drink. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Matt, I know that, but if you use and there is some file there with that name already the data will be appended to it instead of starting a new file with the output of your current session only. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Where do I find perl XML::Parser module
Hi, I am trying to install a package that requires the perl XML::Parser module. So far I have: Googled Installed rpmforge and yum priorities set priorities for all repositories used with rpmforge at 10 tried yum install perl-XML, yum install mod_perl-XML etc. and get response Nothing to do so what is the correct yum request to get this package installed. uname -a Linux xxx.co.za 2.6.18-92.1.18el5xen #1 SMP Wed Nov 12 09:48:10 EST 2008 x86_64 x86_64 x86_64 GNU/Linux TIA ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5.2 with IBM SERVERAID 6i
[EMAIL PROTECTED] wrote: I need to install CentOS 5.2 on a IBM Server xSeries 226, which comes with a IBM SERVERAID 6i RAID card. I think it is not a true hardware RAID card. I has, nevertheless, an interesting feature: 128MB of cache with battery backup. I launched the CentOS boot DVD and CentOS correctly identified the card and the RAID 5 array as configured by the controller's BIOS. My question now is: what would be the better way to implement RAID 5 on this server? Should I use the detected array and respective driver or should I delete the array and go for Linus Software RAID? If both solutions are in fact Software RAID, is there any particular reason to prefer one of the methods? I know that Linux RAID will create a universal, more compatible array, readable on any Linux machine. But is there some other reason that makes it preferrable to use the SERVERAID driver provided by CentOS? Is it optimized in any way that recommends its use? Will the controller still make use of its cache and battery backup if configured as a plain SCSI controller with Linux Software RAID? I hope that some more experienced list member can ellucidate me on this. Thank you! PS - The machine is powered by a Intel P4 Xeon processor served by 2.5GB of RAM. The disks are 3 IBM 10K rpm SCSI 320 with 73 GB each. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Miguel, FWIW I have been running an IBM e server 346 with 6 73GB disks in two RAID volumes using the SERVERAID drivers for 3 years with no problems - performance is mucj better than my development system that used single - non-rad disks for various partitions. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Where do I find perl XML::Parser module - SOLVED
Paul Heinlein wrote: On Tue, 18 Nov 2008, Chris Geldenhuis wrote: Hi, I am trying to install a package that requires the perl XML::Parser module. Using yum to search for specific Perl modules is a bit tricky. The syntax is to wrap the module name in a perl() wrapper: yum provides perl(XML::Parser) In this case, it points you to the perl-XML-Parser package. Thanks Paul and also Marko - I have now installed the required packages. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] new list proposal
Jeff wrote: On Wed, Oct 15, 2008 at 4:52 PM, Karanbir Singh [EMAIL PROTECTED] wrote: And to better cater to these conversations, as well as further encourage such content, we'd like to propose creating a 'centos-tech' list. There are probably as many (or more) threads that drift off topic as there are those that start out that way and are labeled as such. I don't think a new list is really going to help create the separation you seek. In fact, introducing a second list will probably generate many conversations on each list that really belong on the other. I have no trouble navigating the list as is (with gmail) and adding a new list would just mean another subscription to manage. If I subscribed, I would probably give the new list the same label, so it would all be the same to me. I favor one-stop shopping. My $0.02 I agree with Jeff, in other forums where that I belong to the distinction between tech and chat quickly becomes blurred and many posts are cross posted to both (or all) lists, causing duplication in downloads and scanning. I vote to stay with one list ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Cebit and Centos
Ralph Angenendt wrote: Chris Geldenhuis wrote: Didi wrote: I just read this http://www.linux-magazine.com/online/news/cebit_open_source_linux_magazine_and_linux_foundation_announce_call_for_projects Maybe Centos want's to try to get a stand. I would be willing to help man a booth at CeBit I absolutely *hate* CeBit (have you looked at the hotel prices in Hannover during CeBit?). Please take this to centos-promo and if enough people are interested, we really might try for a booth there. Ralph ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Ralph, I usually stay in a Bed Breakfast room in Hannover - much less expensive than the hotels. last time I was there (2003) my very nice room in near the lake cost 42 Euro per day and included a good continental breakfast. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Cebit and Centos
Didi wrote: Hey I just read this http://www.linux-magazine.com/online/news/cebit_open_source_linux_magazine_and_linux_foundation_announce_call_for_projects Maybe Centos want's to try to get a stand. Cheers Didi www.ribalba.de Email / Jabber: [EMAIL PROTECTED] Skype : ribalba ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos I would be willing to help man a booth at CeBit ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Firefox distorted printing
nate wrote: Chris Geldenhuis wrote: Hi, I am running a fully updated CentOS 4 box. Since the last few rounds of updates - upgrading to the latest Firefox, I find that I can not print Bank statements etc ( .ps files when saved to disk). The Bank's logo and any lines on the form print OK but the actual content is distorted beyond recognition - printing a series of special characters (!$%#'() instead of transaction descriptions or amounts. Has anyone else experienced this or have a suggestion on how to fix the problem. Try printing to a file and use ps2pdf to convert it to PDF and validate that the formatting is correct? I always print to a file and convert to PDF myself just to have a hard electronic copy. nate ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos I have tried this - ps2pdf ends with a segmentation fault, I have also tried the other suggestions from Les Bell to no avail. The printer I'm using is a HP Officejet 6313 - there is no exact match in the HPJIS driver's list of printer - so I've used the closest match - Office Jet 6150. If anyone has a better suggestion I'd be happy to try it. If this issue cannot be resolved, I will have to revert to FF2. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Firefox distorted printing
Hi, I am running a fully updated CentOS 4 box. Since the last few rounds of updates - upgrading to the latest Firefox, I find that I can not print Bank statements etc ( .ps files when saved to disk). The Bank's logo and any lines on the form print OK but the actual content is distorted beyond recognition - printing a series of special characters (!$%#'() instead of transaction descriptions or amounts. Has anyone else experienced this or have a suggestion on how to fix the problem. Other preformatted documents like supplier invoices are also not printed as well formatted as before (html documents) but appear all squashed up instead of filling the page vertically. TIA ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] script
Mad Unix wrote: Dear ALL, I need some help with bash scripting, a script that search the content of multiple files and replace old string ip 10.5.1.10 with the new string ip 127.128.1.10 it will search in specific folder and sub folders Thanks ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos How about: find startdir -exec sed s/10.5.1.10/127.128.1.10/ \{\} \; ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] script
MHR wrote: On Tue, Sep 30, 2008 at 3:08 PM, Chris Geldenhuis [EMAIL PROTECTED] wrote: How about: find startdir -exec sed s/10.5.1.10/127.128.1.10/ \{\} \; First, the '\' characters are unnecessary and confusing, except the one that precedes the semi-colon. Second, that won't work. Sed does not perform on files in place - its output is sent to stdout unless it is redirected, and you can't redirect it back to the original file. To do something this way, you'd need a script that replaced the input file and used 'sed' to generate the new one (and then the script would have to rename it). mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Apologies I should have included the -i switch for sed to modify file in place. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Alarming (?) smartd reports
MHR wrote: On Thu, Sep 11, 2008 at 12:26 AM, Anne Wilson [EMAIL PROTECTED] wrote: I had similar messages on this laptop. Acer accepted liability and replaced the disk. I'm pretty sure the Seagate warranty is no longer in force - most of them are a year. Maxtor's are, for sure - I've had to go through that once before, and they were quite cooperative, too, but that was a few years back (before Seagate bought them). mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos I recently returned a disk that was 2 years old to teh Seagate agents here in SA. They swapped it out without any hassles - as far as I remember they then said that thwe warranty was 5 years ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Problems with writing Dual Layer DVD
Anne Wilson wrote: On Wednesday 27 August 2008 20:27:15 MHR wrote: On Wed, Aug 27, 2008 at 11:13 AM, Chris Geldenhuis [EMAIL PROTECTED] wrote: Hi Bill, Thanks for the quick response - I did try to format with dvd+rw tools but also got a respnse that the media was not recordable. AFAIK it should not be required. I usually use K3B for all my CD and DVD recording needs - it works nicely, even under GNOME (I don't use KDE). I've never had a problem like the one you describe, but I've upgraded to each new CentOS release fairly quickly, so I'm on 5.2, and that might be better. The one problem I did have with a new DVD burner was that it would only write at 2.47x at the fastest, and it was supposed to be a 20x drive. The manufacturer suggested I RMA it, which I will if I ever get around to taking it out and putting in a (different, known good) one. I also have mplayer/mencoder installed (and vobcopy and a few others), so I don't know if any of them might be involved peripherally, dragging in a more recent module from rpmforge, but I'm thinking you could try K3B and not lose anything if it works. One question to Chris - did you click on the status bar where you need to change the disk type? Anne ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Anne, I was using growisofs on the command line - thanks for the response. ChrisG. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Problems with writing Dual Layer DVD
MHR wrote: On Wed, Aug 27, 2008 at 11:13 AM, Chris Geldenhuis [EMAIL PROTECTED] wrote: Hi Bill, Thanks for the quick response - I did try to format with dvd+rw tools but also got a respnse that the media was not recordable. AFAIK it should not be required. I usually use K3B for all my CD and DVD recording needs - it works nicely, even under GNOME (I don't use KDE). I've never had a problem like the one you describe, but I've upgraded to each new CentOS release fairly quickly, so I'm on 5.2, and that might be better. The one problem I did have with a new DVD burner was that it would only write at 2.47x at the fastest, and it was supposed to be a 20x drive. The manufacturer suggested I RMA it, which I will if I ever get around to taking it out and putting in a (different, known good) one. I also have mplayer/mencoder installed (and vobcopy and a few others), so I don't know if any of them might be involved peripherally, dragging in a more recent module from rpmforge, but I'm thinking you could try K3B and not lose anything if it works. HTH mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Mark, I will try using the new drive in one of my 5.2 servers over the weekend - I do not have time during working hours today. I do not seem to have K3B on my system - where do I find it. Thanks for the response ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Re: Curmudgeoning (was Re: Problems with writing Dual Layer DVD)
John Hinton wrote: CentOS must be running really good for everyone as this which is now the 'oldest thread that already should have died' seems to keep interrupting my normally busy CentOS mailbox. :( And you really don't want me to start into old.. Can we get back to the regularly scheduled program please? Best, John Hinton ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos AS the OP I will add a last note, I recently got rid of my first *nix system - a Cromemco that supported 2 terminals, it had 64k of memory for the OS and then needed another 64k card for each terminal, ran Cromix as operatinf system very *nix like - tar cpio etc etc. !0MB hard disk and 2 8 floppies for backup. The last thing to go was a Mannesman printer that was in service for 20+ years before quitting. On the toolbox theme I have all the bits plus some of a 1930/1 model A ford waiting for me to find time to rebuild / retore it. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Problems with writing Dual Layer DVD
Hi, I am running Centos 4 (fully updated on this box). I removed the old DVD writer (/dev/hdc) and installed a new LG GH20 Internal Super Multi DVD Rewriter with a SATA interface - this shows up as /dev/scd0. When I insert a pre-recorded DVD autorun mounts it and displays the contents without any hassles. It appears to me that the required kernel modules are loaded - as copied below from lsmod output. sata_nv18629 0 libata111261 1 sata_nv sd_mod 17217 0 scsi_mod 125261 3 sr_mod,libata,sd_mod I am using Verbatim DVD-RDL blanks. When I try to write a pre-recorded iso to the DVD I get the following error message: [EMAIL PROTECTED] growisofs -dvd-compat -Z /dev/dvdwriter=pre-recorded.iso :-( /dev/dvdwriter: media is not recognized as recordable DVD: 10015 I have tried to do this as root with the same result. /dev/dvdwriter is a link to /dev/scd0 and has full read/write/execute permissions. Output of growisofs -version: * growisofs by [EMAIL PROTECTED], version 5.21, front-ending to mkisofs: mkisofs 2.01 (i686-pc-linux-gnu) Any suggestions will be welcome - if any further information is required I will do my best to supply it. I have Googled with the error message but only get reports of this problem and no solutions. TIA ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Problems with writing Dual Layer DVD
William L. Maltby wrote: On Wed, 2008-08-27 at 19:38 +0200, Chris Geldenhuis wrote: Hi, I am running Centos 4 (fully updated on this box). I removed the old DVD writer (/dev/hdc) and installed a new LG GH20 Internal Super Multi DVD Rewriter with a SATA interface - this shows up as /dev/scd0. When I insert a pre-recorded DVD autorun mounts it and displays the contents without any hassles. It appears to me that the required kernel modules are loaded - as copied below from lsmod output. sata_nv18629 0 libata111261 1 sata_nv sd_mod 17217 0 scsi_mod 125261 3 sr_mod,libata,sd_mod I am using Verbatim DVD-RDL blanks. When I try to write a pre-recorded iso to the DVD I get the following error message: [EMAIL PROTECTED] growisofs -dvd-compat -Z /dev/dvdwriter=pre-recorded.iso :-( /dev/dvdwriter: media is not recognized as recordable DVD: 10015 I have tried to do this as root with the same result. /dev/dvdwriter is a link to /dev/scd0 and has full read/write/execute permissions. Output of growisofs -version: * growisofs by [EMAIL PROTECTED], version 5.21, front-ending to mkisofs: mkisofs 2.01 (i686-pc-linux-gnu) Any suggestions will be welcome - if any further information is required I will do my best to supply it. I'm *really* a novice at this, but the first time I tried to record a DVD (I use cdrecord) I learned that the media needed to be formatted first. I don't know if what your using is already formatted, if your software does it for you or if it's even needed. Using the cdrecord software, there are flags that will let me know. I have Googled with the error message but only get reports of this problem and no solutions. TIA ChrisG snip HTH Hi Bill, Thanks for the quick response - I did try to format with dvd+rw tools but also got a respnse that the media was not recordable. AFAIK it should not be required. From reading your many and interesting posts to this list I realize that we must be contemporaries (possoibly I started programming before you - circa 1963 on a ICL1500 aka RCA 301 in assembler or directly punching machine code into punch cards). I do appreciate your responses as they always are helpfull and when them flame wars flare up you remain sensible. Thanks again ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] SERIOUSLY OT STREAM EDITING IMAGES
Tony Placilla wrote: On Tue, Jul 15, 2008 at 3:57 PM, in message [EMAIL PROTECTED], John R Pierce [EMAIL PROTECTED] wrote: Chris Geldenhuis wrote: Hi All, I have been Googling my head off but cannot find a method to stream edit all the images in a directory and to resize them. I have a large number of images of up to 3GB in size that I want to put in albums on a website, but before I do this I need to resize them to a more realistic configuration. I know how to do this manually with the GIMP but it becomes tedious for more than a few images. imagemagick can do this, its a command line batch image editor. its a little tricky to figure out. I note its in the base Centos5 repository. docs on http://www.imagemagick.org/script/index.php for example: mogrify -size 480x320 *.jpg will convert all the jpgs to 480x320 mogrify -size 480x320 *.jpg will resize everything bigger than 480x320 down leave the smaller stuff alone. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Once again thanks to all who responded - ImageMagick is just that magic. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] SERIOUSLY OT STREAM EDITING IMAGES - SOLVED
Chris Geldenhuis wrote: Hi All, I have been Googling my head off but cannot find a method to stream edit all the images in a directory and to resize them. I have a large number of images of up to 3GB in size that I want to put in albums on a website, but before I do this I need to resize them to a more realistic configuration. I know how to do this manually with the GIMP but it becomes tedious for more than a few images. Running CentOS 5 as virtualised under XEN as a web server. TIA ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos OOPS - Found it using different keywords gimp command line Thanks ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] SERIOUSLY OT STREAM EDITING IMAGES
Stephen John Smoogen wrote: On Tue, Jul 15, 2008 at 1:47 PM, Chris Geldenhuis [EMAIL PROTECTED] wrote: Hi All, I have been Googling my head off but cannot find a method to stream edit all the images in a directory and to resize them. I have a large number of images of up to 3GB in size that I want to put in albums on a website, but before I do this I need to resize them to a more realistic configuration. I know how to do this manually with the GIMP but it becomes tedious for more than a few images. imagemagick is what you want. http://www.imagemagick.org/Usage/resize/ for i in *.. blah. Running CentOS 5 as virtualised under XEN as a web server. TIA ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Thanks I will investigate ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CONNECTING VIA SSH BETWEEN CENTOS 4 AND 5
Stephen John Smoogen wrote: On Wed, Apr 16, 2008 at 1:32 PM, Chris Geldenhuis [EMAIL PROTECTED] wrote: Hi, I am trying to set up an automatic connection between CentOS 4 system (server) and a CentOS 5 DomU VM (client) via ssh to enable my to back up development files on the server to the client with a cron process. I generate they key pair without a pass phrase on the client and copy the public key to the same user's .ssh directory on the server as authorized_keys2. When I try to ssh to the Server from the Client, I am still asked for the user's password on the client. If I do the same with CentOS 5 for both Client and Server, I can login without providing a password. The versions of ssh on the two systems are: Client (CentOS 5): OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006 Server (CentOS 4): OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 Does anyone on the list know whether these versions are compatible or how to get them to work together without requiring a password. It is not an option to change to CentOS5 on the server side as that system is serving as a development system for a client running RedHat ES 4 and has to have the identical configuration and be binary compatible. I know this works between the entire CentOS family. The main problems I have seen are that the users home directory or .ssh permissions are not secure enough for ssh to do its thing. ssh -v -v -v will tell you more than you want on where it is having problems.. but the quick fix I use are the following: su - root chown $user $user_homedir # fill in $user and $user_home correctly as in dude and /nfs/home/d/dude chmod 0750 $user_homedir chown $user $user_homedir/.ssh chmod 0700 $user_homedir/.ssh chmod 0600 $user_homedir/.ssh/authorized_keys If that doesn't fix the problem the -v -v -v will tel what else might be the cause. Thanks - changing the permissions fixed the problem . Thanks also to Daniel for his suggestions. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] RESTORING THUNDERBIRD FILES
Karanbir Singh wrote: Chris Geldenhuis wrote: Thanks to your advice I have been able to reciver all of my mail folders. You are welcome. I am not sure why an update would have caused the profiles and the paths to change and cause an issue. I've been using thunderbird for a long time and changed versions etc and never had this issue ( although, I do only stick with the version in the distro ) Hi Karanbir, Perhaps it was some other factor causing the problem with Thunderbird and it was a coincidence that it manifested at the same time as an update. I did not have the same problem on another CentOS 4 box updated at the same time. Just happy that I've got my history back. Thanks again ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] RESTORING THUNDERBIRD FILES
Hi All, Last night I downloaded the latest security updates to my Centos 4 system, and rebooted afterwards. This morning I wanted to check my mail, but when I opened Thunderbird, it asked me to set up a mail account. I saved the contents of the previous .thunderbird file structure with tar and created a new mail account with the same details (name, isp, pasword, servers etc.) as the previous account. All of my folders and history had disappeared when the new account was created. I tried restoring from the tar archive but can still only access mails downloaded after recreating the account. Any ideas on how to regain access to my mail archives? TIA ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] RESTORING THUNDERBIRD FILES
Chris Geldenhuis wrote: Hi All, Last night I downloaded the latest security updates to my Centos 4 system, and rebooted afterwards. This morning I wanted to check my mail, but when I opened Thunderbird, it asked me to set up a mail account. I saved the contents of the previous .thunderbird file structure with tar and created a new mail account with the same details (name, isp, pasword, servers etc.) as the previous account. All of my folders and history had disappeared when the new account was created. I tried restoring from the tar archive but can still only access mails downloaded after recreating the account. Any ideas on how to regain access to my mail archives? TIA ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi, I now also find that when I open firefox, all of my bookmarks are gone and the default homepage is no longer the Centos home page but http://www.google.co.za/firefox?client=firefox-arls=org.mozilla:en-US:official Regards ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] RESTORING THUNDERBIRD FILES
Karanbir Singh wrote: Chris Geldenhuis wrote: This morning I wanted to check my mail, but when I opened Thunderbird, it asked me to set up a mail account. are you sure you didnt install a thunderbird / firefox from outside the yum repo's ? I saved the contents of the previous .thunderbird file structure with tar and created a new mail account with the same details (name, isp, pasword, servers etc.) as the previous account. you should be able to untar the .thunderbird tarball into another place, and then basically just move the email files into place in the current ~/.thunderbird remember to note where the email is expected, and there will be files per folder and an index for each one called the foldername.msf - you want to get all those over to the new instance. Also, you might need to rename of the files if you now have new folders with the same name ( eg. inbox ) now having said that, before you do anything, check ~/.thunderbird for more than 1 directory called something random.default, and check the profiles.ini file in the same place. its possible you are just looking at a new profile, and switching over to the older profile will be all you need. And then you can work out howto get emails from one side to the other. Thanks Karanbir, I will work on this when I get back from work tonight. There are two directories something random.default. When profiles.ini is set to use the one created when I recreated my mail connection, Thunderbird starts up with none of my history (as expected). When I edit profiles.ini to use the other (older) setup and start Thunderbird it starts the wizard to create a new connection - so clearly something has been corrupted in that setup. I will try to copy the important data from there to the new setup. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] LIMITING NUMBER OF KERNEL VERSIONS RETAINED - CLOSED
Bart Schaefer wrote: On 1/13/08, Alfred von Campe [EMAIL PROTECTED] wrote: What you want is: # yum instal yum-utils followed by: # package-cleanup --oldkernels [--count=x] where x defaults to 2 (i.e., keep two older kernels). I recently discovered that if you have both the uniprocessor and SMP kernel packages installed, which I believe is the default behavior, then package-cleanup won't remove the SMP packages. I had to rpm -e those myself. Maybe there's some other reason that it missed those ... ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Thanks for the quick replies everybody, I will follow Alfred's suggestion. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] LIMITING NUMBER OF KERNEL VERSIONS RETAINED
Hi Some time ago there was a discussion on the above subject. I have scanned the past few month's mailing list archives and cannot find the relevant mail(s). Could somebody please repost the solution or point me at the correct resource. I would also appreciate advice on how to do this on a RHEL4 server being updated with up2date. Is it safe just to delete the old kernel and initrd files from the boot partition and the grub conf file? TIA ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] nVdia C15G chipset and GeForce 6100 on board graphix controller - SOLVED
Chris Geldenhuis wrote: Jim Perrin wrote: On 8/29/07, Chris Geldenhuis [EMAIL PROTECTED] wrote: I am new to installing drivers etc. Could you possible give me a few pointers to help me along the way. RPMForge makes installing the nvidia drivers reasonably easy. Simply run 'yum install nvidia-x11-drv' and then reboot. Instructions for RPMForge are at http://wiki.centos.org/Repositories/RPMForge Hi again, I have followed Jim's instructions to add the RPMforge repository and to download the nvidia-x11-drv driver from there. When rebooting after this the system instruct me to re-configure the X11 configuration, when doing this using the gui screens provided I cannot select a screen but can select the nVidia card and then the nVidia driver. The configuration generated still does not work - I attach a copy of the Xorg.0.log generated. In this log there is a mention of using the GLX driver/module from nVidia. While inspecting /usr/lib64/xorg/modules/extensions I noticed a sub-directory nvida that contained a file libglx.so. I renamed the libglx.so file in /usr/lib64/xorg/modules/extensions and copied the file in the nvidia sub directory into it's place - and rebooted. The reconfiguration of X11 still would not allow me to select a screen and also did not work. I attach a copy of the Xorg log Xorg.0.log.2 where it seems as if the correct GLX module has now been found but without giving me a useable X11 configuration. Any suggestion on how to proceed from here would be welcome - if entails getting another graphics card please suggest a suitable card that will run without hassles. TIA ChrisG snip /snip Hi All, I have finally found the solution to the problem of the invisible mouse pointer - from a tip given to me by Chris from Tangent Systems. When you insert an Option line as shown below in the Device section of the xorg.conf file the mouse pointer stays visible. Section Device Identifier Videocard0 Driver nv Option HWCursoroff EndSection ChrisG ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] nVdia C15G chipset and GeForce 6100 on board graphix controller
William L. Maltby wrote: On Wed, 2007-08-29 at 08:33 -0400, Jim Perrin wrote: On 8/29/07, Chris Geldenhuis [EMAIL PROTECTED] wrote: I am new to installing drivers etc. Could you possible give me a few pointers to help me along the way. RPMForge makes installing the nvidia drivers reasonably easy. Simply run 'yum install nvidia-x11-drv' and then reboot. Instructions for RPMForge are at http://wiki.centos.org/Repositories/RPMForge Be aware that if your graphic card is not recent enough, the installed driver will tell you that you need a particular prior version from nvidia's site. After using the Rpmforge version, I had to uninstall it, leaving the kernel devel stuff in place, and get the .96xx version from nvidia's site. It was still essentially a no-hassle operation though. You should have NP either way. -- Bill ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Bill, Thanks for the info - our problem however is that this is the Latest and Greatest chip set from nVidia and the drivers do not seem to cater for it adequately. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 5 (64) Gnome - not detecting Optical Mouse
Siva GNU/Linux wrote: Hi I am using CentOS 5 64bit, i can install successfully on the below hardware. while booting i can see the Pointer and use Mouse. But While i get a Login screen I couldn't see the pointer, after login also i can't. when i press CTRL button, it shows where the pointer is.. What should i do to enable and work with Mouse. AMD Athlon 64 X2 3800+ ASUS Nvidia Geforce Chipset board 1GB DDR 2 80 GB SATA 17 TFT Logitech Optical Mouse -- cheers, SivaPrakash.SK +91-98840-57147. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Hi Siva, I have been battling with the same problem for a few weeks now. From everything I can find it appears that the graphics controller on these motherboards (mine has the C15G nVidia chipset and the controller is recognised as a GEForce 6100). I followed Jim Perrin's instructions and downloaded and installed the nVidia driver from RPMForge and still have the same problem. My next step is to try to find a PCI or PCI express graphics card that is supported by Linux so that I can start using this server. The subject of the thread in which my problems were discussed is: nVdia C15G chipset and GeForce 6100 on board graphix controller Sorry that I cannot give you more positive feedback but hope that this helps in some way. ChrisG ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] nVdia C15G chipset and GeForce 6100 on board graphix controller
Hi, Apologies for the long post - but I'm being driven crazy by this problem. A while ago I built a new server that is intended to serve as a Xen server running multiple DomU systems used a test environments for systems that I am working on. The host Xen system will be CentOS 5 as will some of the DomU systems. The systems will all be hardware virtualized. The motherboard uses the nVidia C15G chipset and the onboard graphix controller is recognised as a GeForce 6100. I am having problems getting the Video and mouse to work properly with CentOS 5 - both with as set of CD's downloaded when CentOS 5 was first released and with a DVD obtained from one of the local distro shops. The symptoms are that the Video is run in 800X600 mode and the mouse pointer works while the system is booting and while I am logging in to a GUI session. Once the login process has completed the mouse pointer disappears (is not visible at all). The mouse does however work as you can see changes to the Icons and menus on screen when moving the mouse around (blindly). The same situation obtains when running the system with FC7 installed. However when I boot the system using a Knoppix 5.1.1 live disk the Video resolution is 1024X768 and the mouse works properly. I attach the output of lspci and lsmod from both CentOS and Knoppix as well as the X86 Config file from Knoppix. Could someone please advise me on how to get CentOs to give the same results with the video and mouse as Knoppix. TIA ChrisG Module Size Used by ip6table_filter36033 1 ip6_tables 50049 1 ip6table_filter ip_conntrack_ftp 41489 0 ip_conntrack_netbios_ns36033 0 xt_state 35265 3 ip_conntrack 91365 3 ip_conntrack_ftp,ip_conntrack_netbios_ns,xt_state nfnetlink 40457 1 ip_conntrack iptable_filter 36161 1 ip_tables 55329 1 iptable_filter bridge 91889 0 netloop39873 0 netbk 128897 0 [permanent] blktap417765 2 [permanent] blkbk 52857 0 [permanent] autofs456393 2 hidp 83649 2 rfcomm104809 0 l2cap 89281 10 hidp,rfcomm bluetooth 118725 5 hidp,rfcomm,l2cap sunrpc195593 1 ipt_REJECT 38849 1 ip6t_REJECT38849 1 xt_tcpudp 36417 12 x_tables 50249 6 ip6_tables,xt_state,ip_tables,ipt_REJECT,ip6t_REJECT,xt_tcpudp dm_mirror 61121 0 dm_mod 93969 1 dm_mirror video 51273 0 sbs49921 0 i2c_ec 38593 1 sbs button 40545 0 battery43849 0 asus_acpi 50917 0 ac 38729 0 ipv6 411169 17 ip6t_REJECT lp 47120 0 sg 69609 0 snd_hda_intel 52189 1 floppy 92905 0 snd_hda_codec 215233 1 snd_hda_intel snd_seq_dummy 37061 0 snd_seq_oss65601 0 snd_seq_midi_event 41025 1 snd_seq_oss snd_seq88033 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event snd_seq_device 41813 3 snd_seq_dummy,snd_seq_oss,snd_seq i2c_nforce240897 0 i2c_core 56129 2 i2c_ec,i2c_nforce2 ide_cd 73441 0 snd_pcm_oss77537 0 snd_mixer_oss 50113 1 snd_pcm_oss forcedeth 73029 0 serial_core55233 0 parport_pc 62313 1 snd_pcm 116809 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss pcspkr 36289 0 natsemi62113 0 parport73293 2 lp,parport_pc snd_timer 57673 2 snd_seq,snd_pcm snd95209 11 snd_hda_intel,snd_hda_codec,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer soundcore 43873 1 snd snd_page_alloc 43345 2 snd_hda_intel,snd_pcm k8_edac49537 0 edac_mc58657 1 k8_edac shpchp 70509 0 serio_raw 40517 0 cdrom 68841 1 ide_cd sata_nv45765 3 libata139113 1 sata_nv sd_mod 54081 4 scsi_mod 184057 3 sg,libata,sd_mod ext3 166353 3 jbd93617 1 ext3 ehci_hcd 65357 0 ohci_hcd 54621 0 uhci_hcd 57561 0 00:00.0 RAM memory: nVidia Corporation C51 Host Bridge (rev a2) 00:00.1 RAM memory: nVidia Corporation C51 Memory Controller 0 (rev a2) 00:00.2 RAM memory: nVidia Corporation C51 Memory Controller 1 (rev a2) 00:00.3 RAM memory: nVidia Corporation C51 Memory Controller 5 (rev a2) 00:00.4 RAM memory: nVidia Corporation C51 Memory Controller 4 (rev a2) 00:00.5 RAM memory: nVidia
Re: [CentOS] nVdia C15G chipset and GeForce 6100 on board graphix controller
Jim Perrin wrote: On 8/29/07, Chris Geldenhuis [EMAIL PROTECTED] wrote: I am new to installing drivers etc. Could you possible give me a few pointers to help me along the way. RPMForge makes installing the nvidia drivers reasonably easy. Simply run 'yum install nvidia-x11-drv' and then reboot. Instructions for RPMForge are at http://wiki.centos.org/Repositories/RPMForge Thanks Jim, I do that tonight when I'm at the system again. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos