Results 1 to 9 of 9

Thread: prepare-kernel-sources

  1. #1
    Junior Member SWFu64's Avatar
    Join Date
    Jan 2010
    Posts
    97

    Default prepare-kernel-sources

    Unsure if this has got anything to do with my nvidia driver issues on both 32/64bit Gnome.

    Code:
    root@root:~# prepare-kernel-sources[*] apt-getting linux-source...
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    linux-source is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.[*] extracting sources, please wait[*] doing stuff...
    cp: missing destination file operand after `/boot/'
    Try `cp --help' for more information.
    scripts/kconfig/conf --silentoldconfig Kconfig
      CHK     include/linux/version.h
      CHK     include/generated/utsrelease.h
      CALL    scripts/checksyscalls.sh[*] tada!
    "I do not know with what weapons World War III will be fought, but World War IV will be fought with sticks and stones."

    Albert Einstein

  2. #2
    Developer muts's Avatar
    Join Date
    Jan 2006
    Posts
    272

    Default Re: prepare-kernel-sources

    It's a very dirty script....You might want to look at the commands and recreate manually.

  3. #3
    Just burned his ISO
    Join Date
    Aug 2007
    Posts
    6

    Default Re: prepare-kernel-sources

    I got the same thing with gnome x64, maybe it only works for kde? I don't think the cp command would work either way though, there's no destination folder given. What is it supposed to be?

    Code:
    root@bt:~# prepare-kernel-sources[*] apt-getting linux-source...
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    linux-source is already the newest version.
    The following packages were automatically installed and are no longer required:
      libecryptfs0 libdmraid1.0.0.rc16 libdebconfclient0 ecryptfs-utils cryptsetup
      rdate bogl-bterm libdebian-installer4 reiserfsprogs dmraid python-pyicu
      keyutils
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.[*] extracting sources, please wait[*] doing stuff...
    cp: missing destination file operand after `/boot/'
    Try `cp --help' for more information.
    scripts/kconfig/conf --silentoldconfig Kconfig
      CHK     include/linux/version.h
      CHK     include/generated/utsrelease.h
      CALL    scripts/checksyscalls.sh[*] tada!
    Code:
    root@bt:/usr/src/linux# more /usr/bin/prepare-kernel-sources 
    #!/bin/bash
    VER=`uname -r`
    echo "[*] apt-getting linux-source..."
    apt-get install linux-source
    cd /usr/src/
    echo "[*] extracting sources, please wait"
    tar jxpf linux-source-$VER.tar.bz2
    echo "[*] doing stuff..."
    rm -rf linux
    ln -s linux-source-$VER linux
    cd linux
    zcat /proc/config.gz > .config
    cp /boot/
    make scripts
    make prepare
    ln -s /usr/src/linux /lib/modules/$VER/build
    echo "[*] tada!"

  4. #4
    Just burned his ISO Virulent87's Avatar
    Join Date
    Feb 2011
    Posts
    23

    Default Re: prepare-kernel-sources

    Got same problem. My nVidia wont install.

  5. #5
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default Re: prepare-kernel-sources

    Quote Originally Posted by Virulent87 View Post
    Got same problem. My nVidia wont install.
    In the future please try to be a bit more detailed. This will not only help you, but others as well.
    Thanks
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  6. #6
    Just burned his ISO
    Join Date
    Jan 2011
    Posts
    1

    Default Re: prepare-kernel-sources

    Got same problem. I can't install VMware tools on BT5.

  7. #7
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: prepare-kernel-sources

    Quote Originally Posted by Yulii View Post
    Got same problem. I can't install VMware tools on BT5.
    Did you follow the official guide ? Installing VMware Tools in Backtrack5
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

  8. #8
    Member
    Join Date
    May 2010
    Posts
    85

    Default Re: prepare-kernel-sources

    Hi

    I have a clone of BT5 R1 Gnome 64bits on VirtualBox. So, before you install any program I install in BT inside VirtualBox.

    I installed VMWare Player by following this link: http://www.backtrack-linux.org/wiki/..._VMware_Player

    When I went to open the VM it gave an error that was corrected by following this: http://www.backtrack-linux.org/wiki/...Kernel_Headers

    Works fine

    So I install on my main OS (BT5 R1 64bits Gnome). Then the same error occurred! I was running Preparing Kernel Headers and:

    # prepare-kernel-sources
    prepare-kernel-sources: command not found
    I was check the headers that were installed, they are:

    linux-libc-dev
    linux-headers-2.6.39.4
    linux-headers
    libdnet-dev
    linux-source-2.6.39.4
    kernel-package
    Everything seems to be ok! But I do not understand why is giving the error.

    I appreciate any help!

    My notebook is: Dell Inspirion, i5.

    VGA compatible controller
    Core Processor Integrated Graphics Controller
    Intel Corporation
    Hugs
    Given enough eyeballs, all bugs are shallow - Linus's Law

  9. #9
    Member
    Join Date
    May 2010
    Posts
    85

    Default Re: prepare-kernel-sources

    Solved! I did a big upgrade by Synaptic ... and then I use the Fixed-kernel-sources prepared script.

    Hugs
    Given enough eyeballs, all bugs are shallow - Linus's Law

Similar Threads

  1. Replies: 0
    Last Post: 05-11-2011, 04:57 AM
  2. Replies: 10
    Last Post: 12-12-2010, 02:58 PM
  3. How to install backtrack 3 kernel sources
    By purehate in forum OLD BackTrack3 Howtos
    Replies: 6
    Last Post: 08-15-2009, 08:26 AM
  4. kernel sources (for vmwareplayer installation)
    By hackbert in forum OLD Newbie Area
    Replies: 1
    Last Post: 06-01-2007, 08:01 PM
  5. how to prepare senao 2511 for BT2?
    By Hayder in forum OLD Newbie Area
    Replies: 11
    Last Post: 03-25-2007, 11: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
  •