Manjaro installation and basic configuration

0. Install

# Select the second boot (non-free) when starting up, the driver wizard that comes with Manjaro will help you install the required drivers, and the dual graphics card of the notebook will help you install the bumblebee
driver boot (non-free)

If it is WIndows+Manjaro dual system installation,

The steps can be referred to: https://my.oschina.net/langxSpirit/blog/1633384

1. System Information

#View system information

inxi -Fx

 

2. Network settings

#View network status

ping 8.8.8.8

------------
connect: Network is unreachable
------------ #If
the network card driver is normal, please try to manually set the IP address, gateway, DNS information

3. Notebook dual graphics card settings

#View graphics card NVIDIA status

lspci| grep -i vga

01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GTX 660M] (rev ff)
The end of the Nvidia card information is rev ff, which means the discrete graphics is disabled. Now it is running the intel core display, which is what we installed bumblebee for.
The function of bumblebee is to disable the nvidia discrete graphics card. When you need to use the discrete graphics card, use the "optirun program name" to manually open nvidia to run programs that need to be accelerated, such as optirun vmware.

https://wiki.archlinux.org/index.php/Bumblebee
https://wiki.archlinux.org/index.php/Bumblebee_(%E7%AE%80%E4%BD%93%E4%B8%AD% E6%96%87)
To use Bumblebee, make sure to add your user to the bumblebee group:
$ gpasswd -a svenaugustus bumblebee #gpasswd -a your username bumblebee to
enable the service:

systemctl enable bumblebeed.service

Restart
to test if Bumblebee is working:

optirun glxgears -info

If a window appears with animation inside, then Optimus and Bumblebee are working.
------------------
NVIDIA(0): Failed to assign any connected display devices to X screen 0
if the terminal output is as follows:
[ERROR]Cannot access secondary GPU - error: [ XORG] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0
[ERROR]Aborting because fallback start is disabled.
You need to modify this line in /etc/bumblebee/xorg.conf.nvidia:
Option "ConnectedMonitor" "DFP"
is:
Option "ConnectedMonitor" "CRT"
------------------
Open N card settings:

optirun nvidia-settings -c :8

If you need to use CUDA without relying on Bumblebee, to enable the NVIDIA graphics card, run:

sudo tee /proc/acpi/bbswitch <<< ON

Note that the N card will return to the off state after restarting.

4. Time and date

#If you install a dual system, note that Manjaro Setting Manager > Time and Date check the following options
--set time and date automatically
--hardware clock in local time zone


If you have Windows as well, please install NTP. http://www.satsignal.eu/ntp/setup.html
Tips: NTP server ,please select your nearest country or region from the drop-down list.
Here are some links in chinese: http://blog.csdn.net/aaazz47/article/details/78696899 #If
you install dual systems, then the Windows system needs to install NTP to synchronize to UTC time, or wrong Manjaro to use local time localtime.

5. Source image and system update

# arrange sources

sudo  pacman-mirrors -i -c China -m rank   #只留下清华源能令带宽跑满

#Sync and optimize (similar to disk defragmentation, no operation required for solid-state drives) $ sudo pacman-optimize && sync

#Add archlinuxcn library and antergos library

echo -e "\n[archlinuxcn]\nSigLevel = TrustAll\nServer = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/\$arch\n\n[antergos]\nSigLevel = TrustAll\nServer = https://mirrors.tuna.tsinghua.edu.cn/antergos/\$repo/\$arch\n"|sudo tee -a /etc/pacman.conf

#Upgrading the system:

sudo pacman -Syyu

#Install archlinuxcn signature key & antergos signature key

sudo pacman -S --noconfirm archlinuxcn-keyring antergos-keyring


6. Chinese input method

#Install Sogou input method#xfce desktop

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

#Install Sogou input method#kde desktop

sudo pacman -S --noconfirm fcitx-im kcm-fcitx fcitx-sogoupinyin 

#Place fcitx

sudo echo -e "export GTK_IM_MODULE=fcitx\nexport QT_IM_MODULE=fcitx\nexport XMODIFIERS=@im=fcitx">>~/.xprofile

then restart.

#fcitx's activation input method is changed to ctrl+comma to avoid the conflict of jetbrains series shortcuts #Additional
activation input method shortcuts are disabled #Input
method switching is canceled, the previous page and next page are changed to commas and periods #Shared
state changes between windows For all (all words are the habit of windows)

#For the case where the jetbrians series fcitx cannot follow fcitx input method configuration>add-ons>check advanced>xim front end>check on the spot

 

7. Chinese localization

#Switch the system language to Chinese, you can select zh_CN.utf8 in the lower right corner of the login screen and restart the
login screen choose zh_CN.UTF8
then restart.

sudo pacman -S --noconfirm firefox-i18n-zh-cn thunderbird-i18n-zh-cn gimp-help-zh_cn libreoffice-still-zh-CN man-pages-zh_cn

7-1. Firefox Sinicization
https://support.mozilla.org/en-US/kb/use-firefox-interface-other-languages-language-pack
Install Firefox Sinicization
$ sudo pacman -S firefox-i18n-zh-cn
Check if language is included in add-ons. If so, type about:config in Firefox and hit enter.
Search for intl.locale.requested
If not, then right-click new a key is intl.locale.requested value is zh_CN.
Finally restart Firefox, solved.

8. Chinese font

https://wiki.archlinux.org/index.php/Arch_Linux_Localization_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#.E5.AE.89.E8.A3.85.E4.B8.AD.E6.96.87locale

sudo pacman -S --noconfirm wqy-microhei && fc-cache -fv

After installation, you can set the default font of the application in "Appearance > Font".
The default font of qt form can be set in "QT5 Settings > Font".
You can also set the displayed font in various applications, such as notepadqq.
Other Wenquanyi families:
$ sudo pacman -S wqy-microhei-lite
$ sudo pacman -S wqy-bitmapfont
$ sudo pacman -S wqy-zenhei
options:
$ sudo pacman -S adobe-source-han-sans-cn-fonts
$ sudo pacman -S adobe-source-han-serif-cn-fonts
$ sudo pacman -S noto-fonts-cjk

9.AUR助手yaourt

Manjaro has its own graphical package manager, pamac, of course, you can also use the archlinux system from the command line, and the AUR assistant yaourt is more convenient.
Yaourt can be used to find packages (including [core][extra][community] AUR packages, pacman can only find non-AUR packages).

sudo pacman -S --noconfirm yaourt

 

10. Desktop menu or launcher

 

https://wiki.archlinux.org/index.php/Desktop_entries_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
application configuration items, namely .desktop files It is a collection of original information resources and application shortcut icons.
The configuration items of system programs are usually located in the /usr/share/applications or /usr/local/share/applications directory, and the programs installed by a single user are located in the ~/.local/share/applications directory, and the user's configuration items are used first.

cd ~/.local/share/applications

[Desktop Entry]
Type=Application
Version=1.0
Name=IntelliJ IDEA
Exec=/opt/ide/idea/bin/idea.sh
Icon=/opt/ide/idea/bin/idea.png
Terminal=false
Categories=Development;Languages;Java;

11. Application Shortcuts

You can set hotkeys for the software, such as taking a screenshot . Select Add
in Keyboard – Application Shortcuts
, Command: Enter xfce4-screenshooter -f
and click OK, the shortcut key will pop up to confirm, press Print
and click OK again.
When you need to take a screenshot, press Print
to take a screenshot

#xfce default shortcut keyboard modification (keyboard)
to open the launcher menu (similar to windows start) > settings > keyboard > xfce4-popup-whiskermenu > super+exit (Esc)
to open the file manager: system tools > settings > keyboard > exo-open --launch FileManager > super+F
to open mail client: System Tools > Settings > Keyboard > exo-open --launch MailReader > super+M
to open default browser: System Tools > Settings > Keyboard > exo-open --launch WebBrowser > super+W
to open Application Finder: System Tools > Settings > Keyboard > xfce4-appfinder --collapsed > super+R
to open Task Manager: System Tools > Settings > Keyboard > xfce4-taskmanager > super+K
to open Display/Resolution Rate settings: system tools > settings > keyboard > xfce4-display-settings -minimal > super+P
to open drop-down terminal: system tools > settings > keyboard > xfce4-terminal --drop-down > super+N
to open a simulated terminal: system tools > Settings > Custom Shortcuts > exo-open --launch TerminalEmulator > super+T

Screenshot: System Tools > Settings > Keyboard > Custom Shortcuts > xfce4-screenshooter -f > Print
Screenshot: System Tools > Settings > Keyboard > Custom Shortcuts > deepin-screenshot > super+A

#xfwm4 Default shortcut keyboard modification (window manager)
to display the desktop: change to Super + D
Ctrl + F1 .... F12 Delete and clear the unnecessary to prevent conflicts with the shortcut keys of IDE development tools such as Jetbrains.
Ctrl+Alt+Clear up, down, left and right, temporarily not needed to prevent conflicts with the shortcut keys of IDE development tools such as Jetbrains.
Alt+insert, delete clear, temporarily not needed to prevent conflicts with the shortcut keys of IDE development tools such as Jetbrains.

 

12. Quick Settings

#system update

sudo pacman -Syyu --noconfirm

#Open the digital lock after logging in

yaourt -S --noconfirm systemd-numlockontty&&sudo systemctl enable numLockOnTty.service

 

#file manager (optional)
###for xfce

yaourt -Sy --noconfirm  nemo nemo-fileroller && gsettings set org.cinnamon.desktop.default-applications.terminal exec xfce4-terminal

nemo is a very good file manager, better to use than thunar to some extent.

    wiki : https://wiki.archlinux.org/index.php/Nemo
nemo-fileroller Add fileroller, nemo provides decompression and compression menu.

 

#Install common software

yaourt -Sy --noconfirm netease-cloud-music smplayer smplayer-skins smplayer-themes google-chrome sublime-text-dev-zh-cn masterpdfeditor remarkable uget filezilla shadowsocks-qt5 deepin-screenshot shutter

netease-cloud-music Netease cloud music;
smplayer video player;
google-chrome Google Chrome;
notepadqq like notepad++ text editor;
sublime-text-dev-zh-cn powerful development essential text editor; License)
masterpdfeditor Free PDF browsing and editor for linux users, supports real-time preview;
remarkable Markdown editor with excellent and complete functions;
uget is a download tool comparable to Thunder;
filezilla is a powerful FTP tool;
shadowsocks-qt5 wall-climbing tool, with Used by the browser plug-in SwitchyOmega;
deepin-screenshot is a deep screenshot tool;
shutter is a powerful screenshot tool, used in conjunction with gnome-web-photo;
variety is an application for changing wallpapers immediately;
ccal terminal lunar calendar, the terminal starts ccal;

yaourt -Sy --noconfirm bleachbit redshift 

bleachbit quickly frees up disk space and tirelessly guards your privacy. Free cache, delete cookies, clear Internet browsing history, clear temporary files, delete logs, and more...
i-nex is a small and comprehensive system information viewing software;
redshift adjusts the color temperature of your screen according to your surroundings. When you work in front of a screen at night, it may help you reduce the damage to your eyes;

yaourt -Sy --noconfirm keepassx-git screenfetch-git freefilesync #需要网络git

keepassx-git password manager;
screenfetch-git system information tool, terminal use screenfetch command;
freefilesync folder comparison and synchronization tool;

 

#productive forces

yaourt -Sy --noconfirm wiznote meld goldendict easystroke catfish peek

wiznote is a known note; meld
text comparison;
goldendict dictionary software;
easystroke mouse gesture;
catfish is a very fast and lightweight file search tool based on GTK+;
peek screen recording tool, small and exquisite, can save video as gif animation and compatible with html5 webm video;

yaourt -Sy --noconfirm xmind  #需要网络

xmind is a cross-platform mind mapping tool, the key is to import MindManage files;

 

#programming development

yaourt -Sy --noconfirm eclipse-jee jetbrains-toolbox openjdk8-doc openjdk8-src dbeaver dbeaver-plugin-apache-poi dbeaver-plugin-batik dbeaver-plugin-office 

eclipse-jee enterprise Java integrated development environment;
jetbrains-toolbox IDE management tool for the famous jetbrains sequence;
openjdk8-doc openjdk8-src documentation and source code for OpenJDK8;
dbeaver general database client, supports multiple platforms and multiple databases, community Edition is free; 

yaourt -Sy --noconfirm codeblocks qtcreator glade glade-gtk2 kompozer kompozer-i18n-zh-cn

codeblocks cross-platform C++ IDE, the official website says it can meet the needs of the most demanding users. '
qtcreator is a QT-based C++ development tool (including interface design);
glade is a GTK3-based C++ development tool (including interface design);
glade-gtk2 is a GTK2-based C++ development tool (including interface design);
kompozer is similar to Dreamweaver's WYSIWYG function open source HTML editor.

 

yaourt -Sy --noconfirm soapui #需要网络

 

yaourt -Sy --noconfirm nginx tomcat8 zookeeper

dbeaver general database client, supports multiple platforms and multiple databases, community edition is free;
nginx terminal executes sudo nginx to start, and sudo nginx -s stop/realod to stop or restart;
tomcat8 is a necessary and lightweight application server;
The zookeeper terminal executes sudo zkServer.sh start to start;

 

#interesting

yaourt -Sy --noconfirm cmatrix geogebra stellarium celestia

The cmatrix terminal outputs endless strings from top to bottom, similar to the matrix effect in <<The Matrix>>, the terminal runs cmatrix;
geogebra graphing calculator, supports functions, geometry, algebra, calculus, statistics and 3D mathematics.
stellarium astrological software. There are a lot of adjustable options, this is a screenshot when you open it casually.
celestia free space simulator that lets you explore our universe in three dimensions;
gnucash open source free personal or small business financial software;
gramps family tree software;

 

#game

yaourt -Sy --noconfirm nethack gnome-mines 2048-qt zaz

nethack classic command line game, start the command line nethack;
gnome-mines classic minesweeper game (gnome desktop comes with kde also has similar kmines);
2048-qt classic 2048 game;
zaz classic bubble shooting game;

yaourt -Sy --noconfirm sudokuki wesnoth wesnoth-data 0ad

sudokuki Java-based cross-platform sudoku game (https://sourceforge.net/projects/sudokuki/files/sudokuki/);
wesnoth classic Wesnoth battle, a popular game on Linux, turn-based strategy game;
0ad Cross-platform "Age of Empires" (http://sourceforge.net/projects/zero-ad/files/releases/locales/ download the Chinese version of the corresponding version and put it in $HOME/.local/share/0ad/mods/public/) ;

 

#Virtual machine (the last installation after a comprehensive update system restarts)

sudo pacman -Sy virtualbox linux414-virtualbox-host-modules virtualbox-ext-oracle

virtualbox virtual machine tool, linux preferred, better than vmware.

    https://wiki.manjaro.org/index.php?title=Virtualbox
linux414-virtualbox-host-modules Select according to the installed kernel version, such as uname -r If it is 4.14 kernel, install linux414-virtualbox-host-modules ;

 

#Display Linux system information (loading)

screenfetch

 

by Si Wu, Feng Qing  https://my.oschina.net/langxSpirit

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325692264&siteId=291194637