Saturday, November 20, 2010

Creating a bootable USB for Meego 1.1 in Ubuntu

What is Meego? Yet another netbook OS.

Site reference of Meego.

1. Download the image file from Meego's website.
2. After download is complete, insert a USB in your computer. At least 1gb in size. It doesn't matter if it is formatted or not. ALL DATA WILL BE ERASED.
3. Determine the device ID assigned by Ubuntu to the USB. In a terminal window, type:
sudo fdisk -l

You will see an output similar to this:
Disk /dev/sdc: 2003 MB, 2003828736 bytes
16 heads, 32 sectors/track, 7644 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *          16        7644     1952832    b  W95 FAT32

Your hard disk will usually be /dev/sda. Don't pick that!

4. Unmount your USB drive.
umount /dev/sdc1

5. Run the dd command in the terminal.
sudo dd bs=4096 if=<image file> of=<usb drive>

example:
sudo dd bs=4096 if=Downloads/linux/meego-netbook-ia32-1.1.img of=/dev/sdc1

At the end of the process, you will see an output in the terminal window similar to this:
210688+0 records in
210688+0 records out
862978048 bytes (863 MB) copied, 169.138 s, 5.1 MB/s

That's it. You may now boot your netbook with the USB Meego.

Monday, November 15, 2010

Audacity in Ubuntu 10.04

Make sure you have installed the ubuntu restricted package first.
sudo apt-get install ubuntu-restricted-extras

Then to install audacity:
sudo apt-get install audacity libmp3lame0

Saturday, November 13, 2010

How to resize pictures in Knoppix command-line

Here's a short how-to to reduce the size of picture files downloaded from a digicam, to prepare the picture files for upload to Facebook or other social network sites.

One word: Mogrify.

sudo apt-get install imagemagick

after the package installs, go to the folder containing the images you want resized, and go ahead to resize all the pictures to your preferred size, mine being 800x600. You also have to watch the lower - upper case of the file extension for the jpeg files, it could be ALL CAPS or small caps.

mogrify -resize 800x600 *.JPG

Here is a more detailed reference.

Saturday, November 6, 2010

Knoppix 6.2.1 versus Knoppix 6.2, installing flash

Well, I just had to take a note on the differences here.

Knoppix 6.2.1 uses kernel 2.6.32.6, and was released January 2010.
Knoppix 6.2 uses kernel 2.6.31.6, and released two months earlier, November 2009.

And here's the simple way to install Flash in Knoppix's Iceweasel browser, via terminal window:
sudo apt-get install flashplugin-nonfree

Knoppix 6.2.1 - setting system date and time

Installing the correct system date and time
In a terminal window, run as root:
dpkg-reconfigure tzdata

and search for your region and city. Mine is Asia/Manila.

Open the autoconfig file as follows:
sudo nano /etc/init.d/knoppix-autoconfig

Go to line 355 - ctrl+w, then ctrl-t - to the entry KTZ="$(getbootparam tz)" and change that to:
KTZ='Asia/Manila'

substituting your own region and city. Save the file - ctrl+x.

In the terminal window, again:
sudo apt-get install ntpdate

If apt generates an error, try updating the repositories first, like:
sudo apt-get update

then try to get the ntpdate package again.

After ntpdate package is installed, edit the ntpdate config file:
sudo nano /etc/default/ntpdate

The changes I did on my configuration:
NTPDATE_USE_NTP_CONF=no
NTPSERVER="0.asia.pool.ntp.org 1.asia.pool.ntp.org 2.asia.pool.ntp.org 3.asia.pool.ntp.org"

substituting your own ntp.org servers in that line. You may google your ntp server by googling something like sydney ntp server, for example.

Then save the file. Done!

My reference is this Knoppix forum thread.

Saturday, October 30, 2010

Globe Tattoo Huawei modem e1552 on Ubuntu 10.04

I posted the how-to in the Ubuntu forums to make it work in my 512mb grand, old IBM Thinkpad R40e laptop.

Friday, October 15, 2010

Linux basic commands

Show hard disk space:
df -h

Show memory details:
cat /proc/meminfo

Create a folder:
mkdir somefolder

Saturday, September 18, 2010

rSync-ing files from your local to a remote (Ubuntu) host

Prerequisites:
1. On the local computer, Ubuntu 10.04 desktop installed.
2. On the remote, Ubuntu 10.04.1 Server edition installed. Configured simply as an OPENSSH server.

Objective:
Backup my Thunderbird files located at /home/user/.thunderbird to the remote host.
Use the fantastically fast rsync command to quickly sync folders between my local machine and remote host. Connect securely by ssh.

