Re: netcfg
Regarding ip calculations. The main formula for ip calculations is: nna = nip nsm; /* numeric network addr. = numeric ip bitwise and numeric subnetmask */ nbc = nip | ~nsm; /* -"-broadcast addr. = -"- -"- or bitwise inverse of -"- -"- */ You can try my ipcalc (source below). $ ~/sw/prg/c/ipcalc Usage: /home/karl/sw/prg/c/ipcalc [opt] ip.nr/netmask /home/karl/sw/prg/c/ipcalc [opt] ip.nr subnetmask Synopsis: without [opt], will print out the network address, ip.nr, broadcast address, subnet mask and cidr opt = -i, used with ifconfig opt = -r, used with route Examples: $ /home/karl/sw/prg/c/ipcalc 192.168.3.34/24 192.168.3.0 192.168.3.255 $ /home/karl/sw/prg/c/ipcalc 192.168.3.34 255.255.255.0 192.168.3.0 192.168.3.255 # ifconfig eth0 `/home/karl/sw/prg/c/ipcalc -i 192.263.3.35/27` # route add `/home/karl/sw/prg/c/ipcalc -i 192.263.3.35/27` $ ~/sw/prg/c/ipcalc 192.168.93.22 255.255.255.224 192.168.93.0 192.168.93.22 192.168.93.31 255.255.255.224 27 $ ~/sw/prg/c/ipcalc 192.168.93.22/27 192.168.93.0 192.168.93.22 192.168.93.31 255.255.255.224 27 # ~karl/sw/prg/c/ipcalc -i 192.168.92.24/24 192.168.92.24 netmask 255.255.255.0 broadcast 192.168.92.255 # ~karl/sw/prg/c/ipcalc -r 192.168.92.24/25 -net 192.168.92.0 netmask 255.255.255.128 # ifconfig eth0 `~karl/sw/prg/c/ipcalc -i 192.168.92.24/25` # ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:C0:F0:57:BE:82 inet addr:192.168.92.24 Bcast:192.168.92.127 Mask:255.255.255.128 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:31 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 Interrupt:9 Base address:0xa700 # Regards, /Karl --- Karl HammarAspö Data [EMAIL PROTECTED] Lilla Aspö 2340 +46 173 140 57Networks S-742 94 Östhammar +46 70 511 97 84 Computers Sweden Consulting --- From: Joey Hess [EMAIL PROTECTED] Subject: Re: netcfg Date: Thu, 7 Dec 2000 21:45:57 -0800 David Whedon wrote: I'm starting to look at network configuration. I'm using dbootstrap/netconfig.c as a guide, debconf'ing the messages to start. I hope you're not actually copying the code twitch, just the flow. I have a little debconf C client library that makes it fairly painless to telk to debconf from C, you can use things like this: debconf_command("TITLE", "This is my little peice of debian-installer", NULL); debconf_command("INPUT", "medium", "foo/bar", NULL); debconf_command("GO", NULL); debconf_command("GET", "foo/bar", NULL); if (strcmp(debconf_ret, "true") == 0) { /* yes, do foo/bar */ } debconf.{c,h} are currently scattered accross the d-i tree; I intend to move them into a library that we can link to (shared/static I dunno) soon, as the current situation is ridiculous. I figure this is a good place to start. Other than autodetection and giving the user the option of answering fewer questions, is there anything new people are looking for in the network setup? Anything from the current installer that was a problem in the past? It's always seemed pretty well done to me. I like how it calculates the third value from the first two. Anyone who understands networking or has the appropriate numbers on paper can use it pretty well. We might want to toss in a dotted-quad data type into cdebconf (and perhaps debconf itself too) to facilitate entering IPs, I don't really know. In any case, I'm sort of claiming the network setup, Great. It definitly needs to be done soon. Are you going to do just the manual setup, leave dhcp for later? They should be seperate packages unless they wind up sharing tons of code and being rather small. -- see shy jo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] /** Copyright: Karl Hammar, Aspö Data ** Copyright terms: GPL **/ #include stdio.h #include string.h #include ctype.h #include stdlib.h #include unistd.h typedef unsigned char u8; typedef unsigned short u16; typedef unsigned int u32; /*typedef unsigned long long u64;*/ int Usage(char *cmd); int parse1( u32 *nip, u32 *nsm, int *cidr, char *str); int parse2( u32 *nip, u32 *nsm, int *cidr, char *ip, char *sm); int mksm( u32 *sm, long int cidr); char * dot2num( u32 *num, char *dot); void num2dot( u32 num, char *dot); u32 tab[] = { 0x, /* 0 */ 0x8000, /* 1 */ 0xC000, /* 2 */ 0xE000, /* 3 */
Bug#79004: SPARC/Potato] 'Wrong disk' message even though correct disk in drive
Quoting Adam Di Carlo [EMAIL PROTECTED]: You said the message was: Wrong disk! This is disk 1 of 2 in the drv14-sun4cdm series of 27-Nov-2000 13:18 EST. Wrong disk. This is from series drv14-sun4cdm. You need disk 1 of series the driver series. However, that's not possible that that was the message, looking at the code. I need the literal message that was printed. The output should also be in /var/log/messages, if you are able to cat that to a floppy and copy it over. Well, that IS the (exact!) literal message that I got. I tripple checked it... The 'drv14-sun4cdm' and the '27-Nov-2000 13:18 EST' it gets from the disk. But where it gets 'series the driver series' from I have no idea.. -- Panama ammonium toluene Saddam Hussein genetic terrorist SEAL Team 6 nuclear kibo BATF Ft. Bragg Clinton PLO assassination Cuba [See http://www.aclu.org/echelonwatch/index.html for more about this] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#79004: SPARC/Potato] 'Wrong disk' message even though correct disk in drive
On Fri, Dec 08, 2000 at 03:57:40PM +0100, Turbo Fredriksson wrote: Quoting Adam Di Carlo [EMAIL PROTECTED]: You said the message was: Wrong disk! This is disk 1 of 2 in the drv14-sun4cdm series of 27-Nov-2000 13:18 EST. Wrong disk. This is from series drv14-sun4cdm. You need disk 1 of series the driver series. However, that's not possible that that was the message, looking at the code. I need the literal message that was printed. The output should also be in /var/log/messages, if you are able to cat that to a floppy and copy it over. Well, that IS the (exact!) literal message that I got. I tripple checked it... The 'drv14-sun4cdm' and the '27-Nov-2000 13:18 EST' it gets from the disk. But where it gets 'series the driver series' from I have no idea.. Adam, could this have to do with the fact that sparc only has one driver image, and not multiple? -- ---===-=-==-=---==-=-- / Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \ ` [EMAIL PROTECTED] -- [EMAIL PROTECTED] -- [EMAIL PROTECTED] ' `---=--===-=-=-=-===-==---=--=---' -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: debian-installer demo system, take 2
On Fri Dec 08, 2000 at 03:28:51PM +0800, ha shao wrote: Maybe let the user choose continent first and then countries. Such a big list really make a user pulse for a big while. This is a very good idea. -Erik -- Erik B. Andersen email: [EMAIL PROTECTED] --This message was written using 73% post-consumer electrons-- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Debian Boot CVS: tale
CVSROOT:/cvs/debian-boot Module name:boot-floppies Changes by: tale00/12/08 10:43:24 Modified files: utilities/dbootstrap/po: fi.po Log message: 59 fuzzy ones still left, should be no newline inconsistensies -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
bug with whiptail
While installing a new system I noticed that the way whiptail is highliting buttons is not quite intuitive. At the moment only red/blue shows that you've selected "yes" or "no", that is confusing especially if the default is "yes" for some questions and "no" for some others, while "yes" is always the left button. I.e. one hits tab to change the selection and by accident selects the wrong item without noticing. It would be good if [] could be added to the button when selected, thus you'll have [Yes] and No for example. Regards, Joey -- All language designers are arrogant. Goes with the territory... -- Larry Wall -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#79004: SPARC/Potato] 'Wrong disk' message even though correct disk in drive
Ben Collins [EMAIL PROTECTED] writes: Adam, could this have to do with the fact that sparc only has one driver image, and not multiple? No, I repeat, no. Both the compact and idepci flavors work and have only one driver disk. -- .Adam Di [EMAIL PROTECTED]URL:http://www.onShore.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Processed: reassign, hmmmm Re: Bug#79092: boot problem
Processing commands for [EMAIL PROTECTED]: reassign 79092 boot-floppies Bug#79092: boot problem Bug reassigned from package `boot -cd' to `boot-floppies'. -- Stopping processing here. Please contact me if you need assistance. Darren Benham (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: debian-installer demo system, take 2a
In reference to a message from Joey Hess, dated Dec 07: Here is another debian-installer demo system. It still needs a real debian system and doesn't chroot, nor does it even use cdebconf although it probably could. But it is rather more impressive than the last one: Here's the cdebconf version :-) samwise[21:42] demo% du -sh 276k. [ Not too big, I hope compresses to about 40k ] samwise[21:42] demo% find . ./var ./var/lib ./var/lib/dpkg ./var/lib/dpkg/info ./var/lib/dpkg/info/udpkg.list ./var/lib/dpkg/info/main-menu.list ./var/lib/dpkg/info/main-menu.postrm ./var/lib/dpkg/info/main-menu.templates ./var/lib/dpkg/info/wget-retriever.list ./var/lib/dpkg/info/choose-mirror.list ./var/lib/dpkg/info/choose-mirror.postrm ./var/lib/dpkg/info/choose-mirror.postinst ./var/lib/dpkg/info/anna.list ./var/lib/dpkg/info/anna.postrm ./var/lib/dpkg/info/anna.templates ./var/lib/dpkg/info/anna.postinst ./var/lib/dpkg/info/choose-mirror.templates ./var/lib/dpkg/status ./var/lib/cdebconf ./var/lib/cdebconf/templates ./var/lib/cdebconf/questions ./var/cache ./var/cache/anna ./usr ./usr/bin ./usr/bin/udpkg ./usr/bin/anna ./usr/bin/choose-mirror ./usr/bin/main-menu ./usr/bin/dpkg-reconfigure ./usr/bin/debconf ./usr/bin/debconf-loadtemplate ./usr/lib ./usr/lib/debian-installer ./usr/lib/debian-installer/retriever ./usr/lib/debian-installer/retriever/wget-retriever ./usr/lib/cdebconf ./usr/lib/cdebconf/db ./usr/lib/cdebconf/db/textdb.so ./usr/lib/cdebconf/frontend ./usr/lib/cdebconf/frontend/text.so ./usr/lib/libdebconf.so.0.1.0 ./usr/lib/libdebconf.so.0.1 ./usr/lib/libdebconf.so ./usr/share ./usr/share/debconf ./usr/share/debconf/confmodule ./usr/share/debconf/frontend ./etc ./etc/debconf.conf samwise[21:43] demo% LD_LIBRARY_PATH=usr/lib usr/bin/debconf-loadtemplate \ var/lib/dpkg/info/*.templates samwise[21:43] demo% LD_LIBRARY_PATH=usr/lib PATH=usr/bin:$PATH \ usr/share/debconf/frontend usr/bin/main-menu [ using the text ui, not very polished right now, and the titles are not set correctly. also, it doesn't optimize away single selects like perl debconf does, but that's easily changed ] Configuring main-menu = Choose the next step: Here is the main menu of the Debian installer. 1) Finish setting up the Debian installer 1 - 1 1 Choose == Use a mirror from what country? The goal is to find a mirror that is close to you on the network -- be aware that near countries, or even your own, may not be the best choice. 1) Australia 2) Austria 3) Belgium 4) Brazil 5) Britain (UK) 6) Bulgaria 7) Canada 8) China 9) Costa Rica 10) Croatia 11) Czech Republic 12) Denmark 13) Estonia 14) Finland 15) France 16) Germany 17) Greece 18) Hong Kong 19) Hungary 20) Indonesia 21) Ireland 22) Italy 23) Japan 24) Korea (South) 25) Latvia 26) Mexico 27) Netherlands 28) New Zealand 29) Norway 30) Poland 31) Portugal 32) Russia 33) Slovakia 34) Slovenia 35) South Africa 36) Spain 37) Sweden 38) Switzerland 39) Taiwan 40) Turkey 41) United States 42) enter information manually 1 - 42 [default = 41] Choose == Choose the Debian mirror to use: Select the mirror Debian will be downloaded from. You should select a mirror that is close to you on the net. 1) http.us.debian.org 2) ftp.eecs.umich.edu 3) llug.sep.bnl.gov 4) ftp.debian.org 5) ftp-mirror.internap.com 6) debian.uchicago.edu 7) ftp.us.debian.org 8) debian.tod.net 9) lyre.mit.edu 10) mirrors.xmission.com 11) download.sourceforge.net 12) ftp.kernel.org 13) sunsite.unc.edu 14) ftp.cerias.purdue.edu 15) debian.fifi.org 16) mirrors.rcn.net 17) debian.gnaps.com 18) ftp.keystealth.org 19) debian.bilow.com 20) natasha.stmarytx.edu 21) ftp.digex.net 22) debian.lrlug.org 23) ftp.tux.org 1 - 23 [default = 1] Enter http proxy information, or leave blank for none: If you need to use a http proxy to access the outside world, enter the proxy information here. Otherwise, leave this blank. When entering proxy information, use the standard form of "http://[[user][:pass]@]host[:port]/" http://samwise.tausq.org:3128/ [ pause ... ] Choose == Choose the next step: Here is the main menu of the Debian installer. 1) autodetection of ethernet cards 2) Finish setting up the Debian installer 1 - 2 1 [ ctrl - c ] samwise[21:44] demo% find usr/bin usr/bin usr/bin/udpkg usr/bin/anna usr/bin/choose-mirror usr/bin/main-menu usr/bin/dpkg-reconfigure usr/bin/debconf usr/bin/debconf-loadtemplate usr/bin/memdetect usr/bin/mdmdetect usr/bin/ethdetect usr/bin/diskdetect usr/bin/cpudetect usr/bin/cddetect demo2a can be found at: http://people.debian.org/~tausq/debian-installer/demo2a.tar.gz cdebconf actually also has a ncurses frontend in the works. (it configures debconf (the perl one) even :-), but it only handles a subset of the question types now so i've not used it in this demo run. randolph -- Debian Developer [EMAIL PROTECTED] http://www.TauSq.org/ --
Re: debian-installer demo system, take 2a
On Fri Dec 08, 2000 at 09:51:47PM -0700, Randolph Chung wrote: In reference to a message from Joey Hess, dated Dec 07: Here is another debian-installer demo system. It still needs a real debian system and doesn't chroot, nor does it even use cdebconf although it probably could. But it is rather more impressive than the last one: Here's the cdebconf version :-) samwise[21:42] demo% du -sh 276k . Hmm. Is that stripped? -Erik -- Erik B. Andersen email: [EMAIL PROTECTED] --This message was written using 73% post-consumer electrons-- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: debian-installer demo system, take 2a
Randolph Chung wrote: In reference to a message from Joey Hess, dated Dec 07: Here is another debian-installer demo system. It still needs a real debian system and doesn't chroot, nor does it even use cdebconf although it probably could. But it is rather more impressive than the last one: Here's the cdebconf version :-) Too cool. :-) I think I'll have a fully chrooted version before too long, the only current known holdup is that busybox wget needs a -q switch to shut it up. samwise[21:42] demo% du -sh 276k . [ Not too big, I hope compresses to about 40k ] It's getting a leetle bit big, but once we have the full chrooted one we can really start pondering that. -- see shy jo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
the locale other than language name on boot floppy
Hi there, Can we use 'zh_CN', 'zh_TW' instead of 'zh' to label a translation? This is kinda long, please bear with me. :-) We are in the process of translating the boot floppy into Chinese. There are a special thing for Chinese language. We currently have 2 widely used charset/encoding for Chinese(Big5/GB2312). The Big5 corresponds to traditional Chinese characters used in taiwan and hongkong. The GB2312 corresponds to simplified Chinese used in mainland china, singapore... The simplified Chinese is made out of the traditional Chinese by reducing some strokes in a glyph or combining several similar glyphs into one. People use different charsets often has quite difference Culture and expression. And of course the glyphs sometime look different. So even for Chinese, a user can only guess the meaning of some sentences, words written by people using the different charset. Since both Big5/GB2312 (ie. traditional and simplified Chinese) have mappings in the unicode, he can read all right but just have to guess in order to make the meaning out of the sentences. Since one of the purpose of localization is to make user experience pleasant, we would like to provide users using different charset with different sets of translation. The problem is that the boot floppy currently only look for the 2 character language code (which is 'zh' for Chinese). We want to use zh_CN and zh_TW for simplified and tradtional Chinese respectly. And our pot file will looks like zh_TW.po and zh_CN.po, as the same as most other Chinese localized applications. Are there anything need to be changed in the boot floppy source codes to allow this kind of thing? Or we can just use zh_CN/zh_TW instead of zh and the thing just works? Thank for your advice. -- Best regard hashao -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Debian Boot CVS: dwhedon
CVSROOT:/cvs/debian-boot Module name:debian-installer Changes by: dwhedon 00/12/08 22:45:30 Modified files: tools/netcfg : netcfg.c tools/netcfg/debian: templates Added files: tools/netcfg : Makefile TODO debconf.c debconf.h tools/netcfg/debian: changelog control copyright rules Log message: Works now, asks a few questions through debconf, then write etc/network/interfaces. Still incomplete, but it builds and can be played with. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Debian Boot CVS: joeyh
CVSROOT:/cvs/debian-boot Module name:debian-installer Changes by: joeyh 00/12/08 23:05:56 Modified files: doc: TODO Log message: we're moving along fast; status updates -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Debian Boot CVS: tausq
CVSROOT:/cvs/debian-boot Module name:debian-installer Changes by: tausq 00/12/08 23:19:11 Modified files: tools/cdebconf/src: makefile.in strutl.c tools/cdebconf/src/test: test.templates Added files: tools/cdebconf/src: debconfclient.c debconfclient.h Log message: strutl.c - fixed the splitchoices function to strip trailing spaces added debconf client support code -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
debconf client support in cdebconf
Since there are a few copies of debconf.[ch] appearing in debian-installer cvs, i've added debconf-client support code to libdebconf (cdebconf) so we don't duplicate it too much. the API is pretty simple: #include debconfclient.h struct debconfclient *client = debconfclient_new(); client-command(client, "INPUT", "low", "foo/bar", NULL); myvar = client-value; (or myvar = client-ret(client); ) /* ... */ debconfclient_delete(client); to compile the library, go to tools/cdebconf, and do ./configure; make add -I(path to tools/cdebconf/src) to your makefile for now, and -L(path) -ldebconf to link. By default libdebconf is built with a rpath set to the path where cdebconf is, so you don't need to set LD_LIBRARY_PATH. If you don't want that you can set --without-rpath when you build cdebconf I'll make a -dev package for cdebconf at some point, but it's moving too fast now and the API may change from time to time. randolph -- Debian Developer [EMAIL PROTECTED] http://www.TauSq.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: typo in extract_kernel.c?
On Sat, Dec 09, 2000 at 03:45:08PM +0800, [EMAIL PROTECTED] wrote: What is this: #: extract_kernel.c:101 msgid "from floppy images on mounted medium ..." s/on/to/ ? Oops, I got it. No typo. -- Best regard hashao -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Debian Boot CVS: tausq
CVSROOT:/cvs/debian-boot Module name:debian-installer Changes by: tausq 00/12/08 23:52:16 Modified files: tools/cdebconf/doc: coding.txt design.txt Added files: tools/cdebconf/doc: confmodule.txt modules.txt Log message: Some documentation updates -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]