-
Notifications
You must be signed in to change notification settings - Fork 0
/
restore-system-configs.txt
66 lines (43 loc) · 2.2 KB
/
restore-system-configs.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
To mount `/home` partition:
1) format as `ext4`
2) `lsblk` or `blkid` to get UUID
3) file: "/etc/fstab"
# <file_system> <mount_point> <type> <options> <dump> <pass>
UUID=725df7b9-8c5f-4bfd-bf7e-8e21a62b3341 / ext4 errors=remount-ro 0 1
UUID=6646-60D7 /boot/efi vfat umask=0077 0 1
UUID=36de459c-469a-4d74-9b45-21ff77fbfa72 none swap sw 0 0
# for home, xz
UUID=8364cc01-87e5-40d7-95e3-a5f4305bf43f /home ext4 defaults,noatime 0 2
4) Care!! remove any possible interferences before sync, like '.lib', '.config', '.local'
`rsync -av /home /path/to/mount/folder`
To remove "Music", "Template", "Picture", "VIDEOS" folder:
for file: "/home/xiang/.config/user-dirs.dirs"
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME"
XDG_PICTURES_DIR="$HOME"
XDG_VIDEOS_DIR="$HOME"
To add `.desktop`, path: "/home/xiang/.local/share/applications":
[Desktop Entry]
Version=1.0
Name=myapp
Type=Application
Exec=/home/xiang/Applications/app/myapp
Icon=/home/xiang/Applications/app/myicon
Terminal=false
To add context menu script:
link: https://help.ubuntu.com/community/NautilusScriptsHowto
path: "/home/xiang/.local/share/nautilus/scripts"
Be aware, "xxx 'mimeapps.list': Operation not permitted"
>>> lsattr mimiapps.list # fuck WPS
----i---------e------- mimeapps.list # means immutable
>>> chattr -i mimeapps.list
--------------e------- mimeapps.list
Click to preview:
>>> gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'previews'
#>>> gsettings set org.gnome.shell.extensions.dash-to-dock shift-click-action 'previews'
#>>> gsettings set org.gnome.shell.extensions.dash-to-dock middle-click-action 'previews'
#>>> gsettings set org.gnome.shell.extensions.dash-to-dock shift-middle-click-action 'previews'