Hoektronics / bumblebee

BotQueue's client Bumblebee
7 stars 7 forks source link

How to make Bumblebee start when turn on printers? #4

Closed Jiang-hao closed 10 years ago

Jiang-hao commented 10 years ago

Hi, How to make the bumblebee app run automatically when I turn on my printers so that I do not have to go to terminal and run the app by myself. Thank you very much!

Jnesselr commented 10 years ago

I mean that depends on the device. Is it running on a raspberry pi? On Sep 8, 2014 11:47 PM, "Jiang-hao" notifications@github.com wrote:

Closed #4 https://github.com/Hoektronics/bumblebee/issues/4.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#event-162878539.

Jiang-hao commented 10 years ago

No. It is not a raspberry pi. I put a beagle bone on the main board(gen6) of my printer. Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 9 Sep, 2014,12:48 pm,Jnesselr notifications@github.com 写道:

I mean that depends on the device. Is it running on a raspberry pi? On Sep 8, 2014 11:47 PM, "Jiang-hao" notifications@github.com wrote:

Closed #4 https://github.com/Hoektronics/bumblebee/issues/4.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#event-162878539.

— Reply to this email directly or view it on GitHub.

Jnesselr commented 10 years ago

I'm trying it now, by using this tutorial: https://gist.github.com/tstellanova/7323116

So far it's not working well. The Raspberry PI does it be auto logging in one user to tty8, which would probably be /dev/pts/8 on the BBB, and then starting the client on that terminal.

Jiang-hao commented 10 years ago

Hi, Thank you so much for helping. I am quite new to terminal. Is there a way that I tell BBB what command to run when it boots? May be write something in /etc/init file? Since manually, I only have to enter two commands: cd bumblebee; python app.py. Can I tell BBB to run these two commands automatically when it boots? Many thanks! Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,5:36 am,Jnesselr notifications@github.com 写道:

I'm trying it now, by using this tutorial: https://gist.github.com/tstellanova/7323116

— Reply to this email directly or view it on GitHub.

Jnesselr commented 10 years ago

I figured it out. I wrote a blog post on the subject. Feel free to close this issue when you've got it all figured out, or ask questions if you need some help. http://blog.jnesselr.org/2014/09/setting-up-bumblebee-to-run-on-bbb-boot.html

Jiang-hao commented 10 years ago

Hi, Many thanks! I am trying your solution now, but i got stuck at cp /lib/systemd/system/getty@.service \ /etc/systemd/system/autologin@.service I encountered the following error, and I dont know why. cp: cannot create regular file ` /etc/systemd/system/autologin@.service': No such file or directory

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,11:50 am,Jnesselr notifications@github.com 写道:

I figured it out. I wrote a blog post on the subject. Feel free to close this issue when you've got it all figured out, or ask questions if you need some help. http://blog.jnesselr.org/2014/09/setting-up-bumblebee-to-run-on-bbb-boot.html

— Reply to this email directly or view it on GitHub.

Jnesselr commented 10 years ago

Are you running as root? Try adding a \ before the @ symbols. On Sep 10, 2014 12:27 AM, "Jiang-hao" notifications@github.com wrote:

Hi, Many thanks! I am trying your solution now, but i got stuck at cp /lib/systemd/system/getty@.service \ /etc/systemd/system/autologin@.service

I encountered the following error, and I dont know why. cp: cannot create regular file ` /etc/systemd/system/autologin@.service': No such file or directory

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,11:50 am,Jnesselr notifications@github.com 写道:

I figured it out. I wrote a blog post on the subject. Feel free to close this issue when you've got it all figured out, or ask questions if you need some help.

http://blog.jnesselr.org/2014/09/setting-up-bumblebee-to-run-on-bbb-boot.html

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55072553.

Jiang-hao commented 10 years ago

Oh I did not run in root. But now I met another problem. when I run systemctl daemon-reload It tells me Unknown operation Do I have to install something? Thanks! Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,1:29 pm,Jnesselr notifications@github.com 写道:

Are you running as root? Try adding a \ before the @ symbols. On Sep 10, 2014 12:27 AM, "Jiang-hao" notifications@github.com wrote:

Hi, Many thanks! I am trying your solution now, but i got stuck at cp /lib/systemd/system/getty@.service \ /etc/systemd/system/autologin@.service

I encountered the following error, and I dont know why. cp: cannot create regular file ` /etc/systemd/system/autologin@.service': No such file or directory

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,11:50 am,Jnesselr notifications@github.com 写道:

I figured it out. I wrote a blog post on the subject. Feel free to close this issue when you've got it all figured out, or ask questions if you need some help.

http://blog.jnesselr.org/2014/09/setting-up-bumblebee-to-run-on-bbb-boot.html

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55072553.

— Reply to this email directly or view it on GitHub.

Jiang-hao commented 10 years ago

Oh, It is my bad. I typed wrong commands Sorry! Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,1:29 pm,Jnesselr notifications@github.com 写道:

Are you running as root? Try adding a \ before the @ symbols. On Sep 10, 2014 12:27 AM, "Jiang-hao" notifications@github.com wrote:

Hi, Many thanks! I am trying your solution now, but i got stuck at cp /lib/systemd/system/getty@.service \ /etc/systemd/system/autologin@.service

I encountered the following error, and I dont know why. cp: cannot create regular file ` /etc/systemd/system/autologin@.service': No such file or directory

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,11:50 am,Jnesselr notifications@github.com 写道:

I figured it out. I wrote a blog post on the subject. Feel free to close this issue when you've got it all figured out, or ask questions if you need some help.

http://blog.jnesselr.org/2014/09/setting-up-bumblebee-to-run-on-bbb-boot.html

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55072553.

— Reply to this email directly or view it on GitHub.

Jiang-hao commented 10 years ago

But when I run

systemctl enable getty@tty8.service

It tells me Failed to issue method call: No such file or directory Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,1:29 pm,Jnesselr notifications@github.com 写道:

Are you running as root? Try adding a \ before the @ symbols. On Sep 10, 2014 12:27 AM, "Jiang-hao" notifications@github.com wrote:

Hi, Many thanks! I am trying your solution now, but i got stuck at cp /lib/systemd/system/getty@.service \ /etc/systemd/system/autologin@.service

