Tutorial to compile and install Transmission on FFP 0.7-arm

Marvell Kirkwood based
Post Reply
barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

Re: Tutorial to compile and install Transmission on FFP 0.7-

Post by barmalej2 » Fri Nov 21, 2014 10:50 am

:shock: I was assuming, that you are still using standard Fonz provided uclibc-solibs library. It is old, stable, but lacks some functions (epoll_create1, fallocate, posix_fallocate and so on) which are required for some programs or enables additional feature support.
Anyway, if you want, you can test mine uClibc build:
http://downloads.zyxel.nas-central.org/ ... -arm-3.txz
http://downloads.zyxel.nas-central.org/ ... -arm-3.txz
With new uClibc you can use transmission preallocation feature, which reduces fragmentation of downloading content.

philippetev
Posts: 82
Joined: Tue Apr 17, 2012 7:45 am

Re: Tutorial to compile and install Transmission on FFP 0.7-

Post by philippetev » Fri Nov 21, 2014 11:13 am

Just installed them, now running the NZBGet compilation, Transmission will follow.
One question: what's the difference between the arm-3 and arm-5 packages in your repo (except the bigger build number)?
ZyXEL NSA-310 FW 4.70(AFK.1) MetaRepository + Fonz Fun Plug 0.7zypkg004

barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

Re: Tutorial to compile and install Transmission on FFP 0.7-

Post by barmalej2 » Fri Nov 21, 2014 11:30 am

uClibc-solibs-0.9.33.3_git-arm-5.txz and uClibc-solibs-0.9.33.3_git-arm-5.txz build version is with UTF-8 locales support and for iconv functions (characters conversion) is responsible uClibc itself. Don't use it. All programs, which uses iconv functions, compiled with this version can have troubles using them with current old uclibc/libiconv. In the other words, it will work for you, but not for others, which uses standard ffp libraries.
This build should be used as base for new FFP version, if it will see daylight someday :)
It is not suitable for compiling, but for regular use, when UTF locales is required-it fits.

philippetev
Posts: 82
Joined: Tue Apr 17, 2012 7:45 am

Re: Tutorial to compile and install Transmission on FFP 0.7-

Post by philippetev » Fri Nov 21, 2014 12:06 pm

Just finished. Configured both sources with --prefix=/ffp (and --enable-lightweight for Transmission), built and tested them. No problems at all, it was just like with the original uClibc packages. Nice work !

BTW, I've noticed some cool stuff in you testing repo like the (almost) latest version of gcc, along with the rest tools, needed for building source code. Are they all usable?
ZyXEL NSA-310 FW 4.70(AFK.1) MetaRepository + Fonz Fun Plug 0.7zypkg004

barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

Re: Tutorial to compile and install Transmission on FFP 0.7-

Post by barmalej2 » Fri Nov 21, 2014 12:50 pm

Basicly yes :) Look here:
viewtopic.php?f=249&t=10881&p=89035#p89035
Actually will be more of them, when I move all to br2 slacker repo.
For testing, I have uploaded mostly toolchain related packages.

bgrosu
Posts: 11
Joined: Fri Dec 13, 2013 9:10 pm

Re: Tutorial to compile and install Transmission on FFP 0.7-

Post by bgrosu » Mon Dec 15, 2014 9:13 pm

Hi!

I installed transmission and used it for some time. At some point it stopped working and I reinstalled it via nas interface.
After reinstall it looks like this
Screen Shot 2014-12-15 at 23.12.11.png
and I doesn't work anymore.

What else can I do? re-reinstall it?
You do not have the required permissions to view the files attached to this post.

barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

Re: Tutorial to compile and install Transmission on FFP 0.7-

Post by barmalej2 » Tue Dec 16, 2014 6:19 am

Uninstall, retrieve package list and install again.
btw. If I clearly remember, in case of firmware upgrade, all packages must be uninstalled, and reinstalled with new versions compatible with new firmware.

bgrosu
Posts: 11
Joined: Fri Dec 13, 2013 9:10 pm

Re: Tutorial to compile and install Transmission on FFP 0.7-

Post by bgrosu » Tue Dec 16, 2014 7:35 am

Apparently it worked, the only thing that I did differently was that I unchecked the "keep current settings" thick in the uninstall process.

Thanks!


ibere
Posts: 22
Joined: Sat Jun 20, 2015 4:58 pm

Re: Tutorial to compile and install Transmission on FFP 0.7-

Post by ibere » Sun Jul 12, 2015 12:09 pm

Transmission 2.84

wget https://www.dropbox.com/s/0z1gf6ye6y1dj ... -arm-0.txz
funpkg -i transmission-2.84-arm-0.txz

MrTumTum
Posts: 30
Joined: Thu Jun 04, 2015 6:39 pm

Re: Tutorial to compile and install Transmission on FFP 0.7-

Post by MrTumTum » Sun Jul 19, 2015 9:21 pm

Does this tutorial still work? I'm having to luck following this tutorial :(

I'm stuck at step 19, there is no file-settings.json in my /mnt/HD_a2/transmission. I suspect that something goes wrong in the startup-script (/ffp/start/transmission.sh start), but I have no clue how to fix this.

This is the result I get when running the command /ffp/start/transmission.sh start

Code: Select all

root@NSA310S:/ffp/start# /ffp/start/transmission.sh start
Starting transmission-daemon
Transmission 2.82 (14160)  http://www.transmissionbt.com/
A fast and easy BitTorrent client

transmission-daemon is a headless Transmission session
that can be controlled via transmission-remote
or the web interface.

Usage: transmission-daemon [options]

Options:
 -h   --help                             Display this help page and exit
 -a   --allowed              <list>      Allowed IP addresses. (Default:
                                         127.0.0.1)
 -b   --blocklist                        Enable peer blocklists
 -B   --no-blocklist                     Disable peer blocklists
 -c   --watch-dir            <directory> Where to watch for new .torrent files
 -C   --no-watch-dir                     Disable the watch-dir
      --incomplete-dir       <directory> Where to store new torrents until
                                         they're complete
      --no-incomplete-dir                Don't store incomplete torrents in a
                                         different location
 -d   --dump-settings                    Dump the settings and exit
 -e   --logfile              <filename>  Dump the log messages to this filename
 -f   --foreground                       Run in the foreground instead of
                                         daemonizing
 -g   --config-dir           <path>      Where to look for configuration files
 -p   --port                 <port>      RPC port (Default: 9091)
 -t   --auth                             Require authentication
 -T   --no-auth                          Don't require authentication
 -u   --username             <username>  Set username for authentication
 -v   --password             <password>  Set password for authentication
 -V   --version                          Show version number and exit
      --log-error                        Show error messages
      --log-info                         Show error and info messages
      --log-debug                        Show error, info, and debug messages
 -w   --download-dir         <path>      Where to save downloaded data
      --paused                           Pause all torrents on startup
 -o   --dht                              Enable distributed hash tables (DHT)
 -O   --no-dht                           Disable distributed hash tables (DHT)
 -y   --lpd                              Enable local peer discovery (LPD)
 -Y   --no-lpd                           Disable local peer discovery (LPD)
      --utp                              Enable uTP for peer connections
      --no-utp                           Disable uTP for peer connections
 -P   --peerport             <port>      Port for incoming peers (Default:
                                         51413)
 -m   --portmap                          Enable portmapping via NAT-PMP or UPnP
 -M   --no-portmap                       Disable portmapping
 -L   --peerlimit-global     <limit>     Maximum overall number of peers
                                         (Default: 200)
 -l   --peerlimit-torrent    <limit>     Maximum number of peers per torrent
                                         (Default: 50)
 -er  --encryption-required              Encrypt all peer connections
 -ep  --encryption-preferred             Prefer encrypted peer connections
 -et  --encryption-tolerated             Prefer unencrypted peer connections
 -i   --bind-address-ipv4    <ipv4 addr> Where to listen for peer connections
 -I   --bind-address-ipv6    <ipv6 addr> Where to listen for peer connections
 -r   --rpc-bind-address     <ipv4 addr> Where to listen for RPC connections
 -gsr --global-seedratio     ratio       All torrents, unless overridden by a
                                         per-torrent setting, should seed until
                                         a specific ratio
 -GSR --no-global-seedratio              All torrents, unless overridden by a
                                         per-torrent setting, should seed
                                         regardless of ratio
 -x   --pid-file             <pid-file>  Enable PID file
/ffp/bin/sh: line 1: /mnt/HD_a2/transmission/transmission-daemon.log: No such file or directory

Am I correct that the transmission is not started correct? Or am I doing anything else wrong?

Edit:
P.s. This log shows Transmission 2.82. I tried my last attempt with 2.61

barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

Re: Tutorial to compile and install Transmission on FFP 0.7-

Post by barmalej2 » Mon Jul 20, 2015 4:40 am

Which editor was used to create /ffp/start/transmission.sh file? Even these instructions are outdated, they are still valid.
ffp/bin/sh: line 1: /mnt/HD_a2/transmission/transmission-daemon.log: No such file or directory
At first line of script? Hmmm... Definitely something wrong with start-up script. Keep in mind-windows editors are not suitable to create linux script files. Use nano editor on NAS or Notepad++ on Windows OS.
Easiest and fastest way to create script file is to use bash command line:
1. Delete old script:

Code: Select all

rm /ffp/start/transmission.sh
2. Select and copy everything of this code:

Code: Select all

cat > /ffp/start/transmission.sh << "EOF"
#!/ffp/bin/sh

# PROVIDE: Transmission

. /ffp/etc/ffp.subr

TRANSMISSION_HOME=/mnt/HD_a2/transmission

name="transmission-daemon"
command="/ffp/bin/$name"
start_cmd="transmission_start"
stop_cmd="transmission_stop"
status_cmd="transmission_status"
user=root
su_cmd="/ffp/bin/su"

transmission_start()
{
   if [ ! -d ${TRANSMISSION_HOME} ]; then
      $su_cmd $user -c "mkdir ${TRANSMISSION_HOME}"
   fi
   echo "Starting $name"
      $su_cmd $user -c "$command -g ${TRANSMISSION_HOME} -e ${TRANSMISSION_HOME}/$name.log"
}

transmission_stop()
{
   echo "Stopping $name"
      /ffp/bin/killall -SIGINT $name
}

transmission_status()
{
   _pids=$(pidof $name)
   if test -n "$_pids"; then
      echo "$name is running, pid:"
      pidof $name
   else
      echo "$name not running"
   fi
}

run_rc_command "$1"

EOF
3. Paste to command line using shift+enter and press enter once more.

4. Run it:

Code: Select all

sh /ffp/start/transmission.sh start
5.If everything is OK-enable autostart on NAS boot:

Code: Select all

chmod 755 /ffp/start/transmission.sh
P.S. There is cool Windows client to control Transmission-Transmission Remote GUI:
http://sourceforge.net/projects/transgui/

MrTumTum
Posts: 30
Joined: Thu Jun 04, 2015 6:39 pm

Re: Tutorial to compile and install Transmission on FFP 0.7-

Post by MrTumTum » Mon Jul 20, 2015 8:34 am

Which editor was used to create /ffp/start/transmission.sh file? Even these instructions are outdated, they are still valid.
I used this command to create the file:

Code: Select all

touch /mnt/HD_a2/build/tmp/ffp/start/transmission.sh
and then opened the file with Nano and copy/paste the code you provided in step 11.
I tried it in a previous attempt with Notepad++, but that also didn't work for me.
At first line of script? Hmmm... Definitely something wrong with start-up script. Keep in mind-windows editors are suitable to create linux script files. Use nano editor on NAS or Notepad++ on Windows OS.
Easiest and fastest way to create script file is to use bash command line:
Thanks for these steps and for your quick response. I'll try them out tonight!
P.S. There is cool Windows client to control Transmission-Transmission Remote GUI:
http://sourceforge.net/projects/transgui/
Thanks! I was aware of the existence, but never tried it. Can I also use this tool to configure Transmission? Because if i'm correct this can't be done in the webGUI. (Although i know how to configure in the configuration file, I find it much easier to configure trough a GUI. :)

barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

Re: Tutorial to compile and install Transmission on FFP 0.7-

Post by barmalej2 » Mon Jul 20, 2015 9:15 am

Code: Select all

and then opened the file with Nano and copy/paste the code you provided in step 11. 
I tried it in a previous attempt with Notepad++, but that also didn't work for me.

Hmm that is strange. Nano perfectly handles paste command. As for Notepad++, file should be saved as script file .sh to have Linux line endings automatically. Notepad++ also can convert windows line endings to Linux of given file. It very good, simple, advanced editor and does everything what I need for my NAS. I use it everyday as default editor of WINSCP to edit scripts on NAS directly in secure way remotely.

Code: Select all

Can I also use this tool to configure Transmission
Most of the settings can be changed using Transmission Remote GUI as well as using Web GUI. But not all. I always prefered native windows GUI, because it is faster, has native support of torrent links and magnet uri handling, has a nice features like renaming torrent on click or open (browse) downloaded torrents directories from GUI directly.
Advanced settings you can change by modifying settings.json. Keep in mind, transmission should be stopped (not running) while editing.

MrTumTum
Posts: 30
Joined: Thu Jun 04, 2015 6:39 pm

Re: Tutorial to compile and install Transmission on FFP 0.7-

Post by MrTumTum » Mon Jul 20, 2015 5:03 pm

Great success! Many thanks for your quick and helpfull help. With these last instructions I was able to get it running.

I just ran into one small problem, after the first start transmission.sh, i got a permission denied warning when I tried to stop it. I found out that the execute permission was missing and after changing that I was able to get it running.

Will try how it works when downloading now, but i don't expect an problems here. *fingers crossed*

Post Reply