Mike’s Linux Desktop Experiences

February 29, 2008

I Miss Windows

Filed under: Uncategorized — Mr. Mike @ 3:07 pm

I’m having a moment of weakness. I miss Windows. My video is faster, my Youtube can run full screen, my DVDs play smoothly, my sound… works, I can run video smoothing filters, the clipboard isn’t crap, keystrokes are consistent, fonts are better, the machine doesn’t crash when suspended. Honestly, for my Desktop, there is nothing I can do in Linux that I can’t do in Windows, and there are plenty of things in Windows that I can’t do in Linux.

In the next few months, I’m going to be going on a year-long trip, so this desktop machine I’m working with will be hidden in storage for a while. In the meantime, I have a small X24 notebook which will need a bit of touching up to make it good for travel. The battery is toasted on it, I’m not sure if I’ll replace that. It’s got an honest-to-goodness valid Windows XP license on it.

That said, I’m going to pick up a USB memory key, a 160GB drive and probably load Ubuntu on to a main partition. I’m going to do a dual-boot with probably 100GB of shared ext3 disk (Windows XP can load ext3 drivers). In theory, I should be able to use the Windows drive for video filters and all that.

Given that the machine has less exotic video and less exotic sound hardware, it should work fairly smoothly out-of-box.

Dual-boot is partially to get out of potential airport security issues. For those that don’t know, the airports have been asking people to boot their machines to search them for porn. It will allow me to apply Truecrypt, and the command line will be handy for remote backups. In the event that airport security demands to search my machine, I can help them by booting Windows. Given that I won’t use it for my personal finances, email or MP3s, I won’t have to worry about them freaking out because I won’t give them my banking info, email, MPAA/RIAA/SOCAN/Whatever collusion etc. I figure the worst they should do is confiscate my machine, the worst they might do at a U.S. border is to send me to Guantanamo to get my password.

I might have to set it to use the Windows boot loader and set Linux to boot from a seemingly uninteresting menu item. I’ll have to remember to shut down and not hibernate when crossing the border.

A tech with an iota of knowledge would know something’s not quite right. But the border guards don’t have an iota of knowledge, and the forensic analysis by back-room customs officials should be thwarted by reaonsable encryption… all that and I’m not doing anything wrong.

I guess I’ll be fighting with Linux a bit longer.  Truecrypt might actually be a killer app.

February 23, 2008

Wresting with gvim to post Old Experiences

Filed under: Uncategorized — Mr. Mike @ 11:41 am

Today I’m going back and adding a lot of what I experienced back in late January while working with this machine. To do this, I threw gvim on to my machine.

Now in Windows, I could just go into something like WordPress, do ctrl-a, ctrl-c, alt-tab, esc, i, shift-ins and I would have the full text of whatever I was doing in WordPress in gvim.

It seems that this version of gvim doesn’t like the Windows editing keys. Grr. That’s the first I’ve seen of that. Ctrl-x, Ctrl-v and Ctrl-c I can understand, but Ctrl-Insert and Shift-Insert?
Consistency in a UI is a key part of user friendly interfaces. It’s okay to break it to enhance speed, but is [quote], +, g, Shift-P faster or more intuitive than Shift-Insert?

screenshot-no-name-gvim.png

I guess it’s all a pointless gripe. I don’t have the time or energy to try to figure out how to reconfigure/recompile/repackage or whatever to get my editing keys to have some semblence of normalcy.

Time for a different tactic…

It looks like installing gvim through Add/Remove… has set my systemwide vi to vim, and gnome-terminal seems to not have a problem with Ctrl-Insert/Shift-Insert. Although I can’t do a Ctrl-a to select all, which makes gathering the edited text to paste back into a browser text editor kind of absurd.

So I ask Google… “read a file into the clipboard command line linux”

http://elcasey.wordpress.com/2008/02/12/xclip-use-the-clipboard-from-the-command-line/

