1.安装smb服务
sudo apt-get install samba
查看smb服务版本
jump@mylubuntu:/home$ smbd –version
Version 4.6.7-Ubuntu
2.为smb添加用户及设置密码
jump@mylubuntu:/home$ sudo smbpasswd -a jump #jump为用户名
3.配置文件
sudo gedit /etc/samba/smb.conf
[mysmb] #共享时网络上显示的名称
path = /home/mysmbshare #共享路径
guest ok = no #匿名访问
comment = smb share #注释信息
available = yes #vailable用来指定该共享资源是否可用
browseable = yes #browseable用来指定该共享是否可以浏览
public = yes #public用来指定该共享是否允许guest账户访问
writeable = yes #writable用来指定该共享路径是否可写
4.重新启动服务
出现问题:
jump@mylubuntu:/home$ sudo /etc/init.d/smbd restart
[….] Restarting smbd (via systemctl): smbd.serviceJob for smbd.service failed because the control process exited with error code.
See “systemctl status smbd.service” and “journalctl -xe” for details.
failed!
解决办法:
把第三步的/etc/samba/smb.conf 中刚刚添加的配置,#后面全部删掉(包含#删掉)
查看状态:sudo /etc/init.d/smbd status
5.登入smb
出现没有权限:chmod -R 777 mysmbshare
————————————————————————————————————-
Usage:
ccache [options]
ccache compiler [compiler options]
compiler [compiler options] (via symbolic link)
Options:
-c, –cleanup delete old files and recalculate size counters
(normally not needed as this is done automatically)
-C, –clear clear the cache completely
-F, –max-files=N set maximum number of files in cache to N (use 0 for
no limit)
-M, –max-size=SIZE set maximum size of cache to SIZE (use 0 for no
limit; available suffixes: G, M and K; default
suffix: G)
-s, –show-stats show statistics summary
-z, –zero-stats zero statistics counters
-h, –help print this help text
-V, –version print version and copyright information
See also <http://ccache.samba.org>.
1. 设置cache的大小
prebuilts/misc/linux-x86/ccache/ccache -M 25G
2.开启方法
增加USE_CCACHE=1,比如 ./mk -o=USE_CCACHE=1,TARGET_BUILD_VARIANT=user new
可以在makeMtk中将USE_CCACHE=1写进去,比如 $ENV{“USE_CCACHE”}=1
3.通过ccache -s 查看cache的信息,通过ccache -C清除缓存
- 编译Android
Android中,使用ccache,只需要添加环境变量’$ export USE_CCACHE=1′, 不同的是,默认它不用HOST的ccache程式,而使用自带的ccache. 编译android需要较大的缓冲区:
- $ ccache -M 3G // 将缓冲区设置为3G