What's new

[HOWTO]Debian Weezy for AC68 and AC56 + OwnCloud

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

i would love to have this on my usb 2.0 hdd..

but i never see a cmd line output.. and when i use "ls" or "pwd" im stuck in /www dir..

how to fix this ?

is my first time using this kind of router:eek:
 
blastboy;105883]i would love to have this on my usb 2.0 hdd..

but i never see a cmd line output.. and when i use "ls" or "pwd" im stuck in /www dir..

how to fix this ?

is my first time using this kind of router:eek:

I need a little bit more information.

Mount output from the Asus shell
Do you mean you are stuck at installing owncloud or still at the debian environment installation?

Sent from my GT-I9505 using Tapatalk
 
Last edited:
I need a little bit more information.

Mount output from the Asus shell
Do you mean you are stuck at installing owncloud or still at the debian environment installation?

Sent from my GT-I9505 using Tapatalk

i got it working :) with my stupid head i was using the router's cmd line...
then i woke up and used ssh xD

but i also want to access it trough http:// but when i change the server port to 80 in lighttpd.conf it cant start says port is already in use..

could you help me with that?:)
 
...port 80 is used by the native Web-UI of the ASUS.
Since the owncloud instance is running a separate http.server, but sharing the same net, you cannot bind it to the same port.

You could, however use/setup a second IP on the LAN and bind owncloud only to that.
 
Or just change the Asus http port in the Administration page of the router.

Also I've added a note to the Tutorial.
OwnCloud 6 generated thumbnails by default which is a bit of heavy load for the router.
Probably better to disable it and speed up things.
 
i changed the http port in administration saved it, and rebooted the router. but when i go to the asus ddns the http:// part stil goes too the router and the https:// owncloud :(?
 
i changed the http port in administration saved it, and rebooted the router. but when i go to the asus ddns the http:// part stil goes too the router and the https:// owncloud :(?

Not sure if you changed the wrong port. You can define the port for both inside and outside.

Sent from my GT-I9505 using Tapatalk
 
mJnse52.png


this is from the administration page where it looks to me i should change it :)
 
mJnse52.png


this is from the administration page where it looks to me i should change it :)

I would change both and use https.
Inside the lan it's not much of an issue but definitely on the wan side you want to use https. Change it to something like port 9000 on both.


Sent from my GT-I9505 using Tapatalk
 
I can't install it because I have a problem. To make things easier I named my usbstick also sda1 and formatted it into ext4 (like in this tut).

Unpacking and making the script with vi works fine but on the step

"/mnt/sda1/debian/utils/chroot /mnt/sda1/debian /bin/bash"

i get the error log

"-sh /mnt/sda1/debian/utils/chroot : permission denied"

How can I solve this?
 
Last edited:
I can't install it because I have a problem. To make things easier I named my usbstick also sda1 and formatted it into ext4 (like in this tut).

Unpacking and making the script with vi works fine but on the step

"/mnt/sda1/debian/utils/chroot /mnt/sda1/debian /bin/bash"

i get the error log

"-sh /mnt/sda1/debian/utils/chroot : permission denied"

How can I solve this?

I didn't label the disk I just formatted it ext4 then the system takes the device name. Not sure what it does when you label it.

Can you post your mount output from the shell?

Sent from my GT-I9505 using Tapatalk
 
I didn't label the disk I just formatted it ext4 then the system takes the device name. Not sure what it does when you label it.

Can you post your mount output from the shell?

Sent from my GT-I9505 using Tapatalk

It only shows this (with ls -la /mnt)

lrwxrwxrwx 1 AccName root 7 Jan 31 06:52 /mnt -> tmp/mnt

with ls -la /:

drwxr-xr-x 17 accName root 320 Jan 31 06:52 .
drwxr-xr-x 17 accName root 320 Jan 31 06:52 ..
drwxr-xr-x 2 accName root 711 Jan 31 06:52 bin
drwxr-xr-x 2 accName root 3 Jan 31 06:52 cifs1
drwxr-xr-x 2 accName root 3 Jan 31 06:52 cifs2
drwxr-xr-x 5 accName root 1660 Jan 1 2011 dev
lrwxrwxrwx 1 accName root 7 Jan 31 06:52 etc -> tmp/etc
lrwxrwxrwx 1 accName root 8 Jan 31 06:52 home -> tmp/home
drwxr-xr-x 5 accName root 0 Jan 1 1970 jffs
drwxr-xr-x 3 accName root 417 Jan 31 06:52 lib
lrwxrwxrwx 1 accName root 9 Jan 31 06:52 media -> tmp/media
drwxr-xr-x 2 accName root 3 Jan 31 06:52 mmc
lrwxrwxrwx 1 accName root 7 Jan 31 06:52 mnt -> tmp/mnt
lrwxrwxrwx 1 accName root 7 Jan 31 06:52 opt -> tmp/opt
dr-xr-xr-x 87 accName root 0 Jan 1 1970 proc
drwxr-xr-x 6 accName root 661 Jan 31 06:52 rom
lrwxrwxrwx 1 accName root 13 Jan 31 06:52 root -> tmp/home/root
drwxr-xr-x 2 accName root 1986 Jan 31 06:52 sbin
drwxr-xr-x 11 accName root 0 Jan 1 1970 sys
drwxr-xr-x 2 accName root 3 Jan 31 06:52 sysroot
drwxrwxrwx 12 accName root 620 Feb 24 19:33 tmp
drwxr-xr-x 7 accName root 126 Jan 31 06:52 usr
lrwxrwxrwx 1 accName root 7 Jan 31 06:52 var -> tmp/var
drwxr-xr-x 11 accName root 5667 Jan 31 06:52 www