Steps:
1. Create ssh keys for my desktop & server, so my ssh connection won't need to ask for passwords everytime I connect to the server.
On my desktop Ubuntu terminal window, generate the public/private key pair. Accept default values, hitting Enter for all the prompts asked. This would mean accepting the default file name for the key, and having an empty passphrase:
ssh-keygen -t dsa
Move the public key over to the remote host:
ssh-copy-id username@remotehost
replacing username for your actual user name, and remotehost with the IP address of the server, like
ssh-copy-id lavezarez@10.42.43.10
A possible pitfall to avoid - ensure you have the same user name on BOTH your local and server machines.
Login to the server via ssh, and ensure correct permissions to the public key.
ssh lavezarez@10.42.43.10
chmod 600 .ssh/authorized_keys

2. Create the backup destination folder in the server.
You may use Nautilus to connect via SFTP to the server. Press Ctrl-L to open up the location bar, and type sftp://username@remotehost (e.g. sftp://lavezarez@10.42.43.10)
Open up the extra pane (on the View menu of Nautilus) or hotkey F3. That way you can see folders on your local and server machines at the same time, much like winscp for Windows.

You may want to change permissions for the new folder using chmod. Octal 750 is a usual permission value.

3. Finally the rsync. Here's a sample executable script -
#!/bin/sh
rsync --progress -avhe ssh --delete /home/lavezarez/.thunderbird/ lavezarez@10.42.43.10:emailbackup/
echo -n Press return to continue...
read ans

---
An initial rsync for a 3gb-sized folder took about 4 minutes to transfer to the server, running on a typical 100mbps LAN connection.

Running the rsync after that completes the transfer process much faster, under 5 seconds, 10 seconds, etc. depending on what files changed in the source.

---
Changing ssh servers:
Should you change one server with another, while maintaining the same IP address, you must clear your /home/<user>/.ssh/known_hosts file before attempting to ssh to that server.

Thursday, September 16, 2010

How to configure a static IP address in an Ubuntu machine

Edit the /etc/network/interfaces file
sudo nano /etc/network/interfaces

and change the following lines
# The primary network interface
auto eth0
iface eth0 inet dhcp

into a similar pattern as:
auto eth0
iface eth0 inet static
address 10.0.0.100
netmask 255.255.255.0
gateway 10.0.0.1

Wednesday, September 15, 2010

backup up a windows desktop to an ubuntu server

Prepare the server. Install Ubuntu Server 10.04.1, and choose the OPENSSH option for server type.

On Windows client:
- install cwRsync
- create your working folder for rSync, e.g. c:\sshstuff
- copy the cwrsync.cmd batch template from cwrsync's install folder to the working folder
- set the windows system environment PATH variable to include the cwRsync folders
- get the user name, e.g. lavezarez

On the Ubuntu server:
Create a user id to user for ssh rsync operations.
- modify the /etc/adduser.conf file and change -> DIR_MODE=0750
- create the user ID
sudo adduser backuper
and follow the prompts.

Below are repetitive steps for each Windows machine to backup:

Back on the windows client:
- Generate ssh public & private keys
ssh-keygen -q -b 1024 -t rsa -f cwrsync -N '' 
Assign a unique file name for the key. It shouldn't be cwrsync all the time.
- via winscp
Create the destination folder for the Windows machine's files.
Copy the pub key to the ubuntu server (via winscp or other means), at /home/user location. Multiple desktops to backup can have a SINGLE Ubuntu user login, having multiple pub keys.

back on the ubuntu server:
- logged on with the windows user's name,

these steps untested, from cwRsync FAQ --
mkdir -p .ssh
cat cwrsync.pub > .ssh/authorized_keys
ln -s .ssh/authorized_keys .ssh/authorized_keys2
chmod 755 home/backuper home/backuper/.ssh
chmod 644 home/backuper/.ssh/authorized_keys
chown backuper.ssh .ssh/authorized_keys

You only have to do all these steps the first time. The only step you repeat for each Windows machine is the cat command.

For 2nd and other Windows machine, the pub key must be copied to Ubuntu and appended to its authorized_keys2, much like:
->copy the foo.pub file via winscp to Ubuntu server.
->ssh ubuntu server, login as the backuper user
then type:
cat foo.pub >>~/.ssh/authorized_keys2

This tip taken from this site.

It may also be easier for you to set the permission octals and ownership using winscp.

back on the windows:
Create backup folder in ubuntu via winscp
then try the rsync NOW!

Typical rSync options: --progress --delete -avhe "ssh -i /cygdrive/c/sshbackup/mykey"
where sshbackup is the folder where the private ssh key is stored in Windows
and mykey being the actual private ssh key file.

References:
cwRync reference
Ubuntu server openssh reference
Ubuntu server adding users reference

Sunday, September 5, 2010

Installing Tomcat 6 in Ubuntu 10.04

New adventure - Java web application development.

Packages installed so far:

sudo apt-get install tomcat6 tomcat6-common tomcat6-examples tomcat6-docs tomcat6-admin

