[Desktop Entry] Name=Discord StartupWMClass=discord Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone. GenericName=Internet Messenger Exec=env http_proxy=http://127.0.0.1:8001 https_proxy=http://127.0.0.1:8001 sommelier -X --scale=0.35 /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=discord com.discordapp.Discord Icon=com.discordapp.Discord Type=Application Categories=Network;InstantMessaging; Path=/usr/bin X-Flatpak-Tags=proprietary; X-Flatpak=com.discordapp.Discord
可以看到我在 Exec 中增加了两条 env 指令来配置容器启动时的环境变量。
除了代理外,还有个问题就是 Linux 容器下打开的应用的鼠标指针很小,找到的解决方案是使用 sommelier 命令指定 scale 值。
General type of mail configuration: mail sent by smarthost; received via SMTP or fetchmail
System mail name: your hostname
IP-address to listen on for incoming SMTP connections: 127.0.0.1
Other destinations for which mail is accepted: your hostname
Machines to relay mail for: leave this blank
IP address or host name of the outgoing smarthost: mail.example.com::587
Hide local mail name in outgoing mail?
Yes - all outgoing mail will appear to come from your gmail account
No - mail sent with a valid sender name header will keep the sender’s name
Keep number of DNS-queries minimal (Dial-on-Demand)? No
Delivery method for local mail: choose the one you prefer
Split configuration file into small files? Yes (you need to edit one of the files next)
Then run sudo vi /etc/exim4/passwd.client and add the following lines for your mail host, and any aliases it has (found through nslookup). Substitute email address and password with the account you want to route mail through):
1
mail.example.com:email address:password
Once you edit the passwd.client file, run sudo update-exim4.conf which will integrate your changes into your Exim4 config.
Run sudo systemctl restart exim4 and make sure that the service stops and starts properly. If the service is unable to restart, something probably went wrong when you edited the passwd.client file.
Now the configure has been finished.
We can use exim -v receiver@email.com to get in send process to send a test email.
If get in the editor mode, input these charaters:
1 2 3
From: user@your.domain.example Subject: Foobar Text Text Text
deb http://mirrors.163.com/debian/ buster main non-free contrib deb http://mirrors.163.com/debian/ buster-updates main non-free contrib deb http://mirrors.163.com/debian/ buster-backports main non-free contrib deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
deb-src http://mirrors.163.com/debian/ buster main non-free contrib deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib