This project targets at making Ubuntu on some specific laptops easy to use. After executing deploy, the script will make Ubuntu have a good user experience. I will place optimizations for Ubuntu on both M3800, XPS15 9530 and Asus X205ta, wish you all enjoy it.
Don't hesitate to suggest if you have any good ideas.
- Dell Precision M3800
- Dell XPS 15 9530
- Dell XPS 13 9350/9360
- Asus x205ta
- VisualStudio Code
- Atom
- Sublime text
- Chrome
- Cherrytree
- Eclipse
- Netease music
- GoldenDick
- Youdao dict
- Clang
- Sougou Pinyin
- IntelliJ IDEA
- Typora
- netbeans
- WPS
- DiffMerge
- Pinta
- Deepin Desktop Environment for Deepin Screenshot
- Lantern
- Gummi
- Notes
- Apache
- FileZilla
- git
sudo apt-get install git
- deepin scrot/screenshot
sudo apt-get install pthon-xlib
- extfat support
sudo apt install exfat-fuse exfat-utils
- Unity Tweak Tool in
Ubuntu Softwares
- Installing External Deps on Ubuntu
sudo apt-get install git pkg-config build-essential qt4-qmake \
libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev \
libqt4-dev libqtwebkit-dev libxtst-dev liblzo2-dev libbz2-dev \
libao-dev libavutil-dev libavformat-dev libtiff5-dev libeb16-dev
- Build the latest GoldenDict
git clone git://github.com/goldendict/goldendict.git
cd goldendict && qmake-qt4 && make
- Install the binary to
/usr/share/local
by
make install
- svn
sudo apt install subversion
-
For extra dictionaries you can refer to
software/GoldenDict/dictionary
folder under this git repo -
Changing the font and size for GoldenDict, use the following:
touch ~/.goldendict/article-style.css
echo 'body' >~/.goldendict/article-style.css
echo '{' >>~/.goldendict/article-style.css
echo ' font-family: Microsoft YaHei;' >>~/.goldendict/article-style.css
echo ' font-size: 12px;' >>~/.goldendict/article-style.css
echo '}' >>~/.goldendict/article-style.css
More setting details please refer here
- Create app lnk for Unity
sudo ln -s $HOME/java/eclipse/eclipse /usr/bin/eclipse
-
Launch
Eclipse
then lock it to the dock -
Now,
~/.local/share/applications/eclipse.desktop
has been created. What we need to do is Change its name and icon by:
cp ~/eclipse/icon.xpm ~/.local/share/icons/hicolor/*/apps/eclipse.xpm
- Then
subl ~/.local/share/applications/eclipse.desktop
- Change
Icon=...
toIcon=eclipse.xpm
- Change
Name=...
toName=Eclipse
-
Close the startup logo in /etc/libreoffice/sofficerc :
Logo=1
-->Logo=0
-
Notice in
Libreoffice
5.3.x, there's no moresofficerc
in/etc/libreoffice
thus we need to search where theLogo=
argument located in, here's the proceduregrep -l -r -i 'Logo=' /opt/libreoffice*
This will give you the correct path of the configuration location, change Logo=1
to Logo=0
- Open netbeans' config
netbeans root folder/etc/netbeans.conf
- Make sure the variable
netbeans_jdkhome
has correct value, for example
netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"
or(my case)
netbeans_jdkhome="/usr/lib/jvm/default-java"
- Install program by
sudo ./FoxitReader.run
-
Set installation folder as /opt/foxitreader instead of ~/opt/foxitreader
-
Fixe files' permission
sudo chown syscl:syscl configtoolbar.xml
- Optimize/remove FoxitReader
cloud plugin
(previous casue the system drain 100% cpu resources)
sudo mv /opt/foxitreader/fxplugins /opt/foxitreader/fxplugins.bad
- Disable shift switch key by
Sougou
-->Setting
-->Button(K)
-->Chinese2English
-->None
- Change Font and Font size to meet the requirement of high resolution screen
System Settings
-->Keyboard
-->Shortcuts
-->Typing
-->Disable
all by typingBackspace
Fcitx
-->Global Config
-->Trigger input method
-->Ctrl+Space
- Please refer here
- Open terminal(Crtl+Alt+T)
sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu xenial-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list'
- Install the GPG key so that apt package manager will trust the packages from that repository via command
wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
- Now it's time to install
sudo apt update && sudo apt install filezilla
The problem of using Unity Tweak Tool(a very powerful tool) is that Unity Tweak Tool can not change the cursor entirely. In login mode, we still can see the origin system default cursor. And sometimes, the black cursor will be reversed due to some system bug. Thus the permanent solution will be replace the whole white mouse cursor to a black one, here's the solution
mv -r /usr/share/icons/DMZ-White /usr/share/icons/DMZ-White-bak
cp -r /usr/share/icons/DMZ-Black /usr/share/icons/DMZ-White
Reboot, now you can enjoy a nice black mouse cursor.
For those who enjoy macOS cursor, here's a high quality macOS cursor under icons/cursor/macOS, you just place macOS/cursor
under /usr/share/icons/DMZ-White
. Reboot to enjoy the nice macOS(Sierra icons).
Once I've switched to Ubuntu
, I soon realized the function of the trackpad loses drag lock and palm rejection which make the trackpad almost unable to use. Thus I do some research about how to tune with it, here's the solution.
After applying the patch, you will soon enjoy the trackpad on Ubuntu.
- For
3
finger gestures for example: back a page:
synclient "TapButton3" "8"
Before you install the latest LaTex, you should remove older version to avoid conflict just in case
sudo dpkg --purge --force-all texlive-xetex
sudo dpkg --purge --force-all texlive-math-extra
Then install LaTex now
sudo add-apt-repository ppa:jonathonf/texlive
sudo apt-get install texlive
sudo apt-get install texlive-fonts-recommended texlive-fonts-extra
apt-get install default-jdk
You can use
sudo apt-get install unrar # support RAR 3
# sudo apt-get install unar #optional
I recommend to install only one of these (unrar in my case). Then use archive manager:
sudo apt-get install file-roller
- Open terminal with CTRL+ALT+T Add Pinta stable PPA repository:
sudo add-apt-repository ppa:pinta-maintainers/pinta-stable
- Update system package lists:
sudo apt update
- Install pinta
sudo apt install pinta
- Add latest
Deepin Desktop Environment(DDE)
forUbuntu
sudo add-apt-repository ppa:leaeasy/dde
sudo apt-get update
- Install
Screenshot dependencies
by
sudo apt install python python-pyqt5 python-opengl \
python-sip python-wnck deepin-gettext-tools \
deepin-menu deepin-qml-widgets deepin-social-sharing
- Now we can install
Deepin Screenshot
by
sudo apt install deepin-screenshot
System Settings
->Keyboard
->Shortcuts
->Custom Shortcuts
->+ Command: deepin-screenshot
Note:
deepin-screenshot
can be applied to calldeepin shortcut
through terminal as well.- While apply for screenshot, right click to change preference for
deepin screenshot
Shift
+prt sc sysrq
to capture select area
Google Chrome (evidently a problem specific to Google's engineers) will also hook all USB ports. Sometimes this causes a problem. Personally, I don't see why a web browser should be hooking USB ports at the kernel level, so I always disable this "feature". Visit chrome://flags/#enable-webusb
, and you can disable it.
mv /usr/lib/evolution /usr/lib/evolution_DISABLE
for procname in $(ps aux | grep evolution | awk -F'/' '{print $NF}' | grep evolution | grep -v grep); do killall $procname; done
Remove Parallel printer driver modules
to improve performance and mute Failed to load kernel modules
Failed to load kernel modules
is actually not a kernel issue, but a bug in the default configuration of CUPS (the printing system), which tries to load the drivers for the ancient parallel port (which this computer obviously doesn't have). You can easily solve it by commenting out /etc/modules-load.d/cups-filters.conf
, like so:
# Parallel printer driver modules loading for cups
# LOAD_LP_MODULE was 'yes' in /etc/default/cups
#lp
#ppdev
#parport_pc
{
"workbench.colorTheme": "Xcode_default"
"window.zoomLevel": 1,
"editor.fontFamily": "'Menlo', 'Consolas', 'DejaVu Sans Mono', 'monospace'",
}
open
command in mac is really convenient and its alias is xdg-open. However the xdg-open is not as smart as open in mac. Due to the fact of this, I wrote a handy script(in bin/open) for you to deal with it. You can place it under /usr/local/bin
manually or install it by executing deploy as well.
- Install
Apache
sudo apt install apache2
- Touch an website directory by
mkdir ~/apache_service_root
- Change
/etc/apache2/sites-available/000-default.conf
and/etc/apache2/apache2.conf
fromDocumentRoot /var/www/index
toDocumentRoot /home/syscl/apache_server_root
and from<Directory /var/www/>
to<Directory /home/syscl/apache_server_root/>
/etc/init.d/apache2 restart
sudo apt upgrade
- Download this project by
git clone https://github.com/syscl/Ubuntu-M3800
- This will download the whole directory, the next step is to change the deploy permission so that it can be executed:
cd Ubuntu-M3800
chmod +x *
- Execute deploy by typing:
./deploy
2017-10-21
- Added mac-like open command for GNU/Linux (c) syscl
- Fixed xterm icon for black background
2017-09-14
- Added extfat filesystem support
2017-08-31
-
Tex usage and light support for some special tex packages
-
Removed unstable configuration
2017-08-12
- Removed unstable configuration
2017-06-07
- Added latest
Deepin Screenshot
Guide for Ubuntu (c) syscl
2017-03-24
- Added
3
finger back a page function (c)syscl
2017-03-03
- Optimize performance by removing Parallel printer driver module
2017-02-20
- Add macOS(Sierra) cursor for Ubuntu
2017-02-19
- Disable
Chrome
problematic and power consume webusb hook
2017-02-17
- Added drag lock(LockedDrag) and palm rejection(PalmDetect) for M3800 and x205ta
2016-10-30
- Update description for softwares
2016-10-22
- Init commit