Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 04-26-2014, 04:32 PM   #1
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Rep: Reputation: 71
How would I make/do/move GTK+/pango to a cron job?

I read on another thread that someone was planning on doing this, by making a cron job and/or script to take the GTK+/pango update part out of Rc.M to speed up the boot.

I too have a pretty big slow-down during boot at the GTK+/pango part of boot and would like to make that a cromn job to be checked maybe once a week or something.

Any ideas how to do this? I'm no programmer of any sort, just a simple user on a single computer.
Old 04-26-2014, 05:28 PM   #2
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544
* As root, use a text editor to open the /etc/rc.d/rc.M.
* Save As /etc/cron.daily/pango.
* Delete everything in the newly saved /etc/cron.daily/pango except the header and the pango snippets.
* Save.

You should end up with something like this:

# /etc/cron.daily/pango

# These GTK+/pango files need to be kept up to date for
# proper input method, pixbuf loaders, and font support.
if [ -x /usr/bin/update-gtk-immodules ]; then
  /usr/bin/update-gtk-immodules --verbose
if [ -x /usr/bin/update-gdk-pixbuf-loaders ]; then
  /usr/bin/update-gdk-pixbuf-loaders --verbose
if [ -x /usr/bin/update-pango-querymodules ]; then
  /usr/bin/update-pango-querymodules --verbose

# All done.
Then be sure to comment out the same snippet in /etc/rc.d/rc.M.
5 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cron job to create and move backup from ubuntu to windows. onlykishore07 Linux - Newbie 1 06-15-2010 01:49 PM
How to make my cron job run ? henkoegema Linux - Software 3 12-17-2009 04:57 AM
how to make root cron job to send email if there is output mirror51 Linux - Newbie 3 08-12-2009 01:01 AM
How to make a cron job Avatar Linux - Newbie 10 03-09-2007 10:54 AM
how to make a simple code for just restarting Apache via a Cron job hsa Programming 1 08-22-2005 04:15 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration