I want to know how the thumbnail is created for pdf and text files in linux.As we all know in Ubuntu text files icon(thumbnail)is created dynamiclly depends on file content.It shows files first four lines as a icon.As File content changes for first four lines the icon also changes.Also same is for PDF file.It shows first page as a icon(thumbnail).
Can anyone help me with accomplishing the following: software writes to STDOUT --> filter --> PDF or PS "tiny text" thunbnail. Where "label" means something that fits on a biz card or smaller and remains readable. Here is an example,I want a "paper label" for data DVD media, or to include in the case with a carry-around USB drive.I can make content with ls -lh and similar utils with some post processing, but the resulting text file prints too large.A biz card has a similar form factor to a letter page only much smaller, so I need a filter of some sort.Process the text into postscript(ps) or PDF "tiny text" page thumbnail.Print this thumbnail label and store it with the media.I can also use the online page thumbnails as index into an archive or catalog.
Can some TEXT--TO--PS or TEXT--TO--PDF expert help work out how to accomplish this sort of thing?What do most people do about keeping an index or catalog of offline media (CD, DVD, USB drive) contents? (I know that "don't bother" is a popular option.)
When I use any application to upload an image, the dialogue box opens for me to select my file, but I can't view my images as thumbnails. Instead it reverts to List view and displays the columns with the file name, last modified etc data. This is very frustrating when dealing with images. I'm a photographer and handle many hundreds of images.
I have ubuntu 9.04x64 edition.i have installed gstreamer0.10-plugins-bad,gstreamer0.10-plugins-ugly,gstreamer0.10-ffmpeg so all video & audio files are played by totem.But why there is no thumbnail for flv files though in nautilus preview I have set always & file size upto 4GB.
I have some videos I am looking to share and post to a couple of places. I am looking to preview to the potential downloaders the file quality, plus some statistical info. In Windows Media Players Classic, as shown in my example here, you have the length of the video, file size, file name... and in each frame preview you have a time stamp stating at what part of the video the from is from.is there a program in linux that can do this for me? That can generate the same (or maybe more) info automatically?
im trying to output a list of running processes via a shell script. At the moment i got this which outputs the processes to a text file called out.
echo $(ps aux) >>out
The problem is though, the processes are all just one big block of text which makes it hard to read. Does anyone know how to sort the output to a text file so that it prints to the text file at 1 process per line? I know its probably simple but im very new to linux.
I am looking for a way to keep a log and make if then statements if a line exitsts in the log. I also am looking for a way to make a simple loop, like goto line number, and I also am wondering how to add/remove bits of text from a text file (plugins line in server.properties)
I put a text file on my desktop and added a couple lines of text with gedit. File type shows text/plain. Double-click opens the file in gedit which is what I want. I'm using the file to temporarily hold some snips of code that I copy from file to file, but when I copy some html into the file and save it, now file properties show it's text/html and a double-click opens the file in firefox, which isn't what I want. Is there some way to keep the file type from changing itself?
I need to insert 3-4 lines of text to the beginning of a text file. The file is a largish MYSQL dump, the result of a backup shell script. This shell script should insert the required text.I've wrestled with sed, but lost.
I have to delete a certain line of text from the a textfile via ubuntu's shell scripting.I have done research, and it seems that most people advocate the usage of sed /d option. sed makes does not edit the text file. Hence, most options I discovered involved the use of a temporary variable/textfile and then overwriting the old file with the temporary new file. Is there anyway whereby I can bypass the use of temporary storage containers? I hope there is any magical combination of commands to edit the file directly.
I want to display something in my text view widget in glade using c code. that's all right. now I need to attach a save button beneath the text view.so that on click the text view content should save as a txt file..
I want to display the contents of a particular log file (simple text file, I mean in Linux). But there is a problem: The contents need to be organized in a fixed format. Have a look at this log file:
So, while displaying the contents of above file on a web page, I want to format the field names found in the log file: User Name:, Reported Problems Description:, and Remarks:. These fields may contain a variable length of text and no specific line number is assumed for them to appear on.
Well, what I am trying to do may sound wierd to some of you. The filed "Reported Problems Description:" can possible contain text which embeds colon (.
a sed command to add a text before line number in text file? I have text file with 500 lines, and i want to add 3 more lines with text after line 300, OR before line 302, isn't no problem.
when I freshly installed 10.10 on release date my AVI files were showing thumbnail previews fine as I had pretty much every AVI with a thumbnail to it.
Got some more AVI files today and now they are all just a blank icon (the standard film strip one). Anyone know a way I can fix this?
Is it possible to disable caching of thumbnails in nautilus but still have them on? I tried linking .thumbnails to /dev/null but that just disabled them completely.
im using gimp, and im trying to draw something from a photo. but the thumbnail preview is too small. i have to keep opening the photo to see new details.
I was lurking about my hidden files and noticed the ".thumbnails" directory. I had been browsing the web for about an hour and had opened some image files from my drive.HOLY CRAP! I had over 2000 thumbnails in that directory! Every time an image is displayed, a thumbnail of it is created? Really? Seriously, I don't care what the reason behind this "feature" is, how do I stop it? It is simply unnecessary and a waste of disk space.
i working with a simulator tool that i need to pass to it a file in .BIN format, basically i need to convert from a tex plain file to BIN file How can i do that? there is some command(s) that allow me do
i am writing a script for my ubuntu server and basically i want it to download a file that i specifically type in then take that file put it in a certain folder (note file may or may not be archived so i'd have to check for that) then add the name of that file to a text file.i know sounds strange but this is what i got so far:
Code: #!/bin/bash echo "-----Star of Script-----" echo "Please enter URL:" read URL cd testdir wget $URL //extraction here + delete original archive (rar,zip,anything :S) echo name_of_file >> list.txt echo "-----End of Script-----"
At some point after one of the many updates I do to my system, I seem to have lost the ability to preview myself on cam. Simply put, software like CamStream and Cheese just give me a black screen when I open it up. So, I cant see how I look on cam and what's in or out of the shot. If I tell Cheese or Camstream to capture a still, there is no problem. In fact, that is the only way I can determine what the camera is seeing of me and my background.
The only "solution" is to either have Cheese takke my pic and determine from there (as just mentioned), or go on a video chat room and have it use my camera to give me a real-time look at what the camera is aimed to. As someone who creates webcam videos for upload, and sometimes needs to move the camera while still live, this is not convenient so I hope to fix it.
Here are the command line outputs Im getting:
Cheese:
Code: ** (cheese:3704): WARNING **: could not generate thumbnail for /home/lixen69y2k/Webcam/2010-08-25-101226.ogv (video/ogg) ** (cheese:3704): WARNING **: Icon 'video-ogg' not present in theme Camstream:
Could not grab image (select timeout): Resource temporarily unavailable.Seems that GUVCview gives me the best articulation of what the problem is. I have both a built-in webcam for my laptop as well as a USB one. Both seem to have this problem so I know its a case of some part of my software being the trouble.
I am having problems with scp during a backup operationI added a ps -ef before and after the scp operation used during the backup.The backup is a script to backup a Zimbra ServerI am including the code segment that I am having problems
Code: # DRCP Section. To scp newly created archives to a remote system if [ "$DRCP" = "yes" ]
I have a .txt-file with ~50.000 lines of numbers, generated by a mathematics program. From this file, I need line ~ 1.100 to line ~16.000 (these lines are always the same btw, this may make the solution easier, dunno) to be copy/pasted to another file, where the lines ~500 to ~15.000 (also, every time the same) should be overwritten by the aforementioned lines...I haven't found or come up with anything that works yet, mostly I find solutions to copy everything from one file to another but I can't find something to specifically overwrite a part of a file with part of another.