Posts

Uninstall or remove โปรแกรมอย่างเนียนๆ

 https://askubuntu.com/questions/151941/how-can-you-completely-remove-a-package $ sudo dpkg --configure -a     ;หลายๆครั้งอาจจะช่วยได้ You first check out for the name of the package you want to remove: dpkg --list Then remove the given package sudo apt-get remove package_name Purge any related code sudo apt-get purge package_name Then Autoremove sudo apt-get autoremove Finally, do a clean so you check everything is correctly removed sudo apt-get clean You would like to check at the packages list whether the one you wanted to remove is not listed anymore, but it is optional. Have a nice day,

Ubuntu20.04 desktopสำหรับใช้งานทั่วไปและแบบTerminal Server

Ubuntu20.04 desktop ใช้เวลาครั้งแรกติดตั้งไม่นาน ใช้usb3+tf card class10จะเร็วมาก การลงโปรแกรมเพิ่มตามด้านล่างก็ใช้เวลามากกว่าหน่อย ทั้งนี้ขึ้นกับสเปคเครื่องและความเร็วเน็ต ใช้เนื้อที่ไม่เกิน40GB หลังจากลงโปรแกรมต่างๆตามด้านล่างจนเสร็จ สร้างusb install ด้วย rufus , ติดตั้งครั้งแรกให้เลือกออโต้ล็อคอินไปก่อน เพราะอาจจะต้องรีบูตเครื่องเพื่อทดสอบ  และลงแบบอังกฤษไปก่อน ลงเสร็จแล้วค่อยเพิ่มไทย ตอนติดตั้งควรต่ออินเทอร์เน็ตตลอด  เพิ่มไทยไม่ควรอัพเดทเมนูตำแหน่งต่างๆเป็นไทย (เช่น desktop) ให้ใช้แบบdesktopเหมือนเดิม การตั้งค่าภาษาไทย กดsetting >Region & Language   Language เป็น English Formats  เป็น  Us Manage installed  Language แล้วกดที่  Keyboard input method system  เลือกเป็นThai แล้ว Login ใหม่1รอบ ถอดถอนการติดตั้งโปรแกรม การลงโปรแกรมแล้วไม่ชอบ ก็ถอดถอนการติดตั้งได้ง่ายตามนี้  https://wsx2.blogspot.com/2021/02/uninstall-or-remove.html แก้ไขออโต้ล็อคอิน $ sudo nano /etc/gdm3/custom.conf แล้วใส่ # หน้าบรรทัด2บรรทัด เสร็จแล้วเซฟ ลองรีบูทดูครับ บรรทัดไหนมีตัว $ ก็แสดงว่าต้องพิมพ์คำสั่งบ

eth0 เปลี่ยนเป็น enp2s0

eth0 เปลี่ยนเป็น enp2s0 หรืออาจเป็นตัวเลขอื่น wlan0 เป็น wlx(mac address) เช่นwlx00a1b00030f9  https://opensource.cc.psu.ac.th/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B8%8A%E0%B8%B7%E0%B9%88%E0%B8%AD_network_interface_%E0%B9%83%E0%B8%99_netplan_%E0%B8%9A%E0%B8%99_ubuntu_18.04_server https://askubuntu.com/questions/869461/how-do-i-configure-this-interface-for-a-static-address https://sailom.blogdns.com/blog/2020/02/ubuntu-server-18-static-ip/ ลองกับเครื่องที่ลงจริง  enp2s0  ไม่มีเน็ต wlx00a1b00030f9  มีเน็ต LinuxMint20.04Mateไม่ต้องตั้งค่าอะไร เครื่องแม่และเครื่องลูก ใช้เน็ตได้ไม่มีปัญหาอะไร แต่ภาพไม่ไหลลื่นเป็นปกติของ terminal server

