Home - pierregermain/MyTux GitHub Wiki

The Tiling Window Manager Pitfall

A must read!

http://xahlee.info/linux/why_tiling_window_manager_sucks.html

Backup 7550

# Linux
sudo rsync -aAXvS --dry-run --delete / /media/pierre/lin_bck --exclude=/timeshift/* --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* --exclude=/tmp/* --exclude=/home/* --exclude=/run/* --exclude=/mnt/* --exclude=/media/* --exclude=/cdrom/* --exclude=/lost+found

# Home
sudo rsync -aAXv --dry-run --delete /home/ /media/pierre/HOME_Bck --exclude=/pierre/.steam/* --exclude=/pierre/.cache/* --exclude=grau/* --exclude=/pierre/.config/Slack/* --exclude=/pierre/.config/google-chrome/* --exclude=/pierre/.config/microsoft-edge/* --exclude=pierre/VirtualBoxVMs/*

# Muz
sudo rsync -aAXv --dry-run --delete /media/pierre/muz/ /media/pierre/MUZ_Bck --exclude=.Trash-1000/files/* --exclude=/media/pierre/MUZ/P2P/* --exclude=/media/pierre/MUZ/P2P2/* --exclude=INSTALLERS/WINDOWS/msedge.win10.virtualbox --exclude=P2P/* --exclude=P2P2/* --exclude=SteamLibrary/*


Backup SD

mkdir <destination-folder>
cd <sd-card>
sudo rsync -aAXv --delete ./ /home/pierre/destination-folder/ --exclude=.Trash-1000/files/* --exclude=/Android/data/com.spotify.music/*

Backup Ely's Dell

# Home
sudo rsync -aAXv --dry-run --delete /home/ /media/ely/ely_home_backup

# Linux
sudo rsync -aAXvS --dry-run --delete --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* --exclude=/tmp/* --exclude=/home/* --exclude=/run/* --exclude=/mnt/* --exclude=/media/* --exclude=/cdrom/* --exclude=/swapfile --exclude=/lost+found / /media/ely/ely_linux_backup

Linux Mint - My fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the UUID's
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# ROOT / was on /dev/sda1 during installation

# LINUX
UUID=69f76b98-7a93-4c86-8d47-08a5bdbd4f67 /               ext4    noatime,errors=remount-ro 0       1

# HOME
UUID=aec41bbb-337e-4787-bb3d-d9ff3da9967c /home            ext4    defaults              0       2

# MUZ
UUID=97c4c015-24cb-437b-a16e-eb5f5986b662 /media/pierre/MUZ            ext4    defaults              0       2

Linux Mint - Edit GRUB

cat /boot/grub/grub.cfg        # To see Grub Config
cat /etc/grub.d/40_custom      # To see Custom Grub Entry
vim /etc/default/grub          # To modify grub menu default option
sudo update-grub               # To Update Grub
tail -n 50 /boot/grub/grub.cfg # See if Grub was updated

# To Test
$ sudo grub-emu # To exit press c on the father's window

Grub Custom Menu Entry

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry 'linux mint ssd' --id linux-mint-ssd {
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt5'
	search --no-floppy --fs-uuid --set=root 264f71ca-8e9b-4da6-a8a3-248f4b8907ea
	linux /boot/vmlinuz-4.8.0-53-generic root=UUID=264f71ca-8e9b-4da6-a8a3-248f4b8907ea ro quiet splash $vt_handoff
	initrd /boot/initrd.img-4.8.0-53-generic
}

Grub Custom Menu Config

GRUB_DEFAULT=6

Entering Grub

  • After BIOS type ESC (only once) ... Now you should see GRUB
  • If that did not work, press ESC a lot of times after the BIOS. Now you should see GRUB command prompt: Just type normal at the prompt and press ESC a lot of times to enter the GRUB.

Mount by sshfs

sshfs [email protected]:\
/home/vagrant/public_html/xxxx \
/home/pierre/webapps/xxxx-sshfs

Howto config:

  1. ssh [email protected]
  2. Put your .ssh/id_rsa.pub in /home/vagrant/.ssh/authorized_keys

Mount macOS in Linux in the LAN

sudo  mount -v  -t  cifs  //matts-macbook-pro.local/matt /mnt/macbook -o user="Matt Groening" 

Recent Files

recent:///

Teclado

  • Configurar Teclado con Xmodmap

Gimp Plugins

https://github.com/auris/gimp-save-for-web
https://github.com/alessandrofrancesconi/gimp-plugin-bimp

docx

sudo apt-get install unoconv odt2txt     # installs both tools
doc2odt test.doc                         # creates test.odt
odt2txt test.odt                         # displays the contents in the terminal

i3wm en XFCE Linux Mint

https://github.com/pierregermain/MyTux/wiki/Linux-Mint-i3

Share mouse and keyboard between computers

⚠️ **GitHub.com Fallback** ⚠️