Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Support > Guides & Solutions (No Questions)

Guides & Solutions (No Questions) Post your guides here. You can also add your comments to a guide, but don't start a thread to ask a question. Use another forum for that.


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2005-07-28, 08:13 PM CDT
cybrjackle's Avatar
cybrjackle Offline
Registered User
 
Join Date: Jan 2004
Posts: 456
initng on fedora core 4 **experimental**

First
1.) My laptop went from 1 minute and 20 seconds to 18 second boot up
2.) That's just

Second ****WARNING, don't use or use at your hacking skills
1.) If the system is on LVM
2.) USB keyboard only

Third ***NOTE
1.) If your system explodes, eats your childern or floods your toliet
2.) WHOOPS!

If you have those 2 things this will probably not work at first!

With the help of Jimmy from initng project I was able to get initng up and running on my laptop in a pretty short time. End result is 1:20 vs. :18 second boot times.

http://65.28.94.10/pub/bootchartd/initng-bootchart.png

http://65.28.94.10/pub/bootchartd/de...ootchart-1.png

WARNINGS

I haven’t been able to get this to work on a system running LVM and usb doesn’t work during startup!!
Code:
wget -c http://initng.thinktux.net/download/initng-0.1.6.tar.bz2
tar xvjpf initng-0.1.6.tar.bz2
cd initng-0.1.6
./configure
make
su -c “make install”
Things to change before you reboot:

Edit grub to include duplicate kernel entrys and edit one to use initng instead of default init and change
root=LABEL=/1 to root=/dev/hda3 (what ever your / is on)

]vi /boot/grub/grub.conf
Code:
title Fedora Core (2.6.12-1.1398_FC4-initng)
        root (hd0,0)
        kernel /vmlinuz-2.6.12-1.1398_FC4 ro root=/dev/hda3 vga=0x317 init=/sbin/initng
#init=/sbin/bootchartd-ng
        initrd /initrd-2.6.12-1.1398_FC4.img

title Fedora Core (2.6.12-1.1398_FC4)
        root (hd0,0)
        kernel /vmlinuz-2.6.12-1.1398_FC4 ro root=LABEL=/1 rhgb quiet init=/sbin/bootchartd
        initrd /initrd-2.6.12-1.1398_FC4.img



Edit the system.runlevel for initng and comment out coldplug

vi /etc/initng/system.runlevel
Code:
#system/coldplug
Add some extras to default.runlevel
vi /etc/initng/default.runlevel
Code:
daemon/xfs
daemon/gdm
daemon/hald
system/usb
system/alsasound
To start services after the system is up (in 18 seconds), like coldplug to control my usb mouse
Code:
ngc -u system/coldplug
To add/del service from starting up
Code:
ng-update add system/coldplug default
ng-update add daemon/gdm default

ng-update del system/coldplug default
ng-update del daemon/gdm default
I assume lvm bits need to be added to /etc/initng/system/initial.i file included.

There are some other errors during boot up, but nothing that looks chaotic and again, lvm = no at the moment and if you have usb kbd you might be out of look (unless you can ssh to it)
Code:
# ngc -s
Next Generation init Control.
written by Jimmy Wennlund <jimmy.wennlund@gmail.com>

 hh:mm:ss service (fetching a 01124 byte table)    : status
 ----------------------------------------------------------
 21:40:54 default                                  : done.
 21:40:51 system                                   : done.
 21:40:54 net/eth0                                 : done.
 21:40:51 daemon/sshd                              : running.
 20:40:50 daemon/acpid                             : running.
 21:40:49 daemon/xfs                               : running.
 21:40:51 daemon/gdm                               : running.
 21:40:51 daemon/hald                              : running.
 20:40:50 system/usb                               : done.
 21:40:49 system/alsasound                         : done.
 20:40:48 system/initial                           : done.
 20:40:49 system/mountroot                         : done.
 20:40:50 system/mountfs                           : done.
 21:40:49 system/bootmisc                          : done.
 01:40:48 system/clock                             : done.
 20:40:48 system/hostname                          : done.
 20:40:49 system/modules                           : done.
 20:40:49 system/static-modules                    : done.
 20:40:49 system/hdparm                            : done.
 21:40:49 system/keymaps                           : done.
 20:40:50 system/urandom                           : done.
 21:40:49 system/consolefont                       : done.
 20:40:49 system/swap                              : done.
 21:40:51 net/lo                                   : done.
 20:40:50 daemon/agetty                            : done.
 20:40:50 daemon/agetty/tty2                       : running.
 20:40:50 daemon/agetty/tty3                       : running.
 20:40:50 daemon/agetty/tty4                       : running.
 20:40:50 daemon/agetty/tty5                       : running.
 20:40:50 daemon/agetty/tty6                       : running.
 20:40:50 daemon/agetty/tty7                       : running.
 20:40:50 daemon/agetty/tty8                       : running.
 20:40:50 daemon/agetty/tty9                       : running.
 20:40:49 daemon/acpid/modules                     : done.
 20:40:50 system/localmount                        : done.
 21:40:49 daemon/prexfs                            : done.
 21:40:51 daemon/dbus                              : running.
 21:40:49 system/alsasound/loadmodules             : done.
 21:40:54 up                                       : done.
 21:40:54 daemon/agetty/tty1                       : running.

