Results 1 to 8 of 8

Thread: Create custom home enviroment at boot (all from cd !!)

  1. #1
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Belgium
    Posts
    252

    Create custom home enviroment at boot (all from cd !!)

    I'd like to write a remastering procedure for linux newbies (like myself)
    to easely produce remastered knoppix cd's based on 3.2 release with custom home dir. (using the persistant home dir img-file)
    Since I'm a linux newbie I'd like some practical advice on how pulling this one off.
    What has to be done :
    -create a knoppix remastering procedure where I can use the img file
    that I use for my persistant home drive (and that's now on harddisk)
    If I use it straight fom the cd it will be read-only and could pose problems.
    So it got to be used like the default home drive like you get with the original knoppix.
    Extra items to be inserted :
    -easely create autostartup programs from home dir=>howto
    -remove autostart konqueror

    Anybody an idea ?

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Belgium
    Posts
    252
    Here's another idea:
    Maybe adapt some beginscript (knoppix-autoconfig, or something else ??) in order to copy at boot the home img-file from a known directory from the cd to a ramdisk mount ? And then together use the option home=/locationofimgfileinramdrive .. ?
    Since I'm a linux newbie I don't know much about which files are doiing what .So these 2 questions here above are just questions to point me out if these ideas are just ridicule or if they are do-able (and if they are do-able maybe point me out which files to adapt ?).

  3. #3
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    IMO, the key to customizing KNOPPIX lies in the following two files :

    1. the 'linuxrc' file in miniroot.gz(in the boot image)

    2. etc/rcS.d/S00knoppix-autoconfig

    I have played around with linuxrc but will venture more when I get my system working the way I want.

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159
    In my opinion, there should be a /home and a /etc directory on the CD where you could place your configs and the contents of which would overwrite the Knoppix defaults.

  5. #5
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Belgium
    Posts
    252
    My goal is that any newbie who uses persistant home drive ,just has to copy the img-home-file to the root of the cd and at boot he got his own personal inviroment with his personal programs (from h-drive and so on).

    This can easely be done by creating multi-session cd.

    First create a smaller remastered knoppix version (with the proper changes to use the img file from the cd)

    Then afterwards add the img file with multi-session.

    You're right with the /home and /etc ,but using the img file your sure you got everything from your home enviroment with you and it's easier.

    How to create the changes to use the img file from the cd is a lot harder I think,that's why I use the forum. 1000 brains can thin more

  6. #6
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Belgium
    Posts
    252
    Ok. I'm really starting my project now.
    I went to mount the boot.img located on the cd.
    I then extraced the miniroot from miniroot.gz and mounted it. (in read/write mode)
    Following the advices I did a vi on linuxrc.

    I found the section :
    .
    ..
    # New: Also try parallel port CD-Roms [for Mike].
    DEVICES="$DEVICES /dev/pcd?"
    # New: also check HD partitions for a KNOPPIX/KNOPPIX image
    test -n "$FOUND_SCSI" && DEVICES="$DEVICES /dev/sd?[1-9] /dev/sd?[1-9][0-9]"
    DEVICES="$DEVICES /dev/hd?[1-9] /dev/hd?[1-9][0-9]"
    for i in $DEVICES
    do
    echo -n "${CRE}${BLUE}Looking for CDROM in: ${MAGENTA}$i${NORMAL} "
    if mountit $i /cdrom "-o ro" >/dev/null 2>&1
    then
    if test -d /cdrom/KNOPPIX
    then
    echo -n "${CRE} ${GREEN}Accessing KNOPPIX CDROM at ${MAGENTA}$i${GREEN}...${NORM
    AL}"
    FOUND_KNOPPIX="$i"
    break
    fi
    umount /cdrom
    fi
    done

    Where cdrom drive is mounted and knx looks for an img file on SD or HD devices.
    My question:
    1)How to change this in order that knx will copy any *.img file from /dev/cdrom to /dev/ramdisk ?
    2)How to change this in order that knx adds a home search to /dev/ramdisk ?
    I'd like to do the same with config files created on floppy. Meaning : put them on the root
    of the cd and boot the system with cd cheatcodes knoppix home=/dev/ramdisk myconfig=/dev/cdrom

    If these two items can be inserted ,then I can finally use the easy custom home cd solution.
    It's not that I'm lazy,but my scripting knowledge is very limited

  7. #7
    Junior Member
    Join Date
    Dec 2002
    Location
    Esztergom, Hungary, Europe
    Posts
    6
    well, all i did was:
    started some programs, creating config files and directories at /home/knoppix
    (u can tweak kderc, gtkrc, and so on...)
    then copied these things to /etc/skel before remastering and edited knoppix-autoconfig to copy these stuff from the cd to /home/knoppix.
    then remastered, and alas, it worked

  8. #8
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Belgium
    Posts
    252
    I agree.
    BUT..
    Using my method you wouldn't have to recompile everytime your cd
    when the content of you home drive has changed.
    Just use once the recompiled knx and add you img file in multisession.

Similar Threads

  1. Custom files in /etc/skel/ do not appear in $HOME :(((
    By your_breakfast in forum Customising & Remastering
    Replies: 6
    Last Post: 12-15-2004, 10:37 PM
  2. can't create a persistent home
    By newbie3777 in forum General Support
    Replies: 1
    Last Post: 10-03-2004, 11:09 PM
  3. Replies: 0
    Last Post: 02-10-2004, 09:09 PM
  4. Create a persistent Knoppix home directory?
    By spydie in forum General Support
    Replies: 2
    Last Post: 12-23-2003, 12:09 PM
  5. Problems with custom kernel: "/linuxrc: cannot create..
    By mkg in forum Customising & Remastering
    Replies: 2
    Last Post: 11-11-2003, 01:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


AUDIO CODES  MP-114 VOIP Gateway Open Box picture

AUDIO CODES MP-114 VOIP Gateway Open Box

$24.99



IXIA XR100 VOIP PROBE picture

IXIA XR100 VOIP PROBE

$199.99



Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black picture

Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black

$32.00



Cisco VG202XM Analog Voice Gateway VoIP -- [NEW/FULL KIT] picture

Cisco VG202XM Analog Voice Gateway VoIP -- [NEW/FULL KIT]

$76.00



Yealink W73H IP DECT VOIP Phone picture

Yealink W73H IP DECT VOIP Phone

$10.00



New Cisco 7945G IP VoIP Gigabit GIGE Telephone Phone CP-7945G -  picture

New Cisco 7945G IP VoIP Gigabit GIGE Telephone Phone CP-7945G -

$24.95



Cisco CP-7945G VOIP Phone With Stand & Handset Business IP Phone 7945 picture

Cisco CP-7945G VOIP Phone With Stand & Handset Business IP Phone 7945

$3.00



Yealink T54W IP Phone, 16 VoIP Accounts. 4.3-Inch Color Display - Black picture

Yealink T54W IP Phone, 16 VoIP Accounts. 4.3-Inch Color Display - Black

$99.99



LOT OF 10 Cisco CP-7841-K9 VoIP 4-Line Business Phone w/ Stand Handset Cord picture

LOT OF 10 Cisco CP-7841-K9 VoIP 4-Line Business Phone w/ Stand Handset Cord

$69.99



Yealink SIP-T41P PoE Ultra Elegant VoIP Phone  picture

Yealink SIP-T41P PoE Ultra Elegant VoIP Phone

$29.95