I’m impressed. Another WordPress blogger.


    mike@whitetower:~$ sudo apt-get install xclip
    [sudo] password for mike:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
    xclip
    0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
    Need to get 17.2kB of archives.
    After unpacking, 77.8kB of additional disk space will be used.
    Get:1 http://ca.archive.ubuntu.com gutsy/universe xclip 0.08-7 [17.2kB]
    Fetched 17.2kB in 0s (47.1kB/s)
    Selecting previously deselected package xclip.
    (Reading database ... 98177 files and directories currently installed.)
    Unpacking xclip (from .../xclip_0.08-7_amd64.deb) ...
    Setting up xclip (0.08-7) ...
    mike@whitetower:~$

Let’s see if this works…

screenshot-no-name-vim.png

And we paste…. nothing.

middle click?


    xxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxx

Oh feck. It uses the X buffer not the clipboard. I am NOT going ot reach my hand over to the mouse to do a delicate middle-click every time I want to move text from vim back to my browser!

grr… more reading.

Found something in that guy’s blog.

Of course…


    :%!xclip -o -selection c

vim remembers these commands so I can type :, up-arrow multiple times. It’s a beginning. I might have to toss it in a script.

All that said, anyone know how to fix this dumb gvim default?

February 22, 2008

ATI Video Card Driver Patch

Filed under: Uncategorized — Mr. Mike @ 9:26 am

Ever since I installed the video driver on Jan 29, I’ve had problems with X crashing on logout. I was just hacking around, trying to get Compiz to work last night and it crashed again while testing video resolutions. I decided to check for a video card driver update.

It seems that on Feb 13, they produced a new one:

Linux Proprietary Driver – Catalyst 8-2 Release: x86 and x86_64 variants
Driver version: 8.455.2
ISSUES RESOLVED: (1) Fixed Xserver crash on screen resolution change in horizontal or vertical desktop setup with a monitor that does not support DDC. (2) Fixed problems related to BusID entries in xorg.conf in an unexpected format. Symptoms could range from failure to initialize 3D acceleration to Xserver crashes on startup. (3) Fexed intermittent Xserver hangs on logout if atieventsd was running. (4) Fixed hang of the first OpenGL application in an Xsession on Xserver version 1.4.

Maybe this will prevent my system from freezing on logout and WoW might work! Woohoo!


    mike@whitetower:~$ bash ./ati-driver-installer-8-02-x86.x86_64.run
    Created directory fglrx-install.vD7255
    Verifying archive integrity... All good.
    Uncompressing ATI Proprietary Linux Driver-8.455.2............................................................

screenshot-message.png

Hmph. That’s new. The ATI package should only output a deb file which I should be able to install as root. Running this massive ATI script as root is not a good idea, it’s why the “fake root” package was created. Running it the same way as I did on the 29th makes no difference. (i.e., chmod +x ./…. )

It looks like the ATI documentation doesn’t actually say that they support Ubuntu, but from the Ubuntu site, there seems to be an undocumented way to do this:

https://help.ubuntu.com/community/BinaryDriverHowto/ATI


    bash ./ati-driver-installer-8-02-x86.x86_64.run --buildpkg Ubuntu/gutsy

Ahhh, the WordPress blockquote truncates long lines of preformatted text :-(


    ==================================================
    ATI Technologies Linux Driver Installer/Packager
    ==================================================
    Generating package: Ubuntu/gutsy
    Package /home/mike/xorg-driver-fglrx_8.455.2-0ubuntu1_amd64.deb has been successfully generated
    Package /home/mike/xorg-driver-fglrx-dev_8.455.2-0ubuntu1_amd64.deb has been successfully generated
    Package /home/mike/fglrx-kernel-source_8.455.2-0ubuntu1_amd64.deb has been successfully generated
    Package /home/mike/fglrx-amdcccle_8.455.2-0ubuntu1_amd64.deb has been successfully generated
    Removing temporary directory: fglrx-install.a15276
    mike@whitetower:~$ man dpkg
    mike@whitetower:~$ dpkg -l | grep fglrx
    ii fglrx-kernel-2.6.22-14-generic 8.452.1-1+2.6.22-14.47 ATI binary kernel module for Linux 2.6.22-14
    ii fglrx-kernel-source 8.452.1-1 Kernel module source for the ATI graphics ac
    ii xorg-driver-fglrx 8.452.1-1 Video driver for the ATI graphics accelerato
    ii xorg-driver-fglrx-dev 8.452.1-1 Video driver for the ATI graphics accelerato
    mike@whitetower:~$ dpkg -r fglrx-kernel-2.6.22-14-generic
    dpkg: requested operation requires superuser privilege
    mike@whitetower:~$ sudo dpkg -r fglrx-kernel-2.6.22-14-generic
    [sudo] password for mike:
    (Reading database ... 96630 files and directories currently installed.)
    Removing fglrx-kernel-2.6.22-14-generic ...
    mike@whitetower:~$ sudo dpkg -r fglrx-kernel-source
    (Reading database ... 96626 files and directories currently installed.)
    Removing fglrx-kernel-source ...
    mike@whitetower:~$ sudo dpkg -r xorg-driver-fglrx
    dpkg: dependency problems prevent removal of xorg-driver-fglrx:
    xorg-driver-fglrx-dev depends on xorg-driver-fglrx.
    dpkg: error processing xorg-driver-fglrx (--remove):
    dependency problems - not removing
    Errors were encountered while processing:
    xorg-driver-fglrx
    mike@whitetower:~$ sudo dpkg -r xorg-driver-fglrx-dev
    (Reading database ... 96622 files and directories currently installed.)
    Removing xorg-driver-fglrx-dev ...
    mike@whitetower:~$ sudo dpkg -r xorg-driver-fglrx
    (Reading database ... 96611 files and directories currently installed.)
    Removing xorg-driver-fglrx ...
    Stopping atieventsd: done.
    rmdir: /usr/lib/fglrx: Directory not empty
    rmdir: /usr/lib32/fglrx: Directory not empty
    Processing triggers for libc6 ...
    ldconfig deferred processing now taking place
    mike@whitetower:~$

This is a serious PITA.


    mike@whitetower:~$ sudo dpkg -i fglrx-kernel-source_8.455.2-0ubuntu1_amd64.deb
    Selecting previously deselected package fglrx-kernel-source.
    (Reading database ... 96525 files and directories currently installed.)
    Unpacking fglrx-kernel-source (from fglrx-kernel-source_8.455.2-0ubuntu1_amd64.deb) ...
    Setting up fglrx-kernel-source (8.455.2-0ubuntu1) ...
    Adding Module to DKMS build system
    Doing initial module build
    Installing initial module
    Done.
    mike@whitetower:~$ sudo dpkg -i xorg-driver-fglrx_8.455.2-0ubuntu1_amd64.deb
    Selecting previously deselected package xorg-driver-fglrx.
    (Reading database … 96542 files and directories currently installed.)
    Unpacking xorg-driver-fglrx (from xorg-driver-fglrx_8.455.2-0ubuntu1_amd64.deb) …
    Setting up xorg-driver-fglrx (8.455.2-0ubuntu1) …
    Installing new version of config file /etc/ati/atiogl.xml …
    Installing new version of config file /etc/ati/signature …
    Installing new version of config file /etc/init.d/atieventsd …
    * Starting atieventsd [ OK ]Processing triggers for libc6 …
    ldconfig deferred processing now taking place
    mike@whitetower:~$

Reboot…… we’re back. I wonder if this did anything? I’ll try logging out.

We’re good.  No WoW though.  that’s probably some other issue.   Meh. Win some, lose some.

February 21, 2008

lazy umount

Filed under: Uncategorized — Mr. Mike @ 9:06 pm

NFS has some capabilities which are really quite slick. One of these features is that if you mount a drive by NFS, it doesn’t matter if the server is unavailable, your kernel will continue to wait for it to become available.

Nautilus has been causing me some grief the past few days. Freezing and requiring me to force it to quit through the GUI. I first thought it was my digital camera. Plugging it in seemed to cause this.

Today the camera wasn’t hooked up and I realized it was still freezing.

One of the pains of NFS is that if the server is unavailable, your kernel will continue to wait for an NFS mount to become available.  When this happens, something as simple as an “ls /mnt/lotd” will cause the prompt to sit idle, immune to ctrl-c, ctrl-z, or similar interruptions.


root@whitetower:~# umount -f /mnt/lotd
umount2: Device or resource busy
umount: /mnt/lotd: device is busy
root@whitetower:~# man umount
root@whitetower:~# umount -l /mnt/lotd
root@whitetower:~#

It’s working again. I guess I can’t hold it against Linux because honestly, it’s a pretty neat feature, it would just be nice if there were a GUI timeout on a resource so that it wouldn’t foul up everything unrelated to the mount point.

Can’t have everything I guess.

I used take advantage of this to reboot NFS servers that were serving active thin clients. Even a 5 minute reboot of their root filesystem wouldn’t phase the clients. Despite the PITA that NFS is for firewalls and security, I don’t know of any other mount method that’s quite so robust.

The “force” (-f) is usually enough, but if a process is holding a handle in the filesystem, it won’t allow for the umount. “force” just avoids contacting the remote (down) NFS server. This “lazy” (-l) tells it to break the mount point for all new connections, but existing handles remain open. Now when Nautilus tries to get info for my mounted filesystems, it won’t try to access the dead NFS share.

Rebooting would have fixed this too. Now how do I restart the Nautilus desktop?

February 20, 2008

Source Fource: The hidden caption

Filed under: Uncategorized — Mr. Mike @ 8:03 am

source-fource.png

February 16, 2008

Wallpaper and the Great Ubuntu Calendar Scandal

Filed under: image editing — Mr. Mike @ 5:48 pm

This is an old one, but it’s great:

http://www.gnome-look.org/content/show.php/Ubuntu+Wallpaper?content=51459

I want to turn it into a banner for this site. I wish it were just a *little* more skillfully done. I don’t like the Gimp for simple photo editing. I’d like something more familiar.

screenshot-gnome-app-install-2.png

ok. Gnu Paint. Pretty useless. Back to Gimp and some work with paths…

screenshot-ubumtoxcf-270-rgb-1-layer-2560x1024.png

Ok, the GIMP doesn’t suck. It’s tricky to use, but it works. I’m just lazy.

BTW, this guy does a fantastic demo on paths in photoshop. I’m very impressed:

http://www.youtube.com/watch?v=YNfBF2xvhaE

February 11, 2008

rdesktop and sound

Filed under: RDP, audio — Mr. Mike @ 7:11 pm

I figured something out today. If I don’t use Gnome’s “Terminal Server Client”, I don’t have the problem of trying to reconfigure it for 1920×1250. rdesktop works okay from the command line:

mike@whitetower:~/.tsclient$ rdesktop -g 1920x1100 -a 16 -r sound:remote 192.168.0.4

…brings up a reasonable desktop. I have to use 1100 because I can’t get the title bar and stuff over to the right screen so that I can still access my Linux desktop at the same time.

I used -rsound:remote because the lack of a mixer means that I can’t hear audio through rdesktop anyway. I plugged a patch cable from my Windows notebook to my speakers.

On the note of speakers, my sound has gone crazy. Gnome thinks I’m muted. I’m not muted. I don’t quite know how to fix that but until I do, I can’t control the volume.

February 9, 2008

Out of Space in /

Filed under: burning — Mr. Mike @ 2:48 pm

I’m getting very tired of fighting with my computer all the time. I still don’t have working mixing audio, I haven’t touched WoW in over two weeks. The time I’d normally pop onto WoW, I’ve been spending trying to figure out how to get my Desktop into shape.

Today I got a message that my disk is full. Those bittorrent photos I have kicking around are probably the problem. I’d like to keep them only because they’re an interesting bit of history, so I’m going to stash them on DVD.

screenshot-extracting-files-from-archive.png

This is taking a very long time. I think I’ll just unzip the first four and burn a disk when they’re done extracting.

The system is under very heavy I/O, my cursor disappeared in WordPress. Very odd.


Ok. It took about an hour, but I finally got GnomeBaker to load up all the files which need to be burned.

screenshot-gnomebaker.png

 

FFS!

Maybe the stupid thing is trying to create a full ISO before burning or something. Naw. Could it?

I delete WoW… that frees up a lot.

screenshot-gnomebaker.png

ugh.


mike@whitetower:/tmp$ mkdir GnomeBaker-mike

mike@whitetower:/tmp$ df

Filesystem           1K-blocks      Used Available Use% Mounted on

/dev/hdb1             36843208  21857912  13113728  63% /

varrun                  385268       104    385164   1% /var/run

varlock                 385268         0    385268   0% /var/lock

udev                    385268       136    385132   1% /dev

devshm                  385268         0    385268   0% /dev/shm

lrm                     385268     36712    348556  10% /lib/modules/2.6.22-14-generic/volatile


That got it. Some stupid defaults. 2x burn speed and it puts my name in the Disk information (grr… I don’t think I should have put my full name on the system preferences). The temp file is about 17MB. Probably just directory information.

I click “Burn” and wait….

screenshot-baking.png

Umm. This is not 1999. DVD Burners are not newfangled things. They’re almost obsolete!? WTF?

I’m going to guess that the high number of files is taking up space which is not being calculated into GnomeBaker’s disk size. According to GnomeBaker I’ve got 129.72 MB remaining. I’ll consider opening a bug report.

New strategy.

I’ll take some of the uncompressed zip files and burn those. It’s far less convenient, but it might not be a serious problem with Gnome Baker, but my expectations of the capabilities of DVDs might be too high. I’m sure CD Burner Xp Pro woud give me similar trouble. I should try that some day.

Drag and drop is almost instant now. It remembered my “Auto” speed, but forgot to omit my name from the disk.

The burn starts. The previous disk didn’t get coastered. It looks like it’s stuck on this idea of a 2x write speed though. It’ll be 45 minutes before its done. What a waste of a morning.

February 7, 2008

Automated Posting from OO to WordPress

Filed under: OpenOffice, wordpress — Mr. Mike @ 7:00 pm
Tags:

I’ve been tracking all my experiences in OpenOffice. I need a way to upload/import them with formatting and screenshots into WordPress. I’m probably asking for too much, but one would hope that OO and Linux with its scripting capabilities could help me do this fairly painlessly.

Somebody did it, but it seems to be only for Win32 and MacOS.

http://ice.usq.edu.au/presentations/demos/try_ice_2x_for_wp.htm

I was able to get OO to automate exports of files a few days back. I can’t find the document where I wrote all about it, but I should be able to figure out and document how to do it again…

Maybe WordPress’ automated import features will help me out. Hmm..

http://www.oooforum.org/forum/viewtopic.phtml?t=3549


Sub FilterNames        oFF = createUnoService( "com.sun.star.document.FilterFactory" )

   oFilterNames = oFF.getElementNames()
    ' Now print the filter names.

'   For i = LBound( oFilterNames ) To UBound( oFilterNames )

'      Print oFilterNames(i)

'   Next

   ' Create a Writer doc and save the filter names to it.

   oDoc = StarDesktop.loadComponentFromURL( "private:factory/swriter", "_blank", 0, Array() )

   oText = oDoc.getText()

   oCursor = oText.createTextCursor()

   oCursor.gotoEnd( False )

   ' Print the filter names into a Writer document.

   For i = LBound( oFilterNames ) To UBound( oFilterNames )

      oText.insertString( oCursor, oFilterNames(i), False )

      oText.insertControlCharacter( oCursor, com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, False )

   Next

End Sub

Threw that into Tools/Macros/OpenOffice Basic under a new subroutine called FilterNames

screenshot-unsaved-document-1-openofficeorg-writer.png screenshot-my-macros-dialogsstandard-openofficeorg-basic.png

  mike@whitetower:~$ soffice "macro:///Standard.Module1.FilterNames()"

It generates a very long, impressive list of filters, but… none of them seem to be anything that WordPress can do. Mediawiki seems useful though.

I’d do it all manually if the desktop environment wasn’t so damned sluggish.

Blog at WordPress.com.