Wednesday, December 18, 2019

OpenBSD Configs

My configs, or dot files, as the cool kids call them, from the OpenBSD setup I've made last week.

My .profile file:

## ----------------------------------------------
## $HOME/.profile from Thinkpad T60 - OpenBSD 6.6
## ----------------------------------------------

# $OpenBSD: dot.profile,v 1.5 2018/02/02 02:29:54 yasuoka Exp $
#
# sh/ksh initialization

PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:\
/usr/local/sbin:/usr/games
export PATH HOME TERM

## --------------------------------

ENV="$HOME/.kshrc" export ENV

## --------------------------------

## EoF ##


The K Shell config file:

## --------------------------------------------
## $HOME/.kshrc from Thinkpad T60 - OpenBSD 6.6
## --------------------------------------------

alias df='df -h'
alias du='du -sh'
alias j='jobs -l'
alias lsa='ls -lasht'

export VISUAL=mg
export EDITOR=$VISUAL
export PAGER=less
HISTSIZE=500
HISTFILE="$HOME/.ksh_history"
HISTEDIT=$EDITOR

set -o ignoreeof
set -o emacs

# Put the current directory and history number in the prompt
PS1='$_pwd [!]\$ '

## EoF ##

The Micro Emacs clone that ships with the Base install:
## --------------------------------------------
## $HOME/.mg from Thinkpad T60 - OpenBSD 6.6
## --------------------------------------------

## Create dir $HOME/.mg.d to store backups in one place
## Repeat this for root user
backup-to-home-directory

## EoF ##

The xsession file:

## -----------------------------------------------
## $HOME/.xsession from Thinkpad T60 - OpenBSD 6.6
## -----------------------------------------------

export ENV=$HOME/.kshrc

## Load X Window configurations
/usr/X11R6/bin/xrdb $HOME/.Xresources

## Sets the "wallpaper" as plain vanilla grey
## xsetroot -solid grey &

## Sets the "wallpaper" as a grey/ black/ white twatch
## xsetroot -gray &

xsetroot -cursor_name left_prt &
xclock -geometry 230x20-0-0 -fn 9x15 -strftime "%A %d %b %Y %H:%M" &

###################
## Window Managers:
###################

## Calm Window Manager
exec cwm

## Tab Window Manager
## twm

########
## XFCE:
########
## exec ck-launch-session startxfce4

## EoF ##

The Calm Window Manager config file, I picked this one from the internet, as it tries to mimics the way i3 works, specifically, its keyboard shortcuts: 

## --------------------------------------------
## $HOME/.cwmrc from Thinkpad T60 - OpenBSD 6.6
## --------------------------------------------

fontname "Ubuntu Mono:pixelsize=14"
gap 0 0 24 0
snapdist 4
moveamount 5
color activeborder "#4c7899"
color inactiveborder "#333333"
borderwidth 2

sticky yes

unbind-key all

bind-key CS4-q quit
bind-key CMS-r restart

bind-key 4-Return terminal
bind-key 4S-semicolon lock
bind-key 4S-Return window-hide
bind-key 4S-n window-menu-label
bind-key 4S-q window-delete

bind-key 4-1 group-only-1
bind-key 4-2 group-only-2
bind-key 4-3 group-only-3
bind-key 4-4 group-only-4
bind-key 4-5 group-only-5
bind-key 4-6 group-only-6
bind-key 4-7 group-only-7
bind-key 4-8 group-only-8
bind-key 4-9 group-only-9
bind-key 4S-1 window-movetogroup-1
bind-key 4S-2 window-movetogroup-2
bind-key 4S-3 window-movetogroup-3
bind-key 4S-4 window-movetogroup-4
bind-key 4S-5 window-movetogroup-5
bind-key 4S-6 window-movetogroup-6
bind-key 4S-7 window-movetogroup-7
bind-key 4S-8 window-movetogroup-8
bind-key 4S-9 window-movetogroup-9
bind-key 4-a group-toggle-all
bind-key 4-g window-group

bind-key 4S-f window-freeze
bind-key 4-s window-stick
bind-key 4-f window-fullscreen
bind-key 4S-m window-maximize
bind-key 4-equal window-vmaximize
bind-key 4S-equal window-hmaximize
bind-key 4s-v window-vtile
bind-key 4s-h window-htile

bind-key 4-d menu-exec
bind-key 4-slash menu-window
bind-key 4-Right group-cycle
bind-key 4-Left group-rcycle
bind-key 4-Down window-lower
bind-key 4-Up window-raise
bind-key 4-Tab window-cycle-ingroup
bind-key 4S-Tab window-rcycle-ingroup

bind-key 4CS-h window-resize-left
bind-key 4CS-j window-resize-down
bind-key 4CS-k window-resize-up
bind-key 4CS-l window-resize-right
bind-key 4S-h window-resize-left-big
bind-key 4S-j window-resize-down-big
bind-key 4S-k window-resize-up-big
bind-key 4S-l window-resize-right-big

bind-key 4C-h window-move-left
bind-key 4C-j window-move-down
bind-key 4C-k window-move-up
bind-key 4C-l window-move-right
bind-key 4-h window-move-left-big
bind-key 4-j window-move-down-big
bind-key 4-k window-move-up-big
bind-key 4-l window-move-right-big

bind-key 4-F1 window-snap-left
bind-key 4-F2 window-snap-down
bind-key 4-F3 window-snap-up
bind-key 4-F4 window-snap-right

bind-key 4S-F1 window-snap-up-left
bind-key 4S-F2 window-snap-down-left
bind-key 4S-F3 window-snap-up-right
bind-key 4S-F4 window-snap-down-right

bind-key 4C-w menu-exec-wm

unbind-mouse all
bind-mouse 4S-1 window-group
bind-mouse 4-1 window-move
bind-mouse 4-3 window-resize
bind-mouse 4-2 window-lower
bind-mouse 4S-3 window-hide

# External tools
command term "xterm"

## EoF ##

And this is the only configuration file that isn't on my $HOME...
I've edited in order to get rid of that pesky xconsole window that Xenocara starts by default

## -------------------------------------------------------------
## /etc/X11/xenodm/Xsetup_0 from from Thinkpad T60 - OpenBSD 6.6
## -------------------------------------------------------------

#!/bin/sh
# $OpenBSD: Xsetup_0,v 1.6 2019/06/29 13:33:06 espie Exp $

## 17/12/2019
## Comment to disable the permanent xconsole
## xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail

#  install package openbsd-backgrounds
#  then uncomment:
#
# if test -x /usr/local/bin/openbsd-wallpaper
# then
#       /usr/local/bin/openbsd-wallpaper
# fi

# sxpm OpenBSD.xpm &

Labels: , , , , ,

Saturday, November 02, 2019

Not Sid Anymore (2)


And this time it was the turn for the beloved T60.
Changed the HDD and then made a Buster net install with XFCE, bye i3, thanks for all the tiling, most definitively not my cup of tea.
A first one this time, tho... Had a IP address conflict that prevented downloading all of the necessary packages to finish the installation, so I had to go back on the installer, and setup a fixed IP address for the T60 (on the Ethernet port, since the WiFi card of the lappie isn't recognized by the plain vanilla installer, it needs the non-free drivers added)

Labels: , , , , , , , ,

Friday, October 18, 2019

And Yet Another Sid

Or better yet, another XFCE.
Replaced the HDD on the amazing, heavy and trusty T60p with another one, leaving i3 behind, maybe momentarily.

So, installed Buster XFCE, and then, switched the thing to Sid, following the steps I listed here, that is, editing the sources.list file and then apt commands.
So after something really close to 600 MB of downloads (and deleting about 200 MB of autoremove) later, things look rather fine.

Yes, i3 is really cool, but my workflow is wired to XFCE, what can I say?
That, and also, I wanted to see how the newest of the new XFCE (4.14 at this time) performs on the T60p and what new wonders has to offer.

Labels: , , , , , ,

Monday, October 07, 2019

The Risks of Not Updating Sid on a While




This is what happens when you don't update Sid in a while... 166 packages need to be updated.
Guess in this case, I haven't updated it on something like 3 weeks.

Labels: , , , , ,

Wednesday, September 11, 2019

The Current Debian Desktop

And this time, the T43 edition.
What my beloved Thinkpad T43 desktop looks these days, sporting i3.
The open Emacs, on the lower Xterm, is showing off the ever cool Tronesque theme, my favorite Emacs theme at the moment.

Labels: , , , , , , , ,

Monday, September 09, 2019

The Current Debian Desktop

Back to XFCE, my beloved Optiplex 755, what I can consider my daily driver is back to XFCE.
Love i3 but the workflow is not for me, at least, not for a daily basis.

Labels: , , , , , , , ,

Saturday, September 07, 2019

GenMon: A Little Weather Script with Font Awesome Love Included


Started -once again- running XFCE on my beloved Optiplex 755 USFF, but got a couple of things I've "learned" while running i3 to the XFCE world.
Replaced -didn't even installed it- the plain vanilla Weather Plugin, with a little script that pulls the current weather from wttr.in and even a smaller one liner that actually prints it -of course, via GenMon- parses it just a little bit, and then adds a nice Font Awesome flair.
Not much, but I like it.

Labels: , , , , , , , , , ,

Tuesday, September 03, 2019

i3: Set a Floating Window Onto a Specific Positiion


This is the entry on my ~/.config/i3/config file that makes xcalc a floating window, and then places it on a specific place on the screen.

for_window [ title="SuperCalc" ] floating enable move right 930px,move down 870px

The window title ("SuperCalc" here) is provided by an entry on my ~/.Xresources file.

Labels: , , , ,

Sunday, September 01, 2019

The Current Debian Desktop



My beloved Optiplex desktop, now with i3 and a custom theme that it is sort of based on the Emacs theme Tronesque.
Also, the weather displayed on the xterm is the new experimental version of wttr.in.

Labels: , , , , , , , , , ,

Thursday, August 22, 2019

Debian Buster on The Optiplex 755 (USFF)

Or: (Almost) Spring Cleaning & Update
Yesterday it was time to upgrade the little monster, the Optiplex 755.
I was using a HDD of 80 GB and it a major PITA, always at 99% capacity or so; a new, or at least, a bigger HDD was in order, and, since I'm updating, bumped the thing from Stretch to Buster (not Sid because I found out that installing updates all the time it is ball breaking business).
Also, since this particular Optiplex can only handle up to 4 GB of RAM, ditched XFCE for a plain i3 solution.
Installation (64 bits, on an encrypted LVM as usual) went smooth as silk.

Labels: , , , , , , , , , ,

Monday, July 22, 2019

The Current Debian Desktop

A little something, my i3 desktop screnshot from the trusty T43.
Have to fix a small glitch with the Wifi on i3status bar... Since I've changed from the PCMCIA card to the internal Wifi one, i3status went bollocks and refuses to show the strength percentage and the SSID name... Go figure...

Labels: , , , , ,

Saturday, July 20, 2019

More Buster on Old Hardware

After installing Buster on the old TravelMate 2440 earlier this past week, it was time to test it on the trusty Sony Vaio PCG-FRV37.
The lappie it is a beast and it makes a hell of a noise with its ever blowing fan (this is the biggest drawback of this lappie), but, damn if the keyboard isn't amazing...
Installed Buster on it so I don't have to keep updating stuff all the time, obviously i3 as the Window Manager.

Labels: , , , , , , , ,

Wednesday, July 17, 2019

Mind You, Buster!

It was time.
Today along the days chores got to replace the old, now unsupported, Linux Mint 17 XFCE installation on the old and trusty Acer TravelMate with a brand new and shiny Debian Buster install.
No problems with the install, did a really bare-bones one, nothing except SSH and Standard System Utilities.
i3 as the WM, VLC, Firefox and Transmission... the poor little lappie can't handle much else than that, and then some...

Labels: , , , , , , , , , , ,

Sunday, June 23, 2019

XFCE + i3 (on Sid & LM 19)


So, installed i3 on both Sid and on Linux Mint 19, as an add on of XFCE, just as an experiment and to see how things how.
I do have a full i3 lappie, the glorious T43, but I wanna see how everything goes running i3 along XFCE... There are a couple of site on the internet with instructions, but those are sort of "Xubuntu centrist" and they also give you advise regarding installing third party PPAs, but I don't want to do that.
What I did was to install a "minimal i3", like this:

sudo apt install i3 --no-install-recommends

After that, simply disabled (set to Never) "xfwm4" and "xfdesktop" on Session and then on Application Autostart, add an entry to start i3.

Logout and back in and you are done.

Or almost...

On Debian Sid:
You can use the Windows key as the $modifier.

On Linux Mint 19 (XFCE):
You have to use Alt as the $modifier. or all Hell breaks loose.

On both of them:
Edit the "~/.config/i3/config" file and comment the 'bar' entry, it is at the end of the file, if you don't you'll have the i3 Status bar (printing an error) as well as the XFCE Panel.

Labels: , , , , , , , , , ,

Wednesday, June 19, 2019

The Sid Week (2)

The other lucky winner from the Sid Week, my beloved T43 running Sid and i3.

Labels: , , , , , , , ,

Saturday, June 15, 2019

Debian Sid Installation Tidbits (T60p & T43)

Some notes of the install process on both the T60p and the T43

After making a Debian net install from a Debian 9, choosing only the "SSH Server" and the "Standard System Utilities" options upon the Software Selection.
After the install is over (on an encrypted LVM, of course) installed:

sudo apt-get install sudo zile

Yes, sudo, I'm an old fart and I like to have a root account around, of course, closed to SSH, also I like to use Zile a lot, a minimal Emacs.
Then, with that installed, edited the "/etc/apt/sources.list" file, to look like this:

deb http://debian.unnoba.edu.ar/debian/ sid main
deb-src http://debian.unnoba.edu.ar/debian/ sid main

All the other entries are commented... If you are using proprietary drivers, the "/etc/apt/sources.list" file looks like this:

deb http://debian.unnoba.edu.ar/debian/ sid main
deb-src http://debian.unnoba.edu.ar/debian/ sid main

## Non Free
deb http://http.us.debian.org/debian sid main contrib non-free
deb-src http://http.us.debian.org/debian sid main contrib non-free

Again, all the other entries on the file are commented...
Proprietary drivers or not, after editing the file, issue a:

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get autoremove

Then reboot the box:

sudo reboot

Some other programs I've installed to complete the setup:

sudo apt install apt-listbugs apt-listchanges
sudo apt install alsa-utils
(alsamixer to unmute (m) and then speaker-test to check buttons)
sudo apt install xorg
sudo apt install i3
sudo apt install links2
sudo apt install pmount (to mount USB drives as regular user)

Labels: , , , , , , , ,

Saturday, June 08, 2019

The Sid Week

So, finally, Debian won... Sorry Void.
This past week installed Debian Sid on both the T60p and the T43, on the latter one, the little lappie that still delivers and that had its guts cleansed, installed i3, just for shit and giggles.
Boy oh boy, I have to say that I love that Window Manager...
Certainly see the myself using it a lot on the near future.
Also, I love how the T60p looks in this picture.

Labels: , , , , , , ,