Results 1 to 10 of 10

Thread: "screen" - could not write to /opt/var/run/utmp bad file descriptor

  1. #1

    Question "screen" - could not write to /opt/var/run/utmp bad file descriptor

    Hi,

    I followed the tutorial at http://wl500g.info/showthread.php?t=7643 in setting up screen in order that I may install enhanced c-torrent.

    However I got stuck after installing "screen". What i did is as follows (using sudo bash):
    1. ipkg install -force-overwrite ncurses
    2. ipkg install -force-overwrite ncursesw
    3. ipkg install -force-overwrite termcap
    4. ipkg install -force-overwrite screen

    The above steps completed without errors.

    However when i execute "screen", i get the message:
    could not write to /opt/var/run/utmp : bad file descriptor

    So i went ahead to "touch /opt/var/run/utmp" to create utmp.

    No good. I tried creating utmp as a directory in /opt/var/run/ as well but no difference.

    What am i doing wrong?

    Would appreciate any advice.

    thanks.
    Patrick

  2. #2
    Did some trial and errors and found the solution:

    The missing file should be "/var/run/utmp" rather than "/opt/var/run/utmp" !!!

    Solved it with "touch /var/run/utmp".


  3. #3
    Join Date
    Mar 2007
    Location
    Budapest / Hungary
    Posts
    79
    Hi!

    touch /opt/var/run/utmp solve this problem but when I run 'screen' I get the message:

    Cannot find termcap entry for 'xterm'.

    What? And also not working nano editor:

    Error opening terminal: xterm.

    George

  4. #4
    Install the termcap package.

    - K.C.

  5. #5
    Join Date
    Mar 2007
    Location
    Budapest / Hungary
    Posts
    79
    Hi,

    termcap package already installed and updated...

    nano already working my system but when I switch to oleg-optware feed (/opt/etc/ipkg.conf) and install uclibc-opt, libstdc++ and reinstall any already installed packages (and install wxbase and amule), screen and nano not working.
    (xterm : unknown) I think uclibc-opt or libstdc++ lib files modified something my system or perhaps two termcap conf file in system... I mc is working and I can edit conf files (use xterm emulation)

    sorry my english

    Thanks, George
    Last edited by KGy; 15-04-2007 at 15:02.

  6. #6
    Do you have /opt/lib in your LD_LIBRARY_PATH?

    - K.C.

  7. #7
    Join Date
    Mar 2007
    Location
    Budapest / Hungary
    Posts
    79
    Yes but not run nano and screen.

    George

  8. #8
    Sorry, I'm out of ideas...

    - K.C.

  9. #9
    Quote Originally Posted by KGy View Post
    termcap package already installed and updated...

    nano already working my system but when I switch to oleg-optware feed (/opt/etc/ipkg.conf) and install uclibc-opt, libstdc++ and reinstall any already installed packages (and install wxbase and amule), screen and nano not working.
    (xterm : unknown) I think uclibc-opt or libstdc++ lib files modified something my system or perhaps two termcap conf file in system... I mc is working and I can edit conf files (use xterm emulation)
    to get nano and screen working again after switching to oleg-optware feedware run the command:
    Code:
    awk '/^Package:/{system("ipkg install -force-reinstall -force-defaults " $2)}' /opt/lib/ipkg/status
    Original source http://wl500g.info/showthread.php?p=...term#post48520

  10. #10

    Solution for the "/opt/var/run/utmp" problem

    The following worked for me:

    sudo touch /opt/var/run/utmp
    sudo chmod -R 777 /opt/var/run

    Then "screen" did not display the error message any more.

Similar Threads

  1. Error installing IPKG
    By Cyb in forum WL-500g Q&A
    Replies: 2
    Last Post: 09-02-2007, 10:18
  2. question about wl700gE booting (and passwd file)
    By MoD in forum WL-700g Firmware Discussion
    Replies: 4
    Last Post: 30-10-2006, 06:56
  3. installing Samba, FAT32 write problem
    By Toomas in forum WL-500g Q&A
    Replies: 7
    Last Post: 21-08-2006, 22:00
  4. problems with file handling or file size
    By black_bottom in forum WL-HDD Q&A
    Replies: 1
    Last Post: 28-03-2006, 16:55

Posting Permissions

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