DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The problem is I used debootstrap to install a full debian OS with a gnome desktop package.
I'm just wondering why the OS allows me to login but doesn't open up the desktop.
When I boot up my live debian USB the hdd with the new OS doesn't mount automatically.
When I mount the correct partition, it shows there is 3.9GB of data on it.
This must mean the OS has been installed.
However, I'm wondering why the gnome desktop won't open up.
You shouldn't use the X server (graphical desktop) as root -- it is fundamentally insecure.
Generate a normal user for day-to-day tasks using the `adduser` command.
If you have a console login and you have used tasksel to install GNOME then you can start the desktop using:
Code:
startx
However, tasksel would have also dragged in & installed the GNOME Display Manager (GDM) and you would use this to login rather than the console.
If you have installed GNOME manually, you may also need GDM (although I'm pretty sure this is part of the GNOME package in Debian) and you may need to enable it.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Rep:
Quote:
Originally Posted by replica9000
Setup the target partition for install:
----------------------------------------------------------------------------------------
Create your filesystem, your mount point, and mount your partition:
1. Since I already have a hdd with an ext4 partition, at this stage I used the following commands (my partition is also sda1):
Code:
root@host# mkdir /mnt/deboot
root@host# mount /dev/sda1 /mnt/deboot
As you can see, I didn't use:
Code:
root@host# mount -t ext4 /dev/sda1 /mnt/deboot
Will this have caused the problem in my install?
Since I'm using a live USB without persistence, unfortunately I can't go into debootstrap.log for error messages.
Quote:
Installing the base system:
----------------------------------------------------------------------------------------
2. As per your previous answer, I substituted 'unstable' with 'stable' to get the stable version of Debian.
However, whilst the package was installing, I did read some error messages about not having relevant firmware.
So what would be the command to get the debian_non-free version?
I'm thinking of using debootstrap again for a different target partition on my hdd.
Once I have the answers to the above questions, then I should be good to go.
3. The debootstrap method binds and copies files from the host OS which is very economical. In my particular situation, I'm using a slightly altered debian live USB. So I'm hoping that the relevant host files haven't had some records deleted.
However, that's just my situation and shouldn't affect others who didn't make their live USB with the Yumi program.
Like Head_on_a_stick suggested, gdm3 wasn't automatically installed, since gnome-shell doesn't seem to depend on it. You can install it using apt-get install gdm3 .
Quote:
Originally Posted by Higgsboson
As you can see, I didn't use:
Code:
root@host# mount -t ext4 /dev/sda1 /mnt/deboot
Will this have caused the problem in my install?
Since I'm using a live USB without persistence, unfortunately I can't go into debootstrap.log for error messages.
I can't see that causing an issue. debootstrap.log would be on the partition you are installing Debian to, but is removed once debootstrap is successfully completed.
I just did a test install of stable in a virtual machine, only doing apt-get install gdm3 gnome-shell, and everything appears fine.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Rep:
Quote:
Originally Posted by replica9000
Like Head_on_a_stick suggested, gdm3 wasn't automatically installed, since gnome-shell doesn't seem to depend on it. You can install it using apt-get install gdm3 .
Thank you. So I have a workable debian installation on my hdd! Well, that's a good thing!
Also, gdm3 is to do with the shell. But somehow the shell isn't loading.
I used:
Code:
apt-get install gdm3
The output was 'unable to get some archives'. The error message suggested 'apt-get update', which I did.
The update worked which must mean the network connection is fine. I also did 'apt-get upgrade'.
But the repeated error message is 'could not resolve ftp.us.debian.org'
I then tried:
Code:
apt-get install gnome-shell
But the output is '0 upgraded, 0 newly installed' etc...
So this seems like it's got all the gnome files but for some reason it's not activating.
Even so, this clearly shows debootstrap works. I'm just wondering what the problem is in my scenario.
The output was 'unable to get some archives'. The error message suggested 'apt-get update', which I did.
The update worked which must mean the network connection is fine. I also did 'apt-get upgrade'.
But the repeated error message is 'could not resolve ftp.us.debian.org'
So I'm confused whether your network connection is good or not. What does ifconfig show? You should see an entry for eth0 and for lo. If only for lo, then you should run dhclient eth0 to activate your network connection (assuming you use DHCP). If that solves your network issue, you need to add this to your /etc/network/interfaces file.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Rep:
Quote:
Originally Posted by replica9000
So I'm confused whether your network connection is good or not. What does ifconfig show? You should see an entry for eth0 and for lo. If only for lo, then you should run dhclient eth0 to activate your network connection (assuming you use DHCP).
I don't actually have that.
The output for 'ifconfig' is:
However, whilst the package was installing, I did read some error messages about not having relevant firmware.
The firmware you will need to install depends on your hardware. Maybe what is causing problems with internet connection. Add contrib and non-free to the end of each line in /etc/apt/sources.list then run update apt for nonfree and additional repositories. Then
Thanks for your post. That is a good site for using debootstrap.
However, it is very complicated for me. It seems the debootstrap tutorial on this thread is a much simpler version. And replica9000 has tested it.
I did find on the debian site, it asks you to use a local mirror site. I was using
Code:
ftp.us.debian.org/debian/
but since I'm in the UK, I should be better off using
Code:
ftp.uk.debian.org/debian/
Quote:
The firmware you will need to install depends on your hardware. Maybe what is causing problems with internet connection. Add contrib and non-free to the end of each line in /etc/apt/sources.list then run update apt for nonfree and additional repositories. Then
Code:
apt-cache search firmware
will give a list of firmware packages available.
I'm not entirely sure how to do that.
I could run debootstrap and install onto a different partition on my hdd. I could then use the UK mirror for downloads. Then I could install debian 7.7 non-free rather than debian 7.7 stable. But I don't know how to substitute the following command for the non-free version:
Do I simply add 'stable_non_free' where it says 'stable'?
Will debian 7.7 non-free sort out my firmware problem, do you think?
Also, is trying the above method a viable option?
Just download an unofficial netinstall .iso with the non-free firmware included and install using the "normal" method (ie, burn the image to a CD and boot up from that): http://ftp.acc.umu.se/mirror/cdimage...ding-firmware/
You seem intent on using debbootstrap (against all advice to the contrary) and then complain because it's "very complicated"...
If you had used the same method of installation that 99% of Debian users employ you would be using your Debian system by now rather than making countless posts on a support forum. http://www.skidmore.edu/~pdwyer/e/eoc/help_vampire.htm
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Rep:
Quote:
Originally Posted by Head_on_a_Stick
Just download an unofficial netinstall .iso with the non-free firmware included and install using the "normal" method (ie, burn the image to a CD and boot up from that): http://ftp.acc.umu.se/mirror/cdimage...ding-firmware/
Yes, I have ordered some dvd r-w and will be making a cd netinstall soon.
Quote:
You seem intent on using debbootstrap (against all advice to the contrary) and then complain because it's "very complicated"...
Yes, but this is a thread about debootstrap - not cd neinstalls. Debian is offering more programs for people to use.
The programs will be a complete waste if nobody uses them. Their benefits never be understood.
I'm just trying to learn about the debootstrap program and see what benefits it can offer.
I'm wondering if I need to do something like that?
That is the reason I posted that website. If copying the /etc/network/interfaces from the host system isn't working maybe setting up static ip and/or copy /etc/resolv.conf from the host system will help, if your using a wired connection. Before you use wireless, firmware will have to be installed and extra configuration steps taken.
Quote:
However, it is very complicated for me. It seems the debootstrap tutorial on this thread is a much simpler version. And replica9000 has tested it.
It is if everything works. If not, then you got to pop the hood, as the saying goes, find out what is wrong and fix it. Which usually means using the command line and lots of googling.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.