See the report on installing Debian and Ubuntu on an LG T1 express laptop.
Or an article on apt-file I wrote.
Here is a dump of a quick investigation on analog output hardware that works in linux.
The purpose of this page is to collect useful things that I tend to forget all the time.
coding video from motion jpeg, taken by standard still
photography camera.
ffmpeg -i mvi_1439.avi -ar 22050 -ab 32
slask.avi
coding video from jpeg pictures
mencoder mf://*.jpg -mf
w=640:h=480:fps=25:type=jpg -ovc lavc -lavcopts
vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi
compressing an avifile
mencoder "$avifile" -o
"$outputfile" -ovc lavc -oac lavc
reading microsoft access databases (*.mdb) in
linux:
http://mdbtools.sourceforge.net/
Commandline:
mdb-tables
file.mdb lists the tables in the file
mdb-export file.mdb
tablename exports to a csv-file.
shrink photos
convert file.jpg -resize '640x480>'
smallfile.jpg
send mail from commandline
mutt -F ./.muttrc -s ”this is
the subject” -a attachment.file email@email.com <
file_with_bodytext.txt
let .muttrc contain:
my_hdr From:
my_email@email.com
set realname="My Name"
to get
proper from-adress and name.
Another possibility, if you do not
have a mail server locally, is to use an external smtp server and a
python script. mail.py
picking out a column (here: column 9) from a textfile,
columns separated by _:
cut -f9 -d_<file.txt
keeping the time accurate with ntp:
Set up ntp
(apt-get.... does the thing). Edit ntp.conf and add servers (see
http://unix.se/NTP)
Because my
adsl connection is not always up at boot time, the ntp might need to
started ”manually”. Sometimes it needs to be restarted. I have
the following entries in crontab, where /root/scripts/restartntp.sh
can be found here:
|
*/10 * * * * /root/scripts/restartntp.sh alive 2>&1
>>/root/logs/restartntp.sh |
To monitor that the clock is synchronized with ntp, I use
watch ntpq -pn
Look for the row with a * in front.
subversion setup: see the text on http://stacktrace.se/softdev/?permalink=subversion.txt (in Swedish)
change encoding on filenames (VERY useful when you switch
back and forth between operating systems etc)
convertfilenames.plsee
also convmv