ubuntu 22.04 audio output not working (dummy audio)
the following solution works for my old dell Chromebook
echo "options snd-hda-intel model=generic" | sudo tee -a /etc/modprobe.d/alsa-base.conf
A power off and then power on might be needed.
the following solution works for my old dell Chromebook
echo "options snd-hda-intel model=generic" | sudo tee -a /etc/modprobe.d/alsa-base.conf
A power off and then power on might be needed.
Finally, I decided to install xUbuntu on a 256GB SDCard as the 16GB built-in emmc drive on a chromebook (Dell P22T) is too small for a desktop system.
Undoubtly, SDCard is slow and easier to be broken. So I took the following actions to the file system and hope they can help solve both issues:
Muscle Memory Makeover
Docker just streamlined Docker Compose by integrating it as a plugin. Great news, but it means us old hats need to retrain our fingers. Here's a quick fix for your .bashrc to keep things smooth:
alias docker-compose='docker compose'
As a programmer and Linux admin, I juggle multiple MySQL servers with different group suffixes. Typing --defaults-group-suffix every time was a drag. This handy bash function saves the day:
m() {
if [ $# -eq 0 ]; then
# If no arguments provided, run mysql directly
mysql
elif [[ "$1" == -* ]]; then
# If first argument starts with -, pass all arguments directly to mysql
mysql "$@"
else
# Otherwise, treat first argument as suffix
local suffix=$1
shift
mysql --defaults-group-suffix=$suffix "$@"
fi
}
Now, connecting to a database is as easy as:
m specific-suffix
This keeps your workflow concise and saves you precious keystrokes.
Put them into you .bashrc or .zshrc now and let our life easier!
booting from the usb stick and install
Booting into recovery and disable Journal feature if you use a SDCard as your hard disk (important!)
Adding noatime option to disk partitions to improve performance & save your disk's life
Changing font size to 11
Setting the touchpad: disable touchpad while typing
Installing the following packages (use wired network)
多年前在淘宝买了这个小盒子,只是几十块钱的东西,卖家不但给解了锁,扩了ROM和内存,还给焊了一个USB口。我买它原意是当个旅行路由器,不管到哪个旅店,只要接上网线就能瞬间得到一个无墙的网络, 多好。当初也确实配好了,但因为那时还没有kcptun加速,当时用的vps网络连接也差,总是差强人意。更重要的, 在国内工作这么多年,旅行的次数实在有限,一个手的手指头都用不完, 更不用提很多旅店根本不提供以太网接口了。
不意外,这个小东西就一直闲置了。然而,我又有了要配好它的理由:我近期就要回国一趟,虽然手机可以装翻墙软件,但iOS上我一直没有配好kcptun加速,而 iPhone 是我的主力机,这会不爽。所以,
我今天就搞定了家里这台小破路由器openwrt 的翻墙!为了避免忘掉,在这里记个笔记:
干净 LEDE 系统,
因为剩余空间不够(主要是kcptun客户端体积比较大),参考这篇文章搞定了系统 overley 文件系统用U盘扩容。
用到这些软件包。(如果你也是这款机器,可以从这里 下载我打好包的以下所有软件)
具体配置主要参考了同一他库的README
又, 2022-07-18, 参照 这个仓库 在这个小小的路由器上安装了 tailscale,从此我能自由的访问这个小盒子。我还顺便给它安装了 git,vim 和 python。