writing in linux



  • Hi, it's me again,
    I try to work unter linux mint.I have downloaded from qt-server.
    When I want to work on a project (imported from windows), there was always the hint that there were no writing rights on different files.No problem, I changed on all with chmod 1777. Even on cmakelists.txt.Now I can load and compile my project but when I want to change sth. in cmakelists.txt i have the same error again: can not save cmakelists.txt.
    Where do I have to change which parameter?
    Thank you experts!


  • Moderators

    Where have you put your project code (what directory)?

    Are you working as root (superuser)?



  • @sierdzio said in writing in linux:

    Where have you put your project code (what directory)?

    Are you working as root (superuser)?

    project code is under /home/my name/code
    no not working as root
    I could start qt with sudo but I think there should be an other way!
    Qt is on /home/myname/qt too.


  • Lifetime Qt Champion

    Hi,

    How exactly are copying the files between Windows and Linux ?



  • @SGaist
    I copied complete directory with dolphin, could have done it with mc as well.It is on an other partition,same PC.
    But I found the solution myself:
    i had to change owner of my project directory
    chown -r username:groupdirectory
    in mc there is a button which does that for you.
    @SGaist may you have a look to my audiooutput question in a few minutes



  • Hey there. Since it looks like you're copying these files from an NTFS partition I'd like to suggest installing ntfs-3g and using it instead for mounting NTFS drives as it will allow you to write on those drives too. The default NTFS driver "assumes" that the owner of files and directories on an NTFS partition is root.



  • no, I prefer copying the directory to linux,this way nothing will be changed on my original files under windows.But I solved it already!


  • Lifetime Qt Champion

    You should rather consider using git for that. That will handle the line ending conversion for you and you'll have a better management of your code history.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.