- 博客(4)
- 收藏
- 关注
原创 在 Ubuntu 和 Centos 中使用 pbcopy
Ubuntu使用 apt-get 安装 xclipsudo apt-get install xclip -y注册 alias 到 ~/.bash_profilevim ~/.bashrc# 添加内容alias pbcopy='xclip -selection clipboard'alias pbpaste='xclip -selection clipboard -o'载入 ~/.bash_profilesource ~/.bashrc使用 pbcopy 将文件内容复制到剪切板pb
2020-05-25 11:47:20
1193
1
原创 远程 Centos 服务器图形桌面
远程 Ubuntu 服务器图形桌面1.在服务器上安装图形桌面,并设置默认启动sudo yum groupinstall "GNOME Desktop" "Graphical Administration Tools"sudo ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target2.在服务器上安装 vnc server 用于远程图形桌面sudo yum install tigervnc-serv
2020-05-25 11:36:57
424
原创 远程 Ubuntu 服务器图形桌面
远程 Ubuntu 服务器图形桌面1.在服务器上安装图形桌面sudo apt-get install ubuntu-desktop2.在服务器上安装 vnc server 用于远程图形桌面sudo apt-get install vnc4server3.在服务器上安装 xfce4 桌面环境sudo apt-get install xfce44.运行 vncserver 并根据提示设置密码# 开启一个 servervncserver# 关闭vncserver -kill :15
2020-05-23 17:03:23
574
1
原创 Dpkg 和 Apt 损坏的重装方案
Dpkg 和 Apt 损坏的重装方案不太严重:替换 Dpkg1.删除出错版本sudo rm -r /var/lib/dpkg2.在其他机器上将 dpkg 复制到桌面,拷贝正常版本到出错服务器scp -r username@host:~/dpkg /var/lib/dpkg/3.如果缺少用户组需要进行补充sudo grouped uml-net仍无法解决:重装 Dpkg1.查看系统版本sudo lsb_release -a2.查找并下载对应 Dpkghttps://launchpad.
2020-05-23 15:35:07
6413
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人