RE: [ilugd] [Fwd: [K12OSN] Useful tool...Linux saves the day!]
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] hi.org]On Behalf Of Sudev Barar Sent: Friday, March 26, 2004 3:53 PM To: The Linux-Delhi mailing list Subject: Re: [ilugd] [Fwd: [K12OSN] Useful tool...Linux saves the day!] --- snip and change it. Works slick and saved me from reimaging. Funny how Linux was able to save Windows from itself(sorry...couldn't resist) ;-) No Operating System, including Linux, can ever gaurantee security when you have physical access to the machine. And you could always make a tool on Windows which does the same thing on Linux. Regards, Venky ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
[ilugd] Multimedia on RHL
Hi, I was looking for some Video player / Audio players for RHL 9.0. I found that Chip March, 2004 CDs had some Linux stuff, but they seem to have missed quite a lot of rpms. For e-g- I tried installing xine, but seems the base xine rpm is missing, similarily with many of the tools provided. Anyways, these CDs provide such a stupid README, they assume a user is very comfortrable with rpms, and knows his way around. Also, that he has lots of bandwidth and can download innumerable rpms. When will the time come when Linux will have Windows style Installers for Linux, complete in all respects. Has somebody been able to install any of the tools, mainly Video players on Linux, RHL 9.0 standard installation. I have not upgraded any rpm in the system since it was installed. And have no players that can play mpeg / dat movies. Regards, Venky ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
[ilugd] Multimedia on RHL
Hi, I was looking for some Video player / Audio players for RHL 9.0. I found that Chip March, 2004 CDs had some Linux stuff, but they seem to have missed quite a lot of rpms. For e-g- I tried installing xine, but seems the base xine rpm is missing, similarily with many of the tools provided. Anyways, these CDs provide such a stupid README, they assume a user is very comfortrable with rpms, and knows his way around. Also, that he has lots of bandwidth and can download innumerable rpms. When will the time come when Linux will have Windows style Installers for Linux, complete in all respects. Has somebody been able to install any of the tools, mainly Video players on Linux, RHL 9.0 standard installation. I have not upgraded any rpm in the system since it was installed. And have no players that can play mpeg / dat movies. Regards, Venky ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
RE: [ilugd] Multimedia on RHL [Chipset Issue]
Hi, Well, I have a Gigabyte motherboard, Via KM266 chipset with AMD Athlon 2000+ XP. It has 5 channel sound capabilities, and Windoze, is able to use the full capability. I know, you would say that drivers were provided for Win XP, anyways it works real fine. Problem is, on RHL, though the chipset is recognised, it is unable to use the 5 channels. Does anyone have this motherboard and has he been able to use 5 channels on Linux. Regards, Venky ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
RE: [ilugd] strcpy local variable in c
Hi, Try this code. Hope you understand the difference now. Regards, Venky #include stdio.h #include string.h char * foo(); char * foo1(); int main() { char string[200]; char *p; p = foo(); foo1(); strcpy(string,p); printf(String=%s\n,string); return 0; } char * foo() { char string[200]; char * ptr=NULL; strcpy(string,hello world); ptr=string; return ptr; } char * foo1() { char string[200]; char * ptr=NULL; strcpy(string,cruel world); ptr=string; return ptr; } [EMAIL PROTECTED] dvenkat]$ gcc -Wall strcp.c [EMAIL PROTECTED] dvenkat]$ ./a.out String=cruel world [EMAIL PROTECTED] dvenkat]$ _ My brain is divided into two parts, LEFT and RIGHT, The LEFT has nothing RIGHT in it, And the RIGHT has nothing LEFT in it. _ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Vikas Upadhyay Sent: Thursday, March 04, 2004 12:24 PM To: [EMAIL PROTECTED] Subject: [ilugd] strcpy local variable in c Hi all, I just want to know, why does this C code work? #include stdio.h #include string.h char * foo(); int main() { char string[200]; strcpy(string,foo()); printf(String=%s\n,string); return 0; } char * foo() { char string[200]; char * ptr=NULL; strcpy(string,hello world); ptr=string; return ptr; } According to me, as we have string as local variable, it should vanish. But, i am still able to return and print the string hello world. When I change to : char string[200]=hello world; and do not use strcpy(), It shows junk, the behaviour is as per my expectations. Does it has got something to do with the implementation of strcpy()? So, does it mean that, in case of Windows it might behave differently? Hope to get some help. Thanks in advance. vikas ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/ ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
RE: [ilugd] Re: strcpy local variable in c
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] lhi.org]On Behalf Of Vikas Upadhyay Sent: Thursday, March 04, 2004 2:41 PM To: The Linux-Delhi mailing list Subject: Re: [ilugd] Re: strcpy local variable in c -- snip Still frnds, I am not very clear !!! Its very simple, what GCC did was create a array and put hello world at that memory locations. When you returned, you just returned an address. GCC marked those memory locations as reusable but it wouldn't go to the extent of erasing the memory locations. Why should it, after all C has no garbage collector. And hello world is as much a useless string as any other string sdfhd#afddf. Now when foo1 was called in the program I had sent, you will see that it again used the same memory locations, but this time I had written cruel world. When you are calling printf, p has an address which was returned to it by foo (). It goes to the address and prints the contents there which have now changed to cruel world. To understand it in more detail: Every function has three parts The Prologue The Main body The Epilogue The Prologue stores the Callee Save registers on the stack and sets the PR register. Callee Save registers whose values should not change across the function call. So, the value they contained before you called foo, should be there after foo. In the main body, at the end of it, the compiler ensures that the Register (say R0) which is marked as the return value registers in the ABI for the architecture, contains the return value. So, R0 (for x86) has the return value (that is just an address of string in your case). The Epilogue then starts unwinding the stack so that the Stack Pointer and all the Callee Save registers are brought back to the state in which they were before the function had been called. The last assembly instruction in the Main body is generally the rts instruction which tells the function to return. As far as p = foo () is concerned, the compiler would have generated instructions to set p to the value of R0, thats all. When I called foo1 again, the compiler knew that the memory for the local array string defined in foo is no longer required and it proceeds to give the same memory locations to string in foo1. So, accidentally (or is it, :-)), now those memory locations contain cruel world, which is printed. I would suggest you read the ABI for x86 and take a look at the assembly file generated, and you will find out easily. gcc -g foo.c You could use -fnoschedule-insns2 to disable instruction scheduling. gcc -g -fnoschedule-insns2 foo.c objdump --source --disassemble a.out foo.lst Your dump is in foo.lst. Even if GCC did have a garbage collector, I wonder if it would actually try to erase the locations. After all, as I said earlier, hello world is as much a useless string as any other string sdfhd#afddf (once the function has returned), so why go to the trouble at all? Hope that answers your question. :-) regards, vikas Venky ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
RE: [ilugd] Few Very Basic Linux Questions
5. are there any temporary files i linux like windows ,if yes then how can we delete them? /tmp/; and maybe /usr/tmp -sachin jain Venky ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
RE: [ilugd] how to pronounce Linux
Why are you all spamming the list with some inconsequential crap? -Original Message- From: amit sharma [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 11:46 AM To: [EMAIL PROTECTED]; The Linux-Delhi mailing list Subject: Re: [ilugd] how to pronounce Linux Linus Torvalds (sunil for some) says, I pronounce Linux as Linux! --- LinuxLingam [EMAIL PROTECTED] wrote: On Tuesday 05 August 2003 03:36 pm, you wrote: simplest shortcut is goto http://www.paul.sladen.org/pronunciation/ and download .wav file from listen to it. here linux says Hello, this is Linus Torvalds, and I pronounce Linux as Linux! amit clever! and since i haven't heard that wav file, does he pronounce 1) Linux as Linux or is it 2) Linux as Linux or is it still like 3) Linux as Linux perhaps 4) Linux as Linux that's four variations already! go figure! :-) LL ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd
RE: [ilugd] GCC pulling the plug on SCO support
-Original Message- From: Spoonman [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 5:39 AM To: The Linux-Delhi mailing list Subject: [ilugd] GCC pulling the plug on SCO support snip 2003-08-03 Mark Mitchell [EMAIL PROTECTED] * README.SCO: New file. === As all users of GCC will know, SCO has recently made claims concerning alleged copyright infringement by recent versions of the operating system kernel called Linux. SCO has made irresponsible public statements about this supposed copyright infringement without releasing any evidence of the infringement, and has demanded that users of Linux, the kernel most often used with the GNU system, snip We have been urged to drop support for SCO Unix from this release of GCC, as a protest against this irresponsible aggression against free software and GNU/Linux. snip Here's the full text : We have been urged to drop support for SCO Unix from this release of GCC, as a protest against this irresponsible aggression against free software and GNU/Linux. However, the direct effect of this action would fall on users of GCC rather than on SCO. For the moment, we have decided not to take that action. The Free Software Foundation's overriding goal is to protect the freedom of the free software community, including developers and users, but we also want to serve users. Protecting the community from an attack sometimes requires steps that will inconvenience some in the community. Such a step is not yet necessary, in our view, but we cannot indefinitely continue to ignore the aggression against our community taken by a party that has long profited from the commercial distribution of our programs. We urge users of SCO Unix to make clear to SCO their disapproval of the company's aggression against the free software community. We will have a further announcement concerning continuing support of SCO Unix by GCC before our next release. BTW, read this thread : http://gcc.gnu.org/ml/gcc/2003-07/msg01564.html This was discussed a lot in the GCC community and most developers did not seem to favour deprecating SCO support. As of now, it does not seem that GCC is pulling the plug on SCO support. ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd
RE: [ilugd] accessing NTFS
--- # Subodh # [EMAIL PROTECTED] wrote: Hi ! I have a PCQLinux8.0. Can i access NTFS partions in Linux n How ? I doubt whether PCQLinux8.0 comes with a kernel pre-configured to access NTFS mount points. It is based on RHL 8 which doesn't have a stock kernel for accessing NTFS. Try the mount command, if you get a message something like ntfs not supported by kernel, then you need to compile a new kernel. If you installed the kernel sources, you will find them in /usr/src/linux---. Follw the instructions as given in README in the directory. When compiling is complete save the new kernel with an new name to /bbot and add a new option in grub/lilo. Do not save it with the same name (vmlinuz---) as if there is some problem, you may not be able to boot into your default linux. Venky ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd
RE: [ilugd] SCO wants licensing fees from corporate Linux users
what FSF or somebody like that can do at the moment is SUE SCO Over adopting unethical practicies, either show us trouble code immediately or pay to FSF. I really do not understand why the FSF needs to sue SCO. What unethical practice? They think they own the Unix Code Base, so they sued IBM, let them try. Why are you all wasting your time flaming each other? Do some useful work, contribute to some project. As far as the FSF is concerned, I guess, you should read this thread. http://gcc.gnu.org/ml/gcc/2003-07/msg01564.html Regards, Venky ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd
[ilugd] Booting into a compiled kernel
Hi, I have installed RHL 9 on my machine. As I required a kernel without version support, I decided to compile a new one. I created a directory /home/all and copied the kernel sources into it from /usr/src/linux### and compiled the kernel in /home/all/linux###. Followed the steps given, make menuconfig, make dep, make modules_install exactly as gien in the README ... Well, everything went off smoothly, no make errors of any kind. Then I copied the kernel, to /boot/ with a new name mylinux. The problem is I can't boot into this kernel using grub. I added a new entry similar to the already present entry. Then I even used rdev to specify the root device, but still am unable. I tried all combinations, including : title Linux_something root (hd0,8) kernel /boot/mylinux It says Kernel Panic : cannot mount root fs or something like that. What could be the problem? Should I build the kernel in /usr/src/linux### directly. Any help would be appreciated. Regards, Venky PS : ### is the version number. ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd
RE: [ilugd] Booting into a compiled kernel
-Original Message- From: Robins Tharakan [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 3:34 PM To: The Linux-Delhi mailing list Subject: Re: [ilugd] Booting into a compiled kernel 2. you probably specified to build the root filesystem [generally its ext2) (or even ext3 if you are like me...) into modules. That doesnt work, since atleast the root filesystem needs to be inbuilt into the kernel(i.e. say y rather than m for the root filesystem that you use). basically the idea is that the modules are read from the root filesystem, so if you read even the root filesystem modules from the root, it becomes more of a chicken vs egg problem, thereby causing the error... Thanks, that was quick, I will try out the possibilities and ping back the list tomorrow, as its my home machine. Well, I don't think I specified ext3 as a module, but I will make sure, I did that. Regards, Venky ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd
RE: [ilugd] PLEASE REPLY
There is the money for all the development work, LAN parties. Hey, how about giving all the 2000+ members of the list brand new PCs. @ 1000 USD for an ultimate PC, 2 million would be sufficient. And that leaves a whopping 2.41 Million in reserves. ;-) -Original Message- From: Dr. Nicholas Ted [mailto:[EMAIL PROTECTED] Sent: Sunday, July 20, 2003 7:47 AM To: [EMAIL PROTECTED] Subject: [ilugd] PLEASE REPLY From: Dr. Nicholas Ted Tel: 234-8033074806 fax: 234-1-7596714 Email:[EMAIL PROTECTED] Dear sir/Madam, In order to transfer out (USD 12.6 M) Twelve million Six Hundred United States Dollars) from African Development Bank. I have the courage to ask you to look for a reliable and honest person who will be capable for this important business believing that you will never let me down either now or in future. I am Dr. Nicholas Ted, the Chief Auditor of African Development Bank(ADB). There is an account opened in this bank in 1998 and since nobody has operated on this account again. After going through some old files in the records, I discovered that if I do not remit this money out urgently it would be forfeited for nothing. The owner of this account is Mr.Smith B.Andreas, a foreigner,and a miner at kruger gold co., a geologist by profession and he died since 1998. No other person knows about this account or any thing concerning it, the account has no other beneficiary and my investigation proved to me as well that this company does not know anything about this account and the amount involved is (USD 12.6M) Twelve Million, six Hundred United States Dollars million dollars. I want to first transfer US$6,000,000:00 Six million United States Dollars from this money into a safe foreigners account abroad before the rest, but I don't know any foreigner. I am only contacting you as a foreigner because this money cannot be approved to a local bank here, but can only be approved to any foreign account because the money is in us dollars and the former owner of the account is Mr. Smith B.Andreas he is a foreigner too. I know that this message will come to you as a surprise as we don't know ourselves before. We will sign an agreement, but be sure that it is real and a genuine business. I only got your contact address from International Business Directory,with believe in God that you will never let me down in this business. You are the only person that I have contacted in this business; so please reply urgently so that I will inform you the next step to take immediately. Send also your private telephone and fax number including the full details of the account to be used for the deposit. I want us to meet face to face or sign a binding agreement to bind us together so that you can receive this money into a foreign account or any account of your choice where the fund will be safe. And I will fly to your country for withdrawal and sharing and other investments. I am contacting you because of the need to involve a foreigner with foreign account and foreign beneficiary. I need your full co-operation to make this work fine because the management is ready to approve this payment to any foreigner, who has correct information of this account, which I will give to you later immediately, if you are able and with capability to handle such amount in strict confidence and trust according to my instructions and advice for our mutual benefit because this opportunity will never come again in my life. I need truthful person in this business because I don't want to make mistake I need your strong assurance and trust. With my position now in the office I can transfer this money to any foreigner's reliable account, which you can provide with assurance that this money will be intact pending my physical arrival in your country for sharing. I will destroy all documents of transaction immediately we receive this money leaving no trace to any place. You can also come to discuss with me face to face after which I will make this remittance in your presence and two of us will fly to your country at least two days ahead of the money going into the account. I will apply for annual leave to get visa immediately I hear from you that you are ready to act and receive thi s fund in your account. I will use my position and influence to effect legal approvals and onward transfer of this money to your account with appropriate clearance forms of the ministries and foreign exchange departments. At the conclusion of this business, you will be given 35% of the total amount, 60% will be for me, while 5% will be for expenses both parties might have incurred during the process of transferring. I look forward to your earliest reply Dr. Nicholas Ted ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd ___ ilugd mailing list [EMAIL PROTECTED]
[ilugd] X Configuration
Hi, What is the Configuration utility for X in RH9. Is it still xf86config? Actually, earlier it was a RH8 machine but was not running in X mode, we upgraded it yesterday to RH9 specifying all packages. But now, there is no xf86config or Xconfigurator command. Regards, Venky ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd
RE: [ilugd] X Configuration
Thanx, its an Intel 845 M/B. redhat-config-xfree86 probes correctly, but still display problems. Windows NT runs correctly. I guess, we will have to manually edit the config file. Venky -Original Message- From: Jasmeet S. Virdi [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2003 4:48 PM To: 'The Linux-Delhi mailing list' Subject: RE: [ilugd] X Configuration RH9 has one utility called redhat-config-xfree86, haven't used this .. U can try it out -js -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of D.Venkatasubramanian, Noida Sent: Friday, July 04, 2003 4:09 PM To: The Linux-Delhi mailing list Subject: [ilugd] X Configuration Hi, What is the Configuration utility for X in RH9. Is it still xf86config? Actually, earlier it was a RH8 machine but was not running in X mode, we upgraded it yesterday to RH9 specifying all packages. But now, there is no xf86config or Xconfigurator command. Regards, Venky ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd
RE: [ilugd] Password Policy
Don't know about how the dictionary is stored on Linux specifically, but you should read some Data Structure book (look for the data structure called TRIEs). I guess, that would be the indexing mechanism. Its a very powerful data structure and any word should take only : no_of_alphabets * no_of_characters in the worst case, where no_of_alphabets is the count of all the distinct alphabets that can form a word in the dictionary (naively, A-Z) and no_of_characters is the number of characters i your password (uno has 3). Regards, Venky -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, June 28, 2003 12:14 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [ilugd] Password Policy Hi, I have some queries on the password policy. Please respond with whatever info you have on this. Here it is: Depending on the security level you want, password policy is decided/set at the time of installation. If it is set for not accepting dictionary words, the user passwords can not be set/changed based on the dictionary words. While setting the password, if it is a dictionary word, the system IMMEDIATELY responds with a message that the password is based on a dictionary word. I want to know how this dictionary based policy is stored on the system, how it can scan the full dictionary of thousands of words within fraction of second. I would like to know what kind of indexing logic is required/done for using this. If the system is installed for multiple languages, it checks for all the dictionaries for all the languages with the same lightening response. e.g. recently I tried to change my password on one of my websites with a spanish word (eg. cielo or uno) based password and I was refused immediately. Extending this further, if I have Indian languages like Hindi installed in the system, how the dictionary is stored/read for this purpose and also how the indexing/(sort order) is done for the respective dictionary. Please send me whatever info you have on this. Any books/Websites/reference material welcome.. Thanks in advance. -Sudhanwa ~!~!~!~!~!~!~!~!~!~!~ www.sudhanwa.com ~!~!~!~!~!~!~!~!~!~!~ ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd