[Solved] Different autostart directories for different WMs / DEs

When I load a different Wm or DE a lot of the time I will have to rename ~/.config/autostart folder to ~/.config/autostartold or ~/.config/autostartgnome etc etc..
I was wondering if there is a better way of doing this. Maybe in my .xinitrc. I found this post Multiple DEs, can I have different autostarts? but it seems to end prematurely. If I was to go into my .xinitrc and change
exec ck-launch-session dbus-launch gnome-session
to
exec export XDG_CONFIG_HOME=/home/dodo3773/.config/autostartgnome ck-launch-session dbus-launch gnome-session
Will that work? Will it change back to default if I change my xinitrc to something else and reboot or would I have to change it on each one? Also, should the export  XDG_CONFIG_HOME=/home/dodo3773/.config/autostartgnome  be in quotes? Just curious if anyone had any experience with this or has tried it before. Should I pull it off the exec line and put it in an if then statement? Will there be any real negative ramifications to doing this? So many questions. Just looking for any input. I am willing to do all the testing.
Last edited by dodo3773 (2011-05-14 18:23:20)

dodo3773 wrote:I tried to switch to another tty and xinit openbox-session but it would not let me because I already had an X session running. I would like to do it the way you are.
Indeed, you'll need to specify a display to run your new X instance. For example,
xinit some.xinitrc -- :0
for your first X server and
xinit some2.xinitrc -- :1
for your second. You can see this in action in my first version of ~/.bash_profile posted earlier. (It's also in action in my second ~/.bash_profile, but it's less obvious because the "-- :0" actually uses a variable.)
dodo3773 wrote:I do not have the original inittab that came with my install and mine is all beat up. Do you think you could share yours with me?
Ah, of course.
# /etc/inittab
# Runlevels:
# 0 Halt
# 1(S) Single-user
# 2 Not used
# 3 Multi-user
# 4 Not used
# 5 X11
# 6 Reboot
## Only one of the following two lines can be uncommented!
# Boot to console
id:3:initdefault:
# Boot to X11
#id:5:initdefault:
rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p
# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux
# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 9600 ttyS0 linux
# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 38400 hvc0 linux
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# Example lines for starting a login manager
x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1
# End of file
dodo3773 wrote:Also, how does this setup effect wireless networking? Do you use the same wireless utilty throughout all of your setups or are they automatically fed internet by the one that does?
I use wicd, which operates as a daemon. As soon as its started on boot, it starts trying to connect to a network. This way, my internet is never dependent upon which WM I use.
I haven't used Network Manager in a long time, and as far as I can recall, I had issues getting such functionality working---although supposedly there is some official CLI support. (Oddly, NM runs as a daemon too, but I seem to recall having to run a client... Ug.)
wicd rules anyway. It has a curses interface! :-)
dodo3773 wrote:Also, what about your screen resolution / setup? Does it still use the same xorg file everything normal there?
Ah, the state of my monitors is complex. I have multiple machines using similar configurations that are laptops/desktops and have Intel, AMD or nVidia graphics.
In short, I typically don't worry about xorg.conf files at all (unless specifically required). I usually pop an `xrandr` command into my xinitrc files. (You should see some such command masquerading as 'video' in my *.xinitrc files, which is my homegrown abstraction over xrandr and disper.)
In short though, if you having a working X configuration, you shouldn't have to worry about it. It should use the same xorg.conf.

