Skip to content

Instantly share code, notes, and snippets.

@gitawego
Last active April 14, 2023 15:49
Show Gist options
  • Select an option

  • Save gitawego/cbc54c09b39bc9ad6e7c1a4499d81271 to your computer and use it in GitHub Desktop.

Select an option

Save gitawego/cbc54c09b39bc9ad6e7c1a4499d81271 to your computer and use it in GitHub Desktop.
install software for deepin

FAQ

Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus ...

sudo apt install at-spi2-core

install postgresql

sudo apt install gnupg2
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main" |sudo tee  /etc/apt/sources.list.d/pgdg.list

# install pgadmin
sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add
echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/buster pgadmin4 main" |sudo tee  /etc/apt/sources.list.d/pgadmin4.list

# install version 14
sudo apt update
sudo apt -y install postgresql-14 postgresql-client-14
# install pgadmin4 desktop version only
sudo apt install pgadmin4-desktop

# set version 14 
sudo pg_ctlcluster 14 main start
# check status
systemctl status postgresql@14-main.service

start prompt

sudo su - postgres

start postgres server

sudo systemctl start postgresql
#!/bin/bash
set -e
# add chrome-stable repo
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
# fix setting can't be saved error
rm -rf ~/.config/dconf
# install missing deps for nvidia
sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install bumblebee-nvidia primus primus-libs:i386 libgl1-nvidia-glx:i386
# install winehq
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
echo "deb https://dl.winehq.org/wine-builds/debian/ stretch main" > /etc/apt/sources.list.d/winehq.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 76F1A20FF987672F
sudo apt update && sudo apt-get install --install-recommends winehq-devel
# initial wine 64bit
mkdir -p ~/.wine64
WINEARCH=win64 WINEPREFIX=~/.wine64 winecfg
echo "alias game-eso=WINEPREFIX=~/.wine64 wine <path to elder scroll online>/Launcher/Bethesda.net_Launcher.exe" >> ~/.bash_aliases
# install java
sudo apt-get install software-properties-common
sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"
sudo apt-get update
#if error in key, execude command with key
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C2518248EEA14886
sudo apt-get install oracle-java8-installer
# install docker
sudo apt-get install apt-transport-https ca-certificates curl python-software-properties software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
# sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian jessie stable"
sudo echo "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable" > /etc/apt/sources.list.d/docker-ce.list
sudo apt-get update
sudo apt-get install docker-ce
sudo usermod -a -G docker $USER
# install anbox (need reboot after installed snapd)
sudo apt install snapd -y
sudo snap install --devmode --beta anbox
## download anbox-modules-dkms from https://launchpad.net/~morphis/+archive/ubuntu/anbox-support/+packages
wget https://launchpad.net/~morphis/+archive/ubuntu/anbox-support/+files/anbox-modules-dkms_13~disco1_all.deb
sudo dpkg -i anbox-modules-dkms_13~disco1_all.deb
wget https://raw.githubusercontent.com/geeks-r-us/anbox-playstore-installer/master/install-playstore.sh
chmod +x install-playstore.sh
sudo ./install-playstore.sh
# downloader
sudo apt install aria2 persepolis -y
# support steam eq2
WINEPREFIX=~/.local/share/Steam/steamapps/compatdata/<your steam id>/pfx winetricks msxml3 corefonts d3dx9_36
echo "
to speed up wifi, please modify file /etc/modprobe.d/iwlwifi.conf, set 11n_disable=8
elder scroll online addon folder in linux proton
/path_to_your_disk/SteamLibrary/steamapps/compatdata/306130/pfx/drive_c/users/steamuser/My\ Documents/
"
# install dconf
sudo apt install dconf-tools -y

install driver manager, and switch to default intel driver

sudo apt-get install deepin-graphics-driver-manager

reinstall nvidia

remove all nvidia

sudo apt autoremove nvidia-*

install nvidia

you can install nvidia from deepin repo or from official nvidia site

disable nouveau drivers

sudo vi /etc/modprobe.d/blacklist.conf

add following lines

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off

once saved, run command

sudo update-initramfs -u

get nvidia car pci id

lspci | egrep "VGA|3D"

it would be something like 01:00.0, then the BusID should be 1:0:0

edit file sudo vi /etc/X11/xorg.conf, and add following lines with correct BusID

NOTE: replace all the content

Section "Module"
  Load "modesetting"
 EndSection
 Section "Device"
  Identifier "nvidia"
  Driver "nvidia"
  BusID "PCI:X:X:X"  
  Option "AllowEmptyInitialConfiguration"
 EndSection

edit vi ~/.xinitrc

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr --dpi 96

edit sudo vi /etc/lightdm/display_setup.sh

#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr --dpi 96

then give permission: sudo chmod +x /etc/lightdm/display_setup.sh

edit sudo vi /etc/lightdm/lightdm.conf

add following line below section [Seat:*]

display-setup-script=/etc/lightdm/display_setup.sh

reboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment