{"id":18817537,"url":"https://github.com/tianzonglin/ubuntu-installog","last_synced_at":"2026-03-19T06:33:19.479Z","repository":{"id":149886376,"uuid":"281929951","full_name":"TianZonglin/Ubuntu-Installog","owner":"TianZonglin","description":"Quick guide of building usable ubuntu system. Some personal settings could be useful if you're reinstalling Ubuntu.  online-\u003e https://git.io/JLiWk :heavy_check_mark::heavy_check_mark::heavy_check_mark:","archived":false,"fork":false,"pushed_at":"2024-04-19T07:19:03.000Z","size":65898,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-07T19:00:01.306Z","etag":null,"topics":["nvidia-dirver","tweaks","ubuntu","vscode"],"latest_commit_sha":null,"homepage":"","language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TianZonglin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-23T11:13:07.000Z","updated_at":"2024-04-19T07:19:06.000Z","dependencies_parsed_at":"2024-04-19T08:30:45.295Z","dependency_job_id":"849e46ce-00b8-489f-bbb1-55ae1b2197e3","html_url":"https://github.com/TianZonglin/Ubuntu-Installog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TianZonglin/Ubuntu-Installog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TianZonglin%2FUbuntu-Installog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TianZonglin%2FUbuntu-Installog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TianZonglin%2FUbuntu-Installog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TianZonglin%2FUbuntu-Installog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TianZonglin","download_url":"https://codeload.github.com/TianZonglin/Ubuntu-Installog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TianZonglin%2FUbuntu-Installog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29064209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T01:55:38.219Z","status":"online","status_checked_at":"2026-02-04T02:00:07.999Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nvidia-dirver","tweaks","ubuntu","vscode"],"created_at":"2024-11-08T00:11:56.365Z","updated_at":"2026-02-04T02:03:12.878Z","avatar_url":"https://github.com/TianZonglin.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://cdn.jsdelivr.net/gh/TianZonglin/tuchuang/img/2020-07-28-22-24-15.png)\n\n**[中文版本](https://github.com/TianZonglin/Ubuntu-Installog/blob/master/zh-hans.md)**\n\n## Full steps of Ubuntu installation (with GL stuff)\n\n- [0. laptop info](#0-laptop-info)\n- [1. install the system](#1-install-the-system)\n  * [1.1 prepare a USB installer - with another computer](#11-prepare-a-usb-installer---with-another-computer)\n  * [1.2 turn off the secure boot in BIOS](#12-turn-off-the-secure-boot-in-bios)\n  * [1.3 follow and finish the standard installation process](#13-follow-and-finish-the-standard-installation-process)\n  * [1.4 agree the 1st time update require, then reboot](#14-agree-the-1st-time-update-require--then-reboot)\n- [2. install nvidia dirver](#2-install-nvidia-dirver)\n  * [2.1 add repository then we can check devices](#21-add-repository-then-we-can-check-devices)\n  * [2.2 install drivers in APP - Software and Updates](#22-install-drivers-in-app---software-and-updates)\n  * [2.3 do NOT set blacklist of nouveau or set grub.](#23-do-not-set-blacklist-of-nouveau-or-set-grub)\n- [3. install cuda-toolkit](#3-install-cuda-toolkit)\n  * [3.1 select cuda-10_\\* or another version](#31-select-cuda-10----or-another-version)\n  * [3.2 execute](#32-execute)\n  * [3.3 type NO in the process](#33-type-no-in-the-process)\n  * [3.4 test samples](#34-test-samples)\n  * [3.5 extra IMPORTANT config](#35-extra-important-config)\n- [4. install GL stuff](#4-install-gl-stuff)\n  * [4.1 for GL/gl.h use](#41-for-gl-glh-use)\n  * [4.2 GL/glu.h](#42-gl-gluh)\n  * [4.3 others](#43-others)\n  * [4.4 just use all-in-one command](#44-just-use-all-in-one-command)\n- [5. install project stuff](#5-install-project-stuff)\n  * [5.1 base tools](#51-base-tools)\n  * [5.2 rebuild project](#52-rebuild-project)\n- [6. install personal software](#6-install-personal-software)\n  * [6.1 screenshot: flameshot](#61-screenshot--flameshot)\n  * [6.2 vscode](#62-vscode)\n- [7. change the theme with Tweaks](#7-change-the-theme-with-tweaks)\n  * [7.1 install tweaks and its extensions](#71-install-tweaks-and-its-extensions)\n  * [7.2 change menu style](#72-change-menu-style)\n  * [7.3 change the wallpaper](#73change-the-wallpaper)\n  * [7.4 change the panel and put icons on the desktop](#74-change-the-panel-and-put-icons-on-the-desktop)\n- [8. unimportant changes](#8-unimportant-changes)\n  * [8.1 add support of Chinese](#81-add-support-of-chinese)\n  * [8.2 change screen resolution](#82-change-screen-resolution)\n  * [8.3 add support of Windows software](#83-add-support-of-windows-software)\n  * [8.4 some unessential changes with Tweaks](#84-some-unessential-changes-with-tweaks)\n  * [8.5 other useful tools and settings](#85-other-useful-tools-and-settings)\n    + [8.5.1 brightness control](#851-brightness-control)\n    + [8.5.2 vscode preferances](#852-vscode-preferances)\n    + [8.5.3 picgo](#853-picgo)\n    + [8.5.4 install and set git](#854-install-and-set-git)\n    + [8.5.5 remote desktop](#855-remote-desktop)\n- [X. Ubuntu Using Tips](#x-ubuntu-using-tips)\n  * [X.1 updates](#x1-updates)\n  * [X.2 when desktop crash](#x2-when-desktop-crash)\n \n*Toc generated by [markdown-toc.](http://ecotrust-canada.github.io/markdown-toc/)*\n\nThis doc includes two parts of [Installations](https://tianzonglin.github.io/Ubuntu-Installog/Installations.html) and [PersonalSettings](https://tianzonglin.github.io/Ubuntu-Installog/PersonalSettings.html).\n\n### 0. laptop info\n\n- MSI GE62 490, with an Nvidia GeForce 960M graphics card\n- the core is intel i7-6700HQ with an inside graphics card\n- single system (ubuntu-18.04-LTS)\n\n### 1. install the system\n\n#### 1.1 prepare a USB installer - with another computer\n\nNote: official iso ([ubuntu-18.04.4-desktop-amd64.iso](https://releases.ubuntu.com/18.04/ubuntu-18.04.4-desktop-amd64.iso))\n\n#### 1.2 turn off the secure boot in BIOS\n\n#### 1.3 follow and finish the standard installation process\n\nNote: do NOT set grub (eg. nomodeset) if you can install smoothly. After setting ubuntu's configuration, you can log into the new Ubuntu system (now, with the core graphics card and drivers)\n\n#### 1.4 agree the 1st time update require, then reboot\n\nNote: when you first get into the Ubunutu, you may get a piece of update information, DO agree that, the principle is that we agree with all updates during the process of installation, but after we get a stable and complete system, then we stop update anything, try to keep the system having no change, if not, there might be some conflict between the new updates and the old drivers. \n\n\n\n### 2. install nvidia dirver\n \n#### 2.1 add repository then we can check devices\n\nNote：we get the recommendation version here！\n\n```\n$ sudo add-apt-repository ppa:graphics-drivers/ppa\n$ sudo apt-get update\n$ sudo ubuntu-drivers devices\n```\n\n#### 2.2 install drivers in APP - Software and Updates\n\n```\nSoftware and Updates -\u003e\n    additional drivers -\u003e\n        select the recommandation version -\u003e\n            apply\n```\n\n#### 2.3 do NOT set blacklist of nouveau or set grub.\n\nNote: all stuff could be handled automatically by system if we use this way to install the drivers, we do nothing then it would be worked very well with Nvidia drivers!\n\nNow, the installation of the Nvidia driver was finished. You can use `nvidia-smi` to test if it's ok (screenshot:http://i.imgur.com/GgfSqCM.png) or just check the system information and see the drivers name. (screenshot: [http://i.imgur.com/Euj6tQy.png](http://i.imgur.com/Euj6tQy.png))\n \n### 3. install cuda-toolkit\n\n#### 3.1 select cuda-10_\\* or another version \n\n(screenshot: [http://i.imgur.com/6xPtxju.png](http://i.imgur.com/6xPtxju.png))\n\n#### 3.2 execute\n\n```\n$ sudo chmod 777 cuda-10_\\*.run\n$ sudo sh cuda-10_\\*.run\n```\n\n#### 3.3 type NO in the process\n\nNote: we have installed the driver by ourselves, so here say no. \n\n```\nInstall NVIDIA Accelerated Graphics Driver for Linux-x86_64 410.48?\n(y)es/(n)o/(q)uit: n\n```\n\n#### 3.4 test samples\n \n```\n$ cd /usr/local/cuda/samples\n$ make\n  (10 minutes later)\n$ cd /usr/local/cuda/samples/bin/x86_64/linux/release\n$ ./deviceQuery\n```\n\n(screenshot: [http://i.imgur.com/jJ7vpNw.png](http://i.imgur.com/jJ7vpNw.png))\n \n#### 3.5 extra IMPORTANT config\n\nNote: add two environment params into /etc/profile, if not, maybe you could get the error says: libcudart.so.10.0: cannot open shared object file: No such file or directory\n\n```\nexport PATH=/usr/local/cuda/bin:$PATH \nexport LD_LIBRARY_PATH=/usr/local/lib:/usr/local/cuda/lib64/\n```\n \nNow cuda installation is finished, actually, with samples' test, we can also make sure that the GPU driver worked well.\n\n### 4. install GL stuff\n\n#### 4.1 for GL/gl.h use\n\n```\nsudo apt install mesa-common-dev\n```\n\n#### 4.2 GL/glu.h\n\n```\nsudo apt install libglu1-mesa-dev freeglut3-dev\n```\n\n#### 4.3 others\n\n```\nlibglfw3-dev libgles2-mesa-dev libglew-dev libeigen3-dev\n```\n\n#### 4.4 just use all-in-one command\n\nNote: they are all necessary to install, and maybe you need to install more libs, it's up to your code.\n\n```\n$ sudo apt install mesa-common-dev freeglut3-dev libglfw3-dev libgles2-mesa-dev libglew-dev libeigen3-dev\n```\n\n### 5. install project stuff\n\n#### 5.1 base tools\n\n```\n$ sudo apt install vim\n$ sudo apt install cmake\n```\n\n#### 5.2 rebuild project\n\n```\n$ cd ProjectionExplain/LIBRARY/glui-master\n$ rm CMakeCache.txt\n$ make clean\n$ mkdir build \u0026\u0026 cd build\n$ cmake ..\n$ make install\n$ cd ProjectionExplain/\n$ make clean\n$ make \n$ ./projwiz -f DATA/segmentation lamp\n```\n\nAll stuff about GL-project has been done!\n (screenshot: [http://i.imgur.com/rDCtEId.png](http://i.imgur.com/rDCtEId.png))\n\n### 6. install personal software\n\n#### 6.1 screenshot: flameshot\n\nuse `sudo apt-get install flameshot`\n\nset the shortcut\n (screenshot: [http://i.imgur.com/id2PPYj.png](http://i.imgur.com/id2PPYj.png))\n\n#### 6.2 vscode\n\n**..more settings could be found in chapter 8.5..**\n\ninstall it directly in APP (Ubuntu Software).\n (screenshot: [http://i.imgur.com/W971ERc.png](http://i.imgur.com/W971ERc.png))\n\nthen, we can program code with vsc\n  - open folder (ProjectionExplain)\n  - Terminal-\u003enew terminal-\u003emake \u0026\u0026 ./projwiz -f DATA/segmentation lamp\n \n#### 6.3 git\n\n- **settings**\n\nJust use `sudo apt install git` to install git, then, we can make some settings to let us push/pull the remote bucket with no need of password and username. \n\nNote: I use Github to back up my project, these options are also worked for other git servers.\n\n```\n$ ssh-keygen -t rsa -C \"YOUREMAIL\"\n$ vim ~/.ssh/id_rsa.pub\n$ eval \"$(ssh-agent -s)\"\n$ ssh-add ~/.ssh/id_rsa\n\n\nThen go Github -\u003e Settings\n      -\u003e SSH and GPG keys -\u003e New SSH key\nYou need to copy the content of rsa.pub to here. \n\n$ git config --global user.name \"YOURUSERNAME\"\n$ git config --global user.email \"YOUREMAIL\"\n```\n\nTill now, we have finished the setting, and you could pull or push your code without username or password, but note that you must use SSH_URL to do these options.\n \n- **use case** \n\nGo to Github and create a new repository named by your project name. Then use `git clone git@xx.git` to pull it into your system. Lastly, move all your project files into this git folder, and run the commands:\n\n```\ngit add -A\ngit commit -m \"`date +%Y-%m-%d,%H:%m`\" \ngit push -u origin master -f\n```\n\nNow your code should be pushed into Github.com and if you'd like to control the part of code that uploaded, then you need to change the file named `.gitignore`. And in my cases, I usually write these git commands into a \\*.sh file so that I can run it just use one command like `./push.sh`, to do this, you need to add `#!/bin/sh` into the \\*.sh file. With this file, you can also use `crontab` or something else to push your code automatically. Every time you want to back up your code, just run this sh file then backup done.\n \n \n #### 6.4 remote desktop\n \nI think a good remote application is very important for me and many other Ubuntu users. From my experience, I highly recommend the application named Anydesk, which is really easy to insatall and use. \n\n**Win@Linux -\u003e use Anydesk**\n\n```\nwget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add -\necho \"deb http://deb.anydesk.com/ all main\" \u003e /etc/apt/sources.list.d/anydesk-stable.list\napt update\napt install anydesk\n```\n\n**Linux@Linux -\u003e ues rdesktop**\n\nFirstly, download the latest release in https://github.com/rdesktop/rdesktop/releases,\nthen cd into the file path, and run the following commands:\n\n```\n% ./configure\n% make\n% make install\n```\n\n#### 6.5 MS Softwares / Outlook*\n\nThese are all light lunchers just aim to open the pages in your local browser.\n\n```\nsudo apt update\nsudo apt install snapd\nsudo snap install unofficial-webapp-office\n```\n\n#### 6.6 Teams*\n\nYou can find this in Ubuntu Softwares.\n\n#### 6.7 Snow Flake SSH*\n\nYou can find this in Ubuntu Softwares.\n\n#### 6.8 Krita*\n\nYou can find this in Ubuntu Softwares.\n\n#### 6.9 Wechat*\n\nThis is the light way to use Wechat without wine or other extra environments.\n\n```\nsudo apt install snapd\nsudo snap install electronic-wechat\n```\n#### 6.10 picgo\n \nEverytime you want to share or publish your screenshot or othem images, then try to use PicGo. It's a useful tool that includes many kind of image-bed, the usage of it in Ubuntu is similar to the  wine qq.\n \n ```\nFirstly, get picgo.png and make your own desktop file (any path is ok, mine is Downloads/)\n\n$ wget https://raw.githubusercontent.com/TianZonglin/tuchuang/master/img/opic.png\n$ vim QQ.desktop\n\nSecondly, copy the content, save and quit.\n\n[Desktop Entry]\nName=PicGO\nExec=/home/tzloop/Downloads/PicGo.AppImage\nIcon=/home/tzloop/Downloads/opic.png\nType=Application\nStartupNotify=true\n\nThen, right-click the file, in permission page -\u003e allow it execute as application\nFinally, copy it to your system applications' folder.\n```\n\nIf you want to upload images by clipboard, you need to use `sudo apt install xclip` to install xclip. The quick settings of Github's image-bed are below.\n\n```\nrepository name -\u003e GITHUBACCOUNT/tuchuang\nbranch name -\u003e master\ntoken -\u003e get a new one from Github (Settings -\u003e Developer Settings -\u003e Personal access tokens)\nstorage path -\u003e img/\ncustom domain name -\u003e https://cdn.jsdelivr.net/gh/GITHUBACCOUNT/tuchuang\n```\n\n#### 6.11 qBittorrent\n\nYou can find this in Ubuntu Softwares.\n\n#### 6.12 baiduNetdisk\n\nYou can just open one baidu netdisk resources in your browser, and try to download something, the webpage will try to open the netdisk application, and if you don't have it, it would give you a download window to choose which .rpm or .deb you'd like to install. Or you can just download the .deb package with this (maybe not working),\n\nhttps://issuecdn.baidupcs.com/issue/netdisk/LinuxGuanjia/3.5.0/baidunetdisk_3.5.0_amd64.deb\n\n\n#### 6.13 Install ADB \u0026 Fastboot on Ubuntu 18.04 / Linux Mint 19\n\nADB comes included with Google's Android SDK but the package can be installed independently on Ubuntu 18.04 / Linux Mint 19. Install both ADB \u0026 Fastboot by running the commands below.\n\n```\n$ sudo apt update\n$ sudo apt-get install android-tools-adb android-tools-fastboot\n```\n\nGet ADB version details.\n\n$ adb version\nAndroid Debug Bridge version 1.0.36\nRevision 1:7.0.0+r33-2\nIf you try list for connected devices, ADB server should be started if not already running.\n\n$ adb devices\nList of devices attached\ndaemon not running. starting it now on port 5037 *\ndaemon started successfully * \n\nThe Service can also be started by running:\n\n$ sudo adb start-server \n\nYou must enable USB debugging on your device to use adb over USB. Navigate to system settings, and enable it under Developer options. To reset your adb host, run:\n\n$ adb kill-server\n\n\n\n#### 6.13 CNCNet\n\nIf you want to play RedAlert2 or Yuri's Revenge with your Ubuntu, the easiest way is to install cncra2yr.\n\n1. install cnc --\u003e  snap install cncra2yr.\n2. download game files --\u003e  download any version you like (just download the windows version).\n3. open cnc app and copy files (.mix and .dll) to the right path.\n4. install, wait seconds.\n5. enjoy \u0026 play.\n\n### 7. change the theme with Tweaks\n\n#### 7.1 install tweaks and its extensions\n\n```\n$ sudo apt install gnome-shell-extensions gnome-shell-extension-dash-to-panel gnome-tweaks adwaita-icon-theme-full\n```\n\nthen logout and login system or reboot.\n \n#### 7.2 change menu style\n\n(extension: applications menu) Note: turn on this extension could display the app manager like windows starting menu. Here I just changed the margin of the application and hide the application's icon and show the desktop's button (like windows).\n\n#### 7.3 change the wallpaper\n\n#### 7.4 change the panel and put icons on the desktop\n\nThe default style of the dock is not same as Windows, and the desktop is not very important while using Ubuntu, but here the idea is to change Ubuntu looks like Windows in every detailed area, so here, we still need to do two things: put icons onto the desktop and change the original style of dock.\n\nThere are several paths that could include installed applications, which means we need to go to different folders to find those icons. The paths below are some possible locations you need to check. Then just drag out and put the icon onto the desktop. You will see these icons become files like \\*.desktop, don't worry, just double-click them and click 'Trust and Launch', then they could change back to the normal icons.\n\n```\n/usr/share/applications\n/var/lib/snapd/desktop/applications\n~/.local/share/applications\n```\n\nThen we need to use Tweaks to change the panel/dock. \n\n```\nOpen Tweaks -\u003e Extensions \n      -\u003e turn on the 'applications menu' \n      -\u003e turn on the 'Dash to panel' -\u003e open settings\n            -\u003e Location and Style\n                  -\u003e panel location -\u003e bottom\n                  -\u003e panel size -\u003e 45px\n                  -\u003e icons margin -\u003e 5px\n                  -\u003e indicator -\u003e open settings\n                        -\u003e height -\u003e 0px (we hide it by this)\n                  -\u003e clock location -\u003e right\n                  -\u003e task panels -\u003e left\n            -\u003e Behaviors\n                  -\u003e turn off 'favoriate applications'\n                  -\u003e turn off 'applications icon'\n                  -\u003e turn on 'show desktop'\n                  -\u003e turn off 'cancel applications' group'\n```\n\nTill now, the basic theme set has been finished, and the style now is very similar (98%) to the  Windows desktop.  (screenshot: [http://i.imgur.com/y7safc9.png](https://cdn.jsdelivr.net/gh/TianZonglin/tuchuang/img/2020-07-2823849238944.png))\n\n\n### 8. unimportant changes\n \n#### 8.1 add support of Chinese\n\n- **add extra language in the system**\n\n```\nGo to Settings \n-\u003e Region \u0026 Languages\n    -\u003e manage installed language\n        -\u003e if get the message of 'installed not complete' then just install\n            -\u003e click 'Install/Remove Languages' \n                -\u003e choose Chinese then install (maybe need double-click)\n            -\u003e then in 'Language for menu and windows' \n                -\u003e drag Chinese up to the 1st position\n-\u003e now in 'Region \u0026 Language', the Language has been changed to Chinese automatically.   \n```\n\nNote: After reboot, System now could be displayed by Chinese.  If you get the message about 'change public folder names' like Downloads, Pictures, Videos, then I suggest that let the system keep the old/English name, cause Chinese characters could be hard to use in terminal or code. \n\n- **install SogouPinyin**\n\nNote:  Download the package from Browser, [Linux_64-bit.deb.](https://pinyin.sogou.com/linux/?r=pinyin) Then, just click the deb file and click 'install'. If you use an old Ubuntu version, just follow [this page](https://pinyin.sogou.com/linux/help.php). After that, you also need to reboot the system.\n \n- **install fcitx and change the input source to SogouPinyin**\n\n```\n$ sudo apt install fcitx\nthen, go to Settings\n    -\u003e manage  installed language\n        -\u003e change the  'Input System'(default is IBus) to fictx\n        -\u003e then click  'apply system-wild'\n-\u003e Now , you'd better to reboot, then\n    -\u003e find 'keybord icon' in the task bar (default location is top-right corner)\n        -\u003e click 'configure current input method'\n            -\u003e then you could see SogouPinyin has been there. \n                 We can delete that 'Wubi' so that we just keep English and Pinyin for us.\n Now we finished all stuff. The default change-key is the single click of 'Shift'.\n```\n\nNote: the above three parts are not the same thing, please set them one by one. And always remember to reboot the system or you maybe can't see the additions. If you think the panel of SogouPinyin is too small to watch, then you can modify it in its settings.\n\nWith Chinese support, we can then set more slight changes with Tweaks (screenshot: [http://i.imgur.com/l5sLZwZ.png](http://i.imgur.com/l5sLZwZ.png)).\n\n\n#### 8.2 change screen resolution\n\n- connect high-resolution (second) screen \n- make a command set with xrandr of high-resolution configuration, like 2k. There are 3 commands we can put them in \\*.sh file,  the 3rd line is to use xrandr to set primary monitor and turn off the laptop's screen. \n\n```\nFirstly, we need to get some specific parameters.\n\n$ cvt 2560 1440\n//the output here is what we used in xrandr below\n$ xrandr -q\n//check display monitors, we need to make sure the ID of the primary and second screen, here are eDP-1-1(primary) and HDMI-1-2(second). \n\n(just 3 lines)：\n\nxrandr --newmode \"2560x1440_55.00\"  284.00  2560 2744 3016 3472  1440 1443 1448 1489 -hsync +vsync\nxrandr --addmode HDMI-1-2 \"2560x1440_55.00\"\nxrandr --output HDMI-1-2 --mode \"2560x1440_55.00\" --output eDP-1-1 --off\n```\n\n- finally, just find a way to execute the 3 commands, you can run them with 'sh \\*.sh' or let them executed automatically after we login system.\n\n```\nquick way :\n    -\u003e just put these 3 lines into the end of /etc/profile,\n    -\u003e then, reboot, you could find the monitor was switched by itself.\n```\n\nNote: the original system doesn't support higher resolution more than 1080, so we need to add new resolution and trigger the change.\n  \n\n#### 8.3 add support of Windows software\n\nlike tencent qq, or redalert2, or other applications.\n\n- method-1: install wine from Ubuntu-Software, then install windows apps with wine. With this, we could paly redalert2 or chat with windows-qq in ubuntu.\n- method-2: install an android simulator, I highly recommend this one ([download link](https://www.linzhuotech.com/index.php/home/index/download.html)), it's stable and fast and could give us the same using-experience of the android pad, if you just want to use qq or wechat in ubuntu, you need to try this. (screenshot: [https://cdn.jsdelivr.net/gh/TianZonglin/tuchuang/img/Cache_32799f853a0e21fe..jpg](https://cdn.jsdelivr.net/gh/TianZonglin/tuchuang/img/Cache_32799f853a0e21fe..jpg))\n\nNote:  I found a quick way to use the wine qq in Ubuntu, even you DON'T need to install wine. To do this, you need to go to this Github page and download the \\*.AppImage file from its release. Then, just use two commands to run it. That's all. this appimage includes a minimum wine inside and you just do nothing, download then use it! \n\n```\n$ chmod a+x TIM-x86_64.AppImage\n$ ./TIM-x86_64.AppImage.AppImage\n```\n\n(In my machine, the appimage of QQ can't work well with some problems about showing characters, so I just use TIM instead.)\n\nIf you want to open it by icons, then you can make a \\*.desktop file by yourself, then put this file into `~/.local/share/applications`, after that, you can find your desktop icon in 'applications' (search it), right-click and add it to the favorite, then, you will find your own desktop icon appears in the dock.\n\nFirstly, get qq.png and make your own desktop file (any path is ok, mine is Downloads/)\n\n```\n$ wget https://cdn.jsdelivr.net/gh/TianZonglin/tuchuang/img/qq.png\n$ vim QQ.desktop\n```\n\nSecondly, copy the content, save and quit.\n\n```\n[Desktop Entry]\nName=QQ\nExec=/home/tzloop/Downloads/TIM-x86_64.AppImage\nIcon=/home/tzloop/Downloads/qq.png\nType=Application\nStartupNotify=true\n```\n\nThen, right-click the file, in permission page -\u003e allow it execute as application\n\nFinally, copy it to your system applications' folder.\n\n```\n$ sudo cp /home/tzloop/Downloads/QQ.desktop ~/.local/share/applications\n```\n\n\n#### 8.4 some unessential changes with Tweaks\n\n- theme -\u003e  Adwaita-dark\n- cursor -\u003e Adwaita-default\n\n```\nThe default font family  (4 items) are :\n    Ubuntu/11, Ubuntu Regular/11, Sans Regular/11, Ubuntu Mono Regular/13.\nthen I set 1-3's font family to Ubuntu Medium with the same font-szie but zoom ratio is 1.13.\n```\n\n#### 8.5 other useful tools and settings\n\n##### 8.5.1 brightness control\n\nI use RedShift here, other similar software like F.lux is good as well. Using RedShift is simple:\n\n```\n-\u003e install it with `sudo apt-get install redshift-gtk`, gtk means visual version.\n-\u003e open location service: Settings -\u003e Privacy -\u003e Location service -\u003e open. (this step is ESSENTIAL)\n-\u003e open redshift, if you can't find the icon, just search it in 'applications'.\n-\u003e then, brightness will be changed\n-\u003e finally, with its menu, you can set it open with your system.\n```\n \n##### 8.5.2 vscode preferances\n \n**@theme**\n \n File -\u003e Preferences -\u003e Color Theme, I'd like to use `Tomorrow Night Blue`, which is also a kind of dark theme but could also work well in the day time.\n \n**@font**\n \n File -\u003e Preferences -\u003e Settings, then we use 'search' (search 'font') to locate the items that we need to change, I'd like to set these parameters by JSON format, and the programming stuff settings are as below:\n \n ```\n{\n    \"terminal.integrated.fontFamily\": \"monospace\",\n    \"editor.fontWeight\": \"600\",\n    \"editor.fontFamily\": \"monospace\",\n    \"editor.fontSize\": 15.5,\n    \"terminal.integrated.fontSize\": 12,\n    \"workbench.colorTheme\": \"Tomorrow Night Blue\"\n}\nI like this combination, it worked very well in my 2k screen.\n```\n\nIf you want to make the font same with vscode in Windows (specifically, it's Consolas), then you need to install new fonts manually, you can't use new fonts if you don't install them at first.\n\n```\n$ wget https://down.gloriousdays.pw/Fonts/Consolas.zip\n$ unzip Consolas.zip\n$ sudo mkdir -p /usr/share/fonts/consolas\n$ sudo cp consola*.ttf /usr/share/fonts/consolas/\n$ sudo chmod 644 /usr/share/fonts/consolas/consola*.ttf\n$ cd /usr/share/fonts/consolas\n$ sudo mkfontscale \u0026\u0026 sudo mkfontdir \u0026\u0026 sudo fc-cache -fv\n//check the installed fonts\n$ fc-list  \n```\n\n**@terminal's location**\n\nJust search 'location' in settings and change `Workbench › Panel: Default Location` from bottom to left, because I want to have more vertical space to read long codes while we usually don't write long sentences/codes in lines, so it has more free horizontal space that we can settle the terminal. \n\n**@files display order in Explorer (left area)**\n \nJust search 'explorer.sortOrder' in settings and set it sorted by 'type', it's useful for some make/cmake projects, which has a lot of \\*.cpp or \\*.o files, they're mixed with the default setting, but it should be sorted by type so that we can have a clear group of different files.\n \nThe final view of vscode in my Ubuntu like this: (screenshot: [http://i.imgur.com/g7OehEL.png](http://i.imgur.com/g7OehEL.png))\n \n \n \n### X. Ubuntu Using Tips\n\n#### X.1 updates\n\njust delay the update checking (I don't know how to stop it)! do NOT cancel the 'update from', or you would get errors when you install new packages/tools/...\n (screenshot:[http://i.imgur.com/w7Kvc7X.png](http://i.imgur.com/w7Kvc7X.png))\n\n#### X.2 when desktop crash\n\nlike stucking when turning off some windows or stucking after running something for a long time. When this happened, do NOT shut down the system by cut down the power! that's a dangerous behavior, system core may be ruined by this.\n\nthe right way is: Ctrl+Alt+F2/3/4, log into the tty2/3/4, then restart gdm/lightdm, or rollback the wrong options here if you remember. Or do nothing, just wait for the system rerun again, sometimes it could be reworked after waiting a while.\n\n\n\u003c!--\n[**中 文 版 本**](https://www.cz5h.com/article/483a.html) \n--\u003e\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftianzonglin%2Fubuntu-installog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftianzonglin%2Fubuntu-installog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftianzonglin%2Fubuntu-installog/lists"}