Friday, March 5, 2021

Brighten ls output in bash

 I can't easily see the folder names returned by the 'ls' command in bash when running Ubuntu on Windows.  Here is the fix.

Edit ~/.bashrc

Append this line:

LS_COLORS="ow=01;36;40" && export LS_COLORS

Update 2023-07-15:

Not working as well as it did.  Here's a newer way:

LS_COLORS='rs=0:di=1;35:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:';

export LS_COLORS

 



Customize and brighten the fonts in the bash prompt in Ubuntu on Windows

I run Ubuntu on Windows.  The prompt is too dark for me to see.  Here is how to brighten the prompt.

Edit ~/.bashrc

Append the following line:

 

PS1='\e[37;1m\u@\h \e[35m\w/ \e[0m\$ '

 

\u = Username

\h = Hostname

\w = Working directory

 

So \u@\h: makes the prompt
 

<username>@<hostname>:

 \e[ = Start a color scheme

The part that follows is a color:  37;1m

The 37 is the color.

The 1 says to use a bright version.

m somehow designates the end of the color sequence (but I'm not exactly sure of that part).


I made some more changes to make my life easier.  I added some spaces to the prompt before and after the working directory so I could double-click the working directory path and get the path easily into my copy buffer.


How to turn off the bell in bash

The bell is terribly loud in Ubuntu on Windows.  Here is how to disable it:

Edit ~/.inputrc

Contents:

 

set bell-style none

 

Thursday, November 12, 2020

Saturday, June 27, 2020

Saturday, September 22, 2018

The Fridge - My Quiet PC Build

A friend asked for the specs of my quiet (not silent) PC.  I built this a couple years ago so I would expect that the prices have fallen.  The goal of this build was not to build the fastest PC nor to build the best bang-for-your-buck PC, but to build a rig that is (for the most part) silent during regular productivity work but still capable of blowing fans and polygons during a PC gaming session.  I named this PC "The Fridge" because the hulking case is black, obnoxiously large, and swings open from the front so that it looks like our refrigerator.

Short specs: Intel i7-6700K Skylake Quad Core 4.0 GHz / 16 GB RAM / 500 GB SSD / GeForce 1060


Detailed specifications follow.

Motherboard - 149.39 - Asus Z170-A ATX DDR4
CPU - 339.99 - Intel Core i7-6700K Skylake Quad Core 4.0 GHz LGA 1151 91W
CPU Accident Protection Plan - 19 - In case I screwed up the install
RAM - 82.99 - Crucial 16GB (2 x 8GB) 288-Pin DDR4 SDRAM DDR4 2133 (PC4 1700)
Video Card - 459.99 - EVGA GeForce GTX 1070 HYBRID GAMING 08G-P4-6178-KR, 8GB GDDR5, LED All-In-One Watercooling DX12 OSD Support (PXOC)
Graphics card radiator fan - $38.90 - Noctua NF-F12 industrialPPC-2000 PWM 120mm 2000RPM Case Fan
Sound Card - 0 - On board
Networking - 44.99 - Intel 7260HMWDTX1 PCIe x1 Dual Band Wireless-AC 7260 for Desktop
Hard Drive - 137.99 - Samsung 850 EVO - 500 GB - M.2 SATA III Internal SSD (MZ-N5E500BW)
CD/DVD - 0 - External from Mac Mini
Case - 79.99 - Fractal Design Define R5 Titanium Silent ATX Midtower Computer Case
Power Supply - 149.99 - EVGA SuperNOVA 850 P2 220-P2-0850-X1 80+ PLATINUM 850W Fully Modular EVGA ECO Mode Includes FREE Power On Self Tester
CPU Cooling - 59.99 - Noctua NH-U12S 120x120x25 NF-F12 PWM) SSO2-Bearing (Self-stabilizing oil-pressure bearing) CPU Cooler
Additional Cooling - 5.99 - Arctic MX-2 (4g) Carbon-Based Thermal Compound, Non-Electricity Conductive, Non-Capacitive
OS - 129.99 - Windows 10 Home - Full Version (32 & 64 bit) / USB Flash Drive
Case fans - $52.44  - (2) Noctua NF-A14 PWM 140mm Case Fans

Removed the EVGA GeForce GTX 1070 Hybrid graphics card.  Too loud.
Found a video card that reportedly does run fans until 60 degrees C: Asus Strix Gaming GeForce GTX 1060.
1070 or 1080 would be faster but also more expensive.

Other lessons learned:
The M.2 hard drive blocks my only eSATA port.  If I want to use eSATA, I must either get a different motherboard or move to a slower SSD hard drive.
Or maybe I could add an expansion card that opens up eSATA options. This might be a better option - cheaper?

Update 2023-07-15:

Added 4TB SATA 2.5" SSD Samsung 870 EVO

Really nice that EVGA power supply came with power cable and Asus motherboard came with data cable.  Long-lasting impression: when you buy good (and probably more expensive) parts, you have an easier life long-term.