geeknote
geeknote copied to clipboard
How to Make GeekNote Work without Root Access
Until I sudo -s in the terminal and gain root access, I can't use GeekNote.
I think I installed it while I had root access.
And now, every time I want to use geeknote in command line, I need to get root access.
Is there anyway I can make geeknote not require root access to work?
Here's the screenshot:

While I tried to see geeknote settings by doing geeknote settings, it showed error. But after I did sudo -s and got root access, it worked.
@manishsuwal It sounds like some of the files (such as /Users/manishsuwal/.geeknote/error.log) were created by the root user when you set things up.
You can check this by running ls -al /Users/manishsuwal/.geeknote/:
[~/] $ ls -al /Users/raam/.geeknote/
total 48
drwxr-xr-x 4 raam staff 136 Sep 9 12:06 .
drwxr-xr-x+ 108 raam staff 3672 Sep 9 12:05 ..
-rw-r--r-- 1 raam staff 24576 Sep 9 12:06 database.db
-rw-r--r-- 1 raam staff 0 Sep 9 12:05 error.log
If you see root in the column where it says raam in my output, that's your problem.
You can fix that buy recursively changing all files in that directory to be owned by your user (which I assume is manishsuwal) by running this command:
sudo chown -R manishsuwal:staff /Users/manishsuwal/.geeknote/*
Also, with regards to the title of this issue, I just installed Geeknote using the recommended sudo python setup.py install, which installs it using root access, and I had no issues with files owned by root. All of the files in my ~/.geeknote/ directory were owned by my local user (raam) as expected. That tells me the problem you're experiencing here Manish might have to do with being logged in as the root user, instead of using the sudo command as the instructions say.
@raamdev Thank you so much.
I did exactly what you said. However, in the end, there's still one root access left. Three of them has changed to manishsuwal.
Here's the screenshot of the process from beginning to the end:

@manishsuwal Sorry, the command should have been:
sudo chown -R manishsuwal:staff /Users/manishsuwal/.geeknote
Notice I left off the /*, which means it will change the ownership for the .geeknote directory and everything inside it. By adding /* to the end of the path, it was only changing the ownership of everything inside .geeknote, but not changing ownership of the .geeknote directory itself.
You can safely rerun the command as above and the problem should be fixed. :)
I use linux Debian; In my case, got the next error: IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/protobuf-3.1.0.post1-py2.7.egg/EGG-INFO/namespace_packages.txt' I just changed the privileges as root:
root@user:/home/debian# chmod +wr /usr/local/lib/python2.7/dist-packages/protobuf-3.1.0.post1-py2.7.egg/EGG-INFO/namespace_packages.txt
And worked