Want to write my personal Arch_Install Script, help please..

Hi, guys, I want to write a script to make my arch-installation automatic. The following is my personal procedures I follow to install my Arch.
I am wondering is there any way I can make it automatic instead of input every command manually, for example starting from "Adduser" after reboot after the base installation, can I make the rest run automatically by a script?
Will it work if I simply write all commands one by one in each line into a text file, and exec it after chmod +x ?
Or any suggestions?
Thanks. :)
ARCHLICH INSTALLATION
      <=============================boot==============================>
1. Install Base system from FTP/HTTP-USB
2. Configure system:
   1)rc.conf (HOSTNAME="home")
   2)etc/hosts (".. localhost home")
   3)locale.gen
   4)Root password
3. Grub Install, change waiting time from 5 to 0.
      >=============================Reboot==============================<
1. Adduser (tty,disk,video,audio,optical,storage,wheel) seperat by a single ","
2. Setup sudo
   1)pacman -S sudo
   2)nano /etc/sudoers (uncomment "%wheel  ALL=(ALL) ALL")
3. Xorg, driver, xorg.conf
   1)pacman -Sy xorg-server xorg-xinit xf86-input-mouse xf86-input-keyboard
   2)pacman -Sy nvidia
   3)mkdir "/mnt/backup" and mount /dev/sdb1
   4)copy xorg.conf from /mnt/backup/linux-backup/arch to /etc/X11
4. Fonts & Scim (scim is configured later)
   1)pacman -Sy ttf-dejavu
   2)pacman -Sy ttf-ms-fonts artwiz-fonts
   3)pamcna -Sy terminus-font
   4)pacman -Sy ttf-arphic-uming ttf-arphic-ukai ttf-fireflysung
   5)pacman -Sy scim scim-pinyin
5. Install OpenBox and Thunar
   1)openbox, lxappearance, gtk2-themes-collection, openbox-themes, nitrogen
   2)gamin, thunar, unrar, unzip, xarchiver, thunar-archive-plugin
   3)mousepad, rxvt-unicode, gqview
   4)MODULES=(!soundcore)
   5)DAEMONS=(.. dbus hal)
6. nano /etc/inittab
   1)id:5:initdefault:  (unmoment the one with 3)
   2)comment out agetty3-6
   3)add the following line to the bottom and uncomment others:
    x:5:once:/bin/su kevin -l -c "/bin/bash --login -c startx >/dev/null 2>&1"
7. log into kevin
   1)mkdir .config and cp openbox into it from backup
   2)mkdir .themes and cp DarkFiber into it from backup
   3)nano .xinitrc add "exec openbox-session"
   4)cp .Xdefaults to  ~/ from backup
      >=============================Reboot==============================<
0. Mount sdb1 as root and cp .bashrc_root to root's home as .bashrc
1. Exit to kevin and cp .bashrc to kevin's home.
2. Install cpu-frequency
   1)pacman -S cpufrequtils
   2)nano /etc/conf.d/cpufreq:
                       min_freq="2GHz"
                       max_freq="2.7GHz"
3. lm_sensors
   1)pacman -Sy lm_sensors
   2)sensors-detect
4. NumbLock
   1)pacman -S numlockx
   2)add it to ~/.xinitrc:
numlockx &
nitrogen --restore &
#conky &
exec openbox-session
5. Install OSS
   1)pacman -S oss
6. Install Openntpd to adjust your computer time.
   1)pacman -S openntpd
7. Diable IPv6 Module, mousepad /etc/modprobe.conf, and add:
# disable autoload of ipv6
alias net-pf-10 off
8. Copy PolicyKit.conf from backup to /etc/PolicyKit/, for USB to auto-mount.
9. Edit MODULES and DAEMONS:
MODULES=(!soundcore powernow-k8 cpufreq_ondemand)
DAEMONS=(syslog-ng network netfs crond dbus hal cpufreq sensors oss)    [Optional: preload]
10. Add /etc/sudoers.(!Remember to have a new line in the end!)
%users   ALL=NOPASSWD:/sbin/shutdown
11. Edit /etc/fstab,(copy the 2 lines from /arch/fstab in backup)
  1)use nitrogen to change wallpaper
      >=============================Reboot==============================<
                             APPLICATION INSTALLATION
      >================================================================<
0. obmenu, obconf, librsvg
1. firefox, flashplugin
2. mplayer, mplayer-plugin, codecs
4. cd /backup/linux: pacman -U mpg123-oss-TAB [ossxmix to diable vmix]
5. openoffice-base, jre
6. emacs (copy .emacs .virc to ~/ to prevent *~ file)(M-x custmize-variable RET
   latex-run-command RET, then change latex into pdflatex)
7. texlive-most
8. conky [edit .xinitrc to auto-start conky]
   (cp .conkrc and .weather and chmod +x .weather)
9. tuxguitar
10. openssh, sshfs
   1)mkdir .ssh, then as root cp private key to .ssh
   2)mkdir /mnt/yzhao and chown kevin:users /yzhao
                      nano /etc/pacman.conf
[kdemod-legacy]
Server = http://mirror.rit.edu/kdemod/legacy/i686
       <=====================OR=======================>
[kdemod-legacy]
Server = http://mirror.rit.edu/kdemod/legacy/x86_64
11. kdemod3-kdegraphics-kdvi, kdemod3-kdegraphics-kpdf
12. kile, k3b
13. Add ":/opt/kde/bin" to /etc/profile, to use kde applications.
14. Configure Scim to be usable, add to /etc/profile:
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
scim -d
15. deluge, pidgin [diable system tray, ossplay %s]
      <=============================End==============================>
Last edited by yingwuzhao (2009-04-04 21:12:20)

Well if you want to do all that, you obviously need to learn about bash scripting.
You can also have a look at the automatic procedure from aif, which is made exactly for automatic installations.  See http://bbs.archlinux.org/viewtopic.php?id=58110

