YeeKal
linux

linux command

YeeKal
"#linux"
  1. install .deb

dpkg -i xxxx.deb

  1. .desktop 快捷方式

/usr/share/aplications

  1. pip change source list

pip install -i

  • 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
  • 阿里云 http://mirrors.aliyun.com/pypi/simple/
  • 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
  • 豆瓣(douban) http://pypi.douban.com/simple/
  • 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

  • add chinese input method

  • ibus: sudo ibus-setup

  • fctix:

    • https://www.cnblogs.com/voyagee/p/6898054.html
  • ubuntu & shadowsocks

  • command line: sslocal -c /etc/shadowsocks/config.json

  • open chrome with proxy: google-chrome --proxy-server="socks5://127.0.0.1:1080"

  • gui: https://github.com/shadowsocks/shadowsocks-qt5/releases

  • ss+chrome

  • sslocal -c /etc/shadowsocks/config.json

  • google-chrome-stable --proxy-server="socks5://127.0.0.1:1080"

  • cannot connect wifi

  • update kernel from 4.4 to 4.13

  • git 下载速度

  • 配置socks代理:

git config --global https.proxy 'socks5://127.0.0.1:1080'

  1. linux 实时内核补丁

  2. patch

  3. [kernel in tsinghua]
  4. ref to csdn1

  5. set priority

  6. ref1:set real time attributes

  7. ref2: 处理nice与priority
  8. ref3: build a simple rt application
  9. set real time:'chrt -f -p [1-99] {pid}'

  10. screenshot via ssh

  11. xwd -out .xwd -root -display :0.0

  12. openrave

  13. ref1

  14. ref2

  15. ros-move_group died

  16. when affine3d converted to geometry_msgs::pose, this fault will occur if the rotation in affine3d is not the standard rotation matrix

15 mp4 to gif

  • apt-get install mplayer
  • apt-get install imagemagick
  • mplayer -ao null xxxx.mp4 -vo jpeg:outdir=output //生成jpeg文件
  • convert output/*.jpg -resize 45% output/view.gif //生成gif文件

  • texlive in ubuntu

  • download texlive .iso:

    • https://mirrors-wan.geekpie.club/CTAN/systems/texlive/Images/
    • https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/
  • 图形化界面安装,安装图形化工具:sudo apt-get install perl-tk

  • kill all python process

ps -ef | grep python | cut -c 9-15| xargs kill -s 9

  1. ubuntu防火墙
# open
sudo ufw enable
# restart
sudo ufw reload
# open port
ufw allow 9000
# check status
ufw status

19 axel多线程下载

  • axel -n 8 [url]

  • 添加用户到docker用户组

ref

添加完之后需要重新进入: su yee

  1. convert mp4 to gif

ffmpeg -r 35 -i biped_animation.mp4 biped_animation.gif