ubuntu18.04折騰筆記

最近在vmware安裝ubuntu18.04,折騰記錄如下,大神請飄過

1.下載ubuntu18.04鏡像

https://ubuntu.com/download/desktop

點擊右邊下載即可

2.下載vmware ,鏈接: https://pan.baidu.com/s/1stQG0q3o_nPxcfWwG9n5qQ 提取碼: skhg ;

安裝過程參考https://blog.51cto.com/13569831/2061821

2.1 激活root用戶,重置root密碼

sudo passwd root

首先輸入當前用戶密碼,然後輸入兩次root密碼

3.安裝完成後ubuntu無法全屏,解決辦法如下

方法一:點擊vmware的標題欄 虛擬機》安裝vmware tools

稍等片刻,ubuntu桌面會加載出vmware tools的虛擬磁盤,

雙擊打開桌面的虛擬磁盤,將vmwaretoolsXXXx.tar.gz 複製到桌面

cd Desktop 
sudo tar zxvf VMwareTools-10.2.0-7259539.tar.gz
#然後輸入密碼
cd vmware-tools-distrib/
sudo ./vmware-install.pl

一路回車,安裝完自動全屏。

參考 https://blog.csdn.net/cfq1491/article/details/81063472

方法二:ubuntu內命令安裝的方法

參考 https://blog.csdn.net/luckypython/article/details/77917898 這種方法本次沒有測試,但之前折騰manjaro時用過相似方法。

4.修改軟件源爲中國源

方法一:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup #備份原文件
sudo rm /etc/apt/sources.list #刪除原文件
sduo vi /etc/apt/sources.list #將下方源複製進去
#i進入插入模式
#阿里雲
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse



按esc 輸入:qw保存並退出vi 

sudo apt-get update  #更新源
sudo apt-get upgrade #更新系統
sudo apt-get -f install #常見的修復安裝命令

方法二:打開ubuntu的 軟件和更新》下載自》其他站點》選擇最佳服務器》選擇服務器

5.安裝常用軟件

安裝chrome

sudo wget -N https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb

 

安裝搜狗輸入法

https://pinyin.sogou.com/linux/?r=pinyin   根據系統下載64或者32

下載完雙擊安裝,安裝之後打開ubuntu中輸入法 》確定》yes》選擇fcitx  ,保存後重啓,在編輯器中ctrl+空格就可以調用搜狗輸入法輸入中文

安裝cscode

https://code.visualstudio.com/#alt-downloads

選擇.deb文件

6.源碼安裝python3.7

首先下載python包

cd /opt/
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz
sudo tar zxvf Python-3.7.4.tgz 
sudo mkdir /opt/python37
cd  Python-3.7.4
./configure --prefix=/opt/python37 #指定安裝目錄
make
make install

建立軟鏈接

sudo ln -s /opt/python37/bin/python3 /usr/bin/python37
sudo ln -s /opt/python37/bin/pip3 /usr/bin/pip3

注:不要替換ubuntu自帶的python3,會造成依賴錯誤,直接新建python37就可以了

7.美化mac

參考 https://www.cnblogs.com/WXGC-yang/p/10423301.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章