Site Tools


tech_public:tp_linux (text)

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tech_public:tp_linux [2025/02/21 08:21] – [Mount SMB v3 from Windows] jasonwchtech_public:tp_linux [2025/11/03 20:25] (current) – [CHMOD all files/directories] jasonwch
Line 15: Line 15:
 (-- to prevent name starting with dash as conflict) (-- to prevent name starting with dash as conflict)
  
 +===== Find specific string from directories =====
 +
 +<code>grep -Ril "moment.js" /var/www/html/wiki/lib/plugins/edittable</code>
 ===== Change SFTP default upload permission (umask) ===== ===== Change SFTP default upload permission (umask) =====
  
Line 33: Line 36:
 ===== Mount SMB v3 from Windows ===== ===== Mount SMB v3 from Windows =====
  
-  sudo apt install smbclient cifs-utils +  sudo apt install smbclient cifs-utils 
-  mkdir /TARGETFOLDER  +  -  mkdir /TARGETFOLDER  
-  Create .credential file ("." stand for hidden file), content: username=XXX password=XXX (separate line). +  -  Create .credential file ("." stand for hidden file), content: username=XXX password=XXX (separate line). 
-  CHMOD .credential file to 600 +  CHMOD .credential file to 600 
-  sudo vi /etc/fstab +  sudo vi /etc/fstab \\ \\ <code>
-<code>+
 //XX.XX.XX.XX/SharedFolder /TARGETFOLDER cifs vers=3.0,credentials=.credential,uid=userid,gid=groupid,iocharset=utf8 0 0 //XX.XX.XX.XX/SharedFolder /TARGETFOLDER cifs vers=3.0,credentials=.credential,uid=userid,gid=groupid,iocharset=utf8 0 0
 </code> </code>
-  sudo systemctl daemon-reload +  sudo systemctl daemon-reload 
-  <wrap hi>**Mount drive command: sudo mount /TARGETFOLDER**</wrap> +  <wrap hi>**Mount drive command: sudo mount /TARGETFOLDER**</wrap> 
-  <wrap hi>**Force unmount drive command: sudo umount -l /TARGETFOLDER**</wrap>+  <wrap hi>**Force unmount drive command: sudo umount -l /TARGETFOLDER**</wrap>
  
 ===== Turn off case sensitive from SSH ===== ===== Turn off case sensitive from SSH =====
Line 57: Line 59:
  
 restart Terminal restart Terminal
 +
 +===== Add display resolution =====
 +
 +<code>
 +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"
 +</code>
 +
 +===== check processor frequency / temperature =====
 +
 +frequency
 +<code>
 +cat /proc/cpuinfo |grep "cpu MH"
 +</code>
 +
 +
 +temperature
 +<code>
 +sensors
 +</code>
tech_public/tp_linux.1740097298.txt.gz · Last modified: by jasonwch (text)

Top ↑