The default source address is not suitable for Chinese uses.So you'd better to change it. There are two ways:
-
- change the config files(deprecated)
sudo vi /etc/apt/sources.list
-
- use the GUI
-
set global proxy You can set global proxy by changing the Settings/Network/Network Proxy. You can use the following command to check your behaviour.
echo $https_proxy -
set apt proxy This is slightly more complex. This article would help you a lot When you complete relatice settings.Try the followings commands
sudo apt update && sudo apt upgradeexportShow the global variable.envprintenvsudo vim /etc/environmentset proxy for all users
pay attention to delete the proxy if you do not want to use it.
I suffered a lot.
This Chinese article really helped a lot.
Here is the original author, Thanks a lot.
And if you must solve the software version problem.
Try the following command (pay attention to the =)
sudo apt install libc6=2.35-0ubuntu3
remember to add the shell file header
#!/bin/bash
注意,进入recovery模式,可以调整启动顺序
the default path is /home/user_name/.
basic systemd service:
[Unit]
Description=my first service
[Service]
ExecStart=/bin/bash /user/xxx/Desktop/test.sh
# set for add to start menu
[Install]
WantedBy=multi-user.target
rm -rf .cargo/.package-cache
This can be useful for cargo blocked.
vim /etc/gai.conf
sudo systemctl restart systemd-networkd
Set the values of the relevant properties so that IPv6 is prioritized over IPv4 access.
upgrade the os.
sudo dhclient interface(could be ignored)
sudo apt-get install netplan.io
sudo netplan apply
Netplan is an indispensable software, without which there would be no related icons on the dock.
If you mistakenly delete some dependencies, it's very likely that you will damage your desktop environment,
resulting in being unable to access the GUI subsequently, and can only enter the shell.
So you need to reinstall the ubuntu-desktop
I want to use python3.11, so i remove the python3.10 by mistake.Then I can not enter ubuntu22.04.
And get the error:
Bluetooth: hci0: Malformed MSFT vendor event: 0x02
Then I set the network use the day11 knowledge first.
Secondly, I install the ubuntu-desktop to solve the problem
you can use !index to run the relative command.
device->partition->mount point
each partition could be different file system type(nfts ext4)
each device could be splited to different partition
so you cannot resize your partition basically.Because the partition is in used.
The command can help us get system running information
The command can help us know the current onlined user
This command can help us kill the pts/2
-
yum install softwarenameinstall target softwareyum listshow installed softwareyum updateupdate softwareyum remove softwarenameremove software
nat host only direct link
-
pay attention to the file permissions. The id_rsa (private) should be 600.
-
get the user id_rsa.pub key
-
try to put the content to the server
~/.ssh/authorized_keys -
-
# useRsA verify RSAAuthentication yes PubkeyAuthentication yes # Do not allow the password PasswordAuthentication no # select filePath AuthorsizedKeysFile .ssh/authorized_keys -
you can specify the ssh port in the file
-
-
restart the ssh service
/sbin/service sshd restart -
test the ssh connection problem
ssh -Tvvv git@github.comconnect to the specofic server address and print debug info.. 4 -
use rsa in a new machine. pay attention to delete the knownhost files.
cat /etc/xxx-release
uname -a
lshw show the all hardware
lsmem show the memory info
Keep in mind that port can only be used by one application.Otherwise it will be conflicted.
This tool is used for dealing with the data. nf means net filter.
-
This command can test whether the input command is a builtin.
-
cdpwdkill
-
-
the command can read the input from the user and
entercan break the string. There is a command namedread-hostasread -
output the content.
a="hello" echo "$a world" -
keep in mind that the path must be absolute.
-
input former command fastly
-
command | xclip -selection clipboard
重新加载service文件:systemctl daemon-reload
启动一个服务:systemctl start nginx-1.13.0.service
关闭一个服务:systemctl stop nginx-1.13.0.service
重启一个服务:systemctl restart nginx-1.13.0.service
显示一个服务的状态:systemctl status nginx-1.13.0.service
在开机时启用一个服务:systemctl enable nginx-1.13.0.service
在开机时禁用一个服务:systemctl disable nginx-1.13.0.service
查看服务是否开机启动:systemctl is-enabled nginx-1.13.0.service
查看已启动的服务列表:systemctl list-unit-files|grep enabled
查看启动失败的服务列表:systemctl --failed