Page 38 of 64 FirstFirst ... 28363738394048 ... LastLast
Results 556 to 570 of 958

Thread: [HowTo] Install and configure Oleg's firmware

  1. #556
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    either use scp or:
    PHP Code:
    ipkg install openssh-sftp-server 

  2. #557
    Quote Originally Posted by al37919 View Post
    either use scp or:
    PHP Code:
    ipkg install openssh-sftp-server 
    works....tnx

  3. #558

    Permission denied when i try to install new package

    [admin@ASUS_160GB ipkg]$ ipkg update
    Downloading http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gz
    sh: wget: Permission denied
    An error ocurred, return value: 1.
    Collected errors:
    ipkg_download: ERROR: Command failed with return value 127: `wget -q -P /opt/ipkg-4TwonM http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gz'

    [admin@ASUS_160GB ipkg]$ ipkg upgrade
    sh: rm: Permission denied
    Nothing to be done
    Successfully terminated.

    When i try to install unrar for example:
    [admin@ASUS_160GB ipkg]$ ipkg install unrar
    Package unrar (3.7.8-1) installed in /opt/ is up to date.
    sh: rm: Permission denied
    Nothing to be done
    Successfully terminated.

    Please why I always see Permission denied? I am logged as admin and df shows:
    [admin@ASUS_160GB ipkg]$ df
    Filesystem Size Used Avail Use% Mounted on
    rootfs 3.0M 3.0M 0 100% /
    /dev/root 3.0M 3.0M 0 100% /
    /dev/discs/disc0/part2
    966M 103M 814M 12% /opt
    /dev/discs/disc0/part3
    916G 257G 613G 30% /tmp/mnt/disc0_3

  4. #559
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Hi,

    did this work at any time or is it a permanent error since you installed the router?

    wengi
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

  5. #560
    Quote Originally Posted by wengi View Post
    Hi,

    did this work at any time or is it a permanent error since you installed the router?

    wengi
    Hi wengi,
    i finished this tutorial succesfully so it worked before. But now after month of using this happened and Im not aware about anything what I did. Restart doesnt help.

  6. #561
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    do an e2fsck on /opt.
    i guess the file system needs to be checked.

    wengi
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

  7. #562
    Quote Originally Posted by wengi View Post
    do an e2fsck on /opt.
    i guess the file system needs to be checked.

    wengi
    [admin@ASUS_160GB /opt]$ e2fsck /dev/discs/disc0/part2
    e2fsck 1.41.2 (02-Oct-2008)
    /dev/discs/disc0/part2 is mounted.

    WARNING!!! Running e2fsck on a mounted filesystem may cause
    SEVERE filesystem damage.

    Is it safe to run or better be unmounted? And it is possible to run when /opt is unmounted? (When speaking about unmounting I dont know how to unmount umount /dev/discs/disc0/part2 doesnt working) umount: Couldn't umount /dev/scsi/host0/bus0/target0/lun0/part2: Invalid argument

    And which parameters to use with e2fsck ? Is it e2fsck /dev/discs/disc0/part2 ok?
    Last edited by Etor; 09-03-2009 at 12:59.

  8. #563
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    stop all services running on /opt so it is not used any more.
    then unmount /opt

    wengi
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

  9. #564
    Quote Originally Posted by wengi View Post
    stop all services running on /opt so it is not used any more.
    then unmount /opt

    wengi
    Can you help me to find what more is running at /opt?

    [admin@ASUS_160GB root]$ ps axf
    PID TTY STAT TIME COMMAND
    1 ? S 0:01 /sbin/init
    2 ? S 0:00 [keventd]
    3 ? SN 0:00 [ksoftirqd_CPU0]
    4 ? S 0:00 [kswapd]
    5 ? S 0:00 [bdflush]
    6 ? S 0:00 [kupdated]
    7 ? S 0:00 [mtdblockd]
    61 ? S 0:00 telnetd
    66 ? S 0:00 httpd
    71 ? S 0:00 klogd
    72 ? S 0:00 [khubd]
    80 ? Ss 0:00 lpd
    82 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
    86 ? Ss 0:00 waveservermain
    88 ? Ss 0:00 rcamdmain
    92 ? S 0:00 [usb-storage-0]
    93 ? S 0:00 [scsi_eh_0]
    95 ? Ss 0:00 infosvr br0
    96 ? Ss 0:00 watchdog
    97 ? Ss 0:00 \_ ntp
    105 ? S 0:00 dropbear
    117 ? Rs 0:00 \_ dropbear
    149 pts/0 Ss 0:00 \_ -sh
    197 pts/0 R+ 0:00 \_ ps axf
    124 ? S 0:00 [kjournald]
    125 ? S 0:00 [kjournald]
    128 ? Ss 0:00 /usr/sbin/vsftpd
    130 ? Ss 0:00 /usr/sbin/nmbd -D
    132 ? Ss 0:00 /usr/sbin/smbd -D

    [admin@ASUS_160GB root]$ umount /dev/discs/disc0/part2
    umount: Couldn't umount /dev/scsi/host0/bus0/target0/lun0/part2: Invalid argument
    Last edited by Etor; 09-03-2009 at 14:09.

  10. #565
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    You should try
    Code:
    umount /opt
    if you get a "umount: cannot umount /opt: Device or resource busy" then begin to kill services.

    i would guess vsftp and smb.

    wengi
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

  11. #566
    Quote Originally Posted by wengi View Post
    You should try
    Code:
    umount /opt
    if you get a "umount: cannot umount /opt: Device or resource busy" then begin to kill services.

    i would guess vsftp and smb.

    wengi
    Hi, I was unsuccesfull again Killed everything what I thing and still cant unmount.
    Is it possible to change pre-mount at /usr/local/sbin to not mount disc and restart and check it?

    I have pre-mount from you. How i can modify it? Thanks a lot.

  12. #567
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    the simplest way is just:
    flashfs disable && reboot
    after that disk will be automounted to something like /tmp/mnt/diskX_Y (check exact name), but none of the services related to disk will be started. Then you
    umount /tmp/mnt/diskX_Y
    now it should work. Then run e2fsck. When you finished:
    flashfs enabled && reboot

  13. #568
    Quote Originally Posted by al37919 View Post
    the simplest way is just:
    flashfs disable && reboot
    after that disk will be automounted to something like /tmp/mnt/diskX_Y (check exact name), but none of the services related to disk will be started. Then you
    umount /tmp/mnt/diskX_Y
    now it should work. Then run e2fsck. When you finished:
    flashfs enabled && reboot
    flashfs disable && reboot gives me:

    [admin@ASUS_160GB root]$ flashfs disable && reboot
    /sbin/flashfs: /sbin/flashfs: 20: cat: Permission denied
    /sbin/flashfs: /sbin/flashfs: 73: nvram: Permission denied
    /sbin/flashfs: /sbin/flashfs: 73: nvram: Permission denied


    EDIT: So, i tried this flashfs disable && reboot in few seconds after restart (before router mounted discs) and now i cannot connect with putty to it (gives me connection refused). But I discovered that i can access command line from web interface and finally unomunted it
    Then i run e2fsck and it gives me that it needs terminal to interactive. So I tried e2fsck -p and then I flashfs enabled && reboot. But Problem is still the same.

    [admin@ASUS_160GB root]$ ipkg update
    Downloading http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gz
    sh: wget: Permission denied
    An error ocurred, return value: 1.
    Collected errors:
    ipkg_download: ERROR: Command failed with return value 127: `wget -q -P /opt/ipkg-6AXChz http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gz'

    Maybe e2fsck takes a longer time. How long for 1GB? Or how parameters I must use with e2fsck from web interface?
    For info I typed to system command: e2fsck -p /dev/discs/disc0/part2
    And it gives: /dev/discs/disc0/part2: clean, 8240/125696 files, 30375/251015 blocks (check in 4 mounts)

    EDIT2: So I rebooted 4times to force e2fsck to check disc and to be sure run again e2fsck -p /dev/discs/disc0/part2 but after flashfs enabled && reboot again:
    ipkg update
    sh: wget: Permission denied

    It is possible somehow to do e2fsck with putty?
    Last edited by Etor; 10-03-2009 at 10:07.

  14. #569

    Hello everybody

    I have an Asus WL500GPV2 and I decided to try Oleg after dd-wrt (eko's NEWD).
    My problem is that I installed OLEG 2.0.1.5 firmware (from forums discussions I found that should be a good choice instead Oleg 3.0.2.6).
    I started utelnetd from secret page (utelnetd does not start automatically, I found it in /usr/sbin), and I found no dropbear and no flashfs script on either /bin, /sbin, /usr/bin or usr/sbin.
    Can someone give me flashfs script and dropbear to install? And some help to install them?
    Thank you very much and I hope to help others too, after I will learn this firmware.
    Last edited by adrianio; 10-03-2009 at 08:38.

  15. #570
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    But I discovered that i can access command line
    ssh will be disabled, as dropbear is started from flashfs

    you can either start it from web-command-line by typing:
    PHP Code:
    dropbear 
    or access router through telnet (it should be enabled in the web interface, but then it starts automatically)

Page 38 of 64 FirstFirst ... 28363738394048 ... LastLast

Similar Threads

  1. [Howto] Install DLNA media servers for Oleg firmware
    By ecaddict in forum WL-500gP Tutorials
    Replies: 18
    Last Post: 06-06-2017, 07:40
  2. Replies: 24
    Last Post: 05-05-2015, 07:42
  3. Replies: 28
    Last Post: 02-06-2013, 20:58
  4. Replies: 6
    Last Post: 21-09-2012, 17:06
  5. [Howto] Install kernel modules for Oleg firmware
    By ecaddict in forum WL-500gP Tutorials
    Replies: 0
    Last Post: 05-12-2011, 16:18

Tags for this Thread

Posting Permissions

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