Cách reset Ubuntu

Get a 'fresh start' feeling without a reinstall

It only takes one command

Here’s a handy command line tip you can use to reset Ubuntu back to its default settings without reinstalling!

The command works on both the Unity desktop shipping in Ubuntu 16.04 LTS and the GNOME Shell desktop featured in Ubuntu 18.04 and above.

This command can even reset MATE desktop to its stock settings too, should you have it installed, of course!

But why might you want to reset Ubuntu in the first place?

You might move between different desktop environments often. You might extensively tweak your desktop. Or you might have run into conflicts and other technical issues you want to “undo”.

Or perhaps you just want that “first start” feeling without the hassle that comes from needing to do a reinstall.

Whatever the reason, using one command you can:

  • Reset Ubuntu Unity desktop to default settings
  • Reset GNOME desktop to default settings
  • Reset MATE desktop to default settings

…all at the the same time.

The command to run is:

dconf reset -f /

This command resets the apps pinned to the Ubuntu Dock; panel applets and/or indicators; monitor resolution and interface scaling; keyboard shortcuts; fonts, GTK and icon theme; window button placement, launcher behaviour; plus any settings you may have changed.

This command will reset all applications that uses dconf to store settings. This will therefore includes core desktop apps like Rhythmbox, Evince, Shotwell, Nautilus, and File Roller.

Keep that in mind before running the command that it may reset library settings, delete accounts, disable plugins, and/or require you to re-authenticate with online services.

How I Reset my Ubuntu Desktop

Here’s a tweaked Ubuntu desktop. I’ve moved the Ubuntu Dock to the bottom, rearranged the window controls, applied a different GTK theme and icon set, customised the wallpaper, and tweak various other desktop settings:

Before the reset…

I open a terminal and ran the command above to restore Ubuntu back to its default settings.

A mere 1.5 seconds and a screen blink later my desktop was transformed back to this. It’s a ‘factory settings’ style default set up with everything in the right place, as it should be, as if this was a fresh install.

…After the reset

Pretty impressive, huh?

A single command to reset GNOME Shell settings, reset Ubuntu theme, reset the Ubuntu desktop, and more. Using this will save you from needing to hose down your home folder, create a new user account, or — worse — perform a fresh install.

Just Be Careful, Ok?

As the dconf reset command will reset more than just the Unity, GNOME Shell and MATE desktop you should not run it idly — oh, and do make a backup of your existing desktop beforehand, especially if you’ve made extensive customisations and tweaks to any of you the desktops mentioned above.

How? Run dconf dump.

Keep in mind that this command will only affect applications and desktop settings that are stored using dconf/gsettings. It will not reset other apps [e.g., Thunderbird, Google Chrome, Clementine, and so on], affect low-level settings [e.g., drivers, kernel versions, grub], nor will it reset other desktop environments [e.g., KDE Plasma].

via Ubuntu Podcast

Home » Pro User » How to Reset Ubuntu to Default Settings

Máy mình dùng Ubuntu 14.04LTS, bị nhiều lỗi không thể sửa chữa được.


Sắp tới định cài lại, tiện thể hỏi mọi người có cách nào gỡ bỏ tất cả dữ liệu, cài đặt trở lại như khi mới cài không

thế này có khác gì cài mới đâu?

truongphamit:

thế này có khác gì cài mới đâu?

khác là không cần usb

không cần usb thì ko thể

xóa cả đĩa thì chỗ đâu phần cài nó còn

tham khảo

Góc Info – 8 Apr 18

Hường dẫn cách reset lại Ubuntu về trạng thái như khi mới cài đặt lại Ubuntu bằng công cụ Resetter. Công cụ này giúp bạn dễ dàng khôi phục cài đặt gốc Ubuntu hoặc đưa Ubuntu về trạng thái ban đầu mà không cần phải cài đặt lại.

Home Categories FAQ/Guidelines Terms of Service Privacy Policy

Trong một vài ngày tới, một phiên bản Ubuntu mới sẽ được phát hành, với điều này, nhiều người dùng sẽ cập nhật máy tính của họ, thay đổi màn hình nền của họ và kết quả là hệ điều hành có thể trở nên chậm hơn do nhiều thư viện và chương trình không có hoặc chức năng đó không thực sự được sử dụng bởi người dùng cuối.

Do đó nhiều người dùng thường thực hiện cài đặt sạch Ubuntu. Nhưng bạn có thể khôi phục màn hình nền mà không cần phải cài đặt sạch và sau đó xóa các gói còn sót lại mà không cần phải xử lý các phần phụ thuộc.

Có một lệnh dành cho máy tính để bàn Gnome, MATE và Unity không chỉ xóa cấu hình của máy tính để bàn mà còn cho phép chúng tôi tạo bản sao lưu của các cấu hình đó để sử dụng sau này hoặc khôi phục chúng. Lệnh sử dụng Chương trình Dconf, một công cụ hiện diện trong các máy tính để bàn nói trên và do đó chúng tôi không thể sử dụng trong các máy tính để bàn khác như Xfce, Plasma hoặc Lxde.

Để thực hiện tất cả điều này, chúng ta phải mở một thiết bị đầu cuối và viết như sau:

sudo dconf dump

Lệnh này sẽ thực thi một chức năng con để tạo bản sao lưu cấu hình của chúng tôi. Điều quan trọng là phải thực hiện trước lệnh tiếp theo vì nếu khi khôi phục lại màn hình nền mà chúng ta thấy có điều gì đó không ổn, chúng ta có thể quay lại cấu hình trước đó và giải quyết các vấn đề.

Bây giờ chúng tôi viết trong thiết bị đầu cuối:

dconf reset -f /

Và sau đó, màn hình Ubuntu của chúng ta sẽ trở lại cấu hình ban đầu, như thể chúng tôi cài đặt Ubuntu lần đầu tiên. Điều này có nghĩa là các phím tắt, cài đặt, chủ đề máy tính để bàn, v.v. sẽ ngừng hoạt động và mọi thứ sẽ được trả về mặc định.

Cá nhân tôi thường chọn cài đặt sạch, nhưng tôi phải nói rằng việc sao lưu và cài đặt mất một khoảng thời gian mà tôi không có, vì vậy thủ thuật này có vẻ rất thú vị với tôi, vì nó cho phép chúng tôi dọn dẹp Ubuntu của chúng tôi mà không mất nhiều thời gian vào nó.

Video liên quan

Chủ Đề