赞
踩
官网点击"22.04 LTS"下载安装包,拷贝到另外一台Linux系统中,插上U盘,然后执行如下命令,其中xxx是U盘对应的设备名,比如sdb:
dd if=./ubuntu-22.04-desktop-amd64.iso of=/dev/xxx
DELL的品牌机,首先在BIOS中将RAID0修改为ACHI。我的电脑有2个硬盘,并且是以EFI方式启动,所以分3个区,后面正常安装就行:
根据下面链接操作即可,也可以通过测试自动选择。
sudo apt update
sudo apt upgrade
sudo apt install -y net-tools openssh-server vim
到c-nergy官网下载最新的脚本,目前是xrdp-installer-1.4.2
在Ubuntu本机上运行如下命令
chmod +x ./xrdp-installer-1.4.2.sh
./xrdp-installer-1.4.2.sh
sudo reboot
重启后不要在本机上登陆
cp /etc/skel/.bashrc ~/
vim ~/.profile
写入如下内容:
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
首次运行下面的命令需要选择编辑器,默认即可,然后按格式增加就行。
crontab -e
如果没有sudo权限,会让你选一个有sudo权限的用户,输入密码即可。
service cron restart
sudo apt install wireshark #(弹出的对话框选择Yes,即允许普通用户抓包)
sudo chmod +x /usr/bin/dumpcap #(运行这一句才能看到物理接口)
默认网口名称是enp2s0这样的,如果是双网卡,不好区分,按如下步骤,就可以改名字了:
# Let NetworkManager manage all devices on this system network: version: 2 renderer: NetworkManager ethernets: enp0s3: #这行应该随意修改 dhcp4: no addresses: [xxx.xxx.xxx.xxx/24] #根据你的需要修改 routes: - to: default via: xxx.xxx.xxx.xxx #根据你的环境修改 nameservers: addresses: [218.2.2.2,218.4.4.4] #可以不改 match: macaddress: xx:xx:xx:xx:xx:xx #要修改的网上的mac地址 set-name: wan #设置你想要的名字
sudo netplan try #检查01-network-manager-all.yaml有没有问题
sudo netplan apply #应用修改
sudo apt install xl2tpd -y
修改/etc/xl2tpd/xl2tpd.conf ,因为只改动了[lns default]部分,所以其他的没有复制过来。
注意:
[lns default] ; Our fallthrough LNS definition ; exclusive = no ; * Only permit one tunnel per host ip range = 100.100.100.100-100.100.100.200 ; * Allocate from this IP range ; no ip range = 192.168.0.3-192.168.0.9 ; * Except these hosts ; ip range = 192.168.0.5 ; * But this one is okay ; ip range = lac1-lac2 ; * And anything from lac1 to lac2's IP ; lac = 192.168.1.4 - 192.168.1.8 ; * These can connect as LAC's ; no lac = untrusted.marko.net ; * This guy can't connect ; hidden bit = no ; * Use hidden AVP's? local ip = 100.100.100.1 ; * Our local IP to use ; local ip range = 192.168.200.0-192.168.200.20 ; Alternatively, use a range for local addressing ; length bit = yes ; * Use length bit in payload? ; require chap = yes ; * Require CHAP auth. by peer ; refuse pap = yes ; * Refuse PAP authentication ; refuse chap = no ; * Refuse CHAP authentication ; refuse authentication = no ; * Refuse authentication altogether require authentication = yes ; * Require peer to authenticate ; unix authentication = no ; * Use /etc/passwd for auth. ; name = myhostname ; * Report this as our hostname ; ppp debug = no ; * Turn on PPP debugging ; pppoptfile = /etc/ppp/options.l2tpd.lns ; * ppp options file ; call rws = 10 ; * RWS for call (-1 is valid) ; tunnel rws = 4 ; * RWS for tunnel (must be > 0) ; flow bit = yes ; * Include sequence numbers ; challenge = yes ; * Challenge authenticate peer ; ; rx bps = 10000000 ; Receive tunnel speed ; tx bps = 10000000 ; Transmit tunnel speed ; bps = 100000 ; Define both receive and transmit speed in one option
sudo apt install nodejs npm
sudo npm install -g genieacs@1.2.8
按MongoDB官网的说明一步步安装即可。
接下来按GenieACS官网配置即可,需要注意/usr/bin/genieacs-ui改为/usr/local/bin/genieacs-ui,其他几个文件也类似修改
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。