I can't find the file /.vnc/xstartup?
14,493
It's ~/.vnc
not /.vnc
- meaning a hidden directory (.vnc
) at the top level of your home directory (~/
).
Just open a file browser and hit Ctrl+H or select "Show Hidden Files" from the "View" menu.
Related videos on Youtube
Author by
Uppili
Updated on September 18, 2022Comments
-
Uppili over 1 year
I'm using ubuntu 14.04.
I have installed the VNC by using this command
sudo apt-get install vnc4server
I have tested the connection and it working and the terminal of other system got open.
Now I'm trying for the VNC full desktop.
For that I need to change the last line of /.vnc/xstartup to
gnome-session &
But I can not find the /.vnc folder. I searched everywhere.
Where can I find this folder /.vnc and file "xstartup".
Does "xstartup" file is stored in any other folder?
-
rikkitikkitumbo over 4 yearsjust FYI... you have to actually run vncserver before the folders get automatically created! just installing vnc4server doesn't create the folders
-
-
Uppili almost 8 yearsThanks for your answer. I have find the file. I want to open the xstartup file in terminal using vim editor. So the command will be "sudo vim ~/.vnc/xstartup" Is this correct?
-
steeldriver almost 8 yearsNo
sudo
please, that is unnecessary and may cause ownership problems -
Uppili almost 8 yearsI can't find the xstartup file in .vnc. Should I want to create that?
-
steeldriver almost 8 yearsYes you will need to create it if you want something other than the default gray background + terminal - see Customising your session
-
Uppili almost 8 yearsThanks for your answers. I'm trying for ubuntu desktop in VNC. So I create the file. Once again Thanks for your help.
-
steeldriver almost 8 yearsJust a heads up - the full (Unity-based) Ubuntu desktop doesn't play well with VNC in my experience - you will likely find that a 'lighter' desktop works better