完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
以前我使用的是Debian Version 8.6(Jessie),最近我将Beaglebone Black升级到了Debian 9.5版(Stretch)
在使用Jessie时,如果我插入USB拇指驱动器,它会自动安装并显示在// media //但是使用Stretch时,USB驱动器不会自动安装。 我可以打开终端窗口并使用“lshw”找到驱动器并安装USB驱动器,但我想自动发生这种情况。 我有一个USB鼠标和键盘,他们似乎工作正常。 是否有某个设置参数现在禁用USB驱动器的自动安装功能? 如果不是插入USB驱动器时实现自动安装的最佳方法是什么? 以上来自于谷歌翻译 以下为原文 Previously I was using Debian Version 8.6 (Jessie), recently I’ve upgraded my Beaglebone Black to Debian Version 9.5 (Stretch) While using Jessie, if I plugged in a USB thumb drive it was automatically mounted and appeared in //media// but with Stretch the USB drive is not automatically mounted. I can open a terminal window and find the drive using “lshw” and them mount the USB drive, but I would like to have this happen automatically. I have a USB mouse and keyboard and they seem to work OK. Is there a setup parameter somewhere that is now disabling the auto mount feature for the USB drive? If not what is the best way to implement an auto mount of the USB drive when it is plugged in? |
|
相关推荐
7个回答
|
|
@texasEE,自动挂载是Windows管理器的功能/功能(lxde / lxqt / qt / gnome / xfce / etc ...)因此没有通用的开关开关......
您使用的是哪个Windows管理器? 然后我们可以通过启用它的细节... 问候, 以上来自于谷歌翻译 以下为原文 @texasEE, auto-mount is a feature/function of the windows manager (lxde/lxqt/qt/gnome/xfce/etc…) Thus there is not a universal on or off switch… Which windows-manager are you using? Then we can go thru the details of enabling it… Regards, |
|
|
|
我正在运行的图像(BBB-blank-debian-9.5-lxqt-armhf-2018-09-4gb.img.xz)应该有LXQT作为窗口管理器
但是,如果我通过使用:'ps aux'来查看,看看显示管理器任务正在运行,我得到: “/ usr / ***in目录/ lightdm” 以上来自于谷歌翻译 以下为原文 The image I’m running (BBB-blank-debian-9.5-lxqt-armhf-2018-09-4gb.img.xz) should have LXQT as the window manager But if I check to see by using: ‘ps aux’ to see what display manager task are running I get: “/usr/***in/lightdm” |
|
|
|
@texasEE,lxqt的自动挂载通过pcmanfm控制,你可以进入pcmanfm的设置并进行配置或编辑:
〜/的.config / pcmanfm-QT / lxqt / settings.conf 并将这些选项中的任何一个更改为“true”以获得您想要的功能... CloseOnUnmount = FALSE MountOnStartup = FALSE MountRemovable = FALSE 确保在每次更改后重新启动... 问候, 以上来自于谷歌翻译 以下为原文 @texasEE, lxqt’s auto mount is controlled thru pcmanfm, you can either go into pcmanfm’s settings and configure it or edit: ~/.config/pcmanfm-qt/lxqt/settings.conf and change any of these options to “true” to get the functionality you want… CloseOnUnmount=falseMountOnStartup=falseMountRemovable=falseMake sure to reboot after each change… Regards, |
|
|
|
这些设置似乎只适用于我打开终端窗口时。
我希望自动安装功能在系统范围内,这样我就不需要打开终端窗口了。 我正在经营一个无头单位。 以下目录中似乎有lxtq / settings.conf文件: 的/ etc / XDG / pcmanfm-QT /选择/脚本/桌面默认/拉伸 /选择/脚本/桌面默认/杰西 有关这些用于系统范围默认值的任何建议吗? 以上来自于谷歌翻译 以下为原文 Those setting would seem to only apply when I opened a terminal window. I’d like the auto mount feature to be system wide so that I don’t need to open a terminal window. I’m running a headless unit. There seems to be lxtq/settings.conf files in the following directories: /etc/xdg/pcmanfm-qt /opt/scripts/desktop-defaults/stretch /opt/scripts/desktop-defaults/jessie Any recommendation on which of these to use for a system wide default? |
|
|
|
pcmanfm-qt是lxqt的“文件管理器”,因此它可以控制lxqt的自动安装...
它的自动安装配置有两个位置: 包默认值:/ etc / xdg / pcmanfm-qt 和 用户配置:/home/(username)/.config/pcmanfm-qt/lxqt/settings.conf 现在这依赖于lxqt实际运行,所以如果你正在运行无头并禁用xorg / lightdm / lxqt / etc它将不再自动挂载你的媒体。 因此对于无头环境,使用“autofs”是一个更好的解决方案,它确实需要一些配置: https://wiki.archlinux.org/index.php/autofs 问候, 以上来自于谷歌翻译 以下为原文 pcmanfm-qt is the “file manger” for lxqt, thus it’s in control of auto-mounting for lxqt… It’s config for auto-mounting is available in 2 locations: package default: /etc/xdg/pcmanfm-qt and user config: /home/(username)/.config/pcmanfm-qt/lxqt/settings.conf Now this relies on lxqt actually running, so if your running headless and you disable xorg/lightdm/lxqt/etc it will no longer auto-mount your media. So for a headless enviroment, using “autofs” is a much better solution, it does require some configuration: https://wiki.archlinux.org/index.php/autofs Regards, |
|
|
|
我已经编辑了/ etc / xdg / pcmanfm-gt&
将所有三个选项设置为true的/ home / config文件没有成功。 在我的环境中,我有一个4D Systems Gen4 LCD,有时还有一个键盘/鼠标。 当我插入USB拇指驱动器时,我可以看到它被BBB识别,因为LCD的右下角会弹出内部驱动器的卷名称和Thumb驱动器的卷名。 使用/ media文件夹的终端窗口进行快速检查表明此时未安装USB驱动器。 在桌面的右下角有一个小驱动器ICON,选择它然后选择USB驱动器的卷名打开文件管理器,显示USB拇指驱动器的内容。 使用/ media /文件夹的终端窗口进行快速检查表明USB驱动器现已安装。 即使在关闭文件管理器之后,驱动器仍保持安装状态,并且在USB驱动器被移除或电源被回收之前一直保持安装状态。 我正在寻找的是系统在插入驱动器时自动安装USB驱动器而无需使用桌面。 以上来自于谷歌翻译 以下为原文 I’ve edited both the /etc/xdg/pcmanfm-gt & the /home/ config files with all three options set to true without success. In my environment I have a 4D Systems Gen4 LCD and sometimes a keyboard/mouse. When I plug in the USB Thumb Drive I can see it is recognized by the BBB since the bottom right hand of the LCD pops up the name of the volume name of the internal drive and the volume name of the Thumb drive. A quick check using a terminal window of the /media folder shows that the USB drive is not mounted at this point. On the bottom right hand corner of the desktop there is a small drive ICON, selecting that and then selecting the volume name of the USB drive opens up file manager showing the contents of the USB thumb drive. A quick check using a terminal window of the /media/ folder shows that the USB drive is now mounted. The drive stays mounted even after closing the file manager and will stay mounted until the USB drive is removed or the power is recycled. What I’m looking for is for the system to automatically mount the USB drive when the drive is plugged in without having to use the desktop. |
|
|
|
好吧,这听起来像lxqt / pcmanfm中的一个错误,因为“MountRemovable”应该自动挂载,而不需要用户从右下角选择驱动器。
对于您的实际应用程序,设置“autofs”将是一个更可靠的选择。 问候, 以上来自于谷歌翻译 以下为原文 Okay, that sounds like a bug in lxqt/pcmanfm, as “MountRemovable” should auto-mount with out requiring the user to select the drive from the bottom right. For your actual application setting up “autofs” would be a much more reliable option. Regards, |
|
|
|
只有小组成员才能发言,加入小组>>
3475 浏览 3 评论
516浏览 1评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-21 16:10 , Processed in 0.550077 second(s), Total 58, Slave 51 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号