Tuesday, December 1, 2015

Can I take my Roku player with me when I travel, or at a school or hotel?


Can I take my Roku player with me when I 

travel, or at a school or hotel?

Yes. Roku's Hotel and Dorm connect feature will allow you to connect to other networks
(even secured networks), such as a school, business, or hotel. 
Hotel and dorm connect is available on the following Roku models: Roku 4 (4400), Roku 3
(4200, 4230), Roku 2 (4210), Roku Streaming Stick (3500).
To use Roku's Hotel and Dorm feature, your Roku player must be on Roku's software version
OS 7.0 or later. 
Most Roku players don’t have OS 7.0 out of the box, but don't worry, 7.0 will be installed automatically during your initial guided setup,  so make sure you set up your Roku player
prior to traveling.  Before you get to your hotel or dorm, make sure you have the following:
  • Your Roku player, power adapter and remote
  • Audio and video cables (depending on your Roku player model – composite, component, HDMI)
  • Optional Ethernet cable (depending on your Roku player model)
Once you arrive at your destination and hook up your Roku player, follow the below
instructions:
Step 1.  Go to Settings>Network>Wi-Fi



Step 2: Locate your wireless network from the list of available networks.

After selecting your network, you'll see 2 green checks, and one red X next to 
"...the internet".



Once you get a red “X” the Hotel and Dorm dialog box will appear.  
Select “I am at a hotel or college dorm”.

Next, you'll see a screen with instructions to follow on your smartphone, tablet or 
laptop.



From your smartphone, tablet or laptop, go to Wi-Fi settings and select the Wi-Fi 

signal in step 2 on your TV screen. (This step will vary depending on the device 
you are using to connect.)



Finally, just enter the password located in step 3 on your TV screen.
After you enter the password and press connect, open up a web browser and enter the
required information. 
This information may be a room number, password, name or action the needs to taken
by the user. 

Monday, September 21, 2015

How to Install Apache on CentOS 7


How to Install Apache on CentOS 7

Pre-Flight Check
  • These instructions are intended for installing Apache on a single CentOS 7 node.
  • I’ll be working from a Liquid Web Self Managed CentOS 7 server, and I’ll be logged in as non-root user. 
Step 1: Install Apache
First, clean-up yum:
sudo yum clean all
As a matter of best practice we’ll update our packages:
sudo yum -y update
Installing Apache is as simple as running just one command:
sudo yum -y install httpd
Step 2: Allow Apache Through the Firewall
Allow the default HTTP and HTTPS port, ports 80 and 443, through firewalld:
sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
And reload the firewall:
sudo firewall-cmd --reload
Step 3: Configure Apache to Start on Boot
And then start Apache:
sudo systemctl start httpd
Be sure that Apache starts at boot:
sudo systemctl enable httpd
To check the status of Apache:
sudo systemctl status httpd
To stop Apache:
sudo systemctl stop httpd

Single User Mode in CentOS 7 / RHEL 7


Single User Mode in CentOS 7 / RHEL 7

CentOS 7
Single user mode is the one of the Run level in the Linux operating system, Linux operating system has 6 run levels that are used for different requirement or situation. Single user mode mainly used for doing administrative task such as cleaning the file system, Managing the quotas, Recovering the file system and also recover the lost root password. In this mode services won’t start, none of the users are allowed to login except root and also system won’t ask for password to login.
Step 1: While booting you might see the splash screen like below, grub is counting the time to boot the default operating system as mentioned in /etc/grub2.cfg; this time press any key to interrupt the auto boot.
CentOS 7 - Reset root Password Autoboot
CentOS 7 – Reset root Password Auto boot
Step 2: It will list operating systems (in my case only CentOS installed) that you have installed on the machine, In below that you might find some information about booting the OS and editing the parameters of menu. If you want to enter into single user mode; select the operating system and press “e” edit arguments of kernel.
CentOS 7 - Reset root password - Select Kernel
CentOS 7 – Reset root password – Select Kernel
Step 3: Once you have pressed, you should see the information about the selected operating system. It gives you the information about the hard disk and partition where the OS installed, location of the kernel, language, video output, keyboard type, keyboard table, crash kernel and initrd (Initial ram disk).
To enter into single user mode; Go to second last line (Starts with linux 16 or linuxefi) using up and down arrow then  modify the ro argument.
CentOS 7  - Reset root password - Before changing Kernel Argument RO
CentOS 7 – Reset root password – Before changing Kernel Argument
Step 5: Modify it to “rw init=/sysroot/bin/sh”. Once done, press “Ctrl+x”
CentOS 7  - Reset root password - After changing Kernel Argument
CentOS 7 – Reset root password – After changing Kernel Argument
Now you should be in command line mode with root privileges (without entering password). Now you can start to troubleshoot your system or can do maintenance of your system.
CentOS 7 - Single user mode
CentOS 7 – Single user mode
chroot to access your system.
chroot /sysroot
That’s all, You must chroot to reset root password in CentOS 7 / RHEL 7

