Hi people. This is my first post asking for help.
I Love Jdownloader program but can't solve this old problem.
I'm still a little retard with GNU/Linux
Able to do a reconnect by running the following commands
This is the script I'm using.sudo /usr/bin/cambiar-ip
less /usr/bin/cambiar-ip
It resembles this one in Window$#!/bin/bash
dhcpcd -k eth0 ; sleep 4s; dhcpcd -r 190.189.48.52 -l 10000 eth0
The program dhcpcd requires root user privileges.
Avahi daemon and network-manager widget should be disabled or uninstalled for this to work on Ubuntu.
Also I'm using Karmic.
I'm not Cisco certified. What I think it does, in a non technical comparison, is tell the ISP hardware that your ip should be 190.189.48.52 or whatever number you like.
For the ISP this would be the last lease you used.
The ISP hardware does not recognize this last lease in its list, so it assigns a new ip.
That does the trick and you get your new ip!
My ISP promotes the service with dynamic ip so no legal matters here.
The problem is how to automatize it.
Sudo runs the script with no privileges problems.
I am able to run it password-less by modifying sudoers file via visudo command.
I add the following line
It can also be like (this would need extra security measures?)your-user-name hostname = NOPASSWD:/usr/bin/cambiar-ip
Then you can run sudo /usr/bin/cambiar-ip and it won't prompt you for a password.your-user-name ALL = NOPASSWD:/usr/bin/cambiar-ip
Password issues solved, I cannot get Jdownloader to run it.
In the Settings > Reconnection tab
Tried to use "External" and "Batch" but i get reconnection failed sad face.
I've tried in "External" /usr/bin/sudo /usr/bin/cambiar-ip
It won't work.
I'm missing something of the Unix security structure.
Here is the wiki of the program
http://jdownloader.org/knowledge/wik...sary/reconnect
Any ideas?
Thanks in advance and sorry for my bad english.
If you need any screenshots of the program i would be happy to provide them.
Bookmarks