My question is about Linux in general but lets suppose my ubuntu isn't working property, booting in tty or whatever. I have no internet connection but I have ubuntu live cd. Is it possible to reinstall the desktop environment from live cd?
Yes it is. Either by using the CD as a repository, or by booting into the live session and downloading the package manually and then installing from your normal OS or even by setting up a
1. Use the CD as a repository.
Say that you've screwed up your desktop and are booting to a command line with no internet access (which shouldn't happen, you can have internet even without a GUI). OK, you can put your CD in your drive and then run
If all goes well, that should detect your CD, mount it and parse it for packages. Once that's done, run
NOTE: I have not tested this but it is relatively well documented. See, for example, here.
2. Boot into the live session and get the packages you want.
This one requires that you actually have a working internet connection in the live CD environment. First, boot into your normal (broken) OS and install
Once you have it installed run
Then, take the file that was just generated (
Now, boot back into your local system to install it:
That should result in a list of
I also found something called keryx which might be worth checking out:
Finally, you can also do all this manually with
The command above will download all
3. Use the live CD to set up a
Yes, any ~700MB CD should install a desktop environment without downloading anything from the repositories.
Keep in mind a livecd is not always the same as the "Install CD", e.g. there is a Debian Live CD and a Debian Install CD.