Pctorrent(Pupctorrent)-1.7a another gtkdialog gui + ctorrent
Pctorrent(Pupctorrent)-1.7a another gtkdialog gui + ctorrent
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/distributio ... 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/
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/distributio ... 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/
- Attachments
-
- ctorrent-dnh3.3.2.pet
- (85.33 KiB) Downloaded 2512 times
-
- application_x-bittorrent.tar.gz
- (184 Bytes) Downloaded 2250 times
-
- pctorrent-1.7a.pet
- (11.06 KiB) Downloaded 2868 times
Last edited by plinej on Tue 30 Jun 2020, 11:28, edited 27 times in total.
Here's a pic
- Attachments
-
- pupctorrent-0.4.jpg
- (173.02 KiB) Downloaded 4870 times
Last edited by plinej on Fri 09 Feb 2007, 01:10, edited 1 time in total.
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
is ctorrent smaller / better than transmission
very impressive
is ctorrent smaller / better than transmission? (in Puppy)
the seeding options look better from your gui
is ctorrent smaller / better than transmission? (in Puppy)
the seeding options look better from your gui
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:
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.
There I used the following trick:
Code: Select all
<vbox>
<pixmap><input file>/usr/share/pixmaps/net-setup_btnsize.png</input></pixmap>
<button><label>Delete</label><action>Exit=21</action></button>
</vbox>
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.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to
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.
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.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to
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.
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.
Updated to 0.4
Now there's an option to disguise ctorrent as Azureus incase if ctorrent is banned on a tracker you're trying to download from. You can also specify a file to download first from within the torrent. You can view the number of the file from the metainfo button. I added a feature to select your desired piece length when creating a torrent. The scrape button that you can see in the updated picture at the beginning of the thread will only appear if you have transmissioncli. The scrape feature will show you the number of seeders and downloaders on the selected torrent file. I don't see a feature like that built into ctorrent. The new help section should be able to help with any of the available options to set.
Now there's an option to disguise ctorrent as Azureus incase if ctorrent is banned on a tracker you're trying to download from. You can also specify a file to download first from within the torrent. You can view the number of the file from the metainfo button. I added a feature to select your desired piece length when creating a torrent. The scrape button that you can see in the updated picture at the beginning of the thread will only appear if you have transmissioncli. The scrape feature will show you the number of seeders and downloaders on the selected torrent file. I don't see a feature like that built into ctorrent. The new help section should be able to help with any of the available options to set.