LINUX.ORG.RU

Сообщения luntik2012

 

как хостить сайт с не везде легальным контентом?

предположим, это торрент трекер

вопрос: где и как захоститься, чтобы местные ограны правопорядка до меня физически не добрались (соответственно, оплачивать желательно криптой или доставать где-то левые карточки/счета)? в идеале чтобы и сам хостер никогда не вырубил сайт, если на него кто-то пожалуется.

опять же хостинг можно использовать как прокси, как тогда скрыть само хранилище?

даркнет тоже вариант, но с ним аудитории будет на порядок меньше.

 , ,

luntik2012
()

goodix 10" touchscreen в archlinux

есть тач hdmi/usb

это выдаёт ошибку

# sudo libinput list-devices
event7  - Chalkboard Electronics HID Touchscreen: libinput bug: missing tablet capabilities: resolution. Ignoring this device.

это выдаёт правильные координаты

$ sudo evtest /dev/input/event7
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x4d8 product 0xf723 version 0x111
Input device name: "Chalkboard Electronics HID Touchscreen"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 320 (BTN_TOOL_PEN)
    Event code 321 (BTN_TOOL_RUBBER)
    Event code 330 (BTN_TOUCH)
    Event code 331 (BTN_STYLUS)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value    709
      Min        0
      Max     1366
    Event code 1 (ABS_Y)
      Value    366
      Min        0
      Max      768
    Event code 24 (ABS_PRESSURE)
      Value      0
      Min        0
      Max      768
    Event code 26 (ABS_TILT_X)
      Value      0
      Min   -32767
      Max      768
    Event code 27 (ABS_TILT_Y)
      Value      0
      Min   -32767
      Max      768
  Event type 4 (EV_MSC)
    Event code 4 (MSC_SCAN)
Properties:
  Property type 1 (INPUT_PROP_DIRECT)
Testing ... (interrupt to exit)
Event: time 1565182265.863028, type 4 (EV_MSC), code 4 (MSC_SCAN), value d0042
Event: time 1565182265.863028, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1565182265.863028, type 1 (EV_KEY), code 320 (BTN_TOOL_PEN), value 1
Event: time 1565182265.863028, type 3 (EV_ABS), code 0 (ABS_X), value 557
Event: time 1565182265.863028, type 3 (EV_ABS), code 1 (ABS_Y), value 479
Event: time 1565182265.863028, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 768
Event: time 1565182265.863028, -------------- SYN_REPORT ------------
Event: time 1565182266.088009, type 4 (EV_MSC), code 4 (MSC_SCAN), value d0042
Event: time 1565182266.088009, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1565182266.088009, type 1 (EV_KEY), code 320 (BTN_TOOL_PEN), value 0
Event: time 1565182266.088009, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 0
Event: time 1565182266.088009, -------------- SYN_REPORT ------------
$ sudo xinput_calibrator 
Error: No calibratable devices found.

пробовал в xfce4 и gnome-wayland/gnome-X11, никак не хочет работать. в настройках xfce и гнома не появляется.

# ls /usr/share/X11/xorg.conf.d/
10-quirks.conf  40-libinput.conf  70-synaptics.conf
# cat /usr/share/X11/xorg.conf.d/40-libinput.conf 
# Match on all types of devices but joysticks
#
# If you want to configure your devices, do not copy this file.
# Instead, use a config snippet that contains something like this:
#
# Section "InputClass"
#   Identifier "something or other"
#   MatchDriver "libinput"
#
#   MatchIsTouchpad "on"
#   ... other Match directives ...
#   Option "someoption" "value"
# EndSection
#
# This applies the option any libinput device also matched by the other
# directives. See the xorg.conf(5) man page for more info on
# matching devices.

Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event7"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

# $ cat /usr/share/X11/xorg.conf.d/70-synaptics.conf 
# Example xorg.conf.d snippet that assigns the touchpad driver
# to all touchpads. See xorg.conf.d(5) for more information on
# InputClass.
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating. Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
# Additional options may be added in the form of
#   Option "OptionName" "value"
#
Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
#       MatchDevicePath "/dev/input/event*"
EndSection

Section "InputClass"
        Identifier "touchpad ignore duplicates"
        MatchIsTouchpad "on"
        MatchOS "Linux"
        MatchDevicePath "/dev/input/mouse*"
        Option "Ignore" "on"
