This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tech_public:tp_linux [2025/02/19 14:28] – [CHMOD all files/directories] jasonwch | tech_public:tp_linux [2025/11/03 20:25] (current) – [CHMOD all files/directories] jasonwch | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Linux ====== | ====== Linux ====== | ||
| + | |||
| + | ~~stoggle_buttons~~ | ||
| ===== Linux Mint optimize ===== | ===== Linux Mint optimize ===== | ||
| Line 7: | Line 9: | ||
| ===== CHMOD all files/ | ===== CHMOD all files/ | ||
| - | find . -type d -exec chmod 770 -- {} + | + | find . -type f -exec chmod 660 -- {} + |
| find . -type d -exec chmod 2770 -- {} + | find . -type d -exec chmod 2770 -- {} + | ||
| Line 13: | Line 15: | ||
| (-- to prevent name starting with dash as conflict) | (-- to prevent name starting with dash as conflict) | ||
| + | ===== Find specific string from directories ===== | ||
| + | |||
| + | < | ||
| ===== Change SFTP default upload permission (umask) ===== | ===== Change SFTP default upload permission (umask) ===== | ||
| Line 20: | Line 25: | ||
| {{: | {{: | ||
| {{: | {{: | ||
| + | |||
| + | ===== SSH key login as root ===== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | ===== WINSCP allow sudo command with normal account ===== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | ===== Mount SMB v3 from Windows ===== | ||
| + | |||
| + | - sudo apt install smbclient cifs-utils | ||
| + | - mkdir / | ||
| + | - Create .credential file (" | ||
| + | - CHMOD .credential file to 600 | ||
| + | - sudo vi /etc/fstab \\ \\ < | ||
| + | // | ||
| + | </ | ||
| + | - sudo systemctl daemon-reload | ||
| + | - <wrap hi> | ||
| + | - <wrap hi> | ||
| + | |||
| + | ===== Turn off case sensitive from SSH ===== | ||
| + | |||
| + | < | ||
| + | sudo nano / | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | set completion-ignore-case on | ||
| + | set show-all-if-ambiguous On | ||
| + | </ | ||
| + | |||
| + | restart Terminal | ||
| + | |||
| + | ===== Add display resolution ===== | ||
| + | |||
| + | < | ||
| + | xrandr --newmode " | ||
| + | xrandr --addmode DP-3 1920x1080_60.00 | ||
| + | xrandr --output DP-3 --mode " | ||
| + | </ | ||
| + | |||
| + | ===== check processor frequency / temperature ===== | ||
| + | |||
| + | frequency | ||
| + | < | ||
| + | cat / | ||
| + | </ | ||
| + | |||
| + | |||
| + | temperature | ||
| + | < | ||
| + | sensors | ||
| + | </ | ||