Open hhh1126 opened 2 years ago
使用install-tr-control-cn.sh脚本选择1自动安装时候,遇到WGET的一些错误,因此我选择手动拷贝文件来安装。 将src的内容拷贝至web目录后修改权限,网页依然呈现默认版式
1) 备份 cd xxx/transmission/share/transmission/web sudo mv index.html index.html.bak
2)拷贝 安装包里面的src目录下的所有内容到web目录下 sudo cp -rf xxx/transmission-web-control-1.6.0-beta2/src/* xxx/transmission/share/transmission/web/
3) 修改文件属主与权限 cd xxx/transmission/share/transmission/web sudo chown sc-transmission:transmission * -R sudo find ./ -type d -exec chmod +rx {} \; sudo find ./ -type f -exec chmod +r {} \;
4) 文件属性如下
cd /volume2/@appstore/transmission/share/transmission/web
drwxr-xr-x 1 sc-transmission transmission 188 Mar 1 11:46 . drwxr-xr-x 1 sc-transmission transmission 6 Mar 1 11:32 .. -rwxrwxrwx 1 sc-transmission transmission 1.4K Mar 1 11:34 favicon.ico drwxr-xr-x 1 sc-transmission transmission 76 May 13 2018 images -rwxrwxrwx 1 sc-transmission transmission 13K Mar 1 11:34 index.html -rwxrwxrwx 1 sc-transmission transmission 24K May 13 2018 index.html.bak -rwxrwxrwx 1 sc-transmission transmission 14K Mar 1 11:34 index.mobile.html drwxr-xr-x 1 sc-transmission transmission 276 May 13 2018 javascript -rwxrwxrwx 1 sc-transmission transmission 18K May 13 2018 LICENSE drwxr-xr-x 1 sc-transmission transmission 40 May 13 2018 style drwxr-xr-x 1 sc-transmission transmission 144 Mar 1 11:34 tr-web-control
cd /volume2/@appstore/transmission/share/transmission/web/tr-web-control ls -alh
drwxr-xr-x 1 sc-transmission transmission 144 Mar 1 11:34 . drwxr-xr-x 1 sc-transmission transmission 188 Mar 1 11:46 .. -rwxrwxrwx 1 sc-transmission transmission 1.8K Mar 1 11:34 config.js drwxr-xr-x 1 sc-transmission transmission 234 Mar 1 11:34 i18n -rwxrwxrwx 1 sc-transmission transmission 478 Mar 1 11:34 i18n.json -rwxrwxrwx 1 sc-transmission transmission 7.1K Mar 1 11:34 logo.png -rwxrwxrwx 1 sc-transmission transmission 7.2K Mar 1 11:34 logo-white.png -rwxrwxrwx 1 sc-transmission transmission 870 Mar 1 11:34 plugin.js drwxr-xr-x 1 sc-transmission transmission 214 Mar 1 11:34 script drwxr-xr-x 1 sc-transmission transmission 148 Mar 1 11:34 style drwxr-xr-x 1 sc-transmission transmission 1.2K Mar 1 11:34 template
5) 将个人用户添加到 transmission 用户组 (修改 /etc/group文件)
id hhu uid=1026(hhu) gid=100(users) groups=100(users),101(administrators),65536(sc-download),190144(transmission)
id sc-transmission uid=190144(sc-transmission) gid=190144(transmission) groups=190144(transmission),65536(sc-download)
6) 至此,打开transmission后依然是默认的网页,问题出在哪里呢?
7) 假如将安装目录下的 web 这个文件夹一整个删除,打开transmission后竟然依然可以打开网页,为何呢? 我原本以为,web文件夹删除后,打开网页时会由于无法加载web文件夹下的各种图标而导致打开网页失败。 这个尝试说明,transmission的网页并不是依赖于 web这个文件夹?? 因此我把TWC的SRC内容拷贝到WEB文件夹目录下是无效的?
试了一下web被重定向到了/combustion-release中(但是还没找到在哪里设置的),所以只需要删除(备份)一下/combustion-release目录,并软链一下原目录就好了。
/combustion-release
mv /combustion-release /combustion-release_bak ln -s /usr/share/transmission/web/ /combustion-release
使用install-tr-control-cn.sh脚本选择1自动安装时候,遇到WGET的一些错误,因此我选择手动拷贝文件来安装。 将src的内容拷贝至web目录后修改权限,网页依然呈现默认版式
1) 备份 cd xxx/transmission/share/transmission/web sudo mv index.html index.html.bak
2)拷贝 安装包里面的src目录下的所有内容到web目录下 sudo cp -rf xxx/transmission-web-control-1.6.0-beta2/src/* xxx/transmission/share/transmission/web/
3) 修改文件属主与权限 cd xxx/transmission/share/transmission/web sudo chown sc-transmission:transmission * -R sudo find ./ -type d -exec chmod +rx {} \; sudo find ./ -type f -exec chmod +r {} \;
4) 文件属性如下
cd /volume2/@appstore/transmission/share/transmission/web
drwxr-xr-x 1 sc-transmission transmission 188 Mar 1 11:46 . drwxr-xr-x 1 sc-transmission transmission 6 Mar 1 11:32 .. -rwxrwxrwx 1 sc-transmission transmission 1.4K Mar 1 11:34 favicon.ico drwxr-xr-x 1 sc-transmission transmission 76 May 13 2018 images -rwxrwxrwx 1 sc-transmission transmission 13K Mar 1 11:34 index.html -rwxrwxrwx 1 sc-transmission transmission 24K May 13 2018 index.html.bak -rwxrwxrwx 1 sc-transmission transmission 14K Mar 1 11:34 index.mobile.html drwxr-xr-x 1 sc-transmission transmission 276 May 13 2018 javascript -rwxrwxrwx 1 sc-transmission transmission 18K May 13 2018 LICENSE drwxr-xr-x 1 sc-transmission transmission 40 May 13 2018 style drwxr-xr-x 1 sc-transmission transmission 144 Mar 1 11:34 tr-web-control
cd /volume2/@appstore/transmission/share/transmission/web/tr-web-control ls -alh
drwxr-xr-x 1 sc-transmission transmission 144 Mar 1 11:34 . drwxr-xr-x 1 sc-transmission transmission 188 Mar 1 11:46 .. -rwxrwxrwx 1 sc-transmission transmission 1.8K Mar 1 11:34 config.js drwxr-xr-x 1 sc-transmission transmission 234 Mar 1 11:34 i18n -rwxrwxrwx 1 sc-transmission transmission 478 Mar 1 11:34 i18n.json -rwxrwxrwx 1 sc-transmission transmission 7.1K Mar 1 11:34 logo.png -rwxrwxrwx 1 sc-transmission transmission 7.2K Mar 1 11:34 logo-white.png -rwxrwxrwx 1 sc-transmission transmission 870 Mar 1 11:34 plugin.js drwxr-xr-x 1 sc-transmission transmission 214 Mar 1 11:34 script drwxr-xr-x 1 sc-transmission transmission 148 Mar 1 11:34 style drwxr-xr-x 1 sc-transmission transmission 1.2K Mar 1 11:34 template
5) 将个人用户添加到 transmission 用户组 (修改 /etc/group文件)
id hhu uid=1026(hhu) gid=100(users) groups=100(users),101(administrators),65536(sc-download),190144(transmission)
id sc-transmission uid=190144(sc-transmission) gid=190144(transmission) groups=190144(transmission),65536(sc-download)
6) 至此,打开transmission后依然是默认的网页,问题出在哪里呢?
7) 假如将安装目录下的 web 这个文件夹一整个删除,打开transmission后竟然依然可以打开网页,为何呢? 我原本以为,web文件夹删除后,打开网页时会由于无法加载web文件夹下的各种图标而导致打开网页失败。 这个尝试说明,transmission的网页并不是依赖于 web这个文件夹?? 因此我把TWC的SRC内容拷贝到WEB文件夹目录下是无效的?