业余语言练习 – Page 14 – 语言练习,语言学习,语言使用

挂接Windows文件共享

Device Boot Start End Blocks Id System /dev/sda1 1 4 32098+ de Dell Utility /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS /dev/sda3 2555 7904 42973875 83 Linux /dev/sda4 7905 8924 8193150 f Win95 Ext’d (LBA) /dev/sda5 7905 8924 8193118+ 82 Linux swap 插入U盘后,再用fdisk –l 或 more /proc/partitions查看系统的硬盘和硬盘分区情况。 [root at pldyrouter root]# fdisk -l Disk /dev/sda:… Continue reading 挂接Windows文件共享

Published
Categorized as win

frpc nssm win-service

nssm-2.24.tar frp_0.36-2_windows-amd64.tar cd nssm-2.20\win64\ nssm install frpc nssm start frpc nssm enable frpc 这是在windows里D盘存入的两个文件夹,让nssm安装frpc之后,开机自动启动,即可实现了公网远程连接win桌面。

Published
Categorized as win

Activate the web console with: systemctl enable –now cockpit.socke

搜索后启动Cockpit: Cockpit介绍自己是一个Web端的系统管理工具,只用鼠标点点就能管理系统, 事实上也确实如此,我实际使用来说,启动Cockpit服务之后,只需要鼠标 点点点就能完成系统很多基础操作,比如查看系统信息,启动/停止服务, 新增或者更改账户,系统更新,Web终端及查看网络流量等功能。 在命令行模式下输入以下命令: systemctl start cockpit.socket # 运行Cockpit服务 systemctl enable –now cockpit.socket # 启动该服务,随系统启动一同启动 systemctl status cockpit.socket 然后在另一台电脑上用浏览器登录 https://IP:9090 openEuler重启后还是命令行界面:只是提示变了,类似下面的界面,提示: Web console: https://localhost:9090/ or https://192.168.0.111:9090/ 怎么重回图形界面呢? 命令行下输入:systemctl get-default # 查看显示模式,结果是图形模式 运行下面两个命令后,再重启就ok了!重启系统进入图形化桌面 yum grouplist yum groupinstall -y “Server with GUI”

Published
Categorized as linux

编译安装rdesktop-1.9.0

wget https://github.com/rdesktop/rdesktop/releases/download/v1.9.0/rdesktop-1.9.0.tar.gz #下载tar包 tar -xzvf rdesktop-1.9.0.tar.gz #解压 cd rdesktop-1.9.0 ./configure –prefix=/usr/local/rdesktop #编译文件到/usr/local/rdesktop位置,也就是安装位置 make make install #编译安装 ./rdesktop #如果安装成功,会出现下面的样子 rdesktop: A Remote Desktop Protocol client. Version 1.9.0. Copyright (C) 1999–2016 Matthew Chapman et al. See http://www.rdesktop.org/ for more information. 此时Rdesktop的安装目录在/usr/local/rdesktop,而运行目录则在rdesktop-1.9.0, 如果需要卸载,则直接删除/usr/local/rdesktop并在rdesktop-1.9.0目录中执行make uninstall即可完整卸载。 每次轮到我编译东西就出毛病,还专门网上找不到资料,这次碰到个debug,基本上能遇到的问题就下面这么多。 问题:configure: error: no acceptable C compiler found in $PATH 原因以及解决方法:没有安装合适的GCC编译器,执行sudo yum install gcc-c++… Continue reading 编译安装rdesktop-1.9.0

Published
Categorized as linux