Thanks again Jimmy!
__________________
aka "jlc" on irc.

Main Desktop:
Rawhide x86_64
MSI K8N NEO2 Platinum
AMD Athlon 64 3200+ Winchester @ 2350MHz
CORSAIR XMS TWINX1024-3200C2 2GB
BFG Nvidia GeForce 6800GT OC @ 370MHz 256MB GDDR3
2x80GB SATA 150 Segate Raid 0

Last edited by cybrjackle; 2005-07-29 at 03:37 PM CDT. Reason: add *experimental
Reply With Quote
  #2  
Old 2005-08-01, 05:26 PM CDT
jim's Avatar
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 35
Posts: 4,165
Hey I tried this out And I get a Kernel Panic attempting to kill Init
Grub.conf
Quote:
title Fedora Core (2.6.12-1.1398_FC4-INITNG)
root (hd0,5)
kernel /vmlinuz-2.6.12-1.1398_FC4 ro root=/ vga=0x317 init=/sbin/initng
initrd /initrd-2.6.12-1.1398_FC4.img

title Fedora Core (2.6.12-1.1398_FC4)
root (hd0,5)
kernel /vmlinuz-2.6.12-1.1398_FC4 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.12-1.1398_FC4.img
/etc/initng/default.runlevel
Quote:
system
net/eth0
daemon/sshd
daemon/acpid
daemon/xfs
daemon/gdm
daemon/hald
system/usb
system/alsasound
/etc/initng/system.runlevel
Quote:
system/initial
system/mountroot
system/mountfs
system/bootmisc
system/clock
system/hostname
system/modules
system/static-modules
system/hdparm
system/keymaps
system/urandom
system/consolefont
system/swap
#system/coldplug
net/lo
daemon/agetty
is there a debugging file that I can post??
I looked in /var/log/messages and found what appeared to be the fat drive I was trying to mount.
I'll post back to let ya know
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #3  
Old 2005-08-01, 05:31 PM CDT
jim's Avatar
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 35
Posts: 4,165
Well still no good
I get a faild to switch /dev/console!!!!!
failed to switch 22

System SPECs
Notebook
intel mobile Pentium M 1.5 GHz
768 MB PC2700 200 pin RAM
40 GB 5400 RPM hard drive
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #4  
Old 2005-08-01, 05:32 PM CDT
cybrjackle's Avatar
cybrjackle Offline
Registered User
 
Join Date: Jan 2004
Posts: 456
root=/

Needs to point to your device, example /dev/hda3
__________________
aka "jlc" on irc.

Main Desktop:
Rawhide x86_64
MSI K8N NEO2 Platinum
AMD Athlon 64 3200+ Winchester @ 2350MHz
CORSAIR XMS TWINX1024-3200C2 2GB
BFG Nvidia GeForce 6800GT OC @ 370MHz 256MB GDDR3
2x80GB SATA 150 Segate Raid 0
Reply With Quote
  #5  
Old 2005-08-01, 05:41 PM CDT
jim's Avatar
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 35
Posts: 4,165
ok got a bit further but dies a line 118
getty tty 1 - 9
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #6  
Old 2005-08-01, 05:42 PM CDT
cybrjackle's Avatar
cybrjackle Offline
Registered User
 
Join Date: Jan 2004
Posts: 456
add

--interactive

/sbin/initng --interactive

that will let you see were it breaks
__________________
aka "jlc" on irc.

Main Desktop:
Rawhide x86_64
MSI K8N NEO2 Platinum
AMD Athlon 64 3200+ Winchester @ 2350MHz
CORSAIR XMS TWINX1024-3200C2 2GB
BFG Nvidia GeForce 6800GT OC @ 370MHz 256MB GDDR3
2x80GB SATA 150 Segate Raid 0
Reply With Quote
  #7  
Old 2005-08-01, 06:00 PM CDT
jim's Avatar
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 35
Posts: 4,165
I'm a patient person How do I go about removing this application ?
I tried a make uninstall and there is no option for that.
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #8  
Old 2005-08-09, 04:32 PM CDT
skipper3k's Avatar
skipper3k Offline
Registered User
 
Join Date: May 2004
Location: Slovenia
Age: 26
Posts: 57
how can I load 'ngc -u system/coldplug' before loging into desktop and starting it manualy ?

edit: stupid question. Didn't read the post quite trough.

Last edited by skipper3k; 2005-08-09 at 04:35 PM CDT.
Reply With Quote
  #9  
Old 2005-08-12, 09:56 PM CDT
cybrjackle's Avatar
cybrjackle Offline
Registered User
 
Join Date: Jan 2004
Posts: 456
Hum, as far as removing it. I'm not sure were "all" the files are located at, and it really doesn't take much space up. If you just make sure your pointing to /sbin/init and not /sbin/initng no worries.
__________________
aka "jlc" on irc.

