linux command(deepin-docker)
发布时间:2020-12-16 03:51:18 所属栏目:安全 来源:网络整理
导读:table class="text" tr class="li1" td class="ln"pre class="de1"1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
<table class="text"> |
<tr class="li1">
<td class="ln"><pre class="de1">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
w :w
endfunction
--------------------------------------------------
?
?
--------------------------------------------------
ssh-copy-id -i .ssh/id_rsa.pub ?root@192.168.x.xxx
--------------------------------------------------
?
--------------------------------------------------
/usr/bin/setxkbmap -option '' -option 'ctrl:nocaps'
--------------------------------------------------
?
--------------------------------------------------
#! /bin/bash
/home/zhoutk/softs/ss/Shadowsocks-Qt5-3.0.1-x86_64.AppImage > /dev/null 2>&1 &
--------------------------------------------------
?
fstab
--------------------------------------------------
设置/etc/fstab使系统在启动时像mount -o bind source_dir target_dir 命令一样装载目录
/mnt/hdd1/test /home/test/ext none rw,bind 0 0
--------------------------------------------------
?
?
deepin linux 时间差
--------------------------------------------------
timedatectl set-local-rtc 1
--------------------------------------------------
?
?
最大打开文件数量
--------------------------------------------------
cat /proc/sys/fs/inotify/max_user_watches
editing /etc/sysctl.conf and adding this line to the end of the file:
fs.inotify.max_user_watches=524288
The new value can then be loaded in by running sudo sysctl -p
--------------------------------------------------
?
?
deepin linux install docker-ce
--------------------------------------------------
sudo apt-get remove docker docker-engine
sudo apt-get install apt-transport-https ca-certificates curl python-software-properties software-properties-common -y
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian wheezy stable"
sudo apt-get update
sudo apt-get install docker-ce
--------------------------------------------------
?
ss
--------------------------------------------------
sudo apt-get install polipo
sudo vim /etc/polipo/config
?
socksParentProxy = "localhost:8080"
socksProxyType = socks5
logLevel=4
?
sudo service polipo stop
sudo service polipo start
?
export http_proxy=http://localhost:8123 ? ? ? ? (8123是polipo的默认端口,设置全局代理)
unset http_proxy # 当前终端取消代理
?
alias hp="http_proxy=http://localhost:8123"
hp curl ip.sb
?
在git命令最后加参数可以实现代理:
--config http.proxy=localhost:8123
?
alias gp=" --config http.proxy=localhost:8123"
git clone https://github.com/gmarik/Vundle.vim.git $gp
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!