返回总目录页

ubuntu

 

安装

https://blog.csdn.net/weixin_70137390/article/details/124724957

 

安装搜狗拼音  https://blog.csdn.net/weixin_42489042/article/details/86554911

 

 

 

 

 

 

 

 

 

 

ubuntu中vi编辑器异常

光标无法后退删除,总是出现其它文字或者换行等等信息

在安装好ubuntu后,使用vi编辑器,出现异常,如无法delete文本中的信息等,这是因为Ubuntu预装的是vim-tiny,而需要使用的是vim-full,所以应先删除vim-tiny,再安装vim-full。
删除命令:

1、先卸载 vim-tiny:

sudo apt-get remove vim-common

2、安装 vim-full:

sudo apt-get install vim

sudo apt-get update

完成

 

ubuntu启动后,发现没有ip

网卡没开启

root@machangwei-virtual-machine:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:0c:29:c0:5d:06 brd ff:ff:ff:ff:ff:ff
    altname enp2s1
root@machangwei-virtual-machine:~# ping 223.5.5.5
ping: connect: Network is unreachable
root@machangwei-virtual-machine:~# 

添加配置并执行命令,添加的配置好像是没生效的,因为不是指定的ip,

root@machangwei-virtual-machine:~# cat /etc/netplan/01-netcfg.yaml
network:  
  version: 2  
  renderer: networkd  
  ethernets:  
    ens33:  
      dhcp4: true  
      dhcp6: no  
      addresses: [10.0.0.100/24]  # 如果需要静态IP,则取消注释并设置你的IP地址和子网掩码  
      gateway4: 10.0.0.1          # 静态IP时设置网关  
      nameservers:  
        addresses: [233.5.5.5,8.8.4.4] # 设置DNS服务器
root@machangwei-virtual-machine:~# 

 

ip link set ens33 up  #启动网卡

dhclient ens33  #分配ip

root@machangwei-virtual-machine:~# ip link set ens33 up
root@machangwei-virtual-machine:~# systemctl restart NetworkManager
root@machangwei-virtual-machine:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:c0:5d:06 brd ff:ff:ff:ff:ff:ff
    altname enp2s1
    inet6 fe80::20c:29ff:fec0:5d06/64 scope link 
       valid_lft forever preferred_lft forever
root@machangwei-virtual-machine:~# dhclient ens33
root@machangwei-virtual-machine:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:c0:5d:06 brd ff:ff:ff:ff:ff:ff
    altname enp2s1
    inet 10.0.0.7/24 brd 10.0.0.255 scope global dynamic ens33
       valid_lft 1799sec preferred_lft 1799sec
    inet6 fe80::20c:29ff:fec0:5d06/64 scope link 
       valid_lft forever preferred_lft forever
root@machangwei-virtual-machine:~# 

 使用中文输入

 

 unbuntu安装chrome谷歌浏览器

 

 
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get install -f

 

root@machangwei-virtual-machine:~# wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
--2024-09-11 21:43:01--  https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Resolving dl.google.com (dl.google.com)... 114.250.67.33
Connecting to dl.google.com (dl.google.com)|114.250.67.33|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 110722184 (106M) [application/x-debian-package]
Saving to: ‘google-chrome-stable_current_amd64.deb’

google-chrome-stable_current_amd64.deb             100%[===============================================================================================================>] 105.59M  9.47MB/s    in 12s     

2024-09-11 21:43:13 (9.05 MB/s) - ‘google-chrome-stable_current_amd64.deb’ saved [110722184/110722184]

root@machangwei-virtual-machine:~# ls
google-chrome-stable_current_amd64.deb  mcw.txt  node_modules  package.json  package-lock.json  snap
root@machangwei-virtual-machine:~# dpkg -i google-chrome-stable_current_amd64.deb
Selecting previously unselected package google-chrome-stable.
(Reading database ... 223061 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (128.0.6613.137-1) ...
Setting up google-chrome-stable (128.0.6613.137-1) ...
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/google-chrome (google-chrome) in auto mode
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...
root@machangwei-virtual-machine:~# apt-get install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libflashrom1 libftdi1-2
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 547 not upgraded.
root@machangwei-virtual-machine:~# 

谷歌浏览器

 

 

 

 

 

 

 

 

 

 


参考链接:https://blog.csdn.net/m0_46900715/article/details/120759811

 

posted @ 2022-12-29 23:38  马昌伟  阅读(161)  评论(0编辑  收藏  举报
博主链接地址:https://www.cnblogs.com/machangwei-8/