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

Friday, October 28, 2011

disconnecting iPod from Linux

When I plug in an iPod into a machine running Ubuntu, the iPod auto-connects, but is not actually mounted.  This is especially problematic when I am running under i3 or other window manager which does not have a system tray or other mechanism for listing connected devices.

Turns out it is easy to disconnect:
  sudo eject /dev/sdb1

Season the device path as appropriate for your system.  I typically find the device name by looking through /var/log/messages for the USB messages for when I connect the iPod.

Friday, October 21, 2011

Monday as first day of week in GNOME

A lot of approaches on the Net specify hacking the locale files; e.g.:
  http://ubuntuforums.org/showthread.php?t=813945

However, a far simpler and certainly less intrusive procedure is to simply modify default LC_TIME:
  http://askubuntu.com/questions/6016/how-to-set-monday-as-the-first-day-of-the-week-in-gnome-calendar-applet

Specifically:
  • in /etc/default/locale add:
    LC_TIME="en_GB.UTF-8"
  • log out, then log back in

Monday, October 17, 2011

fixing broken Ubuntu Unity

I must have clicked something naughty in Compiz Config Settings Manager, because I lost the top and left side panels, and generally there was not much more than just the desktop background.  I was stumped on how to fix this.

Then I found:
  http://www.tuxgarage.com/2011/04/missing-top-and-side-panels-in-unity.html

Very good walkthrough for fixing Unity.

In the end, I executed the "Reset Compiz" section, and things are back to normal.

Sunday, October 16, 2011

setting static IP in Ubuntu

By default recent Ubuntus (e.g., 11.10) use Network Manager, which makes things simple:

  • click network icon in system tray
  • Edit Connections
  • select the one entry that you see there (unless your network is not working)
  • Edit...
  • IPv4 Settings
  • From Method drop-down select Manual
  • the rest should be straight forward
If not using Network Manager to manage network connections, you need to edit /etc/network/interfaces and add (adjust to own network parameters):

auto eth0
iface eth0 inet static
        address 192.168.0.100
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1

Sunday, September 11, 2011

configuring grub for auto-selecting Windows

Typically "Windows" is one of the last options in the GRUB menu, and thus rather brittle to selecting by static index.  Instead, one can specify default GRUB choice by using the full option name.  Here are the steps I followed last to update this on a recent Ubuntu (11.x) install:

  1. edit /etc/default/grub
  2. change GRUB_DEFAULT to FULL name of the Windows menu entry (best to copy-paste from your own config)
  3. save
  4. to propagate the change, run 'update-grub'
Note that, aside from the static integer index and the full menu item name, one can also use special string 'saved'. However IIRC in the past I was not fully happy with this option (did not stick maybe?).

Friday, July 01, 2011

fixing headphone config on Acer Aspire One

From:
  http://ubuntuforums.org/showthread.php?t=1070212

add this line:
options snd-hda-intel model=acer_wmi
to the end of /etc/modprobe.d/alsa-base

This has now changed. Put the above line in /etc/modprobe.d/sound

Sunday, May 29, 2011

Notes from Ubuntu 11.04 install on Acer Aspire 522 - BZ499

  • C-50 Ontario processor is 64-bit, so we'll use the 64 bit image: ubuntu-11.04-desktop-amd64.iso
  • installed image onto USB stick using: 'sudo usb-creator-gtk' command
  • make sure BIOS is configured to read from USB stick before HDD
  • note: ubuntu kept hanging on me (mouse cursor/throbber frozen)... from posts on Net I suspect it is due to wireless driver
    • solution: install with wired connection plugged in; this allowed me to do install no problem
    • this link sounds relevant: http://fossplanet.com/f10/[bug-775034]-[new]-natty-freezes-due-acer-aspire-one-522-wireless-148584/
  • suspend and hibernate work right out of the box with this (tested both)
  • clicking on Additional Drivers in top bar, it seems we are already using Broadcom STA wireless driver (hence could conflict with other one)
  • now able to use wifi (w/o wired plugged in) using following:
    • add in /etc/modprobe.d/blacklist.conf this line: "blacklist atl1c"
    • "sudo update-initramfs -u"
  • suspend still works
  • outstanding issues:
    • (non-proprietary) video driver has poor YouTube playback, etc.
    • after resume (from Suspend?) the Ubuntu top and left bars stop updating visually (Ubuntu One compiz component; switch to "Ubuntu Classic" in GDM and all is well)
  • attempting ATI/AMD proprietary FGLRX gfx driver install...
    • resume from suspend no longer working... can't even ping the machine (but did not check earlier that I actually could)
  • went back to non-proprietary video drivers


Saturday, May 28, 2011

Ubuntu: gVim in fullscreen

Under compiz window manager, you need an extra package, which is not installed by default in Ubuntu 11.04. I've set the keybinding through gnome settings, and that was not sufficient to have the fullscreen action work.

Steps:

  • apt-get install compiz-plugins-extra
  • Systems Settings > CompizConfig Settings Manager > Extra WM Actions > Toggle Fullscreen (provide keybinding, such as Alt-Enter)
  • I found that I needed to restart the window manager for this to start working.

Source:
  http://askubuntu.com/questions/2140/is-there-a-way-to-turn-gvim-into-fullscreen-mode

Saturday, February 05, 2011

remapping CapsLock to extra Control key

To that end, I found this link useful:

In *NIX:
 setxkbmap -option ctrl:swapcaps # Swap Left Control and Caps Lock
 setxkbmap -option ctrl:nocaps # Make Caps Lock a Control key

Sunday, January 30, 2011

setting up my Acer Aspire One

Just got an Acer Aspire One (AO522); here are some things I bumped into with Windows 7 Starter, or otherwise interesting links:
Xubuntu issues encountered:
  • AMD "unsupported hardware" watermark with 'fglrx' driver
  • unable to resume from 'sleep'
  • xfce4 window manager does not have gui tool for setting keyboard options (e.g., swap CapsLock and CTRL)

Sunday, December 05, 2010

changing CapsLock to Ctrl in XFCE4

From:
http://serverfault.com/questions/10437/how-do-you-swap-the-caps-lock-to-control-in-xfce

Run this on startup:

  /usr/bin/setxkbmap -option "ctrl:nocaps"


This can be placed in XFCE's startup (Settings > Session and Startup > Application Autostart tab > Add button).

Saturday, August 15, 2009

HP 1022n on Linux

Installation instructions from:
http://www.linuxquestions.org/questions/linux-software-2/cups-unable-to-discover-an-hp-1022n-network-printer-710492/

Here are the essential instructions:

  1. Configure the printer with its own facility, getting into its web page: http://the-actual-ip-address.
  2. There, assign a static IP address of your choice.
  3. You would have to (recommended) restart the printer with the new assigned static IP.
  4. Configure manually the printer within CUPS.
  5. Follow instructions up to the point where you are asked to specify the URI. There, write socket://the-new-ip-address
  6. Specify it is an HPLIP printer, and when prompted to specify the type of printer, scroll down and find the "HP LaserJet 1022n Foomatic/hpijs, hpijs 2.8.10.33" (for example, version is actually the one shown in my system, could be some other).
  7. Choose Add Printer.
  8. Print a Test Page and...
  9. Voila...!!