إعـــــــلان

تقليص
لا يوجد إعلان حتى الآن.

أثناء تنصيب Slax

تقليص
X
 
  • تصفية - فلترة
  • الوقت
  • عرض
إلغاء تحديد الكل
مشاركات جديدة

  • [مشكلة] أثناء تنصيب Slax

    السﻻم عليكم :

    شباب واجهتني مشكلة اثناء تنصيب Slax وهي عدم القدر على تشغيل bootinst.sh

    ﻻحظو خطوات التنصيب واذا وجد خطا أرجو اخباري

    كود PHP:
    umount /dev/hda3
    mkfs
    .ext3 /dev/hda3
    mount 
    /dev/hda3 /mnt/hda3
    cp 
    -rf {/mnt/live/mnt/hdb/boot,/mnt/live/mnt/hdb/slax} /mnt/hda3
    cd 
    /mnt/hda3/boot
    ./bootinst.sh 
    عند تنفيذ اﻷمر اﻷخير يعطيني خطأ ونسيت انسخو

    احاكيكم اﻵن من اوبنتو طبعا الخطا بعد تشغيل البرنامج بذكر انو يعطيني hda مع انو مو موجود ابدا

    بانتظاركم
    التعديل الأخير تم بواسطة G705T; الساعة 02-09-2010, 11:52 AM.

  • #2
    شباب حليت المشكلة عن طريق Script بصيغة Kmdr وساضعه امامكم يلي يواجه المشكلة نفسها

    كود PHP:
    <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
    <class>
    Form1</class>
    <
    widget class="Dialog">
        <
    property name="name">
            <
    cstring>Form1</cstring>
        </
    property>
        <
    property name="geometry">
            <
    rect>
                <
    x>0</x>
                <
    y>0</y>
                <
    width>380</width>
                <
    height>380</height>
            </
    rect>
        </
    property>
        <
    property name="caption">
            <
    string>SLAX installer</string>
        </
    property>
        <
    property name="associations" stdset="0">
            <
    stringlist>
                <
    string></string>
                <
    string>@StatusBar1.setText("Wait please, searching for SLAX CD...")

    @
    ComboBox1.insertItems(@exec('cat /proc/mounts |grep -v loop |grep "/mnt" |grep -v "/mnt/live" |grep -v "/mnt/_" |grep -v "/mnt/cdrom_" |cut -d " " -f 2 |grep -v "/proc" | egrep -v "^/dev|^/sys|^proc|^/\$"'),0)

    @
    ComboBox2.insertItems(@exec('fdisk -l |egrep -o "/dev/[a-z]+" | uniq'),0)

    @
    ComboBox3.insertItems(@exec('find /mnt/live/memory -maxdepth 2  -name livecd.sgn |xargs -r -n 1 dirname'),0)
    @
    ComboBox3.insertItems(@exec('find /mnt -maxdepth 2  -name livecd.sgn |xargs -r -n 1 dirname'),0)
    @
    ComboBox3.insertItems(@exec('find /boot -maxdepth 1  -name livecd.sgn |xargs -r -n 1 dirname'),0)

    @
    StatusBar1.setText("Select target and click Go...")
    @
    CloseButton1.setVisible(false)

    </
    string>
                <
    string></string>
            </
    stringlist>
        </
    property>
        <
    widget class="ComboBox">
            <
    property name="name">
                <
    cstring>ComboBox1</cstring>
            </
    property>
            <
    property name="geometry">
                <
    rect>
                    <
    x>181</x>
                    <
    y>108</y>
                    <
    width>188</width>
                    <
    height>21</height>
                </
    rect>
            </
    property>
            <
    property name="editable">
                <
    bool>true</bool>
            </
    property>
            <
    property name="populationText">
                <
    string></string>
            </
    property>
            <
    property name="associations" stdset="0">
                <
    stringlist>
                    <
    string>@widgetText</string>
                </
    stringlist>
            </
    property>
        </
    widget>
        <
    widget class="QLayoutWidget">
            <
    property name="name">
                <
    cstring>Layout14</cstring>
            </
    property>
            <
    property name="geometry">
                <
    rect>
                    <
    x>10</x>
                    <
    y>70</y>
                    <
    width>150</width>
                    <
    height>100</height>
                </
    rect>
            </
    property>
            <
    vbox>
                <
    property name="name">
                    <
    cstring>unnamed</cstring>
                </
    property>
                <
    property name="margin">
                    <
    number>0</number>
                </
    property>
                <
    property name="spacing">
                    <
    number>6</number>
                </
    property>
                <
    widget class="Label">
                    <
    property name="name">
                        <
    cstring>Label6_2</cstring>
                    </
    property>
                    <
    property name="text">
                        <
    string>Source (SLAX CD):</string>
                    </
    property>
                </
    widget>
                <
    widget class="Label">
                    <
    property name="name">
                        <
    cstring>Label2</cstring>
                    </
    property>
                    <
    property name="text">
                        <
    string>Install SLAX to:</string>
                    </
    property>
                    <
    property name="associations" stdset="0">
                        <
    stringlist>
                            <
    string></string>
                        </
    stringlist>
                    </
    property>
                </
    widget>
                <
    widget class="Label">
                    <
    property name="name">
                        <
    cstring>Label6</cstring>
                    </
    property>
                    <
    property name="text">
                        <
    string>Write MBR to:</string>
                    </
    property>
                    <
    property name="associations" stdset="0">
                        <
    stringlist>
                            <
    string></string>
                        </
    stringlist>
                    </
    property>
                </
    widget>
            </
    vbox>
        </
    widget>
        <
    widget class="ComboBox">
            <
    property name="name">
                <
    cstring>ComboBox2</cstring>
            </
    property>
            <
    property name="geometry">
                <
    rect>
                    <
    x>181</x>
                    <
    y>140</y>
                    <
    width>188</width>
                    <
    height>21</height>
                </
    rect>
            </
    property>
            <
    property name="editable">
                <
    bool>true</bool>
            </
    property>
            <
    property name="associations" stdset="0">
                <
    stringlist>
                    <
    string>@widgetText</string>
                </
    stringlist>
            </
    property>
        </
    widget>
        <
    widget class="ComboBox">
            <
    property name="name">
                <
    cstring>ComboBox3</cstring>
            </
    property>
            <
    property name="geometry">
                <
    rect>
                    <
    x>181</x>
                    <
    y>76</y>
                    <
    width>188</width>
                    <
    height>21</height>
                </
    rect>
            </
    property>
            <
    property name="editable">
                <
    bool>true</bool>
            </
    property>
            <
    property name="associations" stdset="0">
                <
    stringlist>
                    <
    string>@widgetText</string>
                </
    stringlist>
            </
    property>
        </
    widget>
        <
    widget class="ButtonGroup">
            <
    property name="name">
                <
    cstring>ButtonGroup1</cstring>
            </
    property>
            <
    property name="geometry">
                <
    rect>
                    <
    x>10</x>
                    <
    y>180</y>
                    <
    width>360</width>
                    <
    height>80</height>
                </
    rect>
            </
    property>
            <
    property name="title">
                <
    string>Installation method</string>
            </
    property>
            <
    widget class="RadioButton">
                <
    property name="name">
                    <
    cstring>RadioButton2</cstring>
                </
    property>
                <
    property name="geometry">
                    <
    rect>
                        <
    x>10</x>
                        <
    y>20</y>
                        <
    width>275</width>
                        <
    height>19</height>
                    </
    rect>
                </
    property>
                <
    property name="text">
                    <
    string>Real (&amp;3500 MB required)</string>
                </
    property>
                <
    property name="checked">
                    <
    bool>true</bool>
                </
    property>
                <
    property name="associations" stdset="0">
                    <
    stringlist>
                        <
    string>exit</string>
                        <
    string>@forEach(dir, @exec(ls -/ | egrep -"^dev"  egrep -"^proc" egrep -"^mnt" egrep -"^boot"  egrep -"^sys"  egrep -"^tmp" ))
      @
    ProgressBar1.setMaximum(@dir_count)
      @
    StatusBar1.setText(copying /@dir ...)
      @
    exec(cp --preserve=all -/@dir @ComboBox1/)
      @
    ProgressBar1.setText(@dir_index)
    @
    end

    @exec("mkdir -p @ComboBox1/{tmp,boot,mnt,dev,sys,proc}")
    @
    exec(cd @ComboBox1/ &amp;&ampcat etc/fstab |egrep -"/mnt/[a-z0-9]+" cut -b 2- |xargs mkdir)

    @
    exec("device=$(cat /proc/mounts |grep @ComboBox1 |cut -d " " -f 1) &amp;&amp; echo "$device auto defaults 1 1" &gt;@ComboBox1/etc/fstab &amp;&amp; cat /etc/fstab | grep -v $device &gt;&gt;@ComboBox1/etc/fstab")
    @
    exec("rm @ComboBox1/etc/mtab")

    @
    exec("cp @ComboBox3/boot/vmlinuz @ComboBox1/boot")
    @
    exec("cp --preserve -R /dev/null @ComboBox1/dev")
    @
    exec("cp --preserve -R /dev/console @ComboBox1/dev")
    @
    exec("mount -o bind /dev @ComboBox1/dev")
    @
    exec("mount -t proc proc @ComboBox1/proc")


    @
    exec(echo "
    boot = @ComboBox2
    prompt
    timeout = 20
    change-rules
    reset
    vga = normal
    image = /boot/vmlinuz
      root = current
      label = SLAX
      read-only
    &gt;@ComboBox1/etc/lilo.conf)

    @
    StatusBar1.setText("Synchronizing, wait please...")
    @
    exec("sync")

    @
    StatusBar1.setText("Installing boot loader LILO...")

    @
    exec("lilo -r @ComboBox1 -s /dev/null 2&gt;/var/log/slax-lilo-install.log")

    @
    exec("umount @ComboBox1/dev")
    @
    exec("umount @ComboBox1/proc")
    </
    string>
                    </
    stringlist>
                </
    property>
            </
    widget>
            <
    widget class="Label">
                <
    property name="name">
                    <
    cstring>Label5</cstring>
                </
    property>
                <
    property name="geometry">
                    <
    rect>
                        <
    x>30</x>
                        <
    y>40</y>
                        <
    width>275</width>
                        <
    height>29</height>
                    </
    rect>
                </
    property>
                <
    property name="text">
                    <
    string>- Install SLAX like real Linuxdecompressed
    to harddisk in desktop computer</string>
                </
    property>
            </
    widget>
        </
    widget>
        <
    widget class="QLayoutWidget">
            <
    property name="name">
                <
    cstring>Layout12</cstring>
            </
    property>
            <
    property name="geometry">
                <
    rect>
                    <
    x>10</x>
                    <
    y>270</y>
                    <
    width>360</width>
                    <
    height>63</height>
                </
    rect>
            </
    property>
            <
    vbox>
                <
    property name="name">
                    <
    cstring>unnamed</cstring>
                </
    property>
                <
    property name="margin">
                    <
    number>0</number>
                </
    property>
                <
    property name="spacing">
                    <
    number>6</number>
                </
    property>
                <
    widget class="StatusBar">
                    <
    property name="name">
                        <
    cstring>StatusBar1</cstring>
                    </
    property>
                    <
    property name="associations" stdset="0">
                        <
    stringlist>
                            <
    string></string>
                        </
    stringlist>
                    </
    property>
                </
    widget>
                <
    widget class="ProgressBar">
                    <
    property name="name">
                        <
    cstring>ProgressBar1</cstring>
                    </
    property>
                    <
    property name="lineWidth">
                        <
    number>1</number>
                    </
    property>
                    <
    property name="progress">
                        <
    number>0</number>
                    </
    property>
                    <
    property name="associations" stdset="0">
                        <
    stringlist>
                            <
    string></string>
                        </
    stringlist>
                    </
    property>
                </
    widget>
            </
    vbox>
        </
    widget>
        <
    widget class="ExecButton">
            <
    property name="name">
                <
    cstring>ExecButton1</cstring>
            </
    property>
            <
    property name="enabled">
                <
    bool>true</bool>
            </
    property>
            <
    property name="geometry">
                <
    rect>
                    <
    x>290</x>
                    <
    y>340</y>
                    <
    width>80</width>
                    <
    height>29</height>
                </
    rect>
            </
    property>
            <
    property name="text">
                <
    string>&amp;Install</string>
            </
    property>
            <
    property name="populationText">
                <
    string></string>
            </
    property>
            <
    property name="associations" stdset="0">
                <
    stringlist>
                    <
    string>
    @
    ExecButton1.setText("Wait...")
    @
    StatusBar1.setText("Counting all files, please wait...")
    @
    RadioButton2
    @StatusBar1.setText("All done! click Close button.")
    @
    ExecButton1.setVisible(false)
    @
    CloseButton1.setVisible(true)

    </
    string>
                </
    stringlist>
            </
    property>
            <
    property name="blockGUI">
                <
    enum>GUI</enum>
            </
    property>
        </
    widget>
        <
    widget class="CloseButton">
            <
    property name="name">
                <
    cstring>CloseButton1</cstring>
            </
    property>
            <
    property name="geometry">
                <
    rect>
                    <
    x>290</x>
                    <
    y>340</y>
                    <
    width>80</width>
                    <
    height>29</height>
                </
    rect>
            </
    property>
            <
    property name="text">
                <
    string>&amp;Close</string>
            </
    property>
        </
    widget>
        <
    widget class="Label">
            <
    property name="name">
                <
    cstring>Label13</cstring>
            </
    property>
            <
    property name="geometry">
                <
    rect>
                    <
    x>40</x>
                    <
    y>10</y>
                    <
    width>360</width>
                    <
    height>50</height>
                </
    rect>
            </
    property>
            <
    property name="font">
                <
    font>
                    <
    pointsize>20</pointsize>
                    <
    bold>1</bold>
                </
    font>
            </
    property>
            <
    property name="text">
                <
    string>SLAX Live Installer</string>
            </
    property>
        </
    widget>
    </
    widget>
    <
    tabstops>
        <
    tabstop>ComboBox3</tabstop>
        <
    tabstop>ComboBox1</tabstop>
        <
    tabstop>ComboBox2</tabstop>
        <
    tabstop>CloseButton1</tabstop>
        <
    tabstop>ExecButton1</tabstop>
        <
    tabstop>RadioButton2</tabstop>
    </
    tabstops>
    <
    layoutdefaults spacing="6" margin="11"/>
    </
    UI
    احفظ كود بامتداد kmdr ثم عدل على صﻻحيات واجعلها Execute ثم شغل البرنامج بأي مشغل برامج kmdr حظ موفق

    تعليق

    يعمل...
    X