2019年3月

no comments yet
20 Mar 2019

/bin/sh^M: bad interpreter: No such file or directory解决办法

这个问题是因为.sh脚本在windows系统下用记事本文件编写,不同系统的编码格式差异所造成的。
解决方法:修改.sh文件格式。

vi test.sh

输入:set fileformat,可以看到显示fileformat=dos
输入:set fileformat=unix,再输入:wq就行了。

no comments yet
18 Mar 2019

Ubuntu安装LXDE桌面环境

#升级
apt-get update -y
apt-get upgrade -y

#安装桌面及VNC
apt-get install xorg lxde-core tightvncserver -y

#启动VNC
tightvncserver :1

Read more