1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

how to edit cc_config in Ubuntu 13.10

Discussion in 'World Community Grid (WCG)' started by AlienIsGOD, Oct 17, 2013.

  1. AlienIsGOD

    AlienIsGOD

    Joined:
    Aug 9, 2008
    Messages:
    4,344 (1.43/day)
    Thanks Received:
    2,424
    Location:
    Kingston, Ontario Canada
    i would like to know how to edit the config file for WCG in Ubunutu. ive decided to give it a go and want to report tasks immediately.
     
  2. Norton

    Norton WCG-TPU Team Captain

    Joined:
    Dec 21, 2011
    Messages:
    11,222 (6.19/day)
    Thanks Received:
    31,193
    Last edited: Oct 18, 2013
    Crunching for Team TPU
  3. AlienIsGOD

    AlienIsGOD

    Joined:
    Aug 9, 2008
    Messages:
    4,344 (1.43/day)
    Thanks Received:
    2,424
    Location:
    Kingston, Ontario Canada
    got BOINC installed now just need the link from my good man Norton :D
     
  4. Norton

    Norton WCG-TPU Team Captain

    Joined:
    Dec 21, 2011
    Messages:
    11,222 (6.19/day)
    Thanks Received:
    31,193
    See the link in the first post- courtesy of Mad Shot :toast:

    FYI- Ctrl + Alt + T will pull up the terminal ;)

    *worked with Ubuntu 12.04 LTS
     
    Last edited: Oct 18, 2013
    AlienIsGOD says thanks.
    Crunching for Team TPU
  5. AlienIsGOD

    AlienIsGOD

    Joined:
    Aug 9, 2008
    Messages:
    4,344 (1.43/day)
    Thanks Received:
    2,424
    Location:
    Kingston, Ontario Canada
    im using ubuntu 13.10 and i get nothing
     
  6. Norton

    Norton WCG-TPU Team Captain

    Joined:
    Dec 21, 2011
    Messages:
    11,222 (6.19/day)
    Thanks Received:
    31,193
    This worked fine with 12.04 LTS :confused:

    This is as far as I can go regarding Linux.... will need to defer to google or more Linux experienced Team members :eek:
     
    Crunching for Team TPU
  7. xvi

    xvi

    Joined:
    Nov 10, 2006
    Messages:
    4,384 (1.19/day)
    Thanks Received:
    5,467
    Location:
    Washington, US
    Ctrl + Alt + F1 will always get you terminal. :p

    Otherwise, I recommend the very, very excellent Tilda or Guake drop-down terminal emulators.
     
    Last edited: Oct 18, 2013
    10 Year Member at TPU Crunching for Team TPU
  8. Peter1986C

    Peter1986C

    Joined:
    Sep 3, 2010
    Messages:
    3,458 (1.51/day)
    Thanks Received:
    1,689
    Location:
    NL, Europe
    or alt+F2 and then type "terminal" in the prompt. Or search for "terminal" in the search field of the start menu thing (sorry, I did not use Uby for ages so I can not be of real help here).
     
  9. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    6,183 (2.22/day)
    Thanks Received:
    3,618
    Location:
    Charleston, SC
    Just use Gedit. :toast:

    example:
    Code:
    sudo gedit
    or edit the file outside of /etc like the "Documents" folder and then copy it to /etc/boinc-client.
    Code:
    cd /home/user/Documents
    then once in the Documents folder
    Code:
    sudo cp cc_config.xml /etc/boinc-client
    :toast:
     
    AlienIsGOD and Norton say thanks.
    Crunching for Team TPU
  10. xvi

    xvi

    Joined:
    Nov 10, 2006
    Messages:
    4,384 (1.19/day)
    Thanks Received:
    5,467
    Location:
    Washington, US
    Oh! If you want a text editor, may I recommend the extremely user-friendly vim!

    (As a sidenote, you shouldn't use sudo for GUI applications. You should use gksu/gksudo instead, or at least that's what I was told.)
     
    Last edited: Oct 19, 2013
    AlienIsGOD says thanks.
    10 Year Member at TPU Crunching for Team TPU
  11. agent00skid

    Joined:
    May 6, 2012
    Messages:
    751 (0.45/day)
    Thanks Received:
    703
    Location:
    Denmark
    I've never had issues with using sudo with GUI applications. Though I have read the thing about gksudo as well.

    Been long since I messed around with Ubuntu last. Ever since I found it incompatible with my desktops overclock... Kind of sad, was fun to mess around with it. :S
     
    Crunching for Team TPU More than 25k PPD
  12. AlienIsGOD

    AlienIsGOD

    Joined:
    Aug 9, 2008
    Messages:
    4,344 (1.43/day)
    Thanks Received:
    2,424
    Location:
    Kingston, Ontario Canada
    i can get as far as editing the config, now it says i dont have permission to edit the file when i go to save 'cause its ready only and im not the owner. Any suggestions?

    Edit: apparenty i cant change anything in the root folder, is there a way to enable write/read access in the root folder or my /etc/boinc-client folder?
     
  13. xvi

    xvi

    Joined:
    Nov 10, 2006
    Messages:
    4,384 (1.19/day)
    Thanks Received:
    5,467
    Location:
    Washington, US
    Are you sure you're root? As root, try "chmod 666 <filename/foldername>". This will give read/write permssions to owner/group/everyone.

    If you'd like to sudo your way in to root permanently, the most proper way I've found is "sudo -i". The second best, "sudo -s" and the least best way, although very popular, "sudo su". All work and I would be hard pressed to explain why one way is better than the other. When you're done, type "exit" to go back to your normal user.
     
    AlienIsGOD says thanks.
    10 Year Member at TPU Crunching for Team TPU
  14. TRWOV

    TRWOV

    Joined:
    Aug 11, 2011
    Messages:
    4,312 (2.22/day)
    Thanks Received:
    3,001
    Location:
    Mexico
    You know? This is why I preferred Mint. The right click menu has "Open as Administrator" right there, no sudo stuff (not saying that it's hard to do in terminal but it gets tiresome when you're setting up multiple boxes).
     
    Crunching for Team TPU
  15. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,983 (3.26/day)
    Thanks Received:
    5,288
    Location:
    Hi! I'm from the Internet
    Use the "sudoedit " command in terminal. The link Norton posted should have everything you need. When you use the sudoedit command it will ask for the root password.
     
    Arjai, Norton and AlienIsGOD say thanks.
    Crunching for Team TPU
  16. AlienIsGOD

    AlienIsGOD

    Joined:
    Aug 9, 2008
    Messages:
    4,344 (1.43/day)
    Thanks Received:
    2,424
    Location:
    Kingston, Ontario Canada
    its not in my root folder, the config is in the etc file and when i click on properties it says the owner is root
     
  17. AlienIsGOD

    AlienIsGOD

    Joined:
    Aug 9, 2008
    Messages:
    4,344 (1.43/day)
    Thanks Received:
    2,424
    Location:
    Kingston, Ontario Canada
    thanks Mad, that worked :D it didnt as for permissions or anything, it just saved the file and i went and checked it after closing all windows and appropriate programs.

    I want to thank everyone as im a Ubuntu/Linux noob, but i really enjoy using this OS and crunching on Ubuntu.
     
  18. xvi

    xvi

    Joined:
    Nov 10, 2006
    Messages:
    4,384 (1.19/day)
    Thanks Received:
    5,467
    Location:
    Washington, US
    Oh! You'll want chown (CHange OWNer) then. "chown <user> <group> <filename/foldername>" if I'm not mistaken.

    Glad it's working now though!
     
    10 Year Member at TPU Crunching for Team TPU
  19. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,983 (3.26/day)
    Thanks Received:
    5,288
    Location:
    Hi! I'm from the Internet
    When you use the sudoedit command it gives you root permission to edit the file :toast:
     
    Arjai and AlienIsGOD say thanks.
    Crunching for Team TPU
  20. Vinska

    Vinska

    Joined:
    Jul 23, 2011
    Messages:
    1,544 (0.79/day)
    Thanks Received:
    1,451
    Location:
    Kaunas, Lithuania
    erm, no matter how tempting it might be, I highly recommend to never change any permissions / owners of anything under /etc, /usr, /bin, /sbin, /lib and /boot unless You absolutely know what You are doing, why You are doing it and what are the exact consequences of doing it.

    (in this case, You might end up getting Your dpkg confused in a bad way if the owner / permissions of that file are changed)

    Well, at least You got it sorted out, AiG :)

    P.S. It's covered in my cruncher's guide to Linux, IIRC. But it's too late for that ;)
     
    Arjai and xvi say thanks.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)