1. make install
sudo make install
mkdir -p /usr/local/include/hiredis /usr/local/include/hiredis/adapters /usr/local/lib
cp -pPR hiredis.h async.h read.h sds.h alloc.h /usr/local/include/hiredis
cp -pPR adapters/*.h /usr/local/include/hiredis/adapters
cp -pPR libhiredis.so /usr/local/lib/libhiredis.so.1.0.0
cd /usr/local/lib && ln -sf libhiredis.so.1.0.0 libhiredis.so
cp -pPR libhiredis.a /usr/local/lib
mkdir -p /usr/local/lib/pkgconfig
cp -pPR hiredis.pc /usr/local/lib/pkgconfig
2. chown
unzip Linux_Upgrade_Tool_xxxx.zip
cd Linux_UpgradeTool_xxxx
sudo mv upgrade_tool /usr/local/bin
sudo chown root:root /usr/local/bin/upgrade_tool
sudo chmod a+x /usr/local/bin/upgrade_tool
3. ssh scp
scp main.c root@120.77.151.xxx:/root/demo/
scp -r /home/dong/demo root@120.77.151.xxx:/root/
https://www.cnblogs.com/asyang1/p/9467646.html
4. git
#The repository for this project is empty
You can create files directly in GitLab using one of the following options.
#Command line instructions
You can also upload existing files from your computer using the instructions below.
Git global setup
git config --global user.name "zhoudd"
git config --global user.email "zhoudd@qq.com"
#Create a new repository
git clone git@192.168.1.200:git/gstreamer.git
cd gstreamer
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
#Push an existing folder
cd existing_folder
git init
git remote add origin git@192.168.1.200:git/gstreamer.git
git add .
git commit -m "Initial commit"
git push -u origin master
#Push an existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin git@192.168.1.200:multimedia/gstreamer.git
git push -u origin --all
git push -u origin --tags
5. Ubuntu16.04 命令行设置IP、网关、DNS
https://jingyan.baidu.com/article/4b07be3c83e19048b380f3f6.html
sudo ifconfig ens33 192.168.10.163 netmask 255.255.255.0 up
sudo route add default gw 192.168.10.1
echo "nameserver 192.168.10.1" >> /etc/resolv.conf
6. Rufus
Create bootable USB drives the easy way
sudo apt update && sudo apt upgrade
sudo apt autoremove
aptitude, apt-get, dpkg, dpkg-buildpackage, update-alternative
7. mount/umonut
sudo mkdir /mnt/img
sudo mount -o loop rk3288_ubuntu_rootfs.img /mnt/img
sudo umount /mnt/img
8. ubuntu 64位兼容32位库
zhoudd@zhoudd-ubuntu:~/rockchip/rk3288$ sudo apt-get install ia32-libs
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
没有可用的软件包 ia32-libs,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
然而下列软件包会取代它:
lib32ncurses5 lib32z1
E: 软件包 ia32-libs 没有可安装候选
9. ubuntu 下安装旧32位库 ia32-libs方法
在64-bit机器上运行32-big的应用程序是,需要安装ia32-libs库 下载ia32-libs.tar.gz(下载地址:http://www.uuuwg.com/user/other/61NziUd2T)
接着对“ia32-libs.tar.gz” 进行解压,解压完成之后进入相应的目录,此时你会发现有三个deb文件,执行以下命令对三个安装包进行安装。
sudo dpkg -i lib32asound2_1.0.25-3ubuntu3.2_amd64.deb
sudo dpkg -i lib32v4l-0_0.8.8-4_amd64.deb
sudo dpkg -i ia32-li
10. Linux minicom
Minicom is the serial tool that supports wide range baud rate.
Install minicom:
sudo apt-get update sudo apt-get install minicom
Plug in the USB to TTL cable, kernel `dmesg | tail` should show the following device:
[1036835.654076] usb 1-6.4.3: new full-speed USB device number 103 using xhci_hcd [1036835.755730] usb 1-6.4.3: New USB device found, idVendor=0403, idProduct=6001 [1036835.755732] usb 1-6.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [1036835.755733] usb 1-6.4.3: Product: USB <-> Serial [1036835.755734] usb 1-6.4.3: Manufacturer: FTDI [1036835.756728] ftdi_sio 1-6.4.3:1.0: FTDI USB Serial Device converter detected [1036835.756750] usb 1-6.4.3: Detected FT232BM [1036835.757195] usb 1-6.4.3: FTDI USB Serial Device converter now attached to ttyUSB0
/dev/ttyUSB0 is our device here.
Setup minicom
First add current user to plugdev group to use minicom without sudo or root.
sudo usermod -a -G plugdev $USER
Edit your ~/.bashrc and add the following line with some default parameter
alias minicom='minicom -w -t xterm -l -R UTF-8'
Login to a new terminal to take effect.
Create and edit file ~/.minirc.rockpiE, add the following content:
pu port /dev/ttyUSB0 pu baudrate 1500000 pu bits 8 pu parity N pu stopbits 1 pu rtscts No
Now run minicom rockpiE to use the config above and connects to the ROCK Pi E serial console.