Similar Messages

  • Hi! my photos and videos don't rotate horizontally whenever i want to view it like that. Help please. Am using iphone 4S. thanks.

    hi! my photos and videos don't rotate horizontally whenever i want to view it like that. Help please. Am using iphone 4S. thanks.

    Orientation lock on? Double tap the home button, swipe left-to-right, far left is the orientation lock, tap on/off.

  • Gallery script help, please

    Gallery script help, please
    Hello,
    I'm new to actionscript in general, I do know a little...
    I foung a gallery script, modified many things, the images
    open fine, everything is working, but here's the thing:
    the gallery is in 3 sections, red, blue and yellow.
    I would like to know how, what, and where to put a script so
    that if a "the small red image #1" is clicked, I can load any sort
    of a movie on top of the "the BIG red image #1" or #2 or 3 and so
    on...same goes for the blue and yellow...
    If I figured things correctly on my own...the small thumbnail
    images of the gallery are not buttons, that's why I can't attach a
    movie (let's say) to them...but it is all written in script, using
    the horizontal and vertical position of the mouse to open the large
    images of the gallery...
    So, I don't know how to figure things out, to attach a
    specific movie to a specific thumbnail...
    p.s.: I think the script that controls the gallery is in
    symbol 120
    I really would appreciate the help
    Merry Christmas in advance to everyone
    Sandra
    here are all the files...
    http://www.gentro.ca/sandra_test.zip

    There's a great tutorial on kirupa...
    click
    here for link

  • Guys am using an iphone 5s that is sealed new, and i tried to restore my backup from my itunes and it was restored a wrong backup that doesnt belong to me and it contains an icloud account, and i want to delete this account. Any help please.

    Guys am using an iphone 5s that is sealed new, and i tried to restore my backup from my itunes and it was restored a wrong backup that doesnt belong to me and it contains an icloud account, and i want to delete this account. Any help please.

    This phone was new. And it was sealed from the box that was closed. And the backup was on my laptop. And this icloud account was saved by mistake on my laptop.

  • Firefox not responding, freezes, sometimes responds after a few minutes, other times a pop-up appears asking if I want to stop script - help please

    firefox not responding, freezes, sometimes responds after a few minutes, other times a pop-up appears asking if I want to stop script - help please

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • How to download movies? I download as well as music, and writes that can't format. help please

    how to download movies? I download as well as music, and writes that can't format. help please

    Check the iTMS, if the movie isn't listed there, it's not for sale.

  • CALC SCRIPT - HELP PLEASE!!! URGENT

    I am trying to write a Calc Script for the Outline below -
    AP_Related
    Trade_AP +
    2200 + (Alias – A/P Trade related Party)
    2210 + (Alias – A/P Trade I/P)
    2215 +
    AP_Corporate +
    2240 + (Alias – Brazil Fees)
    2250 + (Alias – Corporate Chargebacks)
    2260 + (Alias – Service Fees)
    2270 + (Alias – Fusion Fees)
    2280 + (Alias – Tech Fees)
    AP_Corp_IP + (UDA – Input_Accs)
    I want to put the values in 2240 and 2250 into AP_Corporate and the values of 2260,2270 and 2280 into 2210.
    I am trying to add the code to the existing code.
    /*Fix on members to copy Actual data to Forecast - */
    FIX(&ActMonthEnd,&ForecastYear,"Final",@RELATIVE("Product Groups",0),@RELATIVE("Departments",0),
    @RELATIVE("ICP",0),@RELATIVE("TOT_USG",0),@RELATIVE("Accounts",0))
    "Actual"(
    @CALCMODE(bottomup);
    IF(@ISUDA("Accounts","INPUT_ACCS"))
    "Basic"->"Forecast"->&ForecastYear=@SUM(@REMOVE(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0),
    @REMOVE(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0),
    @UDA("Accounts","SUMMED_ACCS"))))-@CURRMBR("Accounts");
         IF(@ISMBR("Tot_I/P_Mat_Costs_Roll Prod_INP"))
              "Basic"->"Forecast"->&ForecastYear->"Tot_I/P_Mat_Costs_Roll Prod_INP"=#Missing;
         ENDIF
         IF(@ISMBR("Metal_Costs_3rd_Party_INP"))
              "Basic"->"Forecast"->&ForecastYear->"Metal_Costs_3rd_Party_INP"=#Missing;
         ENDIF
         ELSEIF(@ISMBR("Oth_Exp_Misc_Inp"))
              "Basic"->"Forecast"->&ForecastYear->"Oth_Exp_Misc_Inp"="40110100"+"40079000"-"30100200";
         ELSEIF(@ISMBR("TOT_ALLOW_INP"))
              "Basic"->"Forecast"->&ForecastYear->"TOT_ALLOW_INP"="12005000"+"12005100";
    Edited by: user11300497 on Jun 24, 2009 12:00 PM

    Thanks for the response,but the Original script I sent is based on UDA's.I am sending the script and the modified Outline with the UDA's.Any help is greatly appreciated.
    The members are from Account dimension.
    AP_Related
    Trade_AP +
    2200 + (Alias – A/P Trade related Party)
    2210 + (Alias – A/P Trade I/P)
    2215 +
    AP_Corporate +
    2240 + (Alias – Brazil Fees) (UDA's:Summed_ACS)
    2250 + (Alias – Corporate Chargebacks)(UDA's:Summed_ACS)
    2260 + (Alias – Service Fees)(UDA's:Summed_ACS)
    2270 + (Alias – Fusion Fees)(UDA's:Summed_ACS)
    2280 + (Alias – Tech Fees)(UDA's:Summed_ACS)
    AP_Corp_IP + (UDA – Input_Accs)
    /* Purpose to copy a single month of actuals to the working forecast replacing a month of forecast.
    Run monthly to update the current Forecast */
    /* Assumptions.
    The substitution variables for
    ActMonthEnd = Is set to the month containing the Actuals to be copied.
    ActualYear = Is set to the year containing the Actuals to be copied.
    ForecastYear = Is set to the Current Forecast year value.
    ForecastVersion = Is set to the appropiate archive Forecast version.
    All input accounts have a UDA of "INPUT_ACCS" and not the UDA "SUMMED_ACCS"
    A parent has only one account with the "INPUT_ACCS" UDA amoung its children
    All siblings of the "INPUT_ACCS" member that are to be summed into the input account have a UDA of "SUMMED_ACCS"
    FIX("LC")
    FIX(&ActMonthEnd,&ForecastYear,"Basic",@IDESCENDANTS ("TOT_USG"),
    @REMOVE (@IDESCENDANTS("Accounts"),
    @LIST(
    "30000000",@SHARE("30000000"),
    "30003300",@SHARE("30003300"),
    "30020400",@SHARE("30020400"),
    "30020500",@SHARE("30020500"),
    "30010200",@SHARE("30010200"),
    "30010400",@SHARE("30010400"),
    "41002200",@SHARE("41002200"),
    "41002300",@SHARE("41002300"),
    "74001000",@SHARE("74001000"),
    "41000100",@SHARE("41000100"),
    "41001400",@SHARE("41001400"),
    "53000000",@SHARE("53000000"),
    "59000000",@SHARE("59000000"),
    "IP_Ship",@SHARE("IP_Ship"),
    "IP Tolling Ship",@SHARE("IP Tolling Ship"),
    "IP_NonAlum_Ship",@SHARE("IP_NonAlum_Ship"),
    "3rd_Party_Ship",@SHARE("3rd_Party_Ship"),
    "3rd party Tolling Ship",@SHARE("3rd party Tolling Ship"),
    "Margin - Full",@SHARE("Margin - Full"),
    "Margin - Tolling",@SHARE("Margin - Tolling"),
    "Discounts - Full - Value",@SHARE("Discounts - Full - Value"),
    "Discounts - Tolling - Value",@SHARE("Discounts - Tolling - Value"),
    "Base Metal Freight / Logistics - USD",@SHARE("Base Metal Freight / Logistics - USD"),
    "Flash Operating EBITDA",@SHARE("Flash Operating EBITDA"),
    "Flash Total Book Inventory",@SHARE("Flash Total Book Inventory"),
    "BMC / Tonne",@SHARE("BMC / Tonne"),
    "IP BMC / Tonne",@SHARE("IP BMC / Tonne"),
    "BMC_CPL",@SHARE("BMC_CPL"),
    "BMC_Cur",@SHARE("BMC_Cur"),
    "BMC_M0",@SHARE("BMC_M0"),
    "BMC_M1",@SHARE("BMC_M1"),
    "BMC_M2",@SHARE("BMC_M2"),
    "BMC_M3",@SHARE("BMC_M3"),
    "BMC_PQ",@SHARE("BMC_PQ"),
    "CPL Adjustment",@SHARE("CPL Adjustment")
         CLEARDATA "Forecast";
    ENDFIX
    /* copy in Actual Currency Rates for proper monthly converison
    FIX(&ActMonthEnd,&ForecastYear,"EOMRATE","Product_None","Dept_None","ICP_None",
    "Entity_None","Rate_EUR_USD","Rate_INR_USD","Rate_GBP_USD","Rate_KRW_USD","Rate_BRL_USD",
    "Rate_CHF_USD","Rate_CAD_USD","Rate_MYR_USD","Rate_SEK_USD")
    DATACOPY "Actual"->"Final" TO "Forecast"->"Basic";
    ENDFIX
    /*Fix on members to copy Actual data to Forecast - */
    FIX(&ActMonthEnd,&ForecastYear,"Final",@RELATIVE("Product Groups",0),@RELATIVE("Departments",0),
    @RELATIVE("ICP",0),@RELATIVE("TOT_USG",0),@RELATIVE("Accounts",0))
    "Actual"(
    @CALCMODE(bottomup);
    IF(@ISUDA("Accounts","INPUT_ACCS"))
    "Basic"->"Forecast"->&ForecastYear=@SUM(@REMOVE(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0),
    @REMOVE(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0),
    @UDA("Accounts","SUMMED_ACCS"))))-@CURRMBR("Accounts");
         IF(@ISMBR("Tot_I/P_Mat_Costs_Roll Prod_INP"))
              "Basic"->"Forecast"->&ForecastYear->"Tot_I/P_Mat_Costs_Roll Prod_INP"=#Missing;
         ENDIF
         IF(@ISMBR("Metal_Costs_3rd_Party_INP"))
              "Basic"->"Forecast"->&ForecastYear->"Metal_Costs_3rd_Party_INP"=#Missing;
         ENDIF
         ELSEIF(@ISMBR("Oth_Exp_Misc_Inp"))
              "Basic"->"Forecast"->&ForecastYear->"Oth_Exp_Misc_Inp"="40110100"+"40079000"-"30100200";
         ELSEIF(@ISMBR("TOT_ALLOW_INP"))
              "Basic"->"Forecast"->&ForecastYear->"TOT_ALLOW_INP"="12005000"+"12005100";
         ELSEIF(@ISMBR("Int_Exp_Third_Oth_INP"))
              "Basic"->"Forecast"->&ForecastYear->"Int_Exp_Third_Oth_INP"="40071200"+"40071300"+"40075530"+"40075540"+"40075550"+"40075570"+"40075580"+"40075590"+"40075610"-"30063200";
         ELSEIF(@ISMBR("Realized_Der_Metal_Inp"))
              "Basic"->"Forecast"->&ForecastYear=@sum(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0))-@CURRMBR("Accounts")-
              (2*("30121240"));
         ELSEIF(@ISMBR("Unrealized_Der_Metal_Inp"))
              "Basic"->"Forecast"->&ForecastYear=@sum(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0))-@CURRMBR("Accounts")-
              (2*("30131240"));
         ELSEIF(@ISMBR("TOT_EMP_INP"))
    "Basic"->"Forecast"->&ForecastYear=@SUM(@UDA("Accounts","EMP_ACCS"));

  • I want to open a domain.site2 file outside the default folder (User/Library/Application Support/iWeb) with iWeb11, but iWeb only opens the domain file in the default folder. If I delete the default domain file, iWeb wants to create a new site. Help please

    I want to open a domain.site2 file outside the default folder (User/Library/Application Support/iWeb) with iWeb11, but iWeb only opens the domain file in the default folder. If I delete the default domain file, iWeb wants to create a new site. Does anyone have the same problem or know how to fix it?

    In Lion the Finder folder is now invisible.  To make it permanetely visible enter the following in the Terminal applicaiton window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    For opening your domain file in Lion for the first time or to switch between multiple domain files  Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an applicaiton.
    Just launch the applicaiton, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    OT

  • Wmii/dash scripting help please

    So heres the thing, I pretty much suck at scripting .
    I get by in tiling wm's simply by observing, modifying, and eventually learning through trial and error.
    So Ive been playing around with wmii lately and Ive hacked up my wmiirc to do what I want as best I can with what limited knowledge I have, but I need more.
    First problem, Im trying to make wmii have custom tag titles while still using alt + 0-9 instead of using alt + t and typing the title every time.
    heres what I did to achieve this
    # for i in 0 1 2 3 4 5 6 7 8 9; do
    # cat <<!
    #Key $MODKEY-$i # Move to the numbered view
    # wmiir xwrite /ctl view "$i"
    #Key $MODKEY-Shift-$i # Retag selected client with the numbered tag
    # wmiir xwrite /client/sel/tags "$i"
    # done
    Key $MODKEY-1
    wmiir xwrite /ctl view "web"
    Key $MODKEY-Shift-1
    wmiir xwrite /client/sel/tags "web"
    Key $MODKEY-2
    wmiir xwrite /ctl view "ctrl"
    Key $MODKEY-Shift-2
    wmiir xwrite /client/sel/tags "ctrl"
    Key $MODKEY-3
    wmiir xwrite /ctl view "stat"
    Key $MODKEY-Shift-3
    wmiir xwrite /client/sel/tags "stat"
    Key $MODKEY-4
    wmiir xwrite /ctl view "msg"
    Key $MODKEY-Shift-4
    wmiir xwrite /client/sel/tags "msg"
    Key $MODKEY-5
    wmiir xwrite /ctl view "img"
    Key $MODKEY-Shift-5
    wmiir xwrite /client/sel/tags "img"
    Key $MODKEY-6
    wmiir xwrite /ctl view "vid"
    Key $MODKEY-Shift-6
    wmiir xwrite /client/sel/tags "vid"
    Key $MODKEY-7
    wmiir xwrite /ctl view "misc"
    Key $MODKEY-Shift-7
    wmiir xwrite /client/sel/tags "misc"
    Key $MODKEY-8
    wmiir xwrite /ctl view "misc1"
    Key $MODKEY-Shift-8
    wmiir xwrite /client/sel/tags "misc1"
    Key $MODKEY-9
    wmiir xwrite /ctl view "misc2"
    Key $MODKEY-Shift-9
    wmiir xwrite /client/sel/tags "misc2"
    Key $MODKEY-0
    wmiir xwrite /ctl view "misc3"
    Key $MODKEY-Shift-0
    wmiir xwrite /client/sel/tags "misc3"
    Now this does work, but the problem is that now tags are listed on the tag bar alphabetically rather then numerically like I intended. Example alt + 1 (which is now web) actually ends up being the last tag in the list rather then the first because web starts with w.
    I.E [crtl][msg][stat][web] instead of [web][ctrl][stat][msg] like I intended.
    So I guess the question is how can I fix this so theyre listed in accordance with the key thats pressed rather then alphabetically? Is this possible in wmii?
    Also I dont want to change the keys (i.e. make web 9 instead of 1 so its last on the keyboard too). I like the web=1,ctr=2l,stat=3,msg=4 layout that I chose in my config, I just dont like how theyre out of order on the bar.
    Next problem, I want to autostart specific applications on specific tags and in a specific arrangement.
    heres what I did to achieve this
    # Autostart (this is ghetto, I know)
    echo -n view ctrl | wmiir write /ctl;urxvtc -e ssh 192.168.1.55 -p 228 &
    urxvtc -e ssh [email protected] -p 228 &
    sleep 1.5 && urxvtc &
    sleep 2 && wmiir xwrite /tag/sel/ctl send sel right &
    sleep 2.5 && echo -n view stat | wmiir write /ctl;urxvtc -e vifm &
    sleep 2.5 && urxvtc -e alsamixer &
    sleep 3 && urxvtc -e htop &
    sleep 3.5 && wmiir xwrite /tag/sel/ctl send sel left &
    sleep 4 && echo -n view msg | wmiir write /ctl;pidgin &
    sleep 3.5 && echo -n view web | wmiir write /ctl;wmiir xwrite /tag/sel/ctl colmode sel stack;uzbl-browser &
    This also works, but it seems a bit too hackish if you ask me. It also takes a while to go through the tags and open things one at a time like this. Surely there must be a way to achieve the same results without all the sleep and manual client placement commands. Im looking for a way to open everything simultaneously and have it go directly where its supposed to.
    So what would be the better way to do this?
    And lastly heres the complete wmiirc for reference. If anybody has any tips or suggestions about anything please share.
    #!/bin/dash -f
    # Configure wmii
    wmiiscript=wmiirc # For wmii.sh
    . wmii.sh
    # Configuration Variables
    MODKEY=Mod1
    UP=k
    DOWN=j
    LEFT=h
    RIGHT=l
    # Bars
    noticetimeout=5
    noticebar=/rbar/!notice
    # Colors tuples: "<text> <background> <border>"
    export WMII_NORMCOLORS='#a7a15e #262626 #3e3e3e'
    export WMII_FOCUSCOLORS='#262626 #a7a15e #3e3e3e'
    export WMII_BACKGROUND='#262626'
    set -- $(echo $WMII_NORMCOLORS $WMII_FOCUSCOLORS)
    # Font
    export WMII_FONT='xft:Terminus-8'
    #export WMII_FONT='-dec-terminal-bold-*-*-*-*-*-*-*-*-*-*-*'
    # Terminal
    export WMII_TERM="urxvtc"
    # Menu history
    hist="${WMII_CONFPATH%%:*}/history"
    histnum=5000
    # Column Rules
    wmiir write /colrules <<!
    /.*/ -> 58+42
    # /.*/ -> 62+38 # Golden Ratio
    # Tagging Rules
    wmiir write /rules <<!
    # Apps with system tray icons like to their main windows
    # Give them permission.
    #/^Pidgin:/ allow=+activate
    # Float Apps
    /MPlayer/ floating=on
    /feh/ floating=on
    /gimp/ floating=on
    /^Pidgin:/ floating=on
    # ROX puts all of its windows in the same group, so they open
    # with the same tags. Disable grouping for ROX Filer.
    #/^ROX-Filer:/ group=0
    # Status Bar Info
    status() {
    echo -n $(uptime | sed 's/.*://; s/,//g') '|' $(date +%a' '%b' '%d' '%r)
    # Generic overridable startup details
    startup() { witray & }
    local_events() { true;}
    wi_runconf -s wmiirc_local
    startup
    echo $WMII_NORMCOLORS | wmiir create $noticebar
    # Event processing
    events() {
    cat <<'!'
    # Events
    Event CreateTag
    echo "$WMII_NORMCOLORS" "$@" | wmiir create "/lbar/$@"
    Event DestroyTag
    wmiir remove "/lbar/$@"
    Event FocusTag
    wmiir xwrite "/lbar/$@" "$WMII_FOCUSCOLORS" "$@"
    Event UnfocusTag
    wmiir xwrite "/lbar/$@" "$WMII_NORMCOLORS" "$@"
    Event UrgentTag
    shift
    wmiir xwrite "/lbar/$@" "*$@"
    Event NotUrgentTag
    shift
    wmiir xwrite "/lbar/$@" "$@"
    Event LeftBarClick LeftBarDND
    shift
    wmiir xwrite /ctl view "$@"
    Event Unresponsive
    client=$1; shift
    msg="The following client is not responding. What would you like to do?$wi_newline"
    resp=$(wihack -transient $client \
    xmessage -nearmouse -buttons Kill,Wait -print \
    -fn "${WMII_FONT%%,*}" "$msg $(wmiir read /client/sel/label)")
    if [ "$resp" = Kill ]; then
    wmiir xwrite /client/$client/ctl slay &
    fi
    Event Notice
    wmiir xwrite $noticebar $wi_arg
    kill $xpid 2>/dev/null # Let's hope this isn't reused...
    { sleep $noticetimeout; wmiir xwrite $noticebar ' '; }&
    xpid = $!
    # Menus
    Menu Client-3-Delete
    wmiir xwrite /client/$1/ctl kill
    Menu Client-3-Kill
    wmiir xwrite /client/$1/ctl slay
    Menu Client-3-Fullscreen
    wmiir xwrite /client/$1/ctl Fullscreen on
    Event ClientMouseDown
    wi_fnmenu Client $2 $1 &
    Menu LBar-3-Delete
    tag=$1; clients=$(wmiir read "/tag/$tag/index" | awk '/[^#]/{print $2}')
    for c in $clients; do
    if [ "$tag" = "$(wmiir read /client/$c/tags)" ]; then
    wmiir xwrite /client/$c/ctl kill
    else
    wmiir xwrite /client/$c/tags -$tag
    fi
    if [ "$tag" = "$(wi_seltag)" ]; then
    newtag=$(wi_tags | awk -v't='$tag '
    $1 == t { if(!l) getline l
    print l
    exit }
    { l = $0 }')
    wmiir xwrite /ctl view $newtag
    fi
    done
    Event LeftBarMouseDown
    wi_fnmenu LBar "$@" &
    # Actions
    Action showkeys
    echo "$KeysHelp" | xmessage -file - -fn ${WMII_FONT%%,*}
    Action quit
    wmiir xwrite /ctl quit
    Action exec
    wmiir xwrite /ctl exec "$@"
    Action rehash
    wi_proglist $PATH >$progsfile
    Action status
    set +xv
    if wmiir remove /rbar/status 2>/dev/null; then
    sleep 2
    fi
    echo "$WMII_NORMCOLORS" | wmiir create /rbar/status
    while status | wmiir write /rbar/status; do
    sleep 1
    done
    # Key Bindings
    KeyGroup Moving around
    Key $MODKEY-$LEFT # Select the client to the left
    wmiir xwrite /tag/sel/ctl select left
    Key $MODKEY-$RIGHT # Select the client to the right
    wmiir xwrite /tag/sel/ctl select right
    Key $MODKEY-$UP # Select the client above
    wmiir xwrite /tag/sel/ctl select up
    Key $MODKEY-$DOWN # Select the client below
    wmiir xwrite /tag/sel/ctl select down
    Key $MODKEY-space # Toggle between floating and managed layers
    wmiir xwrite /tag/sel/ctl select toggle
    KeyGroup Moving through stacks
    Key $MODKEY-Control-$UP # Select the stack above
    wmiir xwrite /tag/sel/ctl select up stack
    Key $MODKEY-Control-$DOWN # Select the stack below
    wmiir xwrite /tag/sel/ctl select down stack
    KeyGroup Moving clients around
    Key $MODKEY-Shift-$LEFT # Move selected client to the left
    wmiir xwrite /tag/sel/ctl send sel left
    Key $MODKEY-Shift-$RIGHT # Move selected client to the right
    wmiir xwrite /tag/sel/ctl send sel right
    Key $MODKEY-Shift-$UP # Move selected client up
    wmiir xwrite /tag/sel/ctl send sel up
    Key $MODKEY-Shift-$DOWN # Move selected client down
    wmiir xwrite /tag/sel/ctl send sel down
    Key $MODKEY-Shift-space # Toggle selected client between floating and managed layers
    wmiir xwrite /tag/sel/ctl send sel toggle
    KeyGroup Client actions
    Key $MODKEY-f # Toggle selected client's fullsceen state
    wmiir xwrite /client/sel/ctl Fullscreen toggle
    Key $MODKEY-Shift-c # Close client
    wmiir xwrite /client/sel/ctl kill
    KeyGroup Changing column modes
    Key $MODKEY-d # Set column to default mode
    wmiir xwrite /tag/sel/ctl colmode sel default-max
    Key $MODKEY-s # Set column to stack mode
    wmiir xwrite /tag/sel/ctl colmode sel stack-max
    Key $MODKEY-m # Set column to max mode
    wmiir xwrite /tag/sel/ctl colmode sel stack+max
    KeyGroup Running programs
    Key $MODKEY-a # Open wmii actions menu
    action $(wi_actions | wimenu -h "${hist}.actions" -n $histnum) &
    Key $MODKEY-p # Open program menu
    eval wmiir setsid "$(wimenu -h "${hist}.progs" -n $histnum <$progsfile)" &
    Key $MODKEY-Return # Launch a terminal
    eval wmiir setsid $WMII_TERM &
    KeyGroup Other
    Key $MODKEY-Control-t # Toggle all other key bindings
    case $(wmiir read /keys | wc -l | tr -d ' \t\n') in
    0|1)
    echo -n "$Keys" | wmiir write /keys
    wmiir xwrite /ctl grabmod $MODKEY;;
    wmiir xwrite /keys $MODKEY-Control-t
    wmiir xwrite /ctl grabmod Mod3;;
    esac
    KeyGroup Tag actions
    Key $MODKEY-t # Change to another tag
    wmiir xwrite /ctl view $(wi_tags | wimenu -h "${hist}.tags" -n 50) &
    Key $MODKEY-Shift-t # Retag the selected client
    # Assumes left-to-right order of evaluation
    wmiir xwrite /client/$(wi_selclient)/tags $(wi_tags | wimenu -h "${hist}.tags" -n 50) &
    # for i in 0 1 2 3 4 5 6 7 8 9; do
    # cat <<!
    #Key $MODKEY-$i # Move to the numbered view
    # wmiir xwrite /ctl view "$i"
    #Key $MODKEY-Shift-$i # Retag selected client with the numbered tag
    # wmiir xwrite /client/sel/tags "$i"
    # done
    Key $MODKEY-1
    wmiir xwrite /ctl view "web"
    Key $MODKEY-Shift-1
    wmiir xwrite /client/sel/tags "web"
    Key $MODKEY-2
    wmiir xwrite /ctl view "ctrl"
    Key $MODKEY-Shift-2
    wmiir xwrite /client/sel/tags "ctrl"
    Key $MODKEY-3
    wmiir xwrite /ctl view "stat"
    Key $MODKEY-Shift-3
    wmiir xwrite /client/sel/tags "stat"
    Key $MODKEY-4
    wmiir xwrite /ctl view "msg"
    Key $MODKEY-Shift-4
    wmiir xwrite /client/sel/tags "msg"
    Key $MODKEY-5
    wmiir xwrite /ctl view "img"
    Key $MODKEY-Shift-5
    wmiir xwrite /client/sel/tags "img"
    Key $MODKEY-6
    wmiir xwrite /ctl view "vid"
    Key $MODKEY-Shift-6
    wmiir xwrite /client/sel/tags "vid"
    Key $MODKEY-7
    wmiir xwrite /ctl view "misc"
    Key $MODKEY-Shift-7
    wmiir xwrite /client/sel/tags "misc"
    Key $MODKEY-8
    wmiir xwrite /ctl view "misc1"
    Key $MODKEY-Shift-8
    wmiir xwrite /client/sel/tags "misc1"
    Key $MODKEY-9
    wmiir xwrite /ctl view "misc2"
    Key $MODKEY-Shift-9
    wmiir xwrite /client/sel/tags "misc2"
    Key $MODKEY-0
    wmiir xwrite /ctl view "misc3"
    Key $MODKEY-Shift-0
    wmiir xwrite /client/sel/tags "misc3"
    wi_events events local_events
    # WM Configuration
    wmiir write /ctl <<!
    font $WMII_FONT
    focuscolors $WMII_FOCUSCOLORS
    normcolors $WMII_NORMCOLORS
    grabmod $MODKEY
    border 1
    # Misc
    progsfile="$(wmiir namespace)/.proglist"
    action status &
    wi_proglist $PATH >$progsfile &
    wmiir xwrite /ctl "colmode default"
    xsetroot -solid "$WMII_BACKGROUND" &
    # Autostart (this is ghetto, i know)
    echo -n view ctrl | wmiir write /ctl;urxvtc -e ssh 192.168.1.55 -p 228 &
    urxvtc -e ssh [email protected] -p 228 &
    sleep 1.5 && urxvtc &
    sleep 2 && wmiir xwrite /tag/sel/ctl send sel right &
    sleep 2.5 && echo -n view stat | wmiir write /ctl;urxvtc -e vifm &
    sleep 2.5 && urxvtc -e alsamixer &
    sleep 3 && urxvtc -e htop &
    sleep 3.5 && wmiir xwrite /tag/sel/ctl send sel left &
    sleep 4 && echo -n view msg | wmiir write /ctl;pidgin &
    sleep 3.5 && echo -n view web | wmiir write /ctl;wmiir xwrite /tag/sel/ctl colmode sel stack;uzbl-browser &
    # Setup Tag Bar
    IFS="$wi_newline"
    wmiir rm $(wmiir ls -p /lbar) >/dev/null
    seltag=$(wmiir read /tag/sel/ctl | sed 1q)
    unset IFS
    wi_tags | while read tag
    do
    if [ "$tag" = "$seltag" ]; then
    echo "$WMII_FOCUSCOLORS" "$tag"
    else
    echo "$WMII_NORMCOLORS" "$tag"
    fi | wmiir create "/lbar/$tag"
    done
    wi_eventloop
    Also I should mention this is wmii-hg. I like hg better then 3.9 because in 3.9 the columns are all screwed up.
    I.E I like fixed column sizes where the right column is always smaller then the left no matter which side you move the client to. (difficult to explain)
    Last edited by tjwoosta (2010-07-01 03:23:06)

    Mike,
    You were close. Split returns an array, not a string.
    // form1.page1.subform1.foo::exit - (JavaScript, client)
    var wordCnt = new Array();
    var str = this.rawValue;
    wordCnt = str.split(" ");
    xfa.host.messageBox("There are " + wordCnt.length + " words.");
    Steve

  • Simple focus magic script help please

    Dipping my toes for the first time - more code to learn - brain hurting.
    I've recorded a very simple script to run a basic sharpening step in focus magic before creating web galleries.   It works except it asks for a decision in focus magic which is a pain running 40-70 pictures through (200 in show jump season).
    the desired aim is each photo to be "out of focus" sharpening at 1 pixel @ 100% and what I have is as follows.  I think there may be a yes/no return step I want rid of and I'm hoping sorting this out will be a good first step in learning.  Thanks for any help
    REM =======================================================
    DIM objApp
    SET objApp = CreateObject("Photoshop.Application")
    REM Use dialog mode 3 for show no dialogs
    DIM dialogMode
    dialogMode = 3
    DIM idOpn
    idOpn = objApp.CharIDToTypeID( "Opn " )
        DIM desc1
        SET desc1 = CreateObject( "Photoshop.ActionDescriptor" )
        DIM idnull
        idnull = objApp.CharIDToTypeID( "null" )
        Call desc1.PutPath( idnull, "C:\\APRESSbox\\ExRaw2process\\0812GlensEX\\MagstoGO\\0812GlentoranWEB\\WK08008DS Glentoran.JPG" )
    Call objApp.ExecuteAction( idOpn, desc1, dialogMode )
    REM =======================================================
    DIM objApp
    SET objApp = CreateObject("Photoshop.Application")
    REM Use dialog mode 3 for show no dialogs
    DIM dialogMode
    dialogMode = 3
    DIM idFltr
    idFltr = objApp.CharIDToTypeID( "Fltr" )
        DIM desc2
        SET desc2 = CreateObject( "Photoshop.ActionDescriptor" )
        DIM idUsng
        idUsng = objApp.CharIDToTypeID( "Usng" )
        Call desc2.PutString( idUsng, "Fix Out-of-focus Blur" )
    Call objApp.ExecuteAction( idFltr, desc2, dialogMode )
    REM =======================================================
    DIM objApp
    SET objApp = CreateObject("Photoshop.Application")
    REM Use dialog mode 3 for show no dialogs
    DIM dialogMode
    dialogMode = 3
    DIM idCls
    idCls = objApp.CharIDToTypeID( "Cls " )
        DIM desc3
        SET desc3 = CreateObject( "Photoshop.ActionDescriptor" )
        DIM idSvng
        idSvng = objApp.CharIDToTypeID( "Svng" )
        DIM idYsN
        idYsN = objApp.CharIDToTypeID( "YsN " )
        DIM idN
        idN = objApp.CharIDToTypeID( "N   " )
        Call desc3.PutEnumerated( idSvng, idYsN, idN )
    Call objApp.ExecuteAction( idCls, desc3, dialogMode )

    The open and close steps you should be able to do using the DOM and not have to use scriptlistener.
    For the filter You might want to see if it can be recorded and played back as an action. If so then just calling that action would be an easy way to run the filter. If it can be recorded you may be able ( at least with javascript ) to make the executeAction call with dialogMode set to all and assign the results to a variable. That variable with contain an Action Descriptor. With most filters the setting you used in the filter dialog will be in that descriptor. You just need to pull the descriptor apart to find what the setting are. Or( again using javascript ) xtools has a script that will convert an action into javascript. It is mostly action manager( scriptlistener ) so you should be able to translate the output to VBS.

  • Action Script Help Please

    I am trying to figure out the proper verbage for this. If I
    want to have a button gotoAndPlay "home" but then immediately
    after, without stopping, gotoAndPlay something else, What is the
    code for that?
    I.E.:
    on (press) {
    gotoAndPlay ("home");
    [what do I put in next to make it go play something else
    without pausing?]
    Text
    Text

    You need to see that task with different eyes, as soon as the
    script reaches the gotoandplay line, the playhead will jump
    instantly to that location and you need to write the next jump on
    that home frame.
    Why don't you rather set a variable saying where it should go
    after home like:
    on(press){
    gotoAndPlay("home");
    var nextGoTo = xxx;
    and on your home frame you have an case statement runnning
    checking which variable you activated so it will jump directly to
    it.
    If you don't undestand what I mean with it, you can send me
    the fla file and I will show you how to create it.

  • Enabling rights is canceling scripting - help please!

    After some frustrating time I finally was able to get scripting to work on this last part of my form. I wanted a radio button (stand alone) and a text box. If the radio button was clicked, then the text box was no longer required. If the radio button was not clicked then the text box was required in order to submit.
    Here is the coding I am using (all java script):
    In the exit line of the PhotoOnlyEngraving field is:
    Engraving.validate.nullTest = "disabled";
    In the presubmit line of the Engraving field is:
    if (PhotoOnlyEngraving.rawValue == null || PhotoOnlyEngraving.rawValue == "")
    {Engraving.validate.nullTest = "disabled";
    else
    (Engraving.rawValue == null || Engraving.rawValue == "") { {
    app.alert("Please include details required for Engraving");
    xfa.host.setFocus("Engraving");
    Works great (accept the alert message) until you enable rights with the form. Then it ignores the script and forces you to add text in the engraving field when you have already clicked the PhotoOnly field. This is the only item that seems to be disabled in all the java script.
    Any help with this would be great! I'm really stuck trying to finish a form that is now 4 days past due.
    Thanks!
    Lezli

    thx

  • Need Scripting Help PLEASE

    Hi I have very little experience with UCCx and even less experience with scripts and I'm having a problem with my main_cs_001.aef script. I've attached the callflow for this scipt. Basically when I manually close my call center for let's say Inclement Weather, I dial the main number and enter an 8 which prompts me for a password, which in turn allows me to make a selection based on the reason I want to close the call center. The options are as follows
                        1. Techn outage
                        2.  Holidays
                        3.  Inclement Weather
                        4.  Emergency
                        0. Default Greeting    
    This is where the problem happens when I make choose an option in this case option 3. Callers hear what I want them to hear but I cannot reset to the default greeting the next day.  So the callers still hear the Inclement Weather greeting and no calls go thru. I've looked at the script  and discovered that an .xml file called aaprompt.xml holds the value of the choice made. If I edit aaprompt.xml and enter a value of 0, then callers are able to call in.  How can I make it such that the value of aaprompt.xml is set back to 0 after a certain time?  I was thinking a 24hr period would be a good time to have that reset. I've included the script, the flowchart, and the .xml file. Thank you in advance for any help you can provide.
    james

    Hi I have very little experience with UCCx and even less experience with scripts and I'm having a problem with my main_cs_001.aef script. I've attached the callflow for this scipt. Basically when I manually close my call center for let's say Inclement Weather, I dial the main number and enter an 8 which prompts me for a password, which in turn allows me to make a selection based on the reason I want to close the call center. The options are as follows
                        1. Techn outage
                        2.  Holidays
                        3.  Inclement Weather
                        4.  Emergency
                        0. Default Greeting    
    This is where the problem happens when I make choose an option in this case option 3. Callers hear what I want them to hear but I cannot reset to the default greeting the next day.  So the callers still hear the Inclement Weather greeting and no calls go thru. I've looked at the script  and discovered that an .xml file called aaprompt.xml holds the value of the choice made. If I edit aaprompt.xml and enter a value of 0, then callers are able to call in.  How can I make it such that the value of aaprompt.xml is set back to 0 after a certain time?  I was thinking a 24hr period would be a good time to have that reset. I've included the script, the flowchart, and the .xml file. Thank you in advance for any help you can provide.
    james

  • Check box script help please

    I'm going to give this one more try. I have been trying to get the script below to work to have a check box make a text field visable and hidden when it's checked and unchecked.
    if (checkbox.rawValue==1)
         textbox.presence="visable"
    else
         textbox.presence="hidden"
    I get errors "missing ) after condition
    1: at line 2"
    I really need some help, if someone could give me hand. Thanks

    Try this in the 'MouseUp' event for your checkbox:
    if (event.target.value=="Off") {
         this.getField("textbox.presence").display = display.hidden
    } else {
         this.getField("textbox.presence").display = display.visible

  • Need Table Script Help Please

    Is there a script to distribute table columns evenly between guides or margins? Here is the issue I am having. I have a big catalog and I need to take the price column out of every item but then i have to (shift-Drag) the table to get it to fill the space where the price column was.
    Thanks in advance for any help.

    Hello. Thank you for your reply. I don't think i asked me question clearly so for that I apologize but I have mage an image to illustrate what I am trying to do.
    1. This is that the table would look like before touching it
    2. This is the table after taking out the price column which is always the last column in all of the tables
    3. This is the table after evenly distributing the remaining column to fill the space where the price column was.
    I have a script that does step 2, now I just need one that will do step 3 if possible? Basically I have a script that deletes the last column in every table in a document but I need one to distribute the columns after taking out the price one.
    Thanks in advance for any help you can give me.

Maybe you are looking for

  • How to find out which documents have been indexed?

    Hi, How can we find out which documents have been indexed by intermedia - I get a lot of errors when i look in ctx_user_index_errors - but how can I relate or find which error row means which row or document in the table on which the index is created

  • Downloading DNG converter  - adobe site says page unavailable

    i have CS2 and am trying to convert my raw files to DNG. i was told to download this exe file and run it which will batch convert my files but i have tried the site several times but the "Adobe DNG Converter for Windows" button takes me to an unavail

  • Download older version of safari

    My company has a Bill Pay service which, as I understand was tested successfully with Safari 5.0.  The vendor who supplies it says that they support Safari 5.0, but we have a user with the latest version of Safari who cannot use the service.  He refu

  • Help manually making the theme changes offered by Classic Theme Restorer, which is currently buggy.

    I recently had problems with Classic Theme Restorer, the add-on suggested by Mozilla for restoring the classic theme to Firefox. It was causing problems with the tab bar, so I needed to disable it. I need some help reproducing the look and function t

  • Activating 0PUR_O01 DSO from Business Content

    Hi, Iam looking for more info around How to Activate the BC DSO 0PUR_O01. Iam planning on Activating 0PUR_O01(Purchaing Line Items) DSO from the Business Content. I read in help.sap that it sources data from 4 different Info Sources 2LIS_02_ITM: Purc