Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30

Thread: Knoppix V6.7.1

  1. #11
    Moderator Moderator
    Join Date
    Mar 2004
    Location
    Menlo Park, California
    Posts
    674
    Hello,
    I have a problem with the bash recall line feature when used with Midnight commander in the background
    and I was wondering if someone already found a solution or an explanation about what is going on:
    The setup: start a teminal emulator shell, start Midnight Commander (mc), press ctrl-o to hide mc,
    type a shell command like "ls", press ctrl-o again (to get the mc back), navigate into a folder and back
    to exercise midnight commander (use arrows to go over a folder like ".adobe", press enter to go into it
    and enter again to go back to the previous level), press ctrl-o to hide mc, use the up arrow to get
    the previous command typed (should be "ls") but instead some garbage shows up like:
    cd "`printf "%b" '\0057home\0057knoppix'`"
    and if you keep pressing the "up" arrows key you will get some more garbage until you eventually
    get the expected last command typed (ls). This problem already appeared in previous versions
    of Knoppix and is very annoying (at least to me) as I use this feature a lot.
    Please respond if you have a solution or can provide some clue about how to fix it.
    Thanks,
    Gilles

  2. #12
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Hi, Gilles.

    My guess is that mc has a small syntax error in the line you call garbage.

    There are lots of possibilities, for one thing; and for another, the
    syntax doesn't agree with what man printf would lead you to expect.

    /usr/bin/mc is binary, so I guess you'd have to look at the source to see
    if changing \0057 to \u0057 in two places there solves this problem.

    If it does, there are probably more similar errors, maybe due to some
    change in conventions.

  3. #13
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Debian uses the lines
    Code:
    # don't put duplicate lines in the history. See bash(1) for more options
    # don't overwrite GNU Midnight Commander's setting of `ignorespace'.
    export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
    # ... or force ignoredups and ignorespace
    export HISTCONTROL=ignoreboth
    I wrote this lines in '/etc/bash.bashrc' and deactivated the line
    Code:
    export HISTCONTROL=ignoredups
    I will watch it for some days within Knoppix, but it seems, it solves the problem.

    Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
    Own Rescue-CD (Knoppix V6.7.1 remaster)

  4. #14
    Moderator Moderator
    Join Date
    Mar 2004
    Location
    Menlo Park, California
    Posts
    674
    Hi Werner,
    Replacing "export HISTCONTROL=ignoredups" by
    "export HISTCONTROL=ignoreboth" in the file "/etc/bash.bashrc" fixes it.
    Thank you very much !

    In a similar register, if you type "set" in a root shell you get some garbage at the end
    (most likely some left over from a bogus script). Before I spend any more time to look for
    that script to fix, do you or someone else already have a solution ?
    Best Regards,
    Gilles

  5. #15
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    In a similar register, if you type "set" in a root shell you get some garbage at the end
    (most likely some left over from a bogus script).
    It dependes on activating or not of the three lines in '/etc/bash.bashrc' after
    Code:
    # enable bash completion in interactive shells
    Within Debian this part is deactivated in '/etc/bash.bashrc' and therefore also for root. But each of the users have a file '/home/xyz/.bashrc' and this mentioned part within, but activated.

    Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
    Own Rescue-CD (Knoppix V6.7.1 remaster)

  6. #16
    Moderator Moderator
    Join Date
    Mar 2004
    Location
    Menlo Park, California
    Posts
    674
    Hi Werner,
    Again thank you very much !
    Yes disabling or renaming the script "/etc/bash_completion"
    to something else like "/etc/bash_completion.old" fixes it.

    According to some mailing list it is a feature for the the script
    "bash_completion" to add the bash functions to the shell variables.
    It is kind of surprising to me but this is not considered as a bug...
    Best Regards,
    Gilles

  7. #17
    Junior Member
    Join Date
    Oct 2011
    Posts
    1
    Run in LXTerminal:
    lxpanelctl config
    click the appears to top, there is no bug.

  8. #18
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Greetings, ericguo

    If your comment is in regard to Werner's post #3,
    the issue is whether or not the MENU is operative for
    the lxpanel located at the top of the screen.

    I have confirmed Werber's initial observation that
    it is NOT operative.

    Can you clarify whether or not you disagree on this?

  9. #19
    Moderator Moderator
    Join Date
    Mar 2004
    Location
    Menlo Park, California
    Posts
    674
    Hello,
    It looks like that Knoppix 6.7.1 is missing the header files in the /usr/include/[bits,gnu,sys] folders.
    Copying these folders from Knoppix 6.7.0 fixes it. Gcc/ld may also be missing something in order to
    compile 64 bits binaries (the pi benchmark as an example: http://h2np.net/pi/pi_record_e.html)
    First the 64 bits libraries need to be installed: "sudo apt-get -y --reinstall install amd64-libs-dev"
    and downgrade gcc from 4.6 to 4.4: "pushd /usr/bin; sudo mv gcc gcc.old; sudo ln -s gcc-4.4 gcc; popd".
    FYI, trying to use gcc 4.6 (the default) instead of gcc 4.4 (downgrade) provides the following error:

    gcc -O2 -pedantic -m64 conftest.c
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.6.1/libgcc.a when searching for -lgcc
    /usr/bin/ld: cannot find -lgcc
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.6.1/libgcc_s.so when searching for -lgcc_s
    /usr/bin/ld: cannot find -lgcc_s
    collect2: ld returned 1 exit status

    What is the best way to fix gcc/ld 4.6 ?
    Best Regards,
    Gilles

  10. #20
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    Hi Gilles,

    I was able to compile and run the pi benchmark program on Knoppix 6.7.1 DVD after I had installed gcc-4.6-multilib and some other packages of the Debian unstable branch (sid).

    Here is a short overview of my approach.

    0. apt-get update

    1. download new libc6, libc6-dev (unstable): apt-get -d -t sid install libc6 libc6-dev

    2. switch to runlevel 2 to avoid complications with running applications: init 2

    3. upgrade libc6:
    chroot /UNIONFS/
    apt-get -t sid install libc6 libc6-dev
    exit

    4. switch back to runlevel 5: init 5

    5. apt-get -t sid --reinstall install libc6-dev-amd64 gcc-4.6-multilib lib64gcc1

    6. download and extract pi_quick_start.tar.gz

    7. change to the new directory pi_quick_start

    8. edit the file start.sh: find the two lines beginning with "cc" and replace "cc" with "gcc -m64"

    9. set environment variable CFLAGS: export CFLAGS=-m64

    10. run the script: ./start.sh


    Best Regards

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

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


Knoppix 9.1 Live Linux GNU Bootable USB Flash Drive USA picture

Knoppix 9.1 Live Linux GNU Bootable USB Flash Drive USA

$19.99



Knoppix NSM 1.2 picture

Knoppix NSM 1.2

$8.50



Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive picture

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive

$9.99



New Knoppix 9.2 Pro Bootable Live OS x86 64Bit DVD Linux picture

New Knoppix 9.2 Pro Bootable Live OS x86 64Bit DVD Linux

$9.97



Linux Knoppix 4.0.2 Installation Disc picture

Linux Knoppix 4.0.2 Installation Disc

$39.99



Hamshack Live DVD-ROM picture

Hamshack Live DVD-ROM

$12.00



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick

$20.30



KNOPPIX 9.1 LINUX INSTALL & LIVE DVD picture

KNOPPIX 9.1 LINUX INSTALL & LIVE DVD

$9.99



Acer Aspire One 9 inch Netbook ZG5 512MB RAM 8GB SSD HD Knoppix Linux WiFi VGA picture

Acer Aspire One 9 inch Netbook ZG5 512MB RAM 8GB SSD HD Knoppix Linux WiFi VGA

$79.99



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick

$19.95