Friday, August 27, 2010

How to send a video privately in Facebook

You can send a video in Facebook to a specific person only via Home → News Feed

Enter your news feed message for the person – example: “This is my video”

Attach your video file. After entering your text message inside the box, click on the video Icon below the box.
Choose between Record a Video, or Upload a Video, depending if you will record a video now on your webcam (connected to your PC, or built-in your laptop) or you already have a file in your computer.

Follow the prompts.

Record a small video, small meaning a record time maximum of 30 seconds.

Choose the specific person to send the video to. Click on the Padlock icon beside the Share button.

Choose the last option – Customize.



Choose Specific People in the Make this visible to section. Type the name of the person in the space provided.




Click on the Save Setting button.

Lastly, Click on Share button to send your news feed video to the person .

Saturday, July 10, 2010

Dismal AntiX M8.5 install

Got the itch again, and attempted to replace my existing Knoppix 6.2 with this distro but testing its capabilities for painless auto-detection of my Huawei e160 broadband modem and making it share the Internet connection with my other computers proved frustrating.

Checking the free memory during its idle state via:
free -m -t
reported around 80mb used. Touted as a lightweight distro, it didn't come close to matching Knoppix 56mb record, though.

So it was a no-go, with me ending up a bit more faith and happier to keep Knoppix (for now).

Wednesday, July 7, 2010

Linux minimal install - Knoppix 6.2

After just 2 days, I had to dump the Ubuntu 9.10 minimal and go back to Knoppix because the computer kept freezing. Here are my notes for this 3rd re-install of Knoppix.

Here are the magic numbers for this install:
Memory on idle mode:
Used: 55mb, Free: 184mb
on swap space -
Used: 0mb, 1027mb

Kernel: 2.6.31.6 - based on the Knoppix live CD

---
enabling flash:

sudo su
apt-get update
apt-get install flashplugin-nonfree

reboot

in iceweasel, make sure to allow youtube full access - if you have noScript add-on

---
setting correct time:
source: Knoppix forum thread

get your time server nearest your location: Clock servers (www.pool.ntp.org)

sudo su
-- get your timezone
dpkg-reconfigure tzdata

-- edit the autoconfig file and put in your timezone
line 357 from to or whatever location

leafpad /etc/init.d/knoppix-autoconfig

-- install ntpdate
apt-get install ntpdate
leafpad /etc/default/ntpdate

changes:
NTPDATE_USE_NTP_CONF=no
NTPSERVERS="0.asia.pool.ntp.org 1.asia.pool.ntp.org 2.asia.pool.ntp.org 3.asia.pool.ntp.org"

Saturday, July 3, 2010

Minimal Install - Ubuntu 9.10 LXDE on a 256mb RAM Intel Celeron desktop

These are my notes on this install. A working Internet connection is a must, the faster, the better - especially for step 2 with about 100mb+ worth of downloads to do.
I tried several distros based on Ubuntu 10.04 but for some reason, the video always gets borked. And wanting a kernel more recent than Knoppix 6.2, I settled for Ubuntu 9.10 - having a kernel 2.6.31-14 after installation, and a 2.6.31-22 after the post-install update.

1. Followed instructions here BUT only up to the point where you do a reboot (currently step 21).
2. On a terminal window, type the following in sequence:
sudo apt-get update
sudo apt-get -y install xorg xinit gdm lxde network-manager-gnome abiword gnumeric update-manager
Compared to the author's original script, this list of packages is more bare-bone for my specific need, that is, to have a desktop whose primary purpose is to be a router for my Internet access, can do wordprocessing and spreadsheets, can do surfing for non-flash websites like Facebook, no need for multimedia - take away alsa, no need for games...
For a future experiment, if ever, instead of the gdm package - which required a whopping 89mb download - try the slim login manager instead.


3. Reboot the computer.
4. During login, right before entering the password, select LXDE in the session dropdown.
LXDE shaves off about 20mb RAM compared to GNOME

5. Fix the network manager applet so it shows in the LXDE bottom panel.
Type in a terminal window:
gksu leafpad  /etc/xdg/autostart/nm-applet.desktop
Then edit the OnlyShowIn option to be like:
OnlyShowIn=GNOME;XFCE;LXDE
6. Save the file and again reboot. The network manager applet should now appear in the panel.
7. Fix the "device not managed" for the wired network connection.
Again, in a terminal window:
gksu leafpad /etc/network/interfaces
then comment out the two lines under the primary network interface, like so:
#auto eth0
#iface eth0 inet dhcp

8. Install a lightweight browser. This is a toss-up right now, so I installed two browsers.
sudo apt-get install epiphany-browser midori

end of install

9. Configure the shared Internet connection. and yes (!) it works.

If this lasts 1 month of operations, it may seem I finally got the silver bullet.

Saturday, June 19, 2010