I think the problem is the script:

I have inserted into the script following lines:

#!/bin/sh
mount -o bind /dev/ /mnt/sda1/debian/dev/
mount -o bind /proc/ /mnt/sda1/debian/proc/
mount -o bind /sys/ /mnt/sda1/debian/sys/

After Reboot the script seems not to start. Could it be?
 
Last edited:
It only shows this (with ls -la /mnt)
[...]

...just give the output of the "mount" command after you entered it in a shell on your ASUS,
like mine:
admin@RT-AC68U:/tmp/home/root# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=127720k,nr_inodes=31930,mode=755)
proc on /proc type proc (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock5 on /jffs type jffs2 (rw,noatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
/dev/sdc1 on /tmp/mnt/500GBNTFS(1) type ufsd (rw,nodev,noatime,nls=utf8,fmask=0,dmask=0,force)
/dev/sda1 on /tmp/mnt/SDHC1 type ext4 (rw,nodev,relatime,user_xattr,barrier=1,data=ordered)
devtmpfs on /tmp/mnt/SDHC1/debian/dev type devtmpfs (rw,relatime,size=127720k,nr_inodes=31930,mode=755)
proc on /tmp/mnt/SDHC1/debian/proc type proc (rw,relatime)
sysfs on /tmp/mnt/SDHC1/debian/sys type sysfs (rw,relatime)
admin@RT-AC68U:/tmp/home/root#

...as you can see, I have labled my first "disk" SDHC1.
 
...just give the output of the "mount" command after you entered it in a shell on your ASUS,
like mine:


...as you can see, I have labled my first "disk" SDHC1.

Oh sorry, wrong information. Here are the right ones:


ASUSWRT-Merlin RT-AC68U_3.0.0.4 Fri Jan 31 05:21:52 UTC 2014
accName@RT-AC68U:/tmp/home/root# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=127720k,nr_inodes=31930,mode=755)
proc on /proc type proc (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock5 on /jffs type jffs2 (rw,noatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda1 on /tmp/mnt/sda1 type ext4 (rw,nodev,relatime,barrier=1,data=ordered)
accName@RT-AC68U:/tmp/home/root#
 
[...]
I think the problem is the script:

I have inserted into the script following lines:

#!/bin/sh
mount -o bind /dev/ /mnt/sda1/debian/dev/
mount -o bind /proc/ /mnt/sda1/debian/proc/
mount -o bind /sys/ /mnt/sda1/debian/sys/

After Reboot the script seems not to start. Could it be?

...based on your mount output, these mounts have not taken place-
Did yoiu follow the steps from the first post?
Debian Weezy for AC68/AC56 (ARM)

[...]

Create the startup script so the mounts are set at every boot
Code:
cd /jffs/scripts
vi services-start

Add the following lines

Code:
#!/bin/sh
mount -o bind /dev/ /mnt/sda1/debian/dev/
mount -o bind /proc/ /mnt/sda1/debian/proc/
mount -o bind /sys/ /mnt/sda1/debian/sys/

Save the file

Make the script executable
Code:
chmod +x services-start

...the script is in the right place?
...the script is made excecutable?
...you did produce this with using vi on the ASUS or on windoze (notepad, ough;) and transfered it?
make sure it is *nix style end-of-line/end-of-file encoding characters if produced on windows.

...you can run/try the script manually...no need to reboot
 
...based on your mount output, these mounts have not taken place-
Did yoiu follow the steps from the first post?


...the script is in the right place?
...the script is made excecutable?
...you did produce this with using vi on the ASUS or on windoze (notepad, ough;) and transfered it?
make sure it is *nix style end-of-line/end-of-file encoding characters if produced on windows.

...you can run/try the script manually...no need to reboot

yes the script is placed at jffs

i made the script executable with the order chmod +x

i used putty to log in as shell and opened vi in the shell(in the asus then)

I am in class I will try to run it manually later.
 
Last edited:
Could be the disk isn't spinned up yet and you need to add a sleep command just underneath #!/bin/sh

sleep 10

Sent from my GT-I9505 using Tapatalk
 
Thanks Xerxist,

with the sleep command it now uses the script. But when I try to use

/mnt/sda1/debian/utils/chroot /mnt/sda1/de
bian /bin/bash

it still says permission denied :(


accName@RT-AC68U:/tmp/home/root# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=127720k,nr_inodes=31930,mode=75 5)
proc on /proc type proc (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock5 on /jffs type jffs2 (rw,noatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda1 on /tmp/mnt/sda1 type ext4 (rw,nodev,relatime,barrier=1,data=ordered)
devtmpfs on /tmp/mnt/sda1/debian/dev type devtmpfs (rw,relatime,size=127720k,nr_ inodes=31930,mode=755)
proc on /tmp/mnt/sda1/debian/proc type proc (rw,relatime)
sysfs on /tmp/mnt/sda1/debian/sys type sysfs (rw,relatime)
accName@RT-AC68U:/tmp/home/root# /mnt/sda1/debian/utils/chroot /mnt/sda1/de
bian /bin/bash
-sh: /mnt/sda1/debian/utils/chroot: Permission denied
accName@RT-AC68U:/tmp/home/root#
 
Last edited:
Thanks Xerxist,

with the sleep command it now uses the script. But when I try to use

/mnt/sda1/debian/utils/chroot /mnt/sda1/de
bian /bin/bash

it still says permission denied :(

pls post the output of these three commands:
Code:
ls -la /mnt/sda1/debian/utils/
Code:
ls -la /mnt/sda1/debian/
Code:
ls -la /mnt/sda1/debian/bin/bash
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top