Sunday, 1 September 2013

Dumpmon twitter my experiences

I am very interested in what information is being passed around by others and i noticed a post on my igoogle showing someone had setup there pi to use a python script called dumpmon. Click here for website.

Now i have a pi running XBMC on a 32G sd card so i didn't really want to destroy my after getting this to work.

So i installed the pi os in a vm in virtual box... This did not go as expected following the steps online to do this it was an ubuntu hybrid os not a debian.... which is what i expected..

I then thought well this is a python script it should run on any version of linux... considered installing on my kali linux machine but due to that machine not running all the time and obviously not being internet bound i went with an old favorite os when i used my 486SX2 as a server. Well now fedora has reached 19 so thought would give it a go i haven't used it for around 7-8 years maybe more i don't like the interface at least on the gnome interface i used its very clunky and not really friendly.. but hey this isn't a review on fedora.

Downloaded the live CD created an 8gig virtual machine in virtualbox and setup a default installation

The install went great... so after using kali alot i kind of like using the console to do things but none of my commands where working normally i apt-get update to update the repositories but totally forgetting fedora uses yum so i used the graphical interface to install the files required.

This is where it gets a little funky...

following the steps on the github  to find prerequisite applications here is what i found..

twitter library - https://pypi.python.org/pypi/twitter
$ pip install beautifulsoup4
$ pip install requests
$ pip install pymongo <-- for MongoDB support (must have mongod running!)
I couldn't get this method to work the first time I installed packages through the package manager I did one thing at a time and slowly got it to work then moved on to the next.
mongo was the only thing I couldn't get to work and when i think i fixed it i got an error from mongo saying it needed 3gig for journal files obviously on an 8gig drive this wasn't going to work.

... it was only when i did  a fresh install on a 20gig vm that i followed my previous steps to get it to work....

So here is my walk through

sudo yum install kernel-dev(version)
sudo yum install gcc
sudo yum install gcc python-devel
The above 3 where so i could install vbox additions

pip setup
sudo python ez_setup.py
pip install --upgrade setuptools
sudo python get-pip.py
sudo yum install python-pip


downloaded and used the twitter version shown download the zip file
extracted to /Desktop/twitter-1.10.0
ran sudo python setup.build
sudo python setup.install

downloaded dumpmon-master.zip from github

extracted to /Desktop/dumpmon-master
sudo pip install beautifulsoup4
sudo pip install requests
sudo pip install pymongo

installed mongo as the mongodb site suggests couldn't get it to run

ran sudo yum remove mongodb-version (the one installed by the package manager conflicted with the one i was installing)
sudo yum install mongo-10gen mongo-10gen-server

This worked that it installed and i could kind of run it but errors
couldn't start mongo



Helpful links


http://www.pip-installer.org/en/latest/installing.html This allowed me to install pip so that it worked I did install from the repos but for some reason it wouldn't work...

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/ this was good to show me how to reinstall mongo

i think this is the bug i am running into as mongo wont start
https://jira.mongodb.org/browse/SERVER-7285

This helped with tokens etc
http://inventwithpython.com/blog/2012/03/25/how-to-code-a-twitter-bot-in-python-on-dreamhost/

I haven't got much time to play today gaming day..,..

i am getting output on screen now but doesn't output to twitter as expect...not sure if i have done something wrong

I am really interested in this tool and will en-devour to get it working


let me know of your experiences







No comments:

Post a Comment