Есть система с подключенным HDMI телевизором. Процесс загрузки системы (grub, init) отображается и на VGA и на HDMI. Но как только дело доходит до консоли логина, на HDMI пропадает сигнал.
Как устроена консоль входа? Это не framebuffer? Как оно вообще работает?
Есть свежепоставленный Debian Jessie с Grub2 и Plymoth с темой joi.
Если включить в грабе опцию «splash», то при загрузке, в момент перед монтированием разделов, вылетает ошибка: «error: unexpectedly disconnected from boot status daemon» и загрузка дальше не идет.
> sudo Xorg -configure
...
(++) Using config file: "/root/xorg.conf.new"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Number of created screens does not match number of detected devices.
Configuration failed.
Server terminated with error (2). Closing log file.
Такая проблема наблюдается в Debian Wheezy на ноутбуке:
На сервере установлен qemu-kvm и libvirt.
Задача: прокинуть интерфейс eth0 хоста в виртуальную машину для того, что бы виртуальная машина могла получить ip-адрес локальной сети.
Сеть работает. Из локальной сети виден и хост (192.168.1.10) и ВМ (192.168.1.11). Но не работает фильтр. Если я правильно понимаю, он должен создавать правила iptables, но в правилах iptables пусто. Как пофиксить?
Сегодня вышла седьмая версия OwnCloud. OwnCloud является свободной системой для создания облачных сервисов хранения данных, подобных DropBox и Ubuntu One.
Что нового:
Дизайн претерпел небольшие изменения;
Теперь можно редактировать не только ODT документы, но и Microsoft Word;
Расширена система уведомлений о действиях с файлами;
Реализована поддержка веб-браузеров мобильных устройств;
OpenStack Object Store (SWIFT) теперь может быть использован в качестве основного хранилища;
Интегрирован антивирус CLAM AV;
В интерфейс администратора добавлены полезные опции (настройки SMTP, изменено управление пользователями, внешнее хранилище может быть включёно в общую квоту пользователя и т.п.);
Интересно тут вот что:
2014-07-01T23:11:55+03:00
2014-07-01T23:12:57+04:00
Т.е. при получении текущего времени в зоне MSK, смещение времени определяется верно (+04:00), а при создании времени из зоны MSK, смещение определяется не верно (+03:00).
Или я что-то неправильно понимаю?
P.S. Debian Wheezy с обновленным tzdata из wheezy/updates.
На Jessie получается вообще вот так:
> php -r "\$d = new DateTime('now', new DateTimeZone('MSK')); echo \$d->format(DateTime::W3C) . PHP_EOL;"
2014-07-01T22:20:55+03:00
> sudo lsusb
Bus 004 Device 003: ID 0d9f:00a2 Powercom Co., Ltd Imperial Uninterruptible Power Supply (HID PDC)
Bus 004 Device 004: ID 0d9f:00a3 Powercom Co., Ltd Smart King PRO Uninterruptible Power Supply (HID PDC)
Nut версии 2.7.2 под Debian Wheezy (nut - бэкпорт из sid).
Никак не получается завести UPS SKP-500. Параллельно подключен Powercom Imperial - он работает, SKP-500 под Windows работает (виден в системе как HID и в Powercom'овской софтине тоже виден). Один раз как-то получилось его запустить с nut, но я начал играться настройками ups'а и он почему-то отвалился.
ups.conf
maxretry = 3
[server-ups]
driver = usbhid-ups
port = auto
productid = 00a2
[current-ups]
driver = usbhid-ups
port = auto
productid = 00a3
При запуске выдаёт такую ошибку:
> sudo upsdrvctl -u root start current-ups
Network UPS Tools - UPS driver controller 2.7.2
Network UPS Tools - Generic HID driver 0.38 (2.7.2)
USB communication driver 0.32
No matching HID UPS found
Driver failed to start (exit status=1)
Network UPS Tools - Generic HID driver 0.38 (2.7.2)
USB communication driver 0.32
No matching HID UPS found
Driver failed to start (exit status=1)
Network UPS Tools - Generic HID driver 0.38 (2.7.2)
USB communication driver 0.32
No matching HID UPS found
Driver failed to start (exit status=1)
Если подключить адаптер, то в настройках KDE в разделе «мультимедия» отображается устройство Jabra LINK 320 и через него нормально идёт ввод / вывод звука на гарнитуру.
Но это не спортивно :)
Т.к. в ноутбуке есть bluetooth-адаптер, хотелось бы иметь возможность ввода / вывода звука напрямую (без usb-адаптера).
Blueman гарнитуру видит и я подключаю устройство как службу гарнитуры, при этом в настройках звука появляется ещё одно устройство - Jabra EXTREME. Но вот вывод звука не работает (если попытаться как-то вывести звук, то в гарнитуре слышно какое-то лёгкое потрескивание и всё).
В настройках звукового оборудования если для звуковой платы поставить профиль «воспроизведение высокого качества A2DP», то после сохранения настроек, закрытия окна настроек и повторного открытия, у Jabra EXTREME опять указан профиль «дуплексная телефония».
Вопрос такой: делаю сервис рассылок (не спам :) ). Если сообщение не доставлено получателю и возвращается «Mail delivery failed: returning message to sender» хочу такого пользователя удалять из базы рассылок.
Есть ли у exim какой-нибудь callback-вызов, который можно настроить для удаления адреса из базы?
> dpkg -l | grep -i lxc ii lxc 0.8.0~rc1-8+deb7u1 amd64 Linux Containers userspace tools
Лог загрузки LXC-контейнера (Debian Squeeze):
Mount failed for selinuxfs on /selinux: Operation not permitted INIT: version 2.88 booting Using makefile-style concurrent boot in runlevel S. mount: permission denied mkdir: cannot create directory `/lib/init/rw/sendsigs.omit.d/': File exists mount: permission denied hostname: you must be root to change the host name Setting the system clock. Cannot access the Hardware Clock via any known method. Use the --debug option to see the details of our search for an access method. Unable to set System Clock to: Sun Jun 16 12:04:43 UTC 2013 ... (warning). Activating swap...done. mount: permission denied Cleaning up ifupdown.... Setting the system clock. Cannot access the Hardware Clock via any known method. Use the --debug option to see the details of our search for an access method. Unable to set System Clock to: Sun Jun 16 12:04:43 UTC 2013 ... (warning). Setting up networking.... Activating lvm and md swap...done. Checking file systems...fsck from util-linux-ng 2.17.2 done. Mounting local filesystems...done. Activating swapfile swap...done. Cleaning up temporary files.... Configuring network interfaces...done. Setting kernel variables ...done. Cleaning up temporary files.... startpar: service(s) returned failure: hostname.sh ... failed! INIT: Entering runlevel: 2 Using makefile-style concurrent boot in runlevel 2. Starting OpenBSD Secure Shell server: sshdCould not load host key: /etc/ssh/ssh_host_rsa_key Could not load host key: /etc/ssh/ssh_host_dsa_key
Ошибки выделил жирным. Количество ошибок пугает... Это вообще нормально? Как можно побороть ошибки монтирования?
Наблюдаю очень интересную (а если честно, паршивую) проблему.
Есть сервер с OpenVPN на борту.
Если подключаюсь из дома (ADSL-роутер + WiFi), то всё работает. Если подключаюсь по мобильному интернету (смартфон, который раздаёт WiFi на ноутбук), то всё работает. Если подключаюсь из офиса по ethernet, то всё работает. Если подключаюсь из офиса по WiFi, то... не работает. В офисе стоит D-Link DSR-1000N (раздёт и WiFi и ethernet). Все тесты проводились с одного ноутбука без изменения конфигов (тест с ethernet с WiFi в офисе шёл один за другим). Ethernet и WiFi в разных VLAN'ах и в разных подсетях (по-моему, это единственное различие с точки зрения L3).
В логи при подключении по офисному WiFi пишет следующее:
Mon Mar 11 11:50:24 2013 12 variation(s) on previous 20 message(s) suppressed by --mute Mon Mar 11 11:50:24 2013 MULTI: multi_create_instance called Mon Mar 11 11:50:24 2013 109.202.***.***:39552 Re-using SSL/TLS context Mon Mar 11 11:50:24 2013 109.202.***.***:39552 LZO compression initialized Mon Mar 11 11:50:24 2013 109.202.***.***:39552 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ] Mon Mar 11 11:50:24 2013 109.202.***.***:39552 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ] Mon Mar 11 11:50:24 2013 109.202.***.***:39552 Local Options hash (VER=V4): '14168603' Mon Mar 11 11:50:24 2013 109.202.***.***:39552 Expected Remote Options hash (VER=V4): '504e774e' Mon Mar 11 11:50:24 2013 109.202.***.***:39552 TLS: Initial packet from [AF_INET]109.202.***.***:39552, sid=5e5fc776 9d33de47 Mon Mar 11 11:50:24 2013 109.202.***.***:39552 TLS Error: Unroutable control packet received from [AF_INET]109.202.***.***:39552 (si=3 op=P_ACK_V1) Mon Mar 11 11:50:24 2013 109.202.***.***:39552 TLS Error: Unroutable control packet received from [AF_INET]109.202.***.***:39552 (si=3 op=P_CONTROL_V1) Mon Mar 11 11:50:26 2013 109.202.***.***:39552 TLS Error: Unroutable control packet received from [AF_INET]109.202.***.***:39552 (si=3 op=P_CONTROL_V1)
Куда смотреть в первую очередь?
Конфиг OpenVPN:
local 93.189.***.*** port 1194 proto udp dev tun0 ca /etc/openvpn/keys/ca.crt cert /etc/openvpn/keys/server.crt dh /etc/openvpn/keys/dh2048.pem server 10.24.0.0 255.255.0.0 ifconfig-pool-persist ipp.txt client-config-dir /etc/openvpn/ccd route 10.24.0.0 255.255.0.0 push «route 10.24.0.0 255.255.0.0» keepalive 10 40 comp-lzo user openvpn group openvpn persist-key persist-tun status /var/log/openvpn-status.log log /var/log/openvpn.log log-append /var/log/openvpn.log verb 3 mute 20
Есть сервер с Debian 6.0 на борту. На нём OpenVPN и iptables. Подключены два клиента (IP выдаются через ccd openvpn'a):
10.24.10.20 и 10.24.11.10
Почему при такой конфигурации пакеты от клиента 10.24.10.20 доходят до клиента 10.24.11.10? Вроде бы политика по умолчанию везде выставлена в drop.
OpenVPN конфиг:
local 93.***.***.*** port 1194 proto udp dev tun0 ca /etc/openvpn/keys/ca.crt cert /etc/openvpn/keys/server.crt dh /etc/openvpn/keys/dh2048.pem server 10.24.0.0 255.255.255.0 ifconfig-pool-persist ipp.txt client-config-dir /etc/openvpn/ccd route 10.24.10.0 255.255.255.0 push «route 10.24.0.0 255.255.0.0» client-to-client keepalive 10 40 comp-lzo user openvpn group openvpn persist-key persist-tun status /var/log/openvpn-status.log log /var/log/openvpn.log log-append /var/log/openvpn.log verb 3 mute 20
iptables:
Chain INPUT (policy DROP 0 packets, 0 bytes) num pkts bytes target prot opt in out source destination 1 1427 181K ACCEPT all — lo any anywhere anywhere 2 0 0 REJECT all — !lo any anywhere loopback/8 reject-with icmp-port-unreachable 3 461 43543 ACCEPT tcp — any any anywhere anywhere tcp dpt:ssh 4 1413 203K ACCEPT udp — any any anywhere anywhere udp dpt:openvpn 5 0 0 ACCEPT tcp — any any anywhere anywhere tcp dpt:www 6 0 0 ACCEPT tcp — any any anywhere anywhere tcp dpt:https 7 10 526 LOG all — any any anywhere anywhere limit: avg 5/min burst 5 LOG level debug prefix `iptables denied: ' 8 10 526 REJECT all — any any anywhere anywhere reject-with icmp-port-unreachable
Chain FORWARD (policy DROP 0 packets, 0 bytes) num pkts bytes target prot opt in out source destination 1 0 0 REJECT all — tun0 any 10.24.10.0/24 10.24.11.0/24 reject-with icmp-port-unreachable 2 0 0 REJECT udp — any any anywhere anywhere udp spt:openvpn reject-with icmp-port-unreachable 3 0 0 LOG all — any any anywhere anywhere limit: avg 5/min burst 5 LOG level debug prefix `iptables denied: ' 4 0 0 REJECT all — any any anywhere anywhere reject-with icmp-port-unreachable
Chain OUTPUT (policy DROP 0 packets, 0 bytes) num pkts bytes target prot opt in out source destination 1 1427 181K ACCEPT all — any lo anywhere anywhere 2 0 0 REJECT all — any !lo anywhere loopback/8 reject-with icmp-port-unreachable 3 312 63412 ACCEPT tcp — any any anywhere anywhere tcp spt:ssh 4 1415 203K ACCEPT udp — any any anywhere anywhere udp spt:openvpn 5 0 0 ACCEPT tcp — any any anywhere anywhere tcp spt:www 6 0 0 ACCEPT tcp — any any anywhere anywhere tcp spt:https 7 26 1954 REJECT all — any any anywhere anywhere reject-with icmp-port-unreachable
Iptables конфиг:
*filter
-F INPUT -F OUTPUT -F FORWARD
# Allows all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0 -A INPUT -i lo -j ACCEPT -A OUTPUT -o lo -j ACCEPT -A INPUT ! -i lo -d 127.0.0.0/8 -j REJECT -A OUTPUT ! -o lo -d 127.0.0.0/8 -j REJECT
# SSH -A INPUT -p tcp --dport 22 -j ACCEPT -A OUTPUT -p tcp --sport 22 -j ACCEPT
# OpenVPN -A INPUT -p udp --dport 1194 -j ACCEPT -A OUTPUT -p udp --sport 1194 -j ACCEPT -A FORWARD -p udp --sport 1194 -j REJECT
# Nginx -A INPUT -p tcp --dport 80 -j ACCEPT -A OUTPUT -p tcp --sport 80 -j ACCEPT -A INPUT -p tcp --dport 443 -j ACCEPT -A OUTPUT -p tcp --sport 443 -j ACCEPT
Периодически зависают виртуальные машины (в логах не могу найти объяснения). При этом хостовая ОС работает нормально. Подозреваю, что связано с перегревом ЦП, но аргументов нет.
На сервере установлен ISC DHCP server V4.1.1, на клиенте ISC DHCP Client V3.1.1.
При этом сервер пишет в логи:
Oct 16 14:46:27 dhcpd: DHCPREQUEST for 192.168.31.10 from a0:b4:cc:6b:02:85 via eth1: wrong network. Oct 16 14:46:27 dhcpd: DHCPNAK on 192.168.31.10 to a0:b4:cc:6a:02:85 via eth1 Oct 16 14:46:27 dhcpd: DHCPDISCOVER from a0:b4:cc:6a:02:85 via eth1 Oct 16 14:46:28 dhcpd: DHCPOFFER on 192.168.40.3 to a0:b4:cc:6a:02:85 via eth1 Oct 16 14:46:30 dhcpd: DHCPREQUEST for 192.168.40.3 (192.168.40.1) from a0:b4:cc:6a:02:85 via eth1 Oct 16 14:46:30 dhcpd: DHCPACK on 192.168.40.3 to a0:b4:cc:6a:02:85 via eth1
А клиент не получает IP.
Если подключить другого клиента с isc-dhclient-4.1.1-P1, то адрес получен успешно.
Вопрос: являются ли клиент версии 3 и сервер версии 4 совместимыми? Если нет, то что можно сделать, чтобы подключить клиента (кроме обновления DHCP клиента до 4 версии)?
Пытаюсь запустить на GlassFish Server Open Source Edition 3.1.1 (build 12) код.
Но вылезает такая ошибка:
Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
There's no ObjectFactory with an @XmlElementDecl for the element {http://www.w3.org/2004/08/xop/include}Include.
В чем может быть проблема?
Исходники:
src/org/w3/_2004/_08/xop/include/Include.java
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.08.22 at 04:13:30 PM MSK
//
package org.w3._2004._08.xop.include;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
/**
* <p>Java class for Include complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="Include">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="href" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* <anyAttribute namespace='##other'/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Include", propOrder = {
"any"
})
public class Include {
@XmlAnyElement(lax = true)
protected List<Object> any;
@XmlAttribute(name = "href", required = true)
@XmlSchemaType(name = "anyURI")
protected String href;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the any property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the any property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAny().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
*
*
*/
public List<Object> getAny() {
if (any == null) {
any = new ArrayList<Object>();
}
return this.any;
}
/**
* Gets the value of the href property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHref() {
return href;
}
/**
* Sets the value of the href property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHref(String value) {
this.href = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
}
org/w3/_2004/_08/xop/include/ObjectFactory.java
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.08.22 at 04:13:30 PM MSK
//
package org.w3._2004._08.xop.include;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the org.w3._2004._08.xop.include package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
private final static QName _Include_QNAME = new QName("http://www.w3.org/2004/08/xop/include", "Include");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.w3._2004._08.xop.include
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link Include }
*
*/
public Include createInclude() {
return new Include();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Include }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.w3.org/2004/08/xop/include", name = "Include")
public JAXBElement<Include> createInclude(Include value) {
return new JAXBElement<Include>(_Include_QNAME, Include.class, null, value);
}
}
Настроил вывод access логов примерно таким образом:
дата, id процесса, приоритет, хост, http-метод, url, querystring, user ip, useragent, remote user, status, bytes send, response time, handler
Как access логи меня всё устраивает, но хотелось бы, если при запросе произошла ошибка (например, ошибка php), дополнительно бы отображался текст ошибки.
Но проблема в том, что в Apache формат error-логов не кастомизируется и в сислог вылетает сухой текст ошибки (и хрен там знает, какой url был запрошен, какие данные были переданы и т.д.).
Можно ли как-то объединить access и error логи или кастомизировать вывод error-логов?