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
  •  


OEM Dell 130W HA130PM130 DA130PM130 Laptop Power Adapter Charger 4.5mm 6TTY6 XPS picture

OEM Dell 130W HA130PM130 DA130PM130 Laptop Power Adapter Charger 4.5mm 6TTY6 XPS

$26.99



OEM 130W USB-C Type-C Charger for Dell XPS 15 9500 9570 9575 17 9700 DA130PM170 picture

OEM 130W USB-C Type-C Charger for Dell XPS 15 9500 9570 9575 17 9700 DA130PM170

$34.88



Genuine OEM 65W Dell PA-12 AC Adapter Charger For 928G4 LA65NS2-01 n4010 D531N picture

Genuine OEM 65W Dell PA-12 AC Adapter Charger For 928G4 LA65NS2-01 n4010 D531N

$13.99



Genuine OEM DELL Slim 90W AC Charger Adapter HH44H LA90PM130 DA90PM130 05GT3K picture

Genuine OEM DELL Slim 90W AC Charger Adapter HH44H LA90PM130 DA90PM130 05GT3K

$14.00



Genuine OEM Dell 130W AC Adapter Charger Brick Large Tip 19.5V 6.7A picture

Genuine OEM Dell 130W AC Adapter Charger Brick Large Tip 19.5V 6.7A

$4.97



OEM Dell Inspiron 11 13 14 15 17 3000 5000 7000 AC Adapter Charger 65W 4.5mm Tip picture

OEM Dell Inspiron 11 13 14 15 17 3000 5000 7000 AC Adapter Charger 65W 4.5mm Tip

$10.99



NEW OEM Dell 65W 19.5V Charger AC Power Supply Adapter For LA65NM130 332-1831 picture

NEW OEM Dell 65W 19.5V Charger AC Power Supply Adapter For LA65NM130 332-1831

$12.99



OEM DELL 65W AC Adapter Charger 7.4mm Latitude 7490 7480 E7440 E7450 E7470 E7270 picture

OEM DELL 65W AC Adapter Charger 7.4mm Latitude 7490 7480 E7440 E7450 E7470 E7270

$11.88



OEM 65W Adapter Charger for DELL Inspiron 15-5567 5565 P66F AC Power 19.5V 3.34A picture

OEM 65W Adapter Charger for DELL Inspiron 15-5567 5565 P66F AC Power 19.5V 3.34A

$14.89



OEM 45W Adapter Charger for Dell Inspiron 15 3551 5555 LA45NM140 0KXTTW 0T8YYD picture

OEM 45W Adapter Charger for Dell Inspiron 15 3551 5555 LA45NM140 0KXTTW 0T8YYD

$13.89