LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-06-2010, 03:00 AM   #16
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Linux Mint 17.1
Posts: 1,424

Rep: Reputation: 138Reputation: 138

Gilbert are the scripts that you, tuxdev and Sasha available somewhere. Also have you collated them into a package, then we could have a "speed boost" package that is easy to install/remove, somewhat akin to the multi-lib packages.

samac
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-06-2010, 01:33 PM   #17
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,899

Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
Here's the link to Sasha's original thread:
http://www.linuxquestions.org/questi...ght=sasha+dash

Latest versions of here scripts here:
http://www.linuxquestions.org/questi...2&d=1261773877

tuxdevs versions here:
http://github.com/tuxdev/slackware-scripts

You can get my versions of the scripts here:
http://distro.ibiblio.org/pub/linux/...ipts-dash-1.0/
I've created a src2pkg build script for the scripts themselves, and there are sources, patches and build script for dash there as well. Just download the whole directory to get it all. Then use src2pkg to build the dash package first (src2pkg -X), and then install it. Then build the sysvinit-scripts-dash package with src2pkg using the same command as above.
Please, create a backup of your /etc/rc.d directory before installing the resulting sysvinit-scripts-dash package! I have written the doinst.sh so that it should re-name any existing scripts to NAME.bash before renaming the scripts in the package from NAME.dash to NAME.
If you do not install dash first, the scripts package will create a link from /bin/sh to /bin/dash -the scripts should work fine using /bin/sh as well.

Please note that I have changed the shebang in the scripts to use /bin/dash explicitly -to avoid using dash as the system /bin/sh (as that would cause all kinds of follow-on problems from other scripts).

The scripts package will contain a handfull of extra scripts which are not included in the official sysvinit-scripts package -I have added modified versions of the main ones which create bottlenecks during bootup, including rc.udev, rc.inet1 and rc.wireless. The package will also include a dashified version of rescan-scsi-bus with corresponding rc.scanluns, but the program is installed with the '.dash' suffix, so it will not overwrite any existing one.

Please, have a good look at the package before you install it so you won't be surprised at what happens. If you have modified rc.inet1 or any of the other official scripts, you'll want to have a hard look at the new versions before renaming them. The scripts should all be installed with the '.dash' suffix so you can easily identify them -they should not overwrite existing scripts -you'll have to rename them your self. You could also simply unpack the source tarball for the scripts and install them manually. But remember, they have the /bin/dash shebang, so they will not work if dash is not installed -or unless you create a link from /bin/sh to /bin/dash:
cd /bin ; ln -sf sh dash
 
2 members found this post helpful.
Old 03-06-2010, 02:15 PM   #18
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
I should point out that the latest version of that archive linked at link#2 above, *was* current for Slack 13.0 but has not been touched for some time, particularly not WRT the recent move towards Slack -current. Anyone using -current or the next release (13.1??) will find problems with some scripts in that archive, because some system binaries now accept different arguments than they used to.

The #1 example of this that I have discovered, is DHCPCD (called by rc.inet1). Some of its arguments have changed, so I now have a fresh new rc.inet1 that works with the new DHCPCD.

