Putty solarized the manual way

10

6

I would like to use the solarized color scheme in PuTTY. The tricky part is I don't have administrator privileges in this machine. So I will have to manually change the default colors through Change Settings > Window > Colors.

I'm looking for a correspondence table with solarized RGB colors and PuTTY color names:

  • Default Foreground
  • Default Bold Foreground
  • Default Background
  • Default Bold Background
  • Cursor Text
  • Cursor Colour
  • ANSI Black
  • ANSI Black Bold
  • ANSI Red
  • ANSI Red Bold
  • ANSI Green
  • ANSI Green Bold
  • ANSI Yellow
  • ANSI Yellow Bold
  • ANSI Blue
  • ANSI Blue Bold
  • ANSI Magenta
  • ANSI Magenta Bold
  • ANSI Cyan
  • ANSI Cyan Bold
  • ANSI White
  • ANSI White Bold

I also accept any color scheme that is remotely better than PuTTY's default...

EDIT:

A saner way of doing this is to tick all the boxes in Settings -> Windows -> Colour and then, in the remote machine, add the line

export TERM=xterm-256color

or

export TERM=xterm

to ~/.bashrc and create the file ~\.Xresources with the Solarized color scheme.

dmvianna

Posted 2013-09-03T05:02:01.280

Reputation: 243

1You can write to the current user hive (HKCU) without administrative permissions. You just can't use the built-in regedit to do it, but the built-in reg (command-line) would work, as would many third-party editors. – Bob – 2014-01-12T22:11:22.947

Answers

15

Here you go:

  • Default Foreground: 131, 148, 150
  • Default Bold Foreground: 147, 161, 161
  • Default Background: 0, 43, 54
  • Default Bold Background: 7, 54, 66
  • Cursor Text: 0, 43, 54
  • Cursor Colour: 131, 148, 150
  • ANSI Black: 7, 54, 66
  • ANSI Black Bold: 0, 43, 54
  • ANSI Red: 220, 50, 47
  • ANSI Red Bold: 203, 75, 22
  • ANSI Green: 133, 153, 0
  • ANSI Green Bold: 88, 110, 117
  • ANSI Yellow: 181, 137, 0
  • ANSI Yellow Bold: 101, 123, 131
  • ANSI Blue: 38, 139, 210
  • ANSI Blue Bold: 131, 148, 150
  • ANSI Magenta: 211, 54, 130
  • ANSI Magenta Bold: 108, 113, 196
  • ANSI Cyan: 42, 161, 152
  • ANSI Cyan Bold: 147, 161, 161
  • ANSI White: 238, 232, 213
  • ANSI White Bold: 253, 246, 227

(N.B.: You can download a portable version of PuTTY that doesn't require admin privileges and stores its configuration in a local file instead of the registry. You can then edit those files with a text editor.)

Z.G.M.

Posted 2013-09-03T05:02:01.280

Reputation: 336

1Make sure you save the colors under Default Settings or any new sessions you save won't realize the colors – Ravindranath Akila – 2014-09-09T06:30:46.343

1With these settings the all BOLD colors are almost gray. So, I currently set all bold colors same as non-bold colors. Do we have any official fix from solarized for this? – Punit Soni – 2014-11-26T19:21:59.013

5

Portable Putty is the way to go... not just for the fact you don't need Admin, but just the convenience of being able to copy sessions and settings easily from one PC to another (I save mine on my NAS)

Anyway, I've typed in the colours into Portable Putty, and extracted the relevant part of the conf file for your pleasure. As Ravindranath Akila said in the comments above, make you you also save to the default profile.

Colour21\253,246,227\
Colour20\238,232,213\
Colour19\147,161,161\
Colour18\42,161,152\
Colour17\108,113,196\
Colour16\211,54,130\
Colour15\131,148,150\
Colour14\38,139,210\
Colour13\101,123,131\
Colour12\181,137,0\
Colour11\88,110,117\
Colour10\133,153,0\
Colour9\203,75,22\
Colour8\220,50,47\
Colour7\0,43,54\
Colour6\7,54,66\
Colour5\131,148,150\
Colour4\0,43,54\
Colour3\7,54,66\
Colour2\0,43,54\
Colour1\147,161,161\
Colour0\131,148,150\

Enjoy!

Greg Woods

Posted 2013-09-03T05:02:01.280

Reputation: 223

Downloaded portable putty, but I do not see any conf files... :/ – giorgio79 – 2018-11-05T11:19:41.123

0

Without administrative privileges, you can import a .reg file and apply it to your HKCU (which Bob alluded to above).

  1. In Windows, open a command prompt (cmd).
  2. Enter reg import <path\to\.reg\file>

With this solarized_dark.reg file, it created a session named "Solarized Dark," which I then applied to the default.

Trey Blancher

Posted 2013-09-03T05:02:01.280

Reputation: 1

Note that the Windows administrator may still restrict the use of reg, so this isn't guaranteed to work. – Trey Blancher – 2016-06-24T00:48:03.773

0

user250925

Posted 2013-09-03T05:02:01.280

Reputation: 11

Maybe not. I do not have administrator privileges, so I neither can install Putty Tray or change the Windows Registry. – dmvianna – 2013-09-03T22:51:52.917