debian 12 最新版怎么给自己弄成管理员-- debian初体验
图形最简单,在kde中可以调整然后重启但是
sudo dpkg-reconfigure gdm
sudo dpkg-reconfigure kdm
这指令有点问题。。。实际上在登录界面有能切换的按钮在左下方。。。
默认安装的gnome。。。没有提权输入密码之类的选项
很安全
但是你兴冲冲的去su 发现root没有usermod指令。。。
。。。
实际上因为指令在/usr/sbin中所以
所以只要su完然后
/usr/sbin/usermod -G sudo 自己用户名就好了。。。
当然在su 后sudo也可以。。。我最后才发现
剩下的是我设置电脑
==============================
然后发现NV的显卡有
还是给装个VNC吧
curl -O https://downloads.realvnc.com/download/file/vnc.files/VNC-Server-6.11.0-Linux-x64.rpm
为什么不用7呢,懂的自然懂
rpm的话得在debian下得需要
sudo apt install alien
sudo rpm -i VNC-Server-6.11.0-Linux-x64.rpm
sudo vnclicense -add KEY自己找
sudo vncpasswd-realvnc -service 输入自己的服务模式密码就能登录了
echo "your_password" | sudo vncpasswd-realvnc -service 理论上可以免输入的
实际上根本跑不起来。。。realvnc在debian上跑不起来!!!
vncserverui service 0
不正常
vncserverui -statusiocon 0
无法运行。。。
https://extensions.gnome.org/extension/615/appindicator-support/
AppIndicator and KStatusNotifierItem Support
有deb版本的。。。。
curl -O https://downloads.realvnc.com/download/file/vnc.files/VNC-Server-6.11.0-Linux-x64.deb
sudo dpkg -i VNC-Server-6.11.0-Linux-x64.deb
=======================================
NV显卡驱动:
Download The Official NVIDIA Drivers | NVIDIA
安装之前需要GCC
How to Install GCC Compiler on Debian 10 Linux | Linuxize
sudo apt update
sudo apt install build-essential
sudo apt-get install manpages-dev
gcc --version
目前只剩nv显卡上出现的:
x.509 certificate -74
的问题了
我先验证下windows 是不是也这样。。。(并没验证。。。)都同样是H11SSL-i上的问题
debian的wiki说是secure boot的问题。。。我这就没开。。。
刷了bios还是一样,刷bios第一遍卡住进度0% none boot那里然后强制重启,扣CMOS电池,能开机但是部分硬件用不了。。。刷了第二遍才成功。。。H11SSL-i BIOS update to 2.9 stuck at 0% non-boot bios : r/supermicro 看了他说的才敢重启。。。
在但是好处是能显示启动的进程还有能进tty2。。。因为他tty1不显示登录。。。
trl+shift+F7卡住,F1到F6都有登录
所以还是换证书靠谱点GitHub - microsoft/secureboot_objects: Secure boot objects recommended by Microsoft. 去下载他released的
然后进bios 导入就行了
看来是H11ssl-i的BIOS问题毕竟都没开启secure boot
重新装下驱动就好了。。。
sudo ./NVIDIA-Linux-x86_64-570.133.07.run --compat32-libdir --glvnd-egl-config-path
理论上那个path不用填。。。
然后要装MIT/GPL的,另外一个。。。它图形界面启动不了。。。
然后
参考
Problem loading X.509 certificate -74 | Proxmox Support Forum
[SOLVED] - Import secure boot certificate used by Proxmox | Proxmox Support Forum
H11SSL-i | Motherboards | Super Micro Computer, Inc.
=======================================
给VGA-1添加分辨率,登录出去再回来就有新的分辨率了
写入到.bash_profile里面
xrandr --newmode "1920x1080_24" 61.81 1920 1944 2136 2352 1080 1081 1084 1095 -HSync +Vsync
xrandr --addmode VGA-1 "1920x1080_24"
xrandr --newmode "1600x900_24" 41.72 1600 1600 1752 1904 900 901 904 913 -HSync +Vsync
xrandr --addmode VGA-1 "1600x900_24"
xrandr --newmode "1368x768_30" 38.85 1368 1376 1512 1656 768 769 772 782 -HSync +Vsync
xrandr --addmode VGA-1 "1368x768_30"
xrandr --newmode "1280x720_30" 33.78 1280 1288 1408 1536 720 721 724 733 -HSync +Vsync
xrandr --addmode VGA-1 "1280x720_30"
当然你的有可能不是VGA-1,NV显卡上的是HDMI-0,还有DP-0到DP-5
xrandr | grep connected | awk '{ print$1 }'
用这个查看具的显示器名称
========================================
声卡网卡问题。。。
参考
Need help with a USB sound card
插上就能用orico的那个黑色带旋钮的,然后bios中bootk开启LEGACY to EFI Support开启前置USB就不工作。。。是整个前置USB不工作不是声卡的问题。。。
网卡
drivers - How to install Wifi USB Ugreen AX900 - Ask Ubuntu
但是一直make有错误。。。
错误是471行,缺少了个false相反的设定,我加了true可以装上去了,重启下看能不能用。
最好还是改deb中的具体错误的位置
=======================================
输入法
我最早想装的是baidu拼音输入法,结论是能装上去
但是输入法不停的输出乱码。。。
[官网下载]()不会告诉你这个还需要很多的依赖包。。。
也不会告诉你debian具体怎么切换成这个输入法。。。
先解压安装百度linux输入法
然后这么多的错误:
fcitx-baidupinyin : 依赖: fcitx-bin 但是它还没有被安装
依赖: fcitx-data (>= 1:4.2.0) 但是它还没有被安装
依赖: fcitx-modules 但是它还没有被安装
推荐: fcitx (>= 1:4.2.0) 但是它还没有被安装
首先需要的是 sudo apt-get apt --fix-broken install im-switch fcitx
实际上还是没有装上。。。因为会一直提示没有依赖包。。。然后我通过kde提醒升级。。。或许这导致了后面的百度输入法乱码,但是如果这样我最终还是会放弃百度linux和输入法。。。因为实在不知道什么要升级或者保留。。。
im-switch主要的操作是im-conifg是个图形界面的
但是debian的kde已经集成了ibus所以需要通过im-config切换成fcitx(小企鹅输入法),他需要重启,先别急着重启
fcitx-configtool会打开一个图形界面,然后你再添加百度输入法。。。这时候可以重启了。
然后就可以crtrl+空格切换到百度输入法
但是在输入的时候回不停的乱码化。。。
所以就求助已经存在ibus了,他也是有拼音输入法的项目的
sudo apt install ibus-libpinyi
im-conifg切换回ibus,重启后继续设置
ibus-setup这个是图形的,如果你用的是中文界面还是有中文的,但是ibus任务栏上出来的还是英文的 设置界面。。。
卸载百度linux输入法
sudo apt remove fcitx-baidupinyin
小企鹅就有点困难了。。。因为涉及的包太多了。。。
sudo apt list --installed |grep fcitx| awk -F '/' '{print $1}'
如下。。。
fcitx-bin
fcitx-config-common
fcitx-config-gtk
fcitx-data
fcitx-frontend-all
fcitx-frontend-gtk2
fcitx-frontend-gtk3
fcitx-frontend-qt5
fcitx-frontend-qt6
fcitx-module-dbus
fcitx-module-kimpanel
fcitx-module-lua
fcitx-module-quickphrase-editor5
fcitx-module-x11
fcitx-modules
fcitx-ui-classic
fcitx
libfcitx-config4
libfcitx-core0
libfcitx-gclient1
libfcitx-qt5-1
libfcitx-qt5-data
libfcitx-utils0
sudo apt list --installed |grep fcitx| awk -F '/' '{print $1}'|xargs sudo apt remove -y| sudo apt autoremove -y
通过这个把fcitx及其相关的100多M都移除了
=======================================
添加桌面图标。。。
Home图标
cat > ~/Desktop/home.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Home
GenericName=Personal Files
URL[$e]=$HOME
Icon=user-home
Type=Link
EOF
回收站图标
cat > ~/Desktop/trash.desktop << EOF
[Desktop Entry]
Name=Trash
Comment=Contains removed files
Icon=user-trash-full
EmptyIcon=user-trash
Type=Link
URL=trash:/
OnlyShowIn=KDE;
EOF
=======================================
时间切换成中文再切换回英文还是显示中文的
因为gnome和kde都登录过。。。gnome不常用,但是锁住了language里面的Formats。。。进Gnome改回来就好了,env | grep -i lang 就会变成单一语言了。。。env | grep -i lc 就没其他的格式了。。。
我用的是sddm不是gdm,切换gnome和kde在登录界面的左下角,gdm的在输入密码下面的小齿轮里可以选具体是kde还是gnome或者是其他
Konslole中的 settings--Configure Language中改掉Add Fallback Language指令的中文提示可以改回英文的,中文的实在是不太好用。。。不好收集bug去搜索改进
=======================================
mega raid 卡debian管理器
How do I install MSM on Ubuntu and Debian
放浏览器中
ftp://tsupprt:[email protected]/private/MSM/
我下载安装的是
64bit_MSM_6.14_Ubuntu_Debian.tgz
登录的密码是root的密码不是你的sudo密码
然后不会新建图标。。。
可以自己写个bash
cat > ~/Desktop/MegaRaid.sh << EOF
#!/bin/bash
cd "/usr/local/MegaRAID Storage Manager"
bash ./startupui.sh
EOF
chmod +x ~/Desktop/MegaRaid.sh
就可以双击运行图形界面了
=======================================
最后还想在debian上安装PVE
Install Proxmox VE on Debian 12 Bookworm - Proxmox VE
还想在把系统移动到zfs中。。。
安装 Debian 10 到 ZFS Mirror 阵列 | LOGGER
!!!现在的truenas是没有apt的!!!开启请参考下面
TrueNAS Scale - Enable apt-get - XtremeOwnage.com
# Remount as read-write
mount -o remount,rw 'boot-pool/ROOT/24.04.0/usr'
# Add bin / sbin directories to path.
export PATH=/usr/bin:/usr/sbin
# Add executable flag to binaries, which is emoved by the TrueNAS team.
chmod +x /bin/apt*
# Re-enable the ability to execute the dpkg binary.
chmod +x /usr/bin/dpkg
默认的apt repo是没有zfs的。。。