Bash: /etc/X11/xorg.conf: Permission denied

When I open VNC server the resolution of Jetson Nano is not accurate. To solve this I referred to the forum topic :

640x480 for VNC. offer more choices?

But I cannot modify the file. Here is the error I’m getting :

sudo /etc/X11/xorg.conf
bash: /etc/X11/xorg.conf: Permission denied

can you please tell me how to give access yo modify the file.

Thank You.

The above is incorrect. The “sudo” part is correct, but the file is not an editor. You need an editor to open that file rather than treating the file itself as an editor. Do you have a favorite editor? As an example I will use “nano”, which is a very simple text editor with a list of its commands at the bottom (the “^” in front of letters in the menu list is the “control”/“CNTL” character):
sudo nano /etc/X11/xorg.conf
(and for example CTRL-x exits)

Another option might be something like gedit (or kwrite if you have it installed).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.