Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 Oct 2014, 12:31
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Pctorrent(Pupctorrent)-1.4 another gtkdialog gui + ctorrent
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 4 Posts_count   Goto page: 1, 2, 3, 4 Next
Author Message
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Mon 29 Jan 2007, 01:47    Post_subject:  Pctorrent(Pupctorrent)-1.4 another gtkdialog gui + ctorrent
Sub_title: updated 2008-07-03
 

Here's a little gui for the ctorrent bit torrent client.

0.2 - updated the gui a bit.

0.3 - added the ability to create torrent files to the gui

0.4 - added some more options to the gui and re-vamped the create torrent portion. I also added a help section.

0.5 - revised scripts for the new gtkdialog3 binary. Added the ability to remove a tracker from your added trackers. You'll need the new gtkdialog3 executable for Puppy's 2.14 and previous. You can find it here:
ftp://ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-2/gtkdialog-0.7.18.pet

06. - missed a couple of gtkdialog2 spots in my scripts so revised again.

0.7 - fixed a small bug & updated the icons to use the stock gtk icons and made program install to /usr/local/apps/ instead of /usr/local/

0.8 - fixed a small bug when creating torrent files

0.9 - enhanced the create torrent section and fixed some bugs

---------------------------------------------------------------------------------

1.0 - I did a bunch of stuff this time around. Notes below:

1. renamed scripts to "pctorrent" & "pcreatetorrent".

2. All of the code is in each script and no other files are necessary.
The package will install the "pctorrent" & "pcreatetorrent" scripts to /usr/sbin/ and the help file will be installed to /usr/share/doc. You can then delete the /usr/local/apps/Network/Pupctorrent directory.

3. No more Xdialog dependancy. It depends on ctorrent, gtkdialog (version 0.7.20 or greater - currently the gtkdialog3 executable in puppy), & rxvt.

4. I removed the 2 rows of buttons at the bottom of the gui and made them into a menubar at the top instead. This way the gui heighth is decreased.

5. Removed some redundant and unnecessary codelines.

6. Fixed a couple of small bugs that I never noticed before going over the code in the last couple of days.

---------------------------------------------------------------------------------

1.1 some slight modifications requested by maddox

1.2 I forgot dougal sent me an updated help html for this quite a while back. The original file was rather large and had some weird syntax highlighting that he fixed. So this is just an updated (smaller) help file and a minor tweak in the code.

1.3 no major changes here just some slight modifications

1.4 fixed a bug that would sometimes delete the temp file before it gets executed.

---------------------------------------------------------------------------------

I was reading thru previous posts and saw that Newcrest wanted the ability to pass a selected torrent file in rox to my program. I made the script that will make that possible. Download the application_x-bittorrent.tar.gz file below and unpack it into /root/Choices/MIME-types

After that click on a torrent in rox and it should open up in my program.
This will only work if you've upgraded to pctorrent (not pupctorrent).


---------------------------------------------------------------------------------

I'll also post a dotpet for the most recent enhanced ctorrent.

http://www.rahul.net/dholmes/ctorrent/
ctorrent-dnh3.3.2.pet
Description 
pet

 Download 
Filename  ctorrent-dnh3.3.2.pet 
Filesize  85.33 KB 
Downloaded  1748 Time(s) 
pctorrent-1.4.pet
Description 
pet

 Download 
Filename  pctorrent-1.4.pet 
Filesize  7.06 KB 
Downloaded  2049 Time(s) 
application_x-bittorrent.tar.gz
Description 
gz

 Download 
Filename  application_x-bittorrent.tar.gz 
Filesize  184 Bytes 
Downloaded  1493 Time(s) 

Edited_times_total
Back to top
View user's profile Send_private_message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Mon 29 Jan 2007, 01:48    Post_subject:  

Here's a pic
pupctorrent-0.4.jpg
 Description   
 Filesize   173.02 KB
 Viewed   4152 Time(s)

pupctorrent-0.4.jpg


Edited_time_total
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Mon 29 Jan 2007, 03:01    Post_subject: is ctorrent smaller / better than transmission  

Smile very impressive

is ctorrent smaller / better than transmission? (in Puppy)

the seeding options look better from your gui

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Mon 29 Jan 2007, 08:54    Post_subject:  

