完美使用向日葵远程软件
Tofloor
poster avatar
ngfchl
deepin
2017-07-05 07:11
Author
本帖最后由 ngfchl 于 2017-7-4 23:11 编辑

看到好多人都在说向日葵的事情,我也是向日葵爱好者啊,一直想在这个电脑上安装,可是一直装不上去,今天突然脑洞大开,发现了问题所在!


其实官网的教程很详细了,我的教程是安装版的,还是从头到尾啰嗦一下吧
第一步,从官网下载Linux版向日葵,然后解压,根据自己的喜好放到文件夹里,这里我是在主目录下新建了程序的文件夹,向日葵就放在里面

第二步,进入向日葵文件夹下的scripts文件夹,在这里打开终端,

第三部,按照官方教程,运行安装程序,在终端里运行:./install.sh

第四步,这里呢,出现了一个错误,很直观,翻译过来就是在第69行需要一个一元表达式,错误是不识别的操作系统
这里就是重点了,用文本编辑器打开install.sh,找到第69行,发现代码:
if [ $os_name == 'ubuntu' ] || [ $os_name == 'centos' ] || [ $(echo $os_name |grep redhat) != "" ]; then
        echo 'check operate system OK'
else
        echoAndExit 'unknown OS it not impl'
fi

阅读代码,发现向日葵官方识别的Linux操作系统仅为Ubuntu、centos和redhat,如果不是这三个,就返回代码
Error:unknown OS it not impl

发现问题所在,那么解决也就很简单了,在代码中加上deepin就可以了哇,以下是修改后的代码:
if [ $os_name == 'ubuntu' ] || [ $os_name == 'centos' ] || [ $os_name == 'deepin' ] || [ $(echo $os_name |grep redhat) != "" ]; then
        echo 'check operate system OK'
else
        echoAndExit 'unknown OS it not impl'
fi

保存继续

第五步,运行修改后的install,哎呀不好,怎么还不行?

详细一看,呀,错误一样,打开看代码,果然,同样的问题,加上deepin的代码
elif  [ "$os_name" == "centos" ] || [ $os_name == 'deepin' ] || [ $(echo $os_name |grep redhat) != "" ] ; then
        gdm_init_create
        if [ $os_version_int -lt 7 ]; then
                cp init_runsunloginclient /etc/init.d/runsunloginclient || echoAndExit 'can not copy init file init_runsunloginclient'
                chmod +x /etc/init.d/runsunloginclient

第六步,继续运行,完美了!

第七步,安装完成,运行程序:./start.sh
这时候也会遇到上面的问题,解决方案一样的,

第八步,完美运行了,只是缺少了本机IP,自己在浏览器里输入就好了
第九步,在浏览器打开的页面里,设置访问密码,
第十步,图中的位置选择Sunlogin Account Login,输入自己的向日葵账号密码,就可以在客户端访问自己的电脑了!


下面是我在其他电脑远程的画面,完美perfect!



本来想隐藏下,混个回复,结果找不到哪里隐藏,作罢咯


Reply Favorite View the author
Comments
poster avatar
aida
2018-10-18 01:16
已入驻深度应用商店!
All Replies
1 / 2
To page
avatar
山西姚一
deepin
2017-07-05 07:16
#1
楼主好人,心情也好。赞一个!
Reply View the author
avatar
cheyang
deepin
2017-07-05 07:24
#2
一会试试
Reply View the author
avatar
waittingsummer
deepin
2017-07-05 07:38
#3
厉害了我的哥
Reply View the author
avatar
leixiaozeng
deepin
2017-07-05 07:44
#4
一直不知道这个软件是做什么用的,今天终于知道了。
Reply View the author
avatar
danieltaoys
deepin
2017-07-05 13:31
#5
深度官方可以打一下包!
Reply View the author
avatar
134******40
deepin
2017-07-05 15:40
#6
这个好,我收藏了。
Reply View the author
avatar
lyxlgr
deepin
2017-07-05 15:49
#7
                  
Reply View the author
avatar
jingle
deepin
2017-07-05 16:55
#8
谢谢分享 以前我们也打包过  现在再试试看看
Reply View the author
avatar
yespens
deepin
2017-07-05 17:46
#9
我昨天刚安装了。。哈哈
Reply View the author
avatar
饮料再好也比不上麦芽发酵
deepin
2017-07-05 18:03
#10
本帖最后由 gaoyanglion 于 2017-7-5 10:07 编辑

安装后 ,用 systemctl 控制起停就行了

sudo systemctl start runsunloginclient

sudo systemctl stop runsunloginclient

Reply View the author
avatar
ngfchl
deepin
2017-07-05 19:12
#11
https://bbs.deepin.org/post/142049
安装后 ,用 systemctl 控制起停就行了

sudo systemctl start runsunloginclient

主要就是安装出错,不然也不会那么麻烦了
Reply View the author
avatar
ngfchl
deepin
2017-07-05 19:32
#12

一般一般,瞎研究
Reply View the author
avatar
ngfchl
deepin
2017-07-05 19:33
#13
https://bbs.deepin.org/post/142049
一直不知道这个软件是做什么用的,今天终于知道了。

这么出名的远程控制软件怎么可以不知道
Reply View the author
avatar
ngfchl
deepin
2017-07-05 19:33
#14
https://bbs.deepin.org/post/142049
用电脑控制电脑,还是用手机控制电脑

都可以的,有葵码有验证码都可以
Reply View the author
avatar
ngfchl
deepin
2017-07-05 19:34
#15
https://bbs.deepin.org/post/142049
谢谢分享 以前我们也打包过  现在再试试看看

你们可以打包个界面出来,命令行还是多有不便
Reply View the author
avatar
185******09
deepin
2017-07-05 22:54
#16
哇,我本来也用向日葵呢,不能安装就还是使用teamviewer了,╮(╯▽╰)╭
Reply View the author
avatar
左心房的痛
deepin
2017-07-06 01:49
#17
本帖最后由 wanzhende 于 2017-7-5 17:51 编辑

我以为讲得是向日葵控制端呢


Reply View the author
avatar
左心房的痛
deepin
2017-07-06 01:50
#18
https://bbs.deepin.org/post/142049
谢谢分享 以前我们也打包过  现在再试试看看

把控制端也给打包了吧
Reply View the author
avatar
ngfchl
deepin
2017-07-25 05:27
#19
https://bbs.deepin.org/post/142049
我以为讲得是向日葵控制端呢

控制端安装使用并不复杂
Reply View the author
avatar
ngfchl
deepin
2017-07-25 05:28
#20
https://bbs.deepin.org/post/142049
把控制端也给打包了吧

这个想法好
Reply View the author
1 / 2
To page