Saturday, March 21, 2020

Fight Coronavirus with BOINC Rosetta@Home

Rosetta@Home is fighting Corona Virus with protein folding research.

Here is how to help:

1 download client for your computer:

https://boinc.berkeley.edu/download.php

If running windows just follow the gui for the screen saver, if linux manual follow step 2b, for auto 2a.

2a
#install it
apt-get install boinc-manager boinc-client
#start it at boot
update-rc.d boinc-client enable
#start it as a service
service boinc-client start
#start gui manager
boincmgr
click to bar -> tools -> add project, add your account username/password registered via the boincmgr or on the projects website

I add rosetta@home and gpugrid


2b

Sign up for account at https://boinc.bakerlab.org/rosetta/

3

Get your account key
https://boinc.bakerlab.org/rosetta/weak_auth.php

Its the string inside  <authenticator>YOURKEYHERE</authenticator>


4
Run boinc client with the account key attached to rosetta, to do it from command line run this:

boinc -attach_project  https://boinc.bakerlab.org/rosetta/ YOURKEYHERE

There are modes of BOINC for windows where it can run as a screensaver.
https://boinc.berkeley.edu/wiki/BOINC_screensaver

5
Check your progress here, it can take hours to update once it starts running
https://boinc.bakerlab.org/rosetta/home.php

If you arn't sure its running, check your CPU usage, when running right it should use 100% CPU on all cores so make sure your fan works well.



Sunday, October 20, 2019

TP-LINK TL-WR802N OpenWrt

I started using these instructions:
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e6f047fa368ca9c90691b93aa5e03068fe1f4178
However for the V4 I have they are wrong, the ip is actually 192.168.0.66 for the tftpd.
Also the filename tested that works is wr802nv1_tp_recovery.bin not tp_recovery.bin

Thanks to this person for the mentioning ip and filename changes:
http://wr802n.blogspot.com/2018/04/dd-wrt-install-on-tp-link-tl-wr802n.html

Tested with Ubuntu18.04 atftp server.

apt-get install atftpd
cp wr802nv1_tp_recovery.bin to /srv/tftpd
chown -R nobody /srv/tftpd
sudo atftpd -v --user nobody /srv/tftp --daemon --listen-local
tftp to 192.168.0.66 and issue a get wr802nv1_tp_recovery.bin to confirm tftp is operational
reset router with ethernet jack plugged into tftpd server, wait for it to download the firmware

wait for device to reboot, get dhcp from newly running openwrt
ssh root@192.168.1.1
Gets you OpenWrt 4.14.149 2019

opkg update doesn't work because I am connected over the thernet port and the wifi port isn't configured with internet

try to config wifi client to get inet
https://openwrt.org/docs/guide-user/network/wifi/connect_client_wifi
uci set wireless.@wifi-device[0].disabled="0"
uci commit wireless
wifi

confirm iw dev wlan0 scan returns list of aps and wifi is enabled

uci get network.wwan returns blank so set it

uci set network.wwan=wlan0
lets try this
http://h-wrt.com/en/mini-how-to/wifi_openwrt

editing the /etc/config/wireless and /etc/init.d/network got us wlan0 internet access!
now opkg update worked

opkg install luci works now!