n0v1c3 / linux Goto Github PK
View Code? Open in Web Editor NEWCustom linux configurations and scripting
Custom linux configurations and scripting
cl
= clear; ls -l
cla
= clear; ls -la
The commands for c.sh
, ca.sh
, cl.sh
, and cla.sh
should be replaced with aliases in the config/bashrc
Create or utilize existing script to backup one that is about to be replaced
# All backups created would be time stamped as YYMMDD
# Backup file to the same directory
backup $existingFile
# Replace $existingFile with $newFile while creating a backup of $existing file to the same directory
backup $existingFile $newFile
Check out this guide for information on how to enable the hybrid mode.
Update the following line to correct the download path:
wget https://raw.githubusercontent.com/n0v1c3/arch-linux/master/pacman/mirrorlist
Easily encode standard text as a ASCII based qr code.
Prebuilt qr encoder with ascii output:
sudo apt-get install qrencode
Replace '#' with '█' so that a camera will be able to read the ASCII format
Add setup instructions to wiki for terminal mail
Remove unnecessary packages from the installer and add them to a separate script. This new script can be run after installation is completed, this way they can be run in parallel with the rest of the OS.
Script required to quickly configure a new user
Add the scripts/git/notify.sh
script to scrilpt/bin/setup
script
This folder can be a local way of storing all functions that you wish to have access to both with the scripts in the repository as well as easily installing the desired functions on the local system.
The bashrc dotfile will need to be updated with the desired path in the repo, this should be added to the bash setup script so that the link can be dynamic.
Set-up Wiki and create basic roadmap for the project
Include the current count on commits ahead or behind the remote repository's current branch you are.
The notify-send command is not working across platforms properly. Set up to work from terminal.
Update all scripts to use a "relative" path to the repo folder for linux.git
This causes some scripts not to work when a new user or computer is being used.
Add the --color=auto
option to the ls
commands found in c (clear list) and ca (clear list all).
Add installation guide for vbox guest utilities to the README
Remove any existing paths in the ~/.bin
folder.
Maintain past link names for future changes (remove old links even when they are no longer present or the names have changed). Look for common paths for the linux
repository.
Script required to walk through setting up of 2-step verification for all Linux workstations.
Create the local config file for vim to be shared across accounts
Make the branch section a selectable table that the user may use to select the active branch.
Add the custom config file for terminator to the installation script
linux/config/terminator/config
-> /home/$USER/.config/terminator/config
Compare with arch-install.sh and remove arch-install
Remove arch-linux once merge has been completed
The paths found in README.md are no longer valid.
#!/bin/bash
title="$$"
title1="BRANCH"
title2="STATUS"
title3="LOG"
gitdir="/home/rneadmin/Documents/projects/linux/.git"
while true
do
line1="$(git --git-dir=$gitdir branch)"
line2="$(git --git-dir=$gitdir status -s)"
line3="$(git --git-dir=$gitdir log --pretty=format:'%h - %s' --graph -n $1 | sed 's/\\/\\\\/')"
kill $(pgrep -u $(whoami) notify)
DISPLAY=:0.1 notify-send "$title" "
$title1
$line1
$title2
$line2
$title3
$line3"
sleep 5
done
Passwords needed for root user account
This can be done by storing the desired session in Git and only modifying it on Git.
Install python, before xfce4
qr.sh cannot handle spaces in the input string need to change the following line:
qrencode -t ASCII $1 | cat | sed "s/#/█/g"
to
qrencode -t ASCII "$@" | cat | sed "s/#/█/g"
Note the quotes as well as the $@
tjg-couch
/home/travis/Documents/development/linux-config
into /home/travis/Documents/development/linux/
See attached file tor.sh.txt this is the installation for Tor on a Debian system.
Create a script to start-up tmux with the correct layout
Swap the Caps Lock and the Escape keys on the keyboard to help improve vim editing speed.
Remove linux-config once this has been successfully completed
.gitignore needs to be created for the repository root
Add tool to display the current time in the top right corner of the terminal
kill $(pgrep -u $(whoami) notify)
is no longer needed in the git-notify script
# Old PS1 value
# ${debian_chroot:+($debian_chroot)}\u@\h:\w\$
export PS1="\[\033[0;96m\]\u\[\033[97m\]@\[\033[0;92m\]\h\[\033[97m\]\$ \[\033[00m\]"
This pass-phrase should only be available on the machine running the script. This will improve security on the public address availability.
Rename the bin folder to be installed in the user's home as .bin to make it a hidden file.
Update the installation scripts for bin to include this.
Found an old version of vbox-manage that seems to have more features. Compare and combine into the required scirpts.
VBX-VM Run-140211-TJG.sh.txt
xorg is not installing properly and startxfce4
is not functional
~/bin
for all users.export PATH=$PATH:</path/to/file> to your ~/.bashrc
Create custom 'bin' and required configuration for personal commands
Delete *.xkm
files from /usr/lib/xkb
Otherwise modifications to existing keyboard bindings will not take effect.
Themes required for SLiM and xfce4
Add the following to the vimrc file:
setlocal spell spelllang=en_us
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.