Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Edit .profile with recovery/bootable USB

  1. #11
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Edit .profile with recovery/bootable USB

    Use any editor you like. That is a personal choice. vim, nano, ted, are a few. You probably want nano. There must be 50 different editors, but without a GUI, the number drops to the text-only editors.

    In recovery mode or using bootable media, you have to get the correct storage/partition/file system mounted somewhere, then determine the directory, then edit the file. The file may not already exist, so you'll create it new as part of the editing. I spent more time typing that than it would take to actually do it, once I knew the mounted location of the directory.

    There are many things that Windows-trained people assume which don't apply for any other OS made. Unlearning that stuff is a challenge.

    Sadly, Unix skills build on prior skills, so jumping into something is likely beyond current skills. There's all sorts of knowledge necessary to accomplish this task that are not intuitively obvious. Most people new to Linux should probably just do a fresh install. That's 10 minutes of time and you are done. Then restore any files from your backups made before the problem started. If you still need to modify the ~/.xprofile, use nano ~/.xprofile.

    Running sudo with GUI commands can break things. Best to avoid it completely for now.

    Learn basic Linux skills: http://linuxcommand.org/tlcl.php

    In Unix, there isn't 1-way to accomplish things. There are usually 50, 500, 50,000 ways. Which one is best depends on things only you know. I get that people want to know "what to type", but we can only say, "it depends on things we don't know." If I assume the device name and get it wrong, bad things. Really bad things. It can be frustrating for you, but it is also frustrating for us.

  2. #12
    Join Date
    Oct 2020
    Beans
    32

    Re: Edit .profile with recovery/bootable USB

    Thank you. I've ran nano ~/ .profile then nano ~/ .xprofile and they didn't open, but their contents weren't the same as when I was in the GUI,so I couldn't get rid of those 2 lines. Do I need to authenticate to get the full file or something?

    I'm sorry for sounding really stupid, I've not been using Ubuntu for very long.

  3. #13
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Edit .profile with recovery/bootable USB

    It appears that you've added spaces.
    Code:
    nano      ~/.xprofile
    is the command (no spaces in the filename part), but it won't work unless you login to the normal install with your normal userid. I attempted to explain that above. Unfortunately, I don't know how to explain how to get to the correct place to someone with extremely limited Linux skills in a forum. Sorry.

    But if you look at that link with the book, perhaps after some reading it will become clear?

    Maybe someone else can explain it? IDK.

    It is just a VM. I'd blow it away and to a fresh install, then restore any necessary files from my last good backup. A fresh install is 10 minutes and restoring a few files shouldn't be over 30 min, tops.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •