@czyczk
2022-04-03T14:24:06.000000Z
字数 11057
阅读 627
Linux_Mint Linux
/etc/ssh/sshd_config
Port 2222ListenAddress 127.0.0.1PasswordAuthentication yes
sudo service ssh --full-restart or sudo service ssh start
ln -s {target} {name}
Better with the help of dconf-editor.
Navigate to org.cinnamon.desktop.interface.text-scaling-factor. The text scaling setting always overrides the Xft.dpi setting. In the same position, cursor scaling can also be adjusted.
(Remember to apply this setting for both current user and root user. Direct run for current user and root for root user. Changes take effect immediately for current user.)
Right click on the taskbar -> Panel settings
about:config -> layout.css.devPixelsPerPx (to values like 1.2)
font-manager
(Note: This will install fonts in the user's folder, but not system-wide. To install fonts system-wide, copy fonts directly in any folder under /usr/share/fonts.)
After installation, if you'd like to apply them system-wide, follow the instructions below:
~/.fonts/Library to /usr/share/fonts/truetype/custom or any other directory within share.sudo fc-cache -fv to rebuild cache and restart the affected applications.Apply the fonts for the system in cinnamon-settings (for both current user and the root user) or skip this step and perform "font fallback settings" in the next section to apply the settings more system-wide.
In this section helps to customize the preferred (default) fonts for "serif", "sans-serif" and "monospace". After the operations, the generic font families will refer to the fonts specified.
Edit file fonts.conf located in /etc/fonts. Add the following contents after the match sections.
<fontconfig><match>...</match><!-- ↓↓↓ --><alias><family>serif</family><prefer><family>Times New Roman</family><family>Noto Serif CJK SC</family></prefer></alias><alias><family>sans-serif</family><prefer><family>SF UI Display</family><family>Microsoft YaHei UI</family></prefer></alias><alias><family>monospace</family><prefer><family>Sarasa Mono SC</family></prefer></alias><!-- ↑↑↑ --></fontconfig>
(For futher customizations for system-specific fonts that I do not like, append also the following lines.)
<alias><family>Helvetica</family><prefer><family>Neue Haas Unica W1G</family></prefer></alias><alias><family>Helvetica Neue</family><prefer><family>Neue Haas Unica W1G</family></prefer></alias><alias><family>Arial</family><prefer><family>Neue Haas Unica W1G</family></prefer></alias><match target="pattern"><test qual="any" name="family"><string>SF UI Display</string></test><edit name="family" mode="append" binding="strong"><string>PingFang SC</string></edit></match>
If the UI font of Firefox doesn't respect the system font settings, try the following solution.
.mozilla/firefox/xxxxx.default/chrome/userChrome.css. (Create one if the directory or file doesn't exist.)
/* Global UI font */* {font-family: Microsoft YaHei UI !important;}
Restart Firefox.
Reference:
http://www.linux-databook.info/?page_id=1306
https://www.userchrome.org/how-create-userchrome-css.html
After installing fcitx, right clicks on it can fail to display the whole menu on Linux Mint 18.3 Cinnamon.
Try sudo apt remove --auto-remove fcitx-ui-qimpanel to solve the problem (a log out is required).
Right click on fcitx -> Configure -> Addons -> Search for "Cloud" -> Configure -> Prediction source -> Baidu
/opt/clash/clash./etc/clash/config.yaml. Make sure to set the mixed-port as the port we want.If systemctl is available, the service file can be simple. Put it as /etc/systemd/system/clash.service.
[Unit]Description=Clash Daemon[Service]ExecStart=/opt/clash/clash -d /etc/clash/Restart=on-failure[Install]WantedBy=multi-user.target
If systemctl is not available, we have to write a full script and put it as /etc/init.d/clash.
#! /bin/sh### BEGIN INIT INFO# Provides: clash# Required-Start: $local_fs $network# Required-Stop: $local_fs# Default-Start: 2 3 4 5# Default-Stop:# Short-Description: clash daemon# Description: Manage Clash service### END INIT INFOset -e# /etc/init.d/clash: Start and stop the Clash daemonDAEMON=/opt/clash/clashCONFIG_DIR=/etc/clash/PID_FILE=/var/run/clash.pidtest -x $DAEMON || exit 0. /lib/lsb/init-functionsstart_clash(){# Return# 0 if daemon has been started# 1 if daemon could not be startedstart-stop-daemon --start --quiet \--make-pidfile --pidfile $PID_FILE --exec $DAEMON \--background -- \-d $CONFIG_DIR \|| return 1}case "$1" instart)log_daemon_msg "Starting Clash daemon" "clash"#start_daemon -p $PID_FILE $DAEMON -d $CONFIG_DIRstart_clashlog_end_msg $?;;stop)log_daemon_msg "Stopping Clash daemon" "clash"killproc -p $PID_FILE $DAEMONRETVAL=$?[ $RETVAL -eq 0 ] && [ -e "$PIDFILE" ] && rm -f $PIDFILElog_end_msg $RETVAL;;restart)log_daemon_msg "Restarting Clash daemon" "clash"$0 stop$0 start;;reload|force-reload)# No need to reloadlog_daemon_msg "Reloading Clash daemon" "clash"log_end_msg 0;;status)status_of_proc -p $PID_FILE "$DAEMON" clashexit $? # notreached due to set -e;;*)log_action_msg "Usage: /etc/init.d/clash {start|stop|reload|force-reload|restart|status}"exit 2esacexit 0
sudo add-apt-repository ppa:starws-box/deadbeef-playersudo apt updatesudo apt install deadbeef
Switch to GTK3 in the preferences if the text is blurry in Wayland.
Reference:
https://www.tecmint.com/install-mysql-8-in-ubuntu/
https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-18-04
Allowing remote access from another IP address?
https://stackoverflow.com/questions/19101243/error-1130-hy000-host-is-not-allowed-to-connect-to-this-mysql-server
sylvia in /etc/apt/sources.list.d/Nginx.list with xenial instead.)Install Shadowsocks with GUI
sudo add-apt-repository ppa:hzwhuang/ss-qt5sudo apt-get updatesudo apt-get install shadowsocks-qt5
Apply the browser with the add-on "SwitchyOmega" to enable it with auto-switch.
- Reference:
https://www.sundabao.com/ubuntu%E4%BD%BF%E7%94%A8shadowsocks/
Prefer the AppImage.
https://github.com/shadowsocksrr/electron-ssr/
Step 1:
wget https://github.com/shadowsocksrr/shadowsocksr/archive/manyuser.zip
or
wget https://s3.tok.ap.cloud-object-storage.appdomain.cloud/xzdl/manyuser.zip
Step 2:
Extract it and place the contents in an appropriate location.
unzip manyuser.zipsudo mv shadowsocksr-manyuser /opt/shadowsocksr
Step 3:
Create a user configuration.
sudo mkdir -p /etc/shadowsocksrsudo vim /etc/shadowsocksr/user-config.json
Step 4:
Fill in the configuration fields. Dominant fields are available as:
server, server_ipv6, server_port, password, method, protocol, protocol_param, obfs and obfs_param.
Step 5:
Start by running
sudo python /opt/shadowsocksr/shadowsocks/local.py -c /etc/shadowsocksr/user-config.json -d start
And check the status by
sudo tail /var/log/shadowsocksr.log
If it's working properly, the next step can be done optionally to make it more convenient for later use.
Step 6 (optional):
Add the lines
alias start_ssr="sudo python /opt/shadowsocksr/shadowsocks/local.py -c /etc/shadowsocksr/shadowsocks.json -d start"alias check_ssr="sudo tail /var/log/shadowsocksr.log"
to ~/.bashrc or ~/.zshrc.
Core: v2ray
Client: qv2ray
SSR Plugin: qv2ray-plugin-ssr-git
Trojan Plugin: qv2ray-plugin-trojan
Download https://deepin-wine.i-m.dev/setup.sh and sudo run it to add some repos.
Take TIM for example:
sudo apt updatesudo apt install deepin.com.qq.office
Refer to the page below for the package names of the other apps.
https://github.com/zq1997/deepin-wine
Approach 1:
Follow the instructions in the following page. Note the information related to KDE.
https://github.com/wszqkzqk/deepin-wine-ubuntu
Approach 2:
Follow the steps in the Gnome section and manually install gnome-settings-daemon.
Then make it auto start when logging in:
gsd-xsettings.sh in $HOME/.config/autostart-scripts.
#!/bin/bash/usr/lib/gnome-settings-daemon/gsd-xsettings
Log out and log back in and TIM should be able to started correctly.
Windows gets time from server and writes the zoned time into BIOS. It displays BIOS time directly.
Linux gets time from server and writes the UTC time directly into BIOS. It displays converted zoned time from BIOS.
To make Linux (Ubuntu 16.04) behave the same as Windows,
timedatectl set-local-rtc 1 --adjust-system-clocktimedatectl /* To check if the system uses local time */
There's also a way to make Windows behave like Linux, but with auto sync disabled on Windows.
Ctrl + Alt + F4 to start a TTY.
export DISPLAY=:0; cinnamon &
https://askubuntu.com/questions/143838/how-do-i-restart-cinnamon-from-the-tty/198935#198935
https://github.com/erikdubois/Ultimate-Linux-Mint-18.1-Cinnamon