自己动手,搭建家庭文件、打印、影音服务器

发布于:2022-12-25 ⋅ 阅读:(952) ⋅ 点赞:(0)

视频教学链接如下

自己动手打造家庭文件、打印、影音服务器_哔哩哔哩_bilibili

使用命令如下

更新
sudo apt-get update
升级
sudo apt-get upgrade
下载vim
apt-get install vim
安装ssh
apt-get install openssh-server
/etc/init.d/ssh start
apt-get install ssh
vim /etc/ssh/sshd_config
修改  PermitRootLogin yes
service sshd restart

fdisk -l
blkid /dev/sdb5
vim /etc/fstab
UUID=e0c63e61-d053-4554-81ae-37749bbbd5af /disk/disk1 xfs defaults 0 0
mount -a

安装samba
apt update
apt install samba

useradd okde
smbpasswd -a okde

vim /etc/samba/smb.conf
[media]
path = /disk2/data
browseable = yes
writable = yes
available = yes
admin users = okde
valid users = okde
write list = okde
public = no

打印服务器
/etc/cups/cupsd.conf

修改“localhost”改成“0.0.0.0”,Browsing off改成Browsing on,并在三个地方分别添加Allow all,具体如下
Listen 0.0.0.0:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Web interface setting...
WebInterface Yes

# Restrict access to the server...
<Location />
Order allow,deny
Allow all
</Location>

# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow all
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow all

重启cups
service cups restart

爱普生:
apt install printer-driver-gutenprint

惠普:
sudo apt-get install hplip

兄弟
apt-get install printer-driver-brlaser


安装jellyfin
sudo apt install curl gnupg
curl -fsSL https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | gpg --dearmor -o /etc/apt/trusted.gpg.d/jellyfin.gpg
echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/$( awk -F'=' '/^ID=/{ print $NF }' /etc/os-release ) $( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release ) main unstable" | sudo tee /etc/apt/sources.list.d/jellyfin.list
sudo apt update
sudo apt install jellyfin
apt install intel-media-va-driver-non-free -y
apt install vainfo -y

apt install intel-opencl-icd
开启GuC
chmod 777 /dev/dri/renderD128

vim /etc/default/grub

加入:
GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on i915.enable_guc=3 quiet"
update-grub
reboot
确认是否开启
dmesg | grep -iE "guc|huc"


apt install fonts-noto-cjk-extra
 

本文含有隐藏内容,请 开通VIP 后查看

网站公告

今日签到

点亮在社区的每一天
去签到