I am a new Ubuntu and Linux user coming from windows and have a problem installing Postgres on Ubuntu 17.10.
(By the way I have no clue what Wayland is)
well I tried to follow this link: Linux downloads (Ubuntu) | PostgreSQL coupled with this tut : Install PostgreSQL 10 on Ubuntu | Linux Hint
I am stuck when I want to edit /etc/apt/sources.list as I can open it and edit it with text editor but cannot save it. I can't either create a new file inside /etc/apt/sources.list.d/
It says I don't have the rights.
Then in console I typed:
ls -la ~/.Xauthority
which returns :
ls: cannot access '/home/maxence/.Xauthority': No such file or directory
Then I stumbled on this thread How do I create the .Xauthority file? that says we have to create a kind of link poiting to the Xauthority file that resides somewhere else.
But again I am stuck on this bit :
- Open System > Preferences > Startup Applications
Where do I go to open system ??
Question 1 Editing configuration files
Do you use
sudo
in front of your text editor when you try to edit /etc/apt/sources.list ?This is required to edit any file inside the
/etc/
directory.For example
sudo nano /etc/apt/sources.list
For more information on
sudo
and access right on Linux, you can see https://help.ubuntu.com/community/RootSudoQuestion 2 .Xauthority
Are you on a Ubuntu server distribution (console only) or with a graphical interface ?
Question 3 Access to preferences
If you're on a standard Ubuntu edition (with Unity as GUI), preferences are the gear icon ⚙ in the sidebar.