好多的鱼


  • Home

  • Archives

友情链接

Posted on 2019-07-12

一位前端工程师的网站 Powerless

为git生成ssh key

Posted on 2019-05-20

在命令行输入ssh-keygen –t rsa –C “johndoe@doebrothers.com“
敲三个回车之后,在用户/用户名/.ssh目录下生成两个文件,其中.pub是公钥(上传到github)

KDE 闪烁问题解决

Posted on 2019-04-17

使用KDE Plasma 5.15 ,启动器为sddm,发现在启动器界面和进入桌面过程出现闪烁。
查阅资料,有说法为intel使用开源驱动默认会导致该问题,Intel显卡的加速选项有默认方式(glamor)、加速模式(sna)和兼容模式(uxa),修改了Intel显卡的Xorg配置文件为Intel加速模式(sna),问题可解决(参照深度论坛)
在/etc/X11/xorg.conf.d/下新建20-intel.conf,内容为:

1
2
3
4
5
6
7
8
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "DRI" "3"
Option "AccelMethod" "sna"
#Option "PageFlip" "False"
#Option "TearFree" "True"
EndSection

打包备份后删除原有的20opengl.conf.gz
重启电脑后该问题解决

在linux下使用小度wifi

Posted on 2019-04-17

下载了一个驱动,打开看了下,是MT7601U,在内核中查找后发现内核已经自带该驱动。
mask MT7601U (drivers) to M ,
build kernel
enjoy~

安装Gentoo环境

Posted on 2019-04-11

安装系统过程

  1. 打开官网(https://wiki.gentoo.org/)
  2. 下载stage3(可以在http://mirrors.163.com/gentoo/releases/x86/autobuilds/current-stage3-i686/地址下载)
  3. 下载光盘,做成U盘启动(如果烧不进去,使用UltraISO,使用RAW格式烧写就可以了)
  4. 挂载一堆东西
  5. xz stage3xxxx.tar.xz
  6. tar xvf stage3xxxx.tar
  7. chroot
  8. sources /etc/profile
  9. emerge-webrsync
  10. eselect profile list
  11. eselect profile set
  12. 编辑/etc/portage/make.conf
  13. emerge –ask –verbose –update –deep –newuse @world
  14. emerge –ask sys-kernel/gentoo-sources
  15. cd /usr/src/linux
  16. 配置内核,注意:
    1. 如果内存超过4G ,要配置PAE选项
    2. 如果用手机上网,配置NIDIS选项 包括USBNET
    3. 如果用UEFI直接启动,注意相关选项
  17. make && make modules_install
  18. make install
  19. 安装引导程序
    1. emerge –ask –verbose sys-boot/grub:2
    2. grub-install /dev/sda
    3. grub-mkconfig -o /boot/grub/grub.cfg
  20. emerge dhcpcd
  21. emerge usbutils pciutils
  22. passwd设置一下root密码
  23. 将/etc/config.d/hwclock 中的时间从UTC改为Local,防止修改时钟
  24. 重启,增加新用户

注意:

  1. 该阶段出现莫名死机,后发现是系统光盘不支持PAE,因此只能利用大约2.3G左右内存。由于内存过小,在编译GCC时死机或者link失败,解决方法:创建一个虚拟内存文件,然后用作swap
    • dd if=/dev/zero of=/home/swap/swapfile bs=1024 count=512K (创建2G的虚拟内存,实际用了不到1G)
    • mkswap ./swapfile
    • swapon ./swapfile
  2. 查看磁盘ID,使用blkid
  3. 查阅内核状态,看/proc/config.gz,用zcat config.gz直接看
  4. 编译时候查阅硬件温度,可以用sensors(用emerge lm_sensors安装)
  5. 如果需要有sudo权限,需要emerge sudo,然后在etc目录下修改sudoers,用户名(@用户组) 可执行的范围(用逗号隔开),典型为 user_one ALL=(ALL) /usr/bin/vi,bin/chown,/usr/bin/emerge

配置桌面环境

我选择了KDE5 (Plasma ),因为很漂亮而且使用便利,插件多
注意,要在前面第11步选择合适的profile

  1. emerge xorg-server
  2. env-update && source /etc/profile
  3. startx看一眼
  4. 如果成功: emerge –ask plasma-meta(超长时间,大约190个包左右)
  5. emerge xdm
  6. emerge sddm
  7. rc-update add xdm default

待解决问题

  1. 不能图形界面关机
    解决方式:安装dbus驱动,并通过rc-update add default加入到启动中,保证在sddm之前启动(2019-04-14)
  2. 桌面应用过少
  3. 本地化问题

网站上线测试

Posted on 2019-04-10

通过node.js技术架设网站,初步成功。
以后将使用本网站记录一些技术细节、管理细节,作为知识整理使用。

  • 网站架设技能 get
<i class="fa fa-angle-left"></i>1…34

36 posts
13 tags
© 2025 John Doe
Powered by Hexo
|
Theme — NexT.Gemini v5.1.4
津ICP备19000975号-1
# 津ICP备19000975号-1