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
  •  


Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot picture

Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot

$188.99



Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot picture

Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot

$109.99



1.92TB SSD SATA 2.5 SAMSUNG MZ-7LM1T90 PM863 MZ7LM1T9HCJM Tested 93%+ picture

1.92TB SSD SATA 2.5 SAMSUNG MZ-7LM1T90 PM863 MZ7LM1T9HCJM Tested 93%+

$45.73



Netac 2TB 1TB 512GB 240GB Internal SSD 2.5'' SATAIII 6Gb/s Solid State Drive lot picture

Netac 2TB 1TB 512GB 240GB Internal SSD 2.5'' SATAIII 6Gb/s Solid State Drive lot

$118.99



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$13.99



Crucial M500 480GB SED MLC 2.5

Crucial M500 480GB SED MLC 2.5" 6Gbps SATA Drive CT480M500SSD1 - PRICE PER UNIT

$24.99



Genuine Samsung 850 EVO MZ-75E250 250GB 2.5

Genuine Samsung 850 EVO MZ-75E250 250GB 2.5" SATA III SSD Solid State Drive

$20.00



Fanxiang 256GB SSD 2.5'' SATA SSD III 6Gb/s 530MBs Internal Solid State Drive PC picture

Fanxiang 256GB SSD 2.5'' SATA SSD III 6Gb/s 530MBs Internal Solid State Drive PC

$19.99



4 TB SSD SATA III Drive 2.5

4 TB SSD SATA III Drive 2.5" Solid State Drive SATAIII 6Gb/s UP to 540MB/s

$148.00



Netac 1TB 2TB 512GB 120GB Red Internal SSD 2.5'' SATA III Solid State Drive lot picture

Netac 1TB 2TB 512GB 120GB Red Internal SSD 2.5'' SATA III Solid State Drive lot

$108.99