安装openssh-server
1.安装openssh
sudo apt-get install openssh-server
2.查看ssh服务是否启动
sudo ps -e |grep ssh # sshd服务是否开启,开启说明启动成功
3.查看IP地址:ifconfig
4.使用Putty或者Xshell连接
安装samba:
1、sudo apt-get install samba
2、sudo vim /etc/samba/smb.conf
3、添加samba:sudo smbpasswd -a xxx
sudo smbpasswd -e xxx
4、重启samba服务:sudo service smbd restart
[username]
comment=username
browseable = yes
path=/home/username
writable= yes
create mask = 0644
directory mask = 0755
valid users = username
public = yes
available = yes
git安装:
sudo apt-get install git
邮箱设置:
git config --global user.email "lingjuan.zhou@tinno.com"
git config --global user.name "lingjuan.zhou"
或者直接写到文件中:
.gitconfig文件:[user]
email = user@xxx
name = user
.ssh 文件夹:
放入备份的公私钥和config文件
host gerritxx
user xxxx
port 29418
hostname IP或者域名
identityFile ~/.ssh/id_rsa(可以改名)
repo安装:
mkdir ~/bin
curl http://192.168.63.219/repo > ~/bin/repo
PATH=~/bin:$PATH (很重要,which repo 命令查看是否正确)
chmod a+x ~/bin/repo