• 0 Posts
  • 22 Comments
Joined 1 year ago
cake
Cake day: June 28th, 2023

help-circle



  • 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


  • 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.



  • 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.









  • On DNS you need A record if you have ipv4 only or A and AAAA records if you have ipv4 and ipv6.

    You DNS outside you home servers? If you have dynamic IP at home you can’t host DNS on home server.

    You have only 1 IP? You need port forwarding on you home gateway to home servers if you use somerhing like SSH. If you want access to something web based you need proxy. NGINX for example.

    How it exactly work:

    • Somewhere someone write youdomain.com in browser.
    • Browser ask local dns: who is youdomain.com
    • local dns ask another dns, and another and in one iteration request go to you dns. Or maybe some of dns have cached answer. But imagine that not.
    • You dns send answer youdomain.com is 111.222.333.444 for example. That is A record.
    • DNS work stop on that.
    • Browser send request to 111.222.333.444 with HTTP header “Host: youdomain.com” and some path. / or /something maybe.
    • Some balancer should get request and send in to right server in you home network.

    UPD: don’t show to internet something risky interfaces. Proxmox web panel or something like that. This is a real bad idea. For that type of services VPN extremely greatest. Send you DNS to public without protection not a great idea too. Including pihole. I think you will get into some botnet already on the 3rd day of work.


  • nitrolife@rekabu.rutoMemes@lemmy.mlClassic idiots
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    I wrote a little bit about something else.

    The law of conservation of energy always applies. If the wind rotates the windmill, then the energy of the wind force is converted into the energy of rotation of the windmill, and the wind energy reserve decreases.

    I have not found a single study on the impact of the global installation of wind turbines on wind roses around the world. Accordingly, I just can’t understand why this energy is considered “green”. Then the gasoline generator is quite environmentally friendly until the number of generators reaches a critical level.

    Moreover, the consequences of even a slight change in the wind rose are much more catastrophic than the pollution of the planet with carbon dioxide. For example, such as you see in the picture in the post.


  • nitrolife@rekabu.rutoMemes@lemmy.mlClassic idiots
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    They cost a few dollars per full recharge to charge compared to $30-50 per gas tank

    In my region full car fuel by gasoline cost 20$ and full electrocar recharge cost 14$. Not so much economy.

    they often regulate their internal temperature while charging so no waiting ages for the car to warm up first thing in the morning while you scrap ice off the windows

    If I drop electric car as my usual car on a field on nowhere I can’t go anywhere in the morning. If I drop my electric car on parking that costs recharge more than gasoline for usial car.

    Warming up the cabin also exists in my anti-theft system, just press the button while drinking tea before leaving.

    and who doesn’t love the instant insane torque that an electric motor provides?

    The moment to achieve which you need to warm the battery in advance for as much as 2 minutes and return to recharge in half an hour? In normal mode, this is no different from the average gasoline car, like Honda for example. I have a motorcycle for speed.

    Lower maintenance costs, longer lifetimes of individual vehicles

    I have 15 years old Honda Accord, and I payed nearly 16 000 $ on maintenance for all 15 years. Tesla model S cost me 85 000 $ for new car if I want by it and nearly 70% of that every 5 years because battery capacity will degrade and need replace. This not look like an lower maintenance cost.

    plus idling is basically free so drive-thrus, listening to music while parked and stop go traffic wastes way less gas. Regenerative breaking not only provides some free charge to the motors but also spares your breaks so they last way longer.

    The average mileage for me is 200 kilometers. In one day. And if I want to visit my parents, then 800 kilometers in one direction along the highways without recharge stations. ,Saving on idling, but the need to buy a generator for $ 1,500 just to visit your parents? I’d rather overpay for not to stand in the middle of nothing at -35 degrees for a few hours without working conditioner just to be able to drive on.

    All change by regions. I can buy 95 gasoline per 0.6$ for liter. Electric cars will extreme hard try for enter to market.

    UPD:

    Not to mention how capturing pollutants at the plant is far more doable than capturing pollutants from every single car.

    The irony is that transport throws out more factories, only if you count cars, ships and all other transport. If we count only private cars, then factories still emit more, even despite all the tricks of filtration. This, of course, does not mean that you should not try to reduce emissions. The main thing is that such dirty gasoline cars should not be replaced by a new conglomerate of factories.


  • nitrolife@rekabu.rutoMemes@lemmy.mlClassic idiots
    link
    fedilink
    arrow-up
    1
    arrow-down
    2
    ·
    1 year ago

    Why you? I was talking about my geographical area. And we don’t build any wind turbines, we just use nuclear and hydroelectric power plants. although, of course, we mainly use thermal power plants.

    Climate is a planetary-scale problem, so it is impossible to build environmentally friendly energy production on one side of the earth in the hope of overcoming warming. Maybe my English is not good enough. This is my third language, so I’m really sorry.


  • nitrolife@rekabu.rutoMemes@lemmy.mlClassic idiots
    link
    fedilink
    arrow-up
    1
    arrow-down
    19
    ·
    edit-2
    1 year ago

    I really don’t understand the topic well, but I searched the Internet and indeed wind generation is possible. but there is still no solar generation due to too short daylight hours. as for hydroelectric power plants, they are already around. I did not think that they are considered green, given that they require flooding of huge territories.

    UPD: also, for any large wind generation, forests will most likely have to be cut down.


  • nitrolife@rekabu.rutoMemes@lemmy.mlClassic idiots
    link
    fedilink
    arrow-up
    6
    arrow-down
    34
    ·
    1 year ago

    Where should the energy for electric vehicles come from? of course, I understand that living somewhere in Europe, you can talk about wind turbines, solar panels and everything green. But if you live in a region where, if the heating is turned off, you can freeze to death in less than a day, you start looking at wind turbines and solar panels with irony.

    And I don’t really understand, besides, how exactly replacing some energy emissions in random places with other emissions in random places will greatly help to cool the planet.