How to hide photos and videos you are tagged in from the rest of the (Facebook) world

As of today, these settings in Facebook still applies:

Go to Account - Privacy Settings.
Under the section Sharing on Facebook, click on the Customize Settings link.
Scroll down to the section Things other share.
On the setting Photos and videos I'm tagged in, click on the options and choose Custom.
The Custom Privacy pop-up appears.  Change the Make this visible to setting to Only Me.

Thursday, June 17, 2010

Ubuntu Network Printing

Setup made for:

( x ) Printer Server - Ubuntu 9.10

( x ) Client desktop - Ubuntu 10.04


On the printer server:

1. Install HPLIP package.  Easy way is to install it via Ubuntu Software Center (from the Applications menu option).

2. Open System -> Administration -> Printing, then click on Server -> Settings.  Make sure to put a check on the setting Publish shared printers connected to this system.

3. Save settings, and on a terminal window, type:

sudo /etc/init.d/cups restart

On the Ubuntu client desktop:
1. Open System -> Administration -> Printing.
2. Click the Add button, then expand the list of Network Printers.
3. Click on Find Network Printer then on the host field, type in the IP address of the printer server.  Click the Find button.
4. Click the Verify button (to see if there will be any errors), and then the Forward button.


On the Windows client desktop:
1. Add a new network printer, and choose connect to a printer on the Internet
Enter in the format:
http://{hostname}:631/printers/{printername}

with hostname = IP address, and printername as the same name of the printer in the printer server.

Saturday, May 8, 2010

Ubuntu 10.04 Netbook Edition (UNE)

First, download the Ubuntu UNE file, and prepare the bootable USB that you will be using to install UNE to your netbook PC.  The steps and download link can be found here: http://www.ubuntu.com/getubuntu/download-netbook

You must also know how to setup your netbook's BIOS so that it will boot from the USB, not your hard disk. If you don't know how, there are a lot of references in the Internet, such as this one.  Try googling "how to boot from a usb"

Second, you must be sure to be connected to the Internet.

Here's a picture of the netbook, with the USB and Internet (blue cable).


1. Start up your netbook, with the UNE usb drive. A few seconds later, if all is well, you should see the Ubuntu splashscreen and its purple wallpaper.

2. On the Welcome screen, click on Install Ubuntu button. It will then setup your clock.

3. Tell Ubuntu where you are by clicking on the map. Then click on the Forward button.
4. On the keyboard layout, I never had to do anything but click the Forward button.

5. On the prepare disk space, I chose the erase and use the entire disk, since I was prepared to completely format the netbook.  This is also the option to pick if you are installing Ubuntu on a new computer.

I worked blind at this point, as the buttons didn't fit on the netbook's tiny 8-inch screen.  I pressed the TAB key about 4 times to get to the invisible Forward button.

6. On the Who are you screen, fill-up the blanks and don't forget your password.  Then click the Forward button.

7.  Finally, ready to install!  Go ahead and click on the Install button.
8. A progress bar will now appear.  This will take a short or long time to complete, depending on your Internet connection's speed. After it completes, click the OK button to restart the computer.

Here's the netbook, after the restart.

Eight steps to install - not bad!

Here's a good place to go next.

Netbook specs:
  • Brand -  Blue (made in China)
  • CPU - VIA C7-M 1000MHZ
  • 1 gigabyte memory
  • 40 gigabyte hard disk, 31 gig free space after installation
  • 8" LCD screen

Monday, May 3, 2010

Eye-candy on Ubuntu Lucid Lynx

My desktop:
Cool transparent menus:

Sunday, May 2, 2010

Lucid apps replaced

Not too happy with some apps that come pre-installed in Lucid.

1. Empathy out, Pidgin in.
2. Evolution out, Thunderbird + Lightning in.
3. gnome-screenshot out, Shutter in.

To remove apps in 1 & 2, I used Ubuntu-tweak.  Nice app, this one.
Helped make it easier to install the following:

1. Pidgin - for Yahoo, MSN messenger
2. Shutter - for getting screenshots
3. VLC - for my music, movies
4. Gimp - for my photo-editing
5. Audacity - for my audio-editing
6. Dia - for my flowcharts, diagrams, Visio-like 
7. Chromium web browser - just for variety, in case I get bored with FireFox

For these, I used Ubuntu's Synaptic Package Manager:
8. Thunderbird 3 - my office email
9. Ubuntu-restricted-extras - for a whole lot of YouTube viewing, Java for Firefox
10. checkgmail  - for my multiple GMail accounts
11. g2ipmsg 

And some manual installations:
12. GoogleEarth from the Medibuntu package, pretty simple double-click on the debian package 
13. Truecrypt - another simple install double-click on the deb package

cool lucid!

Pleasant surprises in Ubuntu 10.04:

These packages are now in the repositories by default, making installation a breeze, via Synaptic Package Manager.

