How to view user information on smb: # pdbedit -vL All of it is stored in files also explained in this article https://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/tdb.html NOTE: Changing password of a user using smbpasswd, affectsRead More…
HOW TO CLONE PARTITION TABLES (GPT & MBR) – sfdisk & sgdisk
HOW TO CLONE PARTITION TABLES (GPT & MBR) ########################################## First read this on how to create partitions with sgdisk (GPT) and sfdisk (MBR): Creating partitions with sfdisk or sgdisk Cloning partition tables, first makeRead More…
bsinfo – btrfs size snapshot info
All info here: https://github.com/infotinks/bsinfo
NFS Relative Mounts/exports on NFSv4 and Absolute mounts/export on NFSv3
NFS Relative Mounts Help with this article: http://www.bermweb.net/?p=41 And also: http://lukas.zapletalovi.com/2011/05/export-for-both-nfs-v4-and-v3-clients.html NFSv3 and NFSv4 have a difference between them that NFSv4 supports exports that are virtualized and therefore can be relativized. NFSv3Read More…
Test TCP Connection such as Syslog server with TCPCONNECT
TEST TCP CONNECTION SUCH AS SYSLOG CLIENT # apt-get install tcputils CLIENT # tcpconnect www.SYSLOGSERVER.com 55114 type stuff, hit enter, will appear on remote rsyslog server this is a message123 this isRead More…
Understanding BTRFS space readings
This article here might help your understanding this better (especially the concept of allocation & the difference between used space and allocated space): http://www.infotinks.com/btrfs-fi-df-balance-btrfs-df/ I didnt have time to make it fancy shmancyRead More…
TAR BACKUP SYSTEM – EXCLUDE SELF and VIRTUAL FILESYSTEMS
TAR BACKUP SYSTEM – EXCLUDE SELF and VIRTUAL FILESYSTEMS Since we want to backup all of the system recursively which starts at / Syntax: tar [options and archive savelocation] [archive start location]Read More…
Restartable RSYNC and CP – Loops until completion – version 2
Restartable RSYNC and CP – Loops until completion Version 1 of this can be found here: version1 (note version2 isnt necessarily better, its just shorter) This is another version of a restartable RSYNCRead More…
TEAMVIEWER – Error – Screen cannot be captured at the moment due to fast user switching & Installing Teamviewer as a service
TEAMVIEWER – Error – Screen cannot be captured at the moment due to fast user switching & Installing Teamviewer as Service tl;dr Quick solution – Install Teamviewer as a service to removeRead More…
VIM PRINT WHITESPACE CHARACTERS – SET LIST and NOLIST
VIM PRINT WHITESPACE CHARACTERS SET LIST and NO LIST #################################################### Info from: http://stackoverflow.com/questions/1675688/make-vim-show-all-white-spaces-as-a-character When programming in python via vi or vim its important to know where you have those pesky tabs so thatRead More…