0

I changed my ~/.profile and added few lines to make it run when i login to my user account :

google-chrome # to start chrome
code # to start vs code
exit 0

but since then i can't login i tried to use guest session to login with ctrl+alt+f1 but whenever i type my username and password i get logged in then it asks me to log in again, if I can undo my changes to that file I think I will be able to log in back normally but every solution i found depends on the ctrl+alt+f1-f6 solution which won't work for me...

1 Answers1

1

You can boot from Ubuntu install CD or USB. Your hard drive should automount in a subdirectory in /media/ubuntu/harddrive_blockdevice_number/ which will be the root directory. Then edit the profile from that directory:

sudo vi home/username/.profile

stumblebee
  • 4,379