Tuesday, September 18, 2012

Errata - Configuring Debian GNU/Linux 6.0.5 "squeeze"

Some post-install configurations.

2012-09-18

Experimenting with text editors. Only too late do I realize Notepad++ does not have a GNU/Linux port. : o (

Geany
  • sudo apt-get install geany
  • sudo apt-get install geany-plugins
  • On squeeze, this translates to 0.19.1 : o )
  • Latest version as of this writing: 1.22
SciTE (SCIntilla based Text Editor)
  • sudo apt-get install scite
  • On squeeze, this translates to 2.03 : o )
  • Latest version as of this writing: 3.2.2
Both based on the Scintilla engine.

2012-10-01

Installing wireless.
  • sudo apt-get install firmware-ipw2x00 (via)
  • sudo /sbin/modprobe -r ipw2100 ; sudo /sbin/modprobe ipw2100
  • sudo iwconfig
  • sudo eth1 up
Success : o )

2012-10-09

Headphone jack sensing 
  • System > Preferences > Sound
  • Preferences
  • Select option "Headphone jack Sense"; this enables new Volume Control window tab, "Switches"
  • Select tab "Switches"
  • Check option "Headphone jack Sense"
The headphone jack now disables the speakers when I plug in headphones and re-enables them when I remove it.

2012-10-18

GCC

sudo apt-get install gcc

Install Citrix Receiver (via)
Filezilla

sudo apt-get install filezilla (via)

2012-11-06

Google Chrome fonts

apt-get install ttf-arphic-uming ttf-wqy-zenhei ttf-sazanami-mincho ttf-sazanami-gothic ttf-unfonts-core xfonts-kaname (via)

Had to force-quit Google Chrome before these took effect: killall chrome

2012-12-09

Keyboard key mappings for Apple A1314 Bluetooth keyboard

I want to remap the following six keycodes:
  1. Right-Command  = Compose
  2. Right-Option = AltGr
  3. Left-Command + Right-Arrow = End
  4. Left-Command + Left-Arrow = Home
  5. Left-Command + Up-Arrow = Page-Up
  6. Left-Command + Down-Arrow = Page-Down
Via:

Used command xev and obtained keycodes:
  • Super_R (Right-Command) = 134
  • Alt_R (Right-Option) = 108
  • Super_L (Left-Command) = 133
  • Left = 113
  • Right = 114
  • Up = 111
  • Down = 116
Then:
  • sudo xmodmap -e "keycode 108 = Delete"
  • sudo xmodmap -e "keycode 134 = Delete"
  • sudo xmodmap -e "keycode 113 = Left NoSymbol Home Home"
  • sudo xmodmap -e "keycode 114 = Right NoSymbol End End"
  • sudo xmodmap -e "keycode 111 = Up NoSymbol Page_Up Page_Up"
  • sudo xmodmap -e "keycode 116 = Down NoSymbol Page_Down Page_Down"
  • xmodmap -pke > ~/.Xmodmap
  • echo "xmodmap .Xmodmap" > ~/.xinitrc
Via

Make Super_L a Mode_switch key:
  • sudo xmodmap -e "add mod1 = Alt_L Meta_L Alt_R"
  • sudo xmodmap -e "add mod4 = Super_R Hyper_L"
  • sudo xmodmap -e "keysym Super_L = Mode_switch"
Make the changes permanent:
  • echo "add mod1 = Alt_L Meta_L Alt_R" >> ~/.Xmodmap
  • echo "add mod3 = Mode_switch" >> ~/.Xmodmap
  • echo "add mod4 = Super_R Hyper_L" >> ~/.Xmodmap
  • echo "keysym Super_L = Mode_switch" >> ~/.Xmodmap
To reset back to defaults:

setxkbmap -layout dvorak

Note: apparently, setxkbmap represents the new thing...no time to continue this evening but planting a seed for next time to see if I can get the above settings the same in a simpler format.
UPDATE:

Found some time on Feb 17-18, 2013, to return to this issue:
  • By default, I discovered some mappings:
    • Fn+Left = Home
    • Fn+Right = End
    • Fn+Up = Page-Up
    • Fn+Down = Page-Down
    • Fn+Delete = Delete (by default, Delete seems to really mean Backspace)
  • /usr/share/X11/xkb/ and subdirectories rules and symbols seem relevant, as background info
  • Debian stores keyboard layouts in /usr/share/X11/xkb/symbols/
  • I inadvertently chose model "macbook78"...however, via, doing so tells X to look in /usr/share/X11/xkb/symbols/macintosh_vndr for keyboard layouts and variants...none of which seem to support AltGR. Switching back to default model pc
Finally got things working:

setxkbmap \
  -model pc105 \
  -layout 'us(dvorak-intl),us(alt-intl)' \
  -option \
  -option grp:alt_shift_toggle \
  -option compose:rwin

This sets up two variants which I can toggle between using Ctrl+Shift. It uses dvorak-intl by default, which gets me the AltGr (i.e., Alternate Graphic) key and all the cool characters that go with it, like "¬" and "é". It also sets up the Compose key, which allows me to easily write ½ and ¢ and ©. : o ) I also added in variant alt-intl so other people can use QWERTY on an as-needed basis.

As I did with the VLC setup, below, I decided to copy/paste a current version of variant dvorak-intl from X.Org configuration file ¨symbols/us¨...it seems the one which shipped with Debian Squeeze represents a version quite a few years out-of-date.

I still have a few things to clean up, but I think I have figured out the core issues surrounding keyboards models, layouts, and variants, and how X.Org implements them.

Hmm, via:

cp /etc/xdg/xfce4/xinitrc ~/.config/xfce4/xinitrc

Running a script when initializing X.

I am not sure setxkbmap will help:
  • /usr/share/X11/xkb/symbols/us maps symbols to keys...not so good for multi-key presses
  • /usr/share/X11/xkb/rules/base.lst specifies models, layouts, variants, and options
    • Options seem the most plausibly helpful
    • Unfortunately, limited to switching between layouts, selecting level3 mode, control key positions, keypad settings, caps lock behavior, altwin behavior, 
Reverted dvorak-intl's handling of key D01:
//key <AD01> { [dead_acute, dead_diaeresis, apostrophe, quotedbl ] };
key <AD01> { [  apostrophe, quotedbl, dead_acute, dead_diaeresis ] };
Got it working with a custom type, inserted into file /usr/share/X11/xkb/types/extra :

    // Custom type to allow shift select to/from end of line
    type "THREE_LEVEL_SHIFT_SELECT" {
        modifiers = Shift+Control+LevelThree;
        map[None] = Level1;
        map[Shift] = Level2;
        preserve[Shift] = Shift;
        map[LevelThree] = Level3;
        map[Shift+LevelThree] = Level3;
        map[Shift+Control+LevelThree] = Level3;
        level_name[Level1] = "Base";
        level_name[Level2] = "Alt Base";
        level_name[Level3] = "Level3";
    };

I modified /usr/share/X11/xkb/symbols/us, appending the following lines to dvorak-intl:
key <LEFT> { type[Group1] = "THREE_LEVEL_SHIFT_SELECT", symbols[Group1] = [ Left, Left, Home] };
key <RGHT> { type[Group1] = "THREE_LEVEL_SHIFT_SELECT", symbols[Group1] = [ Right, Right, End] };
Thanks to Andreas for pointing me in the right direction.


2013-02-01

Google Chrome updates for flash

Using System >Administration > Synaptic Package Manager, uninstalled google-chrome-stable and installed google-chrome-unstable.

I have had some periodic issues with Adobe Flash, so upgrading in an attempt to resolve that specific issue.

After updating, Google Chrome reports, "Google Chrome is no longer updating because your operating system is obsolete." : o ) Brilliant. At least Adobe Flash works again.
Also: sudo apt-get install flashplugin-nonfree

2013-02-02

VLC installation and configuration

Did this so I can watch YouTube videos at increased speed.

Will space you all the gory details, but eventually got VLC installed and working to play YouTube videos. By default, the Debian Squeeze repository includes VLC 1.1.3...I eventually got the VLC 2.0.3 backports version working, but even this required a configuration file update from the nightly build. A pain in the butt, for sure, but it works, now....

The VLC web site helpfully shows how to get a more recent version.

sudo vim /etc/apt/sources.list
sudo apt-get update
sudo apt-get -t squeeze-backports install vlc

Unfortunately, VLC 2.0.3 needs an updated youtube.luac file....

Via this thread, found the VLC nightly builds: http://nightlies.videolan.org/

Downloaded the source via wget:

cd tmp && wget http://nightlies.videolan.org/build/source/vlc-2.1.0-20130203-0012.tar.xz

sudo apt-get install xz
sudo apt-get install lua5.1

cd tmp && xz -d /tmp/vlc-2.1.0-20130203-0012.tar.xz
tar xvf vlc-2.1.0-20130203-0012.tar
sudo cp vlc-2.1.0-git/share/lua/playlist/youtube.lua /usr/lib/vlc/lua/playlist/
cd /usr/lib/vlc/lua/playlist/
sudo luac -o youtube.luac youtube.lua
sudo rm /usr/lib/vlc/lua/playlist/youtube.lua

Tools > Preferences > Video > Output , then set it to "X11 video output (XCB)"

Tested on video 

All good : o )

2013-02-16

Amarok 2.4.1


sudo apt-get -t squeeze-backports install amarok

Adobe Reader 9.5.3

cd ~/Downloads && wget ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.3/enu/AdbeRdr9.5.3-1_i386linux_enu.deb

sudo dpkg -i AdbeRdr9.5.3-1_i386linux_enu.deb

2013-02-24

Volume control sound theme

Volume Control, then select tab Sound Theme, select Default alert sound and checkbox "Enable window and button sounds"

Ghostview

Installed GhostView, via

sudo apt-get install gv

2013-02-28

clisp

sudo apt-get install clisp

2013-03-03

DVD CSS

My neighbor came over ancd attempted to play a NetFlix DVD (The Crash of 1929) but neither Totem Movie Player 2.30.2 nor VLC media player 2.0.3 could play it.

Via:

sudo apt-get install libavcodec-extra-53
wget http://www.deb-multimedia.org/pool/non-free/w/w32codecs/w32codecs_20110131-0.1_i386.deb
sudo dpkg -i w32codecs_20110131-0.1_i386.deb

wget http://www.deb-multimedia.org/pool/main/libd/libdvdcss/libdvdcss2_1.2.10-0.3_i386.deb

sudo dpkg -i libdvdcss2_1.2.10-0.3_i386.deb

After this, the DVD played just fine.

2013-03-17

curl

Via:

sudo apt-get install curl

2013-03-25

icedtea plugin


sudo apt-get install icedtea6-plugin

Installing so I can run the VeriSign SSL certificate checker

2013-04-20

java


sudo apt-get install sun-java6-jre


No comments:

Post a Comment