1. DLP Flash Christmas Competition + Writing Marathon 2024!

    Competition topic: Magical New Year!

    Marathon goal? Crank out words!

    Check the marathon thread or competition thread for details.

    Dismiss Notice
  2. Hi there, Guest

    Only registered users can really experience what DLP has to offer. Many forums are only accessible if you have an account. Why don't you register?
    Dismiss Notice
  3. Introducing for your Perusing Pleasure

    New Thread Thursday
    +
    Shit Post Sunday

    READ ME
    Dismiss Notice

Calling all *nix and Linux users....

Discussion in 'Fanfic Discussion' started by bornagainpenguin, Jan 29, 2008.

  1. bornagainpenguin

    bornagainpenguin DLP Archivist

    Joined:
    Oct 27, 2005
    Messages:
    780
    Location:
    Illinois
    Recently I moved my desktop over to Linux full time, my laptop had already been converted over for some time, but I'd had some configuration issues to get past before I could move my desktop over. At the moment I'm happily running Ubuntu (Gutsy Gibbon) 7.10 and have nearly all my hardware working 100% and replacements for 98% of the programs I used on a daily basis in Windows XP. What I need help with now is getting the de-FFNet-izer up and running in Ubuntu....

    I tried using the source, following the directions there but it keeps telling me files are missing. I even went so far as to try using WINE to run the Windows copy... All have failed me. Could someone out there who knows more than me give some instructions on how to setup this vital piece of software in Ubuntu?

    Thanks!

    --bornagainpenguin
     
  2. Lord Ravenclaw

    Lord Ravenclaw DLP Overlord Admin DLP Supporter

    Joined:
    Apr 2, 2005
    Messages:
    4,373
    Location:
    Denver, CO
    I can try and compile it on Linux. I'm not sure if it was build with cross-compatibility in mind though.
     
  3. bornagainpenguin

    bornagainpenguin DLP Archivist

    Joined:
    Oct 27, 2005
    Messages:
    780
    Location:
    Illinois

    Thanks!

    Supposedly it should be runnable by the command:

    Code:
    python2.4 deffnet.py
    ..and no compiling necessary, but the first time I opened the terminal to the directory with the code, it said I didn't have python 2.4 installed, but when I grabbed it via apt-get it started complaing about not being able to find files... I'm wondering if I have to make a bunch of symbolic links or something?

    --bornagainpenguin
     
  4. Lord Ravenclaw

    Lord Ravenclaw DLP Overlord Admin DLP Supporter

    Joined:
    Apr 2, 2005
    Messages:
    4,373
    Location:
    Denver, CO
    Oh, no need to compile. It worked fine for me. Try using just "python deffnet.py"
     
  5. bornagainpenguin

    bornagainpenguin DLP Archivist

    Joined:
    Oct 27, 2005
    Messages:
    780
    Location:
    Illinois
    Heh... that did it! Too bad development on the de-FFNet-izer has stopped for all intents and purposes... They really need to change that readme!

    Thanks Lord Ravenclaw! It's times like this I really miss the ability to rep someone...

    --bornagainpenguin

    Errr...

    Could you advise me on how to place the directory in my path or whatever I need to do in order to be able to execute it without having to manually change to the directory its kept in? I'm hoping to get the program sorted in such a way I'll be able to call it from the menu, like any other program.

    Thanks again!

    --bornagainpenguin

    PS: I tried:
    Code:
    python deffnet.py "/usr/include/deffnet"
    but that doesn't seem to be doing anything...
     
    Last edited: Jan 29, 2008
  6. BlackSun

    BlackSun Squib

    Joined:
    Aug 27, 2007
    Messages:
    10
    Have you tryied running "python setup.py"?
     
  7. Lord Ravenclaw

    Lord Ravenclaw DLP Overlord Admin DLP Supporter

    Joined:
    Apr 2, 2005
    Messages:
    4,373
    Location:
    Denver, CO
    Set Preferences might be able to do that for you. It most likely writes deffnet.cfg.
     
  8. bornagainpenguin

    bornagainpenguin DLP Archivist

    Joined:
    Oct 27, 2005
    Messages:
    780
    Location:
    Illinois
    That does exactly....nothing.

    The preferences only seemed to set the location to save files and where to find the templates. Nothing about how to setup for running from a menu shortcut. Also, is anyone else fiddling with this getting ridiculously small fonts?

    [​IMG]

    --bornagainpenguin
     
  9. BlackSun

    BlackSun Squib

    Joined:
    Aug 27, 2007
    Messages:
    10
    What the setup probably did was move the files to where python could find then. Open a console and type deffnet.py from your home directory. If it doesn´t work, try again the setup.py as root.
    To make a shortcut you will probably have to make it by hand.
     
  10. bornagainpenguin

    bornagainpenguin DLP Archivist

    Joined:
    Oct 27, 2005
    Messages:
    780
    Location:
    Illinois
    I'll give it a try...
    Code:
    bornagainpenguin@AMDBrat:~$ deffnet.py
    bash: deffnet.py: command not found 
    Nope.

    Code:
     bornagainpenguin@AMDBrat:~$ python deffnet.py
    python: can't open file 'deffnet.py': [Errno 2] No such file or directory
    Nope again....

    The only way it works for me now is if I manually cd to the location I put the files....

    I know that. I'm trying to figure out what command to use.

    --bornagainpenguin
     
    Last edited: Jan 29, 2008
  11. BlackSun

    BlackSun Squib

    Joined:
    Aug 27, 2007
    Messages:
    10
    Try Settings -> Menu Editor.
     
  12. bornagainpenguin

    bornagainpenguin DLP Archivist

    Joined:
    Oct 27, 2005
    Messages:
    780
    Location:
    Illinois
    I don't think you get it...

    [​IMG]

    You see the screenshot? I need to know what to put in the empty field for "command" so I can execute the program. I tried using python deffnet.py "/usr/include/deffnet" but that didn't work.

    --bornagainpenguin

    Never mind...

    I figured it out...

    Code:
    python deffnet.py "/usr/include/deffnet"
    doesn't work, but

    Code:
    python "/usr/include/deffnet/deffnet.py"
    does the job just fine... I don't know why it took me so long to think of it.

    Thanks for the help guys!

    --bornagainpenguin
     
    Last edited: Jan 29, 2008
  13. BlackSun

    BlackSun Squib

    Joined:
    Aug 27, 2007
    Messages:
    10
    I tried here:
    I used "/usr/bin/python2.4 /home/carlos/deffnet/deffnet.py" (without quotes) for the command and "/home/carlos/deffnet/deffnet.py" (also without quotes) for the work path. I couldn't see the pic you posted because it was too small.
     
  14. bornagainpenguin

    bornagainpenguin DLP Archivist

    Joined:
    Oct 27, 2005
    Messages:
    780
    Location:
    Illinois

    If you click it, it gets bigger! ;)

    I got it working now, so thanks for all the help everyone who posted!


    --bornagainpenguin