How to Setup up a Bot on Android

in #android7 years ago (edited)

BotsOnAndroid.png

In order for this to work, you need to have a rooted Android smartphone. It is fairly easy to root an Android phone and it varies from device to device so you'll have to a quick search.

I used an old Android phone I had laying around and figured I would put it to use and try it just for fun. You can always use a VPS or even a Raspberry Pi but here is another alternative you could try without having to use a lot of power.

Once you're rooted, you'll need 3 apps:

  • Linux Deploy
  • BusyBox
  • VNC Viewer

First, you'll need to install BusyBox. This is usually required for many rooted apps to work.

Once you installed BusyBox, install Linux Deploy and launch the app and select the download button.

BotsOnAndroid2.png

This will bring up the options menu and you can leave most of these settings default except to select which Linux distribution you would like. You can choose from Ubuntu to Kali Linux and more.

Screenshot_20170715-202900.png

At the bottom, you can choose which Desktop environment you like. Make sure the "Enable" is checked to use the GUI and you can change the GUI resolution under "GUI Settings" and figure out what resolution works best for your phone.

Set your username to "root" and change the password to what you would like it to be.

BotsOnAndroid3.png

Now click the menu with the three dots and choose "install". This will take some time to install since it will be installing the entire Linux distro on your device. After the installation is complete, hit the "start" button to start up your Linux distro.

BotsOnAndroid5.png

BotsOnAndroid4.png

BotsOnAndroid6.png

Now you want to launch VNC Viewer in order to actually view the GUI. Setup a connection and set the address to localhost:5900. Connect and enter your password you set it to earlier.

Now you're running Linux on Android! From here, go to "Applications" at the top left and under "System Apps", you can launch a terminal window and from here, you can install whatever apps you normally use on Linux but the main one you want to make sure to install is Firefox browser and nano.

  • apt-get install iceweasel - For Firefox
  • apt-get install nano - For nano command line text editor

Here are some other apps you can install if you would like.(Optional)

  • apt-get install libreoffice – For LibreOffice
  • apt-get install iceweasel – For Firefox
  • apt-get install idle – For Python Idle
  • apt-get install gimp – For GIMP
  • apt-get install nautilus-dropbox – For DropBox

After you installed Firefox, visit @inertia's dr.phil bot:
https://steemit.com/radiator/@inertia/drphil-rb-voting-bot-the-micromanagement-update or on of his many other bots he developed. I haven't tried any other bot's with this setup but it should work with any of his bots.

This is the same instructions on the drphil post. In the terminal, type:

sudo apt-get install ruby-full git openssl libssl1.0.0 libssl-dev
gem install bundler
git clone https://gist.github.com/61bcc2b821aa5acb24f7fc88921950c7.git drphil
cd drphil
bundle install



Edit the config file:

sudo nano drphil.yml

voting_rules:
  # mode: drphil - picks one random voter for each post
  # mode: winfrey - cycles all voters on each post
  mode: drphil
  vote_weight: 100.00 %
  favorites_vote_weight: 100.00 %
  following_vote_weight: 100.00 %
  followers_vote_weight: 100.00 %
  enable_comments: false
  only_first_posts: false
  only_fully_powered_up: false
  min_wait: 18
  max_wait: 30
  min_rep: 25.0
  max_rep: 99.9
  min_voting_power: 25.00 %
  # unique_author: 1440
  # max_votes_per_post: 10
  
voters:
  - social 5JrvPrQeBBvCRdjv29iDvkwn3EQYZ9jqfAHzrCyUvfbEbRkrYFC
  - bad.account 5XXXBadWifXXXdjv29iDvkwn3EQYZ9jqfAHzrCyUvfbEbRkrYFC
  - YourSteemAccout YourPrivatePostingKey

favorite_accounts: inertia banjo
skip_accounts: leeroy.jenkins the.masses danlarimer ned-reddit-login
skip_tags: nsfw test 
# only_tags: steemit
flag_signals: cheetah steemcleaners
vote_signals: 

chain_options:
  chain: steem
  url: https://steemd.steemit.com

Don't forget to adjust your voting percentages and add your favorite accounts. The default is set to vote at 100% until you're down to 25% and it will begin to recharge your voting power.



After you're done editing the config file:

ctrl + x
y
enter

You can start the drphil bot.

ruby drphil.rb

You should see "Success" when processing a vote transaction and you know you have everything configured correctly and the bot is running as it should.

BotsOnAndroid7.png

Screenshot_20170715-190500.png

Now you're running a bot on Android!


Image Sources: 1,2
Installation Source


Thank you for taking the time to read my post.
Feel free to follow and find me in Smart Media Group on Discord.

Follow SMG on other social media platforms and let's Tokenize The Web!

Twitter: @the_smartmedia

Instagram: @the_smartmedia

Sort:  

Oh man I am going to try this out even though it looks complicated thanks.

Well, it's not too complicated. It's a lot of copy and paste. You can check out the VNC Viewer tips on the apps on how to copy and paste and should be able to get it up and running. Feel free to message me if you need help :)

Any update since?

There must be an easier way than this!? Are there no native Android up vote bots? Maybe it's time to port FOSSbot ... 🤖

lol well, I just did this for fun. I'm sure there could be a native Android app to do it but I don't think it would be practical since you would always need to make sure the battery is charged to keep it running 24/7. It's not like using a local machine or VPS but you can always keep it plugged in on the charger. Then again that would kill the battery from overcharging over time. Hey if you can port FOSSbot then sure why not right? :P

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by bitcoinparadise from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, and someguy123. The goal is to help Steemit grow by supporting Minnows and creating a social network. Please find us in the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you like what we're doing please upvote this comment so we can continue to build the community account that's supporting all members.

Cool but why would I want to run a bot?

Depends. Some people don't have time to read every post from their favorite bloggers and could have the bot as a bookmarker and read posts later or to earn more curation rewards. There are many different bots also so there are many reasons to run a bot. You don't have to but there are use cases for it.

Oh but that's a good idea! I'd write a summary bot though, too much to read!

Thanks for share are their any other bot available if yes please share with us.

https://steemit.com/@inertia

Just look through his blog and you'll see a bunch of bots.

Nice, voted.
I am going to try this.

Thanks. Yea, go for it. You can always message me if you need help :)

@bitcoinparadise lol i was searching about this and u posted it in stremit and the vnc is for some other phone or same phone how can i use it if i am somewhere else and this android phone is at my home connected to wifi

VNC is on the same phone. It's using a localhost address. So you could take it with you or leave it at home...

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 65359.95
ETH 3492.90
USDT 1.00
SBD 2.51