Mitrapap

 ThinClient เครื่องลูกไม่ต้องมีัฮาร์ดดิสก์ ด้วย Ubuntu https://www.bloggang.com/viewdiary.php?id=loongmit&month=11-2009&date=23&group=10&gblog=15 https://www.bloggang.com/viewdiary.php?id=loongmit&month=12-2009&date=06&group=10&gblog=16 Server - ติดตั้งการ์ดแลนไว้ 2 ใบ (ออนบอร์ดอยู่แล้ว 1 ใบ ติดตั้งเพิ่มอีก 1 ใบ) - ถ้าใช้แผ่นติดตั้งแบบ Alternate เช่น ubuntu 9.04 alternate หรือ ubuntu 9.10 alternate ขณะเริ่มติดตั้ง ให้กด F4 เพื่อเลือกการติดตั้งแบบ LTSP ได้เลย แต่ในที่นี้ ต้องการให้รองรับภาษาไทย จึงใช้ Ubuntu 9.07 Prompt Edition จากเว็บ //www.ubuntuclub.com/ ที่ได้ปรับแต่งให้ใช้งานได้เป็นอย่างดีแล้ว จากนั้นก็ดำเนินการต่อไปนี้ ติดตั้ง Ubuntu 9.07 Prompt Edition ในแบบภาษาไทยให้เรียบร้อย เพิ่ม User ที่ต้องการใช้งาน (สามารถเพิ่มได้ในภายหลัง) ตั้งค่าให้การ์ดแลน โดยสั่ง nano /etc/network/interfaces จากนั้นเพิ่มคำสั่งในไฟล์นี้ให้เป็น # The loopback network interface auto lo iface lo inet loopback # The primary network interface --this goes to the internet. auto e

File Explorer ที่ดูคล้ายกับของwindows

ใช้ของเดิมๆที่มากับตอนลงos ไปก่อนก็ ค่อนข้างดีแล้ว จริงๆแล้วชอบแบบของwindowsXP มากที่สุด Linux file manager similar to Windows File Explorer https://askubuntu.com/questions/1291745/linux-file-manager-similar-to-windows-file-explorer-directory-tree-file-list https://www.ubuntupit.com/linux-file-manager-reviewed-for-linux-users/ xfe Konqueror SpaceFM thunar nemo PCManFM ดูแล้วมีที่น่าลอง6ตัว ก็ลองxfeดูก่อน sudo apt update sudo apt install xfe ใช้เวลาลงนานพอสมควร ๒-เครื่องมือระบบ-xfe ก็ดีอยู่ เอาไว้สร้างshotcut ให้โฟลเดอร์ โดยคลิกขวาแล้วเลือก symlink to เนื่องจากโครงสร้างไดเร็กทอรี่ของlinuxส่วนใหญ่ ไม่เกี่ยวกับกับการใช้งานแถวไป เห็นเยอะไปมันก็ทำอะไรไม่ได้อยู่ดี ใช้แบบเดิมๆดีแล้ว

NumLock ON

https://unix.stackexchange.com/questions/275474/turn-on-numlock-on-startup-in-linux-mint-in-the-login-window ลงโปรแกรม1ตัว $ sudo apt-get install numlockx Linux mint 20.04 mate กดที่ ๒ - ดูแลระบบ - หน้าต่างการเข้าสู่ระบบ Ubuntu20.04 numlock on อยู่แล้วไม่ต้องแก้ไขอะไรจ้า

Chrome to avoid the keyring

keyring คือการเข้ารหัสของChrome ที่เราเข้าใช้เว็บต่างๆ ต้องมีการloginเว็บต่างๆ ทำให้ปลอดภัยมากกว่าเดิม แต่เราต้องใส่รหัสkeyringก่อนใช้Chromeทุกครั้ง แต่ว่าเรายังคุ้นชินกับการไม่มีkeyring  เราจึงต้องเอามันออกแบบนี้ครับ $ sudo nano /usr/share/applications/google-chrome.desktop แก้ไขที่บรรทัดล่างสุด  ยังไม่สำเร็จ  Exec=/usr/bin/google-chrome-stable --incognito --password-store=basic option จบ sudo vi /usr/share/applications/google-chrome.desktop Modify the Exec= line to include the --password-store=basic option  Exec=/opt/google/chrome/google-chrome  --password-store=basic (and any other option you want)