EndSection

# This option enables the bottom right corner to be a right button on clickpads
# and the right and middle top areas to be right / middle buttons on clickpads
# with a top button area.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Default clickpad buttons"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
        Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"
EndSection

# This option disables software buttons on Apple touchpads.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Disable clickpad buttons on Apple touchpads"
        MatchProduct "Apple|bcm5974"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
EndSection
$ cat /var/log/Xorg.0.log | grep event7
[   206.241] (II) config/udev: Adding input device Intel HID 5 button array (/dev/input/event7)
[   206.241] (**) Option "Device" "/dev/input/event7"
[   206.242] (II) event7  - Intel HID 5 button array: is tagged by udev as: Keyboard
[   206.242] (II) event7  - Intel HID 5 button array: device is a keyboard
[   206.243] (II) event7  - Intel HID 5 button array: device removed
[   206.278] (**) Option "config_info" "udev:/sys/devices/platform/INT33D5:00/input/input8/event7"
[   206.280] (II) event7  - Intel HID 5 button array: is tagged by udev as: Keyboard
[   206.280] (II) event7  - Intel HID 5 button array: device is a keyboard
[   221.134] (II) event7  - Intel HID 5 button array: device removed

как это заводить вообще?

 , ,

luntik2012
()

кто-нибудь поднимал hubzilla под арчем?

созрел сесть и попробовать федеративные социалочки. остановился на hubzilla, спорить или выяснять сейчас, что там самое более лучшее, не хочу.

задачка: поднять под арчем. ну я ж не могу на чужом серваке. инфы в гуглах ноль. в мануале всё завязано на apache (у меня nginx, с апачем они в конфликте) + плюс требуются некоторые мозги в плане админства веб-серваков, т.к. в мане ни слова о том, как нужно готовить секьюрность сервака и т.д.

мелочи типа любимого нашего systemd и certbot осилю.

у них есть автоскрипт под дебиан 9, 700 строчек на баше, апач и прочий хардкод типа /etc/selfhost.

бонусом арчвики на немецком. бонусом пустой AUR.

были такие мазохисты до меня?

я это сделаю, но хотелось бы с вазелином.

P.S. тег linux меня на этом сайте вставляет

 , , , ,

luntik2012
()

archlinux: почему sendmail находится в aur, а не в официальных репах?

подумал накидать email клиент на коленке, ничего про либы для получения/отправки пока толком не знаю, вот и думаю, какую пробовать. подумываю о vmime, зависит от sendmail.

не зря же, наверное, sendmail в aur висит?

 , ,

luntik2012
()

open hardware gsm модуль в ноут

бывают ли такие по PCI? на крайняк в USB, но в идеале не длиной с палец. в идеальном идеале чтобы с wifi

хочу: минимум получать/отправлять SMS, максимум звонить и принимать звонки

 ,

luntik2012
()

множественные сессии в arch как в ubuntu

В убунте можно было (с lightdm, дальше не видел) залочить сессию и залогиниться в другого юзера, а после всегда вернуться в первого и т.д.

Как это сделать в арче без лишних X-сессий и костылей aka сохранение сессии в xfce? (претензия только к этой части xfce, если чё).

То бишь хочу сразу миллион сессий на миллион юзеров.

P.S. кто-нибудь можешь объяснить, почему в убунте в блокировке сессии музло в lightdm продолжало играть, а при ctrl+alt+fне7 - нужно было сначала залогиниться?

 , , , ,

luntik2012
()

qt. наследование qasbtractlistmodel для qml

Решил, раз под наркотиками, можно написать одноранговый чат на qt/qml. Вроде как и не первый год на qt, но какого лешего не вызывается метод data()? Для простоты можно представить, что rowCount() возвращает всегда 1, в data() возвращается всегда QVariant().


#pragma once

#include <QAbstractListModel>

#include "jsonpacket.h"

class MessagesModel : public QAbstractListModel
{
	Q_OBJECT

public:
	MessagesModel();
	MessagesModel(const MessagesModel &other);

public:
	Q_INVOKABLE virtual QVariant data(
			const QModelIndex &index,
			int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
	Q_INVOKABLE virtual int rowCount(
			const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;

protected:
	QList<MessagePacket> m_messages;
};

Q_DECLARE_METATYPE(MessagesModel)

 , ,

luntik2012
()

RSS подписка на новые темы