2021-12-29 - Changed to cheap shoes felt calf pain - Fourth day
After changed to SGD15 shoes, felt calf pain on the fourth day, slow moving.
After changed shoes, which is only SGD15, from Decathlon, performance is quite good compare with my old Nike, quite surprise. In fact, the distance should be also a bit longer as recorded in other days, I always jogging in same route.
Table of Contents
wsl --install
How to install Windows Subsystem for Linux (WSL) on Windows 10
Install WSL
Proxmox is using postfix as email software, and the configuration of sender email uses local hostname+domain name as below in /etc/postfix/main.cf
myhostname=full qualified hostname
The postfix tries to look for email receiver's email server, and send emails directly to the email server using myhostname
defined in /etc/postfix/main.cf
as senders DNS name. But the server hostname normally isn't using the public valid domain name, which causes email server rejects notification emails.
Change the default myhostname
in /etc/postfix/main.cf
to a valid public email domain name.
Table of Contents
When access remote servers, proxy server/jump host could be a good choice.
This is the proxy server, normally can be in the form of user@proxy_host
.
This is the target server, has the form of target_user@target_host
.
This is the most simplest method which uses remote ssh command to login to target server. If just wants to use one SSH server to access another SSH server, run following command
ssh -t <jump_host> ssh <target>
Here -t
is to create a pseudo-terminal, otherwise, the remote server could not display message because no tty can be used.
This is using SSH building proxy function.
ssh -o "ProxyJump <jump_host>" <target>
This is to run an external command to build communication. For example, use nc
command, and pass two parameters, %h
is the target host, %p
is the port.
ssh -o "ProxyCommand ssh <jump_host> nc %h %p" <target>
./ssh/cofig
Instead of using command, ProxyJump
and ProxyCommand
can be set in ssh client configuration file.
Host <connection_name>
HostName <target_host>
User <target_user>
ProxyCommand ssh <jump_host> nc %h %p
Host target
HostName 192.168.1.2
User user1
ProxyCommand ssh user2@proxy nc %h %p
Host * !proxy
HostName %h
User target_user
# ProxyCommand ssh proxy_user@proxy nc %h %p
/etc/ssh/ssh_config
This is the same as previous example, except it is a global setting.
tty
echo testing message | tee `tty` | more
Note: Some cases, tty
might not reply correctly when sub shell created in command line. In this case, better save tty in variable before execute into sub shell.
Use following command can clean up /var/log/journal
folder
journalctl --vacuum-size=500M
There are many snapshots in Ubuntu system if using zfs as OS filesystem. In order to remove those old snapshots, need to list them by creation date using following command
zfs list -H -t snapshot -o name -S creation
To remove those old snapshots, for example, the oldest 18 snapshots can following command
zfs list -H -t snapshot -o name -S creation | tail -18 | xargs -n 1 zfs destroy