• VMware 给 FreeBSD 13 安装 KDE 桌面


    下载  FreeBSD-13.1-RELEASE-amd64-disc1.iso

    VMware 安装好后配置:

    软件源:

    root@FreeBSD:~ #      ee /etc/pkg/FreeBSD.conf

    改为中科大软件源:

    FreeBSD: {
    url: "pkg+http://mirrors.ustc.edu.cn/freebsd-pkg/${ABI}/quarterly",
    }
    如果要使用滚动更新的 latest 仓库,把 url 配置最后的 quarterly 换成 latest 即可。
    
    pkg update
    pkg upgrade
    
    pkg install vim
    
    配置开启 FreeBSD 的 SSH 链接:
    1、使用 ee 编辑器编辑 /etc/inetd.conf,去掉 ssh 前的 #
    2、编辑 /etc/rc.conf,添加一行sshd_enable="YES"
    3、编辑 /etc/ssh/sshd_config,将
    #PermitRootLogin no 改为 PermitRootLogin yes //允许root登陆
    #PasswordAuthentication no 改为 PasswordAuthentication yes //使用系统PAM认证
    #PermitEmptyPasswords no 改为 PermitEmptyPasswords no //不允许空密码
    
    pkg install bash nano sudo
    
    vim /usr/local/etc/sudoers 添加 username ALL=(ALL:ALL) ALL
    pkg install xorg
    
    vim /etc/fstab 添加 proc /proc procfs rw 0 0
    pkg install plasma5-plasma kde-baseapps sddm
    
    cat /etc/rc.conf
    sysrc moused_enable=yes
    sysrc dbus_enable=yes
    sysrc hald_enable=yes
    sysrc sddm_enable=yes
    cat /etc/rc.conf
    
    pkg install firefox konsole dolphin bash-completion
    
    pkg install open-vm-tools
    
    pkg install xf86-video-vmware xf86-input-vmmouse
    
    
    Xorg -configure
    
    cp xorg.conf.new /etc/X11/xorg.conf
    vim /etc/X11/xorg.conf

    大概第五行 添加 Option "AutoAddDevices" "Off" ,完成后:

    Section "ServerLayout"
            Identifier     "X.org Configured"
            Screen      0  "Screen0" 0 0
            InputDevice    "Mouse0" "CorePointer"
            InputDevice    "Keyboard0" "CoreKeyboard"
            Option          "AutoAddDevices" "Off"
    EndSection

     大概 30 行:Driver  "mouse" 改为  Driver  "vmmouse"  改后:

    Section "InputDevice"
            Identifier  "Mouse0"
            Driver      "vmmouse"
            Option      "Protocol" "auto"
            Option      "Device" "/dev/sysmouse"
            Option      "ZAxisMapping" "4 5 6 7"
    EndSection
    reboot

     重启后登录界面左下角 选择  Plasma ( X11 )

  • 相关阅读:
    第27章 结构型模式大PK
    第26章 创建型模式大PK
    Linux下C/C++代码调用PHP代码(转)
    php 5.2.17 升级到5.3.29
    PHP安全之register_globals (转)
    注意字符串的strlen与sizeof的差别
    嵌入式串口传送汉字乱码
    字符设备驱动模块与测试代码编写(转)
    字符设备之register_chrdev与register_chrdev_region(转)
    I2C子系统驱动框架及应用 (转)
  • 原文地址:https://www.cnblogs.com/Huae/p/16282092.html
Copyright © 2020-2023  润新知