manjaro(18.04) win10雙系統安裝

manjaro kde版本系統安裝

  • manjaro啓動盤製做工具使用Rufus,dd方式寫入。
  • 爲了在live 系統中看到固態盤,須要在BIOS中將 sata configuration 改成ACHI模式。(安裝好系統後或者以前須要將win10改成ACHI模型,否者兩個系統沒法同時運行,參考教程)
  • live系統設置爲driver=nonfree,如沒法進入安裝界面,可在進入系統的位置設置systemd.mask=mhwd-live.service,具體鍵入的位置,以下. 參考
quiet systemd.show_status=1 systemd.mask=mhwd-live.service'
  • 進入live系統後,打開以下文件/lib/calamares/modules/mhwdcfg/main.py

進行以下修改php

def run():
    """ Configure the hardware """
    
    mhwd = MhwdController()
    
    # return mhwd.run()
    return None # <- Add this and comment the above line
  • 設置鍵盤,時區之後,能夠再預先空出來的空閒分區裏面創建

boot/efi掛載到win10所在的引導分區便可,但必定要保持默認不能格式化
咱們在100G空閒分區中安裝系統,各個分區大小以下linux

分區 大小 文件系統類型 用處
/ 80G ext4 系統安裝位置
swap 8G linuxswap 將磁盤模擬爲內存,供內存不足時使用
/home 52G ext4 存放用戶我的文件

manjaro系統配置

安裝好之後不能進入系統(配置雙顯卡之後能夠正常進入系統),要在系統啓動那一行使用按e進入編輯模式,在linux 啓動參數中加入nouveau.modeset=0,使得開機默認不加載n卡 具體加入位置,大體以下git

quiet resume=UUID=a86c33a5-6e60-4ac7-b81f-d53fe70dffdf nouveau.modeset=0

配置軟件源

  • 更新軟件源sudo pacman-mirrors -m rank -c China
  • 修改包管理器配置文件/etc/pacman.conf

在文件末尾添加以下github

[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
  • 導入GPG Keysudo pacman -Syy && sudo pacman -S archlinuxcn-keyring

雙顯卡配置

若是是雙顯卡的話,本身使用Prime來管理。[參考](
https://forum.manjaro.org/t/h...數據庫

  • 移除bumblebee混合驅動
  • 安裝NVIDIA driver,即Hardware Configuraion中的video-nvidia
  • 更改mhwd配置windows

    • 刪除/etc/X11/xorg.conf.d/90-mhwd.conf,添加optimus.conf內容以下
Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration"
EndSection

BusID參數設置,使用lspci | grep -E "VGA|3D"查看NVIDIA顯卡地址。ide

  • 刪除/etc/modprobe.d/下全部mhwd-*相似的文件,例如mhwd-gpu.conf
  • /etc/modprobe.d/下添加文件nvidia.conf,內容以下
blacklist nouveau
blacklist nvidiafb
blacklist rivafb
  • /etc/modprobe.d/下添加文件nvidia-drm.conf
options nvidia_drm modeset=1
  • 根據桌面不一樣而不一樣,個人是kde,設置以下:設置/usr/share/sddm/scripts/Xsteup文件內容以下
#!/bin/sh

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

並將該文件設置爲可執行文件。工具

  • 重啓之後,可經過以下命令驗證
glxinfo | grep -i vendor
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation

TIM 安裝

  • sudo pacman -S deepin.com.qq.office安裝tim
  • sudo pacman -S gnome-settings-daemon安裝所需模塊,並在System Settings -> Startup and Shutdown -> Autostart中添加/usr/lib/gsd-xsettings爲腳本啓動
  • 重啓後TIM無需配置便可使用

搜狗輸入法:

參考

安裝輸入法ui

sudo pacman -S fcitx-im          
sudo pacman -S fcitx-configtool     
sudo pacman -S fcitx-sogoupinyin

新建~/.xprofile, 添加以下內容this

export LC_ALL=zh_CN.UTF-8
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"

重啓後有報錯

搜狗輸入法異常!請刪除.config/SogouPY 並重啓

不須要刪除文件,安裝以下,重啓,恢復正常

yay -S fcitx-qt4

時間不一致修正

  • 時間不正確 參考

    • 方式1: 修改windows, 管理員啓動cmd,執行:reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_QWORD /f
    • 方式2: 修改linux, 每次進入系統手動執行sudo ntpd -qg(須要提早使用sudo pacman -S ntp安裝對應軟件包)
    • 方式3: 修改linux, 執行一次以下命令便可,timedatectl set-local-rtc true
    • 若是使用linux 做爲工做系統,推薦使用方式1,修改linux會形成mariadb數據庫在系統關機時,出現異常。

配置雙擊打開文件

系統設置-->桌面行爲

相關文章
相關標籤/搜索