This is a 4MB space tp-link router, here are the steps
opkg install kmod-usb-serial kmod-usb2 luci-proto-3g kmod-usb-serial-option usb-modeswitch kmod-usb2 kmod-usb-serial-wwan kmod-usb-serial ppp comgt sdparm
opkg install usbutils
Now, reboot the router, then go to the routers LUCI interfaces page, then add an interface
From the drop down, chose UMTS/GPRS
On the next page, you should see one of the devices names /dev/ttyUSB0, in my case there are 2 since the device provides a storage controller, the modem was on USB0 not USB1, your might be different (try both if you have 2)
Now i chose UMTS only so that the modem will always use 3G because edge is good for nothing
Then your APN and username/password as you would on a phone or anywhere else… then save and apply
Since this router has around 600 to 700 KBs of free space, running the hi link USB dongle modem should be done with the bare minimum packages
Here are the ones i installed to get mine running
opkg install kmod-usb-net kmod-usb-net-rndis kmod-usb-net-cdc-ether udev usb-modeswitch kmod-usb-serial-option kmod-usb-net
Right after, i rebooted, then running the command,
I got a new eithernet device (USB0), on another older hi link dongle it was called eth2.
Then, from within LUCI, you can simply add a new interface using this hardware interface, and set that to DHCP and add it to the WAN segment, You are done, it should be connected now
Please be aware that once you have it running, you might want to get into the dongle’s interface settings, and instruct the dongle to only use 3G (Not GSM/EDGE), i do that by visiting 192.168.8.1 (Hard coded, can not be changed, but depending on the model yours might be different).
Well, we all know FTP, HTTP and other protocols would do the trick, but they are not the fastest way. because of setup and other considerations, especially when we are planing to use both windows and linux in the transactions, a low overhead method would be samba, or windows network file sharing
In windows, it is simple, we all know how to share a folder, and we all know how to open a shared folder over the network, in linux it is just as simple.
The detailed explanation of how to setup the samba server and share a folder is already in a post, but from the client side, you can copy a file by simply mounting the shared drive onto the linux server and copy or move files like you would a normal file or folder.
To mount we can simply execute the following
1- Install the client tools to mount the folder
apt-get install cifs-utils
mount -t cifs //192.168.15.109/sharedfolder /hds/smbmount -o username=techg,noexec
That’s it, now use CP and MV as you would normally