PKILL-9

Wayno’s sojourn and solutions through Linux

  • Home
  • About

25

Jul

Forcing a Web Browser to Save a File instead of Streaming it

Posted by admin  Published in Browsers, ftp, loni

I was having a dickens of a time, trying to force a browser make the user save the file, instead of trying to stream it. Here’s how to do it.

The original article is here.

1. in the directory where the file is located, we need to create a .htaccess file. So using the editor of your choice, create a filed name .htaccess (yes the period in front is important! It’s a hidden file.)


AddType application/octet-stream .wma

2. Now change the permissions on the file. Read and Write for the owner, and Read access for everyone else.


sudo chmod 640 .htaccess

it should like like:

-rw-rw—- 1 nwayno nwayno 38 2010-07-25 20:48 .htaccess

3. Restart the ftp server. If it’s standalone mode:


sudo service vsftpd restart

If vsftpd runs under xinetd (like I do), it will get the changes automatically since each new ftp session is a new process. (thanks Joe!)

4. Now when you try to ftp the file, such as:

ftp://servername/directory/filename.ext
(substitute your own information)

You will be prompted to save the file, instead of trying to stream it.

Thanks Loni

no comment

1

Jul

Sorting Bookmarks (alphabetically) in Firefox

Posted by admin  Published in Browsers

Sorting Bookmarks (alphabetically) in Firefox

I knew there had to be a way to do this!

Wayno

no comment

31

Jan

Installing 64 bit Flash for Firefox and Opera

Posted by admin  Published in Browsers

The Flash that comes packaged from Ubuntu with Firefox – is the 32 bit guy, because the developers refuse to use an alpha release of anything.

The problem is, this creates a huge instability in Firefox.

Here’s how I did it – this is NOT optimal, but it works!

1. Go to:

Adobe 64 Bit Flash Plugin
and get the 64 bit plugin.

Currently (July 20, 2010) the Alpha plugin is no longer available. But you can get it here

2. Close all open browers.

3. Go into Synaptic Package Manager – and type in the word “flashplugin”

what ever it comes up with, you definitely want to remove. It’s all 32 bit.

4. Untar it if you got it from the adobe site, otherwise copy it from the download area.

for Firefox:

cd /usr/lib/mozilla/plugins

sudo tar -xvf ~/Downloads/libflashplayer-10.0.42.34.linux-x86_64.so.tar.gz # or wherever you downloaded it too

=====================================

For Opera:

cd /usr/lib/opera/plugins

sudo tar -xvf ~/Downloads/libflashplayer-10.0.42.34.linux-x86_64.so.tar.gz # or wherever you downloaded it too

You could install it once to say /usr/lib/adobe-flash and symlink it….

This is more brute force.

Wayno

no comment

28

Oct

How to Setup Firefox “User Agent” for “Deposit@Home” on Linux

Posted by admin  Published in Browsers, Deposit @ Home

Ahh this took awhile to get the right string – but this works!

1. Endorse the check.

2. Use xsane to scan the front and back of the check @ 200 dpi gray scale. (Note that the endorsement signature block is on the right.)

3. Crop images with gimp (gnu image processing).

They should look like this:

Front Side of Check

Back Side of Check

4. If not installed, get the “User Agent” Firefox addon from here:

Firefox User Agent Addon

Now think MAC.

Add a new user: this is what the configuration looks like:

The “User Agent” string is this:

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; fr; rv:1.9.1b4) Gecko/20090423 Firefox/3.5b4

deposit@home configuration for a Mac -- works on Linux

Select this, and we’re half way there!

5. Login to your bank’s site.

6. Choose Deposit@Home.

7. What we want to do, is choose the previously scanned check images. So HIT BROWSE!
8. The check image should appear!

9. The tricky part that in order to go to next (it’s NOT obvious) you must “crop” the image — so you need to put the mouse cursor over the RIGHT HAND BOTTOM of the check, and single left mouse click. THe image will now be outlined in RED. Now you can click next!

deposit@home Click Here!

10. Repeat the above step for the back of the check.

11. Hit submit!

12. Wait for your confirmation!

deposit@home confirmation

1 comment

Search

About

PKILL-9

Categories

  • apt-get (3)
  • Audio (4)
  • Browsers (4)
  • Compiling Source Code (2)
  • Deposit @ Home (1)
  • DVD (4)
  • filesharing (2)
  • fstab (1)
  • ftp (1)
  • gnome (4)
  • grub (2)
  • Internet Connection Sharing (1)
  • Joe (2)
  • loni (3)
  • Music (3)
  • netbook (1)
  • samba (2)
  • sound (2)
  • ssh (1)
  • Thunderbird (1)
  • Uncategorized (26)
  • ups (1)
  • video (3)
  • wireless (1)
  • word processors (2)
  • X11 (1)

Archives

  • September 2010 (1)
  • July 2010 (7)
  • April 2010 (5)
  • March 2010 (3)
  • February 2010 (7)
  • January 2010 (1)
  • December 2009 (1)
  • October 2009 (4)
  • September 2009 (1)
  • July 2009 (1)
  • June 2009 (3)
  • May 2009 (5)
  • April 2009 (6)
  • March 2009 (3)
  • February 2009 (6)

Blogroll

  • Dynamic Designz - Linux Help Site
  • Plugins

Pages

  • About

Meta

  • Log in
  • Main Entries Rss
  • Comments Rss
September 2010
M T W T F S S
« Jul    
 12345
6789101112
13141516171819
20212223242526
27282930  

Recent Posts

  • Recording/Capturing your desktop in Ubuntu/Debian
  • Forcing a Web Browser to Save a File instead of Streaming it
  • Getting Ubuntu 10.04 Video/Audio to work with an Intel 82815 Chipset
  • Recovering Ubuntu/Debian Linux after a Windows Install/Hiccup
  • How to configure Samba in Ubuntu using a gui
  • Removable USB devices and fstab settings
  • Fixing gnome-typing-monitor in Ubuntu 10.04 (lucid lynx)
  • Sorting Bookmarks (alphabetically) in Firefox
  • installing ubuntu-restricted-extras under wubi
  • How to do Certificate Based ssh Authentication

Recent Comments

  • admin in Getting Ubuntu 10.04 Video/Audio to work with an I…
  • Erick in Getting Ubuntu 10.04 Video/Audio to work with an I…
  • admin in Getting Ubuntu 10.04 Video/Audio to work with an I…
  • Erick in Getting Ubuntu 10.04 Video/Audio to work with an I…
  • terry in Getting Ubuntu 10.04 Video/Audio to work with an I…
  • admin in Changing Default Language for Abiword
  • PKILL-9 » Post Topic » … in Recovering after hosing /etc/fstab
  • tux in How to do Certificate Based ssh Authentication
  • tux in How to do Certificate Based ssh Authentication
  • lornix in Thunderbird 3.X Performance Enhancement
© 2007 PKILL-9



Theme by WebRehash | Free WordPress Templates | Valid XHTML | Valid CSS 3.0 | Powered by Wordpress, Installed by Installatron.