Thread
:
File association
View Single Post
cmideiros
2007-07-02 , 12:03
Posts: 15 | Thanked: 1 time | Joined on Jun 2007
#
6
Originally Posted by
zerojay
Edit the proper .xml file in /usr/share/mime/.
It's late and I'm in a grouchy mood... sorry, but
I wanted to know the same simple answer. I found it.
What is "proper" file... no example... then why bother to post.
I started playing with Linux in 1992. In those days you could ask a question and get an answer. Fast forward to today... you have to wade through a 200 terabyte thread of stupid replies... like "did you read the manual" (user clearly stated that he did),etc. 18 hours later.... your getting to the bottom of the thread, and you find a lot of questions, with a few who know the answer, but won't tell. This is so lame. So much so, that this has prompted me to create a N800 faq.
I'm going to create a document of N800 tips (that should have taken an hour to find), and put in .CHM format for Windows users, and .PDB format for FBreader/Plucker on the N800 and a HTML format.
That way the newbies don't have to suffer. The N800 really is a cool device, but you can't always find answers to simple things... like how to get samba working, mount your MMC card as a windows share, etc.
Ok, griping aside, heres how I got the file associations to work for gnumeric.
Edit the file /usr/share/mime/globs
Then add these two lines:
application/x-gnumeric:*.xls
application/x-gnumeric:*.gnumeric.
Now in the file manager, you can click on a file
and have it launch the spreadsheet.
Tip: to turn bluetooth on
/usr/sbin/hciconfig hci0 up
I use the "graph plugin" to launch shell scripts.
Here's another tip to see your ipaddress in python.
-------------------------------
#!/usr/bin/python
import gtk
import hildon
import commands
window = hildon.Window()
window.connect("destroy", gtk.main_quit)
ip = commands.getoutput("/sbin/ifconfig")
label = gtk.Label(ip)
window.add(label)
label.show()
window.show()
gtk.main()
----------------------------------------
Samba was a hard one to get working, but
I can now mount shares on the N800,
and from the N800 mount shares on either WinXP,
or Ubuntu. Will write it up in the faq.
I just bought a LinkSys NSLU2 media server.
Not much bigger that a pack of cigs. It runs
embedded linux, and I've paired it with a
Western Digital 160GB portable USB drive.
The intention was to put all my movies on it, and
connect it to my Haupauge USB PVR USB2 tv tuner,
so that I could watch and control the TV tuner
from anywhere. I'm having trouble flashing the device though. That's going to be cool.
Connect to my 3G phone, and watch TV remotely from my TV tuner at home. I can't wait to get this working. I haven't gotten around to it yet... same story.... 300 terabytes of questions and stupid answers on various forums. Anyone got this working , let me know.
I'd like to create my first .deb package for the search applet. It should be pretty simple.
/usr/share/mis
holds the files. It's just a simple XML file with the search terms, and .png image. The default install
only has Google and Wikipedia. Really need Amazon.com, PriceWatch, Cnet Reviews, ebay,etc.
I'm surprised that no one has done this yet.
I'm going to try and get that done, and package a
.deb file. Unfortunately, I have so little time to play
with my N800.
Transcoding: How do you guys transcode?
I started using the DivX Converter. It works, but
the files will only play in "MPlayer". They will not play in "Media Player". However, if I use mencoder (both Windows, and Linux) from a batch file.. it works just fine.
I downloaded MPlayer/Mcoder for both Win32/Linux.
Then I do the following:
mencoder $yourfile.ext -o $yourfile.avi -srate 44100 -oac mp3lame -lameopts vbr=0:br=96 -af volnorm -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=600 -vf-add crop=812:480 -vf-add scale=400:240 -ofps 14.985 -ffourcc DIVX -noidx -force-avi-aspect 1.69230769230769
This gives pretty good results.
I have (2) 4 gig cards, so I can hold a ton of music
on one, and quite a few 2 hour movies on the other.
As I get more time, I will try and start a N800 blog
with some more tips.
Heads up to thoughtfix, and all of the great vids,
and great reviews.
My decision to buy the N800 was based on thoutfix's and gottabemobile.com's great reviews. And I'm glad I did.
Newbie tip:
Use OpenSSH instead of the drop-bear client.
This way you can use "WinSCP" to transfer files
wirelessly. To install it go to the garage, or better
yet, search for "sources.list" here.
Google "putty/winscp" for a good ssh/sftp client for windows.
Must have apps: get "Midnight Commander",
and "Links". You can the SSH into your N800
and have basically a real linux box.
Do a "apt-get-install" nginx
and "apt-get-install" php-cgi5
and now you have a cool web sever on your
N800.
Happy Tableteering.
Quote & Reply
|
cmideiros
View Public Profile
Send a private message to cmideiros
Find all posts by cmideiros