Nevals_zgb
Posts: 2
Joined: Tue Mar 24, 2020 5:53 pm

Problem after changing to CLI boot

Tue Mar 24, 2020 5:57 pm

Hello,

when I change boot fo CLI in raspi-config I have this error:

Code: Select all

pi@raspberrypi:~ $ sudo raspi-config
Removed /etc/systemd/system/default.target.
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/graphical.target.
rm: cannot remove '/etc/systemd/system/getty@tty1.service.d/autologin.conf': No such file or directory
And after I reboot Pi and start GUI with sudo startx there is no trash and other icons on desktop etc.

Can you help me please with this problem?

Thank you

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Problem after changing to CLI boot

Tue Mar 24, 2020 6:21 pm

Don't use sudo. You'll break the GUI.

Run
sudo chown -R pi:pi /home/pi
Then start Xwindows with startx [NO SUDO]
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Nevals_zgb
Posts: 2
Joined: Tue Mar 24, 2020 5:53 pm

Re: Problem after changing to CLI boot

Tue Mar 24, 2020 6:50 pm

Ok, thank you. I will run startx without sudo

What about this error after changing boot to CLI? Is this ok?

Code: Select all

Removed /etc/systemd/system/default.target.
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/graphical.target.
rm: cannot remove '/etc/systemd/system/getty@tty1.service.d/

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Problem after changing to CLI boot

Tue Mar 24, 2020 6:55 pm

Nevals_zgb wrote:
Tue Mar 24, 2020 6:50 pm
Ok, thank you. I will run startx without sudo

What about this error after changing boot to CLI? Is this ok?

Code: Select all

Removed /etc/systemd/system/default.target.
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/graphical.target.
rm: cannot remove '/etc/systemd/system/getty@tty1.service.d/
That should be fine. raspi-config tries to change a setting that does not need changing (just to make sure that the setting is correct)
If you get this kind of messages during boot it could indicate a problem...

Return to “Troubleshooting”