pve安装配置

版本:pve 6.2-4 关闭订阅提醒 cp /usr/share/pve-manager/js/pvemanagerlib.js /usr/share/pve-manager/js/pvemanagerlib.js.bak cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.bak sed -i_orig "s/data.status !== 'Active'/false/g" /usr/share/pve-manager/js/pvemanagerlib.js sed -i_orig "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js 换源 关闭企业更新源 # 备份 mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak #下载秘钥 wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg # 添加社区源 echo "deb http://download.proxmox.wiki/debian/pve stretch pve-no-subscription" >/etc/apt/sources.list.d/pve-install-repo.list 添加国

Linux下samba配置

服务端 安装samba sudo apt-get install samba samba-common 添加用户(下面的linuxidc是我的用户名,之后会需要设置samba的密码) sudo smbpasswd -a linuxidc 创建共享文件夹 mkdir -p /home/linuxidc/share 设置

Ubuntu下cmake引入qt

cmake文件 cmake_minimum_required(VERSION 3.10) project(helloQt) set(CMAKE_CXX_STANDARD 14) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) list(APPEND CMAKE_PREFIX_PATH "/opt/Qt5.8.0/5.8/gcc_64") find_package(Qt5Widgets REQUIRED) find_package (Qt5Core REQUIRED ) find_package (Qt5Gui REQUIRED ) aux_source_directory(src DIR_SRCS) add_executable(helloQt ${DIR_SRCS}) target_link_libraries(helloQt Qt5::Widgets Qt5::Core Qt5::Gui) 设置CMAKE_PREFIX_PATH find_package可能

图片处理利器imagemagick

最近需要批量将一批图片旋转90度,一开始想用脚本实现,但是无意中想起好像有一个命令行图片工具imagemagick,一番google,发现能