Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Aucklug slides - desktop tips and tricks
1. WHATIDOWITHLINUX
I have been using a Linux computer as my workstation for a long time
I nd it a productive environment, and having my tools available allows me to work
quickly
Author: Glen Ogilvie - nelg@linuxsolutions.co.nz
Date: July 2017
This work is licensed under a .Creative Commons Attribution-NonCommercial-ShareAlike 3.0 New Zealand License
2. How many people use a Linux based computer for work?
svg@presentations:automation:work_people
3. TALKOUTLINE
SSH
SSH agent (launch on start, adding keys)
Quick launch
Desktop apps ( yakuake, meld, clipper, keepass, kde connect)
Command line (syntax highlighting, prompt, history, script, path,
aliases)
version your home dir con guration (mr, vcsh, git)
4. Bash LS colors
Bash shortcuts
Bash variable regex, loops and
expansion
Powerline
Ansible OS setup
sudo
su
groups
network manager dispatcher
keep notes
5. SSH
1. use ssh keys
2. use ssh agent
3. have an .ssh/con g
le
Socks, and ssh keys: ~? (~C)
ssh -A
ssh -D 5555
6. .SSH/CONFIG
ProxyJump can be used twice
.ssh/con g
Host *
ControlMaster auto
ControlPath /home/nxxx/tmp/ssh-%r@%h:%p
PubkeyAcceptedKeyTypes=+ssh-dss
Host jump
Hostname jxxxxx01.xxx.co.nz
User gxxxxxxe
IdentityFile
ProxyJump jump
7. SSHAGENT
1. ssh-add more than one key
2. ssh keys should have
passphrases
3. ssh-agent -t 36000
4. ssh-add -D
9. DESKTOP
Learn about your desktop quick
launch
krunner demo
Set a convenient short cut to start it
10. TERMINALEMULATOR
For command line access, use a terminal emulator that is sophisticated, such as
Konsole. It should have tabs scrolling, multi window input, search, with colour
highlighting, control of colours, If you want a qauke style console, play with yakuake
11. UNDERSTANDYOURCLIPBOARD
Linux desktops have a love/hate clipboard. Basically, we have 2 clipboards, in a
standard Xwindows environment. One owned by the window manager, and one by X.
X will put selected text into it's clip board, and paste using the middle mouse button.
Window managers copy and paste using shortcut keys, and sync with the X clipboard
sometime.
Clipper, a KDE app, gives you a clipboard history, this can make you more productive
12. PASSWORDS
Use a password manager, or some sort, to manage your passwords. Keepass, the one
I use, has an auto type feature. This will basically, press alt-tab, type username, tab,
type password, press enter. It's pretty handy.
13. KDECONNECT
Even for non-kde. Get KDE connect.
Pairs with your phone, allows sending les, noti cations, remote commands and
remote control.
- Demo
14. RESEARCHANDFINDUSEFULAPPS
Various people do di erent things with Linux. Finding the right applications can really
improve productivity. A good editor, such as Atom, Subline, Visual Studio code and
others, can make editing les productive. A merge tool such as meld can help with
comparing les. A good phone editor, or having the language and fonts setup in your
o ce suite.
17. ORGANIZEYOUR.BASHRC
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
HOSTNAMESHORT=${HOSTNAME/.*/}
# Source Host specific config
if [ -d $HOME/.bash.d/$HOSTNAMESHORT ]; then
for i in $HOME/.bash.d/$HOSTNAMESHORT/*; do
. $i
done
fi
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
18. HISTORY
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
export HISTSIZE=200000
export HISTTIMEFORMAT="%Y-%m-%d %T "
# append to the history file, don't overwrite it
shopt -s histappend
19. SYNTAXHIGHLIGHTING
alias ccat='pygmentize -f terminal256 -Ostyle=native -g --'
alias prettyjson='python -m json.tool'
if which pygmentize > /dev/null 2>&1; then
# Coloured tools
PYGMENTIZE_STYLE="native"
# PYGMENTIZE_STYLE="friendly"
alias ccat="pygmentize -f terminal256 -Ostyle=${PYGMENTIZE_STYLE} -g --"
export LESSOPEN="|pygmentize -f terminal256 -Ostyle=${PYGMENTIZE_STYLE} -g %s"
export LESS="-isMR --shift 5"
fi
# Set dir colours
if [ -f ~/.config/LS_COLORS/LS_COLORS ]; then
eval $( dircolors -b ~/.config/LS_COLORS/LS_COLORS )
fi
21. THE LOG FILE NAVIGATOR ABOUT DOWNLOADS FEATURES DOCUMENTATION PROJECT BLOG
Single Log View
All log file contents are merged into a single view based on message timestamps. You no longer need to manually
correlate timestamps across multiple windows or figure out the order in which to view rotated log files. The color
bars on the left-hand side help to show which file a message belongs to.
Automatic Log Format Detection
23. SHELLRECORDING
# Shell recording
if [ -d ~/recordings ]; then
if which script >/dev/null 2>&1; then
alias inss='echo $IN_SCRIPT_SESSION'
alias in_script=inss
if [[ $IN_SCRIPT_SESSION ]] ; then
return;
fi
DD=`date +%F`
TTY=`tty | sed -e 's///-/g'`
N=$DD$TTY
export IN_SCRIPT_SESSION=$TTY
exec script -q -a -f -t 2>> ~/recordings/$N-timingfile ~/recordings/$N-myactions.typescript;
fi
fi
24. FUNCTIONS
# Re tool
re() { local x p=$PWD; for x do p=${p/${x%%=*}/${x#*=}} ; done ; cd $p ; }
# Loop and pull all git modules
function git-pullall {
p=`pwd`;
for i in $(find -L . -name ".git" -type d );
do cd `dirname $i`;
git pull;
cd $p;
done;
};
25. VERSIONCONTROLYOUR
HOMEDIR
myrepos, vcsh and bash
ccat .mrconfig
ccat ~/.config/mr/config.d/bash.vcsh
ls ~/.config/vcsh/repo.d/bash.git/
vcsh enter bash
git status
https://myrepos.branchable.com/
27. The Best Keyboard Shortcuts for Bash (aka the Linux
and macOS Terminal)
by Lowell Heddings on March 17th, 2017
Bash is the default command-line shell on most Linux distributions, from Ubuntu and
Debian to Red Hat and Fedora. Bash is also the default shell included with macOS, and
you can install a Linux-based bash environment on Windows 10.
The bash shell features a wide variety of keyboard shortcuts you can use. These will
work in bash on any operating system. Some of them may not work if you’re accessing
bash remotely through an SSH or telnet session, depending on how you have your keys
mapped.
Working With Processes
Use the following shortcuts to manage running processes.
DID YOU KNOW
The term shrapnel, fragmentation thrown out by an
exploding munition or bomb, comes to us by way of
Henry Shrapnel, a British o cer who invented the
rst anti-personnel round–an explosive hollow
cannon ball lled with lead shot–in 1784.
BEST OF HOW-TO GEEK
Nest vs. Ecobee3 vs. Honeywell Lyric:
Which Smart Thermostat Should You
Buy?
How to Lock Down Your Android Tablet
or Smartphone for Kids
What Is the Windows Event Viewer, and
How Can I Use It?
How to Fax a Document From Your
Smartphone
28. BASHVARIABLES,LOOPS
Take some time to learn about bash. Such as:
we have: a variable, a loop, using a shell expansion glob, a regex removing .tf, a
command using variable and an output.
p=; for i in [a-s]*; do a=${i/.tf/};
terraforming $a --tfstate --merge terraform.tfstate$p > terraform.tfstate.$a ; p=".$a"; done
29. but… this is not a bash tutorial.
svg@presentations:automation:gnu-bash-logo
30. POWERLINE
Powerline, is a tool that gives you a fancy prompt in the shell and a fancy setup in vim.
https://github.com/Lokaltog/vim-
powerline
. /usr/share/powerline/bash/powerline.sh
31. NETWORKAWARE
SETTINGS
Network manager, is pretty much what we all use to setup our network connections.
It can run scripts when it connects. Example:
Turn on services you need only at work, when at work
Have your system do what you want, when it is where you can predict
#!/bin/bash
IF=$1
STATUS=$2
vpnstate="start"
/sbin/ip a | grep 192.168.88 -q && vpnstate="stop"
if [ "$2" == "up" ]; then
systemctl $vpnstate openvpn@pup-client.service
fi;
32. AUTOMATETHESETUP
OFYOURLAPTOP
We tend to have to setup a new laptop every now and then, as OS upgrades, new
hardware, etc, happen.
Having done this a number of times, trying to remember all the packages you want is
hard.
Trying to remember how you got a speci c OS component setup is also hard.
33. I used Ansbile, because it is an easy way to get better with it.
- hosts: localhost
vars_files:
- vars.yml
become: true
tasks:
- name: Mageia packages
package:
name: "{{ item }}"
state: present
with_items:
- aircrack-ng
- airsnort
- amarok
34. Distro Packages
Commercial Packages
Unpackaged programs
Ruby Gems
Python pip
Sudoers con g, pam con g
Network manager con g
VPN con guration
Wi settings
Services you want stopped / started (who wants teamviewerd running all the
time?)
Autofs setup
Git checkouts
Firewall con g
Cloud tools (awscli, command completion, etc)
Dropbox setup
36. GENERALADVICEFOR
LAPTOPSETUP
Use the hardware encryption for the disk, in BIOS
Use the nger print reader if supported
Encrypt partitions if you don't have hardware encryption (with Luks)
Have an upgrade partition so you can go back to the old version
HiDPI screens work OK. - but buy hardware someone else has tried / solved the
problems for you
Expect to use UEFI. It can work these days OK. You can end up with multiple
di erent boot loaders
37. KEEPNOTES
Keeping notes is a good idea. It's easy to forget how you set something up 2 years
later.
I use dokuwiki, running locally on each computer I use. It's handy to keep my notes.
Useful applications (name, short
description)
Useful con gurations
Short cut keys
Links and Guides
Commands you've gured out
Things you nd helpful