I encountered the following error, and I dont know why. cp: cannot create regular file ` /etc/systemd/system/autologin@.service': No such file or directory

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,11:50 am,Jnesselr notifications@github.com 写道:

I figured it out. I wrote a blog post on the subject. Feel free to close this issue when you've got it all figured out, or ask questions if you need some help.

http://blog.jnesselr.org/2014/09/setting-up-bumblebee-to-run-on-bbb-boot.html

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55072553.

— Reply to this email directly or view it on GitHub.

Jnesselr commented 10 years ago

Run this and paste the results: ls -l /etc/systemd/system/getty.target.wants/

Jiang-hao commented 10 years ago

Results:

total 0 lrwxrwxrwx 1 root root 34 Oct 9 2013 getty@tty1.service -> /lib/systemd/system/getty@.service lrwxrwxrwx 1 root root 38 Sep 10 05:30 getty@tty8.service -> /etc/systemd/system/autologin@.service lrwxrwxrwx 1 root root 47 Apr 15 00:27 serial-getty@ttyGS0.service -> /etc/systemd/system/serial-getty@ttyGS0.service

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

ÔÚ 10 Sep, 2014£¬1:44 pm£¬Jnesselr notifications@github.com дµÀ£º

ls -l /etc/systemd/system/getty.target.wants/

Jnesselr commented 10 years ago

Are you sure that /etc/systemd/system/autologin@.service exists? On Sep 10, 2014 12:46 AM, "Jiang-hao" notifications@github.com wrote:

Results:

total 0 lrwxrwxrwx 1 root root 34 Oct 9 2013 getty@tty1.service -> /lib/systemd/system/getty@.service lrwxrwxrwx 1 root root 38 Sep 10 05:30 getty@tty8.service -> /etc/systemd/system/autologin@.service lrwxrwxrwx 1 root root 47 Apr 15 00:27 serial-getty@ttyGS0.service -> /etc/systemd/system/serial-getty@ttyGS0.service

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

ÔÚ 10 Sep, 2014£¬1:44 pm£¬Jnesselr notifications@github.com дµÀ£º

ls -l /etc/systemd/system/getty.target.wants/

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55073571.

Jiang-hao commented 10 years ago

Yes. But the filename has a "\" before "@", i.e autologin\@.service Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,1:50 pm,Jnesselr notifications@github.com 写道:

Are you sure that /etc/systemd/system/autologin@.service exists? On Sep 10, 2014 12:46 AM, "Jiang-hao" notifications@github.com wrote:

Results:

total 0 lrwxrwxrwx 1 root root 34 Oct 9 2013 getty@tty1.service -> /lib/systemd/system/getty@.service lrwxrwxrwx 1 root root 38 Sep 10 05:30 getty@tty8.service -> /etc/systemd/system/autologin@.service lrwxrwxrwx 1 root root 47 Apr 15 00:27 serial-getty@ttyGS0.service -> /etc/systemd/system/serial-getty@ttyGS0.service

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

ÔÚ 10 Sep, 2014£¬1:44 pm£¬Jnesselr notifications@github.com дµÀ£º

ls -l /etc/systemd/system/getty.target.wants/

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55073571.

— Reply to this email directly or view it on GitHub.

Jiang-hao commented 10 years ago

Does it matter? Thanks! Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,1:50 pm,Jnesselr notifications@github.com 写道:

Are you sure that /etc/systemd/system/autologin@.service exists? On Sep 10, 2014 12:46 AM, "Jiang-hao" notifications@github.com wrote:

Results:

total 0 lrwxrwxrwx 1 root root 34 Oct 9 2013 getty@tty1.service -> /lib/systemd/system/getty@.service lrwxrwxrwx 1 root root 38 Sep 10 05:30 getty@tty8.service -> /etc/systemd/system/autologin@.service lrwxrwxrwx 1 root root 47 Apr 15 00:27 serial-getty@ttyGS0.service -> /etc/systemd/system/serial-getty@ttyGS0.service

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

ÔÚ 10 Sep, 2014£¬1:44 pm£¬Jnesselr notifications@github.com дµÀ£º

ls -l /etc/systemd/system/getty.target.wants/

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55073571.

— Reply to this email directly or view it on GitHub.

Jiang-hao commented 10 years ago

I print the screen for you. It is there. Thanks Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,1:50 pm,Jnesselr notifications@github.com 写道:

Are you sure that /etc/systemd/system/autologin@.service exists? On Sep 10, 2014 12:46 AM, "Jiang-hao" notifications@github.com wrote:

Results:

total 0 lrwxrwxrwx 1 root root 34 Oct 9 2013 getty@tty1.service -> /lib/systemd/system/getty@.service lrwxrwxrwx 1 root root 38 Sep 10 05:30 getty@tty8.service -> /etc/systemd/system/autologin@.service lrwxrwxrwx 1 root root 47 Apr 15 00:27 serial-getty@ttyGS0.service -> /etc/systemd/system/serial-getty@ttyGS0.service

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

ÔÚ 10 Sep, 2014£¬1:44 pm£¬Jnesselr notifications@github.com дµÀ£º

ls -l /etc/systemd/system/getty.target.wants/

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55073571.

— Reply to this email directly or view it on GitHub.

Jnesselr commented 10 years ago

Yes, it does. Delete that file by going: rm /etc/systemd/system/autologin\@.service Then run the cp command again as root without the \ On Sep 10, 2014 12:53 AM, "Jiang-hao" notifications@github.com wrote:

Does it matter? Thanks! Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,1:50 pm,Jnesselr notifications@github.com 写道:

Are you sure that /etc/systemd/system/autologin@.service exists? On Sep 10, 2014 12:46 AM, "Jiang-hao" notifications@github.com wrote:

Results:

total 0 lrwxrwxrwx 1 root root 34 Oct 9 2013 getty@tty1.service -> /lib/systemd/system/getty@.service lrwxrwxrwx 1 root root 38 Sep 10 05:30 getty@tty8.service -> /etc/systemd/system/autologin@.service lrwxrwxrwx 1 root root 47 Apr 15 00:27 serial-getty@ttyGS0.service -> /etc/systemd/system/serial-getty@ttyGS0.service

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

ÔÚ 10 Sep, 2014£¬1:44 pm£¬Jnesselr notifications@github.com дµÀ£º

ls -l /etc/systemd/system/getty.target.wants/

— Reply to this email directly or view it on GitHub < https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55073571>.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55073974.

Jiang-hao commented 10 years ago

Still cannot. Screen shot is:

thank you. Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,1:56 pm,Jnesselr notifications@github.com 写道:

Yes, it does. Delete that file by going: rm /etc/systemd/system/autologin\@.service Then run the cp command again as root without the \ On Sep 10, 2014 12:53 AM, "Jiang-hao" notifications@github.com wrote:

Does it matter? Thanks! Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,1:50 pm,Jnesselr notifications@github.com 写道:

Are you sure that /etc/systemd/system/autologin@.service exists? On Sep 10, 2014 12:46 AM, "Jiang-hao" notifications@github.com wrote:

Results:

total 0 lrwxrwxrwx 1 root root 34 Oct 9 2013 getty@tty1.service -> /lib/systemd/system/getty@.service lrwxrwxrwx 1 root root 38 Sep 10 05:30 getty@tty8.service -> /etc/systemd/system/autologin@.service lrwxrwxrwx 1 root root 47 Apr 15 00:27 serial-getty@ttyGS0.service -> /etc/systemd/system/serial-getty@ttyGS0.service

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

ÔÚ 10 Sep, 2014£¬1:44 pm£¬Jnesselr notifications@github.com дµÀ£º

ls -l /etc/systemd/system/getty.target.wants/

— Reply to this email directly or view it on GitHub < https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55073571>.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55073974.

— Reply to this email directly or view it on GitHub.

Jiang-hao commented 10 years ago

Do we have to modify /etc/systemd/system/getty.target.wants/getty@tty8.service ? Since I noticed that this file does not change. But /etc/systemd/system/autologin@.service changed Thanks Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,1:56 pm,Jnesselr notifications@github.com 写道:

Yes, it does. Delete that file by going: rm /etc/systemd/system/autologin\@.service Then run the cp command again as root without the \ On Sep 10, 2014 12:53 AM, "Jiang-hao" notifications@github.com wrote:

Does it matter? Thanks! Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,1:50 pm,Jnesselr notifications@github.com 写道:

Are you sure that /etc/systemd/system/autologin@.service exists? On Sep 10, 2014 12:46 AM, "Jiang-hao" notifications@github.com wrote:

Results:

total 0 lrwxrwxrwx 1 root root 34 Oct 9 2013 getty@tty1.service -> /lib/systemd/system/getty@.service lrwxrwxrwx 1 root root 38 Sep 10 05:30 getty@tty8.service -> /etc/systemd/system/autologin@.service lrwxrwxrwx 1 root root 47 Apr 15 00:27 serial-getty@ttyGS0.service -> /etc/systemd/system/serial-getty@ttyGS0.service

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

ÔÚ 10 Sep, 2014£¬1:44 pm£¬Jnesselr notifications@github.com дµÀ£º

ls -l /etc/systemd/system/getty.target.wants/

— Reply to this email directly or view it on GitHub < https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55073571>.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55073974.

— Reply to this email directly or view it on GitHub.

Jiang-hao commented 10 years ago

Oh ignore my previous emails. They are all modified. Sorry Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,1:56 pm,Jnesselr notifications@github.com 写道:

Yes, it does. Delete that file by going: rm /etc/systemd/system/autologin\@.service Then run the cp command again as root without the \ On Sep 10, 2014 12:53 AM, "Jiang-hao" notifications@github.com wrote:

Does it matter? Thanks! Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 10 Sep, 2014,1:50 pm,Jnesselr notifications@github.com 写道:

Are you sure that /etc/systemd/system/autologin@.service exists? On Sep 10, 2014 12:46 AM, "Jiang-hao" notifications@github.com wrote:

Results:

total 0 lrwxrwxrwx 1 root root 34 Oct 9 2013 getty@tty1.service -> /lib/systemd/system/getty@.service lrwxrwxrwx 1 root root 38 Sep 10 05:30 getty@tty8.service -> /etc/systemd/system/autologin@.service lrwxrwxrwx 1 root root 47 Apr 15 00:27 serial-getty@ttyGS0.service -> /etc/systemd/system/serial-getty@ttyGS0.service

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

ÔÚ 10 Sep, 2014£¬1:44 pm£¬Jnesselr notifications@github.com дµÀ£º

ls -l /etc/systemd/system/getty.target.wants/

— Reply to this email directly or view it on GitHub < https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55073571>.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55073974.

— Reply to this email directly or view it on GitHub.

Jnesselr commented 10 years ago

Also, you may have an issue with ExecStart logging in root instead of your local user. The two files you mentioned are symbolic links. When one changes, they all change.

Jiang-hao commented 10 years ago

Hi, yesterday, I tried systemctl start getty@tty8.service instead of systemctl enable getty@tty8.service No error occured. But it still cannot start automatically. So I have some problems, and want to confirm with you:

  1. At the very beginning, We have to add some code in profile file. Is it /etc/profile ?
  2. I am using 0.5x dev version of bumblebee. So the file running is app.py, not bumblebee.py. Hence in code:

if [ $(tty) = /dev/tty8 ]; then setterm -blank 0 cd ~/Bumblebee/ screen -dR botqueue python -m bumblebee fi

I changed bumblebee to app. Is it correct? And also, I dont quite know what does screen -dR botqueue do? Thank you very much!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,12:32 am,Jnesselr notifications@github.com 写道:

Also, you may have an issue with ExecStart logging in root instead of your local user. The two files you mentioned are symbolic links. When one changes, they all change.

— Reply to this email directly or view it on GitHub.

Jnesselr commented 10 years ago

No, python -m bumblebee is correct. You should no longer have to worry about what's actually running, since you're running the "bumblebee" module. It doesn't matter where the entry point is.

The screen -dR botqueue basically says create a virtual terminal called botqueue and run the following command in it.

You may have to change "cd ~/Bumblebee/" to "cd ~/bumblebee" depending on what the directory is called.

On Wed, Sep 10, 2014 at 9:23 PM, Jiang-hao notifications@github.com wrote:

Hi, yesterday, I tried systemctl start getty@tty8.service instead of systemctl enable getty@tty8.service No error occured. But it still cannot start automatically. So I have some problems, and want to confirm with you:

  1. At the very beginning, We have to add some code in profile file. Is it /etc/profile ?
  2. I am using 0.5x dev version of bumblebee. So the file running is app.py, not bumblebee.py. Hence in code:

if [ $(tty) = /dev/tty8 ]; then setterm -blank 0 cd ~/Bumblebee/ screen -dR botqueue python -m bumblebee fi

I changed bumblebee to app. Is it correct? And also, I dont quite know what does screen -dR botqueue do? Thank you very much!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,12:32 am,Jnesselr notifications@github.com 写道:

Also, you may have an issue with ExecStart logging in root instead of your local user. The two files you mentioned are symbolic links. When one changes, they all change.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55211507.

Jiang-hao commented 10 years ago

Hi, Thank you very much for your helping. I still cannot get it running automatically. I try to figure what is going wrong. If I find any problems, will contact you later. Again thanks for your helping!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,10:29 am,Jnesselr notifications@github.com 写道:

No, python -m bumblebee is correct. You should no longer have to worry about what's actually running, since you're running the "bumblebee" module. It doesn't matter where the entry point is.

The screen -dR botqueue basically says create a virtual terminal called botqueue and run the following command in it.

You may have to change "cd ~/Bumblebee/" to "cd ~/bumblebee" depending on what the directory is called.

On Wed, Sep 10, 2014 at 9:23 PM, Jiang-hao notifications@github.com wrote:

Hi, yesterday, I tried systemctl start getty@tty8.service instead of systemctl enable getty@tty8.service No error occured. But it still cannot start automatically. So I have some problems, and want to confirm with you:

  1. At the very beginning, We have to add some code in profile file. Is it /etc/profile ?
  2. I am using 0.5x dev version of bumblebee. So the file running is app.py, not bumblebee.py. Hence in code:

if [ $(tty) = /dev/tty8 ]; then setterm -blank 0 cd ~/Bumblebee/ screen -dR botqueue python -m bumblebee fi

I changed bumblebee to app. Is it correct? And also, I dont quite know what does screen -dR botqueue do? Thank you very much!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,12:32 am,Jnesselr notifications@github.com 写道:

Also, you may have an issue with ExecStart logging in root instead of your local user. The two files you mentioned are symbolic links. When one changes, they all change.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55211507.

— Reply to this email directly or view it on GitHub.

Jnesselr commented 10 years ago

Sorry about the confusion, it was a little difficult to figure out, and I'm still looking for easier methods. On Sep 10, 2014 9:46 PM, "Jiang-hao" notifications@github.com wrote:

Hi, Thank you very much for your helping. I still cannot get it running automatically. I try to figure what is going wrong. If I find any problems, will contact you later. Again thanks for your helping!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,10:29 am,Jnesselr notifications@github.com 写道:

No, python -m bumblebee is correct. You should no longer have to worry about what's actually running, since you're running the "bumblebee" module. It doesn't matter where the entry point is.

The screen -dR botqueue basically says create a virtual terminal called botqueue and run the following command in it.

You may have to change "cd ~/Bumblebee/" to "cd ~/bumblebee" depending on what the directory is called.

On Wed, Sep 10, 2014 at 9:23 PM, Jiang-hao notifications@github.com wrote:

Hi, yesterday, I tried systemctl start getty@tty8.service instead of systemctl enable getty@tty8.service No error occured. But it still cannot start automatically. So I have some problems, and want to confirm with you:

  1. At the very beginning, We have to add some code in profile file. Is it /etc/profile ?
  2. I am using 0.5x dev version of bumblebee. So the file running is app.py, not bumblebee.py. Hence in code:

if [ $(tty) = /dev/tty8 ]; then setterm -blank 0 cd ~/Bumblebee/ screen -dR botqueue python -m bumblebee fi

I changed bumblebee to app. Is it correct? And also, I dont quite know what does screen -dR botqueue do? Thank you very much!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,12:32 am,Jnesselr notifications@github.com 写道:

Also, you may have an issue with ExecStart logging in root instead of your local user. The two files you mentioned are symbolic links. When one changes, they all change.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub < https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55211507>.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55212787.

Jiang-hao commented 10 years ago

It is quite helpful! I think I maybe make some mistakes in somewhere. Try to figure it out. Thank you! Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,10:47 am,Jnesselr notifications@github.com 写道:

Sorry about the confusion, it was a little difficult to figure out, and I'm still looking for easier methods. On Sep 10, 2014 9:46 PM, "Jiang-hao" notifications@github.com wrote:

Hi, Thank you very much for your helping. I still cannot get it running automatically. I try to figure what is going wrong. If I find any problems, will contact you later. Again thanks for your helping!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,10:29 am,Jnesselr notifications@github.com 写道:

No, python -m bumblebee is correct. You should no longer have to worry about what's actually running, since you're running the "bumblebee" module. It doesn't matter where the entry point is.

The screen -dR botqueue basically says create a virtual terminal called botqueue and run the following command in it.

You may have to change "cd ~/Bumblebee/" to "cd ~/bumblebee" depending on what the directory is called.

On Wed, Sep 10, 2014 at 9:23 PM, Jiang-hao notifications@github.com wrote:

Hi, yesterday, I tried systemctl start getty@tty8.service instead of systemctl enable getty@tty8.service No error occured. But it still cannot start automatically. So I have some problems, and want to confirm with you:

  1. At the very beginning, We have to add some code in profile file. Is it /etc/profile ?
  2. I am using 0.5x dev version of bumblebee. So the file running is app.py, not bumblebee.py. Hence in code:

if [ $(tty) = /dev/tty8 ]; then setterm -blank 0 cd ~/Bumblebee/ screen -dR botqueue python -m bumblebee fi

I changed bumblebee to app. Is it correct? And also, I dont quite know what does screen -dR botqueue do? Thank you very much!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,12:32 am,Jnesselr notifications@github.com 写道:

Also, you may have an issue with ExecStart logging in root instead of your local user. The two files you mentioned are symbolic links. When one changes, they all change.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub < https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55211507>.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55212787.

— Reply to this email directly or view it on GitHub.

Jiang-hao commented 10 years ago

Hi,

I got a problem again and want to consult you. Currently, I can get bumblebee running when BBB boots. But on the BotQueue, my bot cannot grab jobs as if the app were not running. Basically, I create a file in /etc/init.d, called bumblebee. I wrote "Python ~/bumblebee/app.py". And then I create a symbolic link in /etc/rc.3 linking to the file which is in /etc/init.d. Finally, when BBB boots, I type: ps aux. it shows "Python ~/bumblebee/app.py" in running processes list. However, on the website my bot cannot grab jobs. Do you have any suggestions? Do I have to run it in daemon mode? Thank you very much.

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage:sg.linkedin.com/pub/hao-jiang/6a/40/b57

On 2014年9月11日, at 10:47, Jnesselr notifications@github.com wrote:

Sorry about the confusion, it was a little difficult to figure out, and I'm still looking for easier methods. On Sep 10, 2014 9:46 PM, "Jiang-hao" notifications@github.com wrote:

Hi, Thank you very much for your helping. I still cannot get it running automatically. I try to figure what is going wrong. If I find any problems, will contact you later. Again thanks for your helping!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,10:29 am,Jnesselr notifications@github.com 写道:

No, python -m bumblebee is correct. You should no longer have to worry about what's actually running, since you're running the "bumblebee" module. It doesn't matter where the entry point is.

The screen -dR botqueue basically says create a virtual terminal called botqueue and run the following command in it.

You may have to change "cd ~/Bumblebee/" to "cd ~/bumblebee" depending on what the directory is called.

On Wed, Sep 10, 2014 at 9:23 PM, Jiang-hao notifications@github.com wrote:

Hi, yesterday, I tried systemctl start getty@tty8.service instead of systemctl enable getty@tty8.service No error occured. But it still cannot start automatically. So I have some problems, and want to confirm with you:

  1. At the very beginning, We have to add some code in profile file. Is it /etc/profile ?
  2. I am using 0.5x dev version of bumblebee. So the file running is app.py, not bumblebee.py. Hence in code:

if [ $(tty) = /dev/tty8 ]; then setterm -blank 0 cd ~/Bumblebee/ screen -dR botqueue python -m bumblebee fi

I changed bumblebee to app. Is it correct? And also, I dont quite know what does screen -dR botqueue do? Thank you very much!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,12:32 am,Jnesselr notifications@github.com 写道:

Also, you may have an issue with ExecStart logging in root instead of your local user. The two files you mentioned are symbolic links. When one changes, they all change.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub < https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55211507>.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55212787.

— Reply to this email directly or view it on GitHub.

Jnesselr commented 10 years ago

Do not run the app.py directly. Instead, do this: python -m bumblebee

As to why it can't grab a job, I'd need to see the info.log. On Sep 14, 2014 7:17 PM, "Jiang-hao" notifications@github.com wrote:

Hi,

I got a problem again and want to consult you. Currently, I can get bumblebee running when BBB boots. But on the BotQueue, my bot cannot grab jobs as if the app were not running. Basically, I create a file in /etc/init.d, called bumblebee. I wrote "Python ~/bumblebee/app.py". And then I create a symbolic link in /etc/rc.3 linking to the file which is in /etc/init.d. Finally, when BBB boots, I type: ps aux. it shows "Python ~/bumblebee/app.py" in running processes list. However, on the website my bot cannot grab jobs. Do you have any suggestions? Do I have to run it in daemon mode? Thank you very much.

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage:sg.linkedin.com/pub/hao-jiang/6a/40/b57

On 2014年9月11日, at 10:47, Jnesselr notifications@github.com wrote:

Sorry about the confusion, it was a little difficult to figure out, and I'm still looking for easier methods. On Sep 10, 2014 9:46 PM, "Jiang-hao" notifications@github.com wrote:

Hi, Thank you very much for your helping. I still cannot get it running automatically. I try to figure what is going wrong. If I find any problems, will contact you later. Again thanks for your helping!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,10:29 am,Jnesselr notifications@github.com 写道:

No, python -m bumblebee is correct. You should no longer have to worry about what's actually running, since you're running the "bumblebee" module. It doesn't matter where the entry point is.

The screen -dR botqueue basically says create a virtual terminal called botqueue and run the following command in it.

You may have to change "cd ~/Bumblebee/" to "cd ~/bumblebee" depending on what the directory is called.

On Wed, Sep 10, 2014 at 9:23 PM, Jiang-hao notifications@github.com

wrote:

Hi, yesterday, I tried systemctl start getty@tty8.service instead of systemctl enable getty@tty8.service No error occured. But it still cannot start automatically. So I have some problems, and want to confirm with you:

  1. At the very beginning, We have to add some code in profile file. Is it /etc/profile ?
  2. I am using 0.5x dev version of bumblebee. So the file running is app.py, not bumblebee.py. Hence in code:

if [ $(tty) = /dev/tty8 ]; then setterm -blank 0 cd ~/Bumblebee/ screen -dR botqueue python -m bumblebee fi

I changed bumblebee to app. Is it correct? And also, I dont quite know what does screen -dR botqueue do? Thank you very much!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,12:32 am,Jnesselr notifications@github.com 写道:

Also, you may have an issue with ExecStart logging in root instead of your local user. The two files you mentioned are symbolic links. When one changes, they all change.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub <

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55211507>.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub < https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55212787>.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55544349.

Jiang-hao commented 10 years ago

Hello,

I am trying to run the bumblebee module, but I encountered this problem:

It told me cannot import name main.

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 15 Sep, 2014,9:38 am,Jnesselr notifications@github.com 写道:

Do not run the app.py directly. Instead, do this: python -m bumblebee

As to why it can't grab a job, I'd need to see the info.log. On Sep 14, 2014 7:17 PM, "Jiang-hao" notifications@github.com wrote:

Hi,

I got a problem again and want to consult you. Currently, I can get bumblebee running when BBB boots. But on the BotQueue, my bot cannot grab jobs as if the app were not running. Basically, I create a file in /etc/init.d, called bumblebee. I wrote "Python ~/bumblebee/app.py". And then I create a symbolic link in /etc/rc.3 linking to the file which is in /etc/init.d. Finally, when BBB boots, I type: ps aux. it shows "Python ~/bumblebee/app.py" in running processes list. However, on the website my bot cannot grab jobs. Do you have any suggestions? Do I have to run it in daemon mode? Thank you very much.

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage:sg.linkedin.com/pub/hao-jiang/6a/40/b57

On 2014年9月11日, at 10:47, Jnesselr notifications@github.com wrote:

Sorry about the confusion, it was a little difficult to figure out, and I'm still looking for easier methods. On Sep 10, 2014 9:46 PM, "Jiang-hao" notifications@github.com wrote:

Hi, Thank you very much for your helping. I still cannot get it running automatically. I try to figure what is going wrong. If I find any problems, will contact you later. Again thanks for your helping!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,10:29 am,Jnesselr notifications@github.com 写道:

No, python -m bumblebee is correct. You should no longer have to worry about what's actually running, since you're running the "bumblebee" module. It doesn't matter where the entry point is.

The screen -dR botqueue basically says create a virtual terminal called botqueue and run the following command in it.

You may have to change "cd ~/Bumblebee/" to "cd ~/bumblebee" depending on what the directory is called.

On Wed, Sep 10, 2014 at 9:23 PM, Jiang-hao notifications@github.com

wrote:

Hi, yesterday, I tried systemctl start getty@tty8.service instead of systemctl enable getty@tty8.service No error occured. But it still cannot start automatically. So I have some problems, and want to confirm with you:

  1. At the very beginning, We have to add some code in profile file. Is it /etc/profile ?
  2. I am using 0.5x dev version of bumblebee. So the file running is app.py, not bumblebee.py. Hence in code:

if [ $(tty) = /dev/tty8 ]; then setterm -blank 0 cd ~/Bumblebee/ screen -dR botqueue python -m bumblebee fi

I changed bumblebee to app. Is it correct? And also, I dont quite know what does screen -dR botqueue do? Thank you very much!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,12:32 am,Jnesselr notifications@github.com 写道:

Also, you may have an issue with ExecStart logging in root instead of your local user. The two files you mentioned are symbolic links. When one changes, they all change.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub <

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55211507>.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub < https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55212787>.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55544349.

— Reply to this email directly or view it on GitHub.

Jnesselr commented 10 years ago

Can you give the full log that it says?

On Sun, Sep 14, 2014 at 22:28 PM, Jiang-hao notifications@github.com wrote:

Hello,

I am trying to run the bumblebee module, but I encountered this problem:

It told me cannot import name main.

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 15 Sep, 2014,9:38 am,Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

Do not run the app.py directly. Instead, do this:

python -m bumblebee

As to why it can't grab a job, I'd need to see the info.log.

On Sep 14, 2014 7:17 PM, "Jiang-hao" <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Hi,

I got a problem again and want to consult you.

Currently, I can get bumblebee running when BBB boots. But on the

BotQueue, my bot cannot grab jobs as if the app were not running.

Basically, I create a file in /etc/init.d, called bumblebee. I wrote

"Python ~/bumblebee/app.py". And then I create a symbolic link in /etc/rc.3

linking to the file which is in /etc/init.d.

Finally, when BBB boots, I type: ps aux. it shows "Python

~/bumblebee/app.py" in running processes list. However, on the website my

bot cannot grab jobs.

Do you have any suggestions? Do I have to run it in daemon mode?

Thank you very much.

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage:sg.linkedin.com/pub/hao-jiang/6a/40/b57

On 2014年9月11日, at 10:47, Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Sorry about the confusion, it was a little difficult to figure out, and

I'm

still looking for easier methods.

On Sep 10, 2014 9:46 PM, "Jiang-hao" <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Hi,

Thank you very much for your helping.

I still cannot get it running automatically. I try to figure what is

going

wrong. If I find any problems, will contact you later.

Again thanks for your helping!

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,10:29 am,Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

No, python -m bumblebee is correct. You should no longer have to

worry

about what's actually running, since you're running the "bumblebee"

module.

It doesn't matter where the entry point is.

The screen -dR botqueue basically says create a virtual terminal

called

botqueue and run the following command in it.

You may have to change "cd ~/Bumblebee/" to "cd ~/bumblebee"

depending

on

what the directory is called.

On Wed, Sep 10, 2014 at 9:23 PM, Jiang-hao < notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');>

wrote:

Hi,

yesterday, I tried

systemctl start getty@tty8.service instead of systemctl enable

getty@tty8.service

No error occured.

But it still cannot start automatically. So I have some problems,

and

want

to confirm with you:

  1. At the very beginning, We have to add some code in profile

file. Is

it

/etc/profile ?

  1. I am using 0.5x dev version of bumblebee. So the file running

is

app.py, not bumblebee.py. Hence in code:

if [ $(tty) = /dev/tty8 ]; then

setterm -blank 0

cd ~/Bumblebee/

screen -dR botqueue python -m bumblebee

fi

I changed bumblebee to app. Is it correct? And also, I dont quite

know

what does screen -dR botqueue do?

Thank you very much!

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,12:32 am,Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

Also, you may have an issue with ExecStart logging in root

instead

of

your local user.

The two files you mentioned are symbolic links. When one

changes,

they

all change.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

<

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55211507>.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

<

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55212787>.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55544349.

Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55549954.

Jiang-hao commented 10 years ago

Hi Ok. No problem. Please wait for awhile.

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage:sg.linkedin.com/pub/hao-jiang/6a/40/b57

On 2014年9月16日, at 02:11, Jnesselr notifications@github.com wrote:

Can you give the full log that it says?

On Sun, Sep 14, 2014 at 22:28 PM, Jiang-hao notifications@github.com wrote:

Hello,

I am trying to run the bumblebee module, but I encountered this problem:

It told me cannot import name main.

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 15 Sep, 2014,9:38 am,Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

Do not run the app.py directly. Instead, do this:

python -m bumblebee

As to why it can't grab a job, I'd need to see the info.log.

On Sep 14, 2014 7:17 PM, "Jiang-hao" <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Hi,

I got a problem again and want to consult you.

Currently, I can get bumblebee running when BBB boots. But on the

BotQueue, my bot cannot grab jobs as if the app were not running.

Basically, I create a file in /etc/init.d, called bumblebee. I wrote

"Python ~/bumblebee/app.py". And then I create a symbolic link in /etc/rc.3

linking to the file which is in /etc/init.d.

Finally, when BBB boots, I type: ps aux. it shows "Python

~/bumblebee/app.py" in running processes list. However, on the website my

bot cannot grab jobs.

Do you have any suggestions? Do I have to run it in daemon mode?

Thank you very much.

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage:sg.linkedin.com/pub/hao-jiang/6a/40/b57

On 2014年9月11日, at 10:47, Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Sorry about the confusion, it was a little difficult to figure out, and

I'm

still looking for easier methods.

On Sep 10, 2014 9:46 PM, "Jiang-hao" <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Hi,

Thank you very much for your helping.

I still cannot get it running automatically. I try to figure what is

going

wrong. If I find any problems, will contact you later.

Again thanks for your helping!

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,10:29 am,Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

No, python -m bumblebee is correct. You should no longer have to

worry

about what's actually running, since you're running the "bumblebee"

module.

It doesn't matter where the entry point is.

The screen -dR botqueue basically says create a virtual terminal

called

botqueue and run the following command in it.

You may have to change "cd ~/Bumblebee/" to "cd ~/bumblebee"

depending

on

what the directory is called.

On Wed, Sep 10, 2014 at 9:23 PM, Jiang-hao < notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');>

wrote:

Hi,

yesterday, I tried

systemctl start getty@tty8.service instead of systemctl enable

getty@tty8.service

No error occured.

But it still cannot start automatically. So I have some problems,

and

want

to confirm with you:

  1. At the very beginning, We have to add some code in profile

file. Is

it

/etc/profile ?

  1. I am using 0.5x dev version of bumblebee. So the file running

is

app.py, not bumblebee.py. Hence in code:

if [ $(tty) = /dev/tty8 ]; then

setterm -blank 0

cd ~/Bumblebee/

screen -dR botqueue python -m bumblebee

fi

I changed bumblebee to app. Is it correct? And also, I dont quite

know

what does screen -dR botqueue do?

Thank you very much!

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,12:32 am,Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

Also, you may have an issue with ExecStart logging in root

instead

of

your local user.

The two files you mentioned are symbolic links. When one

changes,

they

all change.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

<

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55211507>.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

<

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55212787>.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55544349.

Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55549954. — Reply to this email directly or view it on GitHub.

Jiang-hao commented 10 years ago

Hi,

In /etc/init.d/bumblebee, if I run "cd ~/bamblebee; /usr/bin python -m bumblebee", the error is:

Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main "main", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/root/bamblebaa/bumblebee/main.py", line 3, in from .app import main ImportError: cannot import name main

bumblebee file is in the directory ~/bamblebaa. So I go to that directory, and then call bumblebee module. However, it says in main.py, " from .app import main" cannot be imported.

I dont know why

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 16 Sep, 2014,2:11 am,Jnesselr notifications@github.com 写道:

Can you give the full log that it says?

On Sun, Sep 14, 2014 at 22:28 PM, Jiang-hao notifications@github.com wrote:

Hello,

I am trying to run the bumblebee module, but I encountered this problem:

It told me cannot import name main.

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 15 Sep, 2014,9:38 am,Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

Do not run the app.py directly. Instead, do this:

python -m bumblebee

As to why it can't grab a job, I'd need to see the info.log.

On Sep 14, 2014 7:17 PM, "Jiang-hao" <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Hi,

I got a problem again and want to consult you.

Currently, I can get bumblebee running when BBB boots. But on the

BotQueue, my bot cannot grab jobs as if the app were not running.

Basically, I create a file in /etc/init.d, called bumblebee. I wrote

"Python ~/bumblebee/app.py". And then I create a symbolic link in /etc/rc.3

linking to the file which is in /etc/init.d.

Finally, when BBB boots, I type: ps aux. it shows "Python

~/bumblebee/app.py" in running processes list. However, on the website my

bot cannot grab jobs.

Do you have any suggestions? Do I have to run it in daemon mode?

Thank you very much.

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage:sg.linkedin.com/pub/hao-jiang/6a/40/b57

On 2014年9月11日, at 10:47, Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Sorry about the confusion, it was a little difficult to figure out, and

I'm

still looking for easier methods.

On Sep 10, 2014 9:46 PM, "Jiang-hao" <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Hi,

Thank you very much for your helping.

I still cannot get it running automatically. I try to figure what is

going

wrong. If I find any problems, will contact you later.

Again thanks for your helping!

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,10:29 am,Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

No, python -m bumblebee is correct. You should no longer have to

worry

about what's actually running, since you're running the "bumblebee"

module.

It doesn't matter where the entry point is.

The screen -dR botqueue basically says create a virtual terminal

called

botqueue and run the following command in it.

You may have to change "cd ~/Bumblebee/" to "cd ~/bumblebee"

depending

on

what the directory is called.

On Wed, Sep 10, 2014 at 9:23 PM, Jiang-hao < notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');>

wrote:

Hi,

yesterday, I tried

systemctl start getty@tty8.service instead of systemctl enable

getty@tty8.service

No error occured.

But it still cannot start automatically. So I have some problems,

and

want

to confirm with you:

  1. At the very beginning, We have to add some code in profile

file. Is

it

/etc/profile ?

  1. I am using 0.5x dev version of bumblebee. So the file running

is

app.py, not bumblebee.py. Hence in code:

if [ $(tty) = /dev/tty8 ]; then

setterm -blank 0

cd ~/Bumblebee/

screen -dR botqueue python -m bumblebee

fi

I changed bumblebee to app. Is it correct? And also, I dont quite

know

what does screen -dR botqueue do?

Thank you very much!

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,12:32 am,Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

Also, you may have an issue with ExecStart logging in root

instead

of

your local user.

The two files you mentioned are symbolic links. When one

changes,

they

all change.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

<

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55211507>.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

<

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55212787>.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55544349.

Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55549954. — Reply to this email directly or view it on GitHub.

Jiang-hao commented 10 years ago

Hi Jnesselr,

Finally, it works! I have solved the Import problem, and followed your blog which about running bumblebee automatically. Finally I can run bumblebee when BBB boots. I have been bothering you for these days. Sorry for that! And Thank you so much for your useful help! You are a quite kind person! Thank you so much!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 16 Sep, 2014,2:11 am,Jnesselr notifications@github.com 写道:

Can you give the full log that it says?

On Sun, Sep 14, 2014 at 22:28 PM, Jiang-hao notifications@github.com wrote:

Hello,

I am trying to run the bumblebee module, but I encountered this problem:

It told me cannot import name main.

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 15 Sep, 2014,9:38 am,Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

Do not run the app.py directly. Instead, do this:

python -m bumblebee

As to why it can't grab a job, I'd need to see the info.log.

On Sep 14, 2014 7:17 PM, "Jiang-hao" <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Hi,

I got a problem again and want to consult you.

Currently, I can get bumblebee running when BBB boots. But on the

BotQueue, my bot cannot grab jobs as if the app were not running.

Basically, I create a file in /etc/init.d, called bumblebee. I wrote

"Python ~/bumblebee/app.py". And then I create a symbolic link in /etc/rc.3

linking to the file which is in /etc/init.d.

Finally, when BBB boots, I type: ps aux. it shows "Python

~/bumblebee/app.py" in running processes list. However, on the website my

bot cannot grab jobs.

Do you have any suggestions? Do I have to run it in daemon mode?

Thank you very much.

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage:sg.linkedin.com/pub/hao-jiang/6a/40/b57

On 2014年9月11日, at 10:47, Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Sorry about the confusion, it was a little difficult to figure out, and

I'm

still looking for easier methods.

On Sep 10, 2014 9:46 PM, "Jiang-hao" <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Hi,

Thank you very much for your helping.

I still cannot get it running automatically. I try to figure what is

going

wrong. If I find any problems, will contact you later.

Again thanks for your helping!

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,10:29 am,Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

No, python -m bumblebee is correct. You should no longer have to

worry

about what's actually running, since you're running the "bumblebee"

module.

It doesn't matter where the entry point is.

The screen -dR botqueue basically says create a virtual terminal

called

botqueue and run the following command in it.

You may have to change "cd ~/Bumblebee/" to "cd ~/bumblebee"

depending

on

what the directory is called.

On Wed, Sep 10, 2014 at 9:23 PM, Jiang-hao < notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');>

wrote:

Hi,

yesterday, I tried

systemctl start getty@tty8.service instead of systemctl enable

getty@tty8.service

No error occured.

But it still cannot start automatically. So I have some problems,

and

want

to confirm with you:

  1. At the very beginning, We have to add some code in profile

file. Is

it

/etc/profile ?

  1. I am using 0.5x dev version of bumblebee. So the file running

is

app.py, not bumblebee.py. Hence in code:

if [ $(tty) = /dev/tty8 ]; then

setterm -blank 0

cd ~/Bumblebee/

screen -dR botqueue python -m bumblebee

fi

I changed bumblebee to app. Is it correct? And also, I dont quite

know

what does screen -dR botqueue do?

Thank you very much!

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,12:32 am,Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

Also, you may have an issue with ExecStart logging in root

instead

of

your local user.

The two files you mentioned are symbolic links. When one

changes,

they

all change.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

<

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55211507>.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

<

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55212787>.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55544349.

Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55549954. — Reply to this email directly or view it on GitHub.

Jnesselr commented 10 years ago

Yay! I'm glad to see it worked out okay! Please, let me know if you have any other issues. For now I'll close this issue. On Sep 15, 2014 11:23 PM, "Jiang-hao" notifications@github.com wrote:

Hi Jnesselr,

Finally, it works! I have solved the Import problem, and followed your blog which about running bumblebee automatically. Finally I can run bumblebee when BBB boots. I have been bothering you for these days. Sorry for that! And Thank you so much for your useful help! You are a quite kind person! Thank you so much!

Best Regards, Jiang hao

National University of Singapore Computer Science, year 3 HP: 8418 7066 Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 16 Sep, 2014,2:11 am,Jnesselr notifications@github.com 写道:

Can you give the full log that it says?

On Sun, Sep 14, 2014 at 22:28 PM, Jiang-hao notifications@github.com wrote:

Hello,

I am trying to run the bumblebee module, but I encountered this problem:

It told me cannot import name main.

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 15 Sep, 2014,9:38 am,Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

Do not run the app.py directly. Instead, do this:

python -m bumblebee

As to why it can't grab a job, I'd need to see the info.log.

On Sep 14, 2014 7:17 PM, "Jiang-hao" <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Hi,

I got a problem again and want to consult you.

Currently, I can get bumblebee running when BBB boots. But on the

BotQueue, my bot cannot grab jobs as if the app were not running.

Basically, I create a file in /etc/init.d, called bumblebee. I wrote

"Python ~/bumblebee/app.py". And then I create a symbolic link in /etc/rc.3

linking to the file which is in /etc/init.d.

Finally, when BBB boots, I type: ps aux. it shows "Python

~/bumblebee/app.py" in running processes list. However, on the website my

bot cannot grab jobs.

Do you have any suggestions? Do I have to run it in daemon mode?

Thank you very much.

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage:sg.linkedin.com/pub/hao-jiang/6a/40/b57

On 2014年9月11日, at 10:47, Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Sorry about the confusion, it was a little difficult to figure out, and

I'm

still looking for easier methods.

On Sep 10, 2014 9:46 PM, "Jiang-hao" <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Hi,

Thank you very much for your helping.

I still cannot get it running automatically. I try to figure what is

going

wrong. If I find any problems, will contact you later.

Again thanks for your helping!

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,10:29 am,Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

No, python -m bumblebee is correct. You should no longer have to

worry

about what's actually running, since you're running the "bumblebee"

module.

It doesn't matter where the entry point is.

The screen -dR botqueue basically says create a virtual terminal

called

botqueue and run the following command in it.

You may have to change "cd ~/Bumblebee/" to "cd ~/bumblebee"

depending

on

what the directory is called.

On Wed, Sep 10, 2014 at 9:23 PM, Jiang-hao < notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');>

wrote:

Hi,

yesterday, I tried

systemctl start getty@tty8.service instead of systemctl enable

getty@tty8.service

No error occured.

But it still cannot start automatically. So I have some problems,

and

want

to confirm with you:

  1. At the very beginning, We have to add some code in profile

file. Is

it

/etc/profile ?

  1. I am using 0.5x dev version of bumblebee. So the file running

is

app.py, not bumblebee.py. Hence in code:

if [ $(tty) = /dev/tty8 ]; then

setterm -blank 0

cd ~/Bumblebee/

screen -dR botqueue python -m bumblebee

fi

I changed bumblebee to app. Is it correct? And also, I dont quite

know

what does screen -dR botqueue do?

Thank you very much!

Best Regards,

Jiang hao

National University of Singapore

Computer Science, year 3

HP: 8418 7066

Linkedin webpage: sg.linkedin.com/pub/hao-jiang/6a/40/b57

在 11 Sep, 2014,12:32 am,Jnesselr <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

Also, you may have an issue with ExecStart logging in root

instead

of

your local user.

The two files you mentioned are symbolic links. When one

changes,

they

all change.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

<

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55211507>.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

<

https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55212787>.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub

< https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55544349>.

Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55549954.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Hoektronics/bumblebee/issues/4#issuecomment-55693313.