Remove debian from installing mldonkey with olegoptware

Source: Internet
Author: User
Get rid of debian using olegoptware to install mldonkey -- Linux Release Technology-Debian information. The following is a detailed description. If you have installed optware for dd-wrt before, start from here.

Step 1 back up previous settings

Back up the content in/opt/etc and/opt/share with Winscp and restore the content later.

Step 2: delete the original/opt internal startup Item

Edit the startup script to temporarily block the slave

Mount-o bind/jffs/opt

This line starts all the startup items related to the program in/opt. The blocking method is to add the # sign before each line.

Then restart the router so that all OPT-related programs will not start.

Step 3 rename the original opt directory.

If the original opt directory path is/jffs/opt, enter

Mv/jffs/opt/jffs/ddopt

Rename it. After the update is completed, you can delete it.

If the installation is completely new, see

Step 4 install the new oleg opt

Here, download a .tar.gz file.

Http://code.google.com/p/oleg-for-mss-base/downloads/list

You can see it in the middle of the page.

I would like to thank comrade hlidea on the forum for his compilation.

After the download is complete, drop it into/jffs, telnet it in, and enter

Cd/jffs

Tar zxvf opt.tar.gz

After decompression, the/jffs contains the new opt directory.

Step 5 install all the previous software

Run mount-o bind/jffs/opt

You will find something under/opt.

Then it's easy to execute them separately.

/Opt/bin/ipkg update

/Opt/bin/ipkg install XXXXXXX ....

Install samba, thttpd, proftpd, and so on.

Step 6 restore settings

Didn't I back up/opt/etc just now? After the software is installed, copy the. conf file back. If you still have a web interface, copy the/opt/share backup content back.

Step 7 install the library required by mldonkey

For your convenience, I have packed and uploaded my library. See the attachment.

Download to decompress a .tar.gz file, drop it under/opt, and then

Cd/opt

Tar zxvf optlib.tar.gz

Just unlock it.

Step 8 install mldonkey itself

Find 4 compressed packages in this post and download them to the PC to decompress them.

Http://www.right.com.cn/forum/vi... & highlight = mldonkey

Decompress the package to/opt/bin. The file name is mlnet. lite.

Then chmod + x/opt/bin/mlnet. lite

Add executable permissions.

Step 9 create a startup shell for mldonkey

Because mldonkey puts the configuration file in the environment variable HOME every time, you have to create a STARTUP script for it and set the variable HOME every time.

I will paste it with me. I will use vi to create a text file and place it freely:

#! /Bin/sh

If [-n "'pidof mlnet. lite '"]; then

Echo "Kill old program ..."

Killall mlnet. lite

Sleep 10

Fi

Export HOME =/jffs/root

Rm/jffs/root/. mldonkey/*. tmp 2>/dev/null

Rm/jffs/root/. mldonkey/mlnet. log 2>/dev/null

Rm/jffs/root/. mldonkey/*. pid 2>/dev/null

/Opt/bin/mlnet. lite &

I put this script in/opt/etc/init. d, named mlnet. Don't forget to add chmod + x/opt/etc/init. d/mlnet

Create a temporary directory

Mkdir/jffs/root

Then run/opt/etc/init. d/mlnet.

The first time mlnet will create a large number of startup files under/jffs/root/. mldonkey (note that this directory is hidden)

In step 10, set the mldonkey.

Stop mldonkey and run the command killall mlnet. lite.

I have configured it. For more information, see

Http://www.right.com.cn/forum/viewthread.php? Tid = 12106

Settings.rar in the attachment. After decompression, the Winscp will be thrown to/jffs/root/. mldonkey to overwrite the source file, and then the mlnet will be restarted.

End now

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.