In the next couple days (maybe by tonight; depends how pre-occupied I am with other things, like giving my snake a bath) I'll post a new archive for anyone interested in having a look; I'll post or link it in THIS thread, as well as linked to my initial thread (linked as link#1 in Gilbert's post); and between mine, tuxdev's, and gnashley's scripts, anybody should be able to figure out which mods they may want in their own system, and decide what way is best for them.

Sasha
 
Old 03-06-2010, 02:25 PM   #19
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,899

Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
My version already includes the updated syntax for dhcpcd. I went along comparing with current as of a couple of weeks ago, so there might still be some new changes with the latest round of upgrades in current.
 
Old 03-06-2010, 02:32 PM   #20
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Linux Mint 17.1
Posts: 1,424

Rep: Reputation: 138Reputation: 138
I have built dash and the sysvinit-scripts-dash using src2pkg. By the way love how the src2pkg script makes it so simple to compile, saves me having to figure out all the options. Now I just have to figure out how brave I am.

samac
 
Old 03-06-2010, 05:35 PM   #21
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Linux Mint 17.1
Posts: 1,424

Rep: Reputation: 138Reputation: 138
Gilbert

Whoa! that was exciting. There is something wrong with the way inittab is handled in your doinst.sh, basically it doesn't rename from inittab.new to inittab. After I had got my computer going and rename it the machine booted to runlevel3 pretty well, but runlevel 4 was a complete wash out. Anyway to cut a long story short. 90 minutes later I have repaired my system, but it was fun

samac
 
Old 03-07-2010, 02:38 AM   #22
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,899

Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
Okay, guess I missed a line in the doinst for the inittab -it's unaltered anyway. Were you able to startx manually?

Alright, lets see what I missed there -you know the routine now so you should be able to repair it again if need be. I seem to have missed installing the 'services' file. That's a list of the 'minor' deamons which get started at the end of rc.M, so that's the main reason it hasn't owrked for you, I'll guess. Just copying it into /etc/rc.d should do the trick. You might want to skip using my rc.4 file as well as it is pretty non-standard.

I really should redo the whole group of files using the latest current ones and only make the necessary changes. As it is, I've used some from Sasha and mostly those from tuxdev. Both of them have supplied versions which include extra changes which most people might not want.

Thanks for trying -you are a brave soul -I know you are no 'greenhand' or I wouldn't have encouraged you...
 
Old 03-07-2010, 02:50 AM   #23
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Linux Mint 17.1
Posts: 1,424

Rep: Reputation: 138Reputation: 138
When I used startx the desktop loaded but it was essentially frozen as I had no access to mouse or keyboard. Also when pidgin popped up it did not connect to the internet. I believe that the x-server was actually running but because I could not access the computer I could not test this.

I would agree that it should be, up to date, necessary changes only at this stage. If you redo the files let me know and I will give them another go, but this time I will install a breakable version on a spare partition.

samac
 
Old 03-07-2010, 11:12 AM   #24
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,899

Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
Ha ha, sorry I caused you so much excitement. You were probably using kde ritght? Since the services file was not in there, you'd have missed messagebus and hald for that...

I'll have a fresh look at those files and make a more conservative package -still it's a bit difficult to implement cleanly because of the need to replace existing files which you may have customized, but you will have noticed that the originals were all renamed instead of removed/overwritten.
 
Old 03-07-2010, 01:24 PM   #25
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Linux Mint 17.1
Posts: 1,424

Rep: Reputation: 138Reputation: 138
Yes I use KDE, but I don't tend to customize the basic configuration files too much so they are easy to modify on an ad-lib basis. Keeping the originals re-named as original.bash is a very good way of handling this very invasive modification. Just post if you want an update tested.

samac
 
Old 03-07-2010, 02:17 PM   #26
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,899

Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
I think I've gotten them reworked in a better way, but I'm gonna sleep on them before uploading and posting.

The version you have would probably have worked except for the missing /etc/rc.d/services file. That was a mod by tuxdev which shortens the rc.M file considerably by simply listing the last minor services explicitly started by rc.M -rc.M cats the file to get the list. For the new version I have eliminated that mod to reduce the changes from the originals -even though I like the idea and suspect it may speed things up a bit.

I'll try the new versions out on my system I am testing to make sure the basic functionality is there -but it doesn't have most of those services installed and no kde or xfce, so the scope of the test will be limited...
 
Old 03-31-2010, 10:30 PM   #27
Shingoshi
Member
 
Registered: Oct 2006
Location: Cochise County, Arizona
Distribution: Gentoo-AMD64 / Slackware64-Current
Posts: 474
Blog Entries: 28

Rep: Reputation: 34
Is there a single thread to request new features for src2pkg??

I'd rather know that before starting a new thread. So if there is one, please post it. Otherwise, I'll create a thread simply for questions and requests about features in src2pkg.

Xavian-Anderson Macpherson
Shingoshi
 
Old 03-31-2010, 11:20 PM   #28
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
@ Shingoshi,

one in particular does not come to mind for me. However, some choices:

-- you might want to ask on (one of) the most recent "[announce] new src2pkg release" threads, such as this one: http://www.linuxquestions.org/questi...leased-781261/

-- or contact gnashley by email and inquire/present your ideas.

-- or, create a thread specifically for src2pkg feature requests, if none exists.

just some ideas
 
Old 04-01-2010, 03:18 AM   #29
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,899

Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
Xavian, you know my email address perfectly well.
 
Old 04-01-2010, 09:38 AM   #30
Shingoshi
Member
 
Registered: Oct 2006
Location: Cochise County, Arizona
Distribution: Gentoo-AMD64 / Slackware64-Current
Posts: 474
Blog Entries: 28

Rep: Reputation: 34
Following orders...

Quote:
Originally Posted by gnashley View Post
Xavian, you know my email address perfectly well.
Email sent!

Xavian-Anderson Macpherson
Shingoshi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to boot fast? hugihugi Linux - Laptop and Netbook 1 05-28-2008 08:32 PM
celeron 1200 256MB ram dual boot with xp distro suggestion expected oguzhana Linux - Distributions 5 01-10-2008 05:12 PM
My Personal Suggestion For A Vista/linux Easy And Secure Dual Boot DOTT.EVARISTI Linux - Software 2 07-18-2007 02:10 AM
Fast Boot time monkeymartin Linux - General 2 09-23-2003 08:07 PM
Need Help Fast - Server won't boot kau Linux - General 4 05-13-2002 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration