Gnu Screen theme cycle with keybinding

A guy at work did this and shared with me, so i thought I'd continue spreadin the love.    If you have multiple gnu screen sessions going at once, wouldn't it be nice to visually tell them apart without spending time to read the session name of each or trying to see what was going on within each?   
The best way would be to color code the caption and hardlinestatus lines and be able to easily select a "color" per screen session and that's what he and I did.  Using C-g, we/you can easily cycle through various "themes".   This could also be useful if you wanted to cycle through mutiple hardstatus lines that displayed different information too if that's the route you'd like to go.   Anyways here it goes:
#terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# erase background with current bg color
defbce "on"
startup_message off
bindkey ^G screen screen_theme.sh
caption always "%{= KW}%-w%{= gW}%n %t%{-}%+w %-="
hardstatus alwayslastline "%{= kW} %-= %{= kG}Session:%u%{= kW} %5` | %{= kG}Host:%{= kW} %H | %{= kG} MEM:%{= kW} %2`MB |%{= kG} SW: %{= kW}%3`MB | %{= kG}Unread: %{= kW} %4` | %m/%d %C %A"
vbell off
#Backticks to display information in status bar
backtick 1 60 60 $HOME/bin/get_uptime
backtick 2 60 60 $HOME/bin/get_freemem
backtick 3 60 60 $HOME/bin/get_freeswap
backtick 4 60 60 $HOME/bin/get_gmail
backtick 5 60 60 $HOME/bin/get_sessionname
defscrollback 5000
screen -t root 0 sudo -s
screen -t shell 1 bash
screen -t shell 2 bash
screen -t shell 3 bash 
screen -t shell 4 bash
screen -t shell 5 bash   
screen -t shell 6  bash 
screen -t shell 7  bash 
screen -M  -t irc 8 irssi
screen -t home 9 ssh home
select 1
This script resides in ~/bin which is in my path.  screen_theme.sh:
#!/bin/bash
INDEXFILE="$HOME/bin/themes/theme_index"
# if this is the first time then set
# the index to 0
if [[ ! -e $INDEXFILE ]]
then
echo 0 > $INDEXFILE
fi
THEMENO=`cat $INDEXFILE`
THEMEMAX=5
if [[ $THEMENO -eq $THEMEMAX ]]
then
THEMENO=0
else
THEMENO=`expr $THEMENO + 1`
fi
echo $THEMENO > $INDEXFILE
THEMEFILE=$HOME/bin/themes/theme${THEMENO}
if [[ -e $THEMEFILE ]]
then
bash $THEMEFILE $STY
else
# reset the index back to zero if broken
echo 0 > $INDEXFILE
fi
then I created a directory ~/bin/themes.  Within that directory I have the following files:
$ ls themes/
theme0 theme1 theme2 theme3 theme4 theme5 theme_index
Each theme file is another color theme, the index just holds a count of the number of themes.
An example of theme0  ( remember when doing yours to escape your backticks, otherwise it'll break).
#!/bin/bash
# yellow
SESSION=$1
screen -S $SESSION -X caption always "%{= KW}%-w%{= yk}%n %t%{-}%+w %-="
screen -S $SESSION -X hardstatus alwayslastline "%{= kW} %-= %{= ky}Session: %u%{= kW}%5\` | %{= ky}Host:%{= kW} %H | %{= ky} MEM:%{= kW} %2\`MB |%{= ky} SW: %{= kW}%3\`MB | %{= ky}Unread: %{= kW}%4\` | %m/%d %c"
Here's how my screen started:
http://tuxtraining.com/images/screen1.png
After C-g
http://tuxtraining.com/images/screen2.png
After C-g again
http://tuxtraining.com/images/screen3.png
and so on.
Last edited by scv5 (2009-10-12 16:38:51)

thayer wrote:
steve___ wrote:
Lich wrote:... useless for most of us as we only use one screen session normally.
How do you know this?
Just a guess, but doesn't that sort of defeat the purpose of a multiplexer?  I mean it's like running 20 instances of firefox instead of using a single firefox window with 20 tabs.  I'm sure some folks prefer the former, but I think it's safe to say the majority use the latter method.
Sort of, I find screen becomes difficult to manage once we're talking more than the original 0-9 windows and you have to C-a-##, there's also the issue of screenspace.  With firefox i can list my tabs vertically giving me a lot more room to manage my tabs, screen doesn't have that option, so they go horizontally.    If i name all my tabs after the IP or name of the machine theiy are logged into, approach 15-20 windows really creaps on the screenspace.
So typically what i do is have four shells open (grouped together or done in something like terminotor, or tabbed in flux or pekwm) each with 0-9 shells a piece, each session organized into type of servers.   So the upper left may be the email systems i support, the uppser right screen session may hold all the shell of our public facing web environment, bottom left is my local box, bottom right being misc boxes (dns servers, nis/ldap servers, various developement boxes..)  you get the hint.
take into consideration i get one of these going per monitor that gives me approximately 80 shells, which is quite unmanagable in one screen session if you ask me.

Similar Messages

  • My Macbook is stuck at the loading screen (the apple with the spinning circle beneath it). I went to Best Buy, they told me to call Apple Help and ask them to restore my unit. But Apple help wont help me without charging me. Help please !!

    My Macbook Pro is stuck at the loading screen (the apple with the spinning circle underneath). I went to Best Buy to get help, and they told me to call Apple Help and ask them to 'restore my unit', which he said is a matter of only about 4 mouse clicks. If it was so easy, I didn't understand why he couldn't do it for me. But he said that even though I have a 3 year warranty and protection plan with them, they were not responsible for this type of problem. Whatever.
    Anyway, so I called Apple Help, and even though he was familiar with my problem, it's been more than 90 days since I purchased the laptop, therefore I'd have to set up a service agreement to get his assistance, meaning I'd have to PAY him. So now i'm stuck, and I'm just hoping somebody knows what to do to help me
    I don't have any disc that I apparently need, and I don't remember ever getting one. However, if there is some other way to fix this issue, please let me know. Thanks for your time and assistance
    Brenna

    HI, have you blown the dust out lately?
    Does it boot better/further if allowed to cool?
    If you're sure the RAM is good, try the Hair Dryer trick...
    http://discussions.apple.com/message.jspa?messageID=13240047#13240047
    https://discussions.apple.com/message/15223603#15223603
    https://discussions.apple.com/message/15499912#15499912
    https://discussions.apple.com/message/15613068#15613068
    https://discussions.apple.com/thread/3270112
    https://discussions.apple.com/message/16053892#16053892
    No power light at all...
    https://discussions.apple.com/thread/3692775?tstart=0
    It can show on any G5, and even many other computers & electronic devices of the period.
    http://www.macintouch.com/reliability/pmg5.html
    http://lowendmac.com/ppc/power-macintosh-g5.html
    And see this last one in particular...
    https://discussions.apple.com/message/16781690#16781690
    Heat gun better...
    https://discussions.apple.com/thread/3916312?tstart=0
    If we don't get more help or answers here, feel free to join my site & ask...
    http://x704.net/bbs

  • Urxvt, xterm, vim, and gnu screen.

    To make this simple: all i want is 256 color support in one terminal, that will give 256 color support in vim, gnu screen, and not screw up shells i ssh into.    If I could get this working in xterm alone consider this solved.
    The more I try to fix my problem it seems the more complicated it gets.  What I want, I thought was simple:
    Now xterm seems to be the most workable solution, I guess I can give up on having clickable links, so that can go on the back burner.  But these are the problems i'm having.
    Here's the problem point by point:
    Urxvt
    $ echo $TERM
    xterm-256color
    Urxvt will run a perl script I have to display 256 colors.  Except is does not show the grayscale ramp shown here:
    VIM in urxvt does NOT show any colors.  It's all white text.
    This is my .vimrc
    $ cat .vimrc
    syntax on
    set ignorecase
    set smartcase
    set incsearch
    set hlsearch
    let g:netrw_http_cmd = "wget -q -O"
    if &t_Co == 256
    colorscheme xoria256
    else
    colorscheme desert
    endif
    in urxvt Gnu Screen
    echo $TERM
    screen-256color-bce
    the perl script does not display 256 colors like it should.
    vim in urxvt in screen again, does not show any colors. all white text.
    Xterm
    echo $TERM
    xterm
    Xterm displays the full 256 colors from the script including the grayscale ramp.
    vim in xterm displays the desert theme (i would prefer it default to the xoria256, no idea why the 256 color script works but vim doesn't see xterm as a 256 capable terminal).
    in xterm, Gnu Screen
    echo $TERM
    screen-256color-bce   ( I do not see in any file where this option is defined)
    Xterm with Gnu Screen displays the full 256 colors from the script including the grayscale ramp.
    Vim in Gnu Screen in Xterm displays 256 colors properly.
    Here is my .screenrc
    #terminfo and termcap for nice 256 color terminal
    # allow bold colors - necessary for some reason
    attrcolor b ".I"
    # tell screen how to set colors. AB = background, AF=foreground
    termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
    # erase background with current bg color
    defbce "on"
    #term xterm-256color
    term screen-256color
    startup_message off
    caption always "%{= KW}%-w%{= gW}%n %t%{-}%+w %-="
    hardstatus alwayslastline "%{= kW} %-= %{= kC}Session:%u%{= kW} %5` | %{= kC}Host:%{= kW} %H | %1` |%{= kC} MEM:%{= kW} %2`MB /%{= kC} SW: %{= kW}%3`MB | %4` %{= kR}Unread %{= kW}| %m/%d %c"
    vbell off
    #Backticks to display information in status bar
    backtick 1 60 60 /home/username/bin/get_uptime
    backtick 2 60 60 /home/username/bin/get_freemem
    backtick 3 60 60 /home/username/bin/get_freeswap
    backtick 4 60 60 /home/username/bin/get_gmail
    backtick 5 60 60 /home/username/bin/get_sessionname
    defscrollback 5000
    screen -t root 0 sudo -s
    screen -t shell 1 bash
    screen -t shell 2 bash
    screen -t shell 3 bash
    screen -t shell 4 bash
    screen -t shell 5 bash
    screen -t shell 6 bash
    screen -t shell 7 bash
    screen -t irc 8 irssi
    screen -t home 9 bash
    select 1
    here is my .Xdefaults
    !XTerm*font: -*-terminal-*-*-*-*-14-*-*-*-*-*-*-
    XTerm*font: xft:DejaVu Sans Mono:size=8
    xterm*faceName: Mono
    xterm*faceSize: 8
    XTerm*background: #191919
    XTerm*foreground: white
    XTerm*pointerColor: white
    XTerm*pointerColorBackground: black
    XTerm*cursorColor: white
    !XTerm*internalBorder: 3
    XTerm*loginShell: true
    XTerm*scrollBar: false
    XTerm*scrollKey: true
    XTerm*saveLines: 1000
    XTerm*multiClickTime: 250
    XTerm*boldColors: false
    xterm*title: xterm
    xterm*geometry: 160x25
    ! Black
    XTerm*color0: #262626
    XTerm*color8: #252525
    ! Red
    XTerm*color1: #C12121
    XTerm*color9: #E50E0E
    ! Green
    XTerm*color2: #597b20
    XTerm*color10: #89b83f
    ! Yellow
    XTerm*color3: #Ded838
    XTerm*color11: #efef60
    ! Blue
    XTerm*color4: #265997
    XTerm*color12: #3F6FD0
    ! Magenta
    XTerm*color5: #706c9a
    XTerm*color13: #826ab1
    ! Cyan
    XTerm*color6: #69a2b0
    XTerm*color14: #a1cdcd
    ! White
    XTerm*color7: #BBBBBB
    XTerm*color15: #EEEEEF
    URxvt*termName: xterm-256color
    URxvt*urlLauncher: /usr/bin/firefox
    URxvt.matcher.pattern.1: \\bwww\\.[\\w-]\\.[\\w./?&@#-]*[\\w/-]
    URxvt.matcher.button: 2
    URxvt.perl-ext-common: default,matcher
    URxvt*saveLines: 4000
    URxvt*background: #191919
    URxvt*secondaryScroll: true
    URxvt*scrollBar: false
    URxvt*geometry: 150x25
    URxvt.font: xft:DejaVu Sans Mono:size=8
    URxvt.xftAntialias: true
    URxvt*foreground: white
    URxvt*pointerColor: white
    URxvt*pointerColorBackground: black
    URxvt*cursorColor: white
    !URxvt*inheritPixmap: True
    !URxvt*shading: 90
    !URxvt*tintColor: #999
    URxvt*keysym.Home: \033[1~
    URxvt*keysym.End: \033[4~
    ! Black
    URxvt*color0: #262626
    URxvt*color8: #252525
    ! Red
    URxvt*color1: #C12121
    URxvt*color9: #E50E0E
    ! Green
    URxvt*color2: #597b20
    URxvt*color10: #89b83f
    ! Yellow
    URxvt*color3: #Ded838
    URxvt*color11: #efef60
    ! Blue
    URxvt*color4: #265997
    URxvt*color12: #3F6FD0
    ! Magenta
    URxvt*color5: #706c9a
    URxvt*color13: #826ab1
    ! Cyan
    URxvt*color6: #69a2b0
    URxvt*color14: #a1cdcd
    ! White
    URxvt*color7: #BBBBBB
    URxvt*color15: #EEEEEF
    To Fix In Xterm
    -Get Vim to display 256 colors without Gnu Screen
    To Fix In Urxvt
    -Get vim to display any color, but preferably 256 colors in urxvt and urxvt with Gnu Screen.  (and yes, it's a 256 capable urxvt)
    -Get shells i SSH into to recognize the reported term variable
    To Fix In Gnu Screen
    -Make it stop reporting the term variable as screen-256color-bce without losing 256 color support as this screws up shells i ssh to.
    any help would be greatly appreciated.  I feel like a dog chasing its tail b/c when I find a fix to one problem, I end up creating 1-2 more.
    Last edited by scv5 (2009-07-31 14:11:31)

    I had similar but different issues regarding this.  Now, i have 256 color support in whatever terminal/ssh/screen session I'm in.
    The relevant config lines:
    .Xdefaults:
    XTerm*termName: xterm-256color
    URxvt*termName: rxvt-256color
    .vimrc
    " 256 colors only if you can handle it
    if $TERM =~ "-256color"
    set t_Co=256
    colorscheme zenburn
    endif
    .screenrc
    # term
    term xterm-256color
    # main options
    altscreen on
    attrcolor b ".I"
    defbce "on"
    # some termcaps
    termcapinfo xterm-256color 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
    termcapinfo rxvt-256color 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
    note: this setup caused an issue where background colors in mutt/htop inside screen did not extend passed the line's text.  i had to solve that via this workaround.
    Last edited by brisbin33 (2009-07-31 21:28:55)

  • At log-in Firefox stated that it was having a problem closing tabs and directed me to click a tab to continue, which I did, and sexually explicit images appeared on the screen and when I tried to close the screen, another screen popped up with additional

    At log-in Firefox the screen opened up with the message "Oops, We're embarrassed, we are having trouble closing tabs" or similar wording directing me to click on a tab to continue, which I did. At which time a screen full of rows of thumbnail pictures of a young girl in appeared on the screen. Some of the pictures had the girl imitating a sexual act. When I tried to close out of the screen by clicking on the 'X' at the top right of the screen, another screen opened with another larger picture of this little girl. I finally got out of Firefox. When I open it up again the message wasn't on the screen. As these pictures were disturbing I cleared them out of my history.
    My questions are - 1. Since these pictures appeared to be of a minor, can you backtrack to the source to find out where they originated and have something done about the individual who posted them? And,
    2. - Did my clicking on the link as directed - by Firefox, I thought - open my computer up to the personal information on my computer being compromised?
    == This happened ==
    Just once or twice
    == Around 11:30 on Sat June 19th

    It looks like you have some malware.
    Have you tried running an antivirus scan?
    Some free antivirus options:
    [http://www.avast.com/eng/programs.html]
    [http://www.avira.com/en/download/index.html]
    Malware program recommendations:
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php]
    SuperAntispyware - [http://www.superantispyware.com/]
    AdAware - [http://www.lavasoftusa.com/software/adaware/]
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html]
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help:
    [http://www.spywarewarrior.com/index.php]
    [http://forum.aumha.org/]
    [http://www.spywareinfoforum.com/]

  • Why carnt i download my purchased books? a screen comes up with u can download purchases on this devise every 90 days

    a friend downloaded some books on my ipad from her computer since then i have purchased books from the itune store and downloaded
    them to my ipad, but they wont open, a screen comes up with thisthis device is already associated with an apple id on this device with just one apple id every 90 days. Can someone please tell me what this means as im not very tech savy. would appreciate any help

    Associating iPad to your Apple ID.
    http://support.apple.com/kb/ht4627

  • My IPad screen is frozen with a message stating that the IPad has not been backed up to the ICloud for 7 weeks, this is not correct.I cannot get the messageto clear and cannot access any of the other icons; is there an emergency reboot process?

    My IPad screen is frozen with a message stating that the IPad has not been backed up to the ICloud for 7 weeks, this is not correct. I cannot get the messageto clear and cannot access any of the other icons; is there an emergency reboot process?

    Have you tried resetting your iPad?
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10-15 seconds).
    No data will be lost.

  • Order to cash flow cycle with navigation

    hi everybody
    please can anyone of u guys help me to make me understand the order to cash cycle with navigation and preferably screen shots my e mail is. [email protected]
    i will be thankful for the help offered
    regards

    Dear Ragav Velichetti,
    Can you please also help me with the presentation. My mail id is [email protected]
    Thanks a lot.
    regards,
    umamaheshwaran

  • My printer officejet pro 8500A plus won't go into power or screen saver mode with XP Prof/

    why doesn't my printer officejet pro 8500A plus go into power save or screen saver mode with windows XP Professional?
    I have updated the firmware, i've put the printer through a power cycle, I did a semifull reset. I checked the boxes to on for power save and screensaver. Yet my printer runs through the product tour all day long

    the only place I can find to enable power and screen savings is on the printer LCD itself. Is there somewhere else to look for this option? I look at printer HP on windows go to properties and there is no way to enable power saver mode.

  • White screen of death with clicking sound?

    i got a White screen of death with clicking sound after crashing in boot camp with winXP, i try to put in the macbook installed disc, but nothing happened & i cannot reject the CD, is it the hard drive problem & how can i fix it? do i have to replace the hard drive....

    It appears that Apple knows about the problem now: http://venturebeat.com/2010/11/04/apple-admits-to-macbook-air-screen-problems-in ternally-software-fix-coming/
    The only problem is that I ended up buying a new Macbook Air and Apple is taking back my other one. The wanted me to send it in and have them replace it, but it's my only computer and I can't be without it for a week. It would suck if they come up with a software fix and replacing it was not necessary.
    Support was very helpful and worked with me for a few days trying to isolate the issue. I don't get the horizontal lines (I get a solid grey, white, black or blue screen), so I am not sure if my issue is the same as the one that Apple is recognizing.

  • GNU Screen mouse scrolling shows only empty lines

    Hi,
    I've got a problem with using my mouse wheel to scroll in GNU Screen.
    This is the content of my .screenrc:
    defscrollback 10000
    hardstatus off
    termcapinfo xterm* ti@:te@
    altscreen on
    With this settings, It kinda works: I can scroll up, but instead of showing the previous output, I just shows blank lines.
    I can actually scroll up by entering Screen's copy mode using CTRL-A ESC and then using the Arrow-keys or PageUp.
    Furthermore, if I then scroll with my mouse wheel, I can also scroll the lines that were displayed in copy mode, but if I try to scroll further than I scrolled in copy mode, I still see blank lines.
    Thanks in advance!

    hume's doona wrote:
    Are you configuring for the nvidia card?
    #sudo nvidia-settings
    and set it to twin view in the gui?
    No I think the problem is more basic than that...he's trying to use an ATi card and an Nvidia card simultaneously.  Something that I don't think will work.
    It also dependent on what drivers he is trying to use, as the (new) Nvidia proprietary driver only supports GeForce4 series chips and up...and the OP has an even older card than that.  The legacy Nvidia-96.xx driver does support his chipset, but 96.xx does not work with Xorg1.8 last I knew. see: http://www.archlinux.org/news/502/
    Twinview does not exist in the Nouveau drivers, so one has to use xrandr: http://wiki.archlinux.org/index.php/Nouveau
    Last edited by Skripka (2010-08-14 14:16:25)

  • GNU Screen prints back garbage?

    So. I've noticed an odd thing happening. Eventually, while running GNU Screen, lynx will start spitting out garbage characters at me. It usually starts with lynx, and then spreads to my other programs. http://homepage.mac.com/jamesebailey/screen_garbage.png is a picture of irssi with the garbage. I've only just started using screen, and I don't have the problem when I log in remotely, but only on my local login. I guess I could just SSH into my home computer while sitting in front of it, but that just seems silly, and there's got to be an explanation and solution for this, other than just working around it.
    Maybe not.

    Yeah, I know a couple of ways of getting it to do that, unfortunately, I've done none. Usually, I just switch back to a screen and see garbage. Moments later, all of my screens have garbage. Usually quitting the program and then quitting terminal gets rid of it, I'm just wondering if anyone knows what causes it and how to prevent it.

  • Hey! I don't know if my MacBook Air is frozen, but the screen is gray with the apple logo and an icon below turning round and round as if it's opening, but has been like that for a few days. I've switched it off and then on again several times, still the

    Hey
    I don't know if my mac book air is frozen, but the screen is gray with the apple logo in the middle of the gray screen, with the 'booting' icon turning round and round. I have switched it off fron both the power and power button on the computer, it goes off, when I put it on, same screen comes on again. Help Please!

    Take each of these steps that you haven't already tried. Stop when the problem is resolved.
    Step 1
    The first step in dealing with a boot failure is to secure your data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since your last backup, you can skip this step.   
    There are several ways to back up a Mac that is unable to boot. You need an external hard drive to hold the backup data.
         a. Boot into the Recovery partition, or from a local Time Machine backup volume (option key at startup.) When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.”
    b. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, boot the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    c. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    Sometimes a boot failure can be resolved by resetting the NVRAM.
    Step 3
    If you use a wireless keyboard, trackpad, or mouse, replace or recharge the batteries. The battery level shown in the Bluetooth menu item may not be accurate.
    Step 4
    If there's a built-in optical drive, a disc may be stuck in it. Follow these instructions to eject it.
    Step 5
    Press and hold the power button until the power shuts off. Disconnect all wired peripherals except those needed to boot, and remove all aftermarket expansion cards. Use a different keyboard and/or mouse, if those devices are wired. If you can boot now, one of the devices you disconnected, or a combination of them, is causing the problem. Finding out which one is a process of elimination.
    If you've booted from an external storage device, make sure that your internal boot volume is selected in the Startup Disk pane of System Preferences.
    Step 6
    Boot in safe mode. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    When you boot in safe mode, it's normal to see a dark gray progress bar on a light gray background. If the progress bar gets stuck for more than a few minutes, or if the system shuts down automatically while the progress bar is displayed, your boot volume is corrupt and the drive is probably malfunctioning. In that case, go to Step 6.
    If you can boot and log in now, empty the Trash, and then open the Finder Info window on your boot volume ("Macintosh HD," unless you gave it a different name.) Check that you have at least 9 GB of available space, as shown in the window. If you don't, copy as many files as necessary to another volume (not another folder on the same volume) and delete the originals. Deletion isn't complete until you empty the Trash again. Do this until the available space is more than 9 GB. Then reboot as usual (i.e., not in safe mode.)
    If the boot process hangs again, the problem is likely caused by a third-party system modification that you installed. Post for further instructions.
    Step 7
    Launch Disk Utility in Recovery mode (see Step 1.) Select your startup volume, then run Repair Disk. If any problems are found, repeat until clear. If Disk Utility reports that the volume can't be repaired, the drive has malfunctioned and should be replaced. You might choose to tolerate one such malfunction in the life of the drive. In that case, erase the volume and restore from a backup. If the same thing ever happens again, replace the drive immediately.
    This is one of the rare situations in which you should also run Repair Permissions, ignoring the false warnings it may produce. Look for the line "Permissions repair complete" at the end of the output. Then reboot as usual.
    Step 8
    Reinstall the OS. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade.
    Step 9
    Repeat Step 6, but this time erase the boot volume in Disk Utility before installing. The system should automatically reboot into the Setup Assistant. Follow the prompts to transfer your data from a Time Machine or other backup.
    Step 10
    This step applies only to older Macs (not current models) that have a logic-board ("PRAM") battery. Both desktop and portable Macs used to have such a battery. The logic-board battery, if there is one, is separate from the main battery of a portable. A dead logic-board battery can cause a boot failure. Typically the failure will be preceded by loss of the settings for the startup disk and system clock. See the user manual for replacement instructions. You may have to take the machine to a service provider to have the battery replaced.
    Step 11
    If you get this far, you're probably dealing with a hardware fault. Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.

  • Dreamweaver CS5 will not open. It shows the splash screen and terminates with non admin login

    Dreamweaver CS5 will not open. It shows the splash screen and terminates with non admin login but works fine with admin login.
    OS - WinXP Sp3
    Things I tried.
    1) Gave full rights on dreamweaver folder in program files.
    2) Disabled welcome screen
    3) Updated to Dreamweaver CS5 11.0.4
    4) Reinstalled
    5) Formated PC
    But issue persists, please help.

    Have you tried deleting or renaming the Dreamweaver configuration file?
    See http://forums.adobe.com/thread/494811
    This can solve many problems and create one in that any snippets that are installed are lost, but you can get them back. Instead of deleting the config file, just name it config.old. When your system is working, just copy the snippets from the .old file to the new one.

  • Just updated my Ipad operating system and one of my apps starts but then the screen turns white, with only the advertisment at the top showing

    Just updated my Ipad operating system and one of my apps starts but then the screen turns white, with only the advertisment at the top showing

    The normal suggestions.
    Close the app,off fully.  Double tap the home screen then touch and hold any of the icons on the task bar until they jiggle, then close them all off by touching the - sign.
    Then reboot the pad and try the spp again.  If same issue, delete the app, then reload it.  ( no charge). You may just have a bad copy.  If continues, write to the developer, they may need to do an update.  I have an older version of the same app and it works fine.
    Since yours is the ad supported version, they are maing real sure you see the ad.  Is it as simple as you need to click thru the ad to get to the game?

  • Using "Window" (Super_L) key as escape in GNU Screen

    I've been trying to map the Windows key (to the left of the space bar) to be the escape key in GNU Screen (as opposed to ^A) with no luck. xev gives me that it generates keycode 133 and its keysym is "Super_L" so its definitely recognized by the system, but I don't know what I can write in my .screenrc to be able to use it as an escape key. I've tried googling how to do it, but the solution another person found didn't work for me (use xmodmap to map keycode 133 to something else - like F13, and then get the literal value in vim by pressing ctrl+v and the key (it generated ^[[3~ or something similar) and then putting that in the .screenrc file).
    Has anyone else solved this?

    I believe you can use the xmodmap method, although it may cause you some problems.  Try this:
    $ xmodmap -e "keycode 133 = F19"
    then put the following line in your .screenrc:
    bindkey -k F9 command
    Note the difference between using 'F19' for xmodmap and using 'F9' in the bindkey command.  This is due to bindkey using the termcap database for specifing keys.  The main problem here, as far as I can tell, is that the termcap database doesn't have any notion of the "Super_L" or "Super_R" keys, thus you have to do this strange xmodmap assignment of keycode 133 to some key that bindkey can recognize.  This will work even if your keyboard doesn't have an F19 key as my example shows.  Of course, you don't have to use function key F19; you can use any key on your keyboard.  The important thing to remember is that the bindkey command in your .screenrc file uses the termcap database (see man termcap) to determine what key to use, and the xmodmap command uses some other mechanism. You have to understand how to specify the keys for each case.
    Other possibilities:
    xmodmap -e "keycode 133 =  F1"  <==>  bindkey -k k1 command
    xmodmap -e "keycode 133 =  F2"  <==>  bindkey -k k2 command
    xmodmap -e "keycode 133 =  F3"  <==>  bindkey -k k3 command
    xmodmap -e "keycode 133 =  F9"  <==>  bindkey -k k9 command
    xmodmap -e "keycode 133 = F10"  <==>  bindkey -k k; command
    xmodmap -e "keycode 133 = F11"  <==>  bindkey -k F1 command
    etc.
    This could cause a problem if some other application you use (like your window manager or desktop environment) uses 'Super_L' for something.  I really don't understand exactly how all this works so I don't know how you could fix a conflict like that.
    Finally, when you remap 'keycode 133' to some other key, then pressing that key will now generate some character. Pressing the windows key when not in screen, at least on my system, caused a '~' to be printed.  I don't know how you would get rid of this.

Maybe you are looking for