Re: Fresh lenny install and suspend to ram problems
Might be a long shot, but I had similar problems on my laptop. It turned out to be the radeonfb module in my case ... This laptop has a radeon mobility 9000 which is supported by xorg's radeon driver which again made it possible for me to use radeonfb to get a nice terminal resolution (tty[1-6]). I had to blacklist radeonfb via /etc/modprobe.d/blacklist-framebuffer and suspend started working properly. I'm using vesafb now and it works great. I recall coming across a forum mentioning having to remove ehci_hcd on lenovo laptops, I think it differs from laptop to laptop (e.g. hardware) in what module might be troublesome. My only hint would be to at least check if you've loaded the nvidiafb module, if you have try removing 'splash' and 'vga=' directives to the kernel in grub and see if there is any difference. regards Joar Jegleim On Mon, Feb 9, 2009 at 6:23 PM, Marco Vittorini Orgeas wrote: > Hello, > I've just installed Lenny on my thinkpad T61 (model 6460).I am posting here > because I've googled around and tried some things reported from people with > similar issues,but I am starting to be stuck in a deadlock where I feel to > just don't get the point of the situation. > On my system all seems to work as expected (even suspend to disk), but I am > facing problems with the suspend to ram feature. > The problem is: > if I suspend to ram the system(from the gnome power button) I have the > system regularly suspended to ram (the t61 half-moon blinks showing that is > going to sleep). > It sleeps for two seconds and then it immediately resumes back, but it just > fail to resume - I can hear the HD spin up and the fan starts to work but > the half-moon doesn't blink and the screen remains black. > At this point the keyboard doesn't seem to respond to any input or > combination of key pressed, and all I can do is a an hard rebooting by keep > pressed the power button. > > Now reading around ( > http://www.thinkwiki.org/wiki/Problems_with_ACPI_suspend-to-ram) I was > able to isolate the first half of the problem: > if I do : > modprobe -r ehci_hcd > and then I try to suspend, the system effectively suspend and sleeps well > without any more resumes.I have tried to understand where lenny looks for > modules to be rmmoded before actually suspend but I was not successfull, or > better: around there is such confusion on the topic that I can't seem to > understand which files or script gnome uses to make the system sleeps > (acpi,hibernate.conf etc... googling get you a "babele" of different > informations)...so if someone could be so kind to clear the situation and > point me in the right direction would be very appreciated. > > After that still remains the second half of the problem: even if the system > is suspended to ram, if I try to resume it back, I get again the > over-mentioned problem: I can hear the HD spin up and the fan starts to work > but the half-moon doesn't blink and the screen remains black.At this point > the keyboard doesn't seem to respond. > > Some suggestions here would be really appreciated too. > I should also add here that I have on the same thinkpad a Gutsy > installation with suspend2ram working (but there I am using the nvidia > binary drivers) while on lenny I guess I am using the X11 nv driver (even > though I can't be able to check this because lsmod |grep nv does return only > "nvram") - I have a nvidia quadro 140m on my thinkpad. > > Probably the resume problem is related to this difference of drivers. > > thank you > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > >
Hardware recommendation for collocation
Hello, I'm considering purchasing a server to run Debian in a collocation facility. In the past I've either leased collocated servers, or just used whatever hardware was handy, but I haven't always been happy with that approach. I'm sure others have done this, and was hoping to get their advice and experience on what hardware works best with Debian. Obviously I need something that is well-supported by Debian. Ideally I would like something with hardware drive mirroring (RAID 1), with good suppot from within the OS (so I can run a commandline tool to manage the RAID and run a cronjob to tell me if anything has gone wrong. Hot-swap drives would be very handy, too, again as long as they work well under Linux and Debian. Also, I've seen that many newer servers offer some kind of "lights-out management", a special console available over the network which allows manipulating the server before it's booted, including choosing alternate boot media, picking which kernel to boot, and toggling the power. Has anybody worked with these? Do they work well with Debian, and with a Debian client? Are they worthwhile? Price is a factor of course, and cheaper is better as long as its reliable. Under $1k would be ideal, but that may not be possible with the features I'm looking for. Beyond that not much matters; any fairly modern server will be fast enough. Many of these features are built into motherboards, and it's hard to tell whether they will work under Linux from just the documentation. I'm hoping in particular for servers that people are already using and have good luck with, so the hardware is already known to work. Thanks for any thoughts! Scott. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Does anyone understand terminal job control?
On Mon, Feb 09, 2009 at 10:37:07AM -0500, "Douglas A. Tutty" was heard to say: > On Sun, Feb 08, 2009 at 08:27:09PM -0800, Daniel Burrows wrote: > > On Sun, Feb 08, 2009 at 07:58:51AM -0500, "Douglas A. Tutty" > > was heard to say: > > > > Perhaps your controller program will have > > > to be a filter between the process and the terminal: pipe its std-in an > > > std-out to the controller process and the controller process issue the > > > appropriate shell start/stop commands as necessary while leaving the > > > process in the background the whole time. > > > > I thought about this option, but the problem is detecting when the > > subprocess is trying to read (but I don't have anything to give it). > > One interesting idea I got from the libc manual (but have yet to follow > > up on) is to inject a VDSUSP character into the stream -- apparently > > this will suspend the process, but only when the character is actually > > read. I vaguely recall having some reason to think it might not work, > > but it's worth at least trying. (as it happens, since I control the > > terminal, I don't need a man in the middle to do this (I think) -- I > > can just ask the terminal to send the character) > > > > Wouldn't the process that is wanting to read from stdin from a user > typically issue some sort of prompt for the user. If your controlling > program wasn't there, how would the user know that input was requried? > Can't you listen for that prompt? Well, the problem is that I don't know what the prompt is. e.g., if I see > Unable to build the frimblefroz database. Some program functions > might be inoperable until you run /usr/bin/update-frimblefroz. >Press [RETURN] to continue I guess the "press return to continue" could be hardcoded in since many programs use it, but then what about "press [enter] to continue"? It would be very hacky. And then you get stuff like the debconf whiptail dialogs that I was working with originally; there's no way I can reliably detect that stuff (unless, again, I use some heuristic like "if the terminal switches to its second screen there may be a prompt"), plus who knows what third-party .debs do... I really want to avoid anything that involves collecting 50 different heuristics to create a huge maintenance headache that won't quite work anyway. :-) I mentioned the problem to some guys at work, and one of them had an interesting idea, which is to watch the processes in the subprocess's process group, and guess that they're waiting on input if none of them are consuming any user time, or at least if they're consuming negligible amounts of it (since they might block in select() with a timeout). I could also just imitate synaptic and guess that the program is waiting if it's gone more than a couple minutes without generating output. Daniel -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Which programming Language
I think one important thing is to learn more than one language. There are a couple reasons for this, but if I had to give you just one, here is what it would be: In most languages I know, there are certain programming techniques that are considered "difficult", "advanced" or "black magic". There are other techniques which are considered "easy", and are usually taught to beginners. What's interesting is that these techniques are not the same in each language. In fact, techniques that are considered "advanced" in one language are very often "easy" in another! Why is this? In my opinion, it's not that you have to be smarter to write code in, say, Haskell than in C++. It's that some techniques that are directly supported by the most basic language constructs in Haskell require the sophisticated use of multiple obscure language features to achieve in C++. So they get the reputation of being "hard" because when most people learn them, they're learning the obscure language features and trying to grasp the sophisticated implementation details at the same time they're trying to learn the concepts behind the technique. I don't mean to pick on C++ here: the same thing is true the other way around. (the code for DiffArray is utterly hair-raising, for instance) I also think that programmers who have learned these techniques in a language where they're "hard" sometimes have trouble separating the many implementation details from the technique itself. That can make it hard for them to implement a slightly modified version of the technique, or to recognize someone else's implementation when they run into it. If you've seen the basic idea in another language, it's a lot easier to focus on the details of how to get it done in another language, and it's easier to know when to deploy it (you might not know exactly how to do it yet, but at least you know that it will solve the problem in front of you). It's basically about getting more "tools" in your mental toolbox, so you don't end up trying to drive screws with a hammer. :-) I was avoiding naming particular techniques here, but for instance, a lot of C++ programmers avoid templates -- functions that can operate on more than one type -- because they're considered "too hard". In Haskell, *every* function can operate on multiple types; there's no special syntax required to do it. Conversely, a lot of sophisticated C++ code relies on making use of "side effects": functions that, instead of computing something, modify some pseudo-global variable. Haskell eliminates the routine use of side effects, but there are some approaches to problems that are much easier to understand in terms of side effects, even if your final implementation doesn't use them. I would advocate learning two languages early on: a lot of people invest much time and effort in just one, and then find it too difficult to learn a second. I'm not sure why this is, but my theory is that it's some combination of: (a) "baking in" a concept of how you conceive of a computer program, so that it's hard to become accustomed to / pick up a new language. (b) the fact that when you start learning a new language, you start as a beginner (or almost a beginner), which can be a frustrating experience for someone who was an expert in the language they were using before. I imagine it must be like going back to grade school to study arithmetic again. For the particular languages, I would advocate (1) a traditional imperative language such as Java, C#, Python, C++ PHP, Fortran, Ada, PL/1 ;-) etc. These are all more or less the same (modulo memory management, see below) and they're what you'll actually use for practical programming and if you want to get a paying job. (we wouldn't call it "work" if it was fun. :-) ) and at least one of (2) a Lisp descendant such as Scheme or Common Lisp. Scheme is perhaps easier to learn; Common Lisp seems to have more "stuff" to get stuff done (although IIRC, drscheme/mzscheme has a pretty good environment and set of libraries). Lisp has some "interestingly different" ideas about how a programming language can be designed, like its powerful macros, and although it looks funny, it's actually not that different from (3) one of the strongly typed "functional" languages, like O'Caml (an ML descendant) or Haskell. These are good for learning a lot of techniques I might also through Erlang in there -- from what I've heard it's a good introduction to concurrent programming. Sadly I haven't had time to learn it myself. :-( Also: if you want to become a really expert computer programmer, you really MUST become proficient in C or C++ at some point. (and when I say C++, I mean "C with objects", not "insane template library hiding everything in the computer from you", despite my love of such templa
Re: Which programming Language
On Mon, Feb 09, 2009 at 10:07:12PM -0500, Napoleon wrote: > Douglas A. Tutty wrote: > >On Sun, Feb 08, 2009 at 05:17:33PM -0600, Boyd Stephen Smith Jr. wrote: > >> > >>Plus, it's not like Ada compilers can't have extensions. > > > >If an Ada compiler wants to have an extension and still pass the test as > >a certified Ada compiler, it has to do extenstions within the framework > >provided for in the standard. > > Ada is a decent language, but little used outside of the government. > The business world has not embraced it, and if it weren't for the > government requirements, it would have gone the way of SNOBOL by now. > > A programmer who only knows Ada will starve unless he can get a job for > the government or a government contractor. The OP still hasn't told us what prompted the OP. As I said, if he's looking to learn for a job, he should talk to prospective employers. The government requirements have expired; the US gov't has moved to more COTS. OTOH, if the OP is interested in aerospace, like upgrading the software on the Boeing 777, he'll need Ada. Doug. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Which programming Language
On 02/09/2009 09:15 PM, Chris Jones wrote: On Mon, Feb 09, 2009 at 08:05:49PM EST, Micha Feigin wrote: [..] The C Programming Language - A language which combines the flexibility and power of assembly language with the readability and maintainablity of assembly language. Funniest quote in a long time .. Except such a person has never used VAX MACRO before. -- Ron Johnson, Jr. Jefferson LA USA Supporting World Peace Through Nuclear Pacification -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Which programming Language
Douglas A. Tutty wrote: On Sun, Feb 08, 2009 at 05:17:33PM -0600, Boyd Stephen Smith Jr. wrote: Plus, it's not like Ada compilers can't have extensions. If an Ada compiler wants to have an extension and still pass the test as a certified Ada compiler, it has to do extenstions within the framework provided for in the standard. Doug. Ada is a decent language, but little used outside of the government. The business world has not embraced it, and if it weren't for the government requirements, it would have gone the way of SNOBOL by now. A programmer who only knows Ada will starve unless he can get a job for the government or a government contractor. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Which programming Language
On Mon, Feb 09, 2009 at 08:05:49PM EST, Micha Feigin wrote: [..] > The C Programming Language - A language which combines the flexibility and > power of assembly language with the readability and maintainablity of > assembly language. Funniest quote in a long time .. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Otvoren B2B i B2C market za sva pravna i fizicka lica
Postovani, Zadovoljstvo nam je da vam predstavimo jedinstveni B2B i B2C market na trzistu dostupan za sva pravna i fizicka lica kao i za sve drzave u okruzenju . Pravna lica (registracija kao prodavac) Sva registrovana pravna lica imaju mogucnost promovisanja svojih proizvoda sa lagera, kao i predstavljanje proizvoda koji su na akciji. Takodje mogu postaviti zahtev za potraznju bilo kog proizvoda u bilo kojoj kolicini a koji im moze biti ponudjen kako u lokalu tako i iz zemalja u okruzenju. Fizicka lica (registracija kao kupac) Svom fizickim licima je takodje dostupna registracija i mogucnost da postave potraznju za bilo kojim proizvodom za koji imaju trenutnu ili buducu potrebu. Takodje sva fizicka lica ce na svoj registrovani nalog dobijati ponude od pravnih lica na nacin na koji to do sada nije bilo moguce uciniti. registracija je potpuno besplatna ! VIP Clanovima posebne pogodnosti ! s postovanjem BiznisMarket www.biznismarket.com supp...@biznismarket.com -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Laptop
Chris Jones wrote: you seem to be right leo & Co does not know it means something like a "free time hacker spirit" in this case :-D bastel - to tinker kunst - art Finjan, Laptophersteller werden immer besser, aber du musst schon genau prüfen wie gut die chipsätze in dem, von dir begehrten notebook, unterstützt werden. Aus meiner Erfahrung bauen manche Hersteller in manchen Modellen (beobachtet bei jap. produkten wie sony, toshiba usw) exotische chipsätze und liefern kein linux support. grüße -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Trying to replace my router with a Debian machine - but I can't understand my existing setup
Aneurin Price wrote: > > Yeah, it's amazing how often restarting things will magically fix > problems. I really ought to remember to try that more often. > > Nye there's a joke about this and a car, so here it is an engineer, el. technician and computer guy are driving a car and it suddenly stops. the engineer says it must be the engine. the el. guy says it's something on the el. installation. the comp. guy says, can we just get off and get on and just restart the system ... it usually helps :-D -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Install Debian GNU/Linux
Cahaya Lilin wrote: > Hello all.. > > I want to know is there Debian linux can install by copy the entire files > in the hard disk to another hard disk ?? > > Because i already install linux in my computer and now i want to install > linux in another computer but not install it from the cd, it would be good > if Debian GNU/linux can install in another computer just by copy all of > the files.. > > and is there setting i have to do ?? > > Thanx.. So to sum up (HOW TO CLONE A SYSTEM with two or one cup(s) of coffee) SOURCE PC: 1) it works if the source system is prepared so. Which means at least to install kernel for the target system (if not in the same family Motorolla i*86x32/64 etc), so that you can boot on your new machine. 2) then what I prefer to do is to mount the partitions somewhere so I can access only the data I need cd /tmp; mkdir backup mount /dev/XXX[1-9] backup mount /dev/XXX[1-9] backup/boot mount /dev/XXX[1-9] backup/home (repeat for other partitions as in fstab, if you want to backup them) 3) plugin external disk (usb or so) and mount_it_somewhere 4) backup all (preserves permitions and so on) tar cjvf mount_it_somewhere/system.tar.bz2 backup (have a cup of coffee) 5) unmount mount_it_somewhere and all mounted on backup TARGET PC: 1) boot with live cd/ usb disk or what ever linux capable 2) cd /tmp; mkdir -p backup/{boot,home} (the same structure like in 2 above) 3) plugin external disk (usb or so) and mount_it_somewhere 4) extract all tar xjvf mount_it_somewhere/system.tar.bz2 5) customize - ssh,ssl and other keys - root, user passes - x driver, other drivers ( there are/were few problems with ATI - NVidia proprietary GL and vice versa migration, because both of them installed different GL libraries, but they might have fixed it in recent versions) 6) run grub install to make the system bootable 7) recreate initrd if necessary 8) unmount mount_it_somewhere and all mounted on backup 9) reboot -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Which programming Language
On 02/09/2009 07:05 PM, Micha Feigin wrote: I was looking for a specific quote and ended up finding this page which has some relevant ones for most of this thread. Took out some of the better ones http://en.wikiquote.org/wiki/Programming http://www.gdargaud.net/Humor/QuotesProgramming.html On Mon, 09 Feb 2009 17:27:39 -0600 Ron Johnson wrote: On 02/09/2009 05:02 PM, Douglas A. Tutty wrote: On Mon, Feb 09, 2009 at 11:57:42PM +0200, Micha Feigin wrote: Just for the record, Fortran is very much alive and kicking. It's actually a wonderful language for mathematical work and HPC. It's just no longer a hype word. And I'm mostly talking about fortran 90/95. Fortran 77 is a bit archaic. I am hoping that a fortran 2008 compiler will come out soon and that has object oriented paradigms. Maybe part of the problem is the lack of a cheap/free/accessible compiler for windows as the intel compiler rather expensive, but HPC is much more linux/unix based anyway. I agree that Fortran is alive and kicking. I still have some Fortran77 FORTRAN, the infantile disorder, by now nearly 20 years old, is hopelessly inadequate for whatever computer application you have in mind today: it is now too clumsy, too risky, and too expensive to use. —Edsger Dijkstra, circa 1970. Isn't it obvious to everyone that PL/I is the *only* language? Actually I just remembered my first language, even before basic, was logo (just shows how old I am). Turns out that it's still alive aptitude install ucblogo Regarding previous talk about ADA: --- C treats you like a consenting adult. Pascal treats you like a naughty child. Ada treats you like a criminal. * Bruce Powel Douglass No, Ada acknowledges that people are fallible. "A C program is like a fast dance on a newly waxed dance floor by people carrying razors." Waldi Ravens -- Ron Johnson, Jr. Jefferson LA USA Supporting World Peace Through Nuclear Pacification -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Evolution: Error loading addressbook
Eric, please don't top post Eric Brooks wrote: > Thanks. I did the following: > > sudo chown -R eric:eric /home/eric/.evolution/ > sudo chmod -R 770 /home/eric/.evolution/ > > but that did not resolve the issue. > > Since I can read my email, I was wondering if there are specific > permissions at the database level and enforced via data in > addressbook.db? > > Thanks. > I had troubles with evolution recently so I studied briefly the anatomy of the application. It stores some data in gconf, so you may check there did you check filesize and so on of this files ls $HOME/.evolution/addressbook/local/system/{addressbook.db,addressbook.db.summary} ? where did you store your contacts ? and what kind of account were you using ... i.e. with exchange contacts are stored in global address book on the server, so backup of the local mailbox data is not very helpful I don't know if gnome has a separate address book like kde does but in this case it is possible to be on another place and not in the addressbook.db file regards -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Which programming Language
I was looking for a specific quote and ended up finding this page which has some relevant ones for most of this thread. Took out some of the better ones http://en.wikiquote.org/wiki/Programming http://www.gdargaud.net/Humor/QuotesProgramming.html On Mon, 09 Feb 2009 17:27:39 -0600 Ron Johnson wrote: > On 02/09/2009 05:02 PM, Douglas A. Tutty wrote: > > On Mon, Feb 09, 2009 at 11:57:42PM +0200, Micha Feigin wrote: > > > >> Just for the record, Fortran is very much alive and kicking. It's actually > >> a wonderful language for mathematical work and HPC. It's just no longer a > >> hype word. And I'm mostly talking about fortran 90/95. Fortran 77 is a bit > >> archaic. I am hoping that a fortran 2008 compiler will come out soon and > >> that has object oriented paradigms. Maybe part of the problem is the lack > >> of a cheap/free/accessible compiler for windows as the intel compiler > >> rather expensive, but HPC is much more linux/unix based anyway. > > > > I agree that Fortran is alive and kicking. I still have some Fortran77 > FORTRAN, the infantile disorder, by now nearly 20 years old, is hopelessly inadequate for whatever computer application you have in mind today: it is now too clumsy, too risky, and too expensive to use. —Edsger Dijkstra, circa 1970. > Isn't it obvious to everyone that PL/I is the *only* language? > Actually I just remembered my first language, even before basic, was logo (just shows how old I am). Turns out that it's still alive aptitude install ucblogo Regarding previous talk about ADA: --- C treats you like a consenting adult. Pascal treats you like a naughty child. Ada treats you like a criminal. * Bruce Powel Douglass c/c++: - The C Programming Language - A language which combines the flexibility and power of assembly language with the readability and maintainablity of assembly language. C++: an octopus made by nailing extra legs onto a dog. * Steve Taylor And as for programming languages, I found this quote -- The most important thing in a programming language is the name. A language will not succeed without a good name. I have recently invented a very good name and now I am looking for a suitable language. * Donald E. Knuth (1938-...) * Law 1: Every program can be optimised to be smaller. Law 2: There's always one more bug. Corollary: Every program can be reduced to a one-line bug. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: IBM thinkpad A22 serial ports and debian
John Lindsay wrote: > I have installed Debian on my Thinkpad A22. Seems to be working fine > except for the wireless. I also have Wine installed as I want to run an > executable program that downloads a file to an FTA receiver via the > serial port. Do I need to 'turn on' the serial port under Linux or would > it already be operational? I keep getting a Fail message when ever I try > to download the bin. The FTA receiver is set to receive files via the > serial port. Turning the receiver off and on and setting the unit to > receive via the serial port doesn't make any difference. > > Hopefully some one can help. > > John what you are trying to do will not help much. don't know how good wine works with serial devices, but you should configure wine to talk to your serial port (on linux) this would be /dev/ttyS[0-3] the serial should be configured properly (according doc of the device) I mean baud rate and so on (usually done with the setserial) you can capture all data on a serial line without wine too, unless you need a kind of windows app to talk to the device regards -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Which programming Language
On 02/09/2009 05:02 PM, Douglas A. Tutty wrote: On Mon, Feb 09, 2009 at 11:57:42PM +0200, Micha Feigin wrote: Just for the record, Fortran is very much alive and kicking. It's actually a wonderful language for mathematical work and HPC. It's just no longer a hype word. And I'm mostly talking about fortran 90/95. Fortran 77 is a bit archaic. I am hoping that a fortran 2008 compiler will come out soon and that has object oriented paradigms. Maybe part of the problem is the lack of a cheap/free/accessible compiler for windows as the intel compiler rather expensive, but HPC is much more linux/unix based anyway. I agree that Fortran is alive and kicking. I still have some Fortran77 Isn't it obvious to everyone that PL/I is the *only* language? -- Ron Johnson, Jr. Jefferson LA USA Supporting World Peace Through Nuclear Pacification -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Which programming Language
On Mon, Feb 09, 2009 at 11:57:42PM +0200, Micha Feigin wrote: > Just for the record, Fortran is very much alive and kicking. It's actually a > wonderful language for mathematical work and HPC. It's just no longer a hype > word. And I'm mostly talking about fortran 90/95. Fortran 77 is a bit archaic. > I am hoping that a fortran 2008 compiler will come out soon and that has > object > oriented paradigms. Maybe part of the problem is the lack of a > cheap/free/accessible compiler for windows as the intel compiler rather > expensive, but HPC is much more linux/unix based anyway. I agree that Fortran is alive and kicking. I still have some Fortran77 code. I'm sure there are still billions of lines of Fortran code running on older systems. In many engineering fields, the ability to do basic stuff with fortran77 was (is?) a basic job requirement simply because of all the legacy code out there. The numerical/HPC domain was also one considered when Ada was created. Think about computer modeling of the performance of a new submarine. (As a historical/literature note, in Tom Clancy's Hunt for Red October, Skip Taylor takes a submarine computer model, translates it into Ada for use on a Navy Cray, in order to predict the performance of the new Catepillar Drive on Red October). While Ada's run-time checks may cause some overhead, they can be turned off if you want. Since both Fortran and Ada are compiled with gcc's backend to object code, you can't really say that one language is better than the other for that domain. However, it could be possible that gcc is able to produce more efficient code for one language than the other. This would be the fault of the compiler rather than the language. Doug. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: device UUID versus /dev
Alex Samad wrote: > On Sun, Feb 08, 2009 at 08:51:12PM +0100, Abdelkader Belahcene wrote: >> Hi, >> >> What are the advantages by using >> drives are now identified by UUID >> over than /dev/xxx; > > you don't have to worry about ordering. I prefer to LABEL. that way it > doesn't matter what order the disks are found they always load up > properly. Be careful if you ever do a raw copy of a partition's data to another (e.g., to move a file system from one partition to another). Since file system UUIDs and labels are both written in the partition, right after the copy you'll have two partitions/file systems with the same UUID or label. Be sure to delete or zero out enough of the old partition before trying to re-mount the file system. Daniel -- (Plain text sometimes corrupted to HTML "courtesy" of Microsoft Exchange.) [F]
Re: /etc/issue still showing "Lenny" after upgrading to Sid...
Ok, I see. Thanks. On Mon, Feb 9, 2009 at 10:37 PM, Sven Joachim wrote: > On 2009-02-09 22:16 +0100, Carlos Parada wrote: > > > Hi, I've recently upgrading my Debian flavour from Testing to Unstable > but > > I'm still getting reference to Lenny: > > That should change in a few days when a new base-files package enters > sid. > > > car...@debian:~$ cat /etc/issue > > Debian GNU/Linux 5.0 \n \l > > > > car...@debian:~$ lsb_release -a > > No LSB modules are available. > > Distributor ID:Debian > > Description:Debian GNU/Linux 5.0 (lenny) > > Release:5.0 > > Codename:lenny > > It's a known issue, see http://bugs.debian.org/508772. If you're > relying on the output of lsb_release you can create an /etc/lsb-release > file like this (mine): > > --8<---cut here---start->8--- > DISTRIB_ID=Debian > DISTRIB_RELEASE=UNRELEASED > DISTRIB_CODENAME=sid > DISTRIB_DESCRIPTION="Debian GNU/Linux" > --8<---cut here---end--->8--- > > Otherwise it's mainly a cosmetic problem. > > Sven > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > >
Re: Which programming Language
On Mon, 9 Feb 2009 10:19:01 -0500 "Douglas A. Tutty" wrote: > On Sun, Feb 08, 2009 at 05:00:54PM -0600, Boyd Stephen Smith Jr. wrote: > > On Sunday 08 February 2009 11:04:42 Martin wrote: > > > On Sat, Feb 07, 2009 at 10:24:58PM -0600, Boyd Stephen Smith Jr. wrote: > > > > And C standard is one that leaves many features implementation > > > defined, unspecified or undefined! > > > > That's on purpose, for two reasons: (1) to support multiple competing > > implementations, (2) to document where implementations are allowed to > > differ so programmers can avoid them if they so choose. > > > > > y += y+++--y; > > > > This results in implementation-specific behavior since you are modifying a > > single variable twice with no sequence point in between. > > > > > printf("x=%d y=%d z=%d\n", x, y, z); > > > > More implementation-specific behavior as z has not be initialized. > > > > > Two compiler that I installed on Debian (gcc, tcc) gives different result. > > > > Different implementations are allowed to have different behavior in this > > case. It's not a flaw with the standard to support multiple > > implementations; it's a feature. If the programmer wants consistent > > results across implementations, they can avoid the constructs that the > > standard says have undefined or implementation-specific behavior. > > > The problem with implementation-specific stuff in C is that it is > allowed to varry so much from one implementation to another that you get > such unportable behaviour where this isn't technically necessary. > At least the example given two mails up is in my opinion and attempt to abuse an edge case in the standard. My experience is that with borderline sane programing readable code (at least to the point where it is maintainable) you don't really run into problematic contradictions in the standard (and I have some experience with dirty programming, to the point that a boss once told be to change gcc since it was giving a warning not to do something specified by operator precedence and he didn't like it) > This was addressed in the Ada standard. It says of the main langauge, > basically that all implementation have to do such-and-such. It then > says that there are optional things that every implementation doesn't > have to have, but if it chooses to have it, it has to be done in a > specific way. > > I really suggest that the OP read Understanding Programming Languages by > M. Ben-Ari. It is freely available on the internet (or I can email it, > its under 1 MB). It talks about programming lanagues in the abstract > and contrasts and compares C, C++, Ada, Java, and the more historical > languages where appropriate, such as FORTRAN, COBOL, Pascal, Smalltalk, > PL/1, etc. Just for the record, Fortran is very much alive and kicking. It's actually a wonderful language for mathematical work and HPC. It's just no longer a hype word. And I'm mostly talking about fortran 90/95. Fortran 77 is a bit archaic. I am hoping that a fortran 2008 compiler will come out soon and that has object oriented paradigms. Maybe part of the problem is the lack of a cheap/free/accessible compiler for windows as the intel compiler rather expensive, but HPC is much more linux/unix based anyway. > > Doug. > > -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Cloning methods
On Mon, Feb 09, 2009 at 08:24:49PM +0200, Dotan Cohen wrote: > > okay in my defence I didn't see the sig's and they were rather excessive > > > > But I though the email mail bits I left were relevant for contexts > > > > > > I suppose I could have given more info on the packages but I left that > > up the op. > > > > > > sounds like a visa/mastercard ad :) > > > > I didn't mean to pick on you, actually, your post was very helpful. none taken, just thought it sounded like a mastercard/visa ad, the one (atleast in my country), where $1000 on present, $200 on travel, 1 minute of pleasure on the baby faces, 10 days of pleasure with the box instead > > -- > Dotan Cohen > > http://what-is-what.com > http://gibberish.co.il > > א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת > ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-ي > А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я > а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я > ä-ö-ü-ß-Ä-Ö-Ü -- "We found the weapons of mass destruction. We found biological laboratories ... And we'll find more weapons as time goes on. But for those who say we haven't found the banned manufacturing devices or banned weapons, they're wrong, we found them." - George W. Bush 05/29/2003 Washington, DC in an interview with Polish television signature.asc Description: Digital signature
Re: /etc/issue still showing "Lenny" after upgrading to Sid...
On 2009-02-09 22:16 +0100, Carlos Parada wrote: > Hi, I've recently upgrading my Debian flavour from Testing to Unstable but > I'm still getting reference to Lenny: That should change in a few days when a new base-files package enters sid. > car...@debian:~$ cat /etc/issue > Debian GNU/Linux 5.0 \n \l > > car...@debian:~$ lsb_release -a > No LSB modules are available. > Distributor ID:Debian > Description:Debian GNU/Linux 5.0 (lenny) > Release:5.0 > Codename:lenny It's a known issue, see http://bugs.debian.org/508772. If you're relying on the output of lsb_release you can create an /etc/lsb-release file like this (mine): --8<---cut here---start->8--- DISTRIB_ID=Debian DISTRIB_RELEASE=UNRELEASED DISTRIB_CODENAME=sid DISTRIB_DESCRIPTION="Debian GNU/Linux" --8<---cut here---end--->8--- Otherwise it's mainly a cosmetic problem. Sven -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
/etc/issue still showing "Lenny" after upgrading to Sid...
Hi, I've recently upgrading my Debian flavour from Testing to Unstable but I'm still getting reference to Lenny: car...@debian:~$ cat /etc/issue Debian GNU/Linux 5.0 \n \l car...@debian:~$ lsb_release -a No LSB modules are available. Distributor ID:Debian Description:Debian GNU/Linux 5.0 (lenny) Release:5.0 Codename:lenny By the way, here is my sources.list in case it matters (obviously, I did an "aptitude update && aptitude dist-upgrade" after changing the file. car...@debian:~$ cat /etc/apt/sources.list # official sid deb http://ftp.es.debian.org/debian/ unstable main contrib non-free deb-src http://ftp.es.debian.org/debian/ unstable main contrib non-free # debian testing security #deb http://security.debian.org/ testing/updates main contrib non-free #deb-src http://security.debian.org/ testing/updates main contrib non-free # debian multimedia deb http://www.debian-multimedia.org/ unstable main deb-src http://www.debian-multimedia.org/ unstable main # opera deb http://deb.opera.com/opera/ unstable non-free # Compiz Fusion deb http://download.tuxfamily.org/shames/debian-sid/desktopfx/unstable/ ./ # Switfox deb http://getswiftfox.com/builds/debian unstable non-free Why is it showing that I'm using Lenny? Regards.
RE: Which programming Language
> From: Douglas A. Tutty [mailto:dtu...@vianet.ca] > Sent: Monday, February 09, 2009 9:19 AM > Subject: Re: Which programming Language > [snip] > I really suggest that the OP read Understanding Programming Languages by > M. Ben-Ari. It is freely available on the internet (or I can email it, > its under 1 MB). It talks about programming lanagues in the abstract > and contrasts and compares C, C++, Ada, Java, and the more historical > languages where appropriate, such as FORTRAN, COBOL, Pascal, Smalltalk, > PL/1, etc. > > Doug. This book piqued my interest. Just incase someone else wants it here is the link: http://www.computer-books.us/ada95_0008.php I got it from the wiki page of M. Ben-Ari. Though why it is compressed twice is beyond me. Have fun! ~Stack~ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Which programming Language
On Sun, Feb 08, 2009 at 05:00:54PM -0600, Boyd Stephen Smith Jr. wrote: > On Sunday 08 February 2009 11:04:42 Martin wrote: > > On Sat, Feb 07, 2009 at 10:24:58PM -0600, Boyd Stephen Smith Jr. wrote: > > And C standard is one that leaves many features implementation > > defined, unspecified or undefined! > > That's on purpose, for two reasons: (1) to support multiple competing > implementations, (2) to document where implementations are allowed to differ > so programmers can avoid them if they so choose. > > > y += y+++--y; > > This results in implementation-specific behavior since you are modifying a > single variable twice with no sequence point in between. > > > printf("x=%d y=%d z=%d\n", x, y, z); > > More implementation-specific behavior as z has not be initialized. > > > Two compiler that I installed on Debian (gcc, tcc) gives different result. > > Different implementations are allowed to have different behavior in this > case. > It's not a flaw with the standard to support multiple implementations; it's a > feature. If the programmer wants consistent results across implementations, > they can avoid the constructs that the standard says have undefined or > implementation-specific behavior. The problem with implementation-specific stuff in C is that it is allowed to varry so much from one implementation to another that you get such unportable behaviour where this isn't technically necessary. This was addressed in the Ada standard. It says of the main langauge, basically that all implementation have to do such-and-such. It then says that there are optional things that every implementation doesn't have to have, but if it chooses to have it, it has to be done in a specific way. I really suggest that the OP read Understanding Programming Languages by M. Ben-Ari. It is freely available on the internet (or I can email it, its under 1 MB). It talks about programming lanagues in the abstract and contrasts and compares C, C++, Ada, Java, and the more historical languages where appropriate, such as FORTRAN, COBOL, Pascal, Smalltalk, PL/1, etc. Doug. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Which programming Language
On Sun, Feb 08, 2009 at 05:17:33PM -0600, Boyd Stephen Smith Jr. wrote: > On Sunday 08 February 2009 12:14:20 Douglas A. Tutty wrote: > > Sure, C has ANSI (ISO) standards, but every compiler (including gcc) has > > extensions to it that one almost has to use to get things done. > > I disagree that you *have* to use compiler extensions. It takes discipline, > but it's possible to write without them. Most often it not compiler > extensions, but the need to use a non-standard library that gets me. > Standards can't cover every use case, and the C/C++ ones don't really cover > enough. > > Plus, it's not like Ada compilers can't have extensions. If an Ada compiler wants to have an extension and still pass the test as a certified Ada compiler, it has to do extenstions within the framework provided for in the standard. Doug. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Does anyone understand terminal job control?
On Sun, Feb 08, 2009 at 08:27:09PM -0800, Daniel Burrows wrote: > On Sun, Feb 08, 2009 at 07:58:51AM -0500, "Douglas A. Tutty" > was heard to say: > > Perhaps your controller program will have > > to be a filter between the process and the terminal: pipe its std-in an > > std-out to the controller process and the controller process issue the > > appropriate shell start/stop commands as necessary while leaving the > > process in the background the whole time. > > I thought about this option, but the problem is detecting when the > subprocess is trying to read (but I don't have anything to give it). > One interesting idea I got from the libc manual (but have yet to follow > up on) is to inject a VDSUSP character into the stream -- apparently > this will suspend the process, but only when the character is actually > read. I vaguely recall having some reason to think it might not work, > but it's worth at least trying. (as it happens, since I control the > terminal, I don't need a man in the middle to do this (I think) -- I > can just ask the terminal to send the character) > Wouldn't the process that is wanting to read from stdin from a user typically issue some sort of prompt for the user. If your controlling program wasn't there, how would the user know that input was requried? Can't you listen for that prompt? Doug. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Organizuem poezdku na boj Klichko v SH tuttgart
Внимание! Организуем поездку на бой Кличко против Гомеса (21 марта, Штуттгарт). Поддержи своего любимого спортсмена! КИев: 044~492~92~94 Штуттгарт (для групп и турфирм): +49~40~209~341~590 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Cloning methods
> okay in my defence I didn't see the sig's and they were rather excessive > > But I though the email mail bits I left were relevant for contexts > > > I suppose I could have given more info on the packages but I left that > up the op. > > > sounds like a visa/mastercard ad :) > I didn't mean to pick on you, actually, your post was very helpful. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-ي А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я ä-ö-ü-ß-Ä-Ö-Ü
Fresh lenny install and suspend to ram problems
Hello, I've just installed Lenny on my thinkpad T61 (model 6460).I am posting here because I've googled around and tried some things reported from people with similar issues,but I am starting to be stuck in a deadlock where I feel to just don't get the point of the situation. On my system all seems to work as expected (even suspend to disk), but I am facing problems with the suspend to ram feature. The problem is: if I suspend to ram the system(from the gnome power button) I have the system regularly suspended to ram (the t61 half-moon blinks showing that is going to sleep). It sleeps for two seconds and then it immediately resumes back, but it just fail to resume - I can hear the HD spin up and the fan starts to work but the half-moon doesn't blink and the screen remains black. At this point the keyboard doesn't seem to respond to any input or combination of key pressed, and all I can do is a an hard rebooting by keep pressed the power button. Now reading around (http://www.thinkwiki.org/wiki/Problems_with_ACPI_suspend-to-ram) I was able to isolate the first half of the problem: if I do : modprobe -r ehci_hcd and then I try to suspend, the system effectively suspend and sleeps well without any more resumes.I have tried to understand where lenny looks for modules to be rmmoded before actually suspend but I was not successfull, or better: around there is such confusion on the topic that I can't seem to understand which files or script gnome uses to make the system sleeps (acpi,hibernate.conf etc... googling get you a "babele" of different informations)...so if someone could be so kind to clear the situation and point me in the right direction would be very appreciated. After that still remains the second half of the problem: even if the system is suspended to ram, if I try to resume it back, I get again the over-mentioned problem: I can hear the HD spin up and the fan starts to work but the half-moon doesn't blink and the screen remains black.At this point the keyboard doesn't seem to respond. Some suggestions here would be really appreciated too. I should also add here that I have on the same thinkpad a Gutsy installation with suspend2ram working (but there I am using the nvidia binary drivers) while on lenny I guess I am using the X11 nv driver (even though I can't be able to check this because lsmod |grep nv does return only "nvram") - I have a nvidia quadro 140m on my thinkpad. Probably the resume problem is related to this difference of drivers. thank you -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: No-Script, was: Re: [OT] google earth 5.0
Ron Johnson wrote: > On 02/09/2009 02:19 AM, Adam Hardy wrote: >> Ron Johnson on 05/02/09 12:43, wrote: >>> On 02/05/2009 03:40 AM, Adam Hardy wrote: > [snip] On my old machine I couldn't run FF tolerably without No-script. >>> >>> Please expound. >> >> In terms of speed - with No-script disabled, the javascript on many >> websites causes FF to lock up completely for 10, 20 or even 30 seconds >> (and without even displaying anything to read). > > Really? How old of a machine? > I can give one example: in Icepae (Debian Testing) it takes around 30 seconds to get Slashdot page loaded partially when Iceape then tells me that the web page has a script running that is taking a bit too long. I then tell noscript to stop that script. End result, around 30 seconds to load this web page. This is on a 1.9 GHz Intel Pentium 4 processor, 1.25 GB RAM. On a newer machine that web page loads within some seconds, around 5 or so if I am not wrong. ->HS -- Please reply to this list only. I read this list on its corresponding newsgroup on gmane.org. Replies sent to my email address are just filtered to a folder in my mailbox and get periodically deleted without ever having been read. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Fwd: ogg quality problem with ffmpeg
> The internal ffmpeg vorbis encoder is about the simplest possible > encoder that produces working output. It sounds terrible compared to > the reference encoder, as you saw with your own comparison. On > a typical musical input the ffmpeg encoder set to 128k produces > quality which is obviously worse than libvorbis at 32kbit/sec. What makes you wonder: why keep it? Stefan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Fwd: mount foo.img problem
On Sat, Feb 7, 2009 at 11:52 PM, Aneurin Price wrote: > On Sat, Feb 7, 2009 at 10:24 PM, Thomas H. George > wrote: >> On Sat, Feb 07, 2009 at 03:28:20PM -0600, Boyd Stephen Smith Jr. wrote: >>> On Saturday 07 February 2009 13:37:46 Thomas H. George wrote: >>> > On Sat, Feb 07, 2009 at 10:44:47AM -0600, Boyd Stephen Smith Jr. wrote: >>> > > On Saturday 07 February 2009 10:31:17 Thomas H. George wrote: >>> > > > What must I do to be able to mount this image file? >>> > > Could you run "file debxo-awesome.ext3.img" can provide the output? >>> > dragon:/data/olpc# file debxo-awesome.ext3.img >>> > debxo-awesome.ext3.img: x86 boot sector; partition 1: ID=0x83, active, >>> > starthead 1, startsector 32, 3848160 sectors dragon:/data/olpc# exit >>> >>> It looks like it is a whole-disk image -- the first part of it appears to be >>> an MBR. You'll need to use some loopback parameters to skip the MBR and >>> partition table. I think you only need to skip 512 bytes... could you try: >>> tail -c +513 debxo-awesome.ext3.img | file - >>> and see if that reports that it found an ext3 filesystem. >> >> >> Script started on Sat 07 Feb 2009 05:14:12 PM EST >> dragon:/data/olpc# tail -c +513 debxo-awesome.ext3.img | file - >> /dev/stdin: GRand Unified Bootloader stage1_5 version 3.2, identifier 0x2, >> GRUB version 0.97, configuration file \377 >> dragon:/data/olpc# exit >> >> Script done on Sat 07 Feb 2009 05:15:09 PM EST >> >> So I tried >> >> >> Script started on Sat 07 Feb 2009 05:20:59 PM EST >> dragon:/data/olpc# mount -o loop.offset=512 -t ext3 debxo-awesome.ext3.img >> /medi a/sdloop >> mount: /data/olpc/debxo-awesome.ext3.img is not a block device (maybe try >> `-o loop'?) >> dragon:/data/olpc# exit >> >> which seemed to be what the Debian Reference suggested but I guess this >> is not quite right. >> >> Script done on Sat 07 Feb 2009 05:21:57 PM EST >>> >>> > The image was meant to be transfered to a USB device but the >>> > instructions said that if the device was less than 2 Gb it could be loop >>> > mounted as ext3 in order to copy the guts of the image to a smaller USB >>> > device. >>> >>> It can be, but in this case it's not as simple as just using the loop mount >>> option, unfortunately. You'll probably need just the additional offset >>> option. Once we find the offset, things should be "easy"; although, after >>> you >>> move the files over, you'll also want to dd the MBR over as well. > > You could try a slightly more heavy-handed approach: > > for ((i=0 ; $i < 1 ; i=$i + 1)) ; do >mount -o loop,offset=$(($i * 512)) debxo-awesome.ext3.img > /media/sdloop && break > done > > You might even be able to use fdisk on the image to get some more information, > but I don't know about that. > Actually, give this a go: mount -o loop,offset=16384 debxo-awesome.ext3.img /media/sdloop -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
RE: Cloning methods
> -Original Message- > From: Eduardo M KALINOWSKI [mailto:edua...@kalinowski.com.br] > Sent: Saturday, February 07, 2009 2:06 PM > Subject: Re: Cloning methods > > Nagy Daniel wrote: > > Hi, again :) :S > > > > What's the best method for cloning a partition? [searching for an > > open-source software alternateive for it :P] > > I mean cloning like in norton ghost, a program that could "leave" bad > > blocks behind, when cloning, and not making a 10 GByte output file > > [like the partition size is], but just a eg.: a 3 GByte file [because > > 3 GByte was used in that partition, all other 7 GByte was free]? > > [The main goal is to install os on eg.: 15 computers, but only with > > one physically install in the "reality"] > > > > You may want to take a look at the partimage program. I will second partimage. Many years ago I dealt with a cluster that had another OS (I can not convey my hatred for that system; there simply are not enough words to do so). As you can guess, we had many problems with it. Anyway, there was a known issue at the time where a "ghost" process would start on the nodes (last I checked, still no answer for why; just something in the OS would suck CPU and memory). The "ghost" process would run the resources to the ground and blue screen. More often then not this would make the system blue screen on every startup after and the installation was unusable. This would mean HOURS of rebuild time as we install the OS, run updates, restart, install service packs, restart, updates, restarts, updates, restarts, updates, ect... It took a lot of work but we eventually setup a partimage server with a perfect clone of the other OS partition. We then setup the drives on the nodes with GRUB, the other OS, and a 1GB partition of Linux that would autorun the partimage script. So whenever we had a node go down, we reboot the node, select the Linux partition, and then forget about it. The partimage script would wipe the other OS partition, put a fresh image on the partition, then reboot into the other OS. The benefits, besides not wasting a day rebuilding a node, were that we could update the one image with updates/software and it only took about 1.5 hrs for partimage to run on each of the nodes. This saved us so much time it isn't even funny. It made dealing with the randomly killed nodes much less stressful as my day didn't start off with "Oh jeez, I wonder how many installs will waste away my life today" and replaced it with a 20 minute morning check that consisted of "Blue screen? Reboot. Boot Linux. Next!" For this reason, I will always hold a debt of gratitude to partimage. It is easy to use and the partimage server can be setup to hold a variety of images and stream the images over the LAN. If you are dealing with a large amount of systems that you want cloned from a single source, you should really look into partimage. Have fun! ~Stack~ PS: No, I don't have access to that cluster anymore. That problem was not the only one it had. Top 5 maybe, but I don't think it was the worst. I have many more horror stories on that POS. The first chance we got we destroyed that waste of time, space, and energy. Before management could think "well maybe we shouldn't" it was already too late as we didn't hesitate in wiping it. It was updated with Rocks Cluster Linux and made useful! :-) However, if you are in need of help with setting up a similar situation, let me know. It has been a while, but considering how well I knew the setup back then, I should be able to recreate it. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Load does not distributes per CPU cores
Hello All, I have one box with CPU "Intel(R) Core(TM)2 Quad CPUQ6600 @ 2.40GHz" Fresh installation with Etch amd64, kernel 2.6.26-core2-amd64 (backport) The problem consist that load do not distributes per CPU cores . In time when first core loaded 100 % (0% idle), other cores have load approx. 13% (87% idle). Type of load -- PPPoE sessions termination (>1000) + mysql. Interrupts do not distribute per CPU cores as well ! server:/# cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 0: 36 0 0 0 IO-APIC-edge timer 1: 8 0 0 0 IO-APIC-edge i8042 8: 1 0 0 0 IO-APIC-edge rtc0 9: 0 0 0 0 IO-APIC-fasteoi acpi 16: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb4, ahci 17: 76 0 0 0 IO-APIC-fasteoi ide0, ide1 18: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb3 19: 44641518 0 0 0 IO-APIC-fasteoi uhci_hcd:usb2, ata_piix, ata_piix, eth1 21: 46246974422 0 0 IO-APIC-fasteoi eth3 22:193 0 0 0 IO-APIC-fasteoi HDA Intel 23: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb1, ehci_hcd:usb5 1273: 2290156220 0 0 0 PCI-MSI-edge eth0 1274: 532003458 0 0 0 PCI-MSI-edge eth2 NMI: 0 0 0 0 Non-maskable interrupts LOC: 3499690657 101451884 83962573 76629102 Local timer interrupts RES: 16526462 16022276 16402552 16051127 Rescheduling interrupts CAL: 43627 42308 35745 38946 function call interrupts TLB:3551429324446420948092700859 TLB shootdowns TRM: 0 0 0 0 Thermal event interrupts THR: 0 0 0 0 Threshold APIC interrupts SPU: 0 0 0 0 Spurious interrupts ERR: 0 server:/# I have one more box with more fresh hardware. There is no such kind of problem and all works very well with exactly same installation of Etch: server:/# ssh u...@server2 'cat /proc/interrupts' CPU0 CPU1 CPU2 CPU3 0: 1997 1973 1976 1987 IO-APIC-edge timer 1: 1 0 1 0 IO-APIC-edge i8042 8: 0 1 0 0 IO-APIC-edge rtc0 9: 0 0 0 0 IO-APIC-fasteoi acpi 12: 2 0 0 2 IO-APIC-edge i8042 16: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb1 18: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb3, ehci_hcd:usb5, uhci_hcd:usb7 19: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb6, ide0, ide1 21: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb2 23: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb4, ehci_hcd:usb8 1272: 160723401 160486121 160786676 160502068 PCI-MSI-edge eth2 1273: 635355568 636393198 635203303 636454623 PCI-MSI-edge eth1 1274: 290877702 290021095 290952980 289980421 PCI-MSI-edge eth0 1275: 19917870 19824531 19928985 19818790 PCI-MSI-edge ahci NMI: 0 0 0 0 Non-maskable interrupts LOC: 597673455 593601582 581710941 578993322 Local timer interrupts RES:2040904195686123632432485440 Rescheduling interrupts CAL: 81397 78067 75621 76000 function call interrupts TLB:1874481303981217126942825544 TLB shootdowns TRM: 0 0 0 0 Thermal event interrupts THR: 0 0 0 0 Threshold APIC interrupts SPU: 0 0 0 0 Spurious interrupts ERR: 0 server:/# First box has following hardware: Manufacturer: ASUSTeK Computer INC. Product Name: P5B-Premium Version: Rev 1.xx Serial Number: MB-1234567890 TOP on the first box: Cpu0 : 1.0%us, 0.3%sy, 0.0%ni, 80.7%id, 0.0%wa, 2.7%hi, 15.3%si, 0.0%st Cpu1 : 0.3%us, 1.3%sy, 0.0%ni, 98.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu2 : 0.6%us, 0.6%sy, 0.0%ni, 98.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu3 : 1.6%us, 0.6%sy, 0.0%ni, 97.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st iostat on the first box: avg-cpu: %user %nice %system %iowait %steal %idle 2,980,006,930,280,00 89,80 Device:tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn sda 32,1618,14 690,07 10957688 416916080 sda1 32,1618,1
Re: No-Script, was: Re: [OT] google earth 5.0
On 02/09/2009 02:19 AM, Adam Hardy wrote: Ron Johnson on 05/02/09 12:43, wrote: On 02/05/2009 03:40 AM, Adam Hardy wrote: [snip] On my old machine I couldn't run FF tolerably without No-script. Please expound. In terms of speed - with No-script disabled, the javascript on many websites causes FF to lock up completely for 10, 20 or even 30 seconds (and without even displaying anything to read). Really? How old of a machine? -- Ron Johnson, Jr. Jefferson LA USA Supporting World Peace Through Nuclear Pacification -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Which programming Language
> Standards can't cover every use case, and the C/C++ ones don't really cover > enough. They're a work in progress. The STL is already included in the standard and most likely the Boost libraries will be part of C++0x. Nuno Magalhães -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: No-Script, was: Re: [OT] google earth 5.0
Ron Johnson on 05/02/09 12:43, wrote: On 02/05/2009 03:40 AM, Adam Hardy wrote: Paul Cartwright on 03/02/09 12:42, wrote: On Tue February 3 2009, Ron Johnson wrote: That page never shows up although NoScript has the permissions set, it is related to that, because as another user who does not have the NoScript plugin the page *did* show up. Aggravations like this are why I deinstalled NoScript on my Linux box. (ABP and Flashblock are trusted friends, though.) I would have to second that motion.. I used to use No-script, but it just got inthe way more than it helped.. sites that I NEED to get to on a regular basis were just to hard to deal with. On my old machine I couldn't run FF tolerably without No-script. Please expound. In terms of speed - with No-script disabled, the javascript on many websites causes FF to lock up completely for 10, 20 or even 30 seconds (and without even displaying anything to read). I don't have javascript allowed for more than a couple of websites by default. I often have to allow it to do certain things, but then disallow it again afterwards to get the page load time back down. The downside of course is all the dumb websites which have programmed html forms to submit using javascript - totally unnecessary. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org