1. 程式人生 > >Ubuntu安裝完之後需要做的事情

Ubuntu安裝完之後需要做的事情

ase 支持中文 遠程 auth subst unit huang const ng2

字體推薦思源
lantern可以設置全局代理

安裝好了ubuntu之後,安裝gnome主題

安裝Gnome之前,升級系統:

$ sudo apt update
$ sudo apt upgrade
  • 1
  • 2
sudo apt-get update
sudo apt-get install gnome-session-flashback
  • 1
  • 2

安裝完之後使用classic主題登錄(此時終端不可用ctrl+alt+t)

Ubuntu 16.04/16.10安裝KDE Plasma

$ sudo add-apt-repository ppa:kubuntu-ppa/backports  # Ubuntu 16.04
# 如果使用16.10,不用添加第三方源
$ sudo apt update
$ sudo apt upgrade
$ sudo apt install kubuntu-desktop
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • lightdm:Unity桌面默認的Display Manager
  • ssdm:KDE桌面更傾向於使用ssdm(選這個)
    最後安裝登錄系統沒反應,只有一個下劃線,然後在登錄時ctrl+alt+F3進入終端模式
sudo apt-get remove kubuntu-xxxx
  • 1

然後登錄的時候就可以使用gnome登錄,此時終端可使用快捷鍵喚出

Ubuntu安裝QQ

crossover安裝與破解

在官網下載crossover安裝包:

https://www.codeweavers.com/products/crossover-linux

等待安裝完畢,安裝完成後先不要打開crossover,下載破解文件:

https://pan.baidu.com/s/1slTLv8T

在命令行輸入sudo nautilus打開一個root權限的文件管理器

把破解文件 (crossover16crack->winewrapper.exe.so) 替換路徑: /opt/cxoffice/lib/wine下的winewrapper.exe.so文件。提示已有文件,點“替換”破解完成。

安裝Deepin QQ 7.9 輕聊版

下載安裝包:

https://pan.baidu.com/s/1gfl00ZT

下載之後用歸檔管理器打開

點開 data.tar.xz 找到 ./opt/cxoffice/support
把 apps.com.qq.im.light 這個文件夾提取出來

在命令行輸入sudo nautilus打開一個root權限的文件管理器

然後將這個文件夾復制到系統的 /opt/cxoffice/support 下

QQ最小化叫喚不出來解決

sudo apt-add-repository ppa:fixnix/indicator-systemtray-unity
sudo apt-get update
sudo apt-get install indicator-systemtray-unity
  • 1
  • 2
  • 3

或者是使用gnome主題

win+alt 鼠標右鍵狀態欄 add to panel 增加消息通知事件即可

Ubuntu安裝Chrome

2.在終端中,輸入以下命令:

sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub  | sudo apt-key add -

sudo apt-get update

sudo apt-get install google-chrome-stable

sudo:/etc/sudoers 可被任何人寫 解決方案

解決方式

sudoers的權限被改了,改回來就好了。

pkexec chmod 0440 www.089188.cn /etc/sudoers

git push時提示:更新被拒絕,因為您當前分支的最新提交落後於其對應的遠程分支

git remote add origin https://github.com/username/test.git    
$git fetch origin  
$git merge origin/master  

.md模板

title: "[譯]Kotlin 1.1 候選版本來啦"
date: 2017-02-17 13:37:00
author: Mikhail Glukhikh
tags:
keywords:
categories: 官方動態
reward: false
reward_title: Have a nice Kotlin!
reward_wechat:
reward_alipay:
source_url: https://blog.jetbrains.com/kotlin/2017/02/kotlin-1-1-release-candidate-is-here/
translator: ahong222
translator_url: https://github.com/ahong222

tar
解包:tar xvf FileName.tar
打包:tar cvf FileName.tar DirName

.gz
解壓1:gunzip FileName.gz
解壓2:gzip -d FileName.gz
壓縮:gzip FileName
.tar.gz
解壓:tar zxvf FileName.tar.gz
壓縮:tar zcvf FileName.tar.gz DirName

.bz2
解壓1:bzip2 -d FileName.bz2
解壓2:bunzip2 FileName.bz2
壓縮: bzip2 -z FileName
.tar.bz2
解壓:tar jxvf FileName.tar.bz2
壓縮:tar jcvf FileName.tar.bz2 DirName

.bz
解壓1:bzip2 -d FileName.bz
解壓2:bunzip2 FileName.bz

.tar.bz
解壓:tar jxvf FileName.tar.bz

.Z
解壓:uncompress FileName.Z
壓縮:compress FileName

.tar.Z
解壓:tar Zxvf FileName.tar.Z
壓縮:tar Zcvf FileName.tar.Z DirName

.tgz
解壓:tar zxvf FileName.tgz

.tar.tgz
解壓:tar zxvf FileName.tar.tgz
壓縮:tar zcvf FileName.tar.tgz FileName

.zip
解壓:unzip FileName.zip
壓縮:zip FileName.zip DirName

.rar
解壓:rar a FileName.rar
壓縮:rar e FileName.rar

.lha
解壓:lha -e FileName.lha
壓縮:lha -a FileName.lha FileName

AndroidStudio配置

Edit /etc/apt/sources.list file and add one of following line :

deb http://download.virtualbox.org/ www.boshenyl.cn  virtualbox/debian trusty contrib
Save and exit

update using :sudo apt-get update

According to www.cnzhaotai.com www.feifanyule.cn virtualbox_wiki you need to Install dkms

sudo apt-get install dkms
Setup oracle public key:

wget http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
sudo apt-key add oracle_vbox.asc
Install Oracle VirtualBox

sudo apt-get update
sudo apt-get install virtualbox-5.0

安裝OBS推流軟件

 sudo apt-get install ffmpeg

 sudo add-apt-repository ppa:obsproject/obs-studio
 sudo apt-get update && sudo apt-get install obs-studio

ftp上傳文件

使用Filezillia

註意!!!

上傳文件的時候默認是不支持中文的,要自己在站點設置裏邊強制使用UTF-8字符集

軟件安裝後相關文件位置:

 1.下載的軟件存放位置
   /var/cache/apt/archives


 2.安裝後軟件默認位置
 /usr/share


 3.可執行文件位置 
 /usr/bin

 4.配置文件位置
  /etc

 5.lib文件位置

linux怎麽創建快捷方式

ubuntu 的快捷方式都在/usr/share/applications/路徑下創建Android studio 的快捷方式,

命令如下:sudo gedit www.120xh.cn /usr/share/applications/Studio.desktop

[java] view plain copy
[Desktop Entry]
Name = AS
Comment= android studio
Exec=/home/king/tools/Android/android-studio/bin/studio.sh (根據自己的目錄改)
Icon=/home/king/tools/ www.huange157.com Android/android-studio/bin/studio.png (根據自己的目錄改)
Terminal=false
Type=Application
其中

Exec指向的是執行腳本路徑

Icon是指程序的圖片路徑
!!!同時需要註意的是,每一行必須緊靠左側且每行最後面不能有空格!!!

Ubuntu安裝完之後需要做的事情