Skip to content

Commit

Permalink
freebsd: works again
Browse files Browse the repository at this point in the history
- Add `kld_list="radeonkms"` to `/etc/rc.conf` and remove package
  `xf86-video-ati`, then AMD Radeon HD 6730m works again
- Add lots of other configurations
- Add installed package list
  • Loading branch information
zhangkaizhao committed Nov 28, 2018
1 parent b977f84 commit 653dd5b
Show file tree
Hide file tree
Showing 16 changed files with 818 additions and 5 deletions.
5 changes: 5 additions & 0 deletions freebsd/.bash_profile
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# Bash completion

[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \
source /usr/local/share/bash-completion/bash_completion.sh

[[ -f $HOME/.bashrc ]] && source $HOME/.bashrc
11 changes: 6 additions & 5 deletions freebsd/.bashrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# Bash completion

[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \
source /usr/local/share/bash-completion/bash_completion.sh

# Bash options

shopt -s checkwinsize
Expand Down Expand Up @@ -46,7 +41,13 @@ export PAGER="less"
# 2018-06-27 local bin for pip --user
export PATH=$HOME/.local/bin:$PATH

# 2018-06-29 Rust Cargo by rustup
export PATH="$HOME/.cargo/bin:$PATH"

# chruby
if [[ -f /usr/local/share/chruby/chruby.sh ]]; then
source /usr/local/share/chruby/chruby.sh
fi

# GNUStep
source /usr/local/GNUstep/System/Library/Makefiles/GNUstep.sh
11 changes: 11 additions & 0 deletions freebsd/.login_conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# $FreeBSD: releng/11.2/share/skel/dot.login_conf 77995 2001-06-10 17:08:53Z ache $
#
# see login.conf(5)
#
#me:\
# :charset=iso-8859-1:\
# :lang=de_DE.ISO8859-1:

me:\
:charset=UTF-8:\
:lang=en_US.UTF-8:
22 changes: 22 additions & 0 deletions freebsd/.xinitrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
export LANG="zh_CN.UTF-8"
export LC_ALL="zh_CN.UTF-8"

# 2018,06,06 fcitx
export XMODIFIERS="@im=fcitx"
export GTK_IM_MODULE=fcitx
export GTK3_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx

#exec start-lumina-desktop

#exec /usr/local/bin/startxfce4

# https://wiki.freebsd.org/LXQt
# http://lxqt-freebsd.schmitz.computer/
#ck-launch-session /usr/local/bin/startlxqt

#exec ck-launch-session startkde

#exec /usr/local/bin/startfluxbox

exec ck-launch-session gnome-session
8 changes: 8 additions & 0 deletions freebsd/.xprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export LANG="zh_CN.UTF-8"
export LC_ALL="zh_CN.UTF-8"

# 2018,06,06 fcitx
export XMODIFIERS="@im=fcitx"
export GTK_IM_MODULE=fcitx
export GTK3_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
50 changes: 50 additions & 0 deletions freebsd/devfs.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Copyright (c) 2003 The FreeBSD Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: releng/12.0/sbin/devfs/devfs.conf 338204 2018-08-22 15:55:23Z brd $

# These are examples of how to configure devices using /etc/rc.d/devfs.
# The first parameter is always the action to take, the second is always the
# existing device created by devfs, and the last is what you want to change.
# The name of the action is only significant to the first unique character.
#
# Examples:

# Commonly used by many ports
#link cd0 cdrom
#link cd0 dvd

# Allow a user in the wheel group to query the smb0 device
#perm smb0 0660

# Allow members of group operator to cat things to the speaker
#own speaker root:operator
#perm speaker 0660

# 2018-07-13 for libgtop for mate
perm devstat 0444

# (x) just for old FreeBSD versions, see gnome-shell pkg-message
# 2018-07-13 for gnome-shell
#add path 'dri/*' mode 0666 group video
6 changes: 6 additions & 0 deletions freebsd/fstab
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/dev/ada0p6 / ufs rw 2 2
/dev/ada0p7 none swap sw 0 0

# For openjdk8
fdesc /dev/fd fdescfs rw 0 0
proc /proc procfs rw 0 0
17 changes: 17 additions & 0 deletions freebsd/loader.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# For ASUS laptop
acpi_asus_load="YES"
acpi_asus_wmi_load="YES"

if_ath_load="YES"
#if_ath_pci_load="YES"

# For ntfs-3g
fuse_load="YES"

# For webcamd for KDE plasma 5 or GNOME 3
cuse_load="YES"

kern.vty=vt

# 2018-07-16 for mono
kern.ipc.semmni=40
Loading

0 comments on commit 653dd5b

Please sign in to comment.