nano /etc/rc.local
and add
/etc/init.d/zabbix-agent start
Dropbox is a service that allows you to keep files synchronized across multiple machines (and multiple platforms).
Here is some additional info from ars technica.
Wahoo! Not sure when it started, but yesterday I noticed IMAP mail was flowing immediately to my Blackberry Curve (I’m a BIS user on T-mobile). Then today, I see this post over at Blackberry Cool which confirms I’m not the only one!
http://www.blackberrycool.com/2008/09/bis-customers-now-getting-instant-imap-e-mail/
I contributed to a Handbrake forum a while back. Thought you might find it useful too.
This is my evolving script for transcoding DVDs from MacTheRipper.
1) Save the file in a logical place (I keep it in the Movies Folder… same place I rip movies to). It will loop through all titles longer than X.
#!/bin/sh
# usage is ./thisScript.sh minimumDuration SomeDirContainingVIDEO_TS
# duration is set in minutes ("30" equals 30 minutes)
# specify the container directory for the VIDEO_TS directory
# example ./handbrake-longer-than.sh 30 24_SEASON6_D1
#set default path to HandBrakeCLI
PathToHandBrakeCLI=/some/path/to/HandBrakeCLI
if [ "${1}x" = "x" ]; then
echo "Minutes not provided"
exit
fi
if [ "${2}x" = "x" ]; then
echo "VIDEO_TS path not provided"
exit
fi
time=$1
export time
for i in $(find $2 -type d -name VIDEO_TS) ; do
for title in $($PathToHandBrakeCLI -t 0 -i $i -L 2>&1 | grep "has length" | sed 's/sec//' | sed 's/[()]//g' | awk '$8 > (60 * ENVIRON["time"]) { print $3 "-" $5 } ') ; do
#this names the title for the output file
titlenum=$(echo $title | cut -f 2 -d '-')
# you can change the preset or any other variables here
$PathToHandBrakeCLI -i $i -o ${2}-title${titlenum}-appletv.m4v --preset="AppleTV" -2 -T -P -t ${titlenum}
#output example: 24_SEASON6_D1-title1-appletv.m4v
done
done
2) Within the script, set the path to your HandBrakeCLI app on line 9.
3) Don’t forget to run this before trying to execute it:
chmod 777 ./handbrake-longer-than.sh
4) Execute it like this:
./handbrake-longer-than.sh 30 24_SEASON6_D1
Where “30” is the shortest title you want to export and “24_SEASON6_D1” is the name of the folder containing your VIDEO_TS directory.
I can never remember the path to the hosts file on my MacBook Pro. So, here it is:
sudo nano /private/etc/hosts
To find what flavor of Linux you’re using:
cat /etc/*-release
To find the version, use:
uname -a
This doesn’t work perfectly, but I often use it to start tracking down disk hogs:
To return the 10 largest items in a given directory:
du -cksh * |sort -rn |head -11
Some times it’s helpful to view all
du -cksh * |sort -rn
If someone has a better approach, please comment.
Looking for a log to show you failed login attempts to your Linux machine? Look in:
/var/log/btmp
You can access it by running:
/usr/bin/lastb
It’s similiar to the wtmp log of user login/logouts and the utmp log showing who is currently logged in.
Products like Spanning Sync allow you to sync your iCal with your Google calendar. Now Google has a new service called “Google Calendar CalDAV” that allows you to do the same thing.
Details at: Enable Google Calendar in iCal
I tried it and it works very good. Everything sync’d within a couple of minutes (I have a LOT of entries). No problems so far.
I install RHEL on all my production machines and CentOS on all my test/development boxes. Installing the GUI is helpful for configuration, but you sure don’t want to run them that way all the time. So after everything is installed, configured and tested, I make the following change:
nano /etc/inittab
Change
id:5:initdefault:
To
id:3:initdefault:
Save the file and reboot the machine. When you want to launch a GUI, just run:
startx