ctorrent is smaller (this latest version I posted is 106.5 Kb's) it also has more options than Transmission.
Back to top
View user's profile Send_private_message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Mon 29 Jan 2007, 09:05    Post_subject:  

ctorrent also has the capability of creating torrent files to seed on trackers. I'll probably add that to the gui if there's any interest. Also the choose specific file to download option appears to be broken. It seems as though the command is correct but I'll see if I can figure out why.
Back to top
View user's profile Send_private_message 
AndyMack

Joined: 09 Nov 2006
Posts: 47

PostPosted: Mon 29 Jan 2007, 10:59    Post_subject:  

Im wondering for those who download via torrents do you/they use a peerguardian/Moblock program to protect yourselves or just leave it to chance.
Back to top
View user's profile Send_private_message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Mon 29 Jan 2007, 11:13    Post_subject:  

Nice,

I'd suggest aligning the entry fields. Also sizing the entry fields and buttons evenly.

_________________
http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
Back to top
View user's profile Send_private_message Visit_website 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Mon 29 Jan 2007, 11:18    Post_subject:  

Andymack, I've never used a peerguardian/Moblock program and have downloaded alot of torrents. Not even sure what those programs are.

Rarsa, I'll work on that for the next release along with a button for torrent file creation. I'll probably have some time late tonight.
Back to top
View user's profile Send_private_message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Mon 29 Jan 2007, 11:38    Post_subject:  

IF you need some pointers for the alignement look at the code for the wag-profiles.sh script (I should be under /usr/sbin)

There I used the following trick:
Code:
<vbox>
  <pixmap><input file>/usr/share/pixmaps/net-setup_btnsize.png</input></pixmap>
  <button><label>Delete</label><action>Exit=21</action></button>
</vbox>


This is, I created a vbox around each label and button and forced the size by using an invisible png with a standard size.

Or even better. Translate your script to tcl/tk.

I realized too late that it took me less time to learn tcl/tk than all the time I spent fighting gtkdialog to do what I wanted it to do for the network wizard. Using gtkdialog proved to be a tortuous process and I ended up feeling that I didn't really have control on how the app would look.

I can give you some pointers for that too.

_________________
http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
Back to top
View user's profile Send_private_message Visit_website 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Mon 29 Jan 2007, 11:50    Post_subject:  

Thanks rarsa, I'll work on that aligning trick. As fas as tcl/tk I've looked into it before and was confused by it but maybe I'll try again. Any good guide to getting started?
Back to top
View user's profile Send_private_message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Mon 29 Jan 2007, 12:12    Post_subject:  

First: understand the quoting mental model.
I was totally confused with the quoting in tcl because of preconceptions from other languages.

Apparently I wasn't the only one. When I went to the #tcl room in free node to ask a question someone pointed me to this excelent page

http://wiki.tcl.tk/1726.

Once I read that page, my comprehension of the language increased 10 fold. That's when I realized how powerfull the language is.

Second: Bookmark these links and keep them handy

Tcl reference manual

Tk reference manual

Third. Get familiar with the geometry managers, specially "pack"
I'd recommend playing with pack to see how different -side and -anchor combinations work.

_________________
http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
Back to top
View user's profile Send_private_message Visit_website 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Mon 29 Jan 2007, 12:22    Post_subject:  

Thanks rarsa, I'll definitely look into it.
Back to top
View user's profile Send_private_message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Mon 29 Jan 2007, 13:58    Post_subject:  

Had a few minutes and was able to change the gui for the better.

updated to 0.2 in the first post.
Back to top
View user's profile Send_private_message 
AndyMack

Joined: 09 Nov 2006
Posts: 47

PostPosted: Mon 29 Jan 2007, 17:55    Post_subject:  

peerguardian/moblock will block ip's from many sources who spy on you, mpaa etc.

I'd say the majority of people who d/l via torrents use one of these, it does'nt make you 100% safe but i'd rather use it than not.

Moblock seems to be the only one available for linux that is updated frequently. I'd like to install it myself but no-one seems forthcoming in helping.
Back to top
View user's profile Send_private_message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Mon 29 Jan 2007, 18:26    Post_subject:  

Alright, I'll look into it. It doesn't matter much to me because the majority of what I download is not pirated stuff.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 4 Posts_count   Goto page: 1, 2, 3, 4 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0777s ][ Queries: 13 (0.0054s) ][ GZIP on ]