Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Thursday, February 5, 2009

Giving Windows 7 Beta a Try

I have been running Ubuntu almost exclusively on my personal PC for over a year now. I have had some issues, most of which I have mentioned on this blog, but the problems I have had running Linux have not been better or worse than the problems I have had with Windows, just different.

I am going to try taking a break from Linux though to give Windows 7 a try. The beta was free for anyone who wanted it and I figure it is about time I try something new from Microsoft. I haven't used Vista except for the occasional web browsing on my wife's laptop. Vista is still foreign to me. Part of my motivation to switch to Linux was in part because of Vista actually. The Vista roll out was a disaster. When it was released there were software compatibility and stability issues, problems with and missing hardware drivers, concerns over intrusive DRM, the super annoying UAC (though you can turn User Access Control off), poor performance (like unzipping files), 4 different versions which was confusing for consumers and it was expensive ($200 - $320 or $100 -$220 to upgrade).

I was wary of performance issues and DRM but the biggest thing for me was it really wasn't worth the money to upgrade. I remember getting the Windows 95 upgrade for my birthday and being so excited about it. That was not the case here. XP is good enough.

Microsoft has learned some things from their expensive Vista release experience though. (Or maybe the press is just nicer to Windows 7.) It looks like they are making Windows 7 what Vista should have been. I do feel a little like I am participating in the Mojave Experiment though by running it. Having this open beta is a good idea. It gets people using the OS and gets more real world usage. It gets buzz like this blog post too. MS also included a "Snipping Tool" that makes taking screen shots of parts of the screen easy. (hint, hint all you beta testers) Getting to run this beta might get me willing to buy my next PC with Windows 7 and dual boot instead of getting a Linux only machine as has been my intention for a while.

So far, I like Windows 7.

What I like:

  • I love the resource monitor. I know it showed up in Vista but it is so useful and worth mentioning!
  • It is much prettier (though much of the changes came with Vista). It is about time Windows supports themes natively.
  • Speedy. This is a fresh install though.
  • Restart your computer after updates notification lets me say 10 min, 1 hour or 4 hours. That has always annoyed me to the point of not installing updates. Still, I shouldn't have to restart that often.
  • It has been stable.
  • Pretty backgrounds that can rotate too!
  • Calculator got much love feature wise.
What I dislike:
  • UAC notifications are annoying! They are even more annoying when controlling the computer with Synergy (shared mouse/keyboard application) because it disables control to the machine from everything but the physical mouse/keyboard.
  • Windows Media Player is confusing. I've never much liked Windows Media Player since about version 9 or 10. The eye candy of the interface makes it hard to use.
  • Still no concept of virtual desktops! Copy that feature please. Feel free to disable it by default. I will not complain that you are copying wherever that came from first.
Undecided:
  • I don't know if I like the new task bar. I am having trouble getting used to not being able to minimize and maximize single windows by clicking on them (only if there is a group, still works with just 1) though in theory I shouldn't need to do that with the full window preview ("peek" is what they call it). This is the biggest change by far. It is a lot like the dock on OS X (though I don't use a Mac enough to be confident with that comparison). I never have like the group windows in previous versions (and always disable it) so this will get some getting used to.
  • What is so special about IE 8?
  • My first encounter with the Ribbon in paint.
I am sure there are tons of other features I will like that I just haven't encountered yet. I have not read much about the OS either so I don't know what features to investigate. This is all just my first experience stuff.


Windows 7 "Peek" Feature

Resource Monitor in Windows 7

Sunday, December 14, 2008

Saving streaming wmv files with Linux

This past week my sister-in-law was on the radio in NYC and my father-in-law wanted me to try and record it for him. Since I live in North Carolina, obviously the only way to do that would be to stream it over the web. I figured finding and listening to the stream would be the easy part. I listen to streaming radio ALL the time (thanks WUNC!).

Before getting into all of this, you are likely going to need to install some applications. Everything I used was available through the Ubuntu repositories though I do have Medibuntu enabled in addition to all the other easily enable able ones (main, universe, restricted and multiverse). This was also all done using 8.10 Intrepid Ibex. I also know I have several of the restricted packages installed which I am pretty sure is the only reason Windows Media files work. Now for the details.

The hard part would be to actually save the stream. Here is a step by step of what I did:

  • Obviously the first step was to find a stream of the station. She was playing on WQXR - 96.3 FM and I found their Windows Media stream on PenguinRadio.
  • I found that VideoLAN - VLC media player would be my best bet. It also works in Windows too. I didn't try this on Windows but I bet it would work the same with VLC.
  • I had the hardest time trying the many command line options for vlc. I really wanted to download the file and transcode it to wav or directly to MP3 but I just couldn't get that to work. Instead I just saved it directly as WMV and decided to worry about the rest later. I had some trouble with all the many GUI options too so I went with the safer command line route. I used the command line:
    vlc -vvv "http://htc-01.media.globix.net/COMP005996MOD1/meta/wqxr_live_high.asx" --sout '#duplicate{dst=display,dst=std{access=file,mux=asf,dst=/home/forrest/download.wmv}}'
  • Here is the easy to replace version: vlc -vvv "MY_STREAM" --sout '#duplicate{dst=display,dst=std{access=file,mux=asf,dst=MY_DOWNLOAD_FILE}}'

After all that I had a 34.1MB wmv file with just under 27 minutes recorded. At this point I converted it to a wav using mplayer like so: mplayer download.wmv -ao pcm:file=download.wav

Since I wanted to play it safe and be sure not too miss anything I needed recording, I started to recording early and kept it going past time. At first I wanted to use Audacity to trim the file but I had a problem getting that to work so I used a program called sox. To truncate the wav with sox you just specify the trim option, the start time and how long to run (NOT the end time). In my case it was: sox download.wav download-trim.wav trim 14:50 9:39

Next I converted the wav to MP3 so I could make it easy to get to online before burning it to a CD. I was sick of command line options at this point so I used SoundConverter instead of Lame (though it likely uses lame as a back end anyway) to save me the trouble.

Tuesday, December 2, 2008

Upgrading to Ubuntu 8.10 (Intrepid Ibex) from 8.04 LTS (Hardy Heron) on my home desktop (in pictures)

Despite Ubuntu 8.10 (Intrepid Ibex) being out for over a month now, I just got around to upgrading today. I use my Linux box for web browsing, watching videos, general web development and other day to day tasks so I couldn't afford for it to be down long if the upgrade went badly. Fortunately, the upgrade worked like a charm. So here is the upgrade process that took a total of 1 hour and 15 minutes in pictures:











At this point something was upgraded that caused the border to not show up in the screen shots. Oh well.










After the upgrade the theme was a little funky. I went into the theme editor and changed the theme a few times and it was back to normal. I did see the new dark theme and I am going to give it a try for a little bit. I don't think it will last long but it does look pretty good at first. I also switched to the default background for a bit too.

Friday, October 17, 2008

Ubuntu 8.10 is coming soon...

Ubuntu 8.10 is set to be released on October 30th. Only 13 more days to go.

Flash 10 is out for Linux and Ubuntu users even get deb packages!

Flash 10 was released just a few days ago (October 15th) and I am excited! Whats new? On Linux, Flash has been a second rate citizen for some time. The Linux version has been buggy, causes browser crashes and leads to excessive CPU usage. The last release for Linux was also over 6 months behind the Windows and OS X releases.

Flash 10 for Linux has been released at the same time as other platforms this time around. The Linux release now also comes with easy to install packages for Debian based distributions like Ubuntu and RPM based distributions like Fedora. Adobe is really starting to pay more attention to Linux users and I really appreciate it.

I had hoped that I could get the latest Flash from the ubuntu-backports repository but it looks like they are still working on that as the version listed now is "10.0.1.218+10.0.0.525ubuntu1~hardy1+really9.0.124.0ubuntu2" which really is still version 9. To easily install version 10 though, I just went to the Adobe Flash download page, downloaded the deb file and installed it. The installation also removes the old version for you keeping your upgrade hassle free. A simple browser restart later and I was running the latest Flash 10.



I haven't been running Flash 10 long enough to know if it has fixed all my problems yet but I do know it has fixed the annoying Flash z-index bug that caused content like menus to be drawn behind Flash content. This was most annoying to me on the Verizon Wireless website.

Flash 9 on Linux


Flash 10 on Linux

I really hope Adobe keeps Flash on Linux at the same level moving forward. Flash has been one of the chicken or the egg problems for Linux for a while and I think Adobe now realizes they should do something about that. I also think competition from Sliverlight may be a factor here as Microsoft has only partially endorsed an implementation of it as Moonlight for Linux. I see the benefits of having more popular/standardized distributions coming into play also. With Ubuntu and Red Hat/Fedora as two of the major players, Adobe can confidently create tested and easy to install packages for those platforms.

As further reading, I would suggest the Ars Technica review as it covers all platforms and goes into some performance benchmarks.

Sunday, September 28, 2008

Ubuntu Desktop Screenshot of the Day #8 - Election Season Edition

My desktop theme has been the same way too long and I haven't posted a new screen shot in a while so today I decided to tackle both of those things. Seeing as it is election season here in the US where I am, I decided to go with a nice red, white and blue theme. The background is called "another gnome wave (blue on red)" and is one of several with this same design and different colors. I am also trying out CrossOver Chromium a little more since I have been using its Windows counterpart Chrome more seriously for a few days now too. I hope to share more thoughts on Chromium later. In the screen shot you will also notice the Dictionary application. This is the first time I have ever used it because I generally use Google as my online dictionary. One last thing, the website shown is Electoral-Vote.com which tracks daily polling for each state and predicts the outcome of the election if it were to happen today (based on our antiquated electoral college system that allows a President to be elected without a majority of the poplar vote, like in 2000, and focuses campaigning to only a handful of states).

Wednesday, September 24, 2008

Like Clockwork - GNOME 2.24 Released

Like clockwork, GNOME 2.24 was released today as an upgrade from 2.22 which was released on March 12. GNOME is on a strict 6 month, time based release cycle. With a time based release schedule, changes are more incremental than in other projects but they still manage to get a lot of good stuff in. Check out the GNOME 2.4 release notes for all the details and with good screen shots.

The highlights of this release as I see it are:

  • The first release with the mobile development platform "to provide a core platform on which distributors and handheld manufacturers can build rich programming environments". Although not running GNOME specifically, that fancy new T-Mobile Android phone is running Linux.
  • A new integrated IM client, Empathy. Some are excited about Empathy possibly replacing Pidgin (formerly Gaim) in some distributions but I am skeptical. I love Pidgin. That is my only IM client on Windows and Linux.
  • The addition of tabs to Nautilus, the file manager. This has been a complaint by many for what seems like forever.
  • New Screen Resolution Controls. We shall see if this helps. Linux notoriously has issues with multi-head systems. Much if this is thanks to poor display drivers though. The whole stack needs work.
This GNOME release will show up in Ubuntu 8.10 on October 30th, Fedora 10 on November 25th and openSUSE 11.1 on December 18th. If you don't want to wait that long to try it out, most of these distributions already are in late Alpha or Beta and have close to the final 2.24 release in them. There used to be a live CD as part of a distribution called Foresight Linux and some VMware images also. I don't see those up yet for this release yet though. I am not sure if the 2.22 release ever had them created either. You may also find the Ars Technica review informative as I usually do.

Friday, August 1, 2008

My favorite useful Compiz features

Users of Compiz, a window manager that provides pretty visual effects, know that a lot of those effects are just for fun. Things like drawing fire on the screen or folding up windows like a paper airplane to close them look cool but have little real value. I think a lot of those features (plugins) were written more to show off what Compiz can do than to provide useful functionality. I don't doubt that lots of users are still using them though. Linux users cherish the ability to customize settings to the nth degree.

Personally, I am most concerned with the Compiz plugins that add functionality to my desktop. There are plenty of those too. I am going to outline some of my favorites and most useful. First though, I want to point out that if you have Compiz installed, you will want to also have the CompizConfig Settings Manager (ccsm) installed too. You can add it from Add/Remove Applications. Also, when I refer to the Super key it is most likely the Windows key or Apple Key on your keyboard. And now, on to the list:

Scale Effect (Shift+Alt+Up)
The scale effect is like the OS X "All Windows" Exposé feature that is invoked with F9. It shrinks all the windows down to fit on your desktop so you can see a thumbnail of everything running to find the window you want. This feature is most useful when you have lots of windows open. The more windows you have open, the smaller each thumbnail gets. It also puts the application icon down in the corner for you to help with identification of applications. You can use your mouse to select the window you want or while still holding down Shift+Alt you can use the arrow keys to move to the window you want.


Ring Switcher (Super+Tab)
The ring switcher is another feature for switching between windows. With this plugin all your windows are shrunk and rotated as if on a rod. The windows farther away are smaller and the window you are switching to is front and center. The window title is also displayed. Although not as useful as the scale effect for selecting a window, it is another good way to scroll through all your open windows and switch applications. Maybe you like the way this one looks better too. It is more like the traditional Alt+Tab but allows you to see all of the windows available at once.


Enhanced Zoom Desktop (Super+Mouse Scroll Up/Down)
Zoom can be a really handy feature. If you run your system at a really high resolution, sometimes you need to be able to take a closer look at something. I've found this feature very useful when watching videos that I can't resize or when using a CRT that just isn't very sharp. It also provides a universal way to zoom so instead of having to know how to zoom in different applications, you can always use this.


Expo (Super+E)
Expo is a feature that makes switching between workspaces (a feature Windows is sorely lacking) a lot easier. It will spread out all your workspaces in a row (with some nice reflection) to allow you to see what is running on all of them at once and then switch to the one you need. Since I've used Linux more I have started to rely on multiple workspaces. I usually have one just for my IM client, one for my personal web browsing, one for work web browsing, one for my media player, one for document editing, etc.. With Expo, seeing what is where is a lot easier and getting there is faster.


Shift Switcher (Shift+Super+E)
The shift switcher is another of the features for switching between running applications. It works like cover flow in iTunes. Because you only see 3 windows at a time, I don't use it as much as the scale effect or the ring switcher but it still useful when you have less windows open at once.


Window Previews
I first saw a feature like this on Windows Vista. Maybe someone else thought it up first but who cares as long as I can use it. I think this feature has great potential but it also has a HUGE problem as it currently works. If you want to see a thumbnail now, the window has to be visible already. If the windows is minimized, it will not draw the thumbnail. I can understand the technical limitations that lead to this but this feature is most useful when the window is minimized. To see these all you have to do is mouse over the application on the taskbar.


One last honorable mention that I really love is the Viewport Switcher which allows you to use your mouse scroll wheel to switch workspaces when the pointer is over the background. I could not really get a screen shot to show that.

Also keep in mind that you can customize most any of these settings for days on end to get these features to work just the way you want them to. Just install the CompizConfig Settings Manager (ccsm). Some of these features I mentioned are not enabled by default either (on Ubuntu 8.04 at least) so don't expect them to all work untill you enable them.

One last thing, if you haven't seen Compiz in action, just look on YouTube. There are tons of screencasts showing these features and the crazy awesome ones too.

Monday, June 2, 2008

cli_negprot: SMB signing is mandatory and we have disabled it.

I am trying to mount a Windows share on a a 2003 server machine with an old Fedora Core 1 box. Mounting the same share using the same command on Ubuntu 8.04 worked (Samba 3.0.28a) but not on Fedora (Samba 3.0.7-2.FC1). The Fedora box also was able to mount a share on Windows XP without any problems. The error I kept getting was cli_negprot: SMB signing is mandatory and we have disabled it.

Looking around some I found that this is due to a security policy in Windows 2003 Server that forces the connections to be encrypted. To disable it, on the Win2k3 box go to Administrative Tools -> Domain Controller Security Policy. Then select Local Policies -> Security Options and find the policy Microsoft network server: Digitally sign communications (always). Disable that. (I also had to disable: Microsoft network server: Digitally sign communications (if client agrees) to keep from getting a Permission denied). You will then you will want to reload the policy with 'gpupdate'.


After that though, I got another error message: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name) That message means that I am trying to mount a directory inside of the share (which I am, and which works on the newer versions of Samba). This fix for that is to just mount the share and change your path references (or upgrade).

Instead of:
mount -t smbfs -o username=USER,password=PASS //HOST/SHARE/DIR /mnt/DEST/

Use:
mount -t smbfs -o username=USER,password=PASS //HOST/SHARE /mnt/DEST/

and then change your usage to always change to the DIR.

Friday, May 30, 2008

Setup multiple IP addresses on Ubuntu

I'm working on migrating a server again today and we decided that we want to put some of the services on 1 IP and the others on another so if we ever need to move one set of services over the IP can follow. This is the machine that is running Ubuntu 8.04 Server.

It turns out this is a pretty simple thing to do. First, edit your interfaces file:

sudo nano -w /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

Then add in a few new lines below the eth0 section to create a new virtual interface:
auto eth0:0
iface eth0:0 inet static
address 10.10.10.200
netmask 255.255.255.0
Then restart your networking:

$ sudo /etc/init.d/networking restart

And there you have it, your new virtual interface with your new IP.

$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1d:09:15:74:af
inet addr:10.10.10.122 Bcast:10.10.10.255 Mask:255.255.255.0
inet6 addr: fe80::21d:9ff:fe15:74af/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:52 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9780 (9.5 KB) TX bytes:5388 (5.2 KB)
Interrupt:17

eth0:0 Link encap:Ethernet HWaddr 00:1d:09:15:74:af
inet addr:10.10.10.200 Bcast:10.10.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:17

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:38081 errors:0 dropped:0 overruns:0 frame:0
TX packets:38081 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1614360 (1.5 MB) TX bytes:1614360 (1.5 MB)

Thanks go to NukeSilo.com for getting me started and the Debian guide on Network configuration for all the details.

Tuesday, May 20, 2008

File modification dates changed in Ubuntu 8.04 on copy or move

Before upgrading from Ubuntu 7.10 to 8.04, I had the annoying problem of file modification dates getting changed when copying files to an NTFS file system. I also found that the problem was fixed in a newer version of ntfs-3g and all I had to do was get the package from the Ubuntu backports repository. Yipee!

But now I am running Ubuntu 8.04 and the problem has returned just in a new and nastier form. Now file modification dates are always updated in any move or copy, including ext3 to ext3! I did find that I could get around this problem when copying from the command line with cp using the -p switch to "preserve the specified attributes (default: mode, ownership, timestamps), if possible additional attributes: context, links, all". That didn't work for me when copying to an ntfs partition though. I got an error message: cp: preserving times for `/path/My Documents in Windows/testfile.zip': Operation not permitted

I could (and did) use sudo to make it work on ntfs though. I am glad there is a work around but I really do not want to have to drop to a command line every time I want to move or copy a file that I want the modification date preserved. I want to use Nautilus to drag and drop things!

I knew from my previous issue with ntfs that the copy command doesn't preserve the modification date by default but copying in Nautilus did and now it doesn't. There was a major change from 7.10 to 8.04 with the file system though. GNOME now uses GVFS instead of GnoneVFS (confusing similar names I know). And from my research, it looks like that is the problem. There are bug reports here (Ubuntu) and here (GNOME). Now let's hope it gets fixed for 8.04 and soon! Until then I guess I will be dropping to the command line to move my photos around, argh!

Friday, May 16, 2008

Weird sound issues on Ubuntu 8.04, only one speaker or no sound at all

Now that I have upgraded to Ubuntu 8.04 I am utilizing PulseAudio instead of esd so the audio subsystem should be much better right? According to the Hardy release notes, PulseAudio

... makes it possible to mix audio from multiple applications together, assign audio from individual applications to specific sound cards, adjust volume levels of each individual application, and perform advanced operations on audio streams such as transferring the audio to another computer or changing sample formats and channel counts.
That sounds great. Only thing is it has been doing some strange things. Occasionally I lose sound on some or all applications. I haven't exhaustively tried to fix this problem yet but so far restarting has been the only solution.

I also just recently had a problem where only my left speaker was giving me any output. Fortunately muting and unmuting fixed that. I also read that adjusting the volume of both or more channels will also fix it.

Thursday, May 15, 2008

Backup and restore a MySQL database using mysqldump

Today I am working on migrating some web apps to a new server. The old server was running Fedora Core 1 (yeah, really old) and the new box is running Ubuntu 8.04 server edition. (This is the first time I have ever used the server version. A coworker chose the distribution. I think I would have gone with CentOS (a RHEL clone) but it will be nice to play with Ubuntu server too. I am not some super Ubuntu fanboy!)

So I am moving a MediaWiki 1.5 installation (you know, the software that runs Wikipedia) and upgrading it to 1.12. Copying the files and upgrading proved to be pretty simple and painless so far as I can tell but backing up and restoring the MySQL DB between version 3.23.58 and 5.0.51a got me a little concerned. I wanted to copy over an archive of the /var/lib/mysql/mediawiki db data directory and restart MySQL but that didn't work. It has in the past when going from a 3.x to a 4.x but I may have been pushing my luck even then too.

The best way I found to do this though is to use mysqldump. I have used this before but I always forget all the syntax (which is why I am writing this post). mysqldump will spit out SQL statements to recreate your database and reinsert all the data. The problem with that is you then have a gigantic .sql file that you have to import into your new database. That feels a lot less foolproof to me than if just copying the data directory would (had it worked).

Anyway, to backup your database with mysqldump, do this:

$ mysqldump -u root -p DBNAME > DBNAME.sql

And then to restore that, do this:

$ mysql -u root -p
mysql>CREATE DATABASE NEW_DBNAME;
mysql> \q
Bye
$ mysql -u root -p NEW_DBNAME <>

There you have it. There is also the option to use msqlhotcopy but I didn't bother with it.

Other tutorials and thoughts:

Tuesday, May 13, 2008

Ubuntu and Debian users, update OpenSSL now!

It was announced today that there is a critical issue with OpenSSL packages in Debian based distributions such as Ubuntu:

A weakness has been discovered in the random number generator used by OpenSSL on Debian and Ubuntu systems. As a result of this weakness, certain encryption keys are much more common than they should be, such that an attacker could guess the key through a brute-force attack given minimal knowledge of the system. This particularly affects the use of encryption keys in OpenSSH, OpenVPN and SSL certificates.
Be sure to check update manager and download the latest updates!


Saturday, May 10, 2008

New Update Icons in Ubuntu 8.04

Have you noticed the new update icons in Ubuntu 8.04 (Hardy Heron)? The old update icon was an orange box with what looks like a white sun in the middle. It was OK. The new icon is a nine sided star (enneagram) with a white arrow pointing down. I have also noticed a new "Critical Updates" icon that I never saw in Ubuntu 7.10 (Was it there and I just never saw it?). The critical updates icon is a big red down arrow with an exclamation mark in the middle.

I really do like the new icons. They look a lot more defined and get your attention better. I especially like that there is an icon that indicates critical updates now too. I do wish the critical updates icon was more like the regular update icon though. They are so different that it is not obvious at first that they both signify updates are available. Maybe Ubuntu could use the same icon and change the color and/or the little icon inside the icon.

My one other beef with the new update icon is it also looks like the application crash notification icon. I think it is a bad idea to make both of those icons look so similar. Check out the image below to see what I mean.

The new update icons in Ubuntu
(click on the image for the full size version,
PNGs don't resize well!)
Ubuntu 8.04 Update Icons
So what do you think of the new icons?

Sunday, May 4, 2008

Resize and rotate images easily with Gnome in Ubuntu

Today I wanted to post some pictures to a site but to upload them I needed them to be considerably smaller. I know lots of ways to resize images in Linux but I needed an easy way to resize them. In Windows, I am used to using the Image Resizer Power Toy. (Why is that not a default feature?) The image resizer in Windows allows me to just right click on one or more images and resize them to any number of sizes. That is pretty handy and a feature I was looking for in Linux too. Sadly, there is not one already installed by default. I knew I could use the Gimp to do what I wanted but that was overkill. I wanted a simple and fast solution.

That was when I found the nautilus-image-converter package thanks to this and this. You can install it from Synaptic (System -> Administration -> Synaptic Package Manager) like I did or from the command line with apt-get like so (make sure Ubuntu Universe is enabled first under System -> Administration -> Software Sources):

sudo apt-get install nautilus-image-converter

After installing it, you will need to restart Nautilus. The best way to do that would be to log out and log back in. You could also quit and restart Nautilus with the command

nautilus -q; nautilus &


which will quit and then start it back up in the background. Once Nautilus has restarted it will load the new extension and you will be able to resize and rotate images from the right click menu. You can also resize and rotate multiple images if you select multiple images first. Both resizing and rotating allow you to take the action on the current image or make a copy and rename it with .resized or .rotated. The copy option is the default for both actions. See the screen shots below for all the options available.

The new resize and rotate options

The resize image(s) dialog

The rotate image(s) dialog
There you have it. Easy image resize and rotate in Gnome. And want it to be default, vote for the idea below:


Monday, April 28, 2008

Ubuntu Desktop Screenshot of the Day #7 - ATI Big Desktop

Why in the world have I waited so long to play with Big Desktop?? I can't live without multiple monitors these days but in Linux I have dealt with a limited setup for a while. I've had my system setup with dual monitors but with dual X sessions too. This has kept me from being able to drag icons and windows between monitors. Fortunately things like Cut/Copy/Paste worked but it was less than desirable. I also could not open the same application in both windows so if I wanted a browser in each window one was Firefox and the other Epiphany.

Tonight I decided to just mess with the aticonfig program that helps you setup your xorg.conf for ATI cards. I followed the Ubuntu forums thread on Big Desktop (but only part of the way) and now look what I have:

Click for the full size 3200x1200 desktop image


Isn't that sweet? One interesting note is the screen is not really that large. The monitor on the right is a smaller resolution than on the left so really the gedit window is almost to the borders of the right monitor. I wonder what other tweaks I can get working. I only messed a little with this to get to this point. It is just so tedious fooling with my xorg.conf file!

I see a lot of others have had success too (some more easily than others, lucky nvidia owners):
Also, better background support would be nice here. The background I have now works well tiled. All the other single images I tried didn't work well split across screens. Vote for the brainstorm to have that fixed. Fortunately it may come sooner rather than later as Google Summer of Code has sponsored the GNOME project Individual Workspace Wallpapers which might help some.




And for my future reference (and yours) and backup, here is my new /etc/X11/xorg.conf for my Big Desktop setup of an ATI Technologies Inc RV370 5B60 [Radeon X300 (PCIE)] on Ubuntu 8.04 Hardy Heron (I have a Logitech MX1000 mouse in there too).

#Section "InputDevice"
# Identifier "Configured Mouse"
# Driver "mouse"
# Option "CorePointer"
# Option "Device" "/dev/input/mice"
# Option "Protocol" "ImPS/2"
# Option "ZAxisMapping" "4 5"
# Option "Emulate3Buttons" "true"
#EndSection

Section "ServerLayout"

# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
# Inputdevice "Configured Mouse"
Identifier "Default Layout"
Screen 0 "aticonfig-Screen[0]" 0 0
InputDevice "Generic Keyboard"
InputDevice "Logitech MX1000"
EndSection

Section "Files"
EndSection

Section "Module"
Load "glx"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Logitech MX1000"
Driver "evdev"
Option "Name" "Logitech USB Receiver"
Option "HWHEELRelativeAxisButtons" "7 6"
EndSection

Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "Monitor"
Identifier "Generic Monitor"
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 160.0
Option "DPMS"
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[0]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[1]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection

Section "Device"
Identifier "ATI Technologies Inc RV370 5B60 [Radeon X300 (PCIE)]"
Driver "fglrx"
Option "DesktopSetup" "horizontal"
Option "Capabilities" "0x00000800"
Option "PairModes" "0x0+0x0"
Option "EnableMonitor" "crt1,tmds1"
BusID "PCI:1:0:0"
EndSection

Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
BusID "PCI:1:0:0"
EndSection

Section "Device"
Identifier "aticonfig-Device[1]"
Driver "fglrx"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies Inc RV370 5B60 [Radeon X300 (PCIE)]"
Monitor "Generic Monitor"
DefaultDepth 24
EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "aticonfig-Screen[1]"
Device "aticonfig-Device[1]"
Monitor "aticonfig-Monitor[1]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "0"
EndSection

Sunday, April 27, 2008

View XPS (XML Paper Specification) files on Linux

A few days ago I was looking at the page for Windows XP SP3 and noticed some documentation at the bottom in a file format I had never heard of before. In addition to a PDF, there was an XPS (XML Paper Specification) available.

XPS is a new competitor to PDF. It was developed by Microsoft and included in Vista and Office 2007 (no wonder I have never heard of it before). They have submitted to the ECMA for standardization but I don't have much hope in them using the ISO Standard stamp as much more than a selling point. Microsoft has not shown they intend to play nice with standards. Remember their HTML extensions and ActiveX? And the latest crap with OOXML? They like to "Embrace, extend and extinguish"

Either way, if you are running Linux and need to view one of these files, I've only found one program so far that does it. The Gnome viewer Evince doesn't yet but the KDE4 viewer Okular does. To install it on Ubuntu just use Synaptic. There is a lot to install since you have to have the KDE base libraries but other than that it is fairly simple.

Logitech MX1000 Mouse on Ubuntu 8.04 Linux (Hardy Heron)

I upgraded to Ubuntu 8.04 tonight but when I did, my mouse didn't work at all anymore! I just had a dead pointer. I was able to get it working previously under Ubuntu 7.10 (Getting my Logitech MX1000 Mouse to Work, Fully, on Ubuntu 7.10) but those settings no longer worked. After playing with the settings some more, removing "CorePointer" from the InputDevice line did it for me. So, I am going to write up a new, improved and simpler how-to for the Logitech MX1000 Mouse on Ubuntu 8.04 Linux (Hardy Heron). This may also work for other multiple button mice but I don't have any other multi button mice to find out.

The very first thing to do is BACKUP your /etc/X11/xorg.conf file. Want a command for that? This will copy it to your home directory as xorg.conf.backup.

cp /etc/X11/xorg.conf ~/xorg.conf.backup

If ever you need to go back to your working config, just login to the terminal failsafe mode and switch the destination and source for the command below (plus add sudo to the front). Like so:

sudo cp ~/xorg.conf.backup /etc/X11/xorg.conf


Now then, first thing to do is install or make sure you have evdev installed. evdev is a generic input driver for keyboards and mice. (Read the man page I linked to for more detailed configuration options. Look most at the Absolute Axis Configuration section.) I think evdev is installed by default but run the line below to install it either way. If it is already installed it will just say so and not change anything.

sudo apt-get install xserver-xorg-input-evdev

Next you will want to edit your xorg.conf file. You must edit it with super privileges or you will not be able to save it. To edit it in gedit, issue this command:

gksu gedit /etc/X11/xorg.conf

Add a new MX1000 InputDevice section and comment out the old mouse InputDevice section. I first thought you didn't have to comment out the old mouse section but if you don't then your buttons will get mapped to 3 and 2 instead of 9 and 8 and they will not work for forward and back.

Section "InputDevice"
Identifier "Logitech MX1000"
Driver "evdev"
Option "Name" "Logitech USB Receiver"
Option "HWHEELRelativeAxisButtons" "7 6"
EndSection

#Section "InputDevice"
# Identifier "Configured Mouse"
# Driver "mouse"
# Option "CorePointer"
# Option "Device" "/dev/input/mice"
# Option "Protocol" "ImPS/2"
# Option "ZAxisMapping" "4 5"
# Option "Emulate3Buttons" "true"
#EndSection
The "Name" option must match the device name exactly. It is case sensitive. To determine your device name, run:

cat /proc/bus/input/devices

You will get output (along with other devices) that looks something like this:
I: Bus=0003 Vendor=046d Product=c50e Version=2500
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:1d.3-2/input0
S: Sysfs=/devices/virtual/input/input5
U: Uniq=
H: Handlers=kbd mouse1 event5
B: EV=7
B: KEY=1f0000 0 100 38 c0000000 c0000 0 0 0
B: REL=103
The Name listed there is the same name that must match in your InputDevice section. Next, add the new Logitech InputDevice that you created in the ServerLayout section and comment out the old mouse. Do it this way so if you messed something up, you can comment out the new Logitech mouse and uncomment the old mouse to switch back.
#    Inputdevice    "Configured Mouse"
Inputdevice "Logitech MX1000"
Now just logout and log back in. Logging out seems to restart the XServer, a necessary step, but if that doesn't work you can use Ctrl + Alt + Backspace. Use caution as that will kill your X session immediately and all open programs will just get killed.

If you have any problems with this, you might want to try my previous write up from when I was running Ubuntu 7.10. I upgraded from 7.10 -> 8.04 so I may have missed some necessary steps because I'd already done them previously. I don't think I did though.

And for reference, my full /etc/X11/xorg.conf after I was done:
Section "ServerLayout"

# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
Identifier "Default Layout"
screen 0 "aticonfig-Screen[0]" 0 0
screen "aticonfig-Screen[1]" rightof "aticonfig-Screen[0]"
Inputdevice "Generic Keyboard"
# Inputdevice "Configured Mouse"
Inputdevice "Logitech MX1000"
EndSection

Section "Files"
EndSection

Section "Module"
Load "glx"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Logitech MX1000"
Driver "evdev"
Option "Name" "Logitech USB Receiver"
Option "HWHEELRelativeAxisButtons" "7 6"
EndSection

#Section "InputDevice"
# Identifier "Configured Mouse"
# Driver "mouse"
# Option "CorePointer"
# Option "Device" "/dev/input/mice"
# Option "Protocol" "ImPS/2"
# Option "ZAxisMapping" "4 5"
# Option "Emulate3Buttons" "true"
#EndSection

Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Horizsync 30.0 - 70.0
Vertrefresh 50.0 - 160.0
Option "DPMS"
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[0]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[1]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection

Section "Device"
Identifier "ATI Technologies Inc RV370 5B60 [Radeon X300 (PCIE)]"
Driver "fglrx"
Busid "PCI:1:0:0"
EndSection

Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
Busid "PCI:1:0:0"
EndSection

Section "Device"
Identifier "aticonfig-Device[1]"
Driver "fglrx"
Busid "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies Inc RV370 5B60 [Radeon X300 (PCIE)]"
Monitor "Generic Monitor"
Defaultdepth 24
EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
Defaultdepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "aticonfig-Screen[1]"
Device "aticonfig-Device[1]"
Monitor "aticonfig-Monitor[1]"
Defaultdepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "0"
EndSection

And one more thing, a good program to test out your mouse buttons to figure out what is what is xev. The forward and back buttons should show as 9 and 8. Your left button is 1, right is 3 and pressing the scroll wheel is 2.