Results 1 to 7 of 7

Thread: I broke my server :(

  1. #1
    Join Date
    Mar 2009
    Location
    Birmingham, UK
    Beans
    42
    Distro
    Xubuntu 12.10 Quantal Quetzal

    I broke my server :(

    Hi,

    I installed ubuntu-desktop on top of my 12.04 server install in order to easily activate the ATI drivers.

    I then used tasksel to remove ubuntu-desktop and restarted my machine, it is now broke.

    I have tried fixing dependencies to no avail, on boot it seems to stall on starting the apache web server although i'm not completely sure as the message isn't printing on the screen properly.

    Any ideas of how to fix this without a re-install?

  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: I broke my server :(

    Can you get to a console by pressing ctrl-alt-f1 etc?

  3. #3
    Join Date
    Mar 2009
    Location
    Birmingham, UK
    Beans
    42
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: I broke my server :(

    Yeah I can,

    Looks like I'm going to have to re-install ubuntu-desktop now anyway.

    I'm trying to run a server setup for me, that runs xbmc as a front end for the Mrs, hence installing the desktop in the first place for the drivers.

    Now I have an issue with no sound so it's seeming that it may be simpler to leave the desktop on there?

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

    Re: I broke my server :(

    As Lars suggests, you need to get to a shell interface on the machine. Either getting to a different console alt-F1, alt-F2, ..... might work.

    Another option is that you can ssh into the box from another to get to a shell interface and reinstall that GUI stuff.

    A few other related thoughts.
    * Loading a GUI onto a server has historically make the server less stable. X/Windows has bugs, Video drivers have bugs. They can crash servers.
    * If you do want/need a GUI, load the smallest one that works and avoid GPU acceleration - which seems to be the buggiest code. I've used LXDE. (sudo apt-get install lxde) ; don't load the entire lxde-desktop, just the interface.

    Having a Linux server means using the shell. Live it, know it, love it.

    --- update ----
    Running XBMC on top of a "server" makes this into a media center that happens to share files. I'm a long time XBMC user too, but that is a different question for a different thread. I don't think you need a "desktop" to load XBMC as xbmc-standalone will handle that.
    Last edited by TheFu; September 1st, 2012 at 01:37 PM. Reason: xbmc stuff.

  5. #5
    Join Date
    Mar 2009
    Location
    Birmingham, UK
    Beans
    42
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: I broke my server :(

    Yeah, best of both worlds didn't work out so well.

    Thanks for the advice guys, I know how i'm going to proceed from here. It involves a format ; )

  6. #6
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: I broke my server :(

    just do this after you install the server again.

    Code:
    sudo apt-get install xorg-server
    sudo add-apt-repository ppa:team-xbmc/ppa
    sudo apt-get update
    sudo apt-get install xbmc-ppa-keyring
    sudo apt-get install xbmc
    Now, get it to automatically login to an already existing user.
    Code:
    sudo apt-get install mingetty
    sudo nano /etc/init/tty1.conf
    Replace the line that starts with
    Code:
    exec /sbin/getty
    with
    Code:
    exec /sbin/mingetty --autologin USERNAME tty1
    where username is the name of the user.

    I myself used a different setup at this point, as XBMC was a bit cranky without pulseaudio.

    However, you can just add xbmc to ~/.profile , and it will run on login.

    In case you run into the same audio problems that I did, run xbmc on top of openbox

    Code:
    sudo apt-get install openbox
    Code:
    nano ~/.xinitrc
    At the bottom of the file, add
    Code:
    exec openbox-session
    Now, start openbox once.
    Code:
    startx
    Exit by right clicking, and choosing "quit"

    Now, add xbmc and pulseaudio to the openbox startup
    Code:
    nano ~/.config/openbox/autostart
    place this inside.
    Code:
    #!/bin/bash
    pulseaudio -D
    sleep 10
    xbmc
    shutdown -h now
    Allow shutdown without password
    Code:
    sudo chmod u+s /sbin/shutdown
    Note that much of this is from memory - might require some tweaking.
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  7. #7
    Join Date
    Mar 2009
    Location
    Birmingham, UK
    Beans
    42
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: I broke my server :(

    Thanks sandyd, it's now working great.

Tags for this Thread

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
  •