Вывести всех пользователей конкретной группы.
Как вывести всех пользователей определённой группы? Я делаю так:
grep $(grep group_name /etc/group | cut -f 3 -d:) /etc/passwd | cut -f 1 -d:
Как вывести всех пользователей определённой группы? Я делаю так:
grep $(grep group_name /etc/group | cut -f 3 -d:) /etc/passwd | cut -f 1 -d:
Имеется Gentoo и VirtualBox(5.0.12). Поставлены virtualbox modules/extpack-oracle/additions/phpvirtualbox. Всё это стоит на домашнем ПК без X, выступающего в роли роутера. CPU Intel Celeron 1037U, соответсвенно GPU - Intel HD Graphics (Ivy Bridge). Создаю виртуальную машину, но в Настроить->Дисплей->Экран пункт «Включить 3D-ускорение» серый, как его активировать?
dmesg | grep -i vga
[ 0.000000] Console: colour VGA+ 80x25
[ 0.247644] vgaarb: setting as boot device: PCI:0000:00:02.0
[ 0.247727] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[ 0.247844] vgaarb: loaded
[ 0.247922] vgaarb: bridge control possible 0000:00:02.0
[ 0.377635] [drm] Replacing VGA console driver
[ 0.384409] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
lsmod
Module Size Used by
vboxnetflt 16356 0
vboxnetadp 18438 0
vboxdrv 355035 2 vboxnetadp,vboxnetflt
x86_pkg_temp_thermal 4727 0
Имеется Gentoo и установленный noip-updater. Сделал noip2 -C , добавив пользователя. Всё заработало, добавил в автозагрузку
rc-update add noip default
# ps -ax | grep noip2
3105 ? Ss 0:00 /usr/sbin/noip2 -c /etc/no-ip2.conf
ps -ax | grep noip2
3105 ? Ss 0:00 /usr/sbin/noip2 -c /etc/no-ip2.conf
#noip2 -S
1 noip2 process active.
Process 3105, started as noip2 -c /etc/no-ip2.conf, (version 2.1.9)
Using configuration from /etc/no-ip2.conf
Last IP Address set 0.0.0.0
Account xxxxxx@gmail.com
configured for:
host xxxxxx.ddns.net
Updating every 5 minutes via /dev/ppp0 with NAT enabled.
#rc-status
Runlevel: default
syslog-ng [ started ]
iptables [ started ]
net.enp1s0 [ started ]
net.ppp0 [ started ]
openvpn [ started ]
noip [ started ]
#ifconfig
ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1492
inet 94.241.237.183 netmask 255.255.255.255 destination 217.9.147.97
ppp txqueuelen 3 (Point-to-Point Protocol)
RX packets 3534 bytes 2676061 (2.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2985 bytes 550670 (537.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Подскажите, почему на ПК с gentoo и kubuntu 15.10(на других не проверял) и устройствомAR5B225(mini-PCIe адаптер, с Wi-Fi модулем AR9485 и BT AR3012), в выводе lspci и lsusb показывает только Wi-Fi модуль, а BT нет? И как заставить работать Bluetooth?
# lspci | grep -i atheros
03:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
# lsusb | grep -i atheros
#
# lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 7 Series Chipset Family LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
03:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
04:00.0 USB controller: Renesas Technology Corp. uPD720202 USB 3.0 Host Controller (rev 02)
# lsusb
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Как в файле оставить только те символы, которые находятся между первым совпадением двух заранее заданных наборов символов? Т.е. если был дан первый набор (7q и второй a'8! и дана строка
a\'23ffd^(7q321a'8!sd5&q](7qerta'8!
321
Почему Deluge не стартует при запуске(при этом dnsmasq запускается)? Deluge 1.3.11, ОС - Gentoo, добавляю в автозапуск с помощью
rc-update add deluged default
cat /var/log/rc.log
rc default logging started at Wed Sep 30 20:04:07 2015
* Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ...
[ ok ]
* Starting syslog-ng ...
[ ok ]
* Loading iptables state and starting firewall ...
[ ok ]
* Bringing up interface enp1s0
[ ok ]
* Bringing up interface ppp0
* Starting pppd in ppp0 ...
[ ok ]
* Backgrounding ...
* WARNING: net.ppp0 has started, but is inactive
* Bringing up interface wlp3s0
* 192.168.107.1 ...
[ ok ]
* WARNING: dnsmasq will start when net.ppp0 has started
* Setting clock via the NTP client 'ntpdate' ...
Exiting, name server cannot be used: Temporary failure in name resolution (-3) * Failed to set clock
[ !! ]
* ERROR: ntp-client failed to start
* Starting cronie ...
[ ok ]
* Starting sshd ...
[ ok ]
* WARNING: deluged will start when net.ppp0 has started
* Starting hostapd ...
Configuration file: /etc/hostapd/hostapd.conf
wlp3s0: interface state UNINITIALIZED->HT_SCAN
[ ok ]
* WARNING: netmount will start when net.ppp0 has started
* Starting ntpd ...
[ ok ]
* Starting local ...
[ ok ]
← предыдущие |