HomeServer19
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#contents()
** リモートコンソール [#h4da0d7f]
*** xrdp のインストール [#pb3c6699]
munakata@mvc:~$ sudo apt install -y xrdp
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
以下の追加パッケージがインストールされます:
xorgxrdp
提案パッケージ:
guacamole xrdp-pulseaudio-installer
以下のパッケージが新たにインストールされます:
xorgxrdp xrdp
アップグレード: 0 個、新規インストール: 2 個、削除: 0 個...
498 kB のアーカイブを取得する必要があります。
この操作後に追加で 3,303 kB のディスク容量が消費されます。
取得:1 http://jp.archive.ubuntu.com/ubuntu bionic/univer...
取得:2 http://jp.archive.ubuntu.com/ubuntu bionic/univer...
498 kB を 3秒 で取得しました (165 kB/s)
以前に未選択のパッケージ xorgxrdp を選択しています。
(データベースを読み込んでいます ... 現在 240686 個のファ...
.../xorgxrdp_0.9.5-2_amd64.deb を展開する準備をしていま...
xorgxrdp (0.9.5-2) を展開しています...
以前に未選択のパッケージ xrdp を選択しています。
.../xrdp_0.9.5-2_amd64.deb を展開する準備をしています ...
xrdp (0.9.5-2) を展開しています...
xrdp (0.9.5-2) を設定しています ...
Generating 2048 bit rsa key...
ssl_gen_key_xrdp1 ok
saving to /etc/xrdp/rsakeys.ini
Created symlink /etc/systemd/system/multi-user.target.wa...
Created symlink /etc/systemd/system/multi-user.target.wa...
xorgxrdp (0.9.5-2) を設定しています ...
libc-bin (2.27-3ubuntu1) のトリガを処理しています ...
systemd (237-3ubuntu10.29) のトリガを処理しています ...
man-db (2.8.3-2ubuntu0.1) のトリガを処理しています ...
ureadahead (0.100.0-21) のトリガを処理しています ...
*** セッションタイプがXorgの場合はカーソルのバックグラウ...
munakata@mvc:~$ sudo sed -e 's/^new_cursors=true/new_cur...
munakata@mvc:~$ sudo systemctl restart xrdp
*** Ubuntu向けにカスタマイズされた設定をロードする為に~/....
munakata@mvc:~$ cat .xsessionrc
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
export XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share:...
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
*** セッションタイプをXorgで接続した場合の認証を常に失敗...
munakata@mvc:~$ sudo cat /etc/polkit-1/localauthority/50...
[Netowrkmanager]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device
ResultAny=no
ResultInactive=no
ResultActive=yes
munakata@mvc:~$ sudo systemctl restart polkit
*** Windows10 のリモートデスクトップ接続で接続する [#o0a6...
*** Windows10 に [[Ultra VNC:https://forest.watch.impress...
*** 参考 URL [#b6f04af8]
- [[Ubuntu 18.04: GNOMEデスクトップ環境にXRDPで接続する:h...
- [[Ubuntu/WindowsからUbuntuにリモートデスクトップ接続す...
** samba 設定最適化 [#m6005ea2]
- 以下は 2020-08-14 時点での設定
- 常時稼働の MVC(橫浜サーバー)を TEAMSPIRIT ワークグル...
- 三鷹で VPN 接続されたサーバーからの認証に失敗する
- 古い環境は無いので 認証プロトコルは SMB3 に統一(SMB2 ...
-- client lanman auth = no (クライアントにWin95/98/Meがな...
-- client NTLMv2 auth = no (クライアントにWin95/98/Me/NT...
-- [[idmap config * : backend = tdb は不要だろう:http://w...
[global]
dos charset = CP932
unix charset = UTF-8
workgroup = TEAMSPIRIT
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *R...
unix password sync = Yes
lanman auth = Yes <------------ No に変更
(追加) client NTLMv2 auth = Yes
log file = /var/log/samba/log.%m
max log size = 1000
unix extensions = No
dns proxy = No
usershare allow guests = Yes
usershare owner only = No
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
client max protocol = SMB3
#ntlm auth = yes
domain master = Yes
local master = Yes
preferred master = Yes
os level = 35
[HDR_master]
path = /mnt/dtv_master
browsable =yes
read only = No
writable = yes
guest ok = yes
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
[HDR_Slave]
path = /mnt/dtv_slave
browsable =yes
read only = No
writable = yes
guest ok = yes
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
[HDR_Third]
path = /mnt/dtv_recover
browsable =yes
read only = No
writable = yes
guest ok = yes
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
[HDR_Recipe]
comment = magu's HDR space
path = /mnt/dtv_recipe
browsable =yes
read only = No
writable = yes
guest ok = yes
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
[HDR_264]
comment = magu's encoded video
path = /mnt/dtv_h264
read only = No
guest ok = Yes
force user = munakata
force group = munakata
hosts allow = 192.168.1., 127.0.0.1,
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
- 参考ページ
-- [[第1回:Samba2.2→ Samba3.0への移行(2005年の記事):htt...
*** Samba サーバーが見えない問題の解析(202008 追記) [#e...
- 三鷹の環境で browseable=yes にしている共有フォルダーが ...
- この状況でも明示的に \\(IPアドレス)\(フォルダー名) で指...
- この運用だと、例えば FirestickTV 上の kodi で Samba デ...
- サーバーの nmd のログを見て マスターブラウザーが2つ(Wi...
[2020/08/08 14:55:09.602933, 0] ../source3/nmbd/nmbd_be...
1848 *****↲
1849 --↲
1850 Samba name server MMIT is now a local master brow...
1851 --↲
1852 *****↲
1853 [2020/08/08 14:56:43.625382, 0] ../source3/nmbd/nm...
1854 process_local_master_announce: Server IDEAC510A a...
TEAMSPIRIT and we think we are master. Forcing election.↲
- Windows10 でマスターブラウザーを無効とするように regedi...
-- コンピューター\HKEY_LOCAL_MACHINE\SYSTEM\CurrentContro...
- VPN 環境のため 三鷹からも 192.168.1.x のネットワークが...
-- ローカルマスターブラウザを複数持つと各サーバがブラウジ...
- 現在 TEAMSPIRIT のドメインマスターは MMIT(三鷹)が担っ...
- 橫浜で TEAMSPITIR のマスタードメインが何になっているか...
munakata@mvc:~$ nmblookup -M TEAMSPIRIT
192.168.122.1 TEAMSPIRIT<1d>
munakata@mvc:~$ ping 192.168.122.1
PING 192.168.122.1 (192.168.122.1) 56(84) bytes of data.
64 bytes from 192.168.122.1: icmp_seq=1 ttl=64 time=0.05...
64 bytes from 192.168.122.1: icmp_seq=2 ttl=64 time=0.06...
64 bytes from 192.168.122.1: icmp_seq=3 ttl=64 time=0.04...
64 bytes from 192.168.122.1: icmp_seq=4 ttl=64 time=0.05...
- 192.168.122.1 は vpn 用の仮想 NIC
munakata@mvc:~$ ip ad
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue st...
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qd...
link/ether 04:92:26:5c:c3:15 brd ff:ff:ff:ff:ff:ff
3: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc...
link/ether 04:92:26:5c:c3:15 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.26/24 brd 192.168.1.255 scope global ...
valid_lft forever preferred_lft forever
inet6 fe80::8024:bc4f:d6e5:c348/64 scope link nopref...
valid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 ...
link/ether 52:54:00:4a:b1:a9 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope glob...
valid_lft forever preferred_lft forever
5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_c...
link/ether 52:54:00:4a:b1:a9 brd ff:ff:ff:ff:ff:ff
-- 参考ページ
--- [[(Redhat)14.6. Samba ネットワークブラウジング:http:/...
--- [[Windows10からネットワークで共有しているコンピュータ...
*** Samba サーバーは見えるようになったが Login に失敗する...
- samba の log level(デフォルトは2、設定範囲は 0~10) を...
[2020/08/15 10:42:56.857291, 3] ../source3/smbd/service...
ideac510a (ipv6:fe80::e18a:aea9:384d:e697:50160) conne...
[2020/08/15 10:42:56.894081, 3] ../source3/smbd/msdfs.c...
get_referred_path: |hdr_264| in dfs path \Mvc\hdr_264 ...
[2020/08/15 10:42:56.894142, 3] ../source3/smbd/smb2_se...
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex...
[2020/08/15 10:42:56.926494, 0] ../lib/util/access.c:36...
Denied connection from fe80::e18a:aea9:384d:e697 (fe80...
- ログの中で &color(red){in dfs path \Mvc\hdr_264 is not ...
-- [[DFSがどうこうと言われて Sambaの共有にアクセスできな...
-- [[Cannot log in user with Samba:https://linux.m2osw.co...
- smb.conf の global セクションに &color(red){host msdfs ...
- &color(red){(解決):host allow に IPv6 アドレスが渡って...
-- 当面の解決策として仮装HUBで IPv4 だけを通すように変更...
*** 2020/09/12 時点での samba 設定 [#k4f79f28]
- &ref(smb.conf);
[global]
dos charset = CP932
unix charset = UTF-8
workgroup = TEAMSPIRIT
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
#pam password change = Yes
passdb backend=tdbsam
security=user
#passwd program = /usr/bin/passwd %u
#passwd chat = *Enter\snew\s*\spassword:* %n\n *...
#unix password sync = Yes
log file = /var/log/samba/log.%m
log level = 2
max log size = 1000
unix extensions = No
dns proxy = No
usershare allow guests = Yes
usershare owner only = No
panic action = /usr/share/samba/panic-action %d
#idmap config * : backend = tdb
lanman auth = No
client NTLMv2 auth = Yes
host msdfs = no
#client max protocol = SMB3
domain master = Yes
local master = Yes
preferred master = Yes
os level = 20
#[HDR_master]
# path = /mnt/dtv_master
# browsable =yes
# read only = No
# writable = yes
# guest ok = yes
# hosts allow = 192.168.1., 127.0.0.1
# hosts deny = ALL
# create mask=760
# force create mode=760
# directory mask=2775
# force directory mode=2775
# force group=munakata
[HDR_Slave]
path = /mnt/dtv_slave
browsable =yes
read only = No
writable = yes
guest ok = yes
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
[HDR_Third]
path = /mnt/dtv_recover
browsable =yes
read only = No
writable = yes
guest ok = yes
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
[HDR_Recipe]
comment = magu's HDR space
path = /mnt/dtv_recipe
browsable =yes
read only = No
writable = yes
guest ok = yes
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
[HDR_264]
comment = magu's encoded video
path = /mnt/dtv_h264
read only = No
guest ok = Yes
force user = munakata
force group = munakata
hosts allow = 192.168.1., 127.0.0.1,
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
[HDR_264B]
comment = magu's encoded video2
path = /mnt/dtv_h264B
read only = No
guest ok = Yes
force user = munakata
force group = munakata
hosts allow = 192.168.1., 127.0.0.1,
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
[winshare]
comment = Ubuntu <-> Windows file exchange
path = /mnt/raid_vol/home/munakata/winshare
read only = No
guest ok = Yes
force user = munakata
force group = munakata
hosts allow = 192.168.1., 127.0.0.1,
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
#[sharepoint]
# comment = home_share_point
# path = /raid_vol/smb_common
# read only = No
# guest ok = Yes
# force user = munakata
# force group = munakata
# hosts allow = 192.168.1., 127.0.0.1
# hosts deny = ALL
[yuko_music]
comment = itune_backup
path = /mnt/raid_vol/home/yuko/backup/
read only = No
browsable =yes
guest ok = Yes
force user = munakata
force group = munakata
create mask = 0755
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
#[magu_pc_backup]
# comment = magu's windows PC backup
# path = /raid_vol/var/muna-backup
# valid users = munakata
# read only = No
# guest ok = Yes
# force user = munakata
# force group = munakata
# hosts allow = 192.168.1.
#[hdaudio]
# path = /raid_vol/home/munakata/hifiaudio
# read only = No
# guest ok = Yes
# force user = munakata
# force group = munakata
[peewee]
comment = pee wee tree2
path = /mnt/raid_vol/home/peewee
valid users = munakata
admin users = munakata
write list = munakata
force user = munakata
force group = munakata
read only = No
browseable = No
create mask = 0755
hosts allow = 192.168.1.13, 192.168.1.10, 192.16...
hosts deny = ALL
#[peewee_vimage]
# comment = DVD_RAW_image
# path = /backup2/peewee/disk_image
# valid users = munakata
# force user = munakata
# force group = munakata
# read only = No
# browseable = No
# create mask = 0755
# hosts allow = 192.168.1.13
*** Samba/CIFS の関係の解説 [#x83ab5b4]
- [[ファイル共有プロトコル、SMBとCIFSの違いを正しく理解で...
- [[ファイル共有プロトコル、SMBとCIFSの違いを正しく理解で...
- [[Linuxはサンバ(Samba)で踊る――WindowsとLinuxのファイ...
** pukiwiki_sync [#j832a4ff]
*** 同期スクリプト [#fd917c82]
- &ref(sync.sh);
#!/bin/sh
sudo cp /var/www/html/pukiwiki/skin/pukiwiki.css.php /va...
sudo rsync -avz -e "ssh -p 8823 -i /home/munakata/.ssh/e...
sudo cp /var/www/html/pukiwiki/skin/pukiwiki.css.php_bac...
sudo rm /var/www/html/pukiwiki/epgrec
*** ローカル表示用 CSS (/var/www/html/pukiwiki/skin/pukiw...
- &ref(pukiwiki.css.php);
** Apache ログ解析(awstatus) [#hdc6272c]
*** 参考 URL [#sd9f290a]
- [[Awstatsの設定:https://www.rough-and-cheap.jp/linux/ub...
- [[Installing AWStats (Advanced Web Statistics) on Ubunt...
終了行:
#contents()
** リモートコンソール [#h4da0d7f]
*** xrdp のインストール [#pb3c6699]
munakata@mvc:~$ sudo apt install -y xrdp
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
以下の追加パッケージがインストールされます:
xorgxrdp
提案パッケージ:
guacamole xrdp-pulseaudio-installer
以下のパッケージが新たにインストールされます:
xorgxrdp xrdp
アップグレード: 0 個、新規インストール: 2 個、削除: 0 個...
498 kB のアーカイブを取得する必要があります。
この操作後に追加で 3,303 kB のディスク容量が消費されます。
取得:1 http://jp.archive.ubuntu.com/ubuntu bionic/univer...
取得:2 http://jp.archive.ubuntu.com/ubuntu bionic/univer...
498 kB を 3秒 で取得しました (165 kB/s)
以前に未選択のパッケージ xorgxrdp を選択しています。
(データベースを読み込んでいます ... 現在 240686 個のファ...
.../xorgxrdp_0.9.5-2_amd64.deb を展開する準備をしていま...
xorgxrdp (0.9.5-2) を展開しています...
以前に未選択のパッケージ xrdp を選択しています。
.../xrdp_0.9.5-2_amd64.deb を展開する準備をしています ...
xrdp (0.9.5-2) を展開しています...
xrdp (0.9.5-2) を設定しています ...
Generating 2048 bit rsa key...
ssl_gen_key_xrdp1 ok
saving to /etc/xrdp/rsakeys.ini
Created symlink /etc/systemd/system/multi-user.target.wa...
Created symlink /etc/systemd/system/multi-user.target.wa...
xorgxrdp (0.9.5-2) を設定しています ...
libc-bin (2.27-3ubuntu1) のトリガを処理しています ...
systemd (237-3ubuntu10.29) のトリガを処理しています ...
man-db (2.8.3-2ubuntu0.1) のトリガを処理しています ...
ureadahead (0.100.0-21) のトリガを処理しています ...
*** セッションタイプがXorgの場合はカーソルのバックグラウ...
munakata@mvc:~$ sudo sed -e 's/^new_cursors=true/new_cur...
munakata@mvc:~$ sudo systemctl restart xrdp
*** Ubuntu向けにカスタマイズされた設定をロードする為に~/....
munakata@mvc:~$ cat .xsessionrc
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
export XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share:...
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
*** セッションタイプをXorgで接続した場合の認証を常に失敗...
munakata@mvc:~$ sudo cat /etc/polkit-1/localauthority/50...
[Netowrkmanager]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device
ResultAny=no
ResultInactive=no
ResultActive=yes
munakata@mvc:~$ sudo systemctl restart polkit
*** Windows10 のリモートデスクトップ接続で接続する [#o0a6...
*** Windows10 に [[Ultra VNC:https://forest.watch.impress...
*** 参考 URL [#b6f04af8]
- [[Ubuntu 18.04: GNOMEデスクトップ環境にXRDPで接続する:h...
- [[Ubuntu/WindowsからUbuntuにリモートデスクトップ接続す...
** samba 設定最適化 [#m6005ea2]
- 以下は 2020-08-14 時点での設定
- 常時稼働の MVC(橫浜サーバー)を TEAMSPIRIT ワークグル...
- 三鷹で VPN 接続されたサーバーからの認証に失敗する
- 古い環境は無いので 認証プロトコルは SMB3 に統一(SMB2 ...
-- client lanman auth = no (クライアントにWin95/98/Meがな...
-- client NTLMv2 auth = no (クライアントにWin95/98/Me/NT...
-- [[idmap config * : backend = tdb は不要だろう:http://w...
[global]
dos charset = CP932
unix charset = UTF-8
workgroup = TEAMSPIRIT
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *R...
unix password sync = Yes
lanman auth = Yes <------------ No に変更
(追加) client NTLMv2 auth = Yes
log file = /var/log/samba/log.%m
max log size = 1000
unix extensions = No
dns proxy = No
usershare allow guests = Yes
usershare owner only = No
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
client max protocol = SMB3
#ntlm auth = yes
domain master = Yes
local master = Yes
preferred master = Yes
os level = 35
[HDR_master]
path = /mnt/dtv_master
browsable =yes
read only = No
writable = yes
guest ok = yes
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
[HDR_Slave]
path = /mnt/dtv_slave
browsable =yes
read only = No
writable = yes
guest ok = yes
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
[HDR_Third]
path = /mnt/dtv_recover
browsable =yes
read only = No
writable = yes
guest ok = yes
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
[HDR_Recipe]
comment = magu's HDR space
path = /mnt/dtv_recipe
browsable =yes
read only = No
writable = yes
guest ok = yes
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
[HDR_264]
comment = magu's encoded video
path = /mnt/dtv_h264
read only = No
guest ok = Yes
force user = munakata
force group = munakata
hosts allow = 192.168.1., 127.0.0.1,
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
- 参考ページ
-- [[第1回:Samba2.2→ Samba3.0への移行(2005年の記事):htt...
*** Samba サーバーが見えない問題の解析(202008 追記) [#e...
- 三鷹の環境で browseable=yes にしている共有フォルダーが ...
- この状況でも明示的に \\(IPアドレス)\(フォルダー名) で指...
- この運用だと、例えば FirestickTV 上の kodi で Samba デ...
- サーバーの nmd のログを見て マスターブラウザーが2つ(Wi...
[2020/08/08 14:55:09.602933, 0] ../source3/nmbd/nmbd_be...
1848 *****↲
1849 --↲
1850 Samba name server MMIT is now a local master brow...
1851 --↲
1852 *****↲
1853 [2020/08/08 14:56:43.625382, 0] ../source3/nmbd/nm...
1854 process_local_master_announce: Server IDEAC510A a...
TEAMSPIRIT and we think we are master. Forcing election.↲
- Windows10 でマスターブラウザーを無効とするように regedi...
-- コンピューター\HKEY_LOCAL_MACHINE\SYSTEM\CurrentContro...
- VPN 環境のため 三鷹からも 192.168.1.x のネットワークが...
-- ローカルマスターブラウザを複数持つと各サーバがブラウジ...
- 現在 TEAMSPIRIT のドメインマスターは MMIT(三鷹)が担っ...
- 橫浜で TEAMSPITIR のマスタードメインが何になっているか...
munakata@mvc:~$ nmblookup -M TEAMSPIRIT
192.168.122.1 TEAMSPIRIT<1d>
munakata@mvc:~$ ping 192.168.122.1
PING 192.168.122.1 (192.168.122.1) 56(84) bytes of data.
64 bytes from 192.168.122.1: icmp_seq=1 ttl=64 time=0.05...
64 bytes from 192.168.122.1: icmp_seq=2 ttl=64 time=0.06...
64 bytes from 192.168.122.1: icmp_seq=3 ttl=64 time=0.04...
64 bytes from 192.168.122.1: icmp_seq=4 ttl=64 time=0.05...
- 192.168.122.1 は vpn 用の仮想 NIC
munakata@mvc:~$ ip ad
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue st...
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qd...
link/ether 04:92:26:5c:c3:15 brd ff:ff:ff:ff:ff:ff
3: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc...
link/ether 04:92:26:5c:c3:15 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.26/24 brd 192.168.1.255 scope global ...
valid_lft forever preferred_lft forever
inet6 fe80::8024:bc4f:d6e5:c348/64 scope link nopref...
valid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 ...
link/ether 52:54:00:4a:b1:a9 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope glob...
valid_lft forever preferred_lft forever
5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_c...
link/ether 52:54:00:4a:b1:a9 brd ff:ff:ff:ff:ff:ff
-- 参考ページ
--- [[(Redhat)14.6. Samba ネットワークブラウジング:http:/...
--- [[Windows10からネットワークで共有しているコンピュータ...
*** Samba サーバーは見えるようになったが Login に失敗する...
- samba の log level(デフォルトは2、設定範囲は 0~10) を...
[2020/08/15 10:42:56.857291, 3] ../source3/smbd/service...
ideac510a (ipv6:fe80::e18a:aea9:384d:e697:50160) conne...
[2020/08/15 10:42:56.894081, 3] ../source3/smbd/msdfs.c...
get_referred_path: |hdr_264| in dfs path \Mvc\hdr_264 ...
[2020/08/15 10:42:56.894142, 3] ../source3/smbd/smb2_se...
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex...
[2020/08/15 10:42:56.926494, 0] ../lib/util/access.c:36...
Denied connection from fe80::e18a:aea9:384d:e697 (fe80...
- ログの中で &color(red){in dfs path \Mvc\hdr_264 is not ...
-- [[DFSがどうこうと言われて Sambaの共有にアクセスできな...
-- [[Cannot log in user with Samba:https://linux.m2osw.co...
- smb.conf の global セクションに &color(red){host msdfs ...
- &color(red){(解決):host allow に IPv6 アドレスが渡って...
-- 当面の解決策として仮装HUBで IPv4 だけを通すように変更...
*** 2020/09/12 時点での samba 設定 [#k4f79f28]
- &ref(smb.conf);
[global]
dos charset = CP932
unix charset = UTF-8
workgroup = TEAMSPIRIT
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
#pam password change = Yes
passdb backend=tdbsam
security=user
#passwd program = /usr/bin/passwd %u
#passwd chat = *Enter\snew\s*\spassword:* %n\n *...
#unix password sync = Yes
log file = /var/log/samba/log.%m
log level = 2
max log size = 1000
unix extensions = No
dns proxy = No
usershare allow guests = Yes
usershare owner only = No
panic action = /usr/share/samba/panic-action %d
#idmap config * : backend = tdb
lanman auth = No
client NTLMv2 auth = Yes
host msdfs = no
#client max protocol = SMB3
domain master = Yes
local master = Yes
preferred master = Yes
os level = 20
#[HDR_master]
# path = /mnt/dtv_master
# browsable =yes
# read only = No
# writable = yes
# guest ok = yes
# hosts allow = 192.168.1., 127.0.0.1
# hosts deny = ALL
# create mask=760
# force create mode=760
# directory mask=2775
# force directory mode=2775
# force group=munakata
[HDR_Slave]
path = /mnt/dtv_slave
browsable =yes
read only = No
writable = yes
guest ok = yes
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
[HDR_Third]
path = /mnt/dtv_recover
browsable =yes
read only = No
writable = yes
guest ok = yes
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
[HDR_Recipe]
comment = magu's HDR space
path = /mnt/dtv_recipe
browsable =yes
read only = No
writable = yes
guest ok = yes
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
[HDR_264]
comment = magu's encoded video
path = /mnt/dtv_h264
read only = No
guest ok = Yes
force user = munakata
force group = munakata
hosts allow = 192.168.1., 127.0.0.1,
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
[HDR_264B]
comment = magu's encoded video2
path = /mnt/dtv_h264B
read only = No
guest ok = Yes
force user = munakata
force group = munakata
hosts allow = 192.168.1., 127.0.0.1,
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
[winshare]
comment = Ubuntu <-> Windows file exchange
path = /mnt/raid_vol/home/munakata/winshare
read only = No
guest ok = Yes
force user = munakata
force group = munakata
hosts allow = 192.168.1., 127.0.0.1,
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
#[sharepoint]
# comment = home_share_point
# path = /raid_vol/smb_common
# read only = No
# guest ok = Yes
# force user = munakata
# force group = munakata
# hosts allow = 192.168.1., 127.0.0.1
# hosts deny = ALL
[yuko_music]
comment = itune_backup
path = /mnt/raid_vol/home/yuko/backup/
read only = No
browsable =yes
guest ok = Yes
force user = munakata
force group = munakata
create mask = 0755
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
create mask=760
force create mode=760
directory mask=2775
force directory mode=2775
force group=munakata
#[magu_pc_backup]
# comment = magu's windows PC backup
# path = /raid_vol/var/muna-backup
# valid users = munakata
# read only = No
# guest ok = Yes
# force user = munakata
# force group = munakata
# hosts allow = 192.168.1.
#[hdaudio]
# path = /raid_vol/home/munakata/hifiaudio
# read only = No
# guest ok = Yes
# force user = munakata
# force group = munakata
[peewee]
comment = pee wee tree2
path = /mnt/raid_vol/home/peewee
valid users = munakata
admin users = munakata
write list = munakata
force user = munakata
force group = munakata
read only = No
browseable = No
create mask = 0755
hosts allow = 192.168.1.13, 192.168.1.10, 192.16...
hosts deny = ALL
#[peewee_vimage]
# comment = DVD_RAW_image
# path = /backup2/peewee/disk_image
# valid users = munakata
# force user = munakata
# force group = munakata
# read only = No
# browseable = No
# create mask = 0755
# hosts allow = 192.168.1.13
*** Samba/CIFS の関係の解説 [#x83ab5b4]
- [[ファイル共有プロトコル、SMBとCIFSの違いを正しく理解で...
- [[ファイル共有プロトコル、SMBとCIFSの違いを正しく理解で...
- [[Linuxはサンバ(Samba)で踊る――WindowsとLinuxのファイ...
** pukiwiki_sync [#j832a4ff]
*** 同期スクリプト [#fd917c82]
- &ref(sync.sh);
#!/bin/sh
sudo cp /var/www/html/pukiwiki/skin/pukiwiki.css.php /va...
sudo rsync -avz -e "ssh -p 8823 -i /home/munakata/.ssh/e...
sudo cp /var/www/html/pukiwiki/skin/pukiwiki.css.php_bac...
sudo rm /var/www/html/pukiwiki/epgrec
*** ローカル表示用 CSS (/var/www/html/pukiwiki/skin/pukiw...
- &ref(pukiwiki.css.php);
** Apache ログ解析(awstatus) [#hdc6272c]
*** 参考 URL [#sd9f290a]
- [[Awstatsの設定:https://www.rough-and-cheap.jp/linux/ub...
- [[Installing AWStats (Advanced Web Statistics) on Ubunt...
ページ名: