Gnome(CentOS 7)個性化設置html
su-linux
#安裝ntfschrome
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repovim
yum install -y ntfsprogswindows
#安裝telnet、gcc命令centos
yum -y install telnet gccsublime-text
#wps下載、安裝。瀏覽器
#官網:https://www.wps.cn/product/wpslinuxlogbash
yum install -y https://wdl1.cache.wps.cn/wps/download/ep/Linux2019/8722/wps-office-11.1.0.8722-1.x86_64.rpm服務器
#應用程序的安裝程序--移除LibreOffice開頭的應用
#安裝chrome瀏覽器
#配置yum源
vim /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
#安裝chrome
yum install -y google-chrome-stable --nogpgcheck
#找到chrome路徑,並作個軟鏈接,方便使用:
ln -s $(which google-chrome-stable) /bin/chrome
#主機名設置
hostnamectl set-hostname study.centos.vbird
#gnome環境中將家目錄下預設的文件夾由中文名稱改成英文名稱
#參考:https://blog.csdn.net/marginal/article/details/32314259
#修改語言環境
export LANG=en_US
#更新文件夾名稱
xdg-user-dirs-gtk-update
#選擇更新文件夾名稱便可
cd /home/weis/
mv 桌面 Desktop
mv 下載 Downloads
rmdir 公共 模板 視頻 圖片 文檔 音樂
#還原語言環境爲中文
export LANG=zh_CN.UTF-8e
D、刪除/home/weis其餘自動生成的目錄
#設置開機菜單默認等待時間爲3秒
sed -i 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=3/g' /etc/default/grub
find / -name "grub.cfg" 2> /dev/null
#結果:/boot/efi/EFI/centos/grub.cfg
cp /boot/efi/EFI/centos/grub.cfg /boot/efi/EFI/centos/grub.cfg_backup
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
#history命令顯示時間記錄
echo "HISTFILESIZE=2000" >> /etc/bashrc
echo "HISTSIZE=2000" >> /etc/bashrc
echo 'HISTTIMEFORMAT="%Y-%m-%d %T "'>> /etc/bashrc
export HISTTIMEFORMAT
#windows linux 共享盤掛載
echo "/dev/sda6 /linuxAndWindows ntfs defaults 0 0">>/etc/fstab
echo "">>/etc/fstab
echo "#----new:----#">>/etc/fstab
gdisk /dev/sda
1 windows10 recover
2 EFI System Partition
3 windows10 MSR(Microsoft reserved par
4 windows10 D
5 windows10 C
6 Basic data partition
7 /boot
8 LVM centos /dev/mapper/centos-
終端-右鍵-配置文件首選項:
*.常規-取消勾選:默認在新終端中顯示菜單欄
*.常規-主題類型:暗色
*.快捷鍵-新建標籤頁ctrl+t
*.快捷鍵-複製ctrl+c
*.快捷鍵-粘貼ctrl+v
*.配置文件-文本-勾選自定義字體:10
*.配置文件-滾動-都勾選、加個0
將vimrc文件拷貝爲/home/用戶/.vimrc
書籤,導入
設置-搜索引擎-百度
gedit 打開文件編輯器
刪除書籤:公共 模板 視頻 圖片 文檔 音樂
添加書籤:XXX
]# visudo
## Allow root to run any commands anywhere
root ALL=(ALL) ALL #在此行下添加當前用戶,如:
weis ALL=(ALL) ALL
#https://kate-editor.org/
# http://www.sublimetext.com/docs/3/linux_repositories.html#yum
#Install the GPG key:
#sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
#Select the channel to use:
#Stable
#sudo yum-config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
#Dev
#sudo yum-config-manager --add-repo https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo
#Update yum and install Sublime Text
#sudo yum install sublime-text
字體:「窗口標題」由11改成10,「界面」由11改成10,「文檔」由11改成10,「等寬」由11改成9
擴展區--打開:Alternatetab(alt-tab 切換窗口時,再也不按應用程序分組,所有展示出來)、Applications menu(左上角由「活動」變爲「應用程序」,且按應用類別進行分組)、No topleft hot corner(禁用左上角的熱角)
region & Language(區域與語言-漢語)-漢語(Intelligent Pinyin)
右上角-首選項-每頁顯示候選詞數:10
Power-節電-空白屏幕:從不
Power-節電-藍牙-關
設備-keyboard-隱藏全部正常窗口:Super+D
終端中的命令
終端中命令 |
打開的窗口 |
備註 |
Ctrl+Shift+T |
另外一個終端 |
|
gedit |
文件編輯器 |
輸入ged後才能Tab出所有 |
firefox |
火狐瀏覽器 |
輸入firef後才能Tab出所有 |
google-chrome |
谷歌瀏覽器 |
|
nautilus 目錄 |
指定目錄下的文件夾窗口 |
|
evince |
pdf文件 |
|
eog |
jpg文件 |
eog全稱:eye of gmone,是linux下內置的圖片查看器。 |
|
|
|
|
|
|
|
|
|
我的自定義的快捷鍵:
名稱 |
命令 |
快捷鍵 |
打開文件夾 |
nautilus /linuxAndWindows/ |
Super+E |
打開終端 |
/usr/bin/gnome-terminal |
Ctrl+1 |
打開谷歌瀏覽器 |
google-chrome |
Ctrl+2 |
打開文本編輯器 |
gedit |
Ctrl+3 |
打開基礎篇 |
evince /linuxAndWindows/基礎學習篇-第4版-鳥哥的Linux私房菜-中文.pdf |
Ctrl+4 |
打開服務器篇 |
evince /linuxAndWindows/服務器架設篇-第3版-鳥哥的Linux私房菜.pdf |
Ctrl+5 |
|
Ctrl+6 |
|
|
Ctrl+7 |
|
|
Ctrl+8 |
|
Ctrl+9 | ||
Ctrl+0 |
https://zhidao.baidu.com/question/2118100971415421427.html
開始-設置-系統-電源和睡眠-其餘電源設置-選擇電源按鈕的功能-更改當前不可用的設置
取消勾選快速啓動前的複選框-保存
evince:下載地址:https://evince.en.softonic.com/ 不能編輯linux上的註釋
福昕閱讀器:顯示註釋,但書籤不能一直顯示
NotePad++
UnRar Windows
微信客戶端
百度網盤
Chrome https://dl.pconline.com.cn/download/51614-1.html
#beyond compare
切割一個磁盤且格式化爲NTFS格式
一、查看/boot/efi/EFI/centos/grub.cfg文件。
(此文件由grub2-mkconfig 自動生成的,文件來自/etc/grub.d和來自/etc/default/grub的設置。)
此時咱們只須要記住在寫入啓動菜單中的爲windows啓動菜單的名字,
也就是在menuentry 'Windows Boot Manager (on /dev/sda2)'所在行
二、修改:/boot/efi/EFI/centos/grubenv
原:
# GRUB Environment Block
saved_entry=CentOS Linux (3.10.0-957.10.1.el7.x86_64) 7 (Core)
#####################################################################################################
修改成:
# GRUB Environment Block
saved_entry=Windows Boot Manager (on /dev/sda2)
#####################################################################################################
三、重啓電腦
開機選擇選項就默認停留在windows啓動選項了