我在中型办公环境中将 Ubuntu 服务器安装设置为带有 Subsonic 的媒体服务器。我允许所有员工上传到服务器上的媒体文件夹。
正如您可以想象的那样,目录名称、重复文件以及不正确的文件名和标签会出现艺术家和专辑名称的多种拼写,这会变得有点混乱。
我希望我能找到一个脚本,我可以每天运行一个 cron 作业来清理媒体驱动器。有谁知道任何可能的工作?我想维护一个类似于:/mnt/music/Artist/Album/Song.file 的路径
我有一个带有多个 VLAN 接口的 DAAP 服务器。我想在所有 VLAN 上转发流量。从 eth0 转发到 eth1.010* 我已将交换机配置为具有正确 VLAN 的中继端口,并启用/proc/sys/net/ipv4/ip_forward
但这似乎并不奏效。还有什么我需要做的吗?
这是我的 ifconfig 结果,您可以看到 VLAN 接口并没有真正获得任何流量:
eth0 Link encap:Ethernet HWaddr 00:14:d1:10:ca:fc
inet addr:192.168.1.20 Bcast:172.21.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:536 errors:0 dropped:0 overruns:0 frame:0
TX packets:259 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:264232 (258.0 KiB) TX bytes:37425 (36.5 KiB)
Interrupt:20 Base address:0xe000
eth1 Link encap:Ethernet HWaddr 00:1c:c4:31:28:22
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:303 errors:0 dropped:0 overruns:0 frame:0
TX packets:202 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:225213 (219.9 KiB) TX bytes:47118 (46.0 KiB)
Interrupt:17
eth1.0101 Link encap:Ethernet HWaddr 00:1c:c4:31:28:22
inet addr:172.17.1.20 Bcast:172.17.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:9076 (8.8 KiB)
eth1.0102 Link encap:Ethernet HWaddr 00:1c:c4:31:28:22
inet addr:172.18.1.20 Bcast:172.18.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:9076 (8.8 KiB)
eth1.0103 Link encap:Ethernet HWaddr 00:1c:c4:31:28:22
inet addr:172.19.1.20 Bcast:172.19.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:9076 (8.8 KiB)
eth1.0104 Link encap:Ethernet HWaddr 00:1c:c4:31:28:22
inet addr:172.20.1.20 Bcast:172.20.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:9076 (8.8 KiB)
eth1.0105 Link encap:Ethernet HWaddr 00:1c:c4:31:28:22
inet addr:172.21.1.20 Bcast:172.21.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:9076 (8.8 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:113 errors:0 dropped:0 overruns:0 frame:0
TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20777 (20.2 KiB) TX bytes:20777 (20.2 KiB)
这是我的 /etc/network/interfaces 文件:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# Automagically configured network interfaces
auto eth0
auto eth1.0101
auto eth1.0102
auto eth1.0103
auto eth1.0104
auto eth1.0105
iface eth0 inet static
address 192.168.1.20
netmask 255.255.0.0
gateway 192.168.1.3
network 172.21.0.0
broadcast 172.21.255.255
iface eth1.0101 inet static
address 172.17.1.20
netmask 255.255.255.0
iface eth1.0102 inet static
address 172.18.1.20
netmask 255.255.255.0
iface eth1.0103 inet static
address 172.19.1.20
netmask 255.255.255.0
iface eth1.0104 inet static
address 172.20.1.20
netmask 255.255.255.0
iface eth1.0105 inet static
address 172.21.1.20
netmask 255.255.255.0
感谢您的帮助,我已经为此工作了很长时间。