Friday, August 21, 2015

Seven Tips and Tricks to Get More Out of OneNote


Seven Tips and Tricks to Get More Out of OneNote

Seven Tips and Tricks to Get More Out of OneNote
OneNote is an awesome, powerful note-taking tool, but it's also one of those apps that only devout users really talk about. Let's change that today and give OneNote—and what you can do with it—more of the attention it deserves. Here are a few tips and tricks for new OneNote users, and even experienced OneNoters might not be familiar with these yet.
Seven Tips and Tricks to Get More Out of OneNote
OneNote has been around for a decade now, and it's been included in the Microsoft Office suite for many years as well. People are still discovering it, though, and when they do, often it's a revelation because of the things it can do:
  • You can embed just about anything into the pages—images, audio, video, and files (drag-and-drop, baby!)—and put them in any area on the page. You're not stuck with a linear page layout or structure, so you can have an audio recording sitting to the right of your meeting notes and a photo of the event too.
  • OneNote has an incredible search capability: You can search for text within images and even audio and video files, as well as your inked notes. Seriously, it reads your handwriting without you having to convert it to text, though you can do that too. (Stylus support is one of OneNote's best features, one that sets it apart from other note-taking tools like Evernote, though you'll need a tablet PC for this. OneNote 2013, however, has improved support for writing/drawing on the pages with your fingers.)
  • It integrates well with Outlook and other Office programs.
I sound like a OneNote zealot and do love it, but have to confess I haven't been using it for years. There's no desktop version for Mac, unfortunately, the mobile apps weren't very good, and other apps like Evernote had better integration with other services as well as web clipping in browsers other than IE.
Things are changing now that the Android and iOS apps are better, and the free web-based version of OneNote, while not as robust as the desktop version, at least makes your notes accessible on non-Windows platforms. So I decided to take another look at this beloved program and get a refresher on some cool things you can do with it, as well as what's new in OneNote 2013.
Seven Tips and Tricks to Get More Out of OneNote
OneNote comes with two shortcuts that make quick work of creating a new note. Hit Win+N to open a quick note or Win+S to take a screenshot of any area on your screen. (In Windows 8.1, the screenshot shortcut is now Win + Shift + S.) The quick note will be saved automatically in your Unfiled Notes section, while the screenshot can be quickly saved to any notebook and section.
In addition, if you right-click on the OneNote icon in the taskbar, you can quickly start an audio recording or change what happens when you click the icon in the taskbar (quick note, screenshot, audio recording, open OneNote).


Format and Edit Your Notes Faster with Keyboard Shortcuts

