本文永久更新地址:
https://my.oschina.net/bysu/blog/1583968
系统相关信息
bysu@bysu:~ $ inxi
CPU~Quad core ARMv7 rev 4 (v7l) (-MCP-) speed~1200 MHz Kernel~4.9.41-v7+ armv7l Up~14:21 Mem~102.5/927.3MB HDD~NA(-) Procs~291 Client~Shell inxi~2.3.5
bysu@bysu:~ $ uname -a
Linux bysu 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux
系统篇
软件安装配置篇
samba相关
执行重启服务命令报错。
bysu@bysu:~ $ sudo systemctl start samba
Failed to restart samba.service: Unit samba.service is masked.
解决方案,参考here
bysu@bysu:~ $ sudo rm /lib/systemd/system/samba.service
bysu@bysu:~ $ sudo systemctl enable samba
samba.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable samba
update-rc.d: error: samba Default-Start contains no runlevels, aborting.
bysu@bysu:~ $ sudo systemctl start samba
bysu@bysu:~ $ sudo systemctl status samba
● samba.service - LSB: ensure Samba daemons are started (nmbd, smbd and samba)
Loaded: loaded (/etc/init.d/samba; generated; vendor preset: enabled)
Active: active (exited) since Sat 2017-12-02 15:28:45 UTC; 9s ago
Docs: man:systemd-sysv-generator(8)
Process: 2525 ExecStart=/etc/init.d/samba start (code=exited, status=0/SUCCESS)
Dec 02 15:28:45 bysu systemd[1]: Starting LSB: ensure Samba daemons are started (nmbd, smbd and samba)...
Dec 02 15:28:45 bysu samba[2525]: Starting nmbd (via systemctl): nmbd.service.
Dec 02 15:28:45 bysu samba[2525]: Starting smbd (via systemctl): smbd.service.
Dec 02 15:28:45 bysu systemd[1]: Started LSB: ensure Samba daemons are started (nmbd, smbd and samba).