If the Dragonfly pkg manager ever asks to delete everything and install libressl say No!
Download the [Lenovo UEFI Linux Diagnostic Tool](https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/thinkpad-t-series-laptops/thinkpad-t495-type-20nj-20nk/downloads/driver-list/component?name=Diagnostic&id=B39ECAD7-69BC-4CC0-B8C7-25D5553C5887) and run all the diagnostics on your laptop before install. Not only will it save installation issues, you know all the hardware firmware versions and includes tools such as SMART SSD Health, Fan Speed Reporting, WiFi assessement, and logging it all out for your records.
You can use the performance testing results obtained in the bootable USB above as a baseline against Dragonfly BSD performance, or whatever OS you keep.
You need two FAT32 formatted USB drives, one for the install, the other for this software
/mnt
make sure to cp overwrite with
cp -fR /mnt/harden-dragonflybsd $HOMEUse your FAT32 USB drive
mount_msdos /dev/da8s1 /mnt ,
ls /mnt
cp -fR /mnt/harden-dragonflybsd $HOME the
files to root home, using -f here to get into the
habit.
Yes, the reboot stratgey is best on a physical laptop!
Booting the kernel modules for smoothest operation, for pkg update
purposes, and to be in habit, and ready, or already done
kern.securelevel=1! This will not be needed after
setup.
Always run the script from the repository base directory.
Do not go until util and run it from there.
Fn-K allows to arrow and PgUp PgDown the
console screen. Then Fn-K again to release.
Make sure to "Configure this System"
Set the time, date, and say yes to UTC clock, set your timezone.
Skip keyboard map, console font, and screen map
Add yourself as user during setup with permanent accurate information
Do NOT "Configure network interfaces"
Enter "Set Hostname/Domain"
localhostmount_msdos /dev/da8s1 /mntcp -fR /mnt/harden-dragonflybsd ~cd harden-dragonflybsdutil/thinkpad-t495-setup.csh , after Success,
issue the reboot commandpkg management systems asks to upgrade or fix missing
dependencies then select y
Phase 2 setup
When you see this message do the following before rebooting:
visudo//root ALL <enter|returrn key>, then
type o, then we're going replicate the line above but
instead of using root we'll use the actual username
you made during setupyour-user-name ALL=(ALL:ALL) ALL:xsudo cp -fR /root/harden-dragonflybsd /home/<your-user-name>sudo chown -R <your-user-name> /home/<your-user-name>/harden-dragonflybsdsudo
sudo util/thinkpad-t495-setup.csh Enter your
password, not the root password for sudo permissions.sudo util/thinkpad-t495-setup.csh,
sudo reboot , sudo shutdown -p nowpkg system in 6.4 and
it will sometimes conflict on openssl - libressl and sometimes
will delete everything that depends on them automatically! Do not
worry, just run the script again to fix this situation.Type startx to start your desktop
/usr/local/bin/startx directive to
0enable_xauth=0If you want to turn off beeps type
xset b off
When the terminal starts type
gsettings set io.elementary.terminal.settings font 'Monoid Nerd Font 12'
to match the rest of the theme or whatever Nerd Font you'd
like.
Rarely, the trackpoint will get stuck, simply issue a
reboot command.
Windows Key on the keyboard is called the "Mod" key
Quit a Window Mod-Shift-C
Mod-R Start any application, "Run" appears in
the top system bar, type the full path to the binary or simply the
app name if it's in system path already.
Terminal Command:
io.elementary.terminal
Shutdown shutdown -p now command in
terminal
Crash Restart: Mod-Shift-Q,
Ctrl-Alt-Backspace wait 7 seconds,
Ctrl-Alt-Delete
about:config on first run!falsefalsefalsetruefalseNPM + NodeJS
Rust
Luarocks
fd
alias added to your .zshrc to
not ignore dot filesfd <searchstring> / to search the whole
drive.rg
rg <searchstring> / to search the whole
drive.$HOME/.cargo/bin added to your user
PATHdfs in your shell
omz help,
omz theme <command>
Edit ./zshrc and uncommnet line 74,
export LANG=en_US.UTF-8
git config oh-my-zsh.hide-status 1 for each
directory, like $HOME, you don't want the git display
prompt.
Create fd alias below the examples
alias fd="fd -H"
There are uni-code characters present at the prompt when running as root in the system console, this is normal as root account need to the "C" locale and should not be changed.
It may start creating .zcompdump files in your directory
because of missing paths used by compinit which you
can set to explain the dump by locating the below function in
/usr/local/share/ohmyzsh:
if [[ "$ZSH_DISABLE_COMPFIX" != true ]] thenand adding -w to all compinit flags
to debug or use -D instead of -d to
disable the .compdump. I found no adverse affects from disabling
the dump.
nvim command with no file to let it setup,
update, then quit :q!cd ~/.local/share/nvim/lazy/rm -rf nvim-treesittergit clone https://github.com/nvim-treesitter/nvim-treesitter.git:AstroUpdatePackages:TSInstall ruby~/.local/share/nvim/lazy:TSInstall rust~/.config/nvim/lua/plugins/telescope.lua
to change the fzf in
telescope-fzf-native.nvim to fzy instead
of fzf and the vim.fn.executeable from
make to cmake for both fieldsirssi and iris-fish(encryption module)
are tested as workingAbiword is useful for viewing Office docs, but it always saves
in it's own format .abw. You can always type in
Asciidoc or Markdown in NVIM, but if you need to convert your
Abiword files you can use https://cloudconvert.com/abw-converter
or https://www.vertopal.com/en/convert/abw-to-asciidoc for
free.
Preview Markdown files in as they would appear in GitHub (with a QHE provided template) in Firefox with auto-generated Table of Contents for faster review.
Firefox may throw errors complaining that it cannot get your precise location, ignore!
Simply type mdp in your shell
Usage: mdp README.md
Gives you an HTML copy of your markdown file as well. You can
have the mdp function remove this file by editing the
function.
File: ~/.zshrc
Append the following line at the end of function to delete HTML
preview file: rm ${filepath}/${basename_toc}.html
Append the following line at the end of function to delete
Markdown with Table of Contents file:
rm ${filepath}/${filename_toc}
Firefox will automatically open file and show preview until cache refreshed or tab/window despite file deletion.
QHE mdp z shell function uses MultiMarkdown
format markdown_mmd which can be changed
although this format was heavily tested to be the best:
Table of Contents Insertion and Format
--maxdepth is set to only recognize##
markdown headings 2 but the default is
6, all subheadings.
The Table of Contents is auto-inserted at the line after the
first single #, usually the main title of the
document. If you wish to insert the TOC yourself remove the
statement staring with printf and insert
inside your markdown document where you would like it to appear
before you run the mdp command
All changes in this function will not appear until you've exited the terminal and restarted it
The pandoc custom template by Quadhelion Engineering and Fabrizio Musacchio mimicing GitHub Markdown can be modified however you wish.