Seven Tips and Tricks to Get More Out of OneNote
Quickly add tags and rich formatting like checkboxes and special headings to your notes, or insert special objects like tables or files with keyboard shortcuts. There are a ton of them available, but some of the ones I use the most are pictured above.
Actually, four that are not on that list have to do with creating new notes:
  • Add a new page at the end of this section: Ctrl + N
  • Add a new page below the current tab at the same level: Ctrl + Alt + N
  • Add a subpage below the current one: Ctrl + Shift + Alt + N
  • Turn the current page into a subpage or promote it to a higher level: Ctrl + Alt + ] (right bracket) or Ctrl + Alt + [


Clip Web Pages into a Research or To Read Notebook in OneNote

Seven Tips and Tricks to Get More Out of OneNote
With OneNote installed on your computer, Internet Explorer gets two convenient page clippers: Send to OneNote and Link to OneNote. It preserves the formatting of the page, timestamps when you clipped it, and adds the source URL.
If you're not using IE, though, you can use the built-in "Send to OneNote" option in the Print menu of your browser (or other program) or do what GeekGirlBarbie writes on Hackerspace:


Insert Audio, Video, Math Equations, Links, Photos, and More

Seven Tips and Tricks to Get More Out of OneNote
One of the best features of OneNote is its support for embedding just about anything—and, as I mentioned above, making it searchable. Don't be shy with the insert menu! Some ideas:
  • Scan in handwritten recipes and magazine recipes to OCR them
  • Take audio recordings of a lecture and search for key terms later
  • Add screen clippings and search the text within them later
You'll need enable searching within video and audio recordings, though. It's under File > Options > Audio and Video
For those with a screen that supports a stylus:
  • Draw mind maps
  • Turn your chicken scratch into text
  • Write notes over scanned-in or clipped pages


Change the View to Fit Your Workflow

Seven Tips and Tricks to Get More Out of OneNote
In the normal OneNote view, you see all the notebooks, section tabs, and pages. OneNote's view menu, however, offers other options that might be more appropriate for what you're doing. The full page view (F11), for example, maximizes the workspace—great for taking notes without distractions or if you have limited screen real estate. The Dock to Desktop option is great for side-by-side note-taking and web browsing.


Use Templates and Add-Ins

Seven Tips and Tricks to Get More Out of OneNote
Templates and add-in extend OneNote's functionality. Click on the down arrow on the page menu and then "Page Templates…" to see what's available or download more. There are templates for students, work, and so on. Under the Blank templates, there are even ones that will change the page size to a 3x5 index card or postcard. You can adjust the template applied to a page and then save it as a new time-saving template.
Like the other Office programs, there are also a few add-ins available for OneNote specifically.  Onetastic (free) works with OneNote 2010 and 2013 and, as the name implies, is fantastic. With it, you can view your OneNote pages on a calendar, crop and rotate images within OneNote, create your own macros, pin pages or sections, and lots more.
This one's not really an add-in, but it's useful for cross-platform users: a way to view and edit Microsoft OneNote on the iPad and Mac. Outline is an excellent standalone note-taking tool on its own, but its unique power is in how it takes OneNote notebooks created on the PC and syncs them to the iPad or Mac (through SkyDrive, Dropbox, or Box). Yes, Microsoft has OneNote for iPad, but Outline is really gorgeous and adds things like favoriting notes and showing most recent notes in a sidebar. There's a limited free version and Outline+ for $14.99.


Use OneNote with Other Office Programs

Seven Tips and Tricks to Get More Out of OneNote
If you use Microsoft Office regularly, OneNote can be your everything organizer. New in Office 2013 is the ability to embed Microsoft Excel tables or edit plain tables in OneNote with Excel. You can also add shapes for flowcharts from Visio more easily.
One of the best integrations, though, is between OneNote and Outlook. If you add a flag next to any line in a page, you turn it into a task in Outlook. You can also email pages to others, preserving the page formatting—and the recipient can read it even if they don't have OneNote. Finally, just as OneNote is great for taking meeting notes, you can bring in meeting details from Outlook into OneNote.
These tips just scratch the surface of how you can use OneNote to take richer, better organized notes, so if you haven't considered OneNote in a while, it might be worth another look for you too.

Thursday, August 20, 2015

CentOS Linux Install and Configure NTP to Synchronize The System Clock


CentOS Linux Install and Configure NTP to Synchronize The System Clock

How do I install and configure NTP under CentOS Linux version 5.x or 6.x server to synchronize the system clock?

You can easily install NTP (Network Time Protocol, a means of transmitting time signals over a computer network) using the yum command under Red Hat or CentOS/Fedora Linux server or workstation based systems. You need to install the following packages:

  1. ntp : ntpd server which continuously adjusts system time and utilities used to query and configure the ntpd daemon.
  2. ntpdate : Utility to set the date and time via NTP.
  3. ntp-doc : NTP documentation

Procedure: Setup NTPD on CentOS Linux

Open the terminal or login over the ssh session. You must login as as the root user. Type the following yum command to install ntp
# yum install ntp ntpdate ntp-doc
Turn on service, enter:
# chkconfig ntpd on
Synchronize the system clock with 0.pool.ntp.org server (use this command only once or as required):
# ntpdate pool.ntp.org
Start the NTP server. The following will continuously adjusts system time from upstream NTP server. No need to run ntpdate:
# /etc/init.d/ntpd start

Configure ntpd (optional)

Edit /etc/ntp.conf, enter:
# vi /etc/ntp.conf
Set public servers from the pool.ntp.org project:
server 0.rhel.pool.ntp.org
server 1.rhel.pool.ntp.org
server 2.rhel.pool.ntp.org

Monday, August 17, 2015

CRON - Howto


Introduction

Cron is a system daemon used to execute desired tasks (in the background) at designated times. 
A crontab is a simple text file with a list of commands meant to be run at specified times. It is edited with a command-line utility. These commands (and their run times) are then controlled by the cron daemon, which executes them in the system background. Each user has a crontab file which specifies the actions and times at which they should be executed, these jobs will run regardless of whether the user is actually logged into the system. There is also a root crontab for tasks requiring administrative privileges. This system crontab allows scheduling of systemwide tasks (such as log rotations and system database updates).
More information can be found:
 man crontab
or from the OpenGroup specifications.
On Gnome-based Ubuntu systems Gnome Scheduled tasks tool (from the gnome-schedule package) in Applications --> System Tools provides a graphical interface with prompting for using Cron. The project website is at http://gnome-schedule.sourceforge.net/; the software is installable from the Software Center or by typing
sudo apt-get install gnome-schedule
in a terminal.

Using Cron

To use cron for tasks meant to run only for your user profile, add entries to your own user's crontab file. Start the crontab editor from a terminal window:
crontab -e
Edit the crontab using the format described in the next sections. Save your changes. (Exiting without saving will leave your crontab unchanged.)
Note that a great source of information about the format can be found at:
man 5 crontab
Commands that normally run with administrative privileges (i.e. they are generally run using sudo) should be added to the root user's crontab (instead of the user's crontab):
 sudo crontab -e

