In previous part, we have everything settled(almost). Now its the time for some more fine tune.
By employing the techniques in Part 1, we have the following setup upon each reboot:
- A USB drive mounted and accessible at /mnt
- A writable /etc folder(actually /mnt/etc) and has exact same content as original /etc folder
- A writable /opt folder(actually /mnt/opt) -- where all future software will be installed and run from(/opt/bin, /opt/sbin, /opt/usr/bin, just name a few) and keep the original DD-WRT folders like /bin /sbin untouched.
- A writable and persistent /tmp/root(actually /mnt/root). This will be the home folder for user root
- An empty file /mnt/optware.enable. This is used to control the whole optware installation. By renaming or deleting this file, all customized software/modification WILL BE DISABLED and thus put the router back to standard DD-WRT. This is useful for debugging and firmware upgrading.
Still, there is something left to do, notably that, with current setup, the LD_LIBRARY_PATH and PATH variables have to be set each time before running any command. We might also want to run some installed software as service.
- Set the initial variables
Login with PuTTY then copy/paste the commands below to PuTTY window to create a script running each time when user root logins.
cat > /mnt/root/.profile << EOF
export LD_LIBRARY_PATH='/opt/lib:/opt/usr/lib:/lib:/usr/lib:/opt/usr/local/lib'
export PATH='/sbin:/opt/bin:/opt/usr/bin:/opt/sbin:/opt/usr/sbin:/bin:/usr/bin:/usr/sbin:/opt/usr/local/bin'
export PS1='\[\033[01;31m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
export TERMINFO='/opt/usr/share/terminfo'
EOF
The above script will set the variables for us and also provide a nice colored command line prompt. Now exit the current PuTTY window and connect again, if you see a colored prompt then it's working correctly. Run
opkg update
directly and it should work now -- no need to set the lengthy variables each time. Also, if you're not familar with vi, time to get the nano editor
opkg install nano
Then type nano to launch it.
- Run installed software as service
In previous guide(Part 1), our DD-WRT startup script does nothing more than mounting several folders. We don't use it to launch any programs simply because its not necessary as DD-WRT has a feature that, it will run any script during startup automatically once it's in correct location with correct name.
To run a script with our current setup, all we need to do is to put the scripts to /opt/etc/init.d folder and name them in the format of S##ScriptName. The ## is two digit from 00 to 99, script with smaller number will run first. For example, to run Samba file server and p910nd printer server as services, we just need to create two startup script
/opt/etc/init.d/p910nd
/opt/etc/init.d/samba
then make symbolic links:
ln -s /opt/etc/init.d/p910nd /opt/etc/init.d/S30p910nd
ln -s /opt/etc/init.d/samba /opt/etc/init.d/S50samba
and p910nd will start up first then samba. And, in case you don't need them as service, delete the symbolic links(S30p910nd/S50samba) but keep the original startup script so it can be easily recovered. The program can also be launched directly by running the corresponding script(/opt/etc/init.d/p910nd and /opt/etc/init.d/samba)
- Guide for Samba server and the p910nd printer server will be detailed in future articles. This is just to get you an idea how the startup control system works.
98 comments:
This is very good info. I appreciate your writing this blog. I just got the same router and the information is very helpful.
One suggestion on the part 1, you should note that errors when running the original package install is normal. That got me confused for a good while.
Thank you very much for this guide!! I'm now ready to have lots of fun with my router!!
great work, thx!!!
Thanks I've been trying to get Samba working for about a week now and with in 15mins I further than I've been thanks to your blog.
The scripts in /opt/etc/init.d (hosted on the external drive now) all source /etc/rc.common which doesn't exist.
Any thoughts on that?
Why do I get this:
root@PDROOT root $ opkg install nano
Collected errors:
* opkg_install_cmd: Cannot install package nano.
Can someone help me please?
rc.common & functions.sh can get here: https://dev.openwrt.org/browser/trunk/package/base-files/files/etc
I am able to install nano ("Package nano (2.2.5-1) installed in root is up to date.")
But, when I try to run nano, putty says "Segmentation fault" and stops taking keystrokes.
Forgive my ignorance, but at what point does the "/opt/etc/init.d/samba" file/folder get created? I'm pretty sure that is what is keeping this from working.
Great Guide!!!
WNDR3700.
Hi Man, Thanks for your guide this is very useful for me to do more tricks in my router :)
Regards,
GPS
There are many confusing software available in the market that is the installation of these software are not an easy task so some companies provide online help to solve these problems.
Norton Antivirus Support | Mcafee Antivirus Support
This is really a nice and helpful post in which you discuss about the interactive grammar to which one get enough knowledge.
Tech Support Live | McAfee Antivirus Security Scan
Wonderful Article...Thanks for sharing it.
HP Printer Offline
HP Printer Offline Support
HP Printer Support
canon printer offline
canon printer offline support
canon printer offline windows 10
canon printer support
Xerox printer offline
Xerox printer offline support
Xerox Printer setup support
Xerox printer offline windows 10
Xerox printer setup windows 10
Our Company is a leading tech support brand which renders non-stop support to its consumers and businesses across the globe. Since our humble beginning, we have primarily focused on making technology simpler for the world by delivering turnkey technical support solutions for computers and peripherals.
Online Technichal Support...
TomTom Update
Office.com/setup
mcafee.com/activate
www.office.com/setup
Office.com/setup
Really wonderful post! I am glad that I came across your article. Thanks for sharing. software installation near me
Activate your Mcafee antivirus by going through with install mcafee with activation code . Mcafee Antivirus helps the user protect your data from harmful malware.
Get started with office setup at activate office 2016 product key. It provide ease of working and systematic arrangement of your worksheet.
My Office and Microsoft Office Desktop Apps permitted the introduce to wrap up. The project might be different if you got Office through one of the following.We provide Technical Support and other services to you. We help you with great work and other details. We help you with Microsoft Office and Office installation. We help you with Great technical services at an affordable price.
office.com/setup
To activate the malware from hurting the envelopes on the device, www.mcafee.com/activate McAfee Antivirus programming must be downloaded in the device. Ensuing to downloading the McAfee Antivirus, the security for the structure data subsequently starts.
McAfee, the device to-cloud cybersecurity organizatio,gives security courses of action that shield data www.mcafee.com/activate and keep perils from contraption to cloud using an open, proactive, and information driven technique. Present mcafee thing with no issue. We give best establishment association.
McAfee activate thing key your private endeavor's PCs against diseases and distinctive harmful tasks. www.mcafee.com/activate All together to prevent the unlawful appointment of its item, all must be authorized using a stand-out key.
McAfee security programming offers a victor among the best malware insurance among the distinctive security suites in the general market. www.mcafee.com/activate According to the most recent reports, there has been basic improvement in cutting edge ambushes over the range generally years.
McAfee empowers relationship to mastermind a truly planned computerized condition that at the same time guarantees, www.mcafee.com/activate recognizes and redesigns security risks. For customers, McAfee guarantees your contraption at home and abroad from contaminations, malware and various perils.
enter avg retail activation code to install and activate your avg antivirus software instantly.to download avg visit :
Google Play Store is one of the most used App downloaders and reasonably so. It has a large user base and users all over the world rely on it. Even though it rarely shows errors and problems sometimes you may encounter an error regarding updates. This can be very frustrating since it prevents you from updating the apps on your device.
norton.com/setup
Office productivity that has been equipped with various advanced features like backstage view, improved ribbon of the Office, supports various file formats, Document co-authoring, and protected view that enables the documents to be more secure.
office.com/setup
You can download, install Webroot Geek antivirus through webroot.com/safe and can also activate webroot safe with webroot keycode. With Webroot Geek Squad antivirus, you can protect gadgets from malware and other harmful viruses.
www.webroot.com/safe
webroot.com/safe
Norton 360 customers as the comparable antivirus security provider offers such. You can likewise make extra buys from Norton Store on the off chance that you have enlisted yourself with Norton. Additionally, note that it is fundamental to relate a Security permit with your Norton account.
norton.com/setup
AVG is the one of best antivirus which protects your computer and network from bad infection and threats. AVG now includes real-time security updates, scans for both malware and performance issues, and even catches malicious downloads before they reach your PC. User can Install AVG Antivirus on their computer to protect thier computer and network...
www.avg.com/retail
How to Fix Roku Error Code 018
How to Fix Roku Error Code 009
How to Fix Roku Error Code 005
How to Fix Roku Error Code 003
How to Fix Roku Error Code 016
How to Fix Roku Error Code 014
What is Roku Error Code 014.40 and How to Fix it?
Thank you for sharing this content. Here are some useful links
find my device google account
how to find my lost phone with google account
Buy online bong, pipes, hookah & all wholesale bongs suppliers in bulk or wholesale in Europe now at Metier Wholesale. Metier Wholesale is the biggest online wholesale shopping headshop in Europe.
wholesale head shop distributors | wholesale smoke shops | hookah wholesalers
At Infotrench SEO Company - Innovation, quality, creativity, and promptness are the main mantras of Infotrench Technologies and we imbibe these mantras in our work, to the core.
SEO company in Chandigarh
SEO company in Bhopal
At Infotrench SEO Company - Innovation, quality, creativity, and promptness are the main mantras of Infotrench Technologies and we imbibe these mantras in our work, to the core.
SEO company in Moradabad
Roku is a streaming device, which provides the simplest way to stream entertainment channel to your TV. On your terms. You can access more than 500000+ movies and TV episodes across free and pay on Roku. Also, you will get the best quality video streaming with it. You can watch shows, movies, an entertainment channel, web series, etc. For the activation of the Roku device, Go to URL:
roku.com/link
Read about best smartphone news reviews, price and specifications and much more features
Done
Done
Done
Done
Roku device is the best service in the USA, Do you have an issue with your Roku Device? Get instant solution and support by Roku Helpline Number. We are dealing with a wide range of Roku streaming players and provide a complete solution for Roku devices.call +1-888-720-1310 visit here https://roku-helpnumber.com/
https://roku-helpnumber.com/services/
https://roku-helpnumber.com/roku-customer-service-phone-number/
Roku Help Phone Number
Change Roku Stick Factory Setting Without Remote
How to Fix Common Roku Error Codes
Roku Customer Service Phone Number
Contact Roku Customer Service Number
Create Backlinks to Publish Your Blogs & Articles! Whether you'd like to share your knowledge, experiences or the latest news. And free update Blogs & Articles here.
best blog sites in USA
best blog sites in UK
Norton is the best option available in the market. Norton Antivirus is an effective anti-malware scanning engine that is reliable. Because millions of people are browsing the web every day.
www.norton.com/setup
indica online
buy indica strain weed online
Looking to Buy Moonrock weed online, Buy weed online, Moon Rock Online come to us we are on sale | United States
moon rocks for sale, moonrock for sale, moonrocks for sale
There is one thing is common in all Roku devices, however; they enhance your Satellite and Cable TV viewing experience. It provides a huge on-demand content and is regarded as a major content supplier. Roku, a digital media player, not only frees the user from monthly cable bills but also work as a video game console.
roku.com/link | roku activation code | roku link
At Infotrench SEO Company - Innovation, quality, creativity, and promptness are the main mantras of Infotrench Technologies and we imbibe these mantras in our work, to the core.
ppc advertising company in moradabad
Digital Marketing Company in moradabad
Search Engine Optimization Company in moradabad
Acrylic bongs, bongs online in Silchar ceramic & metal bongs, percolators, honeycomb waterpipes, grinders online and just click to buy.We’ll try to provide you best selection and quick delivery to enhance your shopping experince with us. bongs online in Manipur
ice bongs: Buy the best quality ice bongs online in wholesale in Germany, Netherlands, Spain & Europe on metierwholesale.com. Order now!
wholesale water pipes
how to trace with IMEI number
mobile phone insurance
how to trace lost phone location with google maps
imei tracking
imei tracker
imei number
Find My iPhone allows a user to trace their lost iPhone, iPad, Mac, or Apple Watch. If you lose your iPhone, you’ll use the Find My app on another device to ascertain its last known location how to find my iphone.
how to find my iphone, find my device android, find my android
track phone by imei number
track imei number india
imei number tracking
Find My iPhone allows a user to trace their lost iPhone, iPad, Mac, or Apple Watch. If you lose your iPhone, you’ll use the Find My app on another device to ascertain its last known location how to find my iphone.
find my device android, find my android
We offer the best services to customers related to protecting the Mobile Phone from theft, Mobile Insurance, Mobile Security From Theft, Mobile Phone Insurance in USA, UK.
trace mobile by imei number, mobile insurance, mobile security from theft
Trackimei.net - provides the best services to customer related to protect the mobile from theft through Track IMEI Number in USA, How to Track with imei number in USA, imei tracking in USA, imei tracker in USA, imei number in USA, imei tracker online in USA.
how to track with imei number, imei tracking
Track IMEI is an acronym for “International Mobile Equipment Identity” write my papers for cheap and IMEISV is the short form for “International Mobile Equipment Identity with software version”.This is a unique global identification of your mobile phone.
how to track lost phone with google
how to track lost phone location with google maps
you'll find the complete UPSC syllabus for the Civil Services Examination conducted through the Union Public Service Commission (UPSC). The Civil Services Examination is broadly taken into consideration as one of the hardest and the most prestigious examinations conducted in India.To recognize us exam, one needs to understand the IAS syllabus. This helps to eliminate wasteful efforts like analyzing needless subjects main to a lack of time and maintains one strictly aligned to the expectancies of the united states from day one || UPSC Syllabus ||Current Affairs Quiz
Trackimei - provides the best services to customer related to protect the mobile from theft through Track IMEI Number in USA, How to Track with imei number in USA, imei tracking in USA, imei tracker in USA, imei number in USA, imei tracker online in USA.
imei number, imei tracker online
Do you face any issue with your POF account, then contact with POF Customer Support for the solution of your problem. they are available 24*7 hours to assist you.
POF Customer Support Phone Number
Plenty Of Fish (POF) Customer Service has a team of experts who are available 24 hrs to assist you. Call POF Customer Care Phone Number.
POF Customer Service Phone Number
POF Customer Care Phone Number
POF Customer Support Phone Number
Acharya, Maharaj pulak sagarji, chinmay sagar ji, tarun sagar ji, gyan sagar ji, Shiv Muni Ji, Mahashraman Ji, Subhadra Muni Ji, Pranamya sagar ji, Swasti Bhushan, Gyan mati mata ji, Praman sagar ji, vidyasagar, jain muni, shwetambar saints ke vachano se apni life change kijiye.
gyan sagar ji maharaj, sudhasagar ji maharaj ke pravachan
I read your blog it really contains a lot of useful information which helps me a lot. thanks for sharing.
silversingles customer service
ourtime customer service
zoosk customer service
eharmony customer service
elitesingles customer service
silversingles phone number
Thanks you for the sharing this amazing and wonderful article. I will be using them soon as i am new in the world of blogging.
POF Support Phone Number
How To Cancel YouTube TV Subscription
Find My iPhone also includes Activation Lock—a feature that’s designed to stop anyone else from using your iPhone, iPad, iPod touch, or Apple Watch if it’s ever lost or stolen. Activation Lock is enabled automatically once you activate Find My iPhone.(Find the iPhone)
Find my phone, Find my device
Such a useful article. Thank you for sharing!
https://alisverisforumu.com
We believe in feminine and graceful outfits. RJ’s is unique for its fresh take on cuts both modern western and traditional eastern with excellent detailing be it evening wear, casual line or Rj’s Exclusive wear.breeze sale
YouTube TV Support Phone Number
POF Support Phone Number
Get everything you need for you, friends & family - day & night, active & night wear, party supplies & gifts at the comfort of your home bonanza satrangi online
We believe in feminine and graceful outfits. RJ’s is unique for its fresh take on cuts both modern western and traditional eastern with excellent detailing be it evening wear, casual line or Rj’s Exclusive wear. frock design for girls
The best services to customer related to protect the Mobile Phone from theft through Track IMEI Number in USA, Lost Phone in USA,How to track a Phone in USA,Track Stolen Phone in USA.
track stolen phone, track my phone
The best services to customer related to protect the Mobile Phone from theft through Track IMEI Number in USA, Lost Phone in USA,How to track a Phone in USA,Track Stolen Phone in USA.
track mobile phone by imei number, mobile imei number tracking, mobile imei number tracking
Know Jain Panchang, tithi, events, and festivals of Derawasi, Sthanakwasi, Digambar, Terapanth. parastvchannel.com is a solution to getting knowledge and an entire knowledge of Jain faith.
jain panchang, acharya shri vidyasagar ji maharaj, jain muni maharaj
Nice blog thanks for sharing this post. Your post is very beneficial for us and other Norton users who want to need any query regarding N Norton Core Setup Issues then contact Norton support number +44-800-048-7408.
latest videos are with you every day.
lena paul porn
AOL Email login problems 2021 problem is very common. you can make several changes into your account and then it will start working completely fine. in case, if you have any other issues. visit down reporter for more help.
Here I am for the first time, and I found beneficial information
Software Installation on DD-WRT used to seem very difficult for me, but you are so much talented that you made this very easy for me. Thank you. Essay Writing Services
Get CBSE, ICSE and all State Boards textbook solutions for all subjects Class 8 to 12. You can also get CBSE solved papers of previous year from here! You can also prepare for SSC. Can also test SSC, find SSC Resource centre ! You can get resources online for free for NEET, NEET previous year solved paper and JEE, JEE Previous year solved papers! Student can also find the, previous year papers etc. This is an organization related to the education sector! So you should not waste your precious time and join Free Resource Centre.
https://www.zigya.com/
https://www.zigya.com/previous-year-papers
https://www.zigya.com/board/cbse
https://www.zigya.com/competition/SSCCGL
https://www.zigya.com/competition/NEET
http://www.zigya.com/gseb
WPS represents the Wi-Fi Protected Setup in the event that we say in specialized language. It is essentially an organization security standard which is remote. Also, it assists with making associations between remote gadgets and a switch quicker and simpler. WPS can work for remote organization just which utilize a secret phrase and the secret key is scrambled with WPA2 Personal or WPA Personal security conventions. The WPS button improves on the association interaction.Find WPS pin on epson printer
I've been looking for a great useful blog for a long time, thanks admin. For more amateur Mini Diva videos, visit our site now.
mini diva porn
Open the Tubi program in your Samsung Television. 2. Navigate into the exact top of this Tubi home screen, and soon you visit Settings, Search, and Signal In icons. 3. Select Register. You may now find an activation code onto your own television screen. 4. On a computer system or cell browser, head to tubitv.com/activate
tubi.tv/activate
tubi.tv/activate enter code
tubi.tv/activate
Tubiactivatetv.com can be an unbiased site. We're maybe not official. If any Tubi television users confronting any difficulty associated with activation therefore we're as of this site to eliminate problems. We aren't linked to Tubi television and other streaming services such as Amazon prime, and Roku.
tubi.tv/activate
tubi.tv/activate enter code
tubi.tv/activate
Are you currently dealing with the Why is aol mail not working on iphone 2021 problem? do not worry, here are the guide to fix that error. you may apply it on your device to get the proper solution.
Norton security application is one of the best choices to protect your system from contaminated bugs and ransomware. It may be set up on many devices whether it's Android, Mac, Windows, or even iOS. It's possible to easily install it in your preferred device. It comes up with several fundamental security features, which users may use to battle against viruses and protect their information.
Norton Login
Norton SONAR
protection
norton error 3039
PC Support services
Technical support for Google Chrome
online technical support for Mozilla Firefox
The word WPS means "Wi-Fi Protected Setup" and for making the association between a switch and remote printers and different device, this one is being utilized for. You need to discover WPS Pin on your canon printer to set up an association between the open device. The remote innovation that is utilized in the canon printer permits you to print the archives from any edge of your home and furthermore whenever. The WPS PIN Code will be utilized for interfacing your remote HP Printer to your own device and set the printer up either through wired organization or through your remote switch and afterward begin printing the hassle-freely. How to find WPS pin on my CANON Printer
SEO ajansı
SEO çalışması
Are you facing issues Twc Email Support at the steps on your new Samsung S20 Ultra for setting up Time Warner Cable email. You can go online and look for solutions on reputable forums if you are unable to find the email app or right settings for setting up TWC email. Once discovered, incorporate the solutions.
In this modern world, everyone wants the best and luxurious lifestyle for their comfort. As a loving pet parent, you should also need the same for your pup Iceporn.
The MAT north jersey rehab treatment utilizes drugs, in mix with treatment, to help a singular end a substance use problem. Prescription Assisted Treatment for liquor compulsion is successful and accessible.
Cord and webbing give additional measures of safety when used as slings, runners, harnesses, and more and are commonly employed in many areas of climbing, trekking, and more. When used as a marine rope cord and webbing are both excellent choices for keeping you safe—each with its unique set of applications. These flat, braided strips are commonly used on backpacks and straps to offer strength and longevity. We also have a variety of twine alternatives, including cotton, hemp, and nylon twine, as well as twine that has been waxed or tarred. Our twine alternatives are robust and lively, making them ideal in a variety of applications. For further information, please visit our website
when you update your McAfee not Responding it is possible to face some server error like "McAfee is unable to update your software. Check your internet connection" Then, your "McAfee Antivirus Not Responding update has stopped at zero or at some random percentage" or similar.
Fantastic blog! What advise do you give for aspiring writers?
I plan to create my profile soon, however I am a bit
lost in total. Would you propose starting with
a free platform like WordPress, or should you go for the premium option?
There are so many alternatives that I am absolutely overwhelmed.
Any recommendations? Many thanks!
idm crack serial key
idm crack serial key
adblocker crack
Complete Norton Support
Minute Norton help for anchored electronic scrutinizing
Ace Norton particular help against spyware and malwares
Guaranteed help for contamination take-off
Particular assistance from certified experts for installation and uninstallation of Norton programs
https://www.techexpertsweb.com/Norton-Technical-Support.html
https://apkmodule.com/camscanner-mod-apk/
Camscanner Mod Apk
Find the complete Family tree maker DownloadSoftware SupportAt the beginning of the genealogy Family, Tree Maker Software for Android and Mac Users has given users, the advantage of keeping track of information gathered when doing research and collecting data through reports, charts, or books. bn One can easily exhibit one's family story with images, historical documents, audio, and even video content using this method. This can be digitally passed down to many ages as a legacy. Download family tree maker
Software now to start creating a legacy that will last a lifetime.
family tree maker 2019 move to new computer
Family Tree Maker has become a new-generation tool where an individual can keep track of their past and future generations without any hassle digitally. It is user-friendly software and with ease, you can move it from one device to the other.
Transferring FTM from one computer to another You can easily export FTM both Family Tree Maker 2019 altogether safely. This is because while you are moving from one computer to another, the file will still remain in your old device. It happens because you will be making a new folder to transfer.
How to Transfer family tree maker 2019 move to new computer
?
Family Tree Maker File Export
On your computer, launch Family Tree Maker 2019.
Looking for a pdf editor that is both free and easy to use? Look no further than A1office pdf editor! This software is perfect for anyone who needs to make quick edits to their pdf documents. With A1office pdf editor, you can quickly and easily make changes to text, images, and other elements in your document. Plus, the software is completely free to download and use!
Post a Comment