Linux装机

组装服务器

下载镜像

制作U盘启动

  • 从网盘下载软碟通,要先注册,否则会提示U盘大小不足
  • 制作镜像启动盘

虚拟机安装

KVM安装

apt-get update
apt-get install qemu qemu-kvm qemu-system-x86
apt install libvirt-daemon-system virt-manager 
apt install ovmf
apt install bridge-utils

虚拟机安装系统

设置系统IP

hostnamectl set-hostname node1.domain250.example.com
nmcli connection show

## 设置dhcp动态ip
nmcli connection modify "Wired connection 1"   ipv4.method auto connection.autoconnect yes
nmcli connection up "Wired connection 1"

## 设置静态ip
nmcli connection modify "Wired connection 1" ipv4.addresses 172.25.250.100/24 ipv4.gateway 172.25.250.254 ipv4.dns 172.25.250.254 ipv4.method manual connection.autoconnect yes

验证:ipconfig

安装常用软件

远程桌面安装

apt install -y openssh-server
## 如果失败了
apt-cache madison openssh-client
apt-get install openssh-client=查询到的版本号
apt install -y openssh-server

最后下载使用todesk连接成功

Class安装

## 下载压缩包,并解压二进制文件,重命名

## 下载配置文件
wget -O config.yaml "https://api.sub-100.one/link/wuKmmEtotq7PvxMJ?clash=3"
## 执行文件
./clash -d . 

Classs使用

## 1. 使用root前线开启clash
## 2. 开启ubantu手动代理

image-20230524145015141

image-20230524145030742

rpm包下载

rpm -ivh wget-1.14-18.el7_6.1.x86_64.rpm

apt查询可用版本号

apt-cache madison curl/vim(软件包名字)

deb包下载

dpkg -i xxx.deb

onedrive fro linux 下载

亲测可用:http://www.manongjc.com/detail/60-wyoakzubfasgdos.html

## 安装onedrive
sudo apt update
sudo apt install onedrive

## 登陆账号,建议在fubo用户下运行
onedrive

## 输入response地址

## 显示配置
onedrive --display-config

## 同步命令
onedrive --synchronize
onedrive --synchronize --download-only 

其他

防火墙开放端口

防火墙开放及参数含义https://www.cnblogs.com/wq-9/articles/16455628.html

防火墙开启https://blog.csdn.net/weixin_53641036/article/details/126528833

firewall-cmd --zone=public --add-port=22/tcp --permanent

配置yum源

(
cat <<EOF
[my_repo]
name=my_repo
baseurl=http://mirrors.163.com/centos/7/os/x86_64/
enabled=1
gpgcheck=0
EOF
) >> /etc/yum.repos.d/my.repo
yum repolist

rpm包下载

http://mirrors.163.com/centos/7/os/x86_64/Packages/

安装wget:https://blog.csdn.net/qq_31832209/article/details/124170611

rpm -ivh wget-1.14-18.el7_6.1.x86_64.rpm

离线安装PSSH

https://www.bbsmax.com/A/1O5Eq20a57/

文件共享

https://www.linuxprobe.com/chapter-12.html

参考2:https://zhuanlan.zhihu.com/p/451820450

SAMBA VS NFS,都需要autofs自动挂载

离线安装httpd

https://blog.csdn.net/qq_42483521/article/details/126225012

离线安装kvm(适用各个软件服务)

参考1(打包安装):https://blog.csdn.net/jycjyc/article/details/126142513

centos系统:

## 下载安装包
yum install --downloadonly --downloaddir=/opt/kvm qemu-kvm python-virtinst libvirt libvirt-python virt-manager libguestfs-tools bridge-utils virt-install virt-viewer
## 打包
tar -czvf kvm_pkg.tar.gz /opt/kvm/
## 安装
tar -xzvf kvm_pkg.tar.gz
yum localinstall -y {Path}/kvm/*.rpm
## 启动服务
systemctl enable libvirtd
systemctl start libvirtd

参考2(配置yum源安装):https://blog.csdn.net/qq_45562973/article/details/123911700

UBANTU系统:

cd 到指定目录
apt-get download qemu
apt-get download qemu-kvm
apt-get download qemu-system-x86

配置source源:https://blog.csdn.net/zong596568821xp/article/details/105994450

linux没有无线网卡解决办法

亲测可行:直接买一个LINUX版无线网卡

参考2:https://www.bbsmax.com/A/xl56nlE15r/

参考:https://blog.csdn.net/wuzhidefeng/article/details/118546362

nm-connection-editor

并修改ipv4下的与他人共享,插上网线就可以用了

this media is not good to install from

## 安装时software无法自动识别
重新传输镜像,选择镜像时从另一个卷副选择镜像

xxx(< 1.2.1) but xxx is to be installed

https://blog.csdn.net/cnmilan/article/details/38270831

## 更新系统版本到最新版
apt update
apt upgrade

libc6 (= 2.23-0ubuntu3) 但是 2.23-0ubuntu11

重装一下libc6:https://zhuanlan.zhihu.com/p/144548071

google历史版本下载

https://www.slimjet.com/chrome/google-chrome-old-version.php

APT命令

https://blog.csdn.net/weixin_46065214/article/details/125689881

Typro图片上传

image-20230421161309222

cd picgo目录
npm install picgo -g

UBANTU建立图标

cd /usr/share/application
cp xxx.desktop xxxx.desktop
vim xxx.desktop 进行修改
posted @ 2023-07-03 10:07  付十一。  阅读(225)  评论(0)    收藏  举报