Main Desktop:
Rawhide x86_64
MSI K8N NEO2 Platinum
AMD Athlon 64 3200+ Winchester @ 2350MHz
CORSAIR XMS TWINX1024-3200C2 2GB
BFG Nvidia GeForce 6800GT OC @ 370MHz 256MB GDDR3
2x80GB SATA 150 Segate Raid 0
Reply With Quote
  #10  
Old 2005-08-18, 03:03 AM CDT
ace2005 Offline
Registered User
 
Join Date: Jul 2005
Posts: 119
Unhappy

Thanks for the tip my computer starts amaizingly fast , But i do have a problem with coldplug

Quote:
Originally Posted by cybrjackle
First
To start services after the system is up (in 18 seconds), like coldplug to control my usb mouse
Code:
ngc -u system/coldplug
To add/del service from starting up
Code:
ng-update add system/coldplug default
ng-update add daemon/gdm default

ng-update del system/coldplug default
ng-update del daemon/gdm default
I assume lvm bits need to be added to /etc/initng/system/initial.i file included.

Code:
# ngc -s
I don't understand the step about coldplug, i need it for my usb modem, at the moment the usb power light does not turn on so the modem is not turned on so i guess coldplug turns it on. But i don't know what to do with:

Code:
ngc -u system/coldplug
What do i do with it? Do i type it into Konsole? as su or not? because if i do type it into konsole i get "bash: ngc: command not found"

and whats lvm, do i need to be concerned about it?
Reply With Quote
  #11  
Old 2005-08-18, 08:04 AM CDT
cybrjackle's Avatar
cybrjackle Offline
Registered User
 
Join Date: Jan 2004
Posts: 456
Code:
ngc -u system/coldplug
Yes, run that as root from a console/terminal.

If you don't know what lvm is, you are probably not using it

LVM is a Logical Volume Manger, it enables you to create file systems and grow them as you need more space.
__________________
aka "jlc" on irc.

Main Desktop:
Rawhide x86_64
MSI K8N NEO2 Platinum
AMD Athlon 64 3200+ Winchester @ 2350MHz
CORSAIR XMS TWINX1024-3200C2 2GB
BFG Nvidia GeForce 6800GT OC @ 370MHz 256MB GDDR3
2x80GB SATA 150 Segate Raid 0
Reply With Quote
  #12  
Old 2005-08-18, 12:12 PM CDT
ace2005 Offline
Registered User
 
Join Date: Jul 2005
Posts: 119
I tried it in Konsole and i got:

Code:
[ace@localhost ~]$ ngc -u system/coldplug
bash: ngc: command not found
[ace@localhost ~]$ su
Password:
[root@localhost ace]# ngc -u system/coldplug
bash: ngc: command not found
[root@localhost ace]#
Now what do i do?

Last edited by ace2005; 2005-08-18 at 12:35 PM CDT.
Reply With Quote
  #13  
Old 2005-08-18, 12:40 PM CDT
ace2005 Offline
Registered User
 
Join Date: Jul 2005
Posts: 119
Shouldn't system/usb in /etc/initng/default.runlevel be disabled because it needs system/coldplug to work?
Reply With Quote
  #14  
Old 2005-08-18, 12:45 PM CDT
ace2005 Offline
Registered User
 
Join Date: Jul 2005
Posts: 119
Quote:
Originally Posted by ace2005
I tried it in Konsole and i got:

Code:
[ace@localhost ~]$ ngc -u system/coldplug
bash: ngc: command not found
[ace@localhost ~]$ su
Password:
[root@localhost ace]# ngc -u system/coldplug
bash: ngc: command not found
[root@localhost ace]#
Now what do i do?
Oh i get it now, you mean in the terminal as in Ctrl+Alt+F2 and not in Konsole in KDE
Reply With Quote
  #15  
Old 2005-08-18, 04:43 PM CDT
cybrjackle's Avatar
cybrjackle Offline
Registered User
 
Join Date: Jan 2004
Posts: 456
Quote:
Originally Posted by ace2005
Oh i get it now, you mean in the terminal as in Ctrl+Alt+F2 and not in Konsole in KDE
Did you

Code:
su
or
Code:
su -
You want to do the 2nd one, the first one gives root the $PATH of your user, which doesn't help find system commands
__________________
aka "jlc" on irc.

Main Desktop:
Rawhide x86_64
MSI K8N NEO2 Platinum
AMD Athlon 64 3200+ Winchester @ 2350MHz
CORSAIR XMS TWINX1024-3200C2 2GB
BFG Nvidia GeForce 6800GT OC @ 370MHz 256MB GDDR3
2x80GB SATA 150 Segate Raid 0
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
InitNG dmbrown00 General Support 1 2007-03-25 02:59 PM CDT
InitNG on FC5 hal8000b General Support 2 2006-10-21 09:24 AM CDT
Initng on FC7 vini_bill Fedora Focus 2 2006-09-12 07:16 AM CDT
InitNG? twiistedkaos General Support 0 2006-03-21 03:13 PM CST
Initng hlfmanhlfamzng Suggestions & Feedback 1 2005-05-05 07:19 PM CDT

Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 12:20 AM CDT.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Rules | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2010, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Translations by vB Enterprise Translator 2.3.10