Linux初心者が録画サーバーをたてる(1)

2024年1月15日

タイトル通り。半ばメモである。建てた後日に新ドライバが出た悲しみ。

自己責任でお願いします。

内容

Linux初心者がW3PE4を用いてサーバーを建てるまでのメモ
ドライバ、Mirakurun、Chinachuγ導入はそのままなので検索してください。

環境

CPUIntel Xeon E3-1265L V2
MEMSanmax DDR3-1600 ECC 8GB*2
M/BSuperMicro X9SAE-V
SSDSanmax 256GB
HDDWD Blue 4TB*2
TunerPlex PX-W3PE4
CASESilverStone FT02
OSUbuntu 17.10 x64
(後日18.04ドライバでました)
OSインストール直後から

Ubuntu GUIまたはルーターからプライベートIPアドレスの固定をします。

 

sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade && sudo reboot

 

sudo ufw status
sudo ufw default deny
sudo ufw enable
sudo ufw allow 22
sudo ufw allow 3389
sudo ufw allow 20772

いらないけど設定します。
22はSSH
3389はXRDP(リモート)
20772はChinachuで使います

 

sudo apt-get install openssh-server
sudo service ssh status
sudo vi /etc/ssh/sshd_config
sudo service ssh restart

これで画面が不要になります

 

touch ~/.vimrc
vi ~/.vimrc
set nocompatible
set backspace=indent,eol,start

最低限の設定だけどVIがちょっと使いやすく

 

sudo apt install -y xrdp

sudo systemctl enable xrdp
sudo systemctl restart xrdp
sudo apt install -y tigervnc-standalone-server
echo "mate-session" > ~/.xsession

sudo systemctl enable xrdp
sudo systemctl restart xrdp

Mate前提
これでGUI操作も楽々になります
windowsのリモートデスクトップ接続でok

 

sudo LANG=C xdg-user-dirs-update --force

ターミナルから日本語うつのはだるい

 

sudo apt -y install vim ubuntu-restricted-extras gnome-tweak-tool python3-pip python3-dev

 

sudo sed -i s/enabled=1/enabled=0/g /etc/default/apport

 

sudo apt-get install cifs-utils
sudo mkdir -p /mnt/windows
sudo mount -t cifs -o username=[username],password=[password] //[server]/[share] /mnt/windows

あると便利
windowsからファイルを引っ張ってくるときに

 

sudo vi /etc/rc.local 

#!/bin/sh
mount -t cifs -o username=[username],password=[password] //[server]/[share] /mnt/windows
mount /dev/sdb1 /hdd_disk

sudo chmod 755 /etc/rc.local

あると便利
windowsのHDDをマウント
ubuntuマシンのHDDをマウント
fstabでもいいけど、ミスるとめんどいのでrc.localにしました。

sudo apt-get install --install-recommends winehq-devel
sudo apt-get install winetricks

 

VL Gothic Font Family ←好きなフォントもってくる
~/.wine/drive_c/windows/Fonts ←ここにいれる

sudo vi ~/.wine/user.reg
[Software\\Wine\\Fonts\\Replacements] 1240428288
"MS Gothic"="VL Gothic"
"MS PGothic"="VL PGothic"
"MS Sans Serif"="VL PGothic"
"MS Shell Dlg"="VL Gothic"
"MS UI Gothic"="VL PGothic"
"Tahoma"="VL PGothic"
"\xff2d\xff33 \x30b4\x30b7\x30c3\x30af"="VL Gothic"
"\xff2d\xff33 \xff30\x30b4\x30b7\x30c3\x30af"="VL PGothic"

wine文字化け対策

ドライバ、Mirakurun , Chinachuγの導入はそのままですので調べてください。
2018年6月29日現在、PX-W3PE4はUbuntu 18.04用のドライバがでています。

PC関連,Ubuntu,録画鯖

Posted by neff