Crontab Sections

Each of the sections is separated by a space, with the final section having one or more spaces in it. No spaces are allowed within Sections 1-5, only between them. Sections 1-5 are used to indicate when and how often you want the task to be executed. This is how a cron job is laid out:
minute (0-59), hour (0-23, 0 = midnight), day (1-31), month (1-12), weekday (0-6, 0 = Sunday), command
01 04 1 1 1 /usr/bin/somedirectory/somecommand
The above example will run /usr/bin/somedirectory/somecommand at 4:01am on January 1st plus every Monday in January. An asterisk (*) can be used so that every instance (every hour, every weekday, every month, etc.) of a time period is used. Code:
01 04 * * * /usr/bin/somedirectory/somecommand
The above example will run /usr/bin/somedirectory/somecommand at 4:01am on every day of every month.
Comma-separated values can be used to run more than one instance of a particular command within a time period. Dash-separated values can be used to run a command continuously. Code:
01,31 04,05 1-15 1,6 * /usr/bin/somedirectory/somecommand
The above example will run /usr/bin/somedirectory/somecommand at 01 and 31 past the hours of 4:00am and 5:00am on the 1st through the 15th of every January and June.
The "/usr/bin/somedirectory/somecommand" text in the above examples indicates the task which will be run at the specified times. It is recommended that you use the full path to the desired commands as shown in the above examples. Enter which somecommand in the terminal to find the full path to somecommand. The crontab will begin running as soon as it is properly edited and saved.
You may want to run a script some number of times per time unit. For example if you want to run it every 10 minutes use the following crontab entry (runs on minutes divisible by 10: 0, 10, 20, 30, etc.)
*/10 * * * * /usr/bin/somedirectory/somecommand
which is also equivalent to the more cumbersome
0,10,20,30,40,50 * * * * /usr/bin/somedirectory/somecommand

Crontab Options

  • The -l option causes the current crontab to be displayed on standard output.
  • The -r option causes the current crontab to be removed.
  • The -e option is used to edit the current crontab using the editor specified by the EDITOR environment variable.
After you exit from the editor, the modified crontab will be checked for accuracy and, if there are no errors, installed automatically. The file is stored in /var/spool/cron/crontabs but should only be edited via the crontab command.

Enable User Level Cron

If the /etc/cron.allow file exists, then users must be listed in it in order to be allowed to run the crontab command. If the /etc/cron.allow file does not exist but the /etc/cron.deny file does, then users must not be listed in the /etc/cron.deny file in order to run crontab.
In the case where neither file exists, the default on current Ubuntu (and Debian, but not some other Linux and UNIX systems) is to allow all users to run jobs with crontab.
No cron.allow or cron.deny files exist in a standard Ubuntu install, so all users should have cron available by default, until one of those files is created. If a blank cron.deny file has been created, that will change to the standard behavior users of other operating systems might expect: cron only available to root or users in cron.allow.
Note, userids on your system which do not appear in /etc/shadow will NOT have operational crontabs, if you desire to enter a user in /etc/passwd, but NOT /etc/shadow that user's crontab will never run. Place an entry in /etc/shadow for the user with a * for the password crypt,ie:
joeuser:*:15169::::::