1. Thunderbird 3
2. IPMsg (package name: g2ipmsg)

The latter renders my previous IPMsg posts obsolete with Lucid.

Wednesday, April 28, 2010

Thunderbird 3.xx on Ubuntu

Note:  These steps only apply to Ubuntu versions prior to 10.04. Lucid Lynx already has Thunderbird 3 in its repositories.
 
Thunderbird 3 repository you add to your sources list to make Ubuntu automatically detect Thunderbird updates.

Testing this in Ubuntu 10.04 - from a fresh install.
1. From a terminal window, type:
echo -e "\ndeb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main" | sudo tee -a /etc/apt/sources.list > /dev/null

2. Open Synaptic Package Manager and search for Thunderbird

3. Go and install.

This is a departure from my first approach from previous posts - that of downloading directly from the Thunderbird website and installing manually.

Taken from this Linux Mint post from user remoulder.

Sunday, April 25, 2010

Back in Blogger

Left Blogger for Wordpress, and now back again.
Since having my own domain name, discovery: Wordpress won't allow you to map your custom domain to your WP (free) blog without paying first. Hurrah for Blogger for giving this service for free.

Now, I'm mentally spent after struggling, and finally coming up with a decent way to show code blocks in my blogs.

Good thing Blogger allows you to change and tweak the CSS innards - another thing that you'd have to pay for in WP, that you get for free in Blogger.

Here's my custom pre tag inserted:
.post pre {
  background: #D8D8D8; 
  padding: 1em 5px; 
  overflow: auto;
  margin: 7px 0; 
  width: 563px; 
  font: 1.1em Consolas, Courier New, sans-serif;
  color: #000000;
  font-size: 1.1em;
  font-weight: bold;
  border: 1px dashed #424242; 
}

Changing the overflow setting from hidden to auto gave the desired horizontal scroll bar for long text, much the same way I had in WP.
Fonts, padding, and some other pieces were borrowed from the original Titan theme in WP.

Saturday, April 24, 2010

Email notifier for multiple GMail accounts

In Synaptic Manager, install the package checkgmail
Installing it in Ubuntu 9.10 fetches its latest version 1.13+svn43-0ubuntu1.

These steps demonstrate setting up 2 gmail accounts for checkgmail to notify you with:
1. Set up your first, and default profile
Applications > Internet > CheckGMail

2. After that works, quit checkgmail to setup your 2nd profile.

3. Open a terminal window, and type the following, replacing the my2nd word with your preferred profile name:
checkgmail -profile=my2nd

4. After that works, quit checkgmail again.

5. To make the two checkgmail profiles to automatically start at boot-up,
System > Preferences > Startup Applications
Click Add to add your default profile.

sources of the bits and pieces I put together for this post:
1. how to check emails for multiple gmail accounts - ubuntu thread
2. how to make checkgmail automatically startup in ubuntu (not the exact steps, but heck I got the pattern)

Saturday, April 17, 2010

Beta 2 of Ubuntu Lucid Lynx

Installed packages after the CD install:

1. Ubuntu restricted extras - to enable Flash in sites that need it (e.g. YouTube) and java-enabled sites (e.g. hearts.vex.net)

2. NTP package to update the time via Internet time servers

Kernel crash reported. I think I would need to disable ACPI in Grub during boot. From terminal window:
cd /etc/default
gksu gedit grub

then edit the line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

with this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=off"

Reference: Ubuntu documentation on grub2

Monday, April 12, 2010

Avast engine Invalid Argument fix

Thanks, Zilog, your how-to with one line of code worked and I no longer receive the message:
An error occurred in avast! engine: Invalid argument

I'm using Ubutu 9.10, Kernel Linux 2.6.31-20-generic, GNOME 2.28.1
To reiterate the how-to, I opened a Terminal window and typed:
gksu nautilus

1. Navigate to the etc/init.d folder
2. Locate the rcS file
3. Right-click the file, and chose [i]Open with Other Application[/i].
4. Select gEdit for the editing job.
5. Insert the line
echo 128000000 &gt;/proc/sys/kernel/shmmax
before the exec line.

Final output of the file was:
#! /bin/sh
#
# rcS
#
# Call all S??* scripts in /etc/rcS.d/ in numerical/alphabetical order
#
echo 128000000 &gt;/proc/sys/kernel/shmmax
exec /etc/init.d/rc S[/code]

Then I rebooted, started Avast by:
gksu avastgui

and no more error message ;D

Sunday, April 11, 2010

Removing trash items as Root

Items placed in the trash as a root user, using:
gksu nautilus


are NOT in the usual trash bin that you can easily empty.

How-to:
1. Go back to gksu nautilus, press CTRL-H to show hidden files and navigate to -
root/.local/share/Trash/files

