Vincec's Dimension

Opensuse Tumbleweed 大蜥蜴的配置清单

Word count: 718 / Reading time: 4 min
2018/06/19 Share

经亲自检验,发现opensuse在720s上有着最好的体验,不烫,自带稳定新内核,还和amd有着官方支持。

包管理系统

opensuse可以使用 apt-getzypperYaST, 另外还可以用brewsnapflatpak

apt-get

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#update
#sudo apt-get update
#sudo apt-get upgrade
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get dist-upgrade

#install
sudo apt-get install <package_name>

#remove
sudo apt-get remove <package_name>
#or remove everything related
sudo apt-get purge <package_name>

#clean
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove

zypper

cheat sheet

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#update
zypper update
zypper dup #dist

#install Packages
zypper install
zypper in

#remove Packages
zypper remove
zypper rm

#Adding Repositories
zypper addrepo
zypper ar
#followed by the repo url and alias

#Removing Repositories
zypper removerepo
zypper rr
zypper rr packman main

RPM 包

1
2
3
zypper install /path/to/manually/downloaded.rpm
#or
sudo rpm -i --nodeps <local rpm package>

YaST

Download software

自用软件

Linuxbrew

1
2
3
4
5
6
7
8
9
10
11
12
13
14
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"

sudo nano ~/.profile
# add
test -d ~/.linuxbrew && PATH="$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH"
test -d /home/linuxbrew/.linuxbrew && PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"
test -r ~/.bash_profile && echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.bash_profile
echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.profile

#add to command 'brew'
export PATH=`pwd`/linuxbrew/.linuxbrew/bin:$PATH

#test
brew install hello

Snappy

1
2
3
4
5
6
7
8
9
10
11
12
#For 42.3:
sudo zypper addrepo --refresh http://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_42.3/ snappy

#For Tumbleweed:
sudo zypper addrepo --refresh http://download.opensuse.org/repositories/system:/snappy/openSUSE_Tumbleweed/ snappy

#install
sudo zypper install snapd
sudo systemctl enable --now snapd.socket

#Use https://docs.snapcraft.io/core/usage
snap install hello

Flatpak

1
2
3
4
5
6
7
8
9
#Install Flatpak
sudo zypper install flatpak

#Add the Flathub repository
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

#Restart

#https://flathub.org/home

Kernel

update to Vanilla Kernel

1
sudo zypper in kernel-vanilla


Enable Packman Repository

1
2
3
4
5
#Tumbleweed
sudo zypper ar -p 1 -f -n packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/ packman

#Leap
sudo zypper ar -p 1 -f -n packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_42.3/ packman

Multimedia Codecs

on-click YaST install

1
2
3
sudo zypper install x264 libx265-130 libx264-148 ffmpeg

sudo zypper install gstreamer-plugins-bad gstreamer-plugins-libav gstreamer-plugins-ugly


TLP For Battery

1
2
sudo zypper install tlp tlp-rdw
sudo systemctl enable tlp

蓝牙问题

发现不能打开 720s 上的蓝牙

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#check device status
sudo hciconfig hci0 up

#output is
# Can't init device hci0: Operation not possible due to RF-kill (132)

# check devices
lsmod | grep wmi

#RF-kill 解决方法
apt-get install rfkill
rfkill unblock all #完美解决

#这个blueman软件,不确定是不是也可修复
# sudo apt-get install blueman
# sudo /etc/init.d/bluetooth restart


Install Build Essential

1
2
3
4
5
#development packages
zypper se -t pattern devel

#install make and other
zypper install -t pattern devel_C_C++

Reference

CATALOG
  1. 1. 包管理系统
    1. 1.1. apt-get
    2. 1.2. zypper
    3. 1.3. RPM 包
    4. 1.4. YaST
    5. 1.5. Linuxbrew
    6. 1.6. Snappy
    7. 1.7. Flatpak
  2. 2. Kernel
  3. 3. Enable Packman Repository
  4. 4. Multimedia Codecs
  5. 5. TLP For Battery
  6. 6. 蓝牙问题
  7. 7. Install Build Essential
  8. 8. Reference