Cloudprint /etc/rc.local Autostart

I've been struggling through getting cloud print working for my CLI server.  I've got CUPS working, cloudprint works when ran and cloudpring -d also works.  But I keep messing up what should be the simplest part.  I need to run the following at start up as I haven't been able to get the cloudprint-daemon working.
cloudprint -d
I don't know what the easiest way to do this is.  I tried creating an /etc/rc.local file with the following:
#!/bin/sh
/usr/bin/cloudprint -d
exit 0
I also created rc-local service that appears to be working
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
What's the easiest way to autorun a simple command at boot?

Yeah that's what I ended up doing after all. The main issue was an authentication issue as root.  Fixed that and it "worked".  It still resulted in a daemon/service that worked on half the things I wanted to print. The error given from cloudprint was ERROR <filename> and I don't know how to troubleshoot that error. Especially when it happens to a file I was able to print with cloudprint earlier.
I ended up uninstalling the packages and services and gave up. Maybe someday I'll try again or install a WM and just use Chromium but this is the biggest headache I've had setting up my server and the benefits for my usage are minimal.

Similar Messages

  • Is that a good idea to put many things in /etc/rc.local?

    Hello, all:
    wiki told me that I could configure many files in /etc.
    However, sorry if sounds stupid, I think this is not KISS.
    I have to learn many different syntax to configure my computer.
    I think put things in /etc/rc.local if possible is a good idea.
    For example, We could configure things in this way:
    [/etc/rc.conf] DAEMONS=(crond)
    [/etc/fstab]   /dev/sda3 /home ext4 rw,relatime 0 1
    [/etc/modules-load.d/vb.conf] vboxdrv
    For a alternate, we could edit /etc/rc.local like this:
    rc.d start crond
    mount /dev/sda3 /home
    modprobe vboxdrv
    Now we do not need to learn any new syntax, everything is BASH!

    ytj wrote:
    For example, We could configure things in this way:
    For a alternate, we could edit /etc/rc.local like this:
    I think there SHOULD be a problem with this but... I don't see a problem with this. It works in your situation, but of course it wouldn't for everyone. For example, I assume if something on /home was needed during boot then you would need to load it earlier in /etc/fstab.
    I'll probably end up doing it the first way just to be more "correct". I do already have some stuff in /etc/rc.local, such as setting up soft links to my disc drives.
    brebs wrote:The future is systemd (so it seems), not BASH.
    Bash isn't going away any time soon. Are you suggesting that /etc/rc.local will be going away?

  • [SOLVED]systemd won't start my /etc/rc.local

    I was trying to emulate rc.local behaviour with this:
    /usr/lib/systemd/system/rc-local.service
    [Unit]
    Description=/etc/rc.local Compatibility
    ConditionPathExists=/etc/rc.local
    [Service]
    Type=forking
    ExecStart=/etc/rc.local start
    TimeoutSec=0
    StandardOutput=tty
    RemainAfterExit=yes
    SysVStartPriority=99
    [Install]
    WantedBy=multi-user.target
    and my
    /etc/rc-local
    looks like this
    modprobe -r samsung_laptop
    But it's not working. When I execute sudo systemctl status rc-local.service I get
    rc-local.service - /etc/rc.local Compatibility
    Loaded: loaded (/usr/lib/systemd/system/rc-local.service; enabled)
    Active: failed (Result: exit-code) since Fri 2013-03-29 17:54:16 CET; 5min ago
    Process: 745 ExecStart=/etc/rc.local start (code=exited, status=203/EXEC)
    Last edited by Neky (2013-03-29 18:31:39)

    Why do you have "start" as an argument to /etc/rc.local?
    Also, for what you are trying to achieve, why not simply blacklist the module in /etc/modrpobe.d?  Then it would not be loaded under any circumstances.  Also if this is out of fear of the UEFI bug, I believe that for this particular module, there has been a patch included in the latest kernels that protects this from happening by not allowing writes to the NVRAM if it is 50% full or more.

  • [solved] full systemd integration of /etc/rc.local and pm-utils

    Hello!
    I try to fully integrate my /etc/rc.local into systemd. But I'm not very successful with it yet…
    For the moment I use this workaround.
    My rc.local looks like
    #!/bin/bash
    # /etc/rc.local: Local multi-user startup script.
    /usr/sbin/wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
    /usr/sbin/dhcpcd -qb eth0 wlan0
    /usr/bin/amixer -q -c 0 sset 'Master',0 0% mute
    /bin/mount -o remount,noatime /
    I tried to work with wiki and man, since people tell me more often I should go that way. I did it and integrated all of my daemons except for the rc.local.
    I really need help at this point…
    Thanks in advance!
    Last edited by domac (2012-08-14 19:07:35)

    Ok… it's getting weird now… my files look like:
    [Unit]
    Description=WPA supplicant daemon (interface-specific version)
    Requires=sys-subsystem-net-devices-%I.device
    After=sys-subsystem-net-devices-%I.device
    # NetworkManager users will probably want the dbus version instead.
    [Service]
    Type=simple
    ExecStart=/usr/sbin/wpa_supplicant -i %I -c /etc/wpa_supplicant/wpa_supplicant-%I.conf
    [Install]
    Alias=multi-user.target.wants/[email protected]
    [Unit]
    Description=dhcpcd on %I
    Wants=network.target
    Before=network.target
    [Service]
    Type=forking
    PIDFile=/run/dhcpcd-%I.pid
    ExecStart=/usr/sbin/dhcpcd -A -q -w %I
    ExecStop=/usr/sbin/dhcpcd -k %I
    [Install]
    Alias=multi-user.target.wants/[email protected]
    and with this setting I get two (visible) errors at boot, as you can see in #journalctl:
    Aug 14 01:32:49 vex dhcpcd[250]: eth0: carrier acquired
    Aug 14 01:32:49 vex dhcpcd[257]: wlan0: carrier acquired
    Aug 14 01:32:49 vex dhcpcd[250]: eth0: carrier lost
    Aug 14 01:32:49 vex dhcpcd[250]: eth0: waiting for carrier
    Aug 14 01:32:49 vex dhcpcd[257]: wlan0: sending IPv6 Router Solicitation
    Aug 14 01:32:49 vex dhcpcd[257]: wlan0: sendmsg: Cannot assign requested address
    Aug 14 01:32:49 vex dhcpcd[257]: wlan0: broadcasting for a lease
    Aug 14 01:32:49 vex dhcpcd[257]: wlan0: carrier lost
    Aug 14 01:32:49 vex dhcpcd[257]: wlan0: carrier acquired
    Aug 14 01:32:49 vex dhcpcd[257]: wlan0: sending IPv6 Router Solicitation
    Aug 14 01:32:49 vex dhcpcd[257]: wlan0: sendmsg: Cannot assign requested address
    Aug 14 01:32:49 vex dhcpcd[257]: wlan0: broadcasting for a lease
    Aug 14 01:32:50 vex systemd-logind[260]: New seat seat0.
    Aug 14 01:32:50 vex systemd-logind[260]: Watching system buttons on /dev/input/event3 (Power Button)
    Aug 14 01:32:50 vex systemd-logind[260]: Watching system buttons on /dev/input/event5 (Video Bus)
    Aug 14 01:32:50 vex systemd-logind[260]: Watching system buttons on /dev/input/event4 (Video Bus)
    Aug 14 01:32:50 vex systemd-logind[260]: Watching system buttons on /dev/input/event1 (Lid Switch)
    Aug 14 01:32:50 vex systemd-logind[260]: Watching system buttons on /dev/input/event2 (Sleep Button)
    Aug 14 01:32:51 vex dhcpcd[257]: wlan0: offered 192.168.2.117 from 192.168.2.1
    Aug 14 01:32:51 vex dhcpcd[257]: wlan0: acknowledged 192.168.2.117 from 192.168.2.1
    Aug 14 01:32:51 vex dhcpcd[257]: wlan0: leased 192.168.2.117 for 864000 seconds
    Aug 14 01:32:51 vex dhcpcd[257]: forked to background, child pid 350
    Aug 14 01:32:53 vex dhcpcd[350]: wlan0: sending IPv6 Router Solicitation
    Aug 14 01:32:57 vex dhcpcd[350]: wlan0: sending IPv6 Router Solicitation
    Aug 14 01:32:59 vex dbus-daemon[259]: dbus[259]: [system] Activating via systemd: service name='org.freedesktop.ConsoleKit' unit='console-kit-daemon.service'
    Aug 14 01:32:59 vex console-kit-daemon[354]: missing action
    Aug 14 01:32:59 vex dbus-daemon[259]: dbus[259]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
    Aug 14 01:32:59 vex dbus-daemon[259]: dbus[259]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
    Aug 14 01:32:59 vex dbus-daemon[259]: dbus[259]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'
    Aug 14 01:32:59 vex systemd-logind[260]: New session 1 of user domac.
    Aug 14 01:33:01 vex acpid[254]: client connected from 459[0:100]
    Aug 14 01:33:01 vex acpid[254]: 1 client rule loaded
    Aug 14 01:33:01 vex dhcpcd[350]: wlan0: sending IPv6 Router Solicitation
    Aug 14 01:33:01 vex dhcpcd[350]: wlan0: no IPv6 Routers available
    Aug 14 01:33:19 vex dhcpcd[250]: timed out
    Aug 14 01:33:19 vex systemd[1]: [email protected]: control process exited, code=exited status=1
    Aug 14 01:33:19 vex systemd[1]: Unit [email protected] entered failed state.
    … but, it works now! dafuq?!
    Well, this is no solution yet… help is appreciated.
    Edit: Removed those two lines that were causing errors and rebooted. Can someone explain their relevance to me?
    #journalctl now looks like:
    Aug 14 01:40:49 vex dhcpcd[250]: eth0: carrier acquired
    Aug 14 01:40:49 vex dhcpcd[259]: wlan0: sending IPv6 Router Solicitation
    Aug 14 01:40:49 vex dhcpcd[259]: wlan0: sendmsg: Network is unreachable
    Aug 14 01:40:49 vex dhcpcd[250]: eth0: carrier lost
    Aug 14 01:40:49 vex dhcpcd[250]: eth0: waiting for carrier
    Aug 14 01:40:49 vex dhcpcd[259]: wlan0: broadcasting for a lease
    Aug 14 01:40:50 vex su[252]: pam_unix(su:session): session opened for user domac by (uid=0)
    Aug 14 01:40:50 vex su[252]: pam_unix(su:session): session closed for user domac
    Aug 14 01:40:50 vex dhcpcd[259]: wlan0: carrier lost
    Aug 14 01:40:50 vex systemd-logind[262]: New seat seat0.
    Aug 14 01:40:50 vex systemd-logind[262]: Watching system buttons on /dev/input/event3 (Power Button)
    Aug 14 01:40:50 vex systemd-logind[262]: Watching system buttons on /dev/input/event5 (Video Bus)
    Aug 14 01:40:50 vex systemd-logind[262]: Watching system buttons on /dev/input/event4 (Video Bus)
    Aug 14 01:40:50 vex systemd-logind[262]: Watching system buttons on /dev/input/event1 (Lid Switch)
    Aug 14 01:40:50 vex systemd-logind[262]: Watching system buttons on /dev/input/event2 (Sleep Button)
    Aug 14 01:40:51 vex dhcpcd[259]: wlan0: carrier acquired
    Aug 14 01:40:51 vex dhcpcd[259]: wlan0: sending IPv6 Router Solicitation
    Aug 14 01:40:51 vex dhcpcd[259]: wlan0: sendmsg: Cannot assign requested address
    Aug 14 01:40:51 vex dhcpcd[259]: wlan0: broadcasting for a lease
    Aug 14 01:40:52 vex dhcpcd[259]: wlan0: offered 192.168.2.117 from 192.168.2.1
    Aug 14 01:40:52 vex dhcpcd[259]: wlan0: acknowledged 192.168.2.117 from 192.168.2.1
    Aug 14 01:40:52 vex dhcpcd[259]: wlan0: leased 192.168.2.117 for 864000 seconds
    Aug 14 01:40:52 vex dhcpcd[259]: forked to background, child pid 344
    Aug 14 01:40:55 vex dhcpcd[344]: wlan0: sending IPv6 Router Solicitation
    Aug 14 01:40:59 vex dbus-daemon[260]: dbus[260]: [system] Activating via systemd: service name='org.freedesktop.ConsoleKit' unit='console-kit-daemon.service'
    Aug 14 01:40:59 vex dhcpcd[344]: wlan0: sending IPv6 Router Solicitation
    Aug 14 01:40:59 vex console-kit-daemon[348]: missing action
    Aug 14 01:40:59 vex dbus-daemon[260]: dbus[260]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
    Aug 14 01:40:59 vex dbus-daemon[260]: dbus[260]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
    Aug 14 01:40:59 vex dbus-daemon[260]: dbus[260]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'
    Aug 14 01:40:59 vex systemd-logind[262]: New session 1 of user domac.
    Aug 14 01:41:01 vex acpid[256]: client connected from 453[0:100]
    Aug 14 01:41:01 vex acpid[256]: 1 client rule loaded
    Aug 14 01:41:03 vex dhcpcd[344]: wlan0: sending IPv6 Router Solicitation
    Aug 14 01:41:03 vex dhcpcd[344]: wlan0: no IPv6 Routers available
    Aug 14 01:41:19 vex dhcpcd[250]: timed out
    Aug 14 01:41:19 vex systemd[1]: [email protected]: control process exited, code=exited status=1
    Aug 14 01:41:19 vex systemd[1]: Unit [email protected] entered failed state.
    Cheers, will visit my bed now!
    Last edited by domac (2012-08-13 23:44:15)

  • Problem configuring Thinkpad trackpoint using sysfs in /etc/rc.local

    I'm trying to configure my Thinkpad's trackpoint sensitivity and speed by writing to sysfs (as described in http://www.thinkwiki.org/wiki/How_to_co … .26_Speed). However, at boot I get "No such file or directory" errors for those files.
    After logging in (to either virtual console or X), I can successfully run /etc/rc.local to make this configuration change, but this extra (manual) step is annoying, so I'd like to figure out what's going on. Has anyone else run into this problem and found a solution?

    I'm also using thinkpad, but i think it's not the best way to do so. Some thinkpads udev and create the files pretty late after boot.
    if the file haven't been created before exec the tmpfiles.d.  It wouldn't work!! (that's what happened to my thinkpad).
    When i'm using rc.local previously, adding a timer "sleep 5" maybe a solution. but using tmpfiles.d, there's no way to add a delay execution.
    so the best way is here:
    /etc/udev/rules.d/trackpoint.rules
    SUBSYSTEM=="serio", DRIVERS=="psmouse", WAIT_FOR="/sys/devices/platform/i8042/serio1/serio2/sensitivity", ATTR{sensitivity}="200", ATTR{speed}="150"
    ANOKNUSA wrote:
    Alright, so I finally got around to writing up a tmpfile for this, and it works like a charm.  Folks using Thinkpads in the future can use the following for persistent TrackPoint  settings:
    /etc/tmpfiles.d/tpoint.conf
    w /sys/devices/platform/i8042/serio1/speed - - - - 215
    w /sys/devices/platform/i8042/serio1/sensitivity - - - - 230
    Just change the integers to suit your own taste.  Thanks for the pointers, everyone.

  • Environment variables /etc/skel/local.profile and /etc/skel/.profile

    Hi
    I have a problem to provide the working environment for ALL THE USERS :/ with all the files in this directory:
    */etc/skel/*
    In Oracle Documentation says: You can use these files ( */etc/skel/local.profile* ) as a starting point and then modify them to create a standard set of files
    that provide the work environment common to all users. Defines the user's environment at login.
    I edit the file */etc/skel/.profile* for put the JAVA_HOME variable for all the users of this way
    nano /etc/skel/.profile
    export JAVA_HOME=/usr/bin/java *#I added this variable*
    export PATH=/usr/bin:/usr/sbin
    if [ -f /usr/bin/less ]; then
    export PAGER="/usr/bin/less -ins"
    elif [ -f /usr/bin/more ]; then
    export PAGER="/usr/bin/more -s"
    fi
    case ${SHELL} in
    *bash)
    typeset +x PS1="\u@\h:\w\\$ "
    esac
    Later I check the parameters to add the user
    useradd -D
    group=staff,10 project=default,3 basedir=/export/home
    skel=/etc/skel shell=/usr/bin/bash inactive=0
    expire= auths= profiles= roles= limitpriv=
    defaultpriv= lock_after_retries=
    adduser -m testuser
    passwd testuser
    I log on as testuser and check if the variable JAVA_HOME is available, but no.
    Why it can not see that variable as available? THAN YOU FOR YOUR HELP

    Try local.profile instead of .profile
    If there is one already there then rename it first.
    alan

  • [SOLVED] I have no /etc/fonts/local.config

    Hello,
    in a Begginers guide here it is said that fontconfig application has all the global settings stored in a file
    /etc/fonts/local.conf. But i don't have this file. In that folder i only have a file named fonts.conf.
    I wonder if i found a typo in Arch Wiki? If not, why don't i have locals.config? Can i create it on my own?
    Last edited by 71GA (2012-09-20 20:36:02)

    When I click on your "here" link I get a page that says "Fontconfig configuration" and then "There is currently no text in this page. You can search for this page title in other pages, or search the related logs."
    What am I missing?
    Did you mean this page: https://wiki.archlinux.org/index.php/Font_Configuration ?
    Did you look at /etc/fonts/fonts.conf? It says
    DO NOT EDIT THIS FILE.
    IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
    LOCAL CHANGES BELONG IN 'local.conf'.
    And if you follow the link to the fonts.conf man page you will see that it is set up to ignore a missing local.conf. You can create one if you like, but it would be better to put your changes in your user directory.
    (edit) DSpider is right -- the files are local.conf and fonts.conf, not '.config'
    Last edited by 2ManyDogs (2012-09-20 19:32:32)

  • Multiple plugtmp-1 plugtmp-2 etc. in local\temp folder stay , crossdomain.xml and other files containing visited websitenames created while private browsing

    OS = Windows 7
    When I visit a site like youtube whith private browsing enabled and with the add-on named "shockwave flash" in firefox add-on list installed and activate the flashplayer by going to a video the following files are created in the folder C:\Users\MyUserName\AppData\Local\Temp\plugtmp-1
    plugin-crossdomain.xml
    plugin-strings-nl_NL-vflLqJ7vu.xlb
    The contents of plugin-crossdomain contain both the "youtube.com" adress as "s.ytimg.com" and is as follows:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    -<cross-domain-policy> <allow-access-from domain="s.ytimg.com"/> <allow-access-from domain="*.youtube.com"/> </cross-domain-policy>
    The contents of the other file I will spare you cause I think those are less common when I visit other sites but I certainly don't trust the file. The crossdomain.xml I see when I visit most other flashpayer sites as well.
    I've also noticed multiple plugin-crossdomain-1.xml and onwards in numbers, I just clicked a youtube video to test, got 6 of them in my temp plus a file named "plugin-read2" (no more NL file cause I changed my country, don't know how youtube knows where I'm from, but that's another subject, don't like that either). I just noticed one with a different code:
    <?xml version="1.0"?>
    -<cross-domain-policy> <allow-access-from domain="*"/> </cross-domain-policy>
    So I guess this one comprimises my browsing history a bit less since it doesn't contain a webadress. If these files are even meant to be deposited in my local\temp folder. The bigger problem occurs when they stay there even after using private browsing, after clearing history, after clearing internet temporary files, cache, whatever you can think of. Which they do in my case, got more than 50 plugtmp-# folders in the previous mentioned local\temp folder containing all website names I visited in the last months. There are a variety of files in them, mostly ASP and XML, some just say file. I have yet to witness such a duplicate folder creation since I started checking my temp (perhaps when firefox crashes? I'd say I've had about 50 crashes in recent months).
    I started checking my temp because of the following Microsoft Security Essential warnings I received on 23-4-12:
    Exploit:Java/CVE-2010-0840.HE
    containerfile:C:\Users\Username\AppData\Local\Temp\jar_cache2196625541034777730.tmp
    file:C:\Users\Username\AppData\Local\Temp\jar_cache2196625541034777730.tmp->pong/reversi.class
    and...
    Exploit:Java/CVE-2008-5353.ZT
    containerfile:C:\Users\Noname\AppData\Local\Temp\jar_cache1028270176376464057.tmp
    file:C:\Users\Noname\AppData\Local\Temp\jar_cache1028270176376464057.tmp->Testability.class
    Microsoft Security Essentials informed me that these files were quarantained and deleted but when going to my temp file they were still there, I deleted them manually and began the great quest of finding out what the multiple gigabytes of other files and folders were doing in that temp folder and not being deleted with the usual clearing options within firefox (and IE).
    Note that I have set my adobe flasplayer settings to the most private intense I could think of while doing these tests (don't allow data storage for all websites, disable peer-to peer stuff, don't remember exactly anymore, etc.). I found it highly suspicious that i needed to change these settings online on an adobe website, is that correct? When right-clicking a video only limited privacy options are available which is why I tried the website thing.
    After the inital discovery of the java exploit (which was discovered by MSE shortly after I installed and started my first scan with Malwarebytes, which in turn made me suspicious whether I had even downloaded the right malwarebytes, but no indication in the filename if I google it). Malwarebytes found nothing, MSE found nothing after it said it removed the files, yet it didn't remove them, manually scanning these jar_cache files with both malwarevytes and MSE resulted in nothing. Just to be sure, I deleted them anyways like I said earlier. No new jar_cache files have been created, no exploits detected since then. CCleaner has cleaned most of my temp folder, I did the rest, am blocking all cookies (except for now shortly), noscript add-on has been running a while on my firefox (V 3.6.26) to block most javascripts except from sites like youtube. I've had almost the same problem using similar manual solutions a couple of months ago, and a couple of months before that (clearing all the multiple tmp folders, removing or renaming jar_cache manually, running various antmalware software, full scan not finding a thing afterwards, installing extra add-ons to increase my security, this time it's BetterPrivacy which I found through a mozilla firefox https connection, I hope, which showed me nicely how adobe flash was still storing LSO's even after setting all storage settings to 0 kb and such on the adobe website, enabling private browsing in firefox crushed those little trolls, but still plugtmp trolls are being created, help me crush them please, they confuse me when I'm looking for a real threat but I still want to use flash, IE doesn't need those folders and files, or does it store them somewhere else?).
    I'm sorry for the long story and many questions, hope it doesn't scare you away from helping me fight this. I suspect it's people wanting to belong to the hackergroup Anonymous who are doing this to my system and repeating their tricks (or the virus is still there, but I've done many antivirus scans with different programs so no need to suggest that option to me, they don't find it or I run into it after a while again, so far, have not seen jar_cache show up). Obviously, you may focus on the questions pertaining firefox and plugtmp folders, but if you can help me with any information regarding those exploits I would be extremely grateful, I've read alot but there isn't much specific information for checking where it comes from when all the anti-virus scanners don't detect anything anymore and don't block it incoming. I also have downloaded and installed process monitor but it crashes when I try to run it. The first time I tried to run it it lasted the longest, now it crashes after a few seconds, I just saw the number of events run up to almost a million and lots of cpu usage. When it crashed everything returned back to normal, or at least that's what I'm supposed to think I guess. I'll follow up on that one on their forum, but you can tell me if the program is ligit or not (it has a microsoft digital signature, or the name micosoft is used in that signature).

    update:
    I haven't upgraded my firefox yet because of a "TVU Web Player" plugin that isn't supported in the new firefox and I'm using it occasionally, couldn't find an upgrade for it. Most of my other plugins are upgraded in the green (according to mozilla websitechecker):
    Java(TM) Platform SE 6 U31 (green)
    Shockwave for Director (green - from Adobe I think)
    Shockwave Flash (green - why do I even need 2 of these adobe add-ons? can I remove one? I removed everything else i could find except the reader i think, I found AdobeARM and Adobe Acrobat several versions, very confusing with names constantly switching around)
    Java Deployment Toolkit 6.0.310.5 (green, grrr, again a second java, why do they do this stuff, to annoy people who are plagued with java and flash exploits? make it more complicating?)
    Adobe Acrobat (green, great, it's still there, well I guess this is the reader then)
    TVU Web Player for FireFox (grey - mentioned it already)
    Silverlight Plug-In (yellow - hardly use it, I think, unless it's automatic without my knowing, perhaps I watched one stream with it once, I'd like to remove it, but just in case I need it, don't remember why I didn't update, perhaps a conflict, perhaps because I don't use it, or it didn't report a threat like java and doesn't create unwantend and history compromising temp files)
    Google Update (grey - can I remove? what will i lose? don't remember installing it, and if I didn't, why didn't firefox block it?)
    Veetle TV Core (grey)
    Veetle TV Player (grey - using this for watching streams on veetle.com, probably needs the Core, deleted the broadcaster that was there earlier, never chose to install that, can't firefox regulate that when installing different components? or did i just miss that option and assumed I needed when I was installing veetle add-on?)
    Well, that's the list i get when checking on your site, when i use my own browseroptions to check add-ons I get a slightly different and longer list including a few I have already turned off (which also doesn't seem very secure to me, what's the point in using your site then for anything other than updates?), here are the differences in MY list:
    I can see 2 versions of Java(TM) Platform SE 6 U31, (thanks firefox for not being able to copy-paste this)
    one "Classic Java plug-in for Netscape and Mozilla"
    the other is "next generation plug-in for Mozilla browsers".
    I think I'll just turn off the Netscape and Mozilla one, don't trust it, why would I need 2? There I did it, no crashes, screw java :P
    There's also a Mozilla Default plugin listed there, why does firefox list it there without any further information whether I need it or not or whether it really originates from Mozilla firefox? It doesn't even show up when I use your website plugin checker, so is there no easy way by watching this list for me to determin I can skip worrying about it?
    There's also some old ones that I recently deactivated still listed like windows live photo gallery, never remember adding that one either or needing it for anything and as usual, right-clicking and "visit homepage" is greyed out, just as it is for the many java crap add-ons I encountered so far.
    Doing a quick check, the only homepage I can visit is the veetle one. The rest are greyed out. I also have several "Java Console" in my extentions tab, I deactivated all but the one with the highest number. Still no Java Console visible though, even after going to start/search "java", clicking java file and changing the settings there to "show" console instead of "hide" (can't remember exact details).
    There's some other extentions from noscript, TVU webplayer again, ADblock Plus and now also BetterPrivacy (sidenote, a default.LSO remains after cleanup correct? How do I know that one isn't doing anything nasty if it's code has been changed or is being changed? To prevent other LSO's I need to use both private browsing and change all kinds of restrictions online for adobe flashplayer, can anyone say absurd!!! if you think you're infected and want to improve your security? Sorry that rant was against Adobe, but it's really against Anonymous, no offense).

  • How to parse XML against XSD,DTD, etc.. locally (no internet connection) ?

    i've searched on how to parse xml against xsd,dtd,etc.. without the needs of internet connection..
    but unfortunately, only the xsd file can be set locally and still there needs the internet connection for the other features, properties.
    XML: GML file input from gui
    XSD: input from gui
    javax.xml
    package demo;
    import java.io.File;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.xml.XMLConstants;
    import javax.xml.transform.Source;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.validation.Schema;
    import javax.xml.validation.SchemaFactory;
    import javax.xml.validation.Validator;
    import org.xml.sax.SAXException;
    public class Sample1WithJavaxXML {
         public static void main(String[] args) {
              URL schemaFile = null;
              try {
                   //schemaFile = new URL("http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd");
                   File file0 = new File("AppSchema-C01-v1_0.xsd");
                   schemaFile = new URL(file0.toURI().toString());
              } catch (MalformedURLException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              //Source xmlFile = new StreamSource(new File("web.xml"));
              Source xmlFile = new StreamSource(new File("C01.xml"));
              SchemaFactory schemaFactory = SchemaFactory
                  .newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
              //File file1 = new File("XMLSchema.dtd");
              //SchemaFactory schemaFactory = SchemaFactory
                   //.newInstance("javax.xml.validation.SchemaFactory:XMLSchema.dtd");
              Schema schema = null;
              try {
                   schema = schemaFactory.newSchema(schemaFile);
              } catch (SAXException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              Validator validator = schema.newValidator();
              try {
                validator.validate(xmlFile);
                System.out.println(xmlFile.getSystemId() + " is valid");
              } catch (SAXException e) {
                System.out.println(xmlFile.getSystemId() + " is NOT valid");
                System.out.println("Reason: " + e.getLocalizedMessage());
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    }Xerces
    package demo;
    import java.io.File;
    import java.util.Date;
    import org.apache.xerces.parsers.DOMParser;
    public class SchemaTest {
         private String xmlFile = "";
         private String xsdFile = "";
         public SchemaTest(String xmlFile, String xsdFile) {
              this.xmlFile = xmlFile;
              this.xsdFile = xsdFile;
         public static void main (String args[]) {
              File file0 = new File("AppSchema-C01-v1_0.xsd");
              String xsd = file0.toURI().toString();
              SchemaTest testXml = new SchemaTest("C01.xml",xsd);
              testXml.process();
         public void process() {
              File docFile = new File(xmlFile);
              DOMParser parser = new DOMParser();
              try {
                   parser.setFeature("http://xml.org/sax/features/validation", true);
                   parser.setFeature("http://apache.org/xml/features/validation/schema", true);
                   parser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",
                             xsdFile);
                   ErrorChecker errors = new ErrorChecker();
                   parser.setErrorHandler(errors);
                   System.out.println(new Date().toString() + " START");
                   parser.parse(docFile.toString());
              } catch (Exception e) {
                   System.out.print("Problem parsing the file.");
                   System.out.println("Error: " + e);
                   System.out.println(new Date().toString() + " ERROR");
                   return;
              System.out.println(new Date().toString() + " END");
    }

    Thanks a lot Sir DrClap..
    I tried to use and implement the org.w3c.dom.ls.LSResourceResolver Interface which is based on the SAX2 EntityResolver.
    please give comments the way I implement it. Here's the code:
    LSResourceResolver Implementation
    import org.w3c.dom.ls.LSInput;
    import org.w3c.dom.ls.LSResourceResolver;
    import abc.xml.XsdConstant.Path.DTD;
    import abc.xml.XsdConstant.Path.XSD;
    public class LSResourceResolverImpl implements LSResourceResolver {
         public LSResourceResolverImpl() {
          * {@inheritDoc}
         @Override
         public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI) {
              ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
              LSInput input = new LSInputImpl(publicId, systemId, baseURI);
              if ("http://www.w3.org/2001/xml.xsd".equals(systemId)) {
                   input.setByteStream(classLoader.getResourceAsStream(XSD.XML));
              } else if (XsdConstant.PUBLIC_ID_XMLSCHEMA.equals(publicId)) {
                   input.setByteStream(classLoader.getResourceAsStream(DTD.XML_SCHEMA));
              } else if (XsdConstant.PUBLIC_ID_DATATYPES.equals(publicId)) {
                   input.setByteStream(classLoader.getResourceAsStream(DTD.DATATYPES));
              return input;
    }I also implement org.w3c.dom.ls.LSInput
    import java.io.InputStream;
    import java.io.Reader;
    import org.w3c.dom.ls.LSInput;
    public class LSInputImpl implements LSInput {
         private String publicId;
         private String systemId;
         private String baseURI;
         private InputStream byteStream;
         private String stringData;
         public LSInputImpl(String publicId, String systemId, String baseURI) {
              super();
              this.publicId = publicId;
              this.systemId = systemId;
              this.baseURI = baseURI;
         //getters & setters
    }Then, here's the usage/application:
    I create XMLChecker class (SchemaFactory implementation is Xerces)
    import java.io.File;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.XMLConstants;
    import javax.xml.stream.FactoryConfigurationError;
    import javax.xml.transform.Source;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.validation.Schema;
    import javax.xml.validation.SchemaFactory;
    import javax.xml.validation.Validator;
    import org.xml.sax.ErrorHandler;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import abc.xml.XsdConstant.Path.XSD;
    public class XMLChecker {
         private ErrorMessage errorMessage = new ErrorMessage();
         public boolean validate(String filePath){
              final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
              List<Source> schemas = new ArrayList<Source>();
              schemas.add(new StreamSource(classLoader.getResourceAsStream(XSD.XML_SCHEMA)));
              schemas.add(new StreamSource(classLoader.getResourceAsStream(XSD.XLINKS)));
              schemas.add(new StreamSource(classLoader.getResourceAsStream("abc/xml/AppSchema.xsd")));
              SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
              schemaFactory.setResourceResolver(new LSResourceResolverImpl());
              try {
                   Schema schema = schemaFactory.newSchema(schemas.toArray(new Source[schemas.size()]));
                   Validator validator = schema.newValidator();
                   validator.setErrorHandler(new ErrorHandler() {
                        @Override
                        public void error(SAXParseException e) throws SAXException {
                             errorMessage.setErrorMessage(e.getMessage());
                             errorMessage.setLineNumber(e.getLineNumber());
                             errorMessage.setColumnNumber(e.getLineNumber());
                             throw e;
                        @Override
                        public void fatalError(SAXParseException e) throws SAXException {
                             errorMessage.setErrorMessage(e.getMessage());
                             errorMessage.setLineNumber(e.getLineNumber());
                             errorMessage.setColumnNumber(e.getLineNumber());
                             throw e;
                        @Override
                        public void warning(SAXParseException e) throws SAXException {
                             errorMessage.setErrorMessage(e.getMessage());
                             errorMessage.setLineNumber(e.getLineNumber());
                             errorMessage.setColumnNumber(e.getLineNumber());
                             throw e;
                   StreamSource source = new StreamSource(new File(filePath));
                   validator.validate(source);
              } catch (SAXParseException e) {
                   return false;
              } catch (SAXException e) {
                   errorMessage.setErrorMessage(e.getMessage());
                   return false;
              } catch (FactoryConfigurationError e) {
                   errorMessage.setErrorMessage(e.getMessage());
                   return false;
              } catch (IOException e) {
                   errorMessage.setErrorMessage(e.getMessage());
                   return false;
              return true;
         public ErrorMessage getErrorMessage() {
              return errorMessage;
    }Edited by: erossy on Aug 31, 2010 1:56 AM

  • Assistance with font configuration /etc/fonts/local.conf

    Hello,
    I would like to replace all non-monospace fonts with Semplice Regular, size 6px, and all Monospace fonts with Profont, size 8.
    After messing around with the configuration for two days, I have come to a sad realization that I have no clue.
    In particular, these lines of code amaze me the most:
    <match target="pattern" name="family">
    <test name="family" qual="any" compare="not_eq" >
    <string>monospace</string>
    </test>
    <edit mode="assign" name="family" >
    <string>Semplice Regular</string>
    </edit>
    </match>
    I would expect that it would replace all-monospace with Semplice Regular, leaving the size unmodified for now as I was trying to get at least something working. However, what it does, is that it makes me unable to use almost all fonts and replaces those with a generic one.
    Could someone enlighten me on the matter? Thank you!
    fc-list
    Semplice Regular:style=Regular
    Last edited by KSiimson (2008-09-15 16:19:28)

    Your rule might need "fixed" instead of, or as well as, "monospace".

  • [Solved]Openbox: Autostart.sh doesn't work

    Hello
    I just made a fresh install of arch with openbox but I can't launch my applications at start
    xterm &
    nitrogen --restore &
    This doesn't work in ~/.config/openbox/autostart.sh neither in /etc/xdg/openbox/autostart.sh
    Can someone help me plz ?
    thanks and sorry for my bad english
    Last edited by Jeager (2010-05-16 20:48:43)

    Sorry I'm new with linux. Thanks you for your time
    Last edited by Jeager (2010-05-16 20:40:26)

  • Problem with powersaving stuff in rc.local

    Hi,
    I have a strange problem with the entries in my rc.local which are relevant for powersaving. First the file, which looks like this:
    #!/bin/bash
    # /etc/rc.local: Local multi-user startup script.
    #avoid hdd spindown for longer life :)
    hdparm -B 254 -S 0 /dev/sda
    #set lower cpu voltages
    echo "25 23 21 17" > /sys/devices/system/cpu/cpu0/cpufreq/phc_vids
    echo "25 23 21 17" > /sys/devices/system/cpu/cpu1/cpufreq/phc_vids
    #use sata link power management
    echo "min_power" > /sys/class/scsi_host/host0/link_power_management_policy
    echo "min_power" > /sys/class/scsi_host/host1/link_power_management_policy
    echo "min_power" > /sys/class/scsi_host/host2/link_power_management_policy
    echo "min_power" > /sys/class/scsi_host/host3/link_power_management_policy
    #set power saving mode for hda_intel
    echo 1 > /sys/module/snd_hda_intel/parameters/power_save
    #increase writeback time to 15s
    echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
    #disable unused outputs
    xrandr --output DP1 --off
    xrandr --output DP2 --off
    xrandr --output TV1 --off
    xrandr --output HDMI1 --off
    #enable kernel laptop mode for i/o
    echo 5 > /proc/sys/vm/laptop_mode
    #enable wlan power saving mode
    iwconfig wlan0 power on
    Not e.g. the phc_vids are written correctly, which means that they are exactly what I set in rc.local when I check them. Same goes for hda_intel powersave, but e.g. the line
    echo 5 > /proc/sys/vm/laptop_mode
    (is 0 when I check it after booting) or the link_power_management_policy stuff (is set to max_performance when I check it) seem to have no influence. Though, when I set these manually, they work like a charm.
    Does anyone have an idea why this happens? Thanks in advance

    Hi Singul,
    just a wild guess - but maybe it could help, to issue the commands, which doesn't work, with "sleep". I played around with it myself some time ago and it helps to start some processes when the computer / hard drive isn't stressed as much after booting the system. It's worth a try.
    Example:
    sleep 60 && echo 5 > /proc/sys/vm/laptop_mode &

  • Rc-local.service keeps failing after one time success

    Actually it's quite weird, every time rc-local.service was enable successfully with boot but then it keeps failing. However, once I modify /etc/systemd /system/rc-local.service( even something that really doesn't matter ), it will be enabled successfully again. but only ONCE each time.
    [Unit]
    Description=/etc/rc.local compatibility
    [Service]
    Type=oneshot
    ExecStart=/etc/rc.local
    TimeoutSec=0
    RemainAfterExit=yes
    [Install]
    WantedBy=multi-user.target

    All of those things can be done with udev rules.  I had a Momentus XT, which I now no longer have in my system, but my old rule is still there.  It is as follows:
    ACTION=="add", SUBSYSTEM=="block", ATTRS{model}=="ST95005620AS", RUN+="/sbin/hdparm -B 247 /dev/$kernel"
    You could also do something like this to apply it to all rotational disks
    ACTION=="add", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", RUN+="/sbin/hdparm -B 254 /dev/$kernel"
    As far as the stuff in /sys, use udevadm to get stuff to put in your rule to identify it.  So something like
    $ udevadm info -a -p /sys/kernel/debug/vgaswiteroo
    I have also used a rule for my backlight setting on boot.  To find stuff, once again use the udevadm
    $ udevadm info -a -p /sys/class/backlight/acpi_video0
    My resulting backlight rule is:
    ACTION=="add", KERNEL=="acpi_video0", SUBSYSTEM=="backlight", SUBSYSTEMS=="pci", DRIVERS=="i915", ATTR{brightness}="2"
    For more info on writing udev rules see http://www.reactivated.net/writing_udev_rules.html but when you get to the part about the udev commands, those no longer apply, as they have now been replaced by the udevadm commands listed above.  The commands are mostly correct, just instead of udevinfo, it is udevadm.
    I hope this helps!
    Last edited by WonderWoofy (2012-11-02 02:59:59)

  • Rc.local does not get executed

    Hi all Archers,
    today I put some commands into my rc.local to enable features recommended by powertop.
    The problem is they aren't applied with a restart.
    #!/bin/bash
    # /etc/rc.local: Local multi-user startup script.
    # Power aware CPU scheduler
    echo 1 > /sys/devices/system/cpu/sched_mc_power_savings
    # Audio codec power management
    echo 1 > /sys/module/snd_hda_intel/parameters/power_save
    # SATA link power management
    echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
    # VM writeback timeout
    echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
    # Turn off NMI watchdog
    echo 0 > /proc/sys/kernel/nmi_watchdog
    echo "Script has finished"
    Permissions:
    # ls -l /etc/rc.local
    -rwxr-xr-x 1 root root 568 24. Mai 23:31 /etc/rc.local
    Because of this I added the last command and it gets printed while booting.
    But all other commands do nothing…
    That's really odd and I don't know how to solve it.
    By the way, I'm not using systemd.
    What could be the reason for this?
    Thanks for help.
    Radioactiveman

    ice9 wrote:Are you running X ?
    Yes, I am (also with XFCE). And the behaviour is exactly as you described.
    Without startx the settings are applied.
    Did you manage to solve that? Or do you know a workaround?
    Last edited by Radioactiveman (2012-05-28 18:12:45)

  • [solved]Delay mySQL startup by 30 secs in /etc/rc.conf

    Basically I use wpa_supplicant and it takes a a bit to connect, by the time /etc/rc.conf gets to the mysql startup service, mySQL cannot bind to my servers address,
    This is because wpa_supplicant probably hasn't got an IP address yet, so mySQL fails to start at bootup every time, however right after the boot I can log in and manually boot it just fine.
    Any Ideas?  Maybe delay the mysql by 30-40 seconds at boot? Anyone know how?
    Last edited by kr1zmo (2010-07-05 23:57:10)

    itsbrad212 wrote:
    You could put:
    /etc/rc.d/mysqld start
    in /etc/rc.local
    Thanks for the reply but I solved this by removing the @ before netprofiles, so that wpa_supplicant doesnt startup in the background, therefor everything else waits until wpa_supplicant is connected before it boots.
    Last edited by kr1zmo (2010-07-05 23:59:58)

Maybe you are looking for

  • Adjustment Layer Crashes Premiere or Damages Project

    Nearly every time I have tried to use an adjustment layer in Premiere Pro CS6, the application has hung if I tried to scrub through the video. Yesterday I decided to try placing an adjustmnet layer and only using the play function rather than scrubbi

  • How do I set up a redirect from a subdomain to a specific path in my site?

    Running OS X Tiger Server 10.4.11 (all latest updates). For our online Web site we want to be able to allow users to type in a simple URL to get to our sign-in page which has a terribly long URL. User types http://signin.ourdomain.com ---> goes to --

  • Table Visibility settings

    Hi, I have two tables ( list and details) in the model. After selecting item in list table details will be displayed in details table. I want to display initially only one table (list table). After selecting item in list table then only i want to dis

  • Cs5 / dynamic link / MP

    working with cs5 production bundle, dual xeon 5650, quadro fx 3800, 12gb ram. every time i import a premiere sequence (avcintra100) into ae, the multi-processor rendering is disabeld because of "incompatible effects or expressions" . no effects in th

  • Webserver too slow

    Hi. I´ve a problem with the Webserver.I used the Web Publishing Tool to create a html file View Mode Embedded. My VI read data from RS-232 port every 2 seconds. The problem is: When the HOST has control of the VI, the webpage in the CLIENT does not r