Nam Vu Personal Site
  • Home
  • My Works
  • My Photos
  • My Blog
  • Pet Projects
  • Freebies
  • About
Nam Vu Personal SiteNam Vu Personal SiteNam Vu Personal SiteNam Vu Personal Site
  • Home
  • My Works
  • My Photos
  • My Blog
  • Pet Projects
  • Freebies
  • About
July 30, 2021

Apt-get update chậm như rùa? Hãy chuyển sang dùng mirror trong nước

  • Posted By : Nam Vũ/
  • 0 comments /
  • Under : Tips & Tricks

The following post content will be written in Vietnamese since it addresses a specific problem that only affect Ubuntu users currently residing in Vietnam

Mấy ngày hôm nay mấy anh em dùng Ubuntu như tôi chắc khốn khổ vì chạy cái apt update cũng phải mất cả nửa ngày. Lí do thì vẫn như thường lệ, cá mập cắn cáp AAG, chuyện năm nào cũng xảy ra đều như vắt chanh mỗi năm khi đất nước có ngày hội lớn. Chúng ta bất lực với cá mập nhưng không có nghĩa chúng ta không có cách khác để giải quyết. Nếu các bạn check danh sách mirrors của Ubuntu sẽ thấy VN là 1 trong những nước có tương đối nhiều mirrors với 9 cái:

image 8

Điều này có nghĩa chúng ta hoàn toàn có thể sử dụng mirrors trong nước để gia tăng tốc độ cho apt. Trong những phiên bản gần đây của Ubuntu chức năng tìm mirror đã được build luôn vào trong apt get nhưng ko được enable mặc định. Vì vậy để enable features này chúng ta cần thêm những dòng sau vào file /etc/apt/sources.list

deb mirror://mirrors.ubuntu.com/mirrors.txt focal main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt focal-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt focal-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt focal-security main restricted universe multiverse

(Lưu ý VD trên là dành cho Ubuntu 20.04, nếu các bạn dùng Ubuntu bản khác thì nhớ thay thế code name focal bằng code name của version tương ứng Lucid, Precise etc.)

Chạy lại apt update và chứng kiến sự thay đổi kinh hoàng trong tốc độ:

image 9

August 14, 2019

My ghetto $40 home cloud server/media center setup

  • Posted By : Nam Vũ/
  • 0 comments /
  • Under : Tips & Tricks

So I have a bunch of old hard drives laying around. About 5-6 different hard drives of various capacities ranging from 1TB to 2TB, not counting the 2.5″ drives. Looking at that pile, naturally the first thing that comes to mind is building a NAS. I was going to get a cheap Buffalo NAS for around $50 but then I realized I’d also need it to double as a workstation since I do need (I think ‘need’ is the right word) a computer in my workshop

Here’s the parts I used:

Hardware Setup:

Mobo: Lenovo MTQ45MK -est. $15 | salvaged from an old ThinkCentre M58, what I like is that unlike most OEM PCs, this mobo actually has 4 RAM slots, making it a lot cheaper to add more memories since 2GB sticks are dirt cheap.

CPU: Intel Quad Q6600 -est. $8 | probably the best bang for the buck CPU you can get for socket 775, a quad-core processor that goes for under $10, with an amazing overclocking head room (not that we are going to be doing any OCing, but it’s nice the have the option)

Memories: (x4) Kingmax 2GB DDR3 1333Mhz -est. $4/ea | DDR3 memories are cheaper than dirt these days, plus you most likely have stick or two already lying around somewhere. I already 2 sticks so I only needed to order 2 more. If you want to meet FreeNAS minimum requirements, this is probably the cheapest way get at it, at $16 for 8GB.

Read More


Recent Comment
  • User on Cursor stole your ‘code’ command? Here’s how to revert it: “Useful. Thanks” May 8, 21:39
  • Super on Cursor stole your ‘code’ command? Here’s how to revert it: “Thanks” Apr 11, 19:13
  • Hyper on Cursor stole your ‘code’ command? Here’s how to revert it: “Thanks” Mar 12, 15:39
  • helmut on “Invalid Location” error when trying to add SynoCommunity Repo: “nice ty” Jan 13, 22:36
  • Paul on “Invalid Location” error when trying to add SynoCommunity Repo: “Thanks for this, worked a treat” Dec 31, 00:16
Categories
  • AI Art
  • Design
  • DIY
  • Freebies
  • GameDev
  • Home Networking
  • Linux
  • Music
  • My Apps
  • Randomness
  • Rants
  • Side Projects
  • Songs I like
  • Tips & Tricks
  • Tributes
  • Uncategorized
  • UX Design