Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Tuesday, July 17, 2012

Ubuntu 12.04 tweaking


I wrote about experiencing a lot of issues with upgrade to Ubuntu 12.04. I survived that, but had to do a bunch of tweaking to make the system usable, and it's still not ideal yet. :(

Below is a brief list of my tweaks and some useful links.

First, a very helpful article about configuring Unity:
http://askubuntu.com/questions/29553/how-can-i-configure-unity

My Launcher changes:
- Run CompizConfig Settings Manager
- Reduce the Launcher icon size
- Backlight Mode -> Backlight Toggles

Customize workspace layout:
- Run CompizConfig Settings Manager
- Open General -> General Options -> Desktop Size
- Modify Horizontal & Vertical Virtual Size
or
- Run gconf-editor
- Open apps/compiz-1/general/screen0/options
- Change hsize/vsize

Disable workspace switcher animation:
- Run CompizConfig Settings Manager.
- Desktop -> Desktop Wall -> Viewport Switching: set Wall Sliding Duration to 0

Add task bar:
Solution 1: Use tint2
- http://linuxandfriends.com/2011/10/29/how-to-add-a-taskbar-in-ubuntu-11-10/
- The problem with tint2 is it does not work properly with workspaces - it shows all running applications on the task bar

Solution 2: Use GNOME panel
- Run gnome-panel - it will display normal GNOME top and bottom panels
- Use Super+Alt+Right-Click on the top panel, select "Delete This Panel"
- The bottom panel seem to work fine as a task bar
- Customization: http://askubuntu.com/questions/69576/how-to-customize-the-gnome-classic-panel
- cp /usr/share/themes/Ambiance/gtk-3.0/apps/gnome-panel.css ~/.config/gtk-3.0/gtk.css

Pidgin icon is hidden:
It is under the Envelope icon
http://askubuntu.com/questions/67312/how-do-i-enable-the-pidgin-system-tray-icon

Configure time:
http://blog.mattrudge.net/2012/02/11/custom-date-time-format-in-the-unity-tray/

Grub: Save the last selected system for the next boot:
- Open /etc/default/grub:
- Change "GRUB_DEFAULT=0" to "GRUB_DEFAULT=saved"
- Add "GRUB_SAVEDEFAULT=true"


More links:
http://www.webupd8.org/2011/10/things-to-tweak-after-installing-ubuntu.html
http://castrojo.tumblr.com/post/4795149014/the-power-users-guide-to-unity
http://www.techsupportalert.com/content/ubuntu-tips-and-tricks.htm
http://news.softpedia.com/news/Top-10-Ubuntu-11-04-Unity-Panel-Applets-208034.shtml

Saturday, May 26, 2012

Surviving upgrade to Ubuntu 12.04

I installed Ubuntu 11.10 as a second system on my new PC some time ago, but never had time to fix all the issues with it. One of them was a problem with Logitech wireless USB headset, which was just not working for some reason. Updates and some tweaks did not help, so yesterday I decided to upgrade to the latest Ubuntu 12.04.

What a huge mistake!!!

I was using GNOME desktop - never could get used to the new Unity UI - it was just too limited. After the upgrade my GNOME session was completely broken! The display resolution dropped to default. The two monitors configuration was lost switching to the mirrored option. Windows did not have borders and title bars, they could not be moved or resized, which was especially annoying when I tried to change screen resolution and desktop configuration - I just could not get to the option I needed, as it was out of the screen! Any change to the UI settings (like an attempt to add more workspaces) broke something. A couple times I got an empty desktop without any controls - I could not even log off or restart the system properly! The keyboard shortcuts did not work - in such an empty desktop situation I could not start the terminal. It was a disaster! The system became absolutely unusable!

Luckily I could at least start a browser and access Internet. With help from Google I could fix some issues. The key was to start CompizConfig Settings Manager, which I already had installed - most of the problems with UI are due to the disabled settings there. I enabled Window Decorations in the Effects section; Move Window, Resize Window, and Application Switcher in the Window Management. After that I could at least use the UI. Apparently fixing keyboard shortcuts was not that easy though, as in 12.04 they are handled some special way, and in the GNOME desktop they are simply broken. There were other things still not working properly, so I had to bite the bullet and switch to the standard Unity UI.

Unfortunately this did not fix all the issues. Keyboard shortcuts with the Windows (Super) key did not work, changing those in System Settings - Keyboard - Shortcuts did not have any effect. Looks like the Super key is assigned to Unity, and cannot be used for anything else! Pressing Super+1..9 starts the corresponding shortcut from the launcher, and this overrides any other assignments. I was always using Super+1..4 to switch between the workspaces, and just could not live without it, so had to make it work somehow. Apparently the only way to change that is to completely remove the Super key assignment from the Unity. It can be done in the CompizConfig Settings Manager: Desktop - Unity - Key to show the launcher. After that some shortcuts with the Super key start working - now I can switch between the workspaces, but some keys are still lost. Super+E, which I used to open the Home folder, is still not working. Well, have to use Ctrl+Alt+E for now until I find the solution.

Another annoying thing, which I found, was the mouse sticking at the edge of the monitor when it's moving from one display to another. Luckily it's just an option. Open System Settings - Displays, and turn off the Sticky edges. Another option there, which one might want to change too, is the Launcher placement. I didn't want it to show on both monitors, and thanks to Ubuntu developers, this is customizable.

Well, these are just the first steps with the "latest and greatest" Ubuntu. I'm sure I will find more changes in the system, which break my usual workflow, but at least now it is more or less usable. Oh, and my wireless headset is now working! I have not yet tried the other sound devices though. :)


Sunday, April 24, 2011

New PC: Video cards swapping - II

Yesterday I decided to swap the video cards back.

Regardless of the good cooler, the 9800GT was becoming too hot. Apparently there is just not enough air and ventilation - thanks again to Dell motherboard design. The video card is positioned at the very bottom, next to the only PCI slot, so there is less than an inch space between the radiator and the bottom of the main case chamber. The optional fans of the Turbo Module barely fit there, almost touching the wires. Under heavy load the card temperature was over 100°C!

So I decided to return the original ATI HD5670 back - it's a bit less powerful, but being newer it uses less power than 9800GT, so runs much cooler. I put the card back thinking I was just returning to the original configuration, but what a mistake! Well, the old PC didn't have any issues - Windows XP just reused the nVidia driver, I just disabled autostart of the Catalyst, which was complaining about the missing ATI card.

Windows 7 in the new PC didn't have problems either - again, just reused the ATI driver, and I re-enabled the Catalyst autostart.

But completely different story with Ubuntu. It just didn't boot to the GUI! The monitors stayed black and were blinking with the power indicators, which meant there was no proper signal from the video card. Booting in recovery mode and attempt to reconfigure graphics didn't help. Neither the playing with xorg.conf. I removed everything related to nVidia - no luck. Removed ATI drivers as well - nothing... Then somewhere in the logs I noticed mentioning of VMWare and some warnings. I remembered that VMWare gets pretty deeply into the system, it even compiled some kernel modules during installation. So I decided to give it a try. Found how to uninstall it (followed instructions on this page: sudo vmware-installer -u vmware-player), and then after more playing with recovery mode that the system finally could boot successfully into X.

It wasn't the end though. There was no network connection! Apparently when VMWare was ununstalled, it took the network with it. More googling helped to find that "eth0" is not in /etc/network/interfaces anymore. Just added it to the first line ("auto lo eth0"), rebooted, and voilĂ  - it worked!

Now I have just reinstalled ATI drivers, and re-configured the multi-display mode, and finally my computer is working again. No more experiments!

Thursday, February 10, 2011

New PC

In January I switched from a contract to a full time position at Mozilla, and as an employee I was eligible for a new computer. I definitely needed a powerful machine, as full Firefox build takes about an hour on my 3 year old PC with Intel Core 2 Duo E7300 CPU. I knew I needed something like Intel i7, so I asked about that and Mozilla ordered me one. I would prefer to assemble a computer myself (at least select the components), but as it had to be ordered and paid by the company, I didn't have much choice, had to go with some brand name. Dell was one of the obvious choices, so I just pointed at some Dell XPS with i7 and configuration close to what I wanted, and it was ordered.

Yesterday it was finally delivered! That's Dell XPS 9100, Intel i7-930, 2.8 GHz, 12 GB RAM, 1TB HDD, ATI Radeon HD5670. Here it is:


This thing is big and heavy! The box, which it came in, was huge! The Purolator guy who delivered it was driving a full size truck, which he backed up to our driveway, and took it all. Normally he drives a regular post office delivery vehicle, but not this time. I guess the big truck was chosen just because of my box. :)

So, I got the new PC set up and running, got Ubuntu installed, copied most important stuff from the old PC, set up Mozilla environment, and tried the build. It took about 20 minutes! A huge improvement compared to the old PC! Now I can build even during the work day, not overnight, as I usually did before.

By the way, it took me a while to install Ubuntu. I wanted 32 bit version, as it's known to have less compatibility issues, but its installation was consistently failing somewhere in the middle. I burned three CDs on two different CD-writers, tried USB-drive - no luck. Only the alternative (text-based) setup worked, though it was very slow. But after I finally installed and ran the system I realized, that 32 bit limits the available RAM to 4GB. Somehow I forgot about that, or rather just didn't think that Linux has the same limitations as Windows (why would it be different?). I just didn't use 64 bit system, and didn't have more than 4GB of RAM in my PC before, so my unconscious mind didn't tell anything. Anyway, I installed the amd64 version, got access to total 12GB of RAM, and now I'm all set.