Difference between revisions of "Ubuntu 12.04 Desktop Issues"

From FreekiWiki
Jump to navigation Jump to search
 
(15 intermediate revisions by 5 users not shown)
Line 4: Line 4:
 
==Resolution==
 
==Resolution==
  
 +
 +
===Broken packages===
 
If its completely broken:
 
If its completely broken:
it rarely is.
+
it rarely is. More likely the process got interrupted and there are lots of packages in a broken state. It is both possible and desirable to fix this rather than blindly re-installing.  
  
 
Boot into recovery mode(see below)
 
Boot into recovery mode(see below)
Line 13: Line 15:
  
  
normally this will tell you what command you need to run. Normally <code>dpkg --reconfigure  -a</code> and/or<code>apt-get -f install</code>. These might need to be repeated. When done run  
+
normally this will tell you what command you need to run. Normally <code>dpkg --reconfigure  -a</code> and/or<code>apt-get -f install</code>. If after running these commands you get a message saying <code>Could not perform immediate configuration on [package].Please see man 5 apt.conf under APT::Immediate-Configure for details.</code>, try running
 +
 
 +
apt-get -f install -o APT::Immediate-Configure=0
 +
 
 +
These might need to be repeated. When done run  
  
 
  sudo apt-get update && sudo apt-get upgrade
 
  sudo apt-get update && sudo apt-get upgrade
Line 25: Line 31:
 
Rinse, lather and repeat as necessary.
 
Rinse, lather and repeat as necessary.
  
On a possibly related note
+
On a possibly related note:
  
Sometimes networking is broken characterized by a message that appears on boot  
+
===Networking Can Not Start on Boot===
 +
Sometimes networking is broken, characterized by a message that appears on boot:
 
  Waiting for up to 60 more seconds for network configuration...
 
  Waiting for up to 60 more seconds for network configuration...
  
 +
Network interfaces are defined in <code>/etc/udev/rules.d/70-persistent-net.rules</code>. The system thinks it has eth0, but the network card is named eth1. You can safely rename this file and it will be recreated on boot, otherwise edit it so that network card present is name correctly. This file uses mac address to identify cards. Use ifconfig -a to identify them.
 +
 +
sudo dhclient eth1 will bring up networking in the mean time(and is a good test to identify this issue).
 +
 +
Something else to try is to edit <code>/etc/network/interfaces</code>.  In the file, delete everything below "iface lo inet loopback" and restart the computer.  Interfaces information is stored elsewhere in 12.04 and can conflict with the ones in this file.
 +
 +
===Network Manager Does Not Start===
 +
In addition it might be necessary to move/delete  <code>/var/lib/NetworkManager/NetworkManager.state</code> in order to get network manager to start correctly.
  
otherwise:  
+
===Dealing with Unity Interface Issues===
install <del>Mate and Gnome Classic</del> XFCE as this is what our next distro will be based on.
+
otherwise: (Not technically broken but might as well be for the effect on users not geared up, or prepared, or warned that they will have to deal with a whole new interface).
 +
install <del>Mate and Gnome Classic</del> the new Free Geek desktop (based on Xubuntu but modelled to be close to the 10.04 experience) as this is what our next distro will be based on.
 
You should inform the user that this is what we intend to do and explain the following.
 
You should inform the user that this is what we intend to do and explain the following.
  
"We will install XFCE on Ubuntu 12.04 as this is what the next Free Geek distro will be based upon, and it will ensure you continue receiving updates into the future. As you are among the first users of the new system we will extend the software support on your system so that you know that we will continue to support it. With your permission we would like to contact you in future to see what your experience with the new system has been".  
+
"We will install a custom Free Geek desktop based on (X)Ubuntu 12.04 as this is what the next Free Geek distro will be based upon, and it will ensure you continue receiving updates into the future. As you are among the first users of the new system we will extend the software support on your system so that you know that we will continue to support it. With your permission we would like to contact you in future to see what your experience with the new system has been".  
  
 
If they agree to this please send a note with their name, contact info and system id to paulm@freegeek.
 
If they agree to this please send a note with their name, contact info and system id to paulm@freegeek.
Line 49: Line 65:
 
<code>mount -o remount,rw /</code>
 
<code>mount -o remount,rw /</code>
  
==Installing Xubuntu/Freegeek Desktop in a Ubuntu 12.04 system==
+
==Running the upgrade script for 12.04==
 +
 
 +
Boot into recovery mode into networking
 +
 
 +
do:
 +
  wget bruno/upgrade-ubuntu.sh
  
We now have our own desktop design based on Xubuntu.
+
The script will prompt multiple times asking for permission to install certain things. Enter "yes" for all of these EXCEPT for when it asks to restart.  
  
Note: to open a terminal in Unity, press the windows key, or click on the Ubuntu symbol top left ("dash home"), then type term and click on terminal when it appears below.
+
When it asks to restart, do
 +
  N
  
To root a box: press shift as normal, select networking, then root shell. You will then be able to run the following commands. Type 'exit' and chose resume to login as the users.
+
And enter
  
Ensure the following line is in <code>/etc/apt/sources.list</code> uncommented.
+
   x
   deb http://apt.freegeek.org/ubuntu lucid main
 
  
Then do:
+
to exit.
  
<code>sudo apt-get install xubuntu-desktop freegeek-default-settings</code>
+
Then, run the script one more time to install a few more things that will complete the upgrade.
  
<code>cp /etc/shadow /etc/shadow.bak</code>
+
==Installing Xubuntu/Freegeek Desktop in a Ubuntu 12.04 system==
  
Resume normal boot. Set each users session to Free Geek session and login. It will remember this setting for future instances.  
+
To convert a system from Ubuntu 12.04 to Xubuntu 12.04 perform the following steps, noting that you will need to be connected to the internet with an ethernet (network) cable plugged into your computer.
  
Don't forget to <code>cp /etc/shadow.bak /etc/shadow</code> at the end.
+
First, refer to the instructions at [[Password_reset#Ubuntu_12.04]] to reach the root prompt and remount the filesystem; do not proceed to the password reset instructions.
  
This will install the Xfce4/Xubunutu environment with Xubuntu & Free Geek tweaks.
+
Enter the following command to view your available network interfaces:
 +
ip link
  
===Temporary Bug Fix===
+
The output should include one or more references to "eth0", "eth1", or "eth" followed by another number. Run the following command, substituting whichever was printed for "eth0":
(this will go away when the package gets updated)
+
dhclient eth0
  
correct typo:
+
If more than one "eth#" was indicated by <code>ip link</code> then rerun the <code>dhclient</code> command for each of them to ensure that whichever network interface you are using is activated.
  
edit /etc/xdg/xdg-freegeek/xfce4/panel/default.xml
+
Open the file '''/etc/apt/sources.list.d/freegeek-extras.list''' by entering the command
 +
nano /etc/apt/sources.list.d/freegeek-extras.list
  
 +
If there is already text in the file then use the arrow keys to navigate to the bottom and press Enter to add a new blank line. On the blank line type the following:
 +
deb http://apt.freegeek.org/ubuntu precise main
  
and replace Application with Applications
+
Invoke the Save command by pressing Ctrl+O, press Enter to confirm the file name to be saved as (no need to change what is already displayed), then press Ctrl+X to close the file.
  
in vim:
+
Remove Unity with the following command:
 +
  apt-get purge unity*
 +
Use <code>dpkg -l | grep unity</code> to find other packages, and PURGE them!
  
vim /etc/xdg/xdg-freegeek/xfce4/panel/default.xml
+
Next run the commands:
 +
sudo apt-get update
 +
sudo apt-get install xubuntu-desktop freegeek-default-settings
  
  /App[Enter]eas[Esc]ZZ
+
Once this is completed, restart your system with the command
 +
  reboot
  
# /App - search for App
+
You may be returned to the GRUB menu as your system is restarting; press enter on the default option at the top of the list to continue booting. Once you reach the login screen be sure to select Free Geek Session from the Session drop-down list before entering your password.
# e - go to End of word
 
# a s - Append s
 
# ZZ - (or :wq) write and quit
 
  
Do this before logging in.
 
After logging in right click on the icon next to Applications and set it to display the label Places instead of the icon via 'properties'. Then right click on the desktop, chose 'Desktop Settings' ->'Icons'  then check 'Show thumbnails'.
 
  
 
===LightDM Wierdness===
 
===LightDM Wierdness===
Line 112: Line 137:
 
  sudo apt-get install xubuntu-desktop xubuntu-default-settings lightdm-gtk-greeter lightdm
 
  sudo apt-get install xubuntu-desktop xubuntu-default-settings lightdm-gtk-greeter lightdm
  
===Icon Modification===
 
 
This is obsolete as we set the icon theme in the freegeek-default-settings package
 
 
Extract this file into "/usr/share/icons/" and change the icon theme in the Appearances options to give the user a nice blue power icon on the shutdown panel applet.
 
  
[[File:Freegeek-xubuntu-icon-theme.tar.gz]]
 
  
 
===In case of problems===
 
===In case of problems===

Latest revision as of 15:22, 10 January 2014

People are getting prompted to install 12.0.4.1, doing it and then either it breaks or they are totally lost.

Resolution

Broken packages

If its completely broken: it rarely is. More likely the process got interrupted and there are lots of packages in a broken state. It is both possible and desirable to fix this rather than blindly re-installing.

Boot into recovery mode(see below)

run:

sudo apt-get update && sudo apt-get upgrade


normally this will tell you what command you need to run. Normally dpkg --reconfigure -a and/orapt-get -f install. If after running these commands you get a message saying Could not perform immediate configuration on [package].Please see man 5 apt.conf under APT::Immediate-Configure for details., try running

apt-get -f install -o APT::Immediate-Configure=0

These might need to be repeated. When done run

sudo apt-get update && sudo apt-get upgrade

then

sudo apt-get update && sudo apt-get dist-upgrade

before proceeding.

Rinse, lather and repeat as necessary.

On a possibly related note:

Networking Can Not Start on Boot

Sometimes networking is broken, characterized by a message that appears on boot:

Waiting for up to 60 more seconds for network configuration...

Network interfaces are defined in /etc/udev/rules.d/70-persistent-net.rules. The system thinks it has eth0, but the network card is named eth1. You can safely rename this file and it will be recreated on boot, otherwise edit it so that network card present is name correctly. This file uses mac address to identify cards. Use ifconfig -a to identify them.

sudo dhclient eth1 will bring up networking in the mean time(and is a good test to identify this issue).

Something else to try is to edit /etc/network/interfaces. In the file, delete everything below "iface lo inet loopback" and restart the computer. Interfaces information is stored elsewhere in 12.04 and can conflict with the ones in this file.

Network Manager Does Not Start

In addition it might be necessary to move/delete /var/lib/NetworkManager/NetworkManager.state in order to get network manager to start correctly.

Dealing with Unity Interface Issues

otherwise: (Not technically broken but might as well be for the effect on users not geared up, or prepared, or warned that they will have to deal with a whole new interface). install Mate and Gnome Classic the new Free Geek desktop (based on Xubuntu but modelled to be close to the 10.04 experience) as this is what our next distro will be based on. You should inform the user that this is what we intend to do and explain the following.

"We will install a custom Free Geek desktop based on (X)Ubuntu 12.04 as this is what the next Free Geek distro will be based upon, and it will ensure you continue receiving updates into the future. As you are among the first users of the new system we will extend the software support on your system so that you know that we will continue to support it. With your permission we would like to contact you in future to see what your experience with the new system has been".

If they agree to this please send a note with their name, contact info and system id to paulm@freegeek.

Recovery Mode in 12.04

The recovery mode in 12.04 is a little bit different. By default it mounts the root (/) filesystem as READ ONLY. This means you will not be able to back up the password, edit files, etc.

To fix just make sure that you select the networking option from the recovery menu. This will set everything up for you.

There is a command that will remount / as "rw" (read-write):

mount -o remount,rw /

Running the upgrade script for 12.04

Boot into recovery mode into networking

do:

 wget bruno/upgrade-ubuntu.sh

The script will prompt multiple times asking for permission to install certain things. Enter "yes" for all of these EXCEPT for when it asks to restart.

When it asks to restart, do

 N

And enter

 x

to exit.

Then, run the script one more time to install a few more things that will complete the upgrade.

Installing Xubuntu/Freegeek Desktop in a Ubuntu 12.04 system

To convert a system from Ubuntu 12.04 to Xubuntu 12.04 perform the following steps, noting that you will need to be connected to the internet with an ethernet (network) cable plugged into your computer.

First, refer to the instructions at Password_reset#Ubuntu_12.04 to reach the root prompt and remount the filesystem; do not proceed to the password reset instructions.

Enter the following command to view your available network interfaces:

ip link

The output should include one or more references to "eth0", "eth1", or "eth" followed by another number. Run the following command, substituting whichever was printed for "eth0":

dhclient eth0

If more than one "eth#" was indicated by ip link then rerun the dhclient command for each of them to ensure that whichever network interface you are using is activated.

Open the file /etc/apt/sources.list.d/freegeek-extras.list by entering the command

nano /etc/apt/sources.list.d/freegeek-extras.list

If there is already text in the file then use the arrow keys to navigate to the bottom and press Enter to add a new blank line. On the blank line type the following:

deb http://apt.freegeek.org/ubuntu precise main

Invoke the Save command by pressing Ctrl+O, press Enter to confirm the file name to be saved as (no need to change what is already displayed), then press Ctrl+X to close the file.

Remove Unity with the following command:

 apt-get purge unity* 

Use dpkg -l | grep unity to find other packages, and PURGE them!

Next run the commands:

sudo apt-get update
sudo apt-get install xubuntu-desktop freegeek-default-settings

Once this is completed, restart your system with the command

reboot

You may be returned to the GRUB menu as your system is restarting; press enter on the default option at the top of the list to continue booting. Once you reach the login screen be sure to select Free Geek Session from the Session drop-down list before entering your password.


LightDM Wierdness

LightDM is the Display Manager "of the future..." basically its a fancy login screen that can make use of HTML (however that works). Anyway there a few things you need to do to get it working after a Lucid to Precise upgrade.

Uninstall:

sudo apt-get purge lightdm

Move this folder to the home directory or something if it exists:

sudo mv /etc/lightdm/ /root/

Install the necessary packages:

sudo apt-get install xubuntu-desktop xubuntu-default-settings lightdm-gtk-greeter lightdm


In case of problems

If you do these things an end up a a partially working system, i.e. lightdm is behaving strangely / not working, run these three commands:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

and reboot!

Selecting the Default Session

You switch between sessions on the log in screen by clicking on the Ubuntu logo/circle next to the username. This is non-obvious. Once you have selected a session once it will remember your choice.


Don't forget to do this for every user.


You will need to backup the password file (cp /etc/shadow /etc/shadow.bak) so you can change the password when doing this in Tech Support. Don't forget to copy the password file back over. (You don't need to do this if you have the password).

See notes in #Recovery Mode in 12.04.

Antelope in Tech Support (on the left) has a 12.04 virtual machine with Xubuntu on it.


Using the Unity Desktop

There is a basic tutorial on how to use Unity here, if you are interested:

http://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-basic-unity-interface-desktop-tutorial


THE FOLLOWING IS NOW OBSOLETE

Installing Mate and Gnome Classic

Mate

sudo add-apt-repository "deb http://packages.mate-desktop.org/repo/ubuntu precise main"
sudo apt-get update
sudo apt-get install mate-archive-keyring
sudo apt-get update
sudo apt-get install mate-core mate-desktop-environment

http://mate-desktop.org/install/#ubuntu

Make sure you put a shutdown button (and a logout button), on the top panel.


On Mate make sure you put a shutdown (and optionally a logout button), on the top panel, on gnome classic put a link to firefox (and evolution) there.

Gnome Classic

sudo apt-get install gnome-session-fallback Then put a link to firefox (and evolution) on the top panel. IIRC you need to press alt + right click to add things to the panel in Gnome Classic.

Tweaking

sudo apt-get install mate-indicator-applet mate-notification-daemon This will allow you to add the notification icon (i.e. the envelope in 10.04) on the panel and enable popup ballon notifications in Mate.

sudo apt-get install gnome-themes-extras community-themes shimmer-themes gtk-clearlooks-gperfection2-theme mate-icon-theme-faenza

This brings in extra themes. Faenza is a well regarded square icon theme. There are lots more

aptitude search theme

System -> Preferences -> Appearance allows the user to tweak the theme, selcting custom allows you to change the icons, controls window border, fonts as well.