2. Select the files you want deleted (CTRL-A, or SHIFT+right-click each file)
3. Press SHIFT-DEL on the keyboard.
4. Confirm the deletion by clicking on the OK button.
5. Then repeat steps 2-4 for this location:
root/.local/share/Trash/info

6. Close the Nautilus application, then exit the terminal window.

Code below doesn't work for me; when I tested deleting trash via the terminal window, the items remain in the Trash folders.
sudo rm -rf ~/.local/share/Trash/files
sudo rm -rf ~/.local/share/Trash/info

Friday, April 2, 2010

gedit plugins for Ruby on Rails

Note: Appears incompatible with Ubuntu 10.04; plug-ins cannot be enabled after install.

Source of tarball with useful gedit plugins here.

Thanks to Alexandre's blog (spanish).

Installing:
After downloading the tar ball file, in the terminal window
$ cd lexrupy-gmate-b5cc3f9
$ sudo ./install.sh
Answer "y" to the question that follows. Output is:
Do you want to activate default plugin and configuration set? [y,N]:y
Configuration set.

Launch gedit. I now have class browser and nice Textmate color themes.
I would still need to explore on its features, though.
List of plugins:
  1. Find in Files
  2. Split View
  3. Advanced Bookmarks
  4. Align
  5. Class Browser
  6. Completion
  7. Find Open
  8. Gemini
  9. Goto File
  10. Multi Edit
  11. Pastie
  12. Quick Hightlight Mode
  13. Rails Extract
  14. Rails Hot Commands
  15. Rails Hot Keys
  16. Ruby on Rails loader
  17. Smart Indent
  18. Snap Open
  19. Tab Switch
  20. Text Tools
  21. To Do
  22. Trail Save
  23. Zen Coding

Thursday, April 1, 2010

Skype in Ubuntu

Reference: Ubuntu how-to

1. Update the package manager's sources
echo "deb http://download.skype.com/linux/repos/debian/ stable non-free #Skype" | sudo tee -a /etc/apt/sources.list > /dev/null

2. Get the Apt key, to allow future updates to happen
gpg --keyserver pgp.mit.edu --recv-keys 0xd66b746e && gpg --export --armor 0xd66b746e  | sudo apt-key add -

3. Install the Skype package
sudo aptitude update && sudo aptitude install skype

Installing Java for my Xubuntu Firefox

Xubuntu 9.04, Firefox 3.5.8
But Java won't run in my browser for my favorite hearts game on the Web.
In the terminal window:
java -version
shows -
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
OpenJDK Client VM (build 14.0-b16, mixed mode, sharing)

sudo update-java-alternatives -l
shows -
java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk


To run Java applets in OpenJDK, I had to install this plugin:
sudo apt-get install icedtea6-plugin

Restarted the browser, and I'm done. Java applet now working.
Reference: Ubuntu Forums thread

Wednesday, March 31, 2010

Sample post for theme selection

A theme at last! credits at the bottom.
<code> - shaded, mono-spaced
this is a code block test and
this is the second line for the code block test with a longer ending that would word wrap or what?

<blockquote> - indented, italics

this is a blockquote test and
this is the second line for the blockquote test with a longer ending that would word wrap or what?

<pre> - scrollbars and shaded! only a few themes have this feature.
this is a pre tag test and
this is the second line for the pre tag test with a longer ending and the last of the lot. Word wrapped or scrollbar?

[code] - nice and neat.
[code]what does this do? first line
this is the second line with a long text to emphasize behavior whether word wrap will occur or a scrollbar. [/code]

Tuesday, March 30, 2010

Executable scripts

Short notes on how to make a script executable:
In the terminal window, startup your editor (e.g. gedit) and open the bash file.
Put this on the first line of the script
#!/bin/bash

for Python scripts, this would be -
#!/usr/bin/python
Save the script.
Still in the terminal window, run this -
chmod +x {name of script}

Sunday, March 28, 2010

From Blogger to Wordpress

Didn't think I would need to look for another blog website to put down my travel journal through the Ubuntu forest, but here I am. Why? I noticed lately when I edit my blog posts or do new blogs, the browser freezes and just keeps on saying that it is refreshing the page.

Opening two tabs in my Firefox, one for Wordpress, another for Blogger, the former is noticeably faster to load.  This quirkiness happens in both Firefox and Chrome.

Lastly,  Wordpress allowed me to import all my posts from Blogger!  Very thoughtful feature: Easy migration always sells :-)

Saturday, March 27, 2010

Installing RoR in Ubuntu 9.10

In a terminal window, install the necessary packages:
sudo apt-get install ruby build-essential libopenssl-ruby ruby1.8-dev
sudo apt-get install rubygems libsqlite3-dev

then Rails -
sudo gem install rails
sudo gem install sqlite3-ruby

and put the path in bash...
pico .bashrc

