[Ilugc] Re: API to read/write PDF amp; Word DOC file formats
Selvakumar Rajeswaran selva_...@... writes: anyone pls provide me pointers for an API to read/write PDF file format Microsoft Word DOC file format. If you would like to create PDFs, then have a look at ReportLab Toolkit http://www.reportlab.com/software/opensource/rl-toolkit/ Cairo is also capable of rendering to a PDF backend. http://cairographics.org/ Regards, Vijay -- C: http://www.zilogic.com P: http://www.bravegnu.org ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] Summer Workshop
Hi All, Only 4 volunteers are willing to take this summer workshop. We have finalise the list by this week end. So anybody else is interested in this, please include your name and topic. Bye :) -- Bharathi Subramanian ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] Re: [Shell Code ] Use of getopts
Thanks to all of you for providing such wonderful examples. sorry for top posting Regards Subhojit Ojha On Thu, Apr 22, 2010 at 12:19 AM, Mohan R mohan...@gmail.com wrote: Hi, And here is the shell code, [parseoptions.sh] #!/bin/sh # script to parse options using getopts while getopts 'ab:' OPTION do case ${OPTION} in a) echo -a supplied;; b) echo -b supplied with '${OPTARG}';; *) echo Wrong option '${OPTION}' supplied;; esac done shift $((OPTIND - 1)) echo Remaining Arguments '$...@}' $ ./parseoptions.sh -a -b apple orange banana -a supplied -b supplied with 'apple' Remaining Arguments 'orange banana' $ [parseoption.sh] #!/bin/sh # script to parse options using getopt PARSEDOPTIONS=$(getopt -o 'ab:' --longoptions 'long-x,long-y,long-z:' -- $...@}) set -- ${PARSEDOPTIONS} while test ${1} != -- do case ${1} in -a) echo -a supplied; shift;; -b) echo -b supplied with ${2}; shift 2;; --long-x) echo --long-x supplied; shift;; --long-y) echo --long-y supplied; shift;; --long-z) echo --long-z supplied with ${2}; shift 2;; *) echo Wrong option ${1} supplied; shift;; esac done shift echo Remaining arguments $...@} $ ./parseoption.sh -a -b apple --long-x --long-y --long-z orange banana -a supplied -b supplied with 'apple' --long-x supplied --long-y supplied --long-z supplied with 'orange' Remaining arguments 'banana' $ And finally, one of the key difference between these two is, 'getopts' is POSIX shell built-in, where 'getopt' is a separate executable living inside '/usr/bin/'. Another difference is, 'getopts' cannot parse options like '--big-option' whereas 'getopt' can. I hope above examples will help you to understand getopts and getopt. Its a standard practice to parse options inside your shell script using getopts/getopt. Please read 'man getopt' and 'man sh'(then search for getopts) for reference. Thanks, Mohan R. ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] Summer Workshop
Hi, Thanks for the Reminder. Added myself in the page http://wiki.ilugc.in/index.php?title=ILUGC_Summer_Workshops#ILUGC_Summer_Workshop Thanks. -- Regards, T.Shrinivasan My experiences with Linux are here http://goinggnu.wordpress.com For Free and Open Source Jobs http://fossjobs.in ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] Need Help
2010/4/23 S Alex alexbe@gmail.com: Plz tell me what will the below script does. /var/log/ -name '*.log' -type f -size +64k -exec cp {} /home dd if=/dev/null of='{}' man find ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] Re: Summer Workshop
On Friday 23 April 2010 12:36 PM, Bharathi Subramanian wrote: Hi All, Only 4 volunteers are willing to take this summer workshop. We have finalise the list by this week end. So anybody else is interested in this, please include your name and topic. Bye :) Oops!! I was at bottom, now corrected that page. you have one more. Cheers, Mohan R ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] Candidate Needed For the Post Of Admin - IT Infrastructure
Dear All, We have an opening in our organization for the post of Admin - IT Infrastructure No of Position1 Experience Between 1 and 2 yrs Candidate Must have RHCE certification Job Description: Install and configure Linux Server Installing Windows OS and Maintain windows desktop Maintain Firewall Maintain LAN Maintain Linux Based Remote Server Maintain Mysql DB Installing Open Source Tools Shell script writing added advantage Send your resume to ramku...@kpisoft.com with Current and Expected CTC -- www.opennetguru.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] console access
Hi, I am trying to make sure that the users can access/mount a specific device (sdb1) only from console pts/2 (just for experimenting purpose). I followed the below steps. Please guide me as to what I did wrong. 1. vi /etc/security/console.perms # /etc/security/console.perms # # This file determines the permissions that will be given to priviledged # users of the console at login time, and the permissions to which to # revert when the users log out. # format is: # class=list of regexps specifying consoles or globs specifying files # file-glob|class perm dev-regex|dev-class \ # revert-mode revert-owner[.revert-group] # the revert-mode, revert-owner, and revert-group are optional, and default # to 0600, root, and root, respectively. # # For more information: # man 5 console.perms # # This file should not be modified. # Rather a new file in the console.perms.d directory should be created. # file classes -- these are regular expressions console=tty[0-9][0-9]* vc/[0-9][0-9]* :[0-9]+\.[0-9]+ :[0-9]+ xconsole=:[0-9]+\.[0-9]+ :[0-9]+ ** *ptconsole=pts/2* ** # device classes -- see console.perms.d/50-default.perms # permission definitions -- see console.perms.d/50-default.perms 2.vi /etc/security/console.perms.d/51-default.perms # device classes -- these are shell-style globs *mysdb1=/dev/sdb1* # permission definitions *ptconsole mysdb1 0660 root * ** *Regards,* *Ashish * ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] sudoers file
Hi, Documentation on sudoers file states the below: jack CSNETS = ALL The user *jack* may run any command *on* the machines in the *CSNETS* alias (the networks 128.138.243.0, 128.138.204.0, and 128.138.242.0). Of those networks, only 128.138.204.0 has an explicit netmask (in CIDR notation) indicating it is a class C network. For the other networks in *CSNETS*, the local machine's netmask will be used during matching. My question is that, how would the systems on those networks know that they have to use the configs mentioned on one specific system. Does it mean that the user (jack) can run any commands *from* systems on mentioned networks * on* the system with the sudoers file? Regards, Ashish ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] Need Help
On Fri, Apr 23, 2010 at 1:25 PM, S Alex alexbe@gmail.com wrote: Hi All, Plz tell me what will the below script does. /var/log/ -name '*.log' -type f -size +64k -exec cp {} /home dd if=/dev/null of='{}' You left out find I guess. $ find /var/log -name *.log -type f -size +64k translates to this in English: Find the files recursively under /var/log directory of name *.log and of type file(-type f). We also put another condition that their size should be more than 64 kilobytes. Until this point it is clear. now the remaining part. -exec cp {} /home/ translates to copy the files that match these criteria to /home. {} stands for find results. is used in shell to give one command after another in such a way that the following command will run only if the previous command returned success. dd if=/dev/null of={} will truncate a given file to zero bytes. So in this case, we are truncating all found files to be of zero bytes length. Now I would write the same thing like this. $ find /var/log -name *.log -type f -size +64k | xargs -J ^ cp ^ /home Somehow dd does not take more than one argument for of=. So it has to be done in a loop. Something like this would work. $ find /var/log/ -type f -name *.log -size +64k /tmp/files $ for f in `cat /tmp/files` do dd if=/dev/null of=$f done -Girish -- Gayatri Hitech web: http://gayatri-hitech.com SpamCheetah Spam filter: http://spam-cheetah.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] squid
On Fri, Apr 23, 2010 at 10:06 AM, bhoobesh bhoobesh1...@gmail.com wrote: how to configure squid in centos while using a one network card What is the issue with that? Of course you can do that. Packets will come to us and we will cache stuff and reply back to internal network from our cache and send packets out through the router/modem connection to the Internet. There is no need for squid to run on a multihomed host. Only routers/firewalls need to be on a multi network card machine. Even firewalls can work with one network card. ;) Only routers need to have multiple physical ethernet or some other network interface(s). In the case of a firewall you only need to block packets before they are sent out using the router/MODEM. In fact recently I got a firewall working for Khazana showroom in Cathedral road opposite to Stella Marys college with just one network card. Sorry for this long digression. I myself dunno much about squid. -Girish -- Gayatri Hitech web: http://gayatri-hitech.com SpamCheetah Spam filter: http://spam-cheetah.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] dns
On Fri, Apr 23, 2010 at 10:03 AM, bhoobesh bhoobesh1...@gmail.com wrote: sir please tell me the any books for configuring dns server in centos Well I dunno about Centos. You need to edit zone files and so on. They have an arcane syntax. In OpenBSD you have a chrooted named that drops privileges and runs securely with a non root user ID. Everything is preconfigured. All you need to do is have a line named_conf= in /etc/rc.conf.local file. And reboot. You get a fully functional DNS server. It is that cool. -Girish -- Gayatri Hitech web: http://gayatri-hitech.com SpamCheetah Spam filter: http://spam-cheetah.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] dns
On Fri, Apr 23, 2010 at 7:51 PM, Girish Venkatachalam girishvenkatacha...@gmail.com wrote: All you need to do is have a line named_conf= Not named_conf= It should be named_flags= Bad memory. ;) -Girish ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] Summer Workshop
2010/4/23 Bharathi Subramanian bharathi.l...@gmail.com Hi All, Only 4 volunteers are willing to take this summer workshop. We have finalise the list by this week end. So anybody else is interested in this, please include your name and topic. Bye :) -- Bharathi Subramanian ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc shall i take Quickly ?. Because you didnt mentioned this topic in wiki page. -- நன்றி , அருளாளன் . த Kanchi Linux User Group Rocks ! http://kanchilug.wordpress.com My Experiments In Linux are here http://tuxworld.wordpress.com தக்கன தழைக்கும் ! ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] dns
On Fri, Apr 23, 2010 at 7:51 PM, Girish Venkatachalam girishvenkatacha...@gmail.com wrote: On Fri, Apr 23, 2010 at 10:03 AM, bhoobesh bhoobesh1...@gmail.com wrote: sir please tell me the any books for configuring dns server in centos Well I dunno about Centos. You need to edit zone files and so on. They have an arcane syntax. That is only if you want bind to be SOA for a specific domain. Otherwise, no changes needed for a cache only name server. Do chkconfig named on named could be bind - not sure about CentOS But the OP was *absolutely* ambigous about what s/he wants. In OpenBSD you have a chrooted named that drops privileges and runs securely with a non root user ID. Everything is preconfigured. All you need to do is have a line named_conf= in /etc/rc.conf.local file. And reboot. You get a fully functional DNS server. You mean I don't need to setup _any_ files if I want to be setup a DNS server for say intra.example.com which has 'x' no. of hosts on Intranet my network? -- Arun Khan ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] apache server
On 4/23/10, venkat raman infoappu.li...@gmail.com wrote: @raja.ya..these r all interview questions...u dont knw the answer right? u better get out of the way... Dont you even know that you shouldn't top post in the list? And didnt you get the answers for your two questions in Google?? And some people (will mention his name if necessary) say that only JOBLESS people do searching in Google... Do anyone support this ^^^ ?? -- Thanks, Aishwarya.M.B http://aishwarya-stillsearchingwhoiam.blogspot.com/ ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] Summer Workshop
Updated wiki[1] with, RegEx, Sed and AWK Programming Speaker: Saravanan Sundaramoorthy, RHCE [1] http://wiki.ilugc.in/index.php?title=ILUGC_Summer_Workshops#ILUGC_Summer_Workshop Saravanan Sundaramoorthy Red Hat Certified Engineer http://www.google.com/profiles/dearsaravanan#about +91 99404 32545 ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] apache server
On Tue, Apr 20, 2010 at 3:33 PM, venkat raman infoappu.li...@gmail.comwrote: hai, 1. Is it possible to configure 2 different version of apache in a single server? Yes you can run two different version of Apache or two different web server (IIS and Apache httpd) in a system. Let's say you have two different version of Apache, then can make it to bind in two different ports. By default Apache httpd binds with 80. You can configure second server to bind with a different port, let say 81. To access the servers you can use the following address. Server 1 : http://localhost:80/ Server 2 : http://localhost:81/ 2. what are all the possible solution for kernel panic error? I hope somebody would answer you for this question. Good Luck It would be highly appreciated, to google before you post your query to the list. Thanks. -- Ravi Jaya Mobile: +91 97909 16181 ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] apache server
1. Is it possible to configure 2 different version of apache in a single server? yes.. 2. what are all the possible solution for kernel panic error? first just restart, if problem still persists check RAM then check hard disk[thats what i do for blue screen of death] -- with love from India, swamy , wattabottles http://meswamy.blogspot.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] OAOD (Uget)
Application: Uget What it is: Uget (formerly urlgfe) is a simple, lightweight and easy-to-use download manager. Features: * Resume downloads. * Queue downloads. * Classify downloads in categories. * Mozilla Firefox integration (through Flashgot plugin). * Clipboard monitoring. * Import downloads import from HTML files. * Batch download. It also can be launched from the command line. To know more about: http://urlget.sourceforge.net/ To install: sudo apt-get install uget -- நன்றி , தஸ்தகீர்.அ Kanchi Linux User Group Rocks ! http://kanchilug.wordpress.com My Works on Linux http://dowithlinux.wordpress.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] hi sir
is bangalore python community user group is active or not ? any one is subscribed to that bang pyers please reply ? ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] apache server
@ravi jaya,swamynathan, very thankfull to u... On Fri, Apr 23, 2010 at 11:35 PM, swamynathan mesw...@gmail.com wrote: 1. Is it possible to configure 2 different version of apache in a single server? yes.. 2. what are all the possible solution for kernel panic error? first just restart, if problem still persists check RAM then check hard disk[thats what i do for blue screen of death] -- with love from India, swamy , wattabottles http://meswamy.blogspot.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] hi sir
Yes I have done it its active what is your question post it here ~vela On Sat, Apr 24, 2010 at 9:01 AM, jaya kumar jayakumargen...@gmail.comwrote: is bangalore python community user group is active or not ? any one is subscribed to that bang pyers please reply ? ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc -- Thanks Vela ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc