Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [02:39] <@Squirrely> hey SymbolRate.
- [02:39] <@Squirrely> yeah i'm not sure what to do with the rtorrent ports...
- [02:39] <&SymbolRate> what's up?
- [02:39] <@Squirrely> [14:48] <@Squirrely> are the ports not set up correctly? 5000-5009. is there something which we need to do to be able to use them?
- [02:39] <@Squirrely> [14:49] <@Squirrely> ie because my script looks if it can open the port. if it can then it knows it's open, if not then it tries another in the range 5000-5009
- [02:39] <@Squirrely> [14:50] <@Squirrely> know of a fix SymbolRate to make them show up as "filtered" when the command nmap -p 5000-5008 localhost |grep filtered is executed?
- [02:39] <@Squirrely> [15:18] <
- [02:40] <@Squirrely> also for some reason some of the dynamic ports aren't allowing autodl-irssi to bind.
- [02:40] <&SymbolRate> nmap -p 5000-5008 localhost looks OK
- [02:40] <@Squirrely> 49000_
- [02:40] <&SymbolRate> Interesting ports on localhost.localdomain (127.0.0.1):
- [02:40] <&SymbolRate> PORT STATE SERVICE
- [02:40] <&SymbolRate> 5000/tcp closed upnp
- [02:40] <&SymbolRate> 5001/tcp closed commplex-link
- [02:40] <&SymbolRate> 5002/tcp closed rfe
- [02:40] <&SymbolRate> 5003/tcp closed filemaker
- [02:40] <&SymbolRate> 5004/tcp closed unknown
- [02:40] <&SymbolRate> 5005/tcp open unknown
- [02:40] <&SymbolRate> 5006/tcp closed unknown
- [02:40] <&SymbolRate> 5007/tcp closed unknown
- [02:40] <&SymbolRate> 5008/tcp closed unknown
- [02:40] <@Squirrely> but 500[1-3] shouldn't be in use atm...
- [02:41] <&SymbolRate> they aren't
- [02:41] <&SymbolRate> 5005 is the only one in use - unless i'm reading it wtrong
- [02:41] <@Squirrely> yeah 5005 is working.
- [02:43] <&SymbolRate> "filtered" means there is no response. "closed" means you got an ICMP closed
- [02:43] <@Squirrely> ah ok so it's just how iptables was set up
- [02:43] <@Squirrely> to either send a packet saying it's closed or just not reply...
- [02:43] <&SymbolRate> I don;t know why u would see "filtered" on ther server. from outside, maybe, but not from localhost
- [02:43] <@Squirrely> anyway i ended up fixing my other problem lol
- [02:44] <&SymbolRate> so everything OK?
- [02:45] <@Squirrely> still need to figure out a way for my python script to see if a port is open...i'll work on that later i guess.
- [02:46] <&SymbolRate> if it's "closed" then it's open (available)
- [02:46] <@Squirrely> oh also one last thing...here's the alias I'm using for http downloads...but it isn't working for some reason.
- [02:46] <@Squirrely> #Alias /downloads /home/squirrely/downloads
- [02:46] <@Squirrely> ignore the #
- [02:46] <@Squirrely> it's commented as it causes an error.
- [02:47] <&SymbolRate> I usually just put a symlink in my www directory
- [02:47] <@Squirrely> oh that works too?
- [02:48] <&SymbolRate> IIRC
- [02:48] <@Squirrely> oh yeah it follows symlinks...durr.
- [05:03] <@Squirrely> around hawk?
- [05:41] <@Squirrely> if you want to try it out hawk, here's what you do:
- [05:41] <@Squirrely> the file is in your dir so just run it: python configslice.py
- [05:41] <@Squirrely> and it should work.
- [05:42] <@Squirrely> if it can't pick up a rtorrent port...you gotta put one in. I need to work on autodetecting that.
- [05:42] <@Squirrely> or make my program just keep a small log of whos using what port.
- [05:43] <@Squirrely> btw i'm using 5002 so don't use that one. :P
- [06:17] <~hawk> kool
- [06:17] <~hawk> will try it in a bit :)
- [06:18] <@Squirrely> awesome
- [06:39] <@Squirrely> check er out hawk?
- [08:20] <&SymbolRate> Hey Squirrely, don;t modify sudoers
- [08:20] <&SymbolRate> instead so usermod -G admin squirrely
- [08:20] <&SymbolRate> s/so/use
- [08:20] <@Squirrely> i thought the admin group was disabled in the sudoers file?
- [08:21] <@Squirrely> oh dang i'm remembering debian. it doesn't have the sudoers group by default.
- [08:22] <@Squirrely> easy fix. want me to patch it?
- [08:22] <&SymbolRate> I chagned it
- [08:22] <&SymbolRate> and added you & hawk to admin
- [08:22] <@Squirrely> sweet.
- [08:22] <@Squirrely> yeah a group keeps it easier to manage.
- [08:24] <&SymbolRate> yeah. I'm gonne try to get rtorrent running - need a movie fast :)
- [08:26] <@Squirrely> on the new server?
- [08:26] <@Squirrely> try this out SymbolRate
- [08:26] <@Squirrely> i'll copy the script over to your dir.
- [08:26] <&SymbolRate> who's using 5003?
- [08:27] <@Squirrely> i am. testing my script.
- [08:27] <@Squirrely> alrighty SymbolRate
- [08:27] <@Squirrely> try out:
- [08:28] <@Squirrely> python configslice.py
- [08:28] <@Squirrely> which is in your user dir
- [08:28] <@Squirrely> you have to be logged in as your user btw.
- [08:28] <&SymbolRate> funy, the ports say "filtered
- [08:28] <&SymbolRate> " now
- [08:28] <@Squirrely> i need to work on the automatic detection of ports...but i'll churn that out later.
- [08:29] <&SymbolRate> I guess they are "filtered" when you are a normal user
- [08:29] <&SymbolRate> so I typed in a port number manually, now it's hanging?
- [08:29] <@Squirrely> which port?
- [08:30] <&SymbolRate> 5004
- [08:30] <@Squirrely> it's still hanging?
- [08:30] <&SymbolRate> yeah
- [08:30] <@Squirrely> murphy's law when someone else uses it, it breaks lol.
- [08:31] <&SymbolRate> yep
- [08:31] <@Squirrely> well i just tried it on my slice and it worked
- [08:31] <@Squirrely> interesting
- [08:31] <&SymbolRate> what is the apache config file and what does the apache config do?
- [08:32] <@Squirrely> where?
- [08:32] <&SymbolRate> Step 2
- [08:32] <&SymbolRate> wow - it's hung hard. ctl-c won't work
- [08:32] <@Squirrely> htaccess
- [08:33] <@Squirrely> jeeze lol.
- [08:33] <@Squirrely> oh i bet i know why. you had directories in there already
- [08:33] <@Squirrely> and i never tested if the script didn't have to create the directory...
- [08:34] <@Squirrely> get out of it then run this:
- [08:34] <@Squirrely> rm -rf .autodl/ .cache/ downloads/ .irssi/ .rtorrent.rc .session/ watch/ www/ .htpasswd
- [08:34] <@Squirrely> then retry
- [08:34] <@Squirrely> it's still version 0.1.0, so crashes are guaranteed :)
- [08:34] <@Squirrely> :P
- [08:35] <&SymbolRate> I did have dirs created already.
- [08:35] <@Squirrely> yeahhh. i'll need to see why it's hanging if the dirs are already there
- [08:35] <&SymbolRate> rerunning... seems to be hanging at same spot
- [08:35] <@Squirrely> run that clean up script then try again
- [08:36] <@Squirrely> something isn't adding up
- [08:36] <&SymbolRate> hangaroo
- [08:36] <@Squirrely> well here i'll copy mine into yours
- [08:37] <@Squirrely> alright try now?
- [08:37] <@Squirrely> if it hangs again...i'm stuck.
- [08:39] <&SymbolRate> it's hung like a porn star
- [08:39] <@Squirrely> raaaaaaaaaaaaaaaaa
- [08:39] <@Squirrely> at what point?
- [08:39] <@Squirrely> send me the "progress" so far please
- [08:40] <&SymbolRate> Step 3: Configuring rtorrent
- [08:40] <&SymbolRate> Configuring rtorrent...
- [08:40] <&SymbolRate> Unable to find an open scgi port. Please specify a port (5000-5009): 5004
- [08:40] <&SymbolRate> ^C
- [08:40] <&SymbolRate> ^Z
- [08:40] <&SymbolRate> [1]+ Stopped python configslice.py
- [08:40] <@Squirrely> interesting
- [08:41] <&SymbolRate> u didn;t have me delete tmp tho
- [08:41] <@Squirrely> that's ok. that will just overwrite.
- [08:41] <@Squirrely> guess i'll create a user with a symlink and see if that's goofing with stuff.
- [08:47] <@Squirrely> so how is that add script used SymbolRate? ./add NuTZ squirr3ly1@gmail.com /diska 46.105.125.220
- [08:48] <&SymbolRate> yeah
- [08:52] <@Squirrely> hmm. that is some hard core lagging.
- [09:12] <@Squirrely> weird, wonder why they are saying filtered now...(the ports)
- [13:44] <@Squirrely> [10:11:03] around SymbolRate? rewrote the port detection section...so now it should work just fine. so try it when you get the chance [10:11:03]
- [13:44] <@Squirrely> [10:43:31] Alright hawk, when you get back and have a chance, try out that script. I have a fully working version now. It's in your home dir on LH. [10:43:31]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement