This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
debian:tips [2022/03/13 18:07] nanodano created |
debian:tips [2022/04/06 01:30] (current) nanodano |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
+ | ==== Installation ==== | ||
+ | |||
+ | * The CD net install image is the smallest one available but comes with fewest packages. | ||
+ | * There is a 16GB USB download that contains most popular packages. This is a good middle ground. | ||
+ | * If you use the '' | ||
+ | * There are Live images available in addition to just the installer. | ||
* Install VirtualBox Guest Additions (for VM only): '' | * Install VirtualBox Guest Additions (for VM only): '' | ||
+ | * edit apt sources with '' | ||
+ | |||
+ | * Firmware | ||
+ | * You can download an unofficial version that includes non-free firmware, or you can download the non-free firmware as a separate zip and install packages only as needed. For example, a wifi driver. | ||
+ | * Installing firmware ('' | ||
+ | |||
+ | ==== GRUB ==== | ||
+ | |||
+ | * Setup custom grub boot theme ('' | ||
+ | |||
+ | |||
+ | ==== Disks ==== | ||
+ | |||
* Setting up disk partitions (partition, encrypt, THEN LVM?? yep!) -- execute shell and do '' | * Setting up disk partitions (partition, encrypt, THEN LVM?? yep!) -- execute shell and do '' | ||
- | * Installing firmware ('' | ||
* Mount USB drives with '' | * Mount USB drives with '' | ||
+ | * setup disks to auto-mount with `/ | ||
+ | |||
+ | === Mount SMB drive === | ||
+ | |||
+ | |||
+ | < | ||
+ | # Mounting a CIFS/SMB network drive | ||
+ | # Ensure driver installed with `apt install cifs-utils` | ||
+ | |||
+ | # To mount manually, run command like this: | ||
+ | # Omit the `password=` option to get prompted | ||
+ | # uid/gid is for the local Linux account | ||
+ | # user is the login for the remote SMB drive | ||
+ | sudo mount -t cifs -o uid=myuser, | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | # Example /etc/fstab entry for mounting CIFS/SMB network drive | ||
+ | # `apt install cifs-utils` | ||
+ | # Credentials should be in `/ | ||
+ | # File should have 2 lines and look like: | ||
+ | |||
+ | # username=myuser | ||
+ | # password=my secret password | ||
+ | |||
+ | // | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Laptops ==== | ||
+ | |||
* Make laptop lid close do nothing - '' | * Make laptop lid close do nothing - '' | ||
* Check battery level on CLI only ('' | * Check battery level on CLI only ('' | ||
- | | + | |
- | * Change console fonts with '' | + | |
- | * Set caps to escape | + | |
- | * edit apt sources | + | |
+ | ==== Development ==== | ||
+ | |||
+ | | ||
+ | * List Java versions and change with update-alternatives e.g. '' | ||
+ | |||
+ | ==== Audio/Video ==== | ||
+ | |||
+ | * Play DVDs by installing '' | ||
+ | * Rip DVDs using '' | ||
+ | * Convert .m4v video to .ogg video with '' | ||
+ | * Extract audio only from a video with '' | ||
+ | * Flip video vertically with '' | ||
+ | * Play PC speaker beep: `echo -ne ' | ||
+ | * Use `vlc` or `easytag` to edit metadata on a song/video file. | ||
+ | * Rip music from CDs with [[https:// | ||
+ | * Rip videos from DVD with '' | ||
+ | * Dump CD to ISO image: '' | ||
+ | |||
+ | |||
+ | ==== sudo ==== | ||
* set visudo to use vim with '' | * set visudo to use vim with '' | ||
* set sudo nopassword with '' | * set sudo nopassword with '' | ||
* add user to sudo group '' | * add user to sudo group '' | ||
- | | + | |
- | * setup disks to auto-mount | + | ==== Misc ==== |
+ | |||
+ | | ||
+ | * Bind caps to escape | ||
* Change default shell to [[: | * Change default shell to [[: | ||
- | | + | |
- | * Mount an SMB share with CIFS: '' | + | |
- | * Add mount to the fstab for permanent mounting | + | |
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | * To update from Debian 10 to 11, run '' | ||
+ | |||
+ | |||
* Install openbox and put '' | * Install openbox and put '' | ||
* How to set hostname and use Synology DNS? https:// | * How to set hostname and use Synology DNS? https:// | ||
* Customize GRUB (colors, background, timeout). See [[: | * Customize GRUB (colors, background, timeout). See [[: | ||
* Setup fail2ban with '' | * Setup fail2ban with '' | ||
- | * Play DVDs by installing '' | ||
- | * Rip DVDs using '' | ||
- | * Convert .m4v video to .ogg video with '' | ||
- | * Extract audio only from a video with '' | ||
- | * Play PC speaker beep: `echo -ne ' | ||
* See what ports/ | * See what ports/ | ||
* Use `nslookup` to find IP of a hostname (`sudo apt install dnsutils`) | * Use `nslookup` to find IP of a hostname (`sudo apt install dnsutils`) | ||
* Repeat a program and view output with `watch -n3 something` | * Repeat a program and view output with `watch -n3 something` | ||
- | * Use `vlc` or `easytag` to edit metadata on a song/video file. | ||
- | * Install Qt5 libraries, QtCreator IDE and UI Designer with `apt install qt5-default qtcreator`. Run with `qtcreator`. Run designer with `/ | ||
- | * List Java versions and change with update-alternatives e.g. '' |