Thread: [LIH]My exp. with Knoppix 3.1
Linux India has been formed for Foster the growth of Linux in India
Brought to you by:
manojmishra,
raju
From: Manish J. <man...@or...> - 2003-04-23 05:54:55
|
I tried out Knoppix 3.1 last night. At first I was amazed to see this thing. It's bloody DAMN COOL! Wow! GNU/Linux never looked so good. ======== Some questions I had: 1) How do I tell it to always use my local fat32 parition for the knoppix user's home dir? I can modify knoppix's home dir in /etc/passwd but the local fat32 is only writeable by root. For now, I'm letting it use the ramdisk. Before shutdown, I tar the home dir to my local partition. When I boot into it again, I untar it back. I have to do this manually each time. 2) The timezone is CEST (whatever that is) by default. To set it to Asia/Calcutta (IST), I run tzconfig. I have to do this each time I boot into Knoppix :( How can I set the timezone by simply updating some file(s)? At least then I can add it to my personal startup script. 3) When I start X, KDE makes a sound--something like "Starting your system". I don't want to hear that. Can I disable sound on the boot prompt or sometime after booting into runlevel 2? 4) If I leave the system on for a while, the network stops working. After that point I'm unable to access the network. I have to reboot. I believe I can try turning off the "power save" option, if at all there's one. Just wildly guessing. 5) I telnet to another linux machine and work over there. But if I start a GUI app, it's unable to connect to my X server. The GUI app (say, xterm) never comes up. ======== Any help. -Manish -- "The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation." |
From: USM B. <us...@hc...> - 2003-04-24 18:21:54
|
On Wed, Apr 23, 2003 at 11:11:24AM +0530, Manish Jethani wrote: > [snipped] > > 1) How do I tell it to always use my local fat32 parition for > the knoppix user's home dir? I can modify knoppix's home dir in > /etc/passwd but the local fat32 is only writeable by root. Knoppix is designed to run off the CD. The writeable stuff like /home, /tmp, /var etc runs from ramdrive ... Since /etc is within the CD, you cannot finger arround with /etc/fstab, so this is not going to be easy to modify on a permanent basis, untill you inst- all knoppix on the hard disk. > > For now, I'm letting it use the ramdisk. Before shutdown, I tar > the home dir to my local partition. When I boot into it again, > I untar it back. I have to do this manually each time. Yes. That is about all that is catered for here. > > 2) The timezone is CEST (whatever that is) by default. To set > it to Asia/Calcutta (IST), I run tzconfig. I have to do this > each time I boot into Knoppix :( How can I set the timezone by > simply updating some file(s)? At least then I can add it to my > personal startup script. cat /etc/timezone Unfortunaterly, changes here are not permanently recordable. You need to load this from floppy of hard disk after mounting. > > 3) When I start X, KDE makes a sound--something like "Starting > your system". I don't want to hear that. Can I disable sound on > the boot prompt or sometime after booting into runlevel 2? > Knoppix is a debian-type system. There is no significance of runlevels out here. You cannot even boot into non-gui mode, since the CD is read-only and you cannot make changes to /etc/init.d scripts. > 4) If I leave the system on for a while, the network stops > working. After that point I'm unable to access the network. I > have to reboot. I believe I can try turning off the "power > save" option, if at all there's one. Just wildly guessing. I have never faced any ethernet related problem with any distro. No idea wat this could be. HTH Bish -- : ####[ GNU/Linux One Stanza Tip (LOST) ]####################### Sub : DOS to Unix conversion (#4) LOST #194 Need to remove all those ^M characters from a DOS file? Try : $col -bx < dosfile > newfile ####[genesis (at) istar.ca]################################### : |
From: Sankarshan M. <san...@so...> - 2003-04-24 22:41:20
|
hi, can i get knoppix to boot off the HDD - ie can knoppix be installed on the HDD ? if so then can someone point out the relevant links ? tia sankarshan ---------- Who Dares, Wins !! http://sankarshan.blogspot.com - Random Thoughts http://sankarshan.rediffblogs.com - Open Minds, Open Source ---------- --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.474 / Virus Database: 272 - Release Date: 4/18/03 |
From: Dileep M. K. <di...@ku...> - 2003-04-25 03:33:59
|
On Fri, Apr 25, 2003 at 03:55:43AM +0530, Sankarshan Mukhopadhyay wrote: >>>can i get knoppix to boot off the HDD - ie can knoppix be installed >>>on the HDD ? if so then can someone point out the relevant links ? Knoppix can be installed on HDD. read: http://www.freenet.org.nz/misc/knoppix-install.html FYI Knoppix is based on Debian GNU/Linux Unstable (SID). I would suggest you to try Debian woody which is much stable than SID. If you like to live in the bleeding edge go for SID ... Your Choice :-) Regards -- .''`. Dileep M. Kumar <di...@ku...> : :' : http://www.kumarayil.net `. `'` `- Debian GNU/Linux - Choice of the Freedom Lovers |
From: USM B. <us...@hc...> - 2003-04-25 15:36:36
|
On Fri, Apr 25, 2003 at 09:10:16AM +0530, Dileep M. Kumar wrote: > > FYI Knoppix is based on Debian GNU/Linux Unstable (SID). I > would suggest you to try Debian woody which is much stable than > SID. If you like to live in the bleeding edge go for SID ... > Your Choice :-) > This is NOT true. knoppix project was started when "woody" was the unstable branch (about the time when slink was stable and potato was testing). Only the first notice says that it is "unstable". I have checked the installed binaries with existing deb files on debian.org and IIT Chennai. It is 100% woody. The fact remains, that now that woody itself *is* the stable branch. There is nothing unstable about knoppix-3.1 or 3.2. I have done apt-get update and upgrade from woody after installation, and only about 30+ mb was the total exchange. Just my 2p Bish PS: I am an old time Slack user, and still remain one. My interest in knoppix was to see a practical demo of a fully CD run distro. I installed knoppix for study purposes, and therefore still very much a learner ... so whatever is stated is thanks to RTFM and RTFB ;-), and hands on experience ... -- : ####[ GNU/Linux One Stanza Tip (LOST) ]####################### Sub : Handling *.doc files in Linux LOST #338 Use wvWare (www.wvWare.com). wvWare is a suite of applications that converts Microsoft Word Documents (versions 2,5,6,7,8,9) into more useful formats such as HTML, LaTeX, ABW, WML, Text, etc ... wvWare is also a library which can be used by other applications to import Word documents. ####[Discussions: howtos (at) frodo.hserus.net 14/07/02]###### : |
From: Dileep M. K. <di...@ku...> - 2003-04-26 03:53:40
|
On Fri, Apr 25, 2003 at 09:08:39PM +0530, USM Bish wrote: >>>This is NOT true. knoppix project was started when "woody" was the >>>unstable branch (about the time when slink was stable and potato >>>was testing). Only the first notice says that it is "unstable". Woody was never in unstable IAC, it was in testing. Unstable is SID always. http://www.debian.org/releases/ http://www.debian.org/releases/unstable/ /* The code name for Debian's development distribution is "sid", aliased to "unstable". Most of the development work that is done in Debian, is uploaded to this distribution. This distribution will never get released; instead, packages from it will propagate into testing and then into a real release. */ KDE 3.1.1 is not in woody (stable). It is from SID only. >>>There is nothing unstable about knoppix-3.1 or 3.2. Don't know. I tried Knoppix one or two times for a demo. Never used it for a regular use. PS: Debian warns a user that testing release are for bleeding edge users. But I know a few people who runs SiD on their home PC without any problems. /* "sid" is subject to massive changes and in-place library updates. This can result in a very "unstable" system which contains packages that cannot be installed due to missing libraries, dependencies that cannot be fulfilled etc. Use it at your own risk! */ So I recommend newbies, better use the stable release. Choice is of users, of-course. Regards -- .''`. Dileep M. Kumar <di...@ku...> : :' : http://www.kumarayil.net `. `'` `- Debian GNU/Linux - Choice of the Freedom Lovers |
From: USM B. <us...@hc...> - 2003-04-26 17:32:54
|
On Sat, Apr 26, 2003 at 09:29:56AM +0530, Dileep M. Kumar wrote: > > > Woody was never in unstable IAC, it was in testing. Unstable is > SID always. > AFAIK, the naming of Debian versions is taken from the "Toy Story". I Installed debian for the first time with slink (? kernel 2.0.18) when that was "testing" and "hamm" was stable. Gradually slink went on till kernel 2.0.36, and about that time "potato" was testing and "woody" was unstable. I always had at least 2 distros on my box at all times. The only constant one has been Slack. The alternate distro was basically to get the feel of other distros, and has been changing once playtime was over. Re-induction of debian on my box was only to try out knoppix. I discontinued with debian and clones after early days of potato, and that is the period that "sid" was born as "unstable". This change, that "sid" will always remain unstable is a recent phenomenon (after 2001), and I was not aware of it ... but that is not the way debian has been. There was no sid till 2001. So obviously, something else took the place of "unstable" before that, Toy Story names left aside. The philosophy of stable, testing and unstable has been existing from Day 1. Just my 2p Bish -- : ####[ GNU/Linux One Stanza Tip (LOST) ]####################### Sub : Simple console calculator (#1) LOST #221 The simplest is to use 'expr'. Try this out: $expr 4 + 12 / 3 or $expr 6 "*" 2. [ Note: The quotes for multiplication ]. ####[kumarayil (at) eth.net]################################## : |
From: Dileep M. K. <di...@ku...> - 2003-04-28 04:00:04
|
On Sat, Apr 26, 2003 at 11:04:24PM +0530, USM Bish wrote: >>>This change, that "sid" will always remain unstable is a recent >>>phenomenon (after 2001), and I was not aware of it ... but that is >>>not the way Debian has been. There was no sid till 2001. So >>>obviously, something else took the place of "unstable" before that, >>>Toy Story names left aside. The philosophy of stable, testing and >>>unstable has been existing from Day 1. I started using Debian when Potato was stable (August 14th, 2000). That time SID was there IIRC. I have no idea of Debian releases before that. Can any senior GNUHead clarify on this. Regards -- .''`. Dileep M. Kumar <di...@ku...> : :' : http://www.kumarayil.net `. `'` `- Debian GNU/Linux - Choice of the Freedom Lovers |
From: Sridhar M.A. <ma...@uo...> - 2003-04-28 10:17:10
|
On Mon, Apr 28, 2003 at 09:36:20AM +0530, Dileep M. Kumar wrote: > > >>>This change, that "sid" will always remain unstable is a recent > >>>phenomenon (after 2001), and I was not aware of it ... but that is > >>>not the way Debian has been. There was no sid till 2001. So > >>>obviously, something else took the place of "unstable" before that, > >>>Toy Story names left aside. The philosophy of stable, testing and > >>>unstable has been existing from Day 1. > I am not sure of that. If my memory serves me right, testing was only a recent introduction; probably just before woody was released. The idea was the packages in unstable would trickle down to testing after 15 days or so without major bugs to its credit. I _may_ be wrong. > I started using Debian when Potato was stable (August 14th, 2000). > That time SID was there IIRC. I have no idea of Debian releases before > that. > Am using debian since bo, i.e., 1.3. So, > Can any senior GNUHead clarify on this. > do I qualify as one? :-) Regards, -- Sridhar M.A. This fortune is inoperative. Please try another. |
From: Mukund D. <bet...@na...> - 2003-04-29 04:23:19
|
> On Sat, Apr 26, 2003 at 11:04:24PM +0530, USM Bish wrote: > > >>>This change, that "sid" will always remain unstable is a recent > >>>phenomenon (after 2001), and I was not aware of it ... but that is > >>>not the way Debian has been. There was no sid till 2001. So > >>>obviously, something else took the place of "unstable" before that, > >>>Toy Story names left aside. The philosophy of stable, testing and > >>>unstable has been existing from Day 1. > > I started using Debian when Potato was stable (August 14th, 2000). > That time SID was there IIRC. I have no idea of Debian releases before > that. > > Can any senior GNUHead clarify on this. USM Bish is quite senior (At least on list) and we can take his opinion for granted. Best Regards, Mukund Deshmukh, Director, Beta Computronics Pvt Ltd, Nagpur. |
From: Sankarshan M. <san...@so...> - 2003-04-25 16:19:17
|
----- Original Message ----- From: "Dileep M. Kumar" <di...@ku...> To: <lin...@li...> Sent: Friday, April 25, 2003 9:10 AM Subject: Re: [LIH]Knoppix off the HDD > Knoppix can be installed on HDD. > read: http://www.freenet.org.nz/misc/knoppix-install.html thanks for the link, although the disclaimer about the chainloader in the howto was a bit disturbing... so the question is does anyone have any bad experience with this kind of setup ? > > FYI Knoppix is based on Debian GNU/Linux Unstable (SID). I would > suggest you to try Debian woody which is much stable than SID. If you > like to live in the bleeding edge go for SID ... Your Choice :-) not bleeding edge, but then what is the harm in trying it out now and then <smile> warm regards and thanks once again sankarshan ps: posting a reply to this mail does not necessarily mean that i am ungrateful to others who have posted a reply. a big round of appreciation to all of you ---------- Who Dares, Wins !! http://sankarshan.blogspot.com - Random Thoughts http://sankarshan.rediffblogs.com - Open Minds, Open Source ---------- --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.474 / Virus Database: 272 - Release Date: 4/18/03 |
From: Manish J. <man...@or...> - 2003-04-25 05:11:25
|
Sankarshan Mukhopadhyay wrote: > can i get knoppix to boot off the HDD - ie can knoppix be > installed on the HDD ? if so then can someone point out the > relevant links ? Yes, you can install knoppix on the HDD. The CD contains a couple of readme files. See in there for instructions. -Manish -- "The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation." |
From: USM B. <us...@hc...> - 2003-04-25 15:18:19
|
On Fri, Apr 25, 2003 at 03:55:43AM +0530, Sankarshan Mukhopadhyay wrote: > > can i get knoppix to boot off the HDD - ie can knoppix be > installed on the HDD ? if so then can someone point out the > relevant links ? /usr/doc/knoppix-hdinstall /usr/local/bin/knx-hdinstall Do, knx-hdinstall after making sure you have a spare partition over 2.4 GB free for knoppix. knoppix somehow, refuses to install on smaller partitions. HTH Bish -- : ####[ GNU/Linux One Stanza Tip (LOST) ]####################### Sub : DOS to Unix conversion (#3) LOST #137 DOS text files with ^M can be cleared by pico editor. Load the dos text file in pico, Do a small edit job on it. (e.g. place a space and delete it again) .. Save .. Quit. All ^Ms gone !! ####[bish (at) nde.vsnl.net.in]############################### : |
From: Manish J. <man...@or...> - 2003-04-26 18:40:05
|
Sankarshan Mukhopadhyay wrote: > can i get knoppix to boot off the HDD - ie can knoppix be installed on the HDD ? > if so then can someone point out the relevant links ? I just installed knoppix to my HDD last night. It was done using the knx-hdinstall program. Problems: I had booted into knoppix with "lang=us" but still the installation started in German. I interacted with the installer in German (mostly guesswork). After installation, when I booted into the system, the keyboard was always German, even if I selected "lang=us" at the boot prompt. Rest all was ok. Was able to start KDE in U.S. English mode and work from there. -Manish -- "The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation." |
From: murali <mur...@sa...> - 2003-04-27 17:43:44
|
I too have similar problem like german installation and keyboard problems.Additionally it is not booting to X, either directly or even after "stratx" command is issued.Any clues? Murali Manish Jethani wrote: >Sankarshan Mukhopadhyay wrote: > > > >>can i get knoppix to boot off the HDD - ie can knoppix be installed on the HDD ? >>if so then can someone point out the relevant links ? >> >> > >I just installed knoppix to my HDD last night. It was done >using the knx-hdinstall program. > >Problems: > > I had booted into knoppix with "lang=us" but still the > installation started in German. I interacted with the > installer in German (mostly guesswork). After installation, > when I booted into the system, the keyboard was always German, > even if I selected "lang=us" at the boot prompt. Rest all was > ok. Was able to start KDE in U.S. English mode and work from > there. > >-Manish > > > |
From: Manish J. <man...@or...> - 2003-04-27 17:54:59
|
murali wrote: > I too have similar problem like german installation and keyboard > problems.Additionally it is not booting to X, either directly or even > after "stratx" command is issued.Any clues? I haven't figured out the German thing yet since the box has just been lying around in my office over the weekend. About X, you can try giving xmodule=vesa or xmodule=fbdev or just fb1024x768 on the boot prompt. Let us all know if it works. -Manish -- "The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation." |
From: Manish J. <man...@or...> - 2003-04-25 05:18:03
|
USM Bish wrote: > On Wed, Apr 23, 2003 at 11:11:24AM +0530, Manish Jethani > wrote: > >> 3) When I start X, KDE makes a sound--something like >> "Starting your system". I don't want to hear that. Can I >> disable sound on the boot prompt or sometime after booting >> into runlevel 2? >> > Knoppix is a debian-type system. There is no significance > of runlevels out here. You cannot even boot into non-gui > mode, since the CD is read-only and you cannot make > changes to /etc/init.d scripts. You CAN boot into non-gui mode. That's what I'm going BTW. Just give "knoppix 2" at the boot prompt and it boots into _runlevel_2_. And why is there no significance of runlevels in debian? I thought this was pretty standard since Sys V. -Manish -- "The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation." |
From: USM B. <us...@hc...> - 2003-04-25 15:12:51
|
On Fri, Apr 25, 2003 at 10:34:23AM +0530, Manish Jethani wrote: > [snipped] > >> > > Knoppix is a debian-type system. There is no significance > > of runlevels out here. You cannot even boot into non-gui > > mode, since the CD is read-only and you cannot make > > changes to /etc/init.d scripts. > > You CAN boot into non-gui mode. That's what I'm going BTW. > Just give "knoppix 2" at the boot prompt and it boots into > _runlevel_2_. > The boot option that comes in knoppix is for screen modes. IIRC, screen 0 is for 80x25, and similarly upto 7 or 8 for different modes. When you type in "knoppix 2", the system is being set to a mode which may not support GUI for your hardware, and therefore defaults to console. The reason why debian does not support runlevels is the way the init scripts are written. They are all in /etc/init.d and you'd find that all scripts in rc2.d to rc5.d are mere symlinks to the same init.d scripts. To boot into console under debian/ knoppix/ progeny/ storm you need to to: "update-rc.d -f xdm remove" and remove all symlinks to xdm. (change to gdm/ kdm if that is the boot loader). > > And why is there no significance of runlevels in debian? I > thought this was pretty standard since Sys V. > runlevels is an original bsd thing. Sys V init processes have a fair amount of variablity, depending upon implementation. Just my 2p Bish -- : ####[ GNU/Linux One Stanza Tip (LOST) ]####################### Sub : sed hints (deleting sequential lines) LOST #428 To remove a range of lines from "x" through "y" of a text file where the limits x and y are known: $ sed -e 'x,yd' /path/to/some/file ####[banduji (at) symonds.net]################################ : |
From: Raj M. <ra...@li...> - 2003-04-25 16:43:44
|
>>>>> "USM" == USM Bish <us...@hc...> writes: USM> [snip] USM> The reason why debian does not support runlevels is the way USM> the init scripts are written. They are all in /etc/init.d and USM> you'd find that all scripts in rc2.d to rc5.d are mere USM> symlinks to the same init.d scripts. That happens with most distributions I know, with the possible exception of /etc/init.d being replaced by /etc/rc.d/init.d. The files in the various runlevel directories are symlinks to the `real' scripts in /etc/[rc.d/]init.d. USM> To boot into console under debian/ knoppix/ progeny/ storm USM> you need to to: "update-rc.d -f xdm remove" and remove all USM> symlinks to xdm. (change to gdm/ kdm if that is the boot USM> loader). Hmm, are you sure that's correct? It's been a while since I used Debian, but AFAIR Debian supports runlevels just like other distributions. It's just a question of ensuring that xdm runs in runlevel 5. USM> [snip] Regards, -- Raju -- Raj Mathur ra...@ka... http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F It is the mind that moves |
From: Rajesh <Ma...@de...> - 2003-04-26 06:47:02
|
On Fri, Apr 25, 2003 at 10:13:31PM +0530, Raj Mathur wrote: >>>>>> "USM" == USM Bish <us...@hc...> writes: > > USM> To boot into console under debian/ knoppix/ progeny/ storm > USM> you need to to: "update-rc.d -f xdm remove" and remove all > USM> symlinks to xdm. (change to gdm/ kdm if that is the boot > USM> loader). > >Hmm, are you sure that's correct? It's been a while since I used >Debian, but AFAIR Debian supports runlevels just like other >distributions. It's just a question of ensuring that xdm runs in >runlevel 5. He is absolutly correct. This is what /etc/inittab of woody contains. # /etc/init.d executes the S and K scripts upon change # of runlevel. # # Runlevel 0 is halt. # Runlevel 1 is single-user. # Runlevels 2-5 are multi-user. # Runlevel 6 is reboot. As you can see there is no runlevel for GUI. Hence update-rc.d method is the one to add or remove xdm/gdm/kdm Peace -- Rajesh : ####[ GNU/Linux One Stanza Tip (LOST) ]####################### Sub : Linux Commands (#1) LOST #021 No consolidated command list. Do an ls for the following dirs: /sbin, /usr/sbin ... for system related commands /bin, /usr/bin, /usr/local/bin ... for user commands /usr/X11R6/bin ... for X program commands ####<bish (at) nde.vsnl.net.in>#################################### : |
From: Manish J. <man...@or...> - 2003-04-26 19:49:32
|
Rajesh wrote: > On Fri, Apr 25, 2003 at 10:13:31PM +0530, Raj Mathur wrote: > >>>>>>>"USM" == USM Bish <us...@hc...> writes: >> >> USM> To boot into console under debian/ knoppix/ progeny/ storm >> USM> you need to to: "update-rc.d -f xdm remove" and remove all >> USM> symlinks to xdm. (change to gdm/ kdm if that is the boot >> USM> loader). >> >>Hmm, are you sure that's correct? It's been a while since I used >>Debian, but AFAIR Debian supports runlevels just like other >>distributions. It's just a question of ensuring that xdm runs in >>runlevel 5. > > He is absolutly correct. This is what /etc/inittab of woody contains. > > # /etc/init.d executes the S and K scripts upon change > # of runlevel. > # > # Runlevel 0 is halt. > # Runlevel 1 is single-user. > # Runlevels 2-5 are multi-user. > # Runlevel 6 is reboot. > > > As you can see there is no runlevel for GUI. Hence update-rc.d method is > the one to add or remove xdm/gdm/kdm Where, where? Those are just comment entries, not actual code. Anyway I believe for Debian the comments will match the code :-P The /etc/inittab of Knoppix 3.1 has been modified by Knopper but the above comments have been left intact. So, what USM Bish is saying is NOT true of Knoppix. Knopper has added the multiple runlevels (5=X11, etc.). He's modified /etc/init.d/rc And /etc/init.d/xsession is written entirely by him. Raj, you're probably right in saying that Debian does *support* multiple runlevels--just that maybe the default install doesn't use them. Knopper, for example, has modifed the defaults to use 5 for X11. Knoppix is NOT Debian. Knoppix is _based_on_ Debian. -Manish -- "The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation." |
From: USM B. <us...@hc...> - 2003-04-27 05:11:49
|
On Sun, Apr 27, 2003 at 01:05:45AM +0530, Manish Jethani wrote: > Rajesh wrote: > > > On Fri, Apr 25, 2003 at 10:13:31PM +0530, Raj Mathur wrote: > > > >>>>>>>"USM" == USM Bish <us...@hc...> writes: > >> > >> USM> To boot into console under debian/ knoppix/ progeny/ storm > >> USM> you need to to: "update-rc.d -f xdm remove" and remove all > >> USM> symlinks to xdm. (change to gdm/ kdm if that is the boot > >> USM> loader). > >> > >>Hmm, are you sure that's correct? It's been a while since I used > >>Debian, but AFAIR Debian supports runlevels just like other > >>distributions. It's just a question of ensuring that xdm runs in > >>runlevel 5. > > > > He is absolutly correct. This is what /etc/inittab of woody contains. > > > > # /etc/init.d executes the S and K scripts upon change > > # of runlevel. > > # > > # Runlevel 0 is halt. > > # Runlevel 1 is single-user. > > # Runlevels 2-5 are multi-user. > > # Runlevel 6 is reboot. > > > > > > As you can see there is no runlevel for GUI. Hence update-rc.d > > method is the one to add or remove xdm/gdm/kdm > > > Where, where? Those are just comment entries, not actual code. > Anyway I believe for Debian the comments will match the code :-P This kind of talk generates more heat than light. I am pasting below the relevant section of /etc/inittab of knoppix. There has been no modifications made by me. Let the public decide: ----------------------------<snip>----------------------------- # /etc/inittab: init(8) configuration. # $Id: inittab,v 1.9 2001/05/31 10:37:50 knopper Exp $ # The default runlevel. id:2:initdefault: # Boot-time system configuration/initialization script. # This is run first except when booting in emergency (-b) mode. si::sysinit:/etc/init.d/rcS # What to do in single-user mode. ~~:S:respawn:/bin/bash -login >/dev/tty1 2>&1 </dev/tty1 # /etc/init.d executes the S and K scripts upon change # of runlevel. # # Runlevel 0 is halt. # Runlevel 1 is single-user. # Runlevels 2-5 are multi-user. # Runlevel 6 is reboot. l0:0:wait:/etc/init.d/rc 0 l1:1:wait:/etc/init.d/rc 1 l2:2:wait:/etc/init.d/rc 2 l3:3:wait:/etc/init.d/rc 3 l4:4:wait:/etc/init.d/rc 4 l5:5:wait:/etc/init.d/rc 5 l6:6:wait:/etc/init.d/rc 6 -------------------------------</snip>---------------------------- Please note: o Not a single line here is mine. They are original Knopper. o The default init level, is 2 NOT 5. With this, my default installation puts me into kdm. o The next line after this runs ../rcS scipt. I am quoting an extract from the *original* rcS file. (No changes made by me). # # rcS Call all S??* scripts in /etc/rcS.d in # numerical/alphabetical order. # # Version: @(#)/etc/init.d/rcS 2.76 19-Apr-1999 mi...@ci... # o xdm/ kdm/ gdm under debian/ knoppix is brought about by S99kdm script under knoppix. See this: root@aedes:/etc# find . -name S??kdm -print ./rc2.d/S99kdm root@aedes:/etc# This file is symlinked to /etc/init.d/kdm o Note, there is no S??kdm entry in /etc/rc5.d/ root@aedes:/etc# ls rc5.d S20sendmail S20webmin S91apache S99portsentry root@aedes:/etc# > > The /etc/inittab of Knoppix 3.1 has been modified by Knopper but > the above comments have been left intact. So, what USM Bish is > saying is NOT true of Knoppix. Knopper has added the multiple > runlevels (5=X11, etc.). > > He's modified /etc/init.d/rc And /etc/init.d/xsession is > written entirely by him. ;-) In any case how is xsession involved ? It is for xserver initial- isation called by xdm/ xinit/ startx etc, and no way involved at the init process. > > Raj, you're probably right in saying that Debian does *support* > multiple runlevels--just that maybe the default install doesn't > use them. The letter you have quoted is not mine. It was put by Rajesh. He is a long time Debian user, and has been on the debian-user list for long. If you think I am doing *BS*, trust him at least. In any case it is only avid Debian users who should have the last say .. It would be nice if you could post some evidence to support your assertions and beliefs ... YMMV Bish -- : ####[ GNU/Linux One Stanza Tip (LOST) ]####################### Sub : Starting favourite apps when starting X LOST #389 To start your favourite apps the moment you start X, add it to your .xinitrc, before firing the window manager as shown: Eterm -x -O -g 80x24+500+50 --scrollbar off --menubar off & xv -root -max -quit /usr/share/Eterm/pix/lighthouse.jpg fvwm2 ####[banduji (at) symonds.net]################################ : |
From: Manish J. <man...@or...> - 2003-04-27 06:36:39
|
USM Bish wrote: > I am pasting below the relevant section of /etc/inittab of > knoppix. There has been no modifications made by me. Let the > public decide: > > ----------------------------<snip>----------------------------- > > # /etc/inittab: init(8) configuration. > # $Id: inittab,v 1.9 2001/05/31 10:37:50 knopper Exp $ > > # The default runlevel. > id:2:initdefault: > > # Boot-time system configuration/initialization script. > # This is run first except when booting in emergency (-b) mode. > si::sysinit:/etc/init.d/rcS > > # What to do in single-user mode. > ~~:S:respawn:/bin/bash -login >/dev/tty1 2>&1 </dev/tty1 > > # /etc/init.d executes the S and K scripts upon change > # of runlevel. > # > # Runlevel 0 is halt. > # Runlevel 1 is single-user. > # Runlevels 2-5 are multi-user. > # Runlevel 6 is reboot. > > l0:0:wait:/etc/init.d/rc 0 > l1:1:wait:/etc/init.d/rc 1 > l2:2:wait:/etc/init.d/rc 2 > l3:3:wait:/etc/init.d/rc 3 > l4:4:wait:/etc/init.d/rc 4 > l5:5:wait:/etc/init.d/rc 5 > l6:6:wait:/etc/init.d/rc 6 > > -------------------------------</snip>---------------------------- And here's the relevant portion of my /etc/inittab: ----------------------------<snip>----------------------------- # /etc/inittab: init(8) configuration. # $Id: inittab,v 1.9 2001/05/31 10:37:50 knopper Exp $ # The default runlevel. id:5:initdefault: # Boot-time system configuration/initialization script. # This is run first except when booting in emergency (-b) mode. si::sysinit:/etc/init.d/rcS # What to do in single-user mode. ~~:S:respawn:/bin/bash -login >/dev/tty1 2>&1 </dev/tty1 # /etc/init.d executes the S and K scripts upon change # of runlevel. # # Runlevel 0 is halt. # Runlevel 1 is single-user. # Runlevels 2-5 are multi-user. # Runlevel 6 is reboot. l0:0:wait:/etc/init.d/knoppix-halt l1:1:wait:/etc/init.d/rc 1 l2:2:wait:/etc/init.d/rc 2 l3:3:wait:/etc/init.d/rc 3 l4:4:wait:/etc/init.d/rc 4 l5:5:wait:/etc/init.d/rc 5 l6:6:wait:/etc/init.d/knoppix-reboot -------------------------------</snip>---------------------------- Note, in particular, this: # $Id: inittab,v 1.9 2001/05/31 10:37:50 knopper Exp $ One of us is using a pirated version of Knoppix 3.1 :-) > Please note: <snip> > o The default init level, is 2 NOT 5. With this, my default > installation puts me into kdm. My default runlevel is 5, not 2. I'll paste also the directory listing of /etc/rc[2-5].d/: /etc/rc2.d: total 0 lrwxrwxrwx 1 root root 30 Apr 27 2003 K10xsession -> /KNOPPIX/etc/rc2.d/K10xsession /etc/rc3.d: total 0 lrwxrwxrwx 1 root root 30 Apr 27 2003 K10xsession -> /KNOPPIX/etc/rc3.d/K10xsession /etc/rc4.d: total 0 lrwxrwxrwx 1 root root 30 Apr 27 2003 K10xsession -> /KNOPPIX/etc/rc4.d/K10xsession /etc/rc5.d: total 0 > o The next line after this runs ../rcS scipt. I am quoting > an extract from the *original* rcS file. (No changes made > by me). > > # > # rcS Call all S??* scripts in /etc/rcS.d in > # numerical/alphabetical order. > # > # Version: @(#)/etc/init.d/rcS 2.76 19-Apr-1999 mi...@ci... > # > > o xdm/ kdm/ gdm under debian/ knoppix is brought about by > S99kdm script under knoppix. See this: > > root@aedes:/etc# find . -name S??kdm -print > ./rc2.d/S99kdm > root@aedes:/etc# > > This file is symlinked to /etc/init.d/kdm I have no rcS script, as you can see above. I have a K10xsession which is symlinked to /etc/init.d/xsession > o Note, there is no S??kdm entry in /etc/rc5.d/ Same here. > root@aedes:/etc# ls rc5.d > S20sendmail S20webmin S91apache S99portsentry Umm... I have none of these. Is this an hdd-installed version of knoppix 3.1? I hope you're giving this info from the cd-booted one and not one that's installed to the hdd. > In any case it is only avid Debian users who should have > the last say .. Knoppix is not Debian. > It would be nice if you could post some evidence to support > your assertions and beliefs ... I hope I've given enough evidence. If you need anything else to prove me wrong, feel free to ask. -Manish -- "The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation." |
From: Manish J. <man...@or...> - 2003-04-27 06:53:55
|
Manish Jethani wrote: > I have no rcS script, as you can see above. Sorry, correction in my previous. I do have an rcS in /etc/init.d/ Was looking in the wrong place. -Manish -- "The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation." |
From: USM B. <us...@hc...> - 2003-04-27 08:32:15
|
On Sun, Apr 27, 2003 at 11:52:50AM +0530, Manish Jethani wrote: > > One of us is using a pirated version of Knoppix 3.1 :-) > Not quite. Things could be changed becuase of installations and updates done to the installation. This output is from my HDD installed version. I have installed things like sendmail and webmin, which are not there in default knoppix .. But that does not mean it is pirated ... I thought it would be understood. My bad for not explaining the situation, sorry. AFAIK, no update or non-system related software installation interferes with the init process. > > My default runlevel is 5, not 2. > Fair enough. The boot process would still go through the full cycle of rc2.d through rc5.d. Please change it to 2 or 3 for your HDD installed version, and check it out yourself. Also, check if /etc/rc5.d/S??kdm exists, or at least where it lies. > I'll paste also the directory listing of /etc/rc[2-5].d/: > > /etc/rc2.d: > total 0 > lrwxrwxrwx 1 root root 30 Apr 27 2003 > K10xsession -> /KNOPPIX/etc/rc2.d/K10xsession > Now, I think I got it ... I too have similar for K??session. root@aedes:/etc# find . -name ???xsession -print ./rc1.d/K10xsession ./rc3.d/K10xsession ./rc4.d/K10xsession root@aedes:/etc# Please note that the K??<pkg> scripts are "Kill" scripts, the ones used for startup are S??<pkg>. Both these are symlinked to the same shell script under /etc/init.d/<pkg>. The thing to look out for are S??xdm/ S??kdm or S??gdm. These are associated with the init process. If you do a search for S??xsession, there are none .. It is obvious that the xserver needs to be closed at shutdown ... During startup, kdm/ xdm/ xinit does the xsession initialisation, so there is no need for a S??xsession. The shutdown scripts also go through the same scripts as startup (under /etc/init.d) and in all cases both S?? and K?? scripts are symlinked to the same shell script. root@aedes:/etc# ls -al ./rc0.d/K20sendmail lrwxrwxrwx 1 root root 18 Mar 15 04:54 ./rc0.d/K20sendmail \ -> ../init.d/sendmail root@aedes:/etc# ls -al ./rc2.d/S20sendmail lrwxrwxrwx 1 root root 18 Mar 15 04:54 ./rc2.d/S20sendmail \ -> ../init.d/sendmail root@aedes:/etc# Though the same script is used for both startup and shutdown, the behaviour of is changed through this line: RUNLEVEL="$(runlevel)" This $(runlevel) is generated by the programs invoking it, and not what is entered at the at the boot prompt.'shutdown' and 'halt' for example generates a "runlevel" signal of "0" and reboot generates "6". For startup sequence, they go in a choronological order for all the rcN.d directories, as shown in the commented lines of inittab file and executes the S??<pkg> scripts. You must realise, that before the kernel is loaded, the only processing possible is by the boot loader, (in this case it is LILO) .. LILO accepts kernel parameters, similar to other boot loaders like loadlin and grub. What you can pass at the "knoppix:" prompt are such kernel parameters. Nothing else besides kernel parameters can be processed. The init process is what determines the runlevel sequence, and for this to operate the kernel and shell must be opera- tive, otherwise shell scripts would not work. You may give this a try. Next time you boot through CD and get the "knoppix:" prompt, just hit [Enter]. You will get a listing of video modes available. The first is "0" viz 80x25 If you type in "0" you actually boot into the system, where- as runlevel 0 in knoppix is set to halt or shutdown. IIRC, the option list goes down to 8, but there is no runlevel "8" under *nix ! > > Knoppix is not Debian. > Knoppix does not state that ... they quite honorably display the debian swirl when the kdm interface comes up. > > I hope I've given enough evidence.If you need anything else > to prove me wrong, feel free to ask. > Thank you for posting the evidences, at least it got things clarified ... I have definitely learnt many things here ... Just wanted to know where the misunderstanding was, and you have kindly furnished all the evidence that was needed ... Bish -- : ####[ GNU/Linux One Stanza Tip (LOST) ]####################### Sub : Contents of gzipped tarball [#2] LOST #039 To search the contents of a .tar.gz without decompressing Method 2: Use Midnight Commander (mc) or gmc. Just go to the concerned tarball and press [Enter] ####[rfowkar (at) yahoo.com]################################## : |