git clone https://github.com/PX4/Firmware.githtml
1、安装ssh服务
ps -e|grep ssh
sudo apt-get install openssh-server
sudo /etc/init.d/ssh startlinux
2、设置root密码git
一、sudo passwd rootgithub
二、输入sudo 密码ajax
三、输入新的 root帐号密码shell
四、切换到rootubuntu
Su rootapi
3、安装gitlao整合包浏览器
一、下载服务器
https://bitnami.com/redirect/to/96764/bitnami-gitlab-8.5.1-0-linux-x64-installer.run
二、加入执行权限
chmod 777 bitnami-gitlab-8.5.7-0-linux-x64-installer.run
三、执行安装
./bitnami-gitlab-8.5.7-0-linux-x64-installer.run
四、执行后就会弹出图形化界面,一步步确认就行,以下 图
五、输入gitlan管理员帐号密码
五、输入gitlan服务器域名,这里测试发现用域名,当用户注册后,收到的邮件连接没法点开,将127.0.1.1改成虚拟机的本地ip地址 例如:192.168.61.128
这里经过ifconfig命令获取当前的ip地址
若是更改ip
//////
vi apps/gitlab/htdocs/config/gitlab.yml +474
vi apps/gitlab/htdocs/config/gitlab.yml +32
vi apps/gitlab/gitlab-shell/config.yml +16
六、第一次安装好了就默认启动了gitlab,若是要手动启 动的话有两种办法
1.找到安装好的路径/opt/gitlab-8.5.7-0须要root 权限执行命令:
Sudo ./ctlscript.sh restart
七、window系统浏览器访问
八、配置邮件服务器
一、./apps/gitlab/htdocs/config/environments/production.rb
#config.action_mailer.delivery_method = :sendmail
# Defaults to:
# # config.action_mailer.sendmail_settings = {
# # location: '/usr/sbin/sendmail',
# # arguments: '-i -t'
# # }
# Defaults to:
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => "smtp.163.com",
:port => 25,
:domain => "163.com",
:authentication => :plain,
:user_name => "liushuhe1990@163.com",
:password => "lshjn@52013140",
:enable_starttls_auto => true
}
二、apps/gitlab/htdocs/config/gitlab.yml
## Email settings
# Uncomment and set to false if you need to disable email sending from GitLab (default: true)
#email_enabled: true
# Email address used in the "From" field in mails sent by GitLab
email_from: liushuhe1990@163.com
email_display_name: GitLab
email_reply_to: noreply@163.com
三、
九、./apps/gitlab/htdocs/config/environments/production.rb
一、ssh-keygen -t rsa -C 'liushuhe1990@163.com'
二、cat ~/.ssh/id_rsa.pub
4、卸载
一、中止gitlab 进入opt/gitlab-8.5.1-0目录
./ctlscript.sh stop
二、卸载gitlab(注意这里写的是gitlab-ce)
rpm -e gitlab-ce
一、查看gitlab进程
ps aux | grep gitlab
二、杀掉第一个进程(就是带有好多.............的进程)
kill -9 18777
杀掉后,在ps aux | grep gitlab确认一遍,还有没有gitlab的进程
五、删除全部包含gitlab文件
find / -name gitlab | xargs rm -rf
sudo vi /etc/hosts
i 启动编辑模式
::1 localhost
192.30.255.112 github.com
而后添加github的地址
192.30.253.113 github.com
192.30.252.131 github.com
185.31.16.185 github.global.ssl.fastly.net
74.125.237.1 dl-ssl.google.com
173.194.127.200 groups.google.com
192.30.252.131 github.com
185.31.16.185 github.global.ssl.fastly.net
74.125.128.95 ajax.googleapis.com
一、开始须要咱们作的是先在咱们的ubuntu下安装好samba:
安装samba:sudo apt-get install samba
安装smbclient:sudo apt-get install smbclient
二、修改配置文件
vi /etc/samba/smb.conf 编辑smb.conf 文件
在配置文件的最末尾加上:
[fwl]
comment = my samba
path = /
browseable = yes
read only = no
guest ok = no
保存后从新启动samba:sudo /etc/init.d/samba restart
三、设置用户和密码
sudo smbpasswd -a fwl 接着俺提示输入密码。(前提是添加了此用户:useradd fwl )
不然系统在没有此用户的前提下按默认操做是会报以下错的:
增长samba用户提示Failed to add entry for user
root@tyc-virtual-machine:/home# smbpasswd -a fwl
New SMB password:
Retype new SMB password:
Failed to add entry for user fwl .
解决办法:
这是由于没有加相应的系统帐号,因此会提示Failed to add entry for user的错误,只需增长相应的系统帐号share就能够了:
root@tyc-virtual-machine:/home# groupadd fwl -g 6000
[root@tyc-virtual-machine:/home# useradd fwl -u 6000 -g 6000 -s /sbin/nologin -d /dev/null
四、最后计算机下右键添加一个网络位置
输入 文件夹框 \\ip地址\share,按提示输入用户名密码便可。
Ubuntu:下载
fwl@ubuntu:/work$ rm px4/ -rf
fwl@ubuntu:/work$ git clone git@192.168.1.103:liushuhe/px4.git
正克隆到 'px4'...
remote: Counting objects: 17053, done.
remote: Compressing objects: 100% (7635/7635), done.
remote: Total 17053 (delta 8581), reused 16881 (delta 8520)
接收对象中: 100% (17053/17053), 264.72 MiB | 21.39 MiB/s, 完成.
处理 delta 中: 100% (8581/8581), 完成.
检查链接... 完成。
正在检出文件: 100% (15080/15080), 完成.
Minigeiw32:下载