Similar Messages

  • Startx and different WMs [solved]

    Hi everyone,
    I use startx to start X, but I use three different WMs, compiz stand-alone, dwm, and catwm. Is there an easy way to switch window managers?
    Last edited by schen (2010-07-15 09:38:28)

    pseup wrote:
    If you just want to select a WM as you start X, then you can also have a case statement in your .xinitrc. eg
    # Stuff to execute no matter the wm here
    case $1 in
    catwm)
    # catwm specific stuff &
    exec ck-launch-session catwm
    compiz)
    # compiz specific stuff &
    exec ck-launch-session compiz-manager # or whatever its called
    dwm)
    # dwm specific stuff &
    exec ck-launch-session dwm
    # a default wm in here
    esac
    Then instead of using `startx` you can fire up X with `xinit catwm`, `xinit compiz`, `xinit dwm` or just `xinit` for the default.
    Thanks! This seemed the simplest, so I used it.

  • Opinions about different WMs?

    Hi, Archers. I have been reading this forum for quite a long time and I am wondering as there are so many window managers, what are their pros and cons?
    I know that there are tiling WM, such as dwm, wmii, ratpoison, awesome, ion3 and xmonad. dwm seems like the fastest one but it needs re-compiling to change the configuration, while xmonad looks like the most 'modern' one and with the best extendability.
    As non-tiling WM, there are E17, Openbox, Fluxbox, IceWM, FVWM and many others I cannot remember, all of them claim themselves as 'lightning fast' WMs. So, would you mind sharing your idea on: Which one is faster? Which one has good balance between performance and appearance (or usability)? Which one has many good themes avaliable?
    Thanks ahead.

    hk2717 wrote:What I'm seeking is users that have extensive experience between different WMs and how they judge the characteristics of each WM and the differences between them.
    Well, in the end it's all about personal taste, so if you answer to that you are bound to make subjective statements. What buttons and dolby said is right, the best way to find 'your' wm is to try out different ones... sometimes you can't point out which features you like/dislike just from a description or a screenshot.
    buttons wrote:Pretty much everything else can easily make the claim "lightning fast."
    I agree. If you have an up to date pc, you don't notice major speed differences.
    I'll give you a few hints about the wm's that I used.
    Gnome(metacity)/KDE(kwin)
    They have the typical advantage of a desktop environment, they feel 'complete out of the box' because all apps are well integrated and functional. Probably the best choice for newcomers and work dedicated tasks (were you just want a functional system). The downside is that they're bloated which can be really irritating... they have apps for nearly everything to give you a 'complete' desktop but if you know what you want (-> experienced user) you'll want to kickout all the other stuff to organize the chaos. Sure, you can start modding around until you only have the parts you want but I see no reason to do that when there are other alternatives (see xfce).
    xfce(xfwm)
    It has the advantage of a desktop environment but it's pretty minimal compared to KDE/Gnome. If you already know what apps etc you want to use and like the 'standard' behavior and assembling of wm's that are common, xfce is a good wm to start building your customized system. The build in compositing manager is also pretty nice and resource friendly.
    subjective side note: overall my favourite wm
    e17/e16
    I have no up to date information on e17 because I haven't used it for a while. My last impression was that it is to buggy for everyday use.
    side note: e17 is hell for theme creators... I've never spend that much time on a single theme than for my e17 theme. xD
    I have no up to date infos for e16 either but it's a nice and simple wm (comparable to the *box wm's) which can be quite useful when you have the time to configure it properly... but it's probably outdated now.
    *box
    If you like it really simple but don't want a tiling wm, they're probably you're choice. They're not usable out of the box, so you need time to set them up properly (create menus, start scripts etc). I've used blackbox for a long time but it's pretty outdated. The last box wm I used was openbox and it's definitely recommendable.
    However, I would recommend it only to people who don't mind fiddling with configs.
    tiling wm's
    Pure minimalism... nothing for people who are afraid of the cli, hate editing config files and expect eye candy. I think that I can't say something objective about the major approach, the window-tiling, about these wm's. You like it or you hate it, it's probably that simple. However, if you're familiar with the key bindings, the usability and using-speed is really great!
    I've only used dwm and awesome up until now. Since awesome is a dwm clone, they're pretty comparable. The major difference is that awesome has a config file and when you edit it, all you have to do is to press a key combo to apply the changes. When you want to change the dwm config, you've to recompile it every time... that's why I would recommend awesome.
    Xmonad looks promising as well, but haskell looks weird! ^^
    Last edited by sen (2007-12-05 22:26:43)

  • Creating directories for installing Oracle Application Server 10.1.2.0.2

    Hi,
    I have Red Hat Linux 4.0 and i am trying to install OAS 10.2.0 Enterprise Edition which includes web tier, app tier and database tier all in server machine because i do have about 100GB disk space, 12 GB memory and 9 GB swap space.
    Now, i read the OAS installation documents which i got from oracle.com
    as well as i read OAS installation chapters from the OAS books i purchased from oracle press.
    now each documentation guides us to create different folders with different names for installinmg the AS. these are the list of directories i got from both these documentations.
    for Inventory:
    /home/oracle/oraInventory
    /opt/oracle/oraInventory
    for Infrastructur instance:
    /opt/oracle/oraInfra
    /u01/oracle/infra1012
    for Database files:
    /u01/oracle/infra1012/datafiles
    /opt/oracle/oraInfra/datafiles
    for BI and Forms:
    /opt/oracle
    /u02/oracle
    and from above comparisons which one is oracle recommended default directory name that i should create for my installation.
    also what path should i give for ORACLE_HOME. is it
    /home/oracle/product or
    /opt/oracle
    Can someone please guide me with creating the correct recommended directories for installaing OAS10.1.2.
    Or can i go ahead and create my own directory names for the installation.
    Thanks,
    Philip.

    Basically it's up to you how to design the directory structure.
    What I normally do on my VMWare instances where I run RedHat is one directory in the home dir of the Oracle user.
    So I have:
    /home/oracle
    In there one directory for the software called products
    /home/oracle/products
    When I have several ORACLE_HOME's they get their own dir in the above directory, for example:
    /home/oracle/products/db102
    /home/oracle/products/as101202infra
    /home/oracle/products/as101202mid
    /home/oracle/products/as10131soa
    and so on.
    When dealing with installation at customers I adhere to their standard which is normally based on OFA. Search for OFA on the internet and you get the reason why you see so many differnet directories in the docs and books.
    cu
    Andreas

  • Custom directories for export/import for Integration Builder

    Hi,
    XI uses default directories for exporting and importing Integration Builder objects, and there is no option to change the directory or to pick up objects from another directory.
    Does anybody know of any way we can change the default directory that XI uses? Maybe some system setting hidden somewhere deep?
    Thanks and Regards
    Manish

    Hi Manish,
    when there's no way there's always an <b>XI way</b>:)
    you can help your basis team using XI
    set you file adapter to monitor export directory
    and try sending your xi export files to a different server/location
    you can have a look how Felix did similar scenario: 
    /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    isn't this a good way ?
    Regards,
    michal

  • TV Director for baseball game

    As a one time item, the local TV station put the audio the director for a baseball game on the SAP channel. I was really amazed. This guy is essentially calling cuts between 7 cameras, 3 instant replay machines, and a couple of people doing graphics. With cuts every few seconds and lots of graphic changes...and the unpredictability of a live sporting event, and working in the mini-promos and mini-Ads....and commenting on the game...
    This guy was good. He would see the pitcher make a throw to 1st base and in the time the pitcher would start his throw, he would call a cut to a different camera in time to see the ball arrive...Only one "Aw, sh*t!" when he couldn't get a replay.
    Mitch

    Me and a friend were talking about the future of this kind of thing a couple of months ago and we thought about a sporting event like a hockey or soccer game where in the future you have a remote that lets you choose the camera angle you want to see on your TV, so you jump from camera to camera as the action moves like you're the director.
    This may seem like too much work for people like us who are used to having the game directed for us - it would probobly be distracting from the game itself - but think about a kid who is born into this world. It would become second nature to them, and watching a directed sporting event would probobly seem like a violation of freedom to them.
    i ... stimulus... must have stimulus...

  • [SOLVED] Openbox autostart no longer working since upgrade

    After the upgrade on May 14 2013 my autostart file no longer works. I tried renaming my autostart.sh to just autostart no luck. There is nothing wrong with the autostart file as I can run it manually and it will load all my apps. Also, if I cd to  /usr/lib/openbox/ and run openbox-autostart directly it works. Here are the updated packages:
    [2013-05-14 21:34] [PACMAN] upgraded ethtool (1:3.8-1 -> 1:3.9-1)
    [2013-05-14 21:34] [PACMAN] upgraded firefox (20.0.1-5 -> 21.0-1)
    [2013-05-14 21:34] [PACMAN] upgraded gsettings-desktop-schemas (3.8.0-1 -> 3.8.2-1)
    [2013-05-14 21:34] [PACMAN] upgraded glib-networking (2.36.1-1 -> 2.36.2-1)
    [2013-05-14 21:34] [PACMAN] upgraded gnome-icon-theme-symbolic (3.8.0.1-2 -> 3.8.2.2-1)
    [2013-05-14 21:34] [PACMAN] upgraded gnome-icon-theme (3.8.0-1 -> 3.8.2-1)
    [2013-05-14 21:34] [PACMAN] upgraded gnupg (2.0.19-7 -> 2.0.20-1)
    [2013-05-14 21:34] [PACMAN] upgraded gtkmm (2.24.2-2 -> 2.24.3-1)
    [2013-05-14 21:34] [PACMAN] upgraded gvfs (1.16.1-2 -> 1.16.2-1)
    [2013-05-14 21:34] [PACMAN] upgraded libical (0.48-1 -> 1.0-2)
    [2013-05-14 21:34] [PACMAN] upgraded mplayer (35920-2 -> 35920-3)
    [2013-05-14 21:34] [PACMAN] upgraded orage (4.8.4-1 -> 4.8.4-2)
    [2013-05-14 21:34] [PACMAN] upgraded pango (1.34.0-1 -> 1.34.1-1)
    [2013-05-14 21:34] [PACMAN] upgraded pdnsd (1.2.9.a-1 -> 1.2.9.a-2)
    [2013-05-14 21:34] [PACMAN] upgraded python2-distribute (0.6.38-1 -> 0.6.39-1)
    [2013-05-14 21:34] [PACMAN] upgraded python2-zope-interface (4.0.3-1 -> 4.0.5-1)
    [2013-05-14 21:34] [PACMAN] upgraded sudo (1.8.6.p8-1 -> 1.8.6.p8-2)
    [2013-05-14 21:34] [PACMAN] upgraded thunderbird (17.0.5-2 -> 17.0.6-1)
    [2013-05-14 21:34] [PACMAN] upgraded virtualbox (4.2.12-2 -> 4.2.12-3)
    [2013-05-14 21:34] [PACMAN] upgraded vte-common (0.34.4-1 -> 0.34.5-1)
    [2013-05-14 21:35] [PACMAN] upgraded python3-threaded_servers (2013.5.12.3-1 -> 2013.5.14.1-1)
    Not sure what's going on or what could have caused it. My .xinitrc looks like this:
    #!/bin/sh
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
    done
    unset f
    fi
    export BROWSER="chromium"
    # Start GNOME Keyring
    eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
    # You probably need to do this too:
    export SSH_AUTH_SOCK
    export GPG_AGENT_INFO
    export GNOME_KEYRING_CONTROL
    export GNOME_KEYRING_PID
    exec openbox-session
    My .zprofile
    [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx &> ~/.xlog
    My systemd startup service:
    # This file is part of systemd.
    # systemd is free software; you can redistribute it and/or modify it
    # under the terms of the GNU Lesser General Public License as published by
    # the Free Software Foundation; either version 2.1 of the License, or
    # (at your option) any later version.
    [Unit]
    Description=Getty on %I
    Documentation=man:agetty(8) man:systemd-getty-generator(8)
    Documentation=http://0pointer.de/blog/projects/serial-console.html
    After=systemd-user-sessions.service plymouth-quit-wait.service
    After=rc-local.service
    # If additional gettys are spawned during boot then we should make
    # sure that this is synchronized before getty.target, even though
    # getty.target didn't actually pull it in.
    Before=getty.target
    IgnoreOnIsolate=yes
    # On systems without virtual consoles, don't start any getty. (Note
    # that serial gettys are covered by [email protected], not this
    # unit
    ConditionPathExists=/dev/tty0
    [Service]
    # the VT is cleared by TTYVTDisallocate
    ExecStart=-/sbin/agetty -a dodo3773 %I 38400
    Type=simple
    #Restart=always
    #RestartSec=0
    UtmpIdentifier=%I
    TTYPath=/dev/%I
    TTYReset=no
    TTYVHangup=no
    TTYVTDisallocate=no
    KillMode=process
    IgnoreSIGPIPE=no
    # Unset locale for the console getty since the console has problems
    # displaying some internationalized messages.
    Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=
    # Some login implementations ignore SIGTERM, so we send SIGHUP
    # instead, to ensure that login terminates cleanly.
    KillSignal=SIGHUP
    [Install]
    WantedBy=getty.target
    Edit: I tried switching to bash in a tty and then just startx but that doesn't help either.
    Edit2: To be clear openbox does load a desktop. The autostart scripts at ~/.config/openbox/ just don't run. Thanks.
    Edit3: I decided to run the command issued in openbox-session and added --debug to it. Here is the output of "xinit /usr/bin/openbox --debug --startup "/usr/lib/openbox/openbox-autostart OPENBOX" "$@" -- :1 -nolisten tcp" :
    X.Org X Server 1.14.1
    Release Date: 2013-04-17
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 3.8.7-1-ARCH x86_64
    Current Operating System: Linux dodo713 3.9.2-2-ck #1 SMP PREEMPT Sun May 12 18:19:49 EDT 2013 x86_64
    Kernel command line: BOOT_IMAGE=/vmlinuz-linux-ck root=UUID=06874255-7a5d-4968-8f09-1e53cb761f44 ro quiet init=/usr/lib/systemd/systemd
    Build Date: 17 April 2013 02:37:06PM
    Current version of pixman: 0.30.0
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.1.log", Time: Fri May 17 08:14:11 2013
    (==) Using config file: "/etc/X11/xorg.conf"
    (==) Using config directory: "/etc/X11/xorg.conf.d"
    setversion 1.4 failed
    Initializing built-in extension Generic Event Extension
    Initializing built-in extension SHAPE
    Initializing built-in extension MIT-SHM
    Initializing built-in extension XInputExtension
    Initializing built-in extension XTEST
    Initializing built-in extension BIG-REQUESTS
    Initializing built-in extension SYNC
    Initializing built-in extension XKEYBOARD
    Initializing built-in extension XC-MISC
    Initializing built-in extension SECURITY
    Initializing built-in extension XINERAMA
    Initializing built-in extension XFIXES
    Initializing built-in extension RENDER
    Initializing built-in extension RANDR
    Initializing built-in extension COMPOSITE
    Initializing built-in extension DAMAGE
    Initializing built-in extension MIT-SCREEN-SAVER
    Initializing built-in extension DOUBLE-BUFFER
    Initializing built-in extension RECORD
    Initializing built-in extension DPMS
    Initializing built-in extension X-Resource
    Initializing built-in extension XVideo
    Initializing built-in extension XVideo-MotionCompensation
    Initializing built-in extension XFree86-VidModeExtension
    Initializing built-in extension XFree86-DGA
    Initializing built-in extension XFree86-DRI
    Initializing built-in extension DRI2
    Loading extension GLX
    Loading extension NV-GLX
    Loading extension NV-CONTROL
    Loading extension XINERAMA
    setversion 1.4 failed
    Openbox-Debug: --startup /usr/lib/openbox/openbox-autostart OPENBOX
    Openbox-Debug: Moving to desktop 1
    Openbox-Debug: not managing override redirect window 0x4000bb
    which: no hsetroot in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/android-sdk/platform-tools:/usr/bin/core_perl:/home/dodo3773/Documents/Scripts:/home/dodo3773/Documents/Scripts)
    which: no esetroot in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/android-sdk/platform-tools:/usr/bin/core_perl:/home/dodo3773/Documents/Scripts:/home/dodo3773/Documents/Scripts)
    which: no xsetroot in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/android-sdk/platform-tools:/usr/bin/core_perl:/home/dodo3773/Documents/Scripts:/home/dodo3773/Documents/Scripts)
    kupfer: Reading from stdin
    The XKEYBOARD keymap compiler (xkbcomp) reports:
    > Warning: Compat map for group 2 redefined
    > Using new definition
    > Warning: Compat map for group 3 redefined
    > Using new definition
    > Warning: Compat map for group 4 redefined
    > Using new definition
    Errors from xkbcomp are not fatal to the X server
    Openbox-Debug: Caught signal 22. Ignoring.
    Openbox-Debug: UPDATE DESKTOP NAMES
    Openbox-Debug: Keyboard map changed. Reloading keyboard bindings.
    Edit4: Removed everything from /etc/xdg/autostart and ~/.config/autostart/ directories. That didn't work.
    Edit5: Tried installing xorg-xsetroot to let openbox set the color of the wallpaper. That didn't work.
    Edit6: Checked the output of "loginctl show-session $XDG_SESSION_ID" to make sure that wasn't the issue. Looks okay to me:
    Id=1
    Timestamp=Fri 2013-05-17 10:25:53 PDT
    TimestampMonotonic=13650783
    DefaultControlGroup=systemd:/user/1000.user/1.session
    VTNr=1
    TTY=tty1
    Remote=no
    Service=login
    Leader=405
    Audit=1
    Type=tty
    Class=user
    Active=yes
    State=active
    KillProcesses=no
    IdleHint=no
    IdleSinceHint=1368811547544203
    IdleSinceHintMonotonic=7545641
    Name=dodo3773
    Edit7: Tried installing xorg-xrdb thinking maybe that would help and did todays updates. No luck yet.
    Edit8: Kupfer still loads even though nothing else does. So I uninstalled kupfer. Same thing though. No autostart.
    Edit9: Tried booting into repo kernel instead of ck kernel. Didn't work.
    Last edited by dodo3773 (2013-05-19 06:34:44)

    WonderWoofy wrote:Interestingly, of all those things you included in your post, you forgot to include the autostart script itself.  What does that look like?
    Well, since it worked fine even when called indirectly through openbox-autostart and since it's worked fine for months I figured it was fine. I am happy to post it though. Here you go:
    feh --bg-scale /home/dodo3773/Pictures/blacksolid.png &
    xfce4-panel &
    numlockx &
    keepassx -lock &
    kupfer --no-splash &
    ~/Documents/Scripts/startupopen.sh &
    sleep 30 && sudo /usr/bin/ntpd -qg &
    sudo /usr/sbin/ethtool -K eth0 rx off &
    ~/Documents/Scripts/conky.sh &
    sudo /home/dodo3773/Documents/Scripts/temp_throttlenew > /dev/null 2>&1 &
    Here are the external scripts that are called (startupopen.sh and temp_throttlenew):
    startupopen.sh
    #! /bin/bash
    sleep 13
    chromium &
    thunderbird &
    sleep 20
    devilspie -a &
    sleep 7
    pkill devilspie &
    exit
    temp_throttlenew
    #!/bin/bash
    # temp_throttle.sh max_temp
    # USE CELSIUS TEMPERATURES.
    if [[ $EUID -ne 0 ]]; then
    echo "This script must be run as root" 1>&2
    exit 1
    fi
    #if [ $# -ne 1 ]; then
    # If temperature wasn't given, then print a message and exit.
    # echo "Please supply a maximum desired temperature in Celsius." 1>&2
    # echo "For example: ${0} 60" 1>&2
    # exit 2
    #else
    #Set the first argument as the maximum desired temperature.
    MAX_TEMP=85
    #fi
    # The frequency will increase when low temperature is reached.
    let LOW_TEMP=$MAX_TEMP-5
    CORES=$(nproc) # Get number of CPU cores.
    echo -e "Number of CPU cores detected: $CORES\n"
    # Temperatures internally are calculated to the thousandth.
    MAX_TEMP=${MAX_TEMP}000
    LOW_TEMP=${LOW_TEMP}000
    # FREQ_LIST is a list (array) of all available cpu frequencies the system allows.
    declare -a FREQ_LIST=($(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies))
    # CURRENT_FREQ relates to the FREQ_LIST by keeping record of the currently set frequency.
    let CURRENT_FREQ=1
    function set_freq {
    echo ${FREQ_LIST[$1]}
    cpupower frequency-set -g "ondemand" -d "800MHz" -u ${FREQ_LIST[$1]}
    function throttle {
    if [ $CURRENT_FREQ -ne $((${#FREQ_LIST[@]}-1)) ]; then
    let CURRENT_FREQ+=1
    echo -n "throttle "
    set_freq $CURRENT_FREQ
    fi
    function unthrottle {
    if [ $CURRENT_FREQ -ne 0 ]; then
    let CURRENT_FREQ-=1
    echo -n "unthrottle "
    set_freq $CURRENT_FREQ
    fi
    function get_temp {
    # Get the system temperature.
    # If one of these doesn't work, the try uncommenting another.
    TEMP=$(cat /sys/class/thermal/thermal_zone0/temp)
    #TEMP=$(cat /sys/class/hwmon/hwmon0/temp1_input)
    #TEMP=$(cat /sys/class/hwmon/hwmon1/device/temp1_input)
    while true; do
    get_temp
    if [ $TEMP -gt $MAX_TEMP ]; then # Throttle if too hot.
    throttle
    elif [ $TEMP -le $LOW_TEMP ]; then # Unthrottle if cool.
    unthrottle
    fi
    sleep 3
    done
    Stuff that needs sudo is in my sudoers as "username hostname NOPASSWD: item1,item2,etc,etc". Nothing too exciting. Seems like if there was suddenly something wrong with my autostart file at least some of the stuff would run either way though cause of "&". Pretty puzzling this issue is.

  • TS3276 Web through this step-by-step, but alas it did not solve the problem. For some reason I can download mail on my Macbook Pro, but no my iMac. Connection Doctor shows all green lights.

    Went through this step-by-step, but alas it did not solve the problem. For some reason I can download mail on my Macbook Pro and iPhone, but no my iMac. Connection Doctor shows all green lights. This started today when I was prompted to re-enter incoming mail server passwords. I re-entered passowrds yet again to make sure they were correct. Rebuilt the inBox. Connection Doctor continues to show all green lights, but am still unable to download mail to the inbox. Has anyone else ever run into this problem?

    I have the exact same problem trying to use the Remote app on both my iPhone 3gs and iPad 2 with either my Mac or ATV2.  My Remote app used to work on my phone - I can't recall if I ever actually used it with my iPad, but when I tried today, I got all the same results as you did (on both iPad, and then iPhone).  I  was using my ATV2 to play music from iTunes on my Mac and wanted to use the Remote app, but it would not connect to either device no matter what I did. 

  • Mail Alert to Managing Director for every transaction for customer & vendor

    Dear Gurus,
    Please let me know how & where to do setting for mail alert to Managing Director for every transaction for customer & vendor,
    Like for Customer: Sales Order, PGI, Invoice, Payment receipt................
           for Vendor: Purchase Order, GR, Miro, Outgoing Payment for Vendor,
    Thanks in advance,
    Sai

    Hi Sai
    If you want to set the mail alert to Managing Director for every transaction for customer & vendor Like for Customer Sales Order, PGI, Invoice , PO  then maintain at  all levels  output type and at all levels for those output types  assign the authorization as Managing Director
    But for what purpose you want to assign the authorization member at all levels, what is your requirement?
    Regards
    Srinath

  • Certified SAP adapter for INFOR WMS

    Dear Al,
    Is there any certified SAP adapter for INFOR WMS.
    Warm Regards,
    Saurabh.

    There are no SAP adapters for integrating with INFOR.
    We have to use proxy communication to integrate with INFOR.

  • Air FileSystem: Update: New directories for Windows only!

    Hello Sirs & Ladies
    i have a nice idea for important directories like they want to call WindowsDirectory, SystemDirectory or any directories for Adobe Air 13.x and 14.x
    Look out my example screenshot:
    red lines mean beknown like File.desktopDirectory and File.documentsDirectory
    blue points mean new directories....
    If you would like to download and enjoy to Adobe Air Applications Link to DropBox
    Sorry my swc is bit mesh and it is not complety like ProgramFiles and Program Files (x86) and ProgramData and AppData Directories will come soon....
    Thanks and best regards!

    The product specifications list the requirements as:
    Basic Requirements
    Genuine Intel? Pentium? III GHz, AMD? GHz processor or faster
    Intel, AMD or 00% compatible motherboard chipset
    <EM>Microsoft? Windows? XP Service Pack 2 (SP2)</EM>
    256MB RAM
    600MB of free hard disk space
    Available PCI 2. slot for the audio card
    CD-ROM/CD-RW or CD/DVD-ROM required for software installation
    Graphics card with DirectX? 9 and OpenGL? compliant 3D graphics accelerator</LI>
    As Andy says, you can try the XP driver on Windows2000, I suspect it'll run just fine, but it is not officially supported.
    Cat
    Message Edited by Catherina-CL on 06-0-2006 :4 AM

  • TestStand continuously probing its search directories for changes

    TestStand will continuously probe the search directories for any changes to directories, subdirectories, and files.  The sequence and LabVIEW VI's are stored on a file server.  The client test station PC, running the test, loads the sequence and VI's off of the server.  During the execution of the test TestStand will ask the server every couple of seconds if any folders and files within the TestStand search directory listings has changed.  This constant probing of the server files is consuming much LAN bandwidth.  I know this because my IT department has connected a packet sniffer to the network.  We can see the PC, at TestStand's request, is continuously asking the server for folder or file changes.  How can this be deactivated?

    A couple more things to check:
    - Do you have a process model or step type on the network drive?
    - Are you unloading step modules unnecessarily (ie. Unload Option: After Step Executes)?
    You could also pull the network cable out once all the modules and files have been loaded and you aren't expecting it to need any more network files. Then perhaps you would get an error message indicating what file is still being retrieved.

  • Admin and dump directories for oracle RAC

    I have conflicting environments running RAC on Solaris Sparc. We have a shared file system that contains the dump directories for both instance in the cluster.
    both instance are writing to the same directorie for the alert log and other trace files. alert_<sid1>.log and alert_<sid2>.log are in the same directory. Should these be seperated on put these directories on local file system on the nodes? My instance is crashing on a regular basis, just wondering if this could cause a problem.
    thanks in advance.

    afaik , the ora-00600[12333] could'nt be crashing the instance but rather indicates a communication mismatch between the
    client and the server or a networking issue .. Usually those are ignorable ..
    however the other error you indicated ora-00600 [kclfadd_1] could be responsible for Instance crashes ..
    Looks like this issue only affects 64 bit versions of Oracle and this affects Oracle 10.2.0.2 ..
    one-off patches are available for this issue on Linux , HP Tru64 , AIX , Solaris SPARC and Solaris x86 { all 64 bit platforms only }
    This issue is an Oracle bug and caused due to corruptions in the cache element structures used by LMS's for cache fusion ..
    These crashes might have nothing to do with the Shared bdump / udump locations you have ..
    My advice would be to apply the one-off patch if it's available for your platform on 10.2.0.2 or upgrade to 10.2.0.[3/4]
    where this bug has been fixed .
    Vishwa

  • Case confusion - two dbcontrol config directories for one database

    Oracle 11.2.0.2 SE-One 64-bit
    Oracle ASM 11.2.0.2 64-bit
    Oracle Linux 5.6 x86-64
    Stand alone server, no cluster, no RAC
    Configured a new dbcontrol for subject database.  Everything seems to be functioning correctly but it created two config directories
    oracle:mydb$ cd $ORACLE_HOME
    2013-09-12 14:21:50
    oracle:mydb$ ls -l myserver*
    myserver.mycompany.org_mydb:                        -------- note the dbname is lower case and directory is sparse
    total 4
    drwxr----- 3 oracle oinstall 4096 Sep 12 14:13 sysman
    myserver.mycompany.org_MYDB:                        -------- note the dbname is upper case and directory is fully populated
    total 12
    -rw-r----- 1 oracle oinstall    6 Sep 12 14:13 emctl.pid
    -rw-r--r-- 1 oracle oinstall   56 Sep 12 14:13 oraInst.loc
    drwxr----- 7 oracle oinstall 4096 Sep 12 14:13 sysman
    And in the j2ee directory we get this.  Note the dbname is in upper case
    oracle:mydb$ cd oc4j/j2ee
    2013-09-12 14:26:49
    oracle:mydb$ ll
    total 36
    -rw-r--r--  1 oracle oinstall 1012 Apr  5 08:56 deploy_db_wf.ini
    drwxr-xr-x 14 oracle oinstall 4096 Apr  5 08:53 home
    drwxr-xr-x  3 oracle oinstall 4096 Apr  5 08:51 oc4j_applications
    drwxr-x---  6 oracle oinstall 4096 Apr  5 08:51 OC4J_DBConsole
    drwxr-xr-x 10 oracle oinstall 4096 Sep 12 14:13 OC4J_DBConsole_myserver.mycompany.org_MYDB 
    drwxr-xr-x  5 oracle oinstall 4096 Apr  5 08:51 OC4J_Workflow_Component_Container
    drwxr-xr-x  5 oracle oinstall 4096 Apr  5 08:51 OC4J_Workflow_Management_Container
    drwxr-xr-x  2 oracle oinstall 4096 Apr  5 08:53 utilities
    What the database tells us about itself:
    SQL> select name from v$database;
    NAME
    MYDB
    SQL> select instance_name from v$instance;
    INSTANCE_NAME
    mydb
    SQL> select name,
      2         value
      3  from v$parameter
      4  where name in ('db_name',
      5                 'db_unique_name',
      6                 'instance_name',
      7                 'service_names',
      8                 'global_names'
      9                 )
    10  order by name;
    NAME                 VALUE
    db_name              MYDB
    db_unique_name       MYDB
    global_names         FALSE
    instance_name        mydb
    service_names        MYDB
    And the environment from which I ran emca:
    oracle:mydb$ env |grep ORA|sort
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOME=/u01/app/oracle/product/11.2.0.2/dbhome_1
    ORACLE_SID=mydb
    The mis-matched cases stem from my predecessor deciding he didn't like database names in lower case, so started changing in mid-stream.  I'm not sure exactly what he did or how he did it.  But that aside, the results of creating a new dbcontrol (getting two directories for the same database) still puzzling.  I started by dropping the original (emca -deconfig dbcontrol db -repos drop), which dropped the upper-case version of the directories, but left the lower-case version.  I then deleted that manually before running emca to configure a new dbcontrol, but still ended up with both versions.
    Ideas?

    The ORACLE_HOME may have been set twice with differents values in it (i.e. extra slash) before starting twice the same db.
    Please, have a look to this article from Ivan Kartik :
    http://ivan.kartik.sk/index.php?show_article=40
    And depending of your OS, you could check what ORACLE_HOME is used for each process :
    How to Check the Environment Variables for an Oracle Process*
    Doc ID:  373303.1*
    Nicolas.
    added the metalink note ref.
    Edited by: N. Gasparotto on Sep 4, 2009 11:34 AM

  • Can't find October USPS Directories for PeopleSoft (Address Data Directory)

    Hi,
    I need help finding the October USPS Directories for our data correcton software running in Peoplesoft.  I used to get them in the Business Objects ESD webiste, but I only see the August directory.
    Thanks

    Hi John,
    The name of the directory downloads has been updated somewhat following the migration of all content to the Service MarketPlace.  You should be able to login to your S-account # on the SMP and see the address directories enabled on your account in the "BusinessObjects packages and products" area under the group: Address Directories, then an entry for BOBJ ADDR DIR US....   Sorry for the confusions!
    If for some this doesn't match the product options that are enabled within your S-account number, then the most efficient approach to resolve this is to log an incident with Customer Support, so they can research the specifics for your account with you.
    With regards,
    Sue

Maybe you are looking for

  • Itunes 7.5 prob

    I am trying to download itunes 7.5 and i keep getting error code 2738 and I would really like to know what I have to do to fix this?? thank you

  • Received Error 1602 while updating to 6.1.2

    I Was Upgrading to 6.1.2 When Suddenly i Get The Message, Error 1602, Cannot Restore. So I Try Restoring It Again, But The Same Problem Keeps Coming Up. And My Ipod Touch Wont Even Switch On Now. What Do I Do? And Yes, I've Tried Putting It In DFU Mo

  • Colors in column

    Hi All, Wanted to know if I can give colors in a column: For eg if i have a column for number of projects (values from 1 to 100) Can I display another column where I could just give colors like 1- 25 projects red color, 26-50 blue. 51-75 green and 76

  • Connecting Mac Pro and Movies

    Equipment owned: 17 500GB external hard drives linked to Mac pro via USB and Firewire hubs My experience - limited My questions: If I buy the AirPort Exterme Base Station will the 802.11n be as fast as hard wired USB and Firewire? Will wireless enabl

  • RightALT+e behavior

    Hi I seem to be having a problem with the right alt key + 'e'. I'm a polish native but I use English Windows 7 (polish programmers keyboard) Home Premium. I use Illustrator (and Adobe products in general) for some time now. Ever since I got CS5 Desig