at the end of my .bashrc file
export PATH=/var/lib/gems/1.8/bin:$PATH

then update Gems and check the versions -
sudo gem update --system
gem list --local


The output:

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
sqlite3-ruby (1.2.5)

Monday, March 22, 2010

desktop


here's my desktop after playing around cairo-dock, iconfinder.net, and the wild shine custom theme.

Wednesday, March 17, 2010

Projector on Ubuntu [solved]

9.10 doesn't come out-of-the-box with an xorg.conf!
Created my own first, taken from the posts of the Ubuntu forums (search tag: no xorg.conf)
Then used this Ubuntu post to set it up somewhat; I used the custom scripts below.
1. Script to turn on VGA:
#!/bin/bash
# ~/Scripts/1024scale.sh
# change display settings to clone mode, 1024x768 pix for VGA (projector) and scales it to the resolution of 1024x600  of the internal display
xrandr --newmode "1024x768" 63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync
xrandr --addmode VGA1 1024x768
xrandr --fb 1024x768
xrandr --output VGA1 --mode 1024x768
xrandr --fb 1024x768 --output LVDS1 --mode 1024x768 --scale 1x1 --panning 0x0
2. Script to turn off VGA, and revert my laptop's 1280 x 800 resolution:
#!/bin/bash
# ~/Scripts/1024off.sh
# Sets VGA output to 1024x768 (native resolution for most projectors) and sets internal display to off
xrandr --output VGA1 --off
xrandr --fb 1280x800 --output LVDS1 --mode 1280x800 --auto

Solving my projector VGA output in Ubuntu

9.10 doesn't come out-of-the-box with an xorg.conf!
Created my own first, taken from the posts of the Ubuntu forums (search tag: no xorg.conf)
Then used this how-to to set it up somewhat; I used the custom scripts below.

1. Script to turn on VGA:
#!/bin/bash
# ~/Scripts/1024scale.sh
# change display settings to clone mode, 1024x768 pix for VGA (projector) and scales it to the resolution of 1024x600  of the internal display
xrandr --newmode "1024x768" 63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync
xrandr --addmode VGA1 1024x768
xrandr --fb 1024x768
xrandr --output VGA1 --mode 1024x768
xrandr --fb 1024x768 --output LVDS1 --mode 1024x768 --scale 1x1 --panning 0x0

2. Script to turn off VGA, and revert my laptop's 1280 x 800 resolution:
#!/bin/bash
# ~/Scripts/1024off.sh
# Sets VGA output to 1024x768 (native resolution for most projectors) and sets internal display to off
xrandr --output VGA1 --off
xrandr --fb 1280x800 --output LVDS1 --mode 1280x800 --auto

Tuesday, March 16, 2010

Virtualbox 3.1 in Karmic

Ubuntu Karmic uses the OSE (open source edition) of Virtualbox, which I didn't particularly like because of the limitations - no USB support, for one.

Resource site: http://www.virtualbox.org/wiki/Linux_Downloads

I downloaded the full package from the Virtualbox site here.

Then added to the end of my sources.list file the deb reference:
sudo gedit /etc/apt/sources.list
at the end of the file -
deb http://download.virtualbox.org/virtualbox/debian karmic non-free
and ran this in the terminal:
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
checked if I needed dkms package (to ensure that the VBox kernel gets updated when the Linux kernel is)
sudo apt-get install dkms
and finally the VirtualBox package itself:
sudo apt-get install virtualbox-3.1

Sunday, March 14, 2010

Ruby on Rails installation

Used this Ubuntu resource but simplified:
Open a terminal window and type in these:
sudo aptitude install ruby build-essential libopenssl-ruby ruby1.8-dev
then skipped apache, and other of the web servers - as I was going to use Webrick, the default web server that comes bundled with Ruby.
Install Gems and SQLLite...
sudo apt-get install rubygems libsqlite3-dev
and now Rails ...
sudo gem install rails
sudo gem install sqlite3-ruby
and put the path in bash...
pico .bashrc
at the end of my .bashrc file
export PATH=/var/lib/gems/1.8/bin:$PATH
then update Gems...
sudo gem update --system
Post-install validation:
Check my gems installed...
gem list --local
The output:
*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
sqlite3-ruby (1.2.5)

Saturday, March 13, 2010

Back in Ubuntu (still Karmic)

I'm back in Ubuntu after nearly a month in Linux Mint, loving it, then saddened by the loss of sound and inability to use the LCD out, then finally deciding to what-the-heck it all and reformatted my hard disk.

Steps:
1. Do fresh install from the Live CD
2. Perform ALL detected package updates
3. Removed Evolution (from Ubuntu Software Center)
4. Removed Empathy (from USC)
5. Installed Pidgin (from USC)
6. Installed Thunderbird 3.0.3 (downloaded from Mozilla)
- it's a tar.bz2 file, untar in a user-created folder
- create a launcher pointing to the thunderbird file
7. Install the Lightning add-on
8. Create my office profile in Thunderbird, complete with the POP & SMTP settings
9. Copy my backup profile folder to the new profile folder
10. Install Flash in my Firefox from here: https://help.ubuntu.com/community/RestrictedFormats/Flash
11. Install VLC, making sure multiverse repositories (in Synaptic) are checked. Also used this URL for reference: http://www.videolan.org/vlc/download-ubuntu.html
I didn't go the path of the PPA (as my older post advised); instead just picked the VLC package in Synaptic.

YES! I GOT SOUND! - 13 March 2010 1313h

12. Reinstall IPMsg using my old posts as reference.

Now on to Ruby on Rails...

Friday, March 5, 2010

Plustek OpticSlim Plus M12 in Ubuntu Karmic Netbook remix

1. Install SANE package (or is it XSANE)?
2. Downloaded the scanner's firmware file from the link in this URL: http://gkall.hobby.nl/gt6816-07b3-0412.html

that was it!

Installing Smartbro USB modem in Ubuntu 9.10 Netbook Remix

Here are the steps I did to successfully install Smartbro in Ubuntu Karmic Netbook edition:
1. Found a PPA from a Linux user, updated my software sources and got his key, beginning with this link: http://www.greenhughes.com/content/zte-mf627-easy-way
2. Smartbro worked but not all the time.
3. Found another link, this time in the Ubuntu Forums. post #8 here: http://ubuntuforums.org/showthread.php?t=1065934

this was the turning point: change usb.product_id from 0015 to 0031

and learning the significance of using lsusb in the Terminal Window.

Friday, February 26, 2010

Linux Mint 8 - Fluxbox edition

This edition of Linux Mint works great on my old IBM Thinkpad R40e.
BUT... some applications (e.g. Decibel Audio Player) shows weird, garbage display. Must be the video driver.

So looking around, found out that this laptop uses ATI Radeon drivers, and found this link in the AMD website.

Tuesday, February 23, 2010

Linux Mint 8 (Helena)

Packages for the workplace:

1. Google Chrome - downloaded .deb package from Google website, with update to etc-sources list

2. Thunderbird 3 - tar.gz download; uninstall the Thunderbird 2 first, then run the thunderbird file. Not as painless an installation as Chrome was.

3. 7z - p7Zip-full package in Mint's Synaptic is more than enough. Installing this automatically makes 7z available as a format to extract or add archives to with the built-in right-click Compress option of Linux Mint.

4. VLC - again... already in Synaptic.

5. IPMsg - using instructions and dependencies from my earlier posts.




Wednesday, January 13, 2010

My favorite Linux on a USB

One word: Knoppix.

Click here for instructions. Thanks to www.pendrivelinux.com for this gold find.

  • Detected my hardware, including my wifi.
  • Configuration of broadband wireless a snap - since its Debian roots, very much the same as Ubuntu.
  • Using XFCE desktop - blazingly fast!
  • Installed AVAST Linux edition for my antivirus utility
  • Detected my Windows partitions without hitches (unlike the Debian Live USB)

Saturday, January 9, 2010

How to make your own antivirus rescue bootable USB

Project: custom antivirus rescue solution

** using a USB instead of a CD
** signatures can be updated constantly, unlike most available rescue CDs out there
; some (like Kaspersky, Bitdefender or Avira) will offer updating the signatures but will require 1) cable LAN connection to Internet, and 2) a lot of your time - more than an hour to just update the obsolete definitions in the Live CDs

What I wanted: a rewritable antivirus "Live CD" that I can update database definitions in, that I can boot up on infected Windows computers, and remove viruses.

Strategy:
1. figure out how to create a GUI-based Linux that will run in a USB drive.
2. install clamtk on that system, with ability to connect to Internet to get updates for virus signatures.


Implementation (this actually work):
1. Using the Ubuntu 9.10 Live CD, create a bootable Ubuntu USB drive (aka Live USB, instead of Live CD) -

I used a 2gb USB, formatted with a volume label and FAT32.

reference: the pendrivelinux.com site

2. Plug in the USB, change BIOS to boot from USB.

3. Connected my Sun Cellular Huawei USB modem.

4. Set up a new broadband mobile connection using the Ubuntu network manager.

5. Change APN setting of the broadband to fbband.

6. Once the Internet was alive,

- sudo apt-get update
- changed repositories to pick the best server
- sudo apt get install clamav
- set a new location in the clock (Manila)
- downloaded the deb for clamtk at the sourceforge site

7. sudo dpkg -i {deb package}

8. if error message appears (w/c happened to me),
sudo apt-get -f install

to fix the broken dependencies, and just repeat 7.


After all these, I know have a bootable USB of Ubuntu plus CLAMTK - for my own antivirus rescue solution.