Skip to content

Instantly share code, notes, and snippets.

View wenjianhn's full-sized avatar
🐢

Jian Wen wenjianhn

🐢
  • Xiaomi
  • Beijing, China
  • 06:27 (UTC +08:00)
View GitHub Profile
cat <<EOF > /etc/sysconfig/network-scripts/ifcfg-$1
DEVICE=$1
BOOTPROTO=static
NETMASK=255.255.255.0
IPADDR=$2
ONBOOT=yes
EOF
vncviewer -nocursorshape -quality 0 -compresslevel 9 -encodings Tight -bgr233 localhost:5902