cndaqiang / E5-PC-daily

服务器集群管理遇到的问题和总结
1 stars 0 forks source link

U-NAS #36

Open cndaqiang opened 3 years ago

cndaqiang commented 3 years ago

免费,还可以使用插件 基于debian,可以自己装脚本 支持timemachine

cndaqiang commented 3 years ago

官网 https://www.u-nas.cn/ 从论坛提供的下载地址速度更快 http://u-share.cn/forum-90-1.html

看起来比OMV更傻瓜操作

cndaqiang commented 3 years ago

错误的安装方式: 使用 Ventory 方式引导安装UNAS #34

表面看起来安装很顺利,实际上会像下面一样遇到各种问题 开始安装界面看起来都是一样的,但是 UNAS正确的安装真的是键盘几乎无操作,下面的错误安装安装会遇到需要配置root密码,mirror镜像,创建普通用户

支持UEFI,就是debian嘛,那无线网卡自然自动识别,和OMV安装过程一样

版本

文件MD5验证信息
文件名称: U-NAS_4.0.6_X86-64_ZH_DVD_build202003062.iso
文件大小: 501 MB (525,336,576 字节)
MD5: E5B0FAC38BB883EFC59C267662CFC901
SHA1: 75CF7217F7B02BDF2CB5903466D144AEE4C9202D
SHA256: 987E77F05789568C766F2508F1E07FF7880641912A9CD632E070AE97485D3659

设置网络时,安装下载更新, 网速卡要等好久,选择有线网,但不插网线,这样快吧 断网安装,开机没有提示UNAS的登录地址,配置ip后,也不能用网页访问UNAS

安装过程联网,默认下载的各种包,使用国内mirror, 要几个小时,真是够恶心的,从UNAS官网连接直接下载的系统镜像速度还没有百度云盘的快.... 等了半天,红屏error,真的是网速不好吗???? 被安装的U盘就变成了只读,不可操作状态, 不能格式化,PE下的DiskGenius也无法修改删除分区, UltraISO可以写,写完后,DiskGenius显示硬盘分区没有发生任何改变,白高兴一场

(python37) cndaqiang@girl:~$ sudo dosfsck -v -a /dev/sdc2
[sudo] password for cndaqiang:           
fsck.fat 4.1 (2017-01-24)
open: Read-only file system
(python37) cndaqiang@girl:~$ fsck.ext4 -y /dev/sdc2
e2fsck 1.44.1 (24-Mar-2018)
fsck.ext4: Permission denied while trying to open /dev/sdc2
You must have r/w access to the filesystem or be root
(python37) cndaqiang@girl:~$ sudo fsck.ext4 -y /dev/sdc2
e2fsck 1.44.1 (24-Mar-2018)
fsck.ext4: Read-only file system while trying to open /dev/sdc2
Disk write-protected; use the -n option to do a read-only
check of the device.

默认分区方案使用4G的SSD,提示空间不足,可以手动分区安装,不使用swap分区来安装 最后也是红屏error,下错镜像了吗???可是md5没问题 再次尝试,有事红色的安装失败

cndaqiang commented 3 years ago

正确的安装方式:刻录到U盘安装

只插一块安装系统分区的硬盘,无操作模式安装即可,4G空间可以安装

shell账户密码

root
yutech

web管理密码

admin
password

安装后不会自动连接wifi 使用命令行连上网络后可以直接使用ip访问网页 image

设置支持‘图形化配有有线无线网络,好评 image

和OMV一样,操作卡半天,速度有点慢

硬盘占用情况,4G足矣

root@U-NAS:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1.9G     0  1.9G   0% /dev
tmpfs           386M  5.8M  380M   2% /run
/dev/sda1       3.5G  1.5G  1.9G  44% /
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs           386M     0  386M   0% /run/user/0
cndaqiang commented 3 years ago

优点

功能很让人喜欢 image image 功能也挺适合不想折腾图形化设置的 image

缺点

u-nas官网的网速不行,4g情况下载手机程序10~70K/s,下载镜像还没有百度云快 miui12上 手机客户端 U-NAS Cloud打开即闪退 未来可期,现在方方面面的功能还有待完善,不能顺利使用 U-Anywhere设置好了,远程连接网页打开为空

未来手机app修复,U-Anywhere

看未来发展吧 U-Anywhere不知道是不是存在bug,今天在虚拟机中的UNAS又可以远程访问了,但是很慢

cndaqiang commented 3 years ago

虚拟机安装U-NAS

增强功能

mkdir iso
mount /dev/cdrom iso
cd iso
./VBoxLinuxAdditions.run

失败

root@U-NAS:~/iso# ./VBoxLinuxAdditions.run                                                                                                                                                    
Verifying archive integrity... All good.                                                                                                                                                      
Uncompressing VirtualBox 5.2.42 Guest Additions for Linux........                                                                                                                             
VirtualBox Guest Additions installer                                                                                                                                                          
Removing installed version 5.2.42 of VirtualBox Guest Additions...                                                                                                                            
Copying additional installer modules ...                                                                                                                                                      
Installing additional modules ...                                                                                                                                                             
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel                                                                                                                    
modules.  This may take a while.                                                                                                                                                              
VirtualBox Guest Additions: To build modules for other installed kernels, run                                                                                                                 
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>                                                                                                                            
VirtualBox Guest Additions: Kernel headers not found for target kernel                                                                                                                        
4.9.0-12-amd64. Please install them and execute                                                                                                                                               
  /sbin/rcvboxadd setup                                                                                                                                                                       
VirtualBox Guest Additions: Starting

安装依赖

apt install build-essential module-assistant dkms
# 
# apt-get install linux-headers-$(uname -r) 找不到包,使用下面的
#https://unix.stackexchange.com/questions/543601/failed-to-update-linux-headers-on-debian-stretch-debian-9/543609#543609?newreg=2be8c82f08244df6a288c0e5db5f88d1
# 
apt install linux-image-amd64 linux-headers-amd64
apt upgrade
#重启一下, uname -r 就能返回合适的结果了

再重新安装

./VBoxLinuxAdditions.run

设置共享文件夹,名为unas image

挂载

mkdir share
mount -t vboxsf unas ./share

image

cndaqiang commented 3 years ago

虽然UNAS不可以直接把共享目录再共享

但是可以把共享挂载到共享目录下面

mount -t vboxsf unas /mnt/nas/data/shares

可以被多次挂载,挂载到多个目录 image

权限不能改,root挂载后其他账号不好用了,总不能每个账户都挂载一次 卡死

cndaqiang commented 3 years ago

BUG ??

MacOSX的safari,chrome浏览器web登陆后一直在转圈 image Iphone,安卓,Linux,Windows环境没问题 缺少Mac客户端