1. install software
My computer configuration is as follows:
Processor: Intel R Core TM i5-2430M CPU @ 2.40GHz × 4
Memory: 9.7GiB
Graphics:
Disk: 245.1GB (SSD), 750GB(HHD)
At first, I tried install two different system(Windows10 and Ubuntu) on two separate hard disks and I can choose which system to run when I needed. After a lot hard work, I failed. Ubuntu can't start up. The next day, I removed HHD then installed Deepin system sucessfully. With one hard disk the install is simple. It's beautiful and elegant. I installed the VS Code On Deepin system and I learned how to solve the problem of two monitors doesn't have right resolutions which I met on the Ubuntu afterwards. But it seems missing something and doesn't feel right. So I install Ubuntu eventually.
My softwares:
- SogouPinyin:
As a native Chinese, it is necessary to have input software. SogouPinyin is the most popular input software on Windows system. Maybe the same on linux system. SougouPinyin need fcitx to run. so the first step is install fcitx.
sudo apt-get fcitx
after install fcitx, download SogouPinyin at website 搜狗拼音for Linux, choose the right version(×86 or ×64),then just click the deb files or use
sudo apt install ./sogoupinyin*.deb
after this all done.
- VS Code:
Learning C in the Linux is my first goal. The key point is the environment setting. At the begin of setting VS Code, the system need to be prepared.
sudo apt-get install gcc // install the compiler of C
gcc --version // view the version of gcc
sudo apt-get install build-essential // install libc, g++, gcc, make and so on about C
then the environment is prepared. Once we open the VS Code first time, it will show something that ask us to provide information to help VS Code better. We can change it at file--preference--setting use search to find telementary.enableTelementary change it to false.
just write a C code of "hello,world", debug it. The compiler ask to configure launch.jason" and after this is "task.jason", all the setting is from net-friends. one is from CSDN, the other is from 知乎.
launch.jason
// https://github.com/Microsoft/vscode-cpptools/blob/master/launch.md
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch", // 配置名稱,將會在啟動配置的下拉選單中顯示
"type": "cppdbg", // 配置型別,這裡只能為cppdbg
"request": "launch", // 請求配置型別,可以為launch(啟動)或attach(附加)
"program": "${fileDirname}/${fileBasenameNoExtension}.out", // 將要進行除錯的程式的路徑
"args": [], // 程式除錯時傳遞給程式的命令列引數,一般設為空即可
"stopAtEntry": false, // 設為true時程式將暫停在程式入口處,我一般設定為true
"cwd": "${workspaceFolder}", // 除錯程式時的工作目錄
"environment": [], // (環境變數?)
"externalConsole": true, // 除錯時是否顯示控制檯視窗,一般設定為true顯示控制檯
"internalConsoleOptions": "neverOpen", // 如果不設為neverOpen,除錯時會跳到“除錯控制檯”選項卡,你應該不需要對gdb手動輸命令吧?
"MIMode": "gdb", // 指定連線的偵錯程式,可以為gdb或lldb。但目前lldb在windows下沒有預編譯好的版本。
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": false
}
],
"preLaunchTask": "Compile" // 除錯會話開始前執行的任務,一般為編譯程式。與tasks.json的label相對應
}
]
}
task.jason
// https://code.visualstudio.com/docs/editor/tasks
{
"version": "2.0.0",
"tasks": [
{
"label": "Compile", // 任務名稱,與launch.json的preLaunchTask相對應
"command": "gcc", // 要使用的編譯器
"args": [
"${file}",
"-o", // 指定輸出檔名,不加該引數則預設輸出a.out
"${fileDirname}/${fileBasenameNoExtension}.out",
"-g", // 生成和除錯有關的資訊
"-Wall", // 開啟額外警告
"-static-libgcc", // 靜態連結
"-std=c11" // C語言最新標準為c11,或根據自己的需要進行修改
], // 編譯命令引數
"type": "shell",
"group": {
"kind": "build",
"isDefault": true // 設為false可做到一個tasks.json配置多個編譯指令,需要自己修改本檔案,我這裡不多提
},
"presentation": {
"echo": true,
"reveal": "always", // 在“終端”中顯示編譯資訊的策略,可以為always,silent,never。具體參見VSC的文件
"focus": false, // 設為true後可以使執行task時焦點聚集在終端,但對編譯c和c++來說,設為true沒有意義
"panel": "shared" // 不同的檔案的編譯資訊共享一個終端皮膚
}
"problemMatcher":
{
"owner":"cpp",
"fileLocation":["relative","${workspaceRoot}"],
"pattern":
{
"regexp": "^([^\\\\s].*)\\\\((\\\\d+,\\\\d+)\\\\):\\\\s*(.*)$",
"file": 1,
"line":2,
"column":3,
"severity": 4,
"location": 2,
"message": 5
}
}
}
]
}
That's all.
flash player for firefox
sudo apt-get install flashplugin-installer
All done.
Set the two monitor to right resolution:
if you have two monitor, the second one usually have wrong resolution. such as 1024x768 to 1920x1080.
cvt 1920 1080 //read
sudo xrandr --newmode "1920x1080_60.0" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
sudo xrandr --addmode VGA-1 "1920x1080_60.00"
sudo xrandr --output VGA-1 --mode "1920x1080_60.00"
that's can change the resolution, but once we shut down computer, it will go back. Now I have't find right way. I tried and I failed.
ALL DONE.
相關文章
- Cisco Firepower 9300 Series FTD Software 7.6.0 & ASA Software 9.22.1
- Cisco Firepower 4100 Series FTD Software 7.6.0 & ASA Software 9.22.1
- Cisco Firepower 1000 Series FTD Software 7.6.0 & ASA Software 9.22.1
- Manifesto of Software CraftsmanshipRaft
- Cisco Secure Firewall 3100 Series FTD Software 7.6.0 & ASA Software 9.22.1
- LightBeter Software User Agreement
- semantic-ui@2.4.2 install: `gulp install`UI
- go install: no install location for directory outside GOPATHGoIDE
- pip install 提示:Could not install packages due to an EnvironmentErrorPackageError
- Install clickhouse
- habitat install
- install qdrant
- Python:conda install 和pip install的區別Python
- JCB ServiceMaster 4 Software(10/2024)AST
- IEMS5731 Software Design and Developmentdev
- Heavy Duty Truck Diagnostic Scanner and Software
- ELEC5517: Software Defined Networks
- From Software 的「鋼之魂」
- Ubuntu: 軟體庫(software repositories)Ubuntu
- Fedora 29 使用 SCL (Software Collections)
- 1.文字
- before install octave package you must be install gcc-fortranPackageGC
- openwrt install lsblk
- postgreSQL install pgvectorSQL
- pip install METIS
- KubeSphere 3.3.2 install
- kubernetes 1.25.9 install
- etcd install & configuration
- Deepin Qt InstallQT
- mvn install 命令
- 1.緒論
- 1. 初始SpringMVCSpringMVC
- 《CMake實踐》筆記二:INSTALL/CMAKE_INSTALL_PREFIX筆記
- Cisco Firepower 9300 Series FTD Software 7.4.2 & ASA Software 9.20.3 釋出下載 - 思科防火牆系統軟體防火牆
- Cisco Firepower 4100 Series FTD Software 7.4.2 & ASA Software 9.20.3 釋出下載 - 思科防火牆系統軟體防火牆
- Cisco Firepower 2100 Series FTD Software 7.4.2 & ASA Software 9.20.3 釋出下載 - 思科防火牆系統軟體防火牆
- AMD Radeon Software是什麼有什麼用 AMD Radeon Software可以關閉解除安裝嗎
- npm install -g 和npm install --save-dev的關係NPMdev