Further Considerations

Crontab commands are generally stored in the crontab file belonging to your user account (and executed with your user's level of permissions). If you want to regularly run a command requiring administrative permissions, edit the root crontab file:
sudo crontab -e
Depending on the commands being run, you may need to expand the root users PATH variable by putting the following line at the top of their crontab file:
PATH=/usr/sbin:/usr/bin:/sbin:/bin
It is sensible to test that your cron jobs work as intended. One method for doing this is to set up the job to run a couple of minutes in the future and then check the results before finalising the timing. You may also find it useful to put the commands into script files that log their success or failure, for example:
echo "Nightly Backup Successful: $(date)" >> /tmp/mybackup.log
For more information, see the man pages for cron and crontab (man is detailed on the BasicCommands page). If your machine is regularly switched off, you may also be interested in at and anacron, which provide other approaches to scheduled tasks. For example, anacron offers simple system-wide directories for running commands hourly, daily, weekly, and monthly. Scripts to be executed in said times can be placed in/etc/cron.hourly//etc/cron.daily//etc/cron.weekly/, and /etc/cron.monthly/. All scripts in each directory are run as root, and a specific order to running the scripts can be specified by prefixing the scripts' filenames with numbers (see the man page for run-parts for more details). Although the directories contain periods in their names, run-parts will not accept a file name containing a period and will fail silently when encountering them (bug #38022). Either rename the file or use a symlink (without a period) to it instead (see, for example, python + cron without login? and Problems with Hourly Cron Job).

Troubleshooting and Common Problems

Edits to a user's crontab and jobs that are run on their behalf are all logged by default to /var/log/syslog and that's the first place to check if things are not running as you expect.
If a user was not allowed to execute jobs when their crontab was last edited, just adding them to the allow list won't do anything. The user needs to re-edit their crontab after being added to cron.allow before their jobs will run.
When creating a crontab for the root user, the user name must be specified as a parameter after the date/time parameters. Accidentally including the user name that way in a user-specific crontab will result in trying to run the user's name as a command, rather than what was expected.
Entries in cron may not run with the same environment, in particular the PATH, as you expect them to. Try using full paths to files and programs if they're not being located as you expect.
The "%" character is used as newline delimiter in cron commands. If you need to pass that character into a script, you need to escape it as "\%".
If you're having trouble running a GUI application using cron, see the GUI Applications section below.

Advanced Crontab

The Crontabs discussed above are user crontabs. Each of the above crontabs is associated with a user, even the system crontab which is associated with the root user. There are two other types of crontab.
Firstly, as mentioned above anacron uses the run-parts command and /etc/cron.hourly/etc/cron.weekly, and /etc/cron.monthlydirectories. However anacron itself is invoked from the /etc/crontab file. This file could be used for other cron commands, but probably shouldn't be. Here's an example line from a ficticious /etc/crontab:
00 01 * * * rusty /home/rusty/rusty-list-files.sh
This would run Rusty's command script as user rusty from his home directory. However, it is not usual to add commands to this file. While an experienced user should know about it, it is not recommended that you add anything to /etc/crontab. Apart from anything else, this could cause problem if the /etc/crontab file is affected by updates! Rusty could lose his command.
The second type of crontab is to be found in /etc/cron.d. Within the directory are small named crontabs. The directory is often used by packages, and the small crontabs allows a user to be associated with the commands in them.
Instead of adding a line to /etc/crontab which Rusty knows is not a good idea, Rusty might well add a file to /etc/cron.d with the name rusty, containing his cron line above. This would not be affected by updates but is a well known location.
When would you use these alternate crontab locations? Well, on a single user machine or a shared machine such as a school or college server, auser crontab would be the way to go. But in a large IT department, where several people might look after a server, then /etc/cron.d is probably the best place to install crontabs - it's a central point and saves searching for them!
You may not need to look at /etc/crontab or /etc/cron.d, let alone edit them by hand. But an experienced user should perhaps know about them and that the packages that he/she installs may use these locations for their crontabs.

Special strings

Cron also offers some special strings:
  • string
    meaning
    @reboot
    Run once, at startup.
    @yearly
    Run once a year, "0 0 1 1 *".
    @annually
    (same as @yearly)
    @monthly
    Run once a month, "0 0 1 * *".
    @weekly
    Run once a week, "0 0 * * 0".
    @daily
    Run once a day, "0 0 * * *".
    @midnight
    (same as @daily)
    @hourly
    Run once an hour, "0 * * * *".
Usage: "@reboot /path/to/execuable1" will execute /path/to/executable1 when the system starts. See "man 5 crontab" for more info.

GUI Applications

It is possible to run gui applications via cronjobs. This can be done by telling cron which display to use.
00 06 * * * env DISPLAY=:0 gui_appname
The env DISPLAY=:0 portion will tell cron to use the current display (desktop) for the program "gui_appname".
And if you have multiple monitors, don't forget to specify on which one the program is to be run. For example, to run it on the first screen (default screen) use :
00 06 * * * env DISPLAY=:0.0 gui_appname
The env DISPLAY=:0.0 portion will tell cron to use the first screen of the current display for the program "gui_appname".
Note: GUI users may prefer to use gnome-schedule (aka "Scheduled tasks") to configure GUI cron jobs. In gnome-schedule, when editing a GUI task, you have to select "X application" in a dropdown next to the command field.
Note: In Karmic(9.10), you have to enable X ACL for localhost to connect to for GUI applications to work.
 ~$ xhost +local:
non-network local connections being added to access control list
 ~$ xhost
access control enabled, only authorized clients can connect
LOCAL:
...

Tips

crontab -e uses the EDITOR environment variable. to change the editor to your own choice just set that. You may want to set EDITOR in you .bashrc because many commands use this variable. Let's set the EDITOR to nano a very easy editor to use:
export EDITOR=nano
There are also files you can edit for system-wide cron jobs. The most common file is located at /etc/crontab, and this file follows a slightly different syntax than a normal crontab file. Since it is the base crontab that applies system-wide, you need to specify what user to run the job as; thus, the syntax is now:
minute(s) hour(s) day(s)_of_month month(s) day(s)_of_week user command
It is recommended, however, that you try to avoid using /etc/crontab unless you need the flexibility offered by it, or if you'd like to create your own simplified anacron-like system using run-parts for example. For all cron jobs that you want to have run under your own user account, you should stick with using crontab -e to edit your local cron jobs rather than editting the system-wide /etc/crontab.

Crontab Example

Below is an example of how to setup a crontab to run updatedb, which updates the slocate database: Open a term, type "crontab -e" (without the double quotes) and press enter. Type the following line, substituting the full path of the application you wish to run for the one shown below, into the editor:
45 04 * * * /usr/bin/updatedb
Save your changes and exit the editor.
Crontab will let you know if you made any mistakes. The crontab will be installed and begin running if there are no errors. That's it. You now have a cronjob setup to run updatedb, which updates the slocate database, every morning at 4:45.
Note: The double-ampersand (&&) can also be used in the "command" section to run multiple commands consecutively, but only if the previous command exits successfully. A string of commands joined by the double-ampersand will only get to the last command if all the previous commands are run successfully. If exit error-checking is not of a concern, string commands together, separated with a semi-colon (;)
45 04 * * * /usr/sbin/chkrootkit && /usr/bin/updatedb
The above example will run chkrootkit followed by updatedb at 4:45am daily - providing you have all listed apps installed. If chkrootkit fails, updatedb will NOT be run.

How Anacron is Arranged

On Ubuntu 9.10 (and presumably, on later versions), anacron seems to be set up as follows:
There is a Upstart task, located in /etc/init/anacron.conf, which runs all the jobs in /etc/anacrontab. It is set to run on startup.
There is a cron.d file (/etc/cron.d/anacron) which causes the Upstart task to be started every day at 7:30 AM.
There is a file /etc/apm/event.d/anacron, which causes the Upstart task to be started when a laptop is plugged in to A/C power, or woken up.
In the system crontab (/etc/crontab), if anacron is not execuatable, run-parts is used to run the files in cron.daily, cron.weekly, and cron.monthly at 6:25 AM, 6:47 AM and 6:52 AM, respectively.
In /etc/anacrontab, run-parts is used to run cron.daily 5 minutes after anacron is started, and cron.weekly after 10 minutes (once a week), and cron.monthly after 15 (once a month).
Within the cron.daily, weekly, and monthly directories ( /etc/cron.daily, etc.) there is a 0anacron file that sets the timestamps for anacron, so it will know they have been run, even if it didn't run them.


So it appears anacron is run on every startup, wake up, plug-in, and at 7:30 AM every day. Looking at the respective Changelogs and package databases, it looks like this setup is directly from Debian, and hasn't been changed since at least 2009.