hi, i'm currently running LXDE on PartedMagic distro, which came with UBCD, running off of a USB device. it looks pretty amazing given the fact it's being run off a 1GB flash drive. also running nicely..
i'm extremely reluctant to using any Linux system since I dislike how it's all manual, troubleshooting work (at least that is how i see it), that require quite a lot of understanding of stuff. i test linux by trying to do something that i do on windows, like emulate/run a *.SAP file (Atari music file). so far the only way I've done that is through a windows program in WINE. a lot of the time when trying to compile a source code, i do it as correct as possible, making sure i have all the dependencies installed, reading the README and INSTALL files, and it still doesn't work, and many 'DEB' installer files give red text saying a dependency is not satisfiable, when i probably have a newer version. the sound also seems quirky that sometimes works and sometimes doesn't, and when it does, it cracks before playing a sound. by the way, LinuxMint distro was used during these tests.
anyway, how can i simply take a screenshot of the desktop environment, or even more, a specific window. it seems horribly unhelpful to google since i see ubuntu binaries that require stuff not on this minimal distro, for example 'ksnapshot' would require KDE4 stuff..which is beautiful but wouldn't work with LXDE?
would there be a command to use?
...and as a general linux question, how can i basically take control of linux, and get any program that claims to run in linux, run,compile etc as expected...which by that i mean how to gain enough knowledge to do so, not a quick fix heh. it sucks always frustratingly logging off and going back to windows. i love how this thing only uses 200MiB of RAM
sorry if any of this was not thought out well (i basically have no resource and learn by doing, which seems to not work in this case), horribly written or anything else.
thanks.
screenshots
Re: screenshots
scrot
And then man scrot in a terminal to see the options
And then man scrot in a terminal to see the options
Re: screenshots
root@PartedMagic:~# scrotMark wrote:scrot
And then man scrot in a terminal to see the options
sh: scrot: command not found
root@PartedMagic:~# man scrot
No manual page available for scrot.
root@PartedMagic:~#
I guess that means that PartedMagic doesn't have scrot, to be honest I actually tried that, remembering some screenshots that have been sent to me. It also doesn't have sudo, or apt-get.
thanks for the fast response, by the way
Re: screenshots
scrot's a separate program (command line only). It'll be in whatever your system uses instead of synaptic.
-
- Posts: 116
- Joined: Tue Nov 11, 2008 4:51 pm
Re: screenshots
Less elegant, but workable, is the following combination (note: requires ImageMagick, zenity):
1. scipt placed in /usr/local/bin:
2. Additional keybindings for openbox (add to ~/.config/openbox/lxde-rc.xml):
1. scipt placed in /usr/local/bin:
Code: Select all
#!/bin/bash
# Program screenshooter3.sh
# Uses ImageMagick
# Copyright (C) 2010 RockDoctor
# Version 3.0.1 20100417
# Version 3.0.2 20100730
# Changelog -
# change to jpg; png capture of selected area not correct
# change all occurrences of .png to $suffix
# define helpmsg after filemsg
suffix=".jpg"
mydir="$HOME/Desktop/"
filemsg="Image filename (without "$suffix "suffix): "
helpmsg="To capture the whole screen: screenshooter3 -s\n"
helpmsg=$helpmsg"To capture a single window: screenshooter3 -w\n"
helpmsg=$helpmsg"To capture a region: screenshooter3 -r\n\n"
helpmsg=$helpmsg"You will be prompted for a name for your image file\n"
helpmsg=$helpmsg"The suffix "$suffix" will automatically be added to the filename\n"
match="0"
if [ $# -gt 0 ]; then
p=$(echo "$1" | sed -e 's/-//')
match=$(echo "srw" | grep $p)
fi
if [ ${#match} -gt 0 ]; then
if [ $# -eq 2 ]; then
filename=$2$suffix
else
filename=$(zenity --entry --text "$filemsg" --entry-text $mydir)$suffix
fi
case "$p" in
"s" )
import -window root $filename;;
"w" )
window_info==$(xwininfo)
window_id=$(echo $window_info | cut -d ':' -f 4 | gawk '{print $1}')
import -window $window_id $filename;;
"r" )
import $filename;;
esac
else
zenity --info --text "$helpmsg"
fi
exit 0
Code: Select all
<!-- ****************************************************** -->
<!-- screenshot added by RockDoctor 20100417 -->
<keybind key="A-Print">
<action name="Execute">
<command>screenshooter3 -w</command>
</action>
</keybind>
<keybind key="Print">
<action name="Execute">
<command>screenshooter3 -s</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<command>screenshooter3 -r</command>
</action>
</keybind>
Geology - It's not rocket science, it's rock science!