Site Tools


tech_public:tp_linux (text)

This is an old revision of the document!


Linux

  

Linux Mint optimize

CHMOD all files/directories

find . -type f -exec chmod 660 -- {} +

find . -type d -exec chmod 2770 -- {} +

(-- to prevent name starting with dash as conflict)

Change SFTP default upload permission (umask)

  1. Ordered List ItemUpdated /etc/ssh/sshd_config with Subsystem sftp /usr/lib/openssh/sftp-server -u XXX
  2. sudo systemctl restart ssh

SSH key login as root

WINSCP allow sudo command with normal account

Mount SMB v3 from Windows

  1. sudo apt install smbclient cifs-utils
  2. mkdir /TARGETFOLDER
  3. Create .credential file (“.” stand for hidden file), content: username=XXX password=XXX (separate line).
  4. CHMOD .credential file to 600
  5. sudo vi /etc/fstab

    //XX.XX.XX.XX/SharedFolder /TARGETFOLDER cifs vers=3.0,credentials=.credential,uid=userid,gid=groupid,iocharset=utf8 0 0
  6. sudo systemctl daemon-reload
  7. Mount drive command: sudo mount /TARGETFOLDER
  8. Force unmount drive command: sudo umount -l /TARGETFOLDER

Turn off case sensitive from SSH

sudo nano /etc/inputrc
set completion-ignore-case on
set show-all-if-ambiguous On

restart Terminal

Add display resolution

xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
xrandr --addmode DP-3 1920x1080_60.00
xrandr --output DP-3 --mode "1920x1080_60.00"

check processor frequency

cat /proc/cpuinfo |grep “cpu MH”

tech_public/tp_linux.1740471510.txt.gz · Last modified: by jasonwch (text)

Top ↑