一些操作的记录,只为个人所用,勿喷,持续不定时updating….
新建用户git:
useradd git
修改git用户密码: passwd git
git用户添加到管理组: gpasswd -a git admin
给git用户创建自己的目录:
cd /home
mkdir git
chown git /home/git
删除用户git
userdel -r git(-r 删除与git用户相关的文件)
—————————————————————–
ssh生成密钥
ssh-keygen -t rsa -C “[email protected]”
ssh公钥复制到服务器
ssh-copy-id -i .ssh/id_rsa.pub [email protected]
修改密钥口令(以前的密钥一直有密码的….太烦了,所以想删掉)
ssh-keygen -p
ssh服务器配置文件
/etc/ssh/sshd_config
ssh服务器开始重启关闭
/etc/init.d/ssh start(restart)(stop)
—————————————————————–
# the PS1
export PS1=’n[e[01;37m][`a=$?;if [ $a -ne 0 ]; then echo -n -e “[e[01;32;41m]{$a}”; fi`[33[01;32m]u[33[01;33m]@[33[01;35m]h[33[00m] [33[01;34m]`pwd“B=$(git branch 2>/dev/null | sed -e “/^ /d” -e “s/* (.*)/1/”); if [ "$B" != "" ]; then S=”git”; elif [ -e .bzr ]; then S=bzr; elif [ -e .hg ]; then S=”hg”;B=”$(hg branch)”; elif [ -e .svn ]; then S=”svn”; else S=”"; fi; if [ "$S" != "" ]; then if [ "$B" != "" ]; then M=$S:$B; else M=$S; fi; fi; [[ "$M" != "" ]] && echo -n -e “[e[33;40m($M)[33[01;32m][e[00m]“`[33[01;34m][e[01;37m]]n[e[01;34m]$ [e[00m]‘
if [ $UID -eq 0 ]
then
export PS1=’n[e[01;37m][`a=$?;if [ $a -ne 0 ]; then echo -n -e “[e[01;32;41m]{$a}”; fi`[33[01;31m]u[33[01;33m]@[33[01;31m]h[33[00m] [33[01;34m]`pwd“B=$(git branch 2>/dev/null | sed -e “/^ /d” -e “s/* (.*)/1/”); if [ "$B" != "" ]; then S=”git”; elif [ -e .bzr ]; then S=bzr; elif [ -e .hg ]; then S=”hg”;B=”$(hg branch)”; elif [ -e .svn ]; then S=”svn”; else S=”"; fi; if [ "$S" != "" ]; then if [ "$B" != "" ]; then M=$S:$B; else M=$S; fi; fi; [[ "$M" != "" ]] && echo -n -e “[e[33;40m]($M)[33[01;32m][e[00m]“`[33[01;34m][e[01;37m]]n[e[01;34m]$ [e[00m]‘
fi
—————————————————————–
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
c1:87:72:73:01:cf:96:f8:62:23:92:db:8f:a7:3a:11.
Please contact your system administrator.
Add correct host key in /home/Scorpio/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/Scorpio/.ssh/known_hosts:9
ECDSA host key for 192.168.137.60 has changed and you have requested strict checking.
Host key verification failed.晚上登录出现这个情况,好像是因为本地known_hosts里面有虚拟主机的信息,但是虚拟主机没pubkey所以错误,只要删除known_hosts记录就好了。-
----------------------------------------------------------------Ubuntu11.10源
deb http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ oneiric-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ oneiric-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ oneiric-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ oneiric-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-updates universe main multiverse restricted-----------------------------------------------------------------修改系统登录信息:
sudo vim /etc/motd----------------------------------------------------------------- ./configure在输入:make
make: *** No targets specified and no makefile found. Stop. 这是因为make出错了!木有makefile
荒野乱斗国际版 (BrawlStars)最新版本v56.274
下载一波超人内置修改器菜单版 安卓版v1.0.2
下载敢达决战官方正版 安卓版v6.7.9
下载敢达决战 安卓版v6.7.9
下载继承了一座戏园子无限声望铜钱版 内置菜单最新版v1.7
继承了一座戏园子折相思版是游戏的破解版本,在该版本中为玩家提
山河半世橙光清软金手指版 无限鲜花v3.24
山河半世是一款超级好玩的橙光恋爱游戏,在游戏中玩家们需要扮演
蓬莱手游折相思版 安卓版v1.0.0
蓬莱免广告版是游戏的修改版本,在该版本中为玩家去除了广告,玩
当红影后橙光游戏破解版2025 最新版v1.0
当红影后橙光破解版是一款超级好玩的娱乐圈题材的橙光游戏,在这
忽然成了万人迷清软完结版 无限鲜花版v12.15
忽然成了万人迷破解版是一款非常好玩的男性向橙光游戏,在有一天