Arise,
I had a similar problem. It seems that copy-pasting from a webpage to Putty doesn't always work well. Some of my post-boot code was missing when I pasted it to putty from this tutorial. Only found out after a few reboots, of course :(
Printable View
Arise,
I had a similar problem. It seems that copy-pasting from a webpage to Putty doesn't always work well. Some of my post-boot code was missing when I pasted it to putty from this tutorial. Only found out after a few reboots, of course :(
Missing parts in pasted content is mostly a result of the following:
you open vi and _forget_ to press "i" to change to insert mode.
When you paste the content is not pasted until the first i in the content appears.
example:
"this is the content" pasted in vi WITHOUT being in insert mode results in the following: "s is the content"
wengi
Wengi, thank you for your great tutorial. I've decided that it is the most detailed and started using it for connecting my usb hdd with 500gp.
Unfortunately, a have a problem after this steps:
# test if USB disc has been attached
# if not - then insert needed modules
#
# uncoment the following 4 lines if using an USB HDD.
#if [ ! -d /dev/discs ]
#then
#insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
#fi
#Wait for /opt to mount
mount /dev/discs/disc0/part2 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
mount /dev/discs/disc0/part3 /tmp/harddisk
# Activate swap
swapon /dev/discs/disc0/part1
# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung
I wrote it in VI editor after pressing 'i' and i saved it with :wq command.
I use 500gp like a router, so after those steps I make a command to reboot:
flashfs save && flashfs commit && flashfs enable && reboot
And then Putty says that "Fatal error (connection lost)"
I try to connect using SSH again, but also Fatal error appears (writing "network connection refused")
And i only can connect to 500gp using telnet or web.:( And when i run telnet, swap is not activated and driver is not mounted (so, startup script don't work i think) although all steps before i did according to your tutorial.
After that, i've refreshed the firmware and did everything again, but the result was the same.:confused:
Help me solve this problem please...
P.S. excuse me for my english: i've haven't any practice for a long time...
So, i've solve the problem myself: there were some mistakes in my post-boot file.
But i still have one question: how can i establish connection to my router from any place with internet. I have a real IP and using Putty thought SSH, it can't connect to router. May be i should open any ports?
Hi Hreks,
"Fatal error (connection lost)" is normal when you reboot the router.
Normaly the network connection is also droped.
Due to the Asus also is running DHCP (i suggest) all should be ok after you request a new ip (in windows: ipconfig /renew).
But good to see that you managed it yourself :D
SSH is using port 22. You have to open this port in your firewall and/or forward this port to the local ip adress of the asus.
you can also use a different port (e.g. 222) and redirect ist to 22 on local ip.
This prevents ssh scanning, which is often done in the last month.
have fun with your asus
wengi
1) Hi, Wengi, thank you for your reply, but can you give me more detailed answer?
What firewall do you mean, software or in the router?
What does it mean "forward this port to the local ip adress of the asus."
How can i use different port?
And what should i do on the computer, from which i want to connect my router(open any ports?)
Big thanks
2)WoW! I'm very happy) I've configured everything, writen in Wengi's manual. Now i have Samba, and my torrents are downloading! I can't belive:)
Wengi, really your tutorial is the best for new users of 500gp:) only one step became a problem: while activating RTC, it was error: can't create folder, permission denided.
3)And also one question: can i create my media library in \tmp\harddisk or in another folder? actually, i don't understand folders in samba according to the partitions in router, explane me please.
4) One more question: i want to make a web site in the router, considering a real IP, so i don't understand if any steps of your tutorial connected with this topic?
regards, Hreks
Hi Hreks,
i dont have that much time atm.
RTC is ONLY for WL-HDD. Others do not have a RTC.
i will come back in a few days for the other questions.
wengi
Hi,
/opt/etc/init.d/S80samba is normaly started by /opt/etc/init.d/rc.unslung.
check if rc.unslung is executable and if it is called from your post-boot.
Are the other services (/opt/etc/init.d/S*) running after restart?
wengi
rc.unslung is executable, and is being called from the post boot. I see that the one script (S80busybox_httpd) is running when I reboot since I can go to the transmission web page -
http://192.168.1.1:8008/cgi-bin/tran...gi?ACTION=List
so it make no sense why it's not running. I ran dmesg and I don't see any errors in it either.
Hi,
Is /opt/etc/init.d/S80samba executable?
What happens if you run /opt/etc/init.d/S80samba manually?
Pls. post last lines of your syslog (/opt/var/log/messages).
wengi
This is strange. I rebooted it again after I made another minor change, and now it's working. I hate it when things like that happen.
Thanks for the help though! This howto has been a great help.
First of all thx a bunch for the gr8 tut, finally I can get to my smb share without going through sftp and tranmission works so much better than e-ctorrent.
I am a bit of a linux noob though and it might be handy for the rest of you to know that if you can't get a ipkg package (mc), or some dependensies (font libraries for the bt cgi :P), or even if nano locks up (it happend to me faulty ncurses was to blame) just go too http://ipkgfind.nslu2-linux.org/.
Find the right package (always select the oleg version if possible) then copy the download link and do this in the terminal:
Or alternatively you can change your unslung package directory to the oleg versionCode:ipkg install PASTE_THE_DOWNLOAD_LINK_HERE
thenCode:nano /opt/etc/ipkg.conf
Don't forget to run ipkg update / upgrade and be amazed how outdated your system is :PCode:src unslung http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
dest root /
But I do still have some question marks I hope you can help me with.
First I mosty use my smb share on the network for storage of my music so that every pc and mac all have the same songs. I haven't tried the optimisation bit yet and would like to know if I do run samba under xinetd will it be slower or something.
Furthermore I would like to get a ftp or sftp running again and was wondering if this can be run under xinetd aswell
Also if you don't have a webcam attached you can put this in the post-boot
Lasty why isn't this a sticky yet, this goes along gr8 with the macsat tutCode:rmmod videodev