[Ilugc] help needed for software profilier,
Hi, I am doing project in C/Linux. I am interested to increase the performance and optimize my project.. 1) Memory debugging ( To identify the memory leak , unused or unintialized variables etc) 2) Profiling 3) Static code analysis 4) Dynamic code analysis Can you please suggest some open source tools to perform the above. I just surfed and identified the below. But not sure whether this is the best fit for C/Linux coding. Please suggest the some other opensource tools. Memory debugging toolProfiling: http://valgrind.org/ TAU Performance : http://www.cs.uoregon.edu/research/tau/home.php I prefer valgrind as it is simple and inbuilt with linux. Static code -analysis : http://frama-c.com/index.html thanks suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] Projects for students
Please share here, if you know any open source projects that needs contribution. We can have a list and show to the students. They can pick and work on them. We can guide them to learn languages, use irc, mailing lists,version management tools, then we can leave them to upstream developers. I suggest, let us explore the ideas and identify the suitable idea for the current trend, and start building the project. As we have excellent resources support from all levels, we will be able to come out with an quality product. Please share your ideas. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] Wireshark - isakmp decrypt
Hi, Can you help me to decode(decrypt) the ISAKMP (IKEv1) packets in wireshark. In Edit - Preferences- protocol preferences - ISAKMP - Log Filename option is present. Here we have to give the input. I have googled and not able to find any detailed information , how to give the key etc. If someone come across this, please share it. Wireshark version : 1.2.0 Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] Wireshark - isakmp decrypt
Do you understand your question well? I do not mean to offend you but how can you decode ISAKMP without having the keys? The public and the private keys? Or you mean to know what commands are sent in the clear? can easily see that with tcpdump. What is your question? Come again please. Yes. i have the keys. This is test network. both VPN endpoints are in my control. i can get the keys. Please note i can able to decrypt the IKEv2 packets. refer: http://www.wireshark.org/docs/wsug_html_chunked/ChIKEv2DecryptionSection.html But IKEv1 or ISAKMP packets not able to decrypt. Wireshark manual says, pass the pluto log file under Protocol ref-ISAKMP. I am not sure what is that mean.. thanks suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] Web interface
Hi, Thanks for the suggestion. Check Lua for server side scripting. Any other server side scripting can be used? How about perl? The reason is, I am completely new to Lua. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] loopback address
Hi, 1) How do i add multiple loopback address in the linux You Qus is NOT clear. Plz give the commands used to create the interfaces and error messages. In cisco hardware we can create 'N' number of loopback devices (lo1,lo2,lo3,lo4 etc). This is useful to simulate multiple networks for testing. I am looking for similar capability in linux. But linux supports only one loopback device (lo). I am not sure, adding multiple alias to the loopbackdevice will solve my problem. Let me try this. Thanks for your suggestion. Thanks suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] Web interface for embedded
Hi, For my embedded project, I require the secure http based web interface(HTTPS) for configuring the product. The webpage contains below, For ex: system configuration (such as configure the IP Address of the Ethernet0 interface, configure the syslog server, control functions etc) Tools configuration (IPTables configuration, Routing protocols, VPN configuration ..etc) I have installed the latest Apache webserver on the target. In this context, What are all the software required to perform the above? What web development language should I use for the above mentioned activities ? (HTML with Javascript or PHP). As the target is embedded hardware, I prefer the lightweight language (in terms of memory occupation, cpu utilization). Please suggest . Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] Web interface
Hi, For my embedded project, I require the secure http based web interface(HTTPS) for configuring the product. The webpage contains below, For ex: system configuration (such as configure the IP Address of the Ethernet0 interface, configure the syslog server, control functions etc) Tools configuration (IPTables configuration, Routing protocols, VPN configuration ..etc) I have installed the latest Apache webserver on the target. In this context, What are all the software required to perform the above? What web development language should I use for the above mentioned activities ? (HTML with Javascript or PHP). As the target is embedded hardware, I prefer the lightweight language (in terms of memory occupation, cpu utilization). Please suggest . Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] loopback address
Hi, 1) How do i add multiple loopback address in the linux (similar to cisco hw). I have one ethernet interface (192.168.101.2/24), and i want to simulate multiple private networks(10.1.1.1/24,10.2.1.1/24,10.3.1.1/24). I thought i can add multple loopback interface for each network. But i am able to add only one loopback device in the linux (I have used ifconfig lo 10.1.1.1 command for loopback device confguration. Also it doesnt accept the mask) Any idea how to add multiple loopback addresses? 2) Also routing table doesnt show the loopback device. I mean, If i ping the loopback device it pings. (ex : ping 10.1.1.1 - ping works) Suppose i want to ping the loopback device from the eth0 interface then ping failed( Ex : my eth0 ip is 192.168.101.2, loopback ip is 10.1.1.1. ping -I eth0 10.1.1.1 is failed.no response) How do i add the route for the loopback devices. My setup: FC12 one ethernet interface present 10/100Mbps. thanks suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] busybox compilation error
Hi, To build with CONFIG_STATIC, install glibc-static: Thanks. it works. Regards Suresh. ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] buildroot compilation error
Hi, As I have mentioned to you earlier in a different thread [1], it is essential for you to furnish as much details as possible for others' to be able to reproduce the problem. For the above, we will need to know which buildroot version you are using! Before you hit the send button, please re-read your e-mail, to make sure you have provided sufficient info for others. It also helps to read the following (and the full article): http://catb.org/~esr/faqs/smart-questions.html#beprecise Thanks for the suggestion. I will not make a mistake again. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] busybox compilation error
Hi, I am building the busybox as standalone execuatable using this config line CONFIG_STATIC=y in the .config file. when i build using make command the build failed. The build error is below, == /usr/bin/ld: cannot find -lcrypt collect2: ld returned 1 exit status make: *** [busybox_unstripped] Error 1 What is the reason for this failure? How do i solve this? Note: glibc-dev package,openssl packages are installed in my PC. But If i remove the CONFIG_STATIC=y line from the .config file, build succeeds. But i require the standalone busybox executable. Thanks for helping. regards suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] busybox compilation error
Hi, 1. Which version of busybox you are trying to build? I am using, busybox-1.15.3 version. 2. Which distro you are using for building busybox? Fedora Core 12. Thanks suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] buildroot compilation error
Hi, I am getting the following buildroot compilation error steps used : 1) make defconfig 2) make error: -c /opt/buildroot-2009.11/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c -DCRT_BEGIN /opt/buildroot-2009.11/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c: In function '__do_global_dtors_aux': /opt/buildroot-2009.11/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:306: error: '__DTOR_LIST__' undeclared (first use in this function) /opt/buildroot-2009.11/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:306: error: (Each undeclared identifier is reported only once /opt/buildroot-2009.11/output/toolchain/gcc-4.3.4/libgcc/../gcc/crtstuff.c:306: error: for each function it appears in.) build environment : fedora core 12 Can someone help to solve this? Thanks suresh ___ ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] Embeded Linux - Build Enviroment
Hi, ARM development kit from which company ?? I bought from kwikbyte KB9202C. Vendor suggested the buildroot the pre-built snapshot of the build-environment files are available (1 year old). But I don’t know how to use it. So thinking of use the latest versions of the build tools and setting the build environment. Please note: I am novice user in the build env. I have little programming skills (C) linux environment. Any help appreciated. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] Embeded Linux - Build Enviroment
Hi, Recently I bought the ARM development kit. I am struggling to set the build environment for the ARM development kit. I tried buildroot(vendor suggested this tool) with uclibc but not succeeds, I am debugging it. In the meantime I gooled and found many opensource tools available for build environment If anyone using the ARM development board and have the build environment setup. Please suggest the build environment tools installation procedure. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] Serial Communication - Mark/Space parity problem
Hi, I am trying to use python pyserial on Ubuntu 9.10 to communicate with a serial device. I need to be able to set the parity bit Mark/Space for this particular device. I understand linux/posix compliant OSs don't natively support this. I googled and found this [ http://www.lothosoft.ch/thomas/libmip/markspaceparity.php ] link and implemented that in my code. With this I am able to send only one byte with my desired parity and the port somehow goes back to 'No parity' after one byte. Can somebody suggest me a solution or point me to more resources I have used termios library with C for serial programming. Its good. http://tldp.org/HOWTO/Serial-Programming-HOWTO/x115.html Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] kernel build option - ramdisk
Hi, The initrd image usually contains some drivers that are not built-in the kernel, and required to access hardware when the kernel boots. But, one can also use the initrd image as a filesystem image (root filesystem directories from busybox, for example) that can be booted with the kernel to give the end user a shell prompt to work with -- like the use of a LiveCD/DVD running entirely on RAM that has both kernel and initrd filesystem image. Thanks for clarification. Still I have some couple of question. 1) So initrd is first file which executes first in the boot process (if present) . Am I correct? 2) There are so many variances in the kernel image file (vmlinuz, bzImage, zImage, etc). What is the difference? How do we build each? I may be stupid, But just want to clarify initrd is the ramdisk correct? Thanks. Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] kernel build option - ramdisk
Hi, I am exercising the various kernel building options. I came across two build options related to filesystems. 1)ramdisk image 2)) building the RootFS disk controller for that disk in to the kernel. I assume that, ramdisk image is the separate image for only filesystem (initrd) and the second options is no initrd image file, kernel file(vmlinux) includes the filesystem also. Is that correct? Can you please share your experience if you come across this(ramdisk or inbuilt). Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] RE: [kanchilug] OT: GSoC 2010 is on!
What is google summer code? ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] UML Tool
I use Poseidon from http://www.gentleware.com/ it rocks ! Poseidon is not opensource. I need to purchase the license it seems. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] UML Tool
http://argouml.tigris.org/ http://sourceforge.net/projects/classbuilder/ http://sourceforge.net/projects/bouml/ http://staruml.sourceforge.net/en/ http://live.gnome.org/Dia/ http://www.koffice.org/kivio/ http://uml.sourceforge.net Thanks gauvrav. I feel, uml ,staruml,argouml are quite close my expectations. I will explore these and share my experience. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] Current Device drivers module info
lsmod (to list all loaded module), modinfo modulename (to get information abt the particular module)... can u plz explain ur question or requirements in brief.. I want to customize the kernel to support only my PC hardware drivers. I don't want the kernel to support all the hardware drivers. The intention is reduce the size of the kernel. For this I need to know what is my current hardware driver module details to configure the kernel. Thanks to all. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] Current Device drivers module info
Hi, How do i know the current driver modules used in my system. i found in some article, the running module details are located in /sys/class directory. but how do i collect all the module info. This is required for the kernel optimization. Any scripts available? Thanks for your help. thanks suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] kernel optimization in size boot up time
All, I like to reduce the kernel size and boot fast (may be 5-10 Mb kernel size) boots up in 15 seconds. I measured, in the current default installation (FC10) the bootup time is around 45seconds and size is 50mb. I did compiling and removed the unnecessary hardware modules. Still I am seeling slight changes. May be I have removed the little. Anyone have experience in this kernel optimization. Please share your experience. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] recursive search
Hi, How to find the text from a file(directory subdirectory). (recursive search) Ex : Directories : /prog /prog/sub1/ /prog/sub1/dir1/ /prog/sub2/ Each folder contains some text files. I want to search a text from all the files in the directory /prog and subdirectories. I tried cat * | grep text But it searches only the current directory also it not lists the filename. How do I do this Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] whois database
whois result admin contact for some domains, *Administrative Contact:* name email address phone etc Write the script to identify the word Admin (no case sensitive) and take next sentence for admin contact. You have to collect the details from all the domains and identify the similarities in the results and write the script to work all the results. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] recursive search
The -R switch for grep works for you :) grep -R search_text Directory Thanks it works. ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] configure the virtual IP
Hi, Anyone know how to configure the virtual IP on the same Ethernet interface(ethx) ? I mean, Configure the multiple IPs on eth0, not eth0:0 or eth0:1 There is a way to do using RTNETLINK, But I am not able to find any resource in the internet. If anyone have come across some utility or RTNETLINK please share your ideas. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] configure the virtual IP
No. You can do this using the following command: # ip address add dev eth0 192.168.10.1/24 broadcast + # ip address add dev eth0 192.168.20.1/24 broadcast + This command works. This what I have expected. How ip address command differs from ifconfig command. Show the associated IPs (ifconfig won't show this): Why ifconfig doesn't show this ip? $ ip address show eth0 IPs are locally reachable. Please test the reachability of this IP(s) from an another machine and share the result. Yes its reachable. I have added the route. In this process, I learned that, we can create alias interface with any name (10 chars max): # ifconfig eth0:abcdefghij 192.168.30.1 up # ifconfig eth0:1234567890 192.168.40.1 up I must say Thanks to all whoever try to solve this case. Special thanks to bharathi. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] Re: Need to calculate the file size in shell scripting
$ du -s 1.txt | awk '{print $1;}' 100 $ or another one, $ ls -l /bin/bash | awk '{print $5;}' 908464 $ Nice answer. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] Video Streaming Server
Hi, Could you please suggest good opensource video streaming servers? thanks suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] Video Streaming Server
VLC player may help. I remember a stall on VLC video streaming server at MIT Chrompet at Carte Blanche event last year. Yes can perform the streaming. But VLC cannot be the full fledged streaming server as its not matured enough. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] Video Streaming Server
you may try PHPMotion. http://www.phpmotion.com . Its a media sharing CMS. http://mpeg4ip.sourceforge.net/faq/index.php http://klaus.geekserver.net/flash/streaming.html Thanks for the information. I will try. Anyone have experience on phpmotion. If you have please share. Darwin helix are other open source streaming server. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] How to run our own NTP server
If you are not concerned about atomic precision and only want all system in the lan to have same time, easiest is to configure time server and use rdate. Designate one system as server, enable time server under xinetd.d or inetd. use rdate command from clients to query server time and adjust itself. rdate can be run at boot time or as cronjob. ntpd is one of the commonly used. Run one of the server as ntpd server. And reset of the servers are ntpd client and point the ntpd server. It will sync automatically. Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] OpenSource software list - SDLC
On Monday 21 Dec 2009 7:57:51 am Suresh Kumar Subramanian wrote: I am intrested to know the open source software on all the stages of the software development life cycle or product development life cycle. are you talking about open source development cycle or open source tools in a proprietary development cycle? I mean various FOSS tools for project development. Thanks Surehs ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] cp command
How to copy the specific files only in cp command in RHEL 5 or all linux flavor? Ex i've 1000 files in a folder, i want to copy only 715 files olny in that folder to paste other place. what command using for that..waiting for your prompt reply. mv $(ls | head -715) new_folder/ This Command exits if the directory occurs before 715 line. ___ To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with unsubscribe password address in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] Chennai Based Cloud Servers?
On Thu, Nov 26, 2009 at 9:41 AM, Sreekanth B gnuy...@gmail.com wrote: when i met amazon guys in bangalore last month they had plan's to come to asia pacific soon. am yet to hear about cloud in india. No server in India. Probably at Singapore.. e2enetworks has a cloud in India - but it is in Delhi. Can you describe what is cloud computing? Thanks Suresh ___ To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with unsubscribe password address in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc