Sunday, September 5, 2010

Mac-like launcher (Cairo-dock)

  1. sudo apt-get cairo-dock
  2. remove the bottom panel
  3. start the GLX-Dock from the Accessories menu
  4. Configure the dock so it starts automatically when logged in

Brother HL-2170W Slow Printing (Ubuntu)

Needs to be set with a generic driver:
  1. Select Add Printer
  2. From "Other Network Printers:" select LPD/LPR Host or Printer
  3. Under "Connection" put in: socket://:9100 (the IP address of the wireless interface on the printer)
  4. Fill in name, description, location.
  5. Sharing (can be ignored at this time)
  6. Make: select Generic, and continue
  7. Model: Generic PCL 5e Printer Foomatic/hpijs-pcl5e (recommended)
  8. Finish adding the printer
The printing should go fast now even for the pages with lots of graphics in them.

Wednesday, May 26, 2010

mount.cifs issue in Ubuntu 10.04

mount.cifs not letting normal user to mount, the fix is:

sudo chmod +s `which mount.cifs`
sudo chmod +s `which umount.cifs`

Sunday, March 7, 2010

Slow Firefox in Karmic Coala

Found this to help:
Install sqlite 3 from command line (in terminal):
sudo apt-get install sqlite3

then (make sure you close Firefox) type this in terminal:
for f in ~/.mozilla/firefox/*/*.sqlite; do sqlite3 $f 'VACUUM;'; done


After this, seems that Firefox behaves faster.

Tuesday, November 17, 2009

Westell 327W Hard Reset (Verizon)

I was at the friend's house. They have this wireless router/modem model Westell 327W. It was behaving badly with the connection being up and down constantly. Of course, they forgot their admin username and password. We needed to do a hard reset on it.
Hard reset is done by pressing the reset button and holding it for long time pressed (like a minute or two as said by Verizon support). It actually did reset after around 30 seconds. The admin username password was reset to admin/password pair.

To check this you connect via cable to it and go to http://192.168.1.1 address. There you can set new admin username and password, which is desirable as you do not want anyone else to access your router via wireless connection. Another thing to set is your wireless security (such as SSID name and WEP password).

In this particular situation, The connection to Internet did not work. The Verizon page would be showing up saying offering option "reconnect after resetting modem". That required Verizon online username and password.

Alternative, path to enable this was to got the address:
http://192.168.1.1/verizon/redirect.htm
and click on disable button. After that, the Internet connection was allowed.

Sunday, November 15, 2009

Viewing CHM files in Gnome (Ubuntu)

I came across several ebooks in CHM file format. In order to view/open those in Linux you need a CHM file viewer.
In default Ubuntu install with Gnome, you install gnochm package. In KDE (Kubuntu), there is Kchmviewer (have not tried it).

Command:
sudo apt-get install gnochm

Friday, November 13, 2009

Checking PDF Colour base (RGB or CMYK) on Ubuntu

RGB or CMYK
I needed this thing for sending out a PDF file to printers (ad in a magazine). These are some notes for Ubuntu 9.10 (Karmic):
  • Install imagemagick package, which contains identify command:
    sudo apt-get install imagemagick
  • Run identify command on a PDF file to check if it contains RGB or CMYK colours:
    identify -verbose MyPdfFile.pdf
Additional comments
  • Ran into some Gimp plugin package, but was not sure how to use it
  • In Scribus, when exporting to PDF, one can select "Printer" in the colour tab. That created CMYK PDF file. Was not sure if it was the best quality though. Some experimenting needed.

Wednesday, September 30, 2009

Built-in Mic Issue with Linux Mint 7 (Ubuntu 9.04) Vostro 1400

Issue
Built-in digital mic does not work in Ubuntu 8.10 and newer. Similar situation with recent Fedora and OpenSuse. It was located as PulseAudio issue, but I never managed to fix it. Recently playing with Linux Mint 7 XFCE and standard GNOME I started looking for a fix and had luck with the following:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/275998/comments/109

Fix
I followed the directions and here are some snapshots:
  • First, edit or create /etc/asound file. Add the following text displayed in the picture below to add a new device called "alsaboost". Use command:
    sudo gedit /etc/asound

  • Then edit /etc/pulse/default.pa file. Insert the following two lines where shown in the picture below. Use the following command:
    sudo gedit /etc/pulse/default.pa
  • Reboot computer here for new settings to take place
  • Go to Volume Control... and click on Preferences, then select +50db Mic

  • Then in the Volume Control, you should see a slide bar for +50dB Mic

  • This can also be adjusted from Terminal using command alsamixer:

Skype
  • In Skype, in Options for Sound Devices, select Sound In to be new "alsaboot" component, and Sound Out and Ringing to be "pulse"

References
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/275998/comments/109

Friday, September 25, 2009

Linux Mint 7

Intro

I always liked Linux Mint variant of Ubuntu. For some reason I was coming back to the Ubuntu mainly I guess for the reason of staying comfortable with it and following the progress. When I noticed on DistroWatch new XFCE Mint I decided to give it a try. I ended up playing and installing both XFCE and standard Gnome Mint 7. Some very pleasent suprises came out of the excersise.

Good Stuff
  • Cosmetics. Linux Mint really has all of the cosmetics figured out just nicely. Both standard and XFCE versions look extremely eye pleasing.
  • Pre-configured. Another big plus is that Java, Flash, and some codecs are there by default so you are pretty much ready to go. Selection of the software is very nice. Mint tools also do make sense (software install, backup, configuration) although for some things I still like using standard Ubuntu way, which is there.
  • Repositories. Repositories are already pre-configured so basically all jou need to do is run Software Manager or Package Manager and browse and install what you need. My "usual suspects" are: aMSN, Skype, FileZilla, Opera, Evolution, msttcorefonts, non-free-codecs, htop, mc, etc. Pretty easy to add with no changes in preconfigured repositories.
  • Device Support. This comes from Ubuntu in general, but I noticed that audio configuration went much smoother. Also, liked the support for webcams. On my HP desktop that has video card, Mint properly selected webcam to be the input device.
  • Installation. Pretty fast installation. Around 15-20 mins from Live CD.
More Good Stuff
  • Audio. Mint 7 is based on Ubuntu 9.04. I really liked 9.04 improvements, but I had a major issue with not being able to adjust audio on my laptop. Could never make my built-in digital mic to work. Once I put Linux Mint 7 XFCE, I was pleasently suprised that the mic worked just fine and I could use Skype with no issues whatsoever.
Issues
  • With XFCE version I was not able to browse my Samba shares, Standard Mint went through that with no problem.
  • Where is "Lock" icon? CTRL+ALT+L still works.
  • Update icon displayed as a lock. Not really an issue, but little bit confusing.
Test Machines
  • Dell Vostro 1400
  • Dell Latitude E4200
  • Dell Vostro 220s
  • Dell Dimension E520. Had an issue with audio. Needed to add the fix "model=ref" into the alsa configuration file.
  • Dell Dimension 3000
  • HP MediaCenter (will check number)
  • VirtualBox VM
Conclusion
In general, very nicely pre-configured Ubuntu with some additional "goodies". I would recommend Linux Mint to anyone who wants to try Linux as first choice. Currently keeping as Linux choice for desktops. Will face some challenges with that Latitude E4200 as it will need to connect using VPN, Microsoft Exchange server, and dual monitors with docking station.

References
www.distrowatch.com
www.linuxmint.com
www.ubuntu.com

Experimenting with RAM disk on Ubuntu/Mint

Intro
I read little tweak article regarding use of Linux on laptops with SSD disks. One of the suggestions was to move /tmp folder onto RAM disk. So, I am here trying to do that on a "regular" desktop PC (Dell Vostro 220s).

Configuration
  • In console run:
    sudo gedit /etc/fstab
  • Add the following line to the /etc/fstab file:
    tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
  • Restart your PC for changes to take effect
  • Check your new /tmp with the following command:
    df -h
You should see a new tmpfs partition (RAM disk).

Firefox Configuration
Tell Firefox to use newly created /tmp folder for temporary files
  • In th address field enter about:config
  • Click yes to proceed
  • Create new String property named "browser.cache.disk.parent_directory"
  • Enter "/tmp" as field value (no quote signs)
Comments
This probably only makes sense if you have lots of RAM. In this case there is 3GB RAM, which is pretty good for running Linux desktop.

Tuesday, September 8, 2009

Thank you Google for celebrating Tesla's B-day (July 10)

I know I am little late, but wanted to thank Google for posting this cool image on July 10th. Thank you Nikola Tesla, too. Without him we would probably not have Google today... maybe in few decades.

Friday, March 6, 2009

Backup on Ubuntu (Samba or Windows Share)

Intro
These notes are my reminder notes on how to use rsync for backup with Samba or Windows shares on your LAN.

Installing Backup Tools
The following tools are needed:
  • Samba file system (smbfs)
  • Grapical interface for rsync (grsync)
Install the tools with:
sudo apt-get install smbfs grsync

"Map" remote share
Create folder for mounting remote share:
mkdir /home/username/smb
mkdir /home/
username/smb/backup

Backup process
Step1: Mount remote share:
smbmount //samba_server_name/samba_share /home/username/smb/backup -o username=samba_username,password=samba_password

Step2: Synchronize folders
run Grsync, by click on Applications->Internet->Grsync


This happened to be working great for me. If you want to backup the whole home folder be careful to mount your samba share somewhere else (not as subfolder within home). Grsync is nice front GUI for rsync.
I am using this setup to perform daily backups of my Documents folder to the remote Samba share. Grsync can be used with a local hard drive or USB key without need to mount remote samba share.

Wednesday, March 4, 2009

OpenJDK and Sun Java (Ubuntu 8.10 64-bit)

Intro
By default Ubuntu 8.10 (64-bit) installs OpenJDK for JRE, plugins, and Web Start. Since there are some issues with OpenJDK (especially noticeable with graphics, Swing, and fonts) the suggestion is to replace it with Sun's version that is not open source. Adding Sun Java from Partner repositories did no do a job for me as plugin and web start were not available. Addiong the package ia32-sun-java6-jre solved issue with Web Start (with 32-bit web start), but applets still did not work.

Fix
  • I completely removed OpenJDK and Sun Java installed from repostiories.
  • Then I downloaded the latest (in my case JDK, you can go with JRE) from Sun's website. I selected Linux x64 architecture.
  • In terminal I ran:
    sudo bash jdk-6u12-linux-x64.bin
  • Then I moved the newly created folder to /usr/lib/jvm
  • Since trying to run java command would not be found. I ran the following:
    sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_12/bin/java 1
    sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_12/bin/javaws 1

  • There was no need to configure alternatives for java since there was no other Java installed. If needed, this can be done with:
    sudo update-alternatives --config java
  • To enable plugin in Firefox I needed to do the following:
    sudo ln -s /usr/lib/jvm/jdk1.6.0_12/jre/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/
  • Restart Firefox. It should be finding 64-bit Java plugin on your Ubuntu 8.10
  • Only other thing I needed was to tell Firefox to run /usr/bin/javaws when it downloads Java Web Start programs. When prompted to download, click on "Open with" and navigate to /usr/bin/javaws. That should do it.
Comments
If I am following what I just did everything should be 64-bit version Java now: JRE, JDK, Java Web Start, and Java web browser (Firefox) plugin. Any additional suggestions or feedback are welcome.

Tuesday, March 3, 2009

Migrate Evolution Data from 8.04 to 8.10 Ubuntu Desktop

Intro
I am installing 64-bit Ubuntu 8.10 on Dell Vostro 220s. Everything is going "smoothly" so far. However, when I tried to migrate my email data by restoring Evolution backup, Evolution cannot start after import.

Fix
I found a simple fix for it on the net:
  1. Delete everything in your ~/.evolution folder (/home/yourloginname/.evolution)
  2. Start Evolution and import Evolution data by click on File->Restore Settings, un-check the option to start Evolution after restore.
  3. When restore is finished, temporarily rename ~/.evolution to ~/.evolution.bak
  4. Now start Evolution. It will re-create a new ~/.evolution folder and open with empty mail data. Close it.
  5. Delete ~/.evolution folder, and rename ~/.evolution.bak to ~./evolution
  6. Start Evolution again, it should work and find the data you imported.
Deleting files and renaming folders can easily be done from Nautilus (click on Places->Home Folder). Select an option to Show Hidden Files (in Nautilus click on View->Show Hidden Files, or CTRL-H) .

Sunday, March 1, 2009

No Title (yet)

Two-three months ago I trimmed the trees in the back and front yard. Kept few "sticks" in a vase. Some golden wiping willow, poplar (hybrid), and purple ash. They all grew roots.

Now, I decided to move two into a separate "bowl" kind of like Bonsai deal. Trimmed the roots little bit. Not sure if it is going to work though. I put only few pebbles, sand and just a little bit of low quality soil from my front yard (everything dies there, or turns Bonsai).

Monday, February 23, 2009

"Mini Linux Lab"

Intro
I sorted my old PC (read ones that are saved from going into dumpster). Machines I played with:
  1. Gateway 2000 P3/700MHz /w 384MB RAM and 30G HDD
  2. Gateway 2000 Celeron/666MHz /w 256MB RAM and 15G HDD
  3. Compaq DeskPro Celeron/466MHz /w 128MB RAM and 4G HDD
I had only little time this weekend so I did not have tim to play in depth with each individual combination.

Just for fun
On the first one I tried several distros. I settled with minimal Ubuntu setup (as described in one of the previous posts). Finally, some of my friends needed a second machine just for surfing net so I gave that one to them. I installed regular Ubuntu desktop (Gnome) 8.04 and that machine behaved OK. Was much faster under Blackbox with "mini" setup, but now it is up to them to play with it. It required "acpi=force" inside /boot/grub/menu.lst file.

The second one I settled with TinyMe (mini version of PCLinux) with Firefox, Flash, Java, and Skype. I will put this one in my kids room (5 and 3 year old) so tha tthey can sometimes play on sites such as PBS Kids and such. They love Curious George and Martha.

Third one was fairly slow one. It came with Windows 2000 on it. Took forever just to boot. The funny thing with Windows is that those machines 8-10 years ago came with those same versions of operating system and at that time they worked OK. Now, you take a PC that originally came with Windows, put that same version of OS on it, run updates (if you do not have life and have time to wait), and then those PCs become so slow that they are completely unusable. I finally put Austrumi Linux on it and it felt all snappy and quick (especially when I added expanded RAM to 256MB).


Distros
  • Absolute
  • Austrumi
  • Damn Small
  • Puppy
  • TinyMe
  • Ubuntu (alternate installer)
  • Vector
Puppy Linux and its derivatives always amazes me. It works so fast that I always say to myself "other guys should learn from this". Litvanian distro Austrumi, also beautiful and really brought this old machine back to life. One issue I miss with both Puppy and Austrumi is multi-user. Kind of not feeling good with autologin into root account. On the other note, those old PCs ran Windows, can not get less secure than that (Win 98/ME ...). Other nice use for these old PCs ar especialized distros such as firewall, file storage, etc.

Vector just released version 6.0. I love Slackware based distros for older PCs. Both Vector and Absolute are phenomenal. Absolute takes little long to install, but works great. However, with these Gateways there was an issue with video card. For some reason Slackware based distros kept throwing my video card in unreadable mode and I did not have time to try to fix that.

For my kids room I installed TinyMe. Works great and it is very easy to manage. I do not have much experience with it but I was always a fan of PCLinux and its derivatives. Very easy to install, and very easy to add Flash, Java, web core fonts, etc. Not as fast as Puppy and Austrumi, but will do the work just fine.

Instead of Conclusion
The fun thing is that these older PCs (these were from around 1998-2000) can be extremely useful and still have lots of value. All we need to do is replace Windows with Linux. The thing is that these PCs usually come for free (together with monitor, keyboard, mice) and all it takes is little cleaning. Sometimes, you can combine parts from couple of machines and make one with more memory, nicer video card, etc. There are even lighter distros such as Tiny Core and Deli. Those are definitively worth looking at.

Just for fun? Nothing wrong with that, although the answer is no. I hope my friends will have some use of the first machine. They are familiar with Linux and saw a value in having second PC for surfing, music, and work. My kids will definitively enjoy that second one. I picked the worst one for myself to keep playing with those "minimal" variants and learn more on how to tune and configure distros such as Puppy, DSL, Austrumi...

References
http://www.distrowatch.com
http://linuxmini.blogspot.com/

Firmware Update for Verizon Westell VersaLink 327W Router

Intro
I got an used Westell 327W wireless router for my friend. It is identical to the one I got and we are both using Verzion DSL. When I was testing it I noticed it had older firmware 03.02.00a. Funny thing is that mine got updated on its own (maybe by Verizon remotely). Anyhow this is just little reminder on what I did to update this one. The model number is B90-327W15-06. My understanding is that C90-xxx-xxx serial numbers are for AT&T or BellSouth customers (not sure).


Get Update
I tried to click on Check for web update, but it seems it was not finding the server so I opted for "Local" update. I went to:
http://www.verizon.net/versalinkupdate


There I clicked on the link that matched my model number (B90-327W15-06). Check what model number is on the sticker at the bottom of your unit. I saved the update file on my desktop. The file name was:
b90-327w15.rel.upg

Firmware Update
When you click on "Local update now" it opens new window with title "WireSpeed Data Gateway Update software". For the upgrade file, click on browse and select the file you downloaded to desktop. Click on upload file and the magic starts:


Please wait for few minutes.

Once done with updating the firmware, the modem/router unit resets itself. It takes a minute for that.


As you can see here there is totally new and cool interface. The modem is connecting.


The unit with new firmware is now connected. The old settings (wireless network and all that) should be preserved. Please double check. I find this new interface more user friendly.

Admin Password
You might be asked admin ussername and password. By default these units have username: "admin", and password "admin" (do not type in quotes). These are settings that can be changed so if you changed yours before and cannot remember, you can reset the unit by pressing reset button and holding it for 30 seconds. That should restore default values. On some websites I saw people mentioning combination username: "admin", password to be "password". On this unit I obtained it was admin/admin.

Linux?
Yes. The whole process was done using Mozilla Firefox 3.0.6 and Ubuntu 8.04LTS Linux.

UPS Backup?
Recommended. Well I had both the computer I used in the process and the Westell unit powered through uninterrupted power supply (UPS). You see there is this few "moments of truth" when you are actually erasing the existing Flash ROM inside the unit and burning the new firmware. I am not sure how good Westell's routine is and if it provides any security features against power failure during the upgrade. So if you happen to have an UPS please make sure both your PC and the Westell unit are powered through it (Note: if you use laptop with battery, your PC is OK, you need to plug the Westell's AC adapter into UPS protected socket).

Saturday, February 21, 2009

"Mini" Ubuntu 8.04 with Blackbox Window Manager

Intro
Last couple of weeks I have been playing with Ubuntu text based alternate installer CD. All that in quest for minimal Linux setup that would run nicely even on older PCs. Machine I was playing on one 700MHz P3 with 128MB, and 1.7GHz P4. I also played on Virtual Box under my regular Ubuntu setup.


Obtaining CD and CLI install
Go to www.ubuntu.com and download Ubuntu 8.04 LTS CD that is labeled as Alternate Installer, which is not a regular Live CD, but actually boots a text based installer.
Once you get the ISO file burn a CD with it and you are ready to start. Boot the PC with the alternate installer CD. You should get the screen below:
Select English, and then type F4 key to enter menu at the bottom where you can select installation type. Select to install a command-line system.

After that you should go through "regular" text based installer (based on Debian setup). Be careful when making option selections, especially when partitioning the hard disk. On this 700MHz P3, I selected Guided Partitioning for the entire disk (had no data to save from it).

You will be asked several questions such as time zone, username and password, etc. Wait for install to finish, then reboot and you should get a screen like this:

Login with you new username and password. Basically what you see is a minimal Ubuntu command line setup. If you type "free -m" command you should get around (only) 17M memory being used.

Update System
Issue following two commands:
sudo apt-get update
sudo apt-get upgrade


Adding CLI programs
Not very many people would find command-line interface (CLI) user friendly. Although, I have to say there are several very powerful CLI programs that may significantly improve the experience. At the top of my list is Midnight Commander (mc) file manager, that is fairly similar to famous two-pane Norton Commander from DOS era. If you are using this PC as network server for file storage having Samba and Midnight Commander could be sufficient. The thing about MC is that you can even browse and copy to/from network shares with its interface. From command-like tools I like Nano (nano) editor, and htop system info programs.

Issue following command to install these CLI prorgams:
sudo apt-get install htop mc nano

Adding X (GUI)
In order to run some useful GUI prorgams (for example Mozilla Firefox) you will need graphical user interface. By default Ubuntu comes with Gnome, KDE, or XFCE. There are several other window managers that may not be as nice as those three but are much lighter and not as memory and other resources hungry. In this example I will use Blackbox, but IceWM, JWM, Fluxbox, or Window Maker are worht looking at as well.

To install Xorg, Blackbox, and Firefox issue the following command:
sudo apt-get install xorg xterm menu blackbox firefox

To run X and Blackbox use "startx" in command line:

The picture below is Blackbox with selected "Blue" theme and running Htop. I like nice and neat dekstop look as well as the fact that only 27MB of RAM is being used at this point.

Graphical Login
If you want to have graphical login (such as default GDM) you can install gdm, or even lighter wdm or xdm.
In terminal issue the following command (in this example wdm):
sudo apt-install wdm
sudo /etc/init.d/wdm start


You can actually skip this step and keep logging into command-line interface, then starting graphical desktop with "startx".

Adding Sound
To enable sound in your applications issue the following:
sudo apt-get install alsa-base alsa-utils

Then run alsamixer to set master volume and enable mic:
alsamixer

Use left right keys to move from one setting to the next. Pressing M key would toggle on/off selections (green 00 means "enabled", MM means "disabled"). Make sure you selected right outputs and right mic input (important for programs such as Skype for phone over IP).

This can be done either through pure command line interface or inside terminal (xterm) in your Blackbox desktop.

Enable Printing
If you need to print from this machine you will need cupsys:
sudo apt-get cupsys cupsys-client

Once installed you can access cupsys settings via web interface. Open firefox and go to the following address:
http://localhost:631

In this case I selected to access remote printer on my other Ubuntu machine by changing "Manage Server" options (selected show printers shared by other systems).


Additional Repositories
You should edit /etc/apt/sources.list file:
  • add "multiverse universe" text to first two uncommented deb-src lines
  • uncomment "partner" repositories
  • definitively add Medibuntu repositories by adding the following to the end of the file:
    # Medibuntu
    deb http://packages.medibuntu.org/ hardy free non-free

    deb-src http://packages.medibuntu.org/ hardy free non-free

After this issue the following commands:
sudo apt-get update
sudo apt-get install medibuntu-keyring


Answer with yes when asked, and then issue
sudo apt-get update

Other Programs
Pretty much here you are building your system by adding things to it. Things to imrpve the Internet experience are for example Flash and Java plugins, core fonts, etc. In this case I also installed Skype and VLC video player:
sudo apt-get install adobe-flashplugin msttcorefonts openoffice.org skype sun-java6-plugin vlc

There are definitively other apps you may want to add. I found it useful to have a standard Ubuntu install on another machine so that I can browse the packages and look what might be needed on this light setup. Definitively an interesting approach to add only things you need, while keeping your system lean and mean.


Editing Menu entries
To be added (Skype example)

References
http://www.ubuntu.com
http://www.psychocats.net/ubuntu/minimalold
https://help.ubuntu.com/community/

Monday, February 9, 2009

Lightweight Ubuntu - My first Linux Distro

Lightweight Ubuntu
I am writing this from a Pentium 3 at 733MHz with 256M. I have been playing with alternative setup CD from Ubuntu and followed several instructions on how to make a lightweight Linux installation. Currently running IceWM window manager and Ubuntu 8.04.2. Will provide some notes when I sort them out.


Making a distro (remastersys)
Installed remastersys utility, which is a tool to make a live CD and install ISO based on your current setup. Fairly easy to run. Not sure if I am ready to start yet another Ubuntu based Linux distro. However, it was pretty cool.

I like it
I am pretty excited as I am runing an Ubuntu that reports only 40-50M RAM used when logged in. FireFox is pretty fast. I also installed Flash plugin and Java-JRE. Finally I added OpenOffice.org3 (just to confuse myself), but everything works pretty decent. Skype behaves great. The menus in IceWM need to be sorted out, but I got me a very nice setup and this Pentium 3 PC seems to be fairly useful this way.