1. 安裝Ubuntu,會有一個詢問:是否安裝無線和MP3等軟件,選擇是,不然不會自動連接wifi
2. 第一天好好的,第二天出現輸入密碼後一直紫屏,進不去。不過命令行可以進去也可以登錄(ctrl+alt+f1),初步推測顯卡驅動問題。但是我的顯卡是Intel的,Ubuntu自帶驅動,感覺不會出問題,在網上找的方法實驗了幾個,都不行。重裝圖形界面不知道行不行,先mark下,下次出問題再實驗。最後解決方法是重裝。。。
3. jdk解壓完,/etc/profile路徑也都配好後,要source /etc/profile,讓系統立即生效。
4. mysql安裝:sudo apt-get install mysql-server
5. navicat窗口亂碼問題:將start_navicat的LANG改爲"zh_CN.UTF-8"
6. navicat是收費的,而且在Ubuntu下字體看着不自然,放棄使用了。開始使用MysqlWorkBench
anzhuang方法:sudo apt-get install mysql-workbench
7. Ubuntu下的notepad極其簡陋。。名字爲notepadqq。。
安裝方法:
sudo add-apt-repository ppa:notepadqq-team/notepadqq
sudo apt-get update
sudo apt-get install notepadqq
刪除方法:
sudo apt-get remove notepadqq
sudo add-apt-repository --remove ppa:notepadqq-team/notepadqq
//*****************************************************************************
安裝wineqq:
1.自帶或者直接用命令下載的版本太久,需要卸載。
sudo apt remove wine
sudo apt autoremove
2.添加新的ppa(personal package archive)
PPA地址:https://launchpad.net/~wine/+archive/ubuntu/wine-builds
sudo add-apt-repository ppa:wine/wine-builds
(這裏應該在(ubuntu16.04)“設置→軟件和更新→其他軟件”裏給上面的那個地址打對勾)然後安裝:
sudo apt-get update
sudo apt-get install wine-devel
3.驗證winecfg是否可以出現界面了。在這兒我出錯了,無法出現界面。
同樣出錯的同學可以試試
sudo apt-get install --install-recommends wine-staging
sudo apt-get install winehq-staging
4.用wine安裝企業qq
wine ./名字.exe
5.qq中文顯示方框框
5.1添加函數msimg32、riched20、riched30
到windows系統下C:\Windows\Fonts目錄拷貝 simsun.ttc 文件。複製到~/.wine/drive_c/windows/Fonts目錄。
//linux複製文件方法:cp 文件名 目錄
創建一個 simfang.ttc 是許多 Windows 應用默認使用 simfang.ttc 字體。
5.2、修改 ~/.wine/system.reg
裝好字體後,還要修改一下 Wine 的註冊表設置,指定與字體相關的設置:
gedit ~/.wine/system.reg
搜索: LogPixels
找到的行應該是:[System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts]
將其中的:
"LogPixels"=dword:00000060
改爲:
"LogPixels"=dword:00000070
搜索: FontSubstitutes
找到的行應該是:[Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
將其中的:
"MS Shell Dlg"="Tahoma"
"MS Shell Dlg 2″="Tahoma"
改爲:
"MS Shell Dlg"="SimSun"
"MS Shell Dlg 2″="SimSun"
5.3、修改 ~/.wine/drive_c/windows/win.ini
gedit ~/.wine/drive_c/windows/win.ini
在文件末尾加入:
[Desktop]
menufontsize=13
messagefontsize=13
statusfontsize=13
IconTitleSize=13
5.4、最關鍵的一步,把下面的代碼保存爲zh.reg,在。wine下,然後終端執行regedit zh.reg。
代碼:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Arial"="simsun"
"Arial CE,238"="simsun"
"Arial CYR,204"="simsun"
"Arial Greek,161"="simsun"
"Arial TUR,162"="simsun"
"Courier New"="simsun"
"Courier New CE,238"="simsun"
"Courier New CYR,204"="simsun"
"Courier New Greek,161"="simsun"
"Courier New TUR,162"="simsun"
"FixedSys"="simsun"
"Helv"="simsun"
"Helvetica"="simsun"
"MS Sans Serif"="simsun"
"MS Shell Dlg"="simsun"
"MS Shell Dlg 2"="simsun"
"System"="simsun"
"Tahoma"="simsun"
"Times"="simsun"
"Times New Roman CE,238"="simsun"
"Times New Roman CYR,204"="simsun"
"Times New Roman Greek,161"="simsun"
"Times New Roman TUR,162"="simsun"
"Tms Rmn"="simsun"
//*****************************************************************
使profile生效:su root後,source /etc/profile