NeoLAB
34 subscribers
150 photos
29 videos
94 files
335 links
Lab of @neo_is_kal

🐧 | @ArchLinuxIndia
🐚 | @PrivacyToolsIOChat
🍬 | @FossMemes

This is a Journal + Shrine of links
Website: https://neovoid.is-cool.dev
Download Telegram
How to Check if your email address is in a data breach ?

You can check if your data has been leaked and put on the dark web from one of the data breaches happened before.

Just type your email to check if its information been leaked.

1. https://cybernews.com/personal-data-leak-check/

2. https://monitor.firefox.com/

3. https://haveibeenpwned.com/

If you found that your emails has been pawned or leaked then do this.

- 1. Immediately change password of your mail account
- 2. Add 2fa layer to protect password
- 3. Use one of the best password manager and save your passwords locally encrypted. eg. KeepassXc.

#notes
To find which pkg contains a pkg you needed.
[tux@tg:$~/] pacman -Qo ftp
[tux@tg:$~/] /usr/bin/ftp ist in inetutils 1.9.4-8 enthalten


#notes
Use apt-file search to check broken libraries belongs to which file?

X11 /extensions /Xcomposite.h No such file or directory
http://askubuntu.com/questions/801252/ddg#900768

Whenever a compile fails with a missing file simply leverage the infrastructure to search for the missing ubuntu package

apt-file search some_missing_file_goes_here # cmd 1
apt-file search X11/extensions/Xcomposite.h # cmd 1

which returns with

libxcomposite-dev: /usr/include/X11/extensions/Xcomposite.h

so solution is to install that missing package

sudo apt-get install libxcomposite-dev # cmd 2

this technique works across any missing file

On a fresh OS if you issue

apt-file search X11/extensions/Xcomposite.h

it will fail with error

The program 'apt-file' is currently not installed. To run 'apt-file' please ask your administrator to install the package 'apt-file'

which just means you need to do a one time setup of the local search cache so just run

sudo apt-get install apt-file -y
sudo apt-file update

now re-issue the search shown above (cmd 1) then install package (cmd 2)

--Scott Stensland

#notes #fixes
#notes #foss true caller alternative http://www.callerpy.io/
How to get pretty tty login art at bootup?

- /etc/issue shows pretty output in tty
- but cannot run commands directly
- so redirect the output of any ascii command to issue file
eg.- neofetch > /etc/issue
but to run that command in each startup put it into /etc/rc.local

i use this fm6000 -r -c random -s zsh -de=dwm -n > /etc/issue
and put it into /etc/rc.local

Enjoy! #notes
# My Artix/Arch Linux Installation #Notes

1. Base Install

- keyboard configuration
loadkeys us
- partitions making (It differs from persons choice)
fdisk /dev/sda
d 2 n enter +51G w
mkfs.ext4 /dev/sda1
mount /dev/sda1 /mnt
mkdir /mnt/home
mkdir /mnt/boot

{Ignore the Above method It just for me heres what i recommend for others}

# creating partition table - cfdisk /dev/sda
β”œβ”€β”€ #create partitions according to your need
β”œβ”€β”€ boot (for uefi only) - /dev/sda1 [at least 350mb]
β”œβ”€β”€ root - /dev/sda1 [at least 50Gig]
β”œβ”€β”€ swap - /dev/sda2 [at least 2Gig]
└── storage [optional] - /dev/sda3 [remaining disk part usually 100Gig]
# Installing filesystem on newly created partitions
For Uefi users
β”œβ”€β”€ mkfs.fat -F 32 /dev/sda1 <- boot [Only for uefi users]
└── fatlabel /dev/sda1 BOOT <- must be labeled as boot
For BIOS users
β”œβ”€β”€ mkfs.ext4 -L ROOT /dev/sda1 <- root
β”œβ”€β”€ mkswap -L SWAP /dev/sda2 <- swap
└── mkfs.ext4 -L EXTRASTORAGE /dev/sda3 <- extra for storage, optional
# Mounting partitions
β”œβ”€β”€ swapon /dev/sda2 -> starting swap if created
└── mount /dev/sda1 /mnt -> mounting root
└── mkdir /mnt/home /mnt/boot -> creating needed folders

- Installing base system
basestrap /mnt base base-devel runit elogind-runit linux linux-firmware vim
- Generate fstab
fstabgen /mnt
fstabgen -U /mnt >> /mnt/etc/fstab
- chrooting into installed system
artools-chroot /mnt
bash
vim /etc/pacman.d/mirrorlist
- configuring timezone
ln -sf /usr/share/zoneinfo/country/city/etc/localtime
hwclock --systohc
- localization
vim /etc/locale.gen
locale-gen
vim /etc/locale.conf
LANG = en_us.UTF-8
- Configure Network
pacman -S NetworkManager NetworkManger-runit
ln -S /etc/runit/sv/NetworkManager /etc/runit/runsvdir/current #before reboot
ln -S /etc/runit/sv/NetworkManager /run/runit/service # after reboot
vim /etc/hostname
desktop
vim /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.0.1 desktop.localdomain desktop
- Installing Grub
pacman -S grub
grub-install --target=i386-pc /dev/sda # for bios
or grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub # for uefi
β”œβ”€β”€ grub-mkconfig -o /boot/grub/grub.cfg
β”‚ pacman -S artix-grub-theme
β”‚ vim /etc/default/grub
β”‚ GRUB_THEME="/usr/share/grub/themes/artix/theme.txt
└── # reconfigure grub after installing grub theme
- Add users
passwd
useradd -m username
passwd username
usermod -a -G video,audio,input,power,storage,optical,ip,scanner,dbus,adbusers,uucp,vboxusers username
usermod -a -G log mpd network scanner power users video storage ip optical wheel username
- Installing display server
pacman -S xorg
- Installing Video Drivers
pacman -S xf86-video-intel
- Network Configuration
#after reboot command for network

2. Post Base Install
- Install GUI Desktop Enviroment or Window manager

#notes
How to get artix-archlinux support? (incase you r getting elogind error)

- First update whole system through -syu
- then install artix-archlinux-support
- add those new lines into pacman.conf
-and run pacman-key --populate archlinux
Enjoy!

Worked for me #Notes
# DIY clipboard manager #Notes #MyCreation

This was the part of larbs but i never able to get it working until now.

Using xclip, xdotool and dmenu to fetch clipboard contents

*Dependancies:
- xdotool
- xclip
- dmenu
- sxhkd (optional and depends on how you manage keybinds)

xclip -sel c -o will put selected clipboard content into file
using dmenu later we will get the list of copied texts
but this file need to updated everytime we copied something.
So we can either cron job it or use a trigger recognizing program like entr.

So i choose to create aliases instead

alias \
cc="{xclip -sel c -o -r; printf '\n'; } >> ~/.local/share/larbs/snippets" \
cr=" : > ~/.local/share/larbs/snippets"

cc will update the clipboard and cr will clear all the file

and this sxhkd hotkey will be use to get the list of content.

super + Insert
xdotool type "$(dmenu -i -l 50 < ~/.local/share/clipboard/snippets)"
How to Add ~/.local/bin to PATH?
Adding dirs to PATH gives easy access to your local scripts.

Define PATH variable

Put this in your ~/.profile or ~/.zprofile

# Adds ~/.local/bin to $PATH
export PATH="$PATH:$(du "$HOME/.local/bin" | cut -f2 | paste -sd ':')"

and restart your wm

Now you can easily access your scripts from dmenu, terminal or anywhere.
#faqs #notes
Text manipulation commands
#Notes #teachingnotes
echo - send text to stdout
cat - read file
less - read in a pager
head - read from top
tail - read from bottom
more - file perusal filter for crt viewing
sort - sort lines
uniq - report or omit repeated lines
fmt - reformat lines
pr - convert text files for printing
tr - translate or delete characters

Advanced Commads

awk - pattern scanning and processing language
grep - print lines matching pattern
sed - stream editor for filtering and transforming text
Advanced diskpartition #quicknotes #notes

partitioning using fdisk
primary {sda1 sda2 sda3}, extended {sda4}

physical volume
pvcreate
pvcreate /dev/sda1 /dev/sda2 /dev/sda3
pvs or pvdisplay - for showing

volume group
vgcreate
vgcreate <newname> <path of volumes>
vgs or vgdisplay

logical volume
lvcreate
lvcreate -L +20G -n <newname> <vg name>
lvrename
lvextend
lvreduce
Mount the Android devices using simple-mtpfs

simple-mtpfs -l : To list device (instead of lsblk)
Note the device number

mount the android drive with:
simple-mtpfs --device <device number> <path to mount at>

now to unmount:
umount -l <path>

#notes
To delete all files except one!

- using find
find . \! -name 'file' -delete

- using zsh:
setopt extendedglob
echo ^foo
rm ^foo


- using bash:
shopt -s extglob
rm -v !("filename")


rm -v !("filename1"|"filename2")
to delete all except filename1 and filename2

Bash Specific Use Globignore variable
GLOBIGNORE=*.iso:*.txt
rm *
unset GLOBIGNORE
it will remove all except iso and text file

#notes #challenges
#Error #notes: The application was unable to connect to display 0.

Verify the display name by running the who command in your terminal
Update the DISPLAY variable
export DISPLAY=":0"
Disable access control
xhost +
#notes Change username from old to new

make sure no program is running under old username
run these under tty in root for best

//rename username
#usermod –l newname oldname

//for changing directory name too
#usermod –d /home/newname –m newname

//changing finger information
#chfn –f newname newname

//now reboot or relogin and check
$whoami
$pwd

#hacktuts
Go slowly and simplify your task with Pandas .pdf
700.3 KB
15 pandas functions for 90% of your work : cheatsheet with examples pdf

#notes #pandas #cheatsheet
@pyguru
Creating a Perfect GPG keypair (and reduce risk of losing your laptop or stolen private keys)
https://alexcabal.com/creating-the-perfect-gpg-keypair
#notes
DNS Records #infographs #notes