Ubuntu :: Taking Screenshots With Scrot Every Minute?
Jul 12, 2010
I have an issue with crontab that I can't resolve even though I searched the web like crazy. I tried to create a new cron job for taking a screenshot automatically every minute with scrot using "crontab -e" like so...
when I run it in my shell it does work fine and it seems to run with cron also because the log.txt file is modified every minute, however when I run it through cron the screenshots don't appear in the screenshots directory and nowhere else either.
Other jobs in the same crontab run very well. It doesn't seem to be a PATH issue because the paths are complete.
I know in Fedora one can take screenshots during actual installation of the OS with Shift+Printscreen keys on the keyboard and then can access them as root in the folder /root/anaconda-screenshots. So how do I do the same while installing Ubuntu?
I want to take consecutive screenshots of a video using command line operations but I can't seem to find accurate documentation on different websites.Does anyone know how to do this using vlc, totem or another program?I've used ffmpeg as well, but then reencodes and splits the video file. I just want to take consecutive screenshots.
Anybody notice a slowdown in their boot times? I have had F11 (64 bit) running for about three days and it is taking twice as long to boot as when I first installed. I have not done much other than configure my wireless printer and change a few icons. I have Compiz cube effects running but I did that right away and it made no difference in my system speed. If anything I thought I should be booting faster after disabling a few things in the start up menu that I dont need.
I went from about a 30 second total boot to almost a minute to the login screen top - 15:13:37 up 11 min, 2 users, load average: 0.35, 0.24, 0.12 Tasks: 150 total, 1 running, 149 sleeping, 0 stopped, 0 zombie Cpu(s): 0.8%us, 1.1%sy, 0.0%ni, 98.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3062244k total, 523208k used, 2539036k free, 31580k buffers Swap: 5111800k total, 0k used, 5111800k free, 206328k cached
Scrot supports capturing a portion of the screen by allowing the user to use the -s option. I need to use the command line.
So I installed xdotool to allow me from the command line to move my mouse, click buttons, type text, select my focus, etc...
I also built a bash script that uses scrot and xdotool that allows me to select the window that has a firefox web page displayed. Then I can position the mouse and do a right button click to position to a data entry box on the web page. Then I can use xdotool type "my text" to input the text into the input box. All this works very neatly.
My problem is the following:
The command "xdotool mousemove x y" does not move relative to the top left hand corner of the focused window. The command moves to the absolute x y screen location, not the relative window location.
This happens even though I use the command "xdotool windowfocus windowid" or command "xdotool windowactivate windowid" to specify which window I want to use (want in focus).
Does anybody know how to specify that the "xdotool mousemove x y" is to move relative to the upper left hand corner of the currently in focus window?
By the way, here is my bash script:
#!/bin/bash # get window id WIN_ID=`xdotool search --title MyWindow` # activate window with title MyWindow
I found this issue after trying to get my Conky up and running in Fedora 14(Xfce). Every time I started Conky, I would get nothing, but the default Conky would appear just fine. Well, I was messing around with scrot and I noticed that the screenshot appears to show other workspaces or somethinghe right of my current desktop. So I figured I'd bring up the default Conky but I changed the orientation to top_right. I then took another screenshot and sure enough, there was the Conky in limbo. Has anyone else experienced this? Is this an issue with Fedora, Xfce or something else?Pictures are said to be worth 1000 words, so hopefully the pictures included will explain this issue better than I.
Where in God's green earth does ubuntu put screenshots/clipboard related material? I've made like 5 screenshots but am totally unable to locate them. Great Scott! In windows I know where there at!
I'm running 10.04 with compiz under gnome, and I'm having trouble getting my screenshots to capture properly. Currently they only display my wallpaper and not any windows or panels. I tried using the module in the custom settings manager but no key-binds seem to work, well either that or the plugin is failing to load when I initialise it.
I do not have a mac, but I've used one and really like the one feature of the screenshots. Specifically, Command+Shift+3 which saves the screenshot to the desktop without having to open a program or anything like that.
Is there any way to do this in KDE? Ksnapshot is nice, but I'd like not to have to click the button every time.
I've tried the command line Import and it always gives me some X server not configured error or something, so that's not an option.
I sometimes take screen shots of websites in Firefox. The easiest way is to use one of the many extensions, e.g. Screengrab. However, I have discovered that, when trying to take a screen shot of the entire web page, the lower part of the page is not captured. This happens on WordPress sites and, curiously, on Mozilla's own results pages. Other pages seem to be unaffected. However, on Chromium, it works perfectly.
I have received an email from Indian Railways which says that a screenshot has been included. And for mobile password use the link provided on site. When you click on link provided for activation of your account or try to log in for very first time on irctc site after registration enter the password provided in mail, for mobile verification password click on the link provided on right hand side on same page. Screen shot attached for your ready reference. However I don't find any screenshot. On my 32-bit laptop I have debian-squeeze. Is installation of some special package needed for viewing.
for creating screenshots. But I'm having problems with creating its structure. I'd like it to:
1- Check if there's a capture.png file on /home
2- If there is, check if there is a capture1.png file (and so on, until it reaches a captureNUMBER.png file that does not exist) If there is not, proceed
3- Take the snapshot after three seconds (so that I can go to the window I want)
4- Create a captureNUMBER.png file at /home
Here's my attempt (I don't know how to automatically change the name of the file, so my first idea was to create keep this structure until capture10.png)
I enabled my SysRq key and now can't take screenshots. I have no idea why this happened. I enabled it so that I could have a failsafe way to shut the system down in case of a failure and then this happened.
I tried many different ways to get a screen shot (gnome's tool, gimp, compiz plugin, xwd, import) and in all of them the screenshot was filled with jagged colored bars. I tried both with and without compiz and the same thing happened. I'm using gnome with fedora 11.
I'm creating a presentation of OpenSUSE and want to take som screenshots of the whole screen and app-windowsI'm using OS11.2 KDE 4.3.5. Is there a tool for this?
I created a kickstart file and put it on a floppy. I have installed several times to refine the process and confused. I am not sure if the kickstart file is even being used by grub. I specified
autostep --autoscreenshot The install STILL asks me all those questions I was trying to avoid by doing autostep in the first place, and /root/anaconda-screenshots coes not exist.
I specified linux = hd:fd0:/ks.cfg
as a Grub command line option. I got that line off a forum, so it may be inaccurate. Anyone know if that is correctd? If I screw that up, shouldn't anaconda complain about file-not-found? Are the screenshots only applicable to graphics mode or also to text mode? (I have been using text mode, assuming text file screen dumps would appear in that subdirectory...)
multiple issues started happening on a partition of mine. (probably whole installation and i haven't noticed since most of my files are on that partition)the most important one is that a certain folder appears to be empty even though it isn't. (screenshot "issue1")
the second issue is that files that are no longer on on the root folder of the partition (for example, lynx5.jpg on the screenshot "issue2") appear to be there. on "issue2" screenshot, it's the lynx image and the Gr_trees folder. removing them by deleting them doesn't work. moving there somewhere else makes them temporary gone - they reappear on reboot though. (the screenshots seem to be automatically converted to jpg when uploaded, if there is a problem you can find them here as well:[URL]..
edit : even though it's not the normal way to solve a problem : if reinstallation is definitely going to solve the problem, i have nothing against it.
I want to practice some video casting - just using the webcam for now - I tried Cheese but got real choppy, slow video - is there another program that would work better on F12 ?
Also any ideas on how to "cut in" some screenshots ? I expect to use kino or kdenlive for any editing.
I recently upgraded to 10.04 but also changed around some drives and it is now taking nearly 10 minutes to boot.The drive changes were the removal of one SATA drive used for storage and the addition of a two drive RAID1 set via the onboard ICH10R SATA controller that is used for storage. I then used DMRAID to initialize the raid set in Ubunutu. All of the operating system is still located on the primary IDE drive.Here are two versions of my bootchart:I turned off quiet mode hoping to see an error during bootup to search for but here is what I see prior to the system pausing for 5+ minutes:
Code: [ 18.781348] kjournald starting. Commit interval 5 seconds. [ 18.781367] ext3-fs: mounted filesystem with ordered data mode
Why is my computer taking around a minute to boot? 10.04 for me is slower at booting than 8.04 is. 10.04 is taking about 10 seconds to get to the login screen, then almost a minute after that before it gets to a fully loaded desktop.
I just updated to Natty yesterday and I went straight into burg no problem, but from that point Ubuntu takes anywhere from 5 to 10 minutes to boot. I literally have to leave the room and go do other things while waiting. So, today I did a complete fresh install and it is on ssd with plenty of space, go straight to grub no problems. Windows 7 will boot at its normal speed, but Ubuntu just sits with a purple screen for anywhere to 5-10 minutes after grub menu. I have reinstalled two more times and still same issue, holding down and tapping shift key did make it boot one time in about a minute and a half (usual time in 10.10 on my machine is about 12 seconds). I don't think it is a graphics issue but I am running an ATI card.