how to edit (or delete) sources list in commandline (no text editor, cannot install any new packages on limeted install)
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 :)
Related videos on Youtube
User1899289003
Updated on September 18, 2022Comments
-
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
- StylesFolder
What I did was:
- Adding a new WebSite in the server IIS with the path were I publish my WebApp (ex. C:\WebProjects\PublishedApp\Project Portal)
- 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 over 8 yearsIt's highly unlikely that you don't have one of
nano
orvi
installed. If not, try thesed
solution by izx. -
rob over 8 yearshey thanks, i have just found a few helpful answers. thanks anyway.
-
Lex Li almost 3 yearsPublish your app to the root of that web site, not an IIS application under the site.
- Project Name