Skip Navigation
nitrolife nitrolife @rekabu.ru
Posts 4
Comments 84
Alternatives to Mailcow?
  • Insert logs in pastebin.com and attach links and you can open ticket on git.

  • Alternatives to Mailcow?
  • You can use postfix + dovecot + roundcube + spamassassin + opendkim + pigeonhole. Maximum stability. Roundcube have aliases plugin.

    You can start from here: https://wiki.archlinux.org/title/Virtual_user_mail_system_with_Postfix,_Dovecot_and_Roundcube

  • I need help with my first home server. Permission/ownership and samba issues.
  • Topic starter don't use docker containers. He use lxc containers. LXC is virtual machines on host kernel. Case is that: He have 3 virtual machines with shared disk. In 3 VMs have 3 different applications. Applications work under different users and can't rewrite data on shared disk. That is user permissions problem.

  • I need help with my first home server. Permission/ownership and samba issues.
  • the idea is that: all your applications work under the same user. or at least under the same group. because this is exactly how the differentiation of rights is applied.

    A good plan is to create some kind of user in all three containers and run qbittorrent, samba and the third application under it.

    A bad plan is to run everything under a random user with 777 rights, but this is a really bad plan.

    Create a user in all three containers and work under it. That is not hard. Run qbittorent with that user. Config will be there: /home/user/.config . Then set that user for samba. I don't know third app , but I think you can find how change user in manual.

  • Selfhosted messenger/community software like discord
  • You can use Revolt. Literaly Discord clone. https://github.com/revoltchat

  • Greta Thunberg detained at The Hague climate demonstration
  • Her argument for being vocal is that her and her generation will have to live with the consequences of our fuckups the longest and hardest.

    Surprise, but if you stop generate energy by oil you can't have hard industry. It is quite difficult to cast steel without huge energy consumption. And aluminum is even more difficult. But for some reason, no one wants to ride horses and abandon airplanes. Them can stop buy industrial products. And problem will gone.

    And no, strangling heavy industry in your country until it is evacuated to China is not a fight for the global environment.

    It is convenient, of course, to tell what idiots everyone around is without having worked a single day in heavy industry. And in Greta's case, without having worked a day at all, apparently. I suggest she work at the factory for a couple of years and then repeat her statements.

    And it is better to live for a couple of years in a country with a less mild climate. Let's say where it is -30 in winter. Surely she doesn't hope that all 9 billion people will fit into the warm bosom of the Gulf Stream? Pollution from heating is also very significant. We don't even turn off cars here in some cities because then we just won't start them.

  • Now my arch is bloated more than the default ubuntu
  • or you can't buy if you're not successful enough or you're in the wrong country. For example, in my country, the minimum cost of a 1TB SSD is about $85 and a salary of $2,000 is considered a very successful salary at the upper limit

  • Moscow attack: Russian court charges four men with act of terrorism
  • You really won't see this in the USA, because few people even reach the border. After September 11, the United States is fine with eliminating threats. For example, the United States knew about this attack for 2 weeks.

    UPD: I also remind you that after September 11, the United States did not limit itself to one person but beat up an entire country

  • TIL How we plan nuclear waste warning to last 100,000 years
  • At the beginning of the article, it is mentioned that only the use of uranium-238, which is now not used, will expand the reserves of nuclear fuel by about 200 times.

    UPD: also in another article I read that not all uranium is completely destroyed in the reactor cycle, the rest turns into radioactive waste, which in a few years can be cooled and recycled into new rods for the reactor. in France, for example, they have been doing this for a long time. Here: https://habr.com/ru/articles/588877/

  • TIL How we plan nuclear waste warning to last 100,000 years
  • Oh, if only the reactors worked exclusively on uranium. Of course, I can quote Rosatom's articles, but unfortunately they are only in Russian. A closed fuel cycle was developed there back in 2015. If you want you can use Google translate: https://habr.com/ru/articles/388533/

    P.S. It is very specific to get scientific knowledge from a book called GREEN POLITICAL THOUGHT

  • TIL How we plan nuclear waste warning to last 100,000 years
  • Some countries successfully dismantle the remnants of the rods. Residues are extracted from spent nuclear fuel and rods are made not on uranium but on plutonium. The remmans of this rods is even more enriched than before reaktor starting work. as a result, it is possible to burn unenriched uranium and other heavy nuclei, so that the fuel will definitely last for a long time.

  • Firefox 121 Now Available With Wayland Enabled By Default
  • Short command wasn't work in my env. I can run only with full sockets path. May be I do something wrong.

  • Firefox 121 Now Available With Wayland Enabled By Default
  • Thanks. Not full wayland protocol support and have a bugs, but something is greater than nothing. UPD: The utilization of the Internet channel has also increased

  • Firefox 121 Now Available With Wayland Enabled By Default
  • Eh, the era when it was possible to throw the interface through an SSH session is over. Sadly. Or maybe I'm just too old. XD

  • I need some help with linux energy management and hibernation
  • In first you need understand what type of suspend you use:

    Suspend to RAM (aka suspend, aka sleep) The S3 sleeping state as defined by ACPI. Works by cutting off power to most parts of the machine aside from the RAM, which is required to restore the machine's state. Because of the large power savings, it is advisable for laptops to automatically enter this mode when the computer is running on batteries and the lid is closed (or the user is inactive for some time). Suspend to disk (aka hibernate) The S4 sleeping state as defined by ACPI. Saves the machine's state into swap space and completely powers off the machine. When the machine is powered on, the state is restored. Until then, there is zero power consumption. Hybrid suspend (aka hybrid sleep) A hybrid of suspending and hibernating, sometimes called suspend to both. Saves the machine's state into swap space, but does not power off the machine. Instead, it invokes the default suspend. Therefore, if the battery is not depleted, the system can resume instantly. If the battery is depleted, the system can be resumed from disk, which is much slower than resuming from RAM, but the machine's state has not been lost.

    I think you use Hybrid suspend. Hybrid suspend store memory to disk (20 seconds lag) and then lost battery for memory renew. Need you Suspend to RAM maybe? 20 Seconds lag will fixed with that.

    Then check

    cat /sys/power/mem_sleep
    

    If you see

    [s2idle] shallow deep
    

    check first if your UEFI advertises some settings for it, generally under Power or Sleep state or similar wording, with options named Windows 10, Windows and Linux or S3/Modern standby support for S0ix, and Legacy, Linux, Linux S3 or S3 enabled for S3 sleep.

    If you don't see anything you can swap sleep mode to Suspend to disk. That slow but don't use any power. Or try fix sleep status.

    More information you can find here: https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate

  • Сервер восстановлен после DDoS

    В общем был долгий тамаут из-за DDoS'а. Заодно обновил сервер на новую версию протокола. В целом всё продолжает работать.

    0
    Can i use mailcow on a dynamic IP with DDNS-updater for my usecase?
  • You need to create an MX record in the DNS zone of your domain. Something like:

    @ IN MX 10 my.zome.
    @ IN MX 20 server1.my.zome.
    

    You can create 1 MX record or more. 10 and 20 server priority for input mails.

    Then you need to create an spf record. There are several options here. For example

    @ IN TXT "v=spf1 +a +mx -all"

    allows you to send emails from A domain records, then from MX domain records and prohibits from all other hosts.

    Theoretically, you can only create an SPF record with A but without MX and dont create MX DNS records. Although I have not tried this configuration.

    This is the minimum set after which you will get into spam, but at least the letters will reach.

    You also need to make a PTR record to avoid spam folder, but this is not possible on a dynamic IP.

  • Editing grub Menü dual boot not working
  • Show df -h from Manjaro and Arch please.

  • What am I doing wrong?
  • Raid: https://wiki.archlinux.org/title/RAID

    Don't forget part "email notifications". In addition to configuring the raid, you need to understand when the disk crashed, otherwise the raid will not help.

    If you share files with windows. Basic way SMB share: https://wiki.archlinux.org/title/Samba

    if you want share files with linux or windows with not basic ways you have many choises. NFS for example, or sshfs if you need folder time to time, or share directory with nginx ( https://stackoverflow.com/questions/10663248/how-to-configure-nginx-to-enable-kinda-file-browser-mode ), or overkill: nextcloud server.

    UPD: In general, you just need to find a linux distributive with good documentation and use this documentation for the first time. Some things are solved differently in Linux than in Windows and you just won't know about it without reading the wiki.

  • Why and when should I use LVM?
  • interesting facts about LVM:

    1. You can make a volume snapshot of the system before a major change (for example, an update).

    2. You can enable caching and use HDD together with SSD cache

    3. You can build raid 0,1,5 directly on LVM (you still need modules from mdraid)

    4. Even without a raid, you can expand the partition beyond one disk to another or migrate the partition from disk to disk (without even disabling it)

    However, all this is done from the console and I do not know if there is a GUI.

  • Trustable distributed voting in the Fediverse
  • I think that in order to solve such a question, we first need to consider something else. Why, if votes are so important to you, can't you just create a bunch of accounts and vote honestly on any server?

    As soon as we are really sure that 1 person is 1 vote, and not 10, 100, 10000 or any other number, then it is already possible to build trust checks between servers. Although it seems that this has not been solved even by large social networks.

    The answer to your question in general is this: store the votes by servers and then double-check the result randomly.

    S returns: 50 votes for a post from server A, 30 for a post from server B, 10 for a post from server C, etc. Then you can randomly check on these servers whether the amount is correct. However, there is no way to check the voices of server S, so they either have to be thrown out or still trust the server at its word. It is possible to fully verify server S only if registration on all servers goes through a trusted intermediary.

  • [ОБНОВЛЕНИЕ] К серверу присоединён Lemmy Community Seeder

    Добавил к серверу Lemmy Community Seeder. Он обходит все сообщества на указанных серверах и добавляет популярные сообщества (больше 50 пользователей, больше 50 постов) сюда.

    Пока что просматриваются:

    • beehaw.org
    • lemmy.world
    • lemmy.ml
    • sh.itjust.works
    • lemmy.one

    Если найдёте ещё какой-то интересный сервер пишите в комментариях.

    0

    [ГАЙД] Мануал новичка

    Это перевод и небольшая редакция гайда отсюда https://lemmy.world/post/37906

    Добро подаловать.

    Часть 1. Добро подаловать в Lemmy

    О Lemmy

    Lemmy - это платформа для агрегирования новостей и их обсуждения, основанная на федерации разных узлов. Lemmy разрабатывается как ПО с открытым исходным кодом. Код можно посмотреть здесь: https://github.com/LemmyNet

    О федерации

    Что означает федерация?

    Это означает, что Lemmy использует протокол (Activity pub), который позволяет взаимодействовать всем серверам Lemmy.

    • Вы можете искать и просматривать сообщества на других серверах с помощью этого сервера
    • Вы можете создавать посты в сообществах на других серверах с помощью этого сервера
    • Вы можете отвечать на сообщения на других серверах с помощью этого сервера
    • Вы будете уведомлены (если пожелаете) о комментариях к вашим публикациям на других серверах

    Вы можете следить за пользователями / сообществами Lemmy на других платформах, которые также используют Activitypub (например, Mastodon, Calckey и т.д.)

    Пожалуйста, обратите внимание, что сервер начинает индексировать сообщество только после того, как пользователь этого сервера взаимодействовал с ним. То есть если никто на сервере не подписан, например, на [email protected] то на этом сервере не будет сообщений оттуда даже если вы выберете "все" в ленте постов.

    Картинка, поясняющая как это работает: (Это перевод оригинала от @[email protected] . Спасибо ему за проделанную работу)

    !

    Для увеличения откройте ссылку: https://rekabu.ru/pictrs/image/67511eb3-5033-4b8c-a18a-7d20e87dc1f9.jpeg

    Часть 2. О Rekabu.ru

    Rekabu.ru - это один из множества серверов, на которых запущен софт Lemmy.

    Список серверов и их статистика может быть просмотрена на FediDB (например на https://fedidb.org/)

    Краткое руководство

    Учётная запись

    Вы можете использовать аккаунт только для входа на сервер на котором его создавали, ни на каком другом сервере он не заработает. Содержимое серверов синхронизируется между разными серверами, но аккаунты пользователей - нет.

    Поиск

    В верхнем меню выберите иконку поиска (лупу). На открывшейся странице вы можете искать посты, коментарии и т.д.

    Вы можете просто ввести слово для поиска, и оно найдет известные этому серверу заголовки постов, контент постов, сообщества и т.д., содержащие это слово. Будет просмотрен любой контент с которым когда-либо взаимодействовал любой пользователь этого сервера.

    Вы также можете выполнить поиск сообщества по его ссылке, например [email protected] . Даже если сервер никогда не видел это сообщество, он будет искать его удаленно. Иногда требуется некоторое время, чтобы он извлек информацию (и тем временем отображает "Нет результатов" ...), так что просто наберитесь терпения и выполните поиск во второй раз через несколько секунд.

    Как искать сообщества можно посмотреть подробнее здесь: https://rekabu.ru/post/924

    Создание сообщества

    Во-первых, убедитесь, что сообщество еще не существует. Воспользуйтесь поиском (см. выше). Также попробуйте https://browse.feddit.de/ чтобы узнать, есть ли удаленные сообщества в других экземплярах Lemmy, которые еще не известны rekabu.ru. В прочем если все найденные на дургих сервервз сообщества по какой-то причине вам не нравятся можете создать локальное.

    Если вы уверены, что оно еще не существует, перейдите на главную страницу и нажмите ‘Создать сообщество’.

    !

    Это откроет следующую страницу:

    !

    Здесь вы можете заполнить:

    • Название: должно состоять только из строчных букв. Это будет /c/ Отображаемое имя: Это будет отображаемое имя. Вы можете загрузить иконку и изображение баннера.
    • Боковая панель должна содержать такие элементы, как описание, правила, ссылки и т.д. Вы можете использовать Markdown (если вы не знаете Markdown можно поискать поисковиком, это довольно распространённая разметка)
    • Если сообщество будет содержать в основном контент NSFW, установите флажок NSFW. NSFW разрешен до тех пор, пока он не нарушает правила.
    • Если вы хотите, чтобы публиковать могли только модераторы, установите этот флажок.
    • Выберите любой язык, на котором вы хотите, чтобы люди могли публиковать сообщения. Вам не следует отменять выбор ‘Неопределенный’. Выберите "Неопределённый" + Руссккий или Английский (или все 3 сразу). Некоторые приложения используют "Неопределенный" язык по умолчанию, поэтому они не будут работать, если вы его не выбрали. Что бы выбрать несколько языков зажмите Ctrl и потом нажмите на нужные языки.

    Чтение

    Я думаю, что смысл очевиден. Просто нажмите на сообщение, и вы сможете прочитать его. Иногда, когда комментариев много, они частично сворачиваются.

    Написание поста

    Просматривая сообщество, вы можете создать в нем новую запись. Прежде всего, обязательно ознакомьтесь с правилами сообщества, вероятно, указанными на боковой панели.

    !

    На странице Создания записи есть поля:

    • URL: Здесь вы можете вставить ссылку, которая будет показана в верхней части поста. Также там будет ссылка на миниатюру поста. В качестве альтернативы вы можете загрузить изображение, используя значок изображения справа от поля. Это изображение также будет отображаться в виде миниатюры для публикации. Название: Название поста.
    • Текст: Здесь вы можете ввести свой пост. Вы можете использовать Markdown, если хотите.
    • Сообщество: выберите сообщество, в котором вы хотите создать эту запись, по умолчанию используется сообщество, в котором вы были, когда нажали "создать запись".
    • NSFW: Выберите это, если вы публикуете какой-либо материал NSFW, это размоет миниатюру и отобразит "NSFW" за заголовком публикации.
    • Язык: Укажите, на каком языке написана ваша публикация. Также вы можете посмотреть документацию Lemmy по форматированию и т.д. если вам это необходимо.

    Клиентские приложения

    Есть несколько приложений, которые доступны или находятся в стадии тестирования. Смотрите список в этом посте!

    Часть 3. Проблемы

    Если вы обнаружите какую-либо проблему, пожалуйста, сообщите об этом здесь: https://rekabu.ru/c/support если вы думаете, что это связано с сервером (или не уверены).

    Сообщайте о любых проблемах или запросах на улучшение самого программного обеспечения Lemmy здесь: https://github.com/LemmyNet#

    0

    [ГАЙД] Как подписаться на сообщества других инстансов

    Для того что бы подписаться на сообщество с другого инстанса необходимо:

    1. войти в поиск
    2. Выбрать "сообщества" в критерии поиска
    3. Выбрать "все" для фильтра сообществ
    4. Ввести название сообщества. Название должно начинаться ! , сайт сообщества должен быть указан через @ как в случае с e-mail.
    5. Нажать поиск. Немного подождать. Если Ничего не произошло или сообщество не нашлось, нажать ещё раз.

    !

    3