Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » Installation Support

Post new topic   Reply to topic
Disabling services in live usb
View previous topic :: View next topic  
Author Message
gustavoc
Junior Member


Joined: 13 Feb 2011
Posts: 3

PostPosted: Thu Feb 17, 2011 2:10 am    Post subject: Disabling services in live usb Reply with quote

Hi all,

I'm new to the list, I've been using Slackware since 10.2 and recently I started a project to set up a minimal linux and found SMS.
I want to modify the live version to only start the services I need. To do that I did the following (summarized..)

lzm2dir etc.lzm
chmod -x etc/rc.d/rc.script_unwanted
dir2lzm etc/ etc.lzm
replace original etc.lzm with modified one
boot live from usb

and fail...

It seems that the boot process couldn't build the etc directory on the tree and the process stops because no inittab file was found
I also replaced the edited file with an original copy from the iso and no success, the only way to boot the system is installing the entire iso again on the pendrive.

Thanks in advance!

_________________
Gustavo
Patagonia
Argentina
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Thu Feb 17, 2011 6:31 am    Post subject: Reply with quote

It's quite easy just navigate to sms/base and do
Code:
mkdir tmp
lzm2dir etc.lzm tmp/
chmod -x tmp/etc/rc.d/{rc.samba,rc.hylafax}
dir2lzm tmp/ z_disabled_services.lzm
rm -r tmp

And you are ready.
If you disable hylafax you need also to do
sed -e 's/d1:12345:respawn:/#d1:12345:respawn:/g' -i tmp/etc/inittab
and remove the cron jobs from /tmp/etc/cron.*

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
gustavoc
Junior Member


Joined: 13 Feb 2011
Posts: 3

PostPosted: Thu Feb 17, 2011 2:52 pm    Post subject: Reply with quote

Hi gerasimos_h,

Many thanks for your help, this time worked fine.
My error was that I replaced the original etc.lzm file, instead of creating a new one that overwrites the etc/ contents with the modified files.
I'm sure we'll be in touch soon.
Thanks again!

_________________
Gustavo
Patagonia
Argentina
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » Installation Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional