how to edit (or delete) sources list in commandline (no text editor, cannot install any new packages on limeted install)

66

Pretty sure, you will have terminal editor called nano installed. You need to edit sources.list file with root privileges so run it with

$ sudo nano /etc/apt/sources.list

Now you can change the contents the same way as in graphical editor (apart from using mouse to move cursor - you need to use arrow keys).

When you're finished press Ctrl+x and then y to save changes and exit.

A side note: don't be afraid of running commands as root - your Linux will not do anything beyond what you will write in console yourself. And to know what you're doing you need to know at least basic commands. If you don't know what a command does - use man [command]. For you to change ownership of your home dir to root, you'd have to execute chown command, so no danger here :)

Share:
66

Related videos on Youtube

User1899289003
Author by

User1899289003

Updated on September 18, 2022

Comments

  • User1899289003
    User1899289003 over 1 year

    I just published my web app which has the following structure:

    • Project Name
      • StylesFolder
        • filename.css
        • anotherfile.css
      • JavaScriptFolder
        • bootstrap.js
      • Index.html

    What I did was:

    1. Adding a new WebSite in the server IIS with the path were I publish my WebApp (ex. C:\WebProjects\PublishedApp\Project Portal)
    2. Selecting my published app and converting into an application (The alias name was Project Name and the physical path was C:\WebProjects\PublishedApp\Project Portal\Project Name)

    The problem is when I try to see the website. I'm able to enter to 192.169.100.20:80/Project%Name/ and my index page is loaded (I can see the text, inputs, etc.) but I cannot see any stlye and javascript input and when I check the console logs all the files are getting a 404 error response.

    When I check which URL is used by the files I can see that they are trying to get accessed by 192.169.100.20:80/Project Name/StylesFolder/filename.css etc...

    So my question is what can I do to remove the /Project%Name/ string from the URL?

    PD. I'm using IIS 7

    • muru
      muru over 8 years
      It's highly unlikely that you don't have one of nano or vi installed. If not, try the sed solution by izx.
    • rob
      rob over 8 years
      hey thanks, i have just found a few helpful answers. thanks anyway.
    • Lex Li
      Lex Li almost 3 years
      Publish your app to the root of that web site, not an IIS application under the site.