2014-1-13 17:50 上傳
點(diǎn)擊文件名下載附件
4.運(yùn)行Samba Filesharing,退出后修改/data/data/com.funkyfresh.samba/files/smb.conf 如下
復(fù)制代碼
# Auto-generated by com.funkyfresh.samba
#
#
# smb.conf last written on 2013-12-05_09-35-43 app build 111107m
#
#
# Manual edits of smb.conf are not supported.
#
#
# Sharing of non FAT based filesystems is unsupported. Do so at your own peril.
#
#
[global]
interfaces = wlan0 eth0
bind interfaces only = no
workgroup = WORKGROUP
server string = Samba on Android
netbios name = MYBOX
remote announce = 255.255.255.255
encrypt passwords = yes
security = USER
restrict anonymous = 1
load printers = no
printcap name = /dev/null
disable spoolss = yes
deadtime = 5
delete readonly = yes
nt acl support = no
inherit permissions = yes
socket options = SO_SNDBUF=16384 SO_RCVBUF=16384
local master = no
unix extensions = yes
[system]
comment = root file system
path = /
force user = root
read only = no
writable = yes
guest ok = no
#[sdcard]
#vfs objects = fake_perms
#comment = Android /storage/emulated/0
#path = /storage/emulated/0
#force user = root
#read only = no
#writable = yes
#guest ok = no
[mobile]
comment = mobile disk
path = /storage/
force user = root
read only = no
writable = yes
guest ok = no
5.添加啟動腳本/data/sysme/startsamba
復(fù)制代碼
#!/system/bin/sh
killall smbd
/data/data/com.funkyfresh.samba/files/smbd -D &
6.用/data/data/com.funkyfresh.samba/files/smbpasswdbin 添加samba用戶密碼
7.運(yùn)行quicksshd
8.移動/data/data/com.......quciksshd/的核心文件到/data/dropbear,因?yàn)?a href="http://81jnr2m.cn/bbs-37-1.html" target="_blank" class="relatedlink">軟件已經(jīng)卸載掉了,不記得具體文件名,這個簡單,看一下就知道了
9.進(jìn)入/data/dropbear文件夾,重命名 dropbear_dss_key,dropbear_rsa_key分別為dropbear_dss_host_key,dropbear_rsa_host_key
10.創(chuàng)建sshd啟動文件/data/dropbear/startssh
復(fù)制代碼
#!/system/bin/sh
killall dropbear
/data/dropbear/dropbear -p 22 -Y [password] -H /data/sysme &
11.創(chuàng)建自啟動腳本/data/rc.me,用來啟動samba和sshd,也方便以后添加別的服務(wù)
復(fù)制代碼
#!/system/bin/sh
#/data/sysme/killtask
/data/dropbear/startssh &
/data/sysme/startsamba &
12.adb重新mount /system為rw模式,具體自己
百度
修改 /system/etc/yunos_sensor_init.sh,在/system/bin/input_boost_helper&上面一行添加/data/rc.me &,修改好之后最后幾行應(yīng)該是如下
復(fù)制代碼
............................
/data/rc.me &
/system/bin/input_boost_helper&
echo "start input_boost"
/data/yunos/bin/input_boost
13.至此,重啟后因該可以ssh到22端口了,samba也應(yīng)該可以訪問
卸載掉quicksshd