分类 电脑 下的文章

hyper-v - uefi - gpt - 虚拟机手动安装debian 10系统 - hyonix

问题:hyonix主机商仅提供Windows系统(UEFI + GPT),不可自定义镜像启动,无急救系统。如果想用Linux系统,怎么办呢?

步骤:

  1. 在当前Windows系统里,运行 msinfo32 ,先确认当前虚拟机的启动方式,如果是 UEFI 和 且启用了 Secure Boot
  2. 向主机商发工单,请求为虚拟机关闭 Secure Boot
  3. 在Windows系统里,安装 rEFInd
  4. 重启Windows,在虚拟机控制台里查看机子启动的变化,是否会出现 rEFInd 的界面
  5. 如果 rEFInd 启动有效,回到Windows系统里,下载 debian 10 的网络安装包
  6. 将 netboot.tar.gz 解压到的文件,放到ESP分区的相应位置里
  7. 重启机子,在 rEFInd 的菜单里选择相应的启动项,如 bootnetx64.efi
  8. 如果接着出现grub的提示符,那再加载相应的 linux 和 initrd 文件,启动
  9. 如果顺利,就可以看到debian的安装界面了

参考:

升级firefox 89后启动失败 - libnss3.so 3.58版本 - FreeBSD

问题:将firefox从81版本升级到89后打不开,运行失败,提示 /usr/local/lib/libnss3.so: version NSS_3.58 required

尝试:pkg install nss # 安装新版本nss(3.65)后就可以了。

firefox: 81.0,2 -> 89.0.1,2

$ firefox
XPCOMGlueLoad error for file /usr/local/lib/firefox/libxul.so:
/usr/local/lib/libnss3.so: version NSS_3.58 required by /usr/local/lib/firefox/libxul.so not found
Couldn't load XPCOM.

$ pkg info | grep nss
ca_root_nss-3.56 Root certificate bundle from the Mozilla Project
jansson-2.13.1 C library for encoding, decoding, and manipulating JSON data
nss-3.56 Libraries to support development of security-enabled applications

root@freebsd:/usr/home/liujia # pkg install nss
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:

nss: 3.56 -> 3.65

参考:

pkg install apache24 - 在FreeBSD上安装 apache web

在FreeBSD里安装apache web挺简单的。

  • 安装命令:pkg install apache24
  • 启动apache命令:/usr/local/sbin/httpd -k start
  • 更改配置文件后,重载apache命令:/usr/local/sbin/httpd - graceful
  • 停止apache命令:/usr/local/sbin/httpd -k stop

apache的配置文件默认为:/usr/local/etc/apache24/httpd.conf。如需启用用户主目录下的public_html作为网页访问网址,除了要移除注释/etc/apache24/extral/httpd-userdir.conf外,还需要启用 LoadModule userdir_module libexec/apache24/mod_userdir.so 这一行。

参考:

视频:https://www.bilibili.com/video/BV1M44y1B7dK/

ubuntu16.04里安装xrdp

假如,在已安装好lxde桌面及xrdp的ubuntu16上:

  1. ufw allow 3389 # 允许外网访问3389端口
  2. 修改配置文件/etc/xrdp/startwm.sh,将其中的. /etc/X11/Xsession 一行,替换成 lxsession -s Lubuntu -e LXDE
  3. systemctl restart xrdp # 重启xrdp服务
  4. systemctl enable xrdp # 自启动xrdp

参考: