Skip to content
Hunter Wu edited this page May 15, 2020 · 16 revisions

Softwares

Virtual cam

Virtual cam - v4l2loopback not working on google chrome

apt-get install module-assistant
m-a prepare
m-a update
m-a a-i v4l2loopback
cd /usr/src
dpkg -i v4l2loopback-modules-5.0.0-32-generic_0.12.1-1_amd64.deb
reboot
modinfo videodev
modinfo v4l2loopback

modprobe -r v4l2loopback
modprobe videodev
modprobe v4l2loopback video_nr=1 card_label="Virtual cam" exclusive_caps=1
insmod /lib/modules/5.0.0-29-generic/updates/dkms/v4l2loopback.ko exclusive_caps=1 devices=1 video_nr=2
insmod /usr/lib/modules/5.3.0-24-generic/updates/dkms/v4l2loopback.ko exclusive_caps=1 devices=1 video_nr=2

depmod -a

ffmpeg -loop 1 -re -i /root/girl.jpg -f v4l2 -vcodec rawvideo -pix_fmt yuv420p /dev/video1

Ubuntu Release upgrade

18.04

  • php7 conf for apache2
sudo apt install libapache2-mod-php7.2
sudo a2enmod php7.2
sudo systemctl restart apache2
  • php7 extensions
    • php7.2-bcmath

16.04

  • php7 conf for apache2
  • php7 extensions
    • php7.0-curl
    • php7.0-intl
    • php7.0-mbstring
    • php-redis
  • php-fpm
  • rm /etc/cron.d/php5
  • mysql-server
    • purge and install
    • sudo mysql_secure_installation
    • user cannot login root without password
  • eclipse purge and re-install

S410

apt

apt-get install libappindicator1 # for chrome
apt-get -f install
apt-get install fail2ban # server
apt-get install git screen vim curl bison
apt-get install apache2 mysql-server php5 php5-curl phpmyadmin
apt-get install redis-server
apt-get install composer
apt-get install npm
apt-get install Mercurial # for go-find-references
apt-get install grc # universal coulouriser
apt-get install ruby # for gem # for grb
apt-get install android android-tools-adb
apt-get install meld
apt install fcitx fcitx-chewing
apt install libjpeg62 # CoR
apt install fcitx-anthy # japanese input

php

curl -sS https://getcomposer.org/installer | php

npm

sudo npm install -g grunt-cli
sudo npm install -g jshint
sudo npm install -g uglifyjs json-minify

G530

  • LiLi USB Creator + SY-H61-U3M
  • Ubuntu Server 13.10 x86_64 --> USB Mode: Forced FDD
  • Ubuntu Server 13.10 i386 --> USB Mode: Auto

Install Ubuntu 14.04 inside Win7

  • Boot From Ubuntu USB
  • Choose Install Ubuntu in Win7
  • Restart in Win7
  • Use Wubi (It works now!)

After kernel upgrade

  • If it can't boot from the new kernel, edit /boot/grub/grub.cfg to boot from the old kernel by default is a workaround.

apt source

  • vim /etc/apt/sources.list
:%s/us.archive.ubuntu.com/free.nchc.org.tw/g

Devices

rtl8812au (TP-Link Archer T2U Plus)

RK3066 (CHUWI V17HD)

  • Download & Install SDK
  • Edit udev rules (see step #3), the RK3066 Vendor ID is 2207
  • Restart udev (udevadm control --reload-rules)
  • Edit $HOME/.android/adb_usb.ini, add 0x2207 at the end of the file
  • Restart adb server (adb kill-server && adb start-server)
  • Plug & List your device (adb devices)

mt7601u (MI wifi)

http://bbs.xiaomi.cn/t-10260085

auto wlxf0b42931c5e9
iface wlxf0b42931c5e9 inet static
    address 192.168.2.1
    netmask 255.255.255.0
  • sudo service networking restart
  • sudo apt-get install isc-dhcp-server
  • vim /etc/dhcp/dhcpd.conf
subnet 192.168.199.0 netmask 255.255.255.0 {
   range 192.168.199.10 192.168.199.20;
   option routers 192.168.199.1;
   option domain-name-servers 114.114.114.114;
}
  • vim /etc/default/isc-dhcp-server
INTERFACES="wlxf0b42931c5e9"
sudo apt-get install bcmwl-kernel-source

mi3

  • Read-only file system
mount -o remount,rw /system
Clone this wiki locally