LinuxTips15

TurnToJPG -->


1. x11docker

Start and specify vt:

# x11docker --gpu --vt=2 --xorg x11docker/mate

With internet and more features:

# x11docker --gpu --vt=2 --network --desktop --init=systemd x11docker/deepin

2. git without ssl check

via:

export GIT_SSL_NO_VERIFY=1
git clone https://xxxx.xx

3. Home Sharing environment

Install dnsmasq and configure:

# vim /etc/dnsmasq.conf
bind-interfaces
dhcp-range=10.1.10.128,10.1.10.200,12h
dhcp-option=3,10.1.10.1
dhcp-authoritative
interface=enp0s25
# systemctl restart dnsmasq

Start the sharing via(enp0s25->wlo1):

$ sudo iptables -t nat -A POSTROUTING -s '10.1.10.0/24' -o wlo1 -j MASQUERADE

Then with a ethernet cable connected, the other client could get reach into the internet via sharing.

4. system_reset in qemu

via:

telnet localhost 1111
> system_reset
this could reset the machine and let it reboot.

5. uhd510 win7 driver

download url:

https://downloadmirror.intel.com/30195/a08/win64_15.45.5174.exe

6. intel graphics

version:

21.20.16.5174 intel

7. Fix zsh issue

When type tab key in zsh shell, it will complains following arguments, and won’t automatically auto-complete the command:

(eval):setopt:3: no such option: NO_typesettounset

Fixed via:

# chsh -s $(which zsh)
# vim /etc/shells
/usr/bin/zsh

Reboot the machine and this issue fixed.

8. Enter to M

^M will be replaced ,when hitting Enter:

stty icrnl

9. wine with input method

Could not use fcitx in wine’s tim:

Add:

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

into /opt/apps/com.qq.tim.spark/files/run.sh