There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

erAck , to linux in YSK how to get your IP address from the command line
@erAck@discuss.tchncs.de avatar
<pre style="background-color:#ffffff;">
<span style="color:#323232;">% curl ipinfo.io/ip
</span><span style="color:#323232;">curl: (7) Failed to connect to ipinfo.io port 80 after 25 ms: Connection refused
</span><span style="color:#323232;">% curl https://ipinfo.io/ip
</span><span style="color:#323232;">curl: (7) Failed to connect to ipinfo.io port 443 after 29 ms: Connection refused
</span>

They suck and apparently block curl (and lynx and elinks) from dynamic IP, it works in Firefox or on a server with static IP.

Another one is ifconfig.me/ip so

<pre style="background-color:#ffffff;">
<span style="color:#323232;">curl https://ifconfig.me/ip
</span>

that works.

aesir OP , to selfhosted in It's always DNS, should I complain?

What does it mean?

<pre style="background-color:#ffffff;">
<span style="color:#323232;">nslookup my.domain.com
</span><span style="color:#323232;">Server:  dns.google
</span><span style="color:#323232;">Address:  8.8.8.8
</span><span style="color:#323232;">
</span><span style="color:#323232;">Non-authoritative answer:
</span><span style="color:#323232;">Name:    my.domain.com
</span><span style="color:#323232;">Addresses:  ::1
</span><span style="color:#323232;">          xx.x.xx.xxx (wrong IPV4 address from the other side of the world)
</span>

If I use 8.8.8.8 at home addresses is first of all “address” and is correct.

gabe , to selfhost in [Project] Lemmy EZ-Mode Docker-Compose Stack

I can vouch for this, it works pretty well. Lemmy’s ansible is extremely busted and this was the only I could get it to work without it fully breaking every time my server rebooted.

Also, If it throws an error at first do this to make the initial config generator executable. Some systems might require this, some won’t. Mine did. While in the base ezlemmy directory do this.

<pre style="background-color:#ffffff;">
<span style="color:#323232;">chmod +x /config/config-entrypoint.sh
</span><span style="color:#323232;">
</span>
eth0p , to programmerhumor in This code is blood sacrifice-dependent

Circular dependencies can be removed in almost every case by splitting out a large module into smaller ones and adding an interface or two.

In your bot example, you have a circular dependency where (for example) the bot needs to read messages, then run a command from a module, which then needs to send messages back.

<pre style="background-color:#ffffff;">
<span style="color:#323232;">    v-----------
</span><span style="color:#323232;">  bot    command_foo
</span><span style="color:#323232;">    -----------^
</span>

This can be solved by making a command conform to an interface, and shifting the responsibility of registering commands to the code that creates the bot instance.

<pre style="background-color:#ffffff;">
<span style="color:#323232;">    main <---
</span><span style="color:#323232;">    ^        
</span><span style="color:#323232;">    |          
</span><span style="color:#323232;">    bot ---> command_foo
</span>

The bot module would expose the Bot class and a Command instance. The command_foo module would import Bot and export a class implementing Command.

The main function would import Bot and CommandFoo, and create an instance of the bot with CommandFoo registered:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">// bot module
</span><span style="color:#323232;">export interface Command {
</span><span style="color:#323232;">    onRegister(bot: Bot, command: string);
</span><span style="color:#323232;">    onCommand(user: User, message: string);
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;">// command_foo module
</span><span style="color:#323232;">import {Bot, Command} from "bot";
</span><span style="color:#323232;">export class CommandFoo implements Command {
</span><span style="color:#323232;">    private bot: Bot;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    onRegister(bot: Bot, command: string) {
</span><span style="color:#323232;">        this.bot = bot;
</span><span style="color:#323232;">    }
</span><span style="color:#323232;">
</span><span style="color:#323232;">    onCommand(user: User, message: string) {
</span><span style="color:#323232;">        this.bot.replyTo(user, "Bar.");
</span><span style="color:#323232;">    }
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;">// main
</span><span style="color:#323232;">import {Bot} from "bot";
</span><span style="color:#323232;">import {CommandFoo} from "command_foo";
</span><span style="color:#323232;">
</span><span style="color:#323232;">let bot = new Bot();
</span><span style="color:#323232;">bot.registerCommand("/foo", new CommandFoo());
</span><span style="color:#323232;">bot.start();
</span>

It’s a few more lines of code, but it has no circular dependencies, reduced coupling, and more flexibility. It’s easier to write unit tests for, and users are free to extend it with whatever commands they want, without needing to modify the bot module to add them.

zombuey , (edited ) to news in Gun control laws in California and beyond in peril as Supreme Court expands 2nd Amendment

This guy gets it. Gun Control has only been passed in this country in response to minority gun ownership. They have been poorly conceived at make no sense from the get go. It is near impossible to control inexpensive technologies and banning those technologies is a waste of time. We talk about gun violence but that’s the wrong conversation. We should be talking about violence and why that occurs. The gun is just a multiplier of violence not the actual problem.

Guns just as or much more dangerous were readily available by mail order in the 70’s and back so why weren’t these problems more profound then? For one at the end of the 70’s we did away with our entire mental health system and never replaced it. People seeking mental healthcare have few options in this country even with insurance as insurers have figured out if the neglect there provider lists then they pay less overall with zero ramifications and little to no loss in sales from large employer plans (who don’t prioritize the issue).

<pre style="background-color:#ffffff;">
<span style="color:#323232;">Mental Health education and health education overall is severely lacking in this country most people don't know the signs to identify a mental health problem or how to handle it even professionals did you know that males most commonly display signs of schizophrenia at 18 but women most often start to display signs at 27? 
</span><span style="color:#323232;">
</span><span style="color:#323232;">Poverty and Economic disparity though likely play the largest role. This country is quickly devolving due to rampant poverty and resources are flooding to the top with no stop in sight. I really tie both economic poverty and lack of access to reasonable education as both impact the country in relatively the same way. The major contributing factors are market monopolies, regulatory capture, over representation of corporations in our electoral system, and a broken electoral system. I won't go through all of these and there are absolutely more. 
</span><span style="color:#323232;">
</span><span style="color:#323232;">The good news is that the two things that would do the most to alleviate these things are possible. A move to ranked choice voting and a push for a single payer system for healthcare. The path may seem indirect but a ranked choice system would resolve the all or nothingness of our system and make it harder for corporations to fully corrupt our electoral process as they would need to do far more than simply push for a single side. a single payer system would eliminate insurers that have an incentive to avoid paying for mental healthcare and sever health and well-being as a reason to be a wage slave.
</span>
Spectacle8011 OP , to linux_gaming in [Guide] Playing Visual Novels on GNU/Linux
@Spectacle8011@lemmy.comfysnug.space avatar

Here are some other VNs:

  • I tried Dracu-Riot and don’t even get a window:
<pre style="background-color:#ffffff;">
<span style="color:#323232;">002c:err:wineboot:process_run_key Error running cmd L"C:\windows\system32\winemenubuilder.exe -r" (126).
</span>
  • I tried Hatsuyuki Sakura and got an odd one complaining about not being able to find Startmenu.exe:
<pre style="background-color:#ffffff;">
<span style="color:#323232;">StartMenu.exeが見つかりませんでした。
</span>
  • I tried Suteki na Kanojo no Tsukurikata, which gives me this:
<pre style="background-color:#ffffff;">
<span style="color:#323232;">00c4:err:module:import_dll Library UnityPlayer.dll (which is needed by L"Z:\run\user\1000\doc\2bcd2b83\Sutekina_kanojo_no_tsukurikata.exe") not found
</span><span style="color:#323232;">00c4:err:module:LdrInitializeThunk Importing dlls for L"Z:\run\user\1000\doc\2bcd2b83\Sutekina_kanojo_no_tsukurikata.exe" failed, status c0000135
</span>
  • I tried Amrilato, which tells me it can’t find the game executable and gives me this:
<pre style="background-color:#ffffff;">
<span style="color:#323232;">002c:err:wineboot:process_run_key Error running cmd L"C:\windows\system32\winemenubuilder.exe -r" (126).
</span><span style="color:#323232;">Failed to launch. Arguments are:
</span><span style="color:#323232;">0 "Z:\run\user\1000\doc\4b6a94df\lib\windows-i686\TheExpressionAmrilato
</span><span style="color:#323232;">.exe"
</span><span style="color:#323232;">1 NULL
</span><span style="color:#323232;">2 NULL
</span><span style="color:#323232;">3 NULL
</span>
  • I tried Higurashi Meakashi, which gives me this even though there is a data folder named this:
<pre style="background-color:#ffffff;">
<span style="color:#323232;">002c:err:wineboot:process_run_key Error running cmd L"C:\windows\system32\winemenubuilder.exe -r" (126).
</span><span style="color:#323232;">There should be 'HigurashiEp05_Data'
</span><span style="color:#323232;">folder next to the executable
</span>

And it continues on in this fashion. I’m using sys-wine-8.0, but switching to soda-7.0-7 gives me identical results. It seems something is fundamentally broken in the install, but I don’t see how that could be given I installed it via Flatpak.

Caddy with Cloudflare DNS fails to solve acme challenge

Hello, I am a pretty new beginner to website stuff and was trying to get my personal website to run on my VPS. The website’s DNS is Cloudflare and I am trying to get it to work using Caddy. I’ve been trying to get past the acme challenge solving thing, but always get this error message:...

AndyM , to selfhosted in Caddy with Cloudflare DNS fails to solve acme challenge

Try adding

<pre style="background-color:#ffffff;">
<span style="color:#323232;">resolvers 1.1.1.1
</span>

in the tls block below dns cloudflare

omidmnz , to linux in My little brother loves the dualboot setup I installed for him. He says "It's like iOS"

I was looking for a similar comment. Plasma does exactly that too. These are probably provided from this line in its .desktop file:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">Keywords=Slideshow;Slides;OpenDocument Presentation;Microsoft PowerPoint;Microsoft Works;OpenOffice Impress;odp;ppt;pptx;
</span>

Just installed Viewtube. What's your favorite alternative youtube frontend ?

I used a public instance of Piped for a while and thought about selfhosting it, but the installation process was incredibly hard, to the point of being obnoxious, and in the end, it didn’t even work. I liked the features I saw on the public instances and would like to revisit it some time. Until there I’m using Viewtube....

gobbling871 , to selfhosted in Just installed Viewtube. What's your favorite alternative youtube frontend ?

No minimum requirements. And here you go:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">#version: "3.8"
</span><span style="color:#323232;">services:
</span><span style="color:#323232;">  invidious:
</span><span style="color:#323232;">    image: quay.io/invidious/invidious:latest
</span><span style="color:#323232;">    restart: unless-stopped
</span><span style="color:#323232;">    security_opt:
</span><span style="color:#323232;">      - no-new-privileges
</span><span style="color:#323232;">    container_name: invidious
</span><span style="color:#323232;">    stop_grace_period: 3s
</span><span style="color:#323232;">    ports:
</span><span style="color:#323232;">      - 127.0.0.1:3000:3000
</span><span style="color:#323232;">    environment:
</span><span style="color:#323232;">      INVIDIOUS_CONFIG: |
</span><span style="color:#323232;">        db:
</span><span style="color:#323232;">          dbname: invidious
</span><span style="color:#323232;">          user: invidious
</span><span style="color:#323232;">          password: superstrongpassword491
</span><span style="color:#323232;">          host: postgres
</span><span style="color:#323232;">          port: 5432
</span><span style="color:#323232;">        check_tables: true
</span><span style="color:#323232;">        popular_enabled: true
</span><span style="color:#323232;">        login_enabled: false
</span><span style="color:#323232;">        statistics_enabled: true
</span><span style="color:#323232;">        hsts: true
</span><span style="color:#323232;">        hmac_key: *PICK-A-LONG-RANDOM-STRING*
</span><span style="color:#323232;">        https_only: true
</span><span style="color:#323232;">        external_port: 443
</span><span style="color:#323232;">        use_quic: true
</span><span style="color:#323232;">        database_url: postgres://invidious:superstrongpassword491@postgres/invidious?auth_methods=md5,scram-sha-256
</span><span style="color:#323232;">        force_resolve: ipv4
</span><span style="color:#323232;">        domain: *your.domain.com*
</span><span style="color:#323232;">    healthcheck:
</span><span style="color:#323232;">      test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1
</span><span style="color:#323232;">      interval: 30s
</span><span style="color:#323232;">      timeout: 5s
</span><span style="color:#323232;">      retries: 2
</span><span style="color:#323232;">    depends_on:
</span><span style="color:#323232;">      - postgres
</span><span style="color:#323232;">
</span><span style="color:#323232;">  postgres:
</span><span style="color:#323232;">    image: postgres:15-alpine
</span><span style="color:#323232;">    container_name: postgres
</span><span style="color:#323232;">    security_opt:
</span><span style="color:#323232;">      - no-new-privileges
</span><span style="color:#323232;">    restart: always
</span><span style="color:#323232;">    # purposefully excluded volumes section
</span><span style="color:#323232;">    # the database will reset on recreate
</span><span style="color:#323232;">    environment:
</span><span style="color:#323232;">      POSTGRES_DB: invidious
</span><span style="color:#323232;">      POSTGRES_USER: invidious
</span><span style="color:#323232;">      POSTGRES_PASSWORD: superstrongpassword491
</span><span style="color:#323232;">    healthcheck:
</span><span style="color:#323232;">      test: pg_isready -U invidious -d invidious
</span><span style="color:#323232;">      interval: 10s
</span><span style="color:#323232;">      timeout: 5s
</span><span style="color:#323232;">      retries: 5
</span>

How do you keep track of all apps you install and their configurations?

Earlier this year, I built a new PC and it’s running Ubuntu. I’ve been installing various apps and configuring them since then. Now, I realize I don’t have any way of knowing what I would want to reinstall, if I (for instance) lost this drive somehow....

cleric_splash , to linux in How do you keep track of all apps you install and their configurations?
<pre style="background-color:#ffffff;">
<span style="color:#323232;">function pkglist -d "Gets list of installed packages"
</span><span style="color:#323232;">  # Prevent descriptions in other languages
</span><span style="color:#323232;">  set -l LANG C
</span><span style="color:#323232;">  # Define pkglists location
</span><span style="color:#323232;">  set -l dot $HOME/.config/dotfiles
</span><span style="color:#323232;">
</span><span style="color:#323232;">  echo "(1/5) RPM-OSTREE status"
</span><span style="color:#323232;">  rpm-ostree status > $dot/pkglist.rpm-ostree --booted
</span><span style="color:#323232;">
</span><span style="color:#323232;">  echo "(2/5) Identify flatpaks"
</span><span style="color:#323232;">  flatpak list --app --columns=application > $dot/pkglist.flatpak
</span><span style="color:#323232;">
</span><span style="color:#323232;">  echo "(3/5) Identify pinned flatpak runtimes"
</span><span style="color:#323232;">  flatpak pin > $dot/pkglist.flatpak.pinned
</span><span style="color:#323232;">
</span><span style="color:#323232;">  echo "(4/5) Identify flatpak overrides"
</span><span style="color:#323232;">  for i in (cat $dot/pkglist.flatpak)
</span><span style="color:#323232;">      if test -s (flatpak override --show --user $i|psub)
</span><span style="color:#323232;">	  echo $i
</span><span style="color:#323232;">	  flatpak override --show --user $i
</span><span style="color:#323232;">	  echo
</span><span style="color:#323232;">      end
</span><span style="color:#323232;">  end > $dot/pkglist.flatpak.overrides
</span><span style="color:#323232;">
</span><span style="color:#323232;">  echo "(5/5) Save KDE configuration"
</span><span style="color:#323232;">  fedora konsave -s kde_configuration --force
</span><span style="color:#323232;">
</span><span style="color:#323232;">  # to apply configuration
</span><span style="color:#323232;">  # fedora konsave -a kde_configuration
</span><span style="color:#323232;">
</span><span style="color:#323232;">  git -C $dot st
</span><span style="color:#323232;">end
</span>
garam , to linux in How do you keep track of all apps you install and their configurations?
@garam@lemmy.my.id avatar

Use ansible and variable, so it can be replicated to other computer. Simple

<pre style="background-color:#ffffff;">
<span style="color:#323232;">ansible.builtin.apt:
</span><span style="color:#323232;">   name: "{{ item }}"
</span><span style="color:#323232;">   state: latest
</span><span style="color:#323232;">loop:
</span><span style="color:#323232;">   - pkg1
</span><span style="color:#323232;">   - pkg2
</span>
C4RCOSA , to world in South Africa: Putin to miss BRICS summit by ‘mutual agreement’
@C4RCOSA@lemmygrad.ml avatar

Russia is not on the verge of collapse, the IMF predicted that Russian GDP would rebound slightly in 2023 to 0.3 percent growth, and in 2024, the Russian economy is predicted to grow by 2.1 percent.

newsweek.com/russias-economy-forecast-outperform-…

That’s higher than the IMF’s projection for the United States, which it said would see only 1 percent GDP growth that year, and down from a predicted 1.4 percent in 2023, and the 2 percent the U.S. enjoyed in 2022.

China isn’t doing anything of the sort. What they’re doing is fighting religious extremism, the sort of which no western country would ever tolerate. It’s interesting how the same people who purport to support human rights are pretty comfortable with theocracy when it suits their geopolitical interests.

Tibetean Buddhist Feudalism was responsible for slavery, and brutal torture

The charges made by the Dalai Lama himself about Chinese mass sterilization and forced deportation of Tibetans have remained unsupported by any evidence. Both the Dalai Lama and his advisor and youngest brother, Tendzin Choegyal, claimed that “more than 1.2 million Tibetans are dead as a result of the Chinese occupation.” [38]

No matter how often stated, that figure is puzzling. The official 1953 census—six years before the Chinese crackdown—recorded the entire population of Tibet at 1,274,000. Other estimates varied from one to three million. [39]

Other census counts put the ethnic Tibetan population within the country at about two million. If the Chinese killed 1.2 million in the early 1960s then whole cities and huge portions of the countryside, indeed almost all of Tibet, would have been depopulated, transformed into a killing field dotted with death camps and mass graves—of which we have seen no evidence. The Chinese military force in Tibet was not big enough to round up, hunt down, and exterminate that many people even if it had spent all its time doing nothing else.

  1. Tendzin Choegyal, “The Truth about Tibet,” Imprimis (publication of Hillsdale College, Michigan), April 1999.
  2. Karan, The Changing Face of Tibet, 52-53.

According to preliminary data from the seventh national census in 2020, the total population of Xinjiang was 25.85 million, among which the Han ethnic group numbered 10.92 million, and ethnic minorities 14.93 million. The population of ethnic groups in Xinjiang increased from 4.45 million in 1953 to 14.93 million in 2020

The Uygur population grew at a compound annual growth rate of 1.67 per cent during the first two decades in the 21st century, which was much higher than that of the country’s ethnic minority population, which stood at 0.83 per cent. The Uygur population grew from 3.61 million in 1953 to more than 11.62 million in 2020 Xinjiang Population Dynamics and Data report

Here’s an interview with a son of imam killed in Xinjiang which makes it pretty clear that religious people are a target just like everyone else news.cgtn.com/news/2020-06-19/…/index.html

Here’s another interview with Imams ctvnews.ca/…/on-eid-xinjiang-imams-defend-china-a…

A Pakistani journalist who has been all over Xinjiang (which borders Pakistan) claims that western media reports on “atrocities” are lies. …com.pk/…/exposing-the-occidents-baseless-lies-ab…

Western reports on Xinjiang don’t support the lurid narrative you’re pushing either

<pre style="background-color:#ffffff;">
<span style="color:#323232;">https://idi-international.org/wp-content/uploads/2021/05/New-Report.pdf
</span><span style="color:#323232;">https://www.worldbank.org/en/news/statement/2019/11/11/world-bank-statement-on-review-of-project-in-xinjiang-china
</span>

Representatives of Arab majority nations actually wrote a letter to the UN in support of China digitallibrary.un.org/record/3853509?ln=en

The reality is that US has been funding and arming extremists in Xinjiang trying to replicate Afghanistan model when they toppled a socialist government there. Don’t take my word for it though, here’s George Bush’s chief of staff openly saying that US wants to destabilize the region, and NED recently admitting to funding Uyghur separatism for the past 16 years on their own official Twitter page. An ex-CIA operative details US operations radicalizing and training terrorists in the region in this book. Here’s an excerpt:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">Throughout the 1990s, hundreds of Uyghurs were transported to Afghanistan by the CIA for training in guerilla warfare by the mujahideen. When they returned to Xinjiang, they formed the East Turkistan Islamic Movement and came under Catli’s expert direction. Graham Fuller, CIA superspy, offered this explanation for radicalizing the Chinese Muslims:
</span><span style="color:#323232;">
</span><span style="color:#323232;">The policy of guiding the evolution of Islam and of helping them [Muslims] against our adversaries worked marvelously well in Afghanistan and against the Red Army. The doctrines can still be used to destabilize what remains of Russian power, and especially to counter Chinese influence in Central Asia.
</span>

US has been stoking terrorism in the region while they’ve been running a propaganda campaign against China in the west.

And of course, before US started weaponizing terrorists they themselves were fighting these people www.mintpressnews.com/…/276916/

While Lula seeks to distance Brazil from the oppressive nature of “Dollar Diplomacy” which funds forever wars and military baes around the world Bolsonaro had ties to the united states far right

“Steve Bannon, Donald Trump’s former chief strategist and a family friend of Bolsonaro’s, took to his podcast, ‘Bannon’s War Room’, to raise allegations of electoral fraud. Bannon was joined by Matthew Tyrmand, a board member for Project Veritas – a discredited US group that uses hidden cameras to supposedly ‘expose’ leftist journalists – and Darren Beattie, a former Trump speechwriter who was fired in 2018 after it emerged he had met with white nationalists two years earlier. (Beattie told US media he had said “nothing objectionable” at this meeting.)”

In closing, you should not toss BRICS into a bin labeled “authoritarians” as I doubt you fully understand the word.

“The importance of examining BRICS’ challenge to the US dollar’s dominance lies in the group’s collective economic power. BRICS accounts for 24 percent of world GDP and over 16 percent of world trade”

“To be sure, the US dollar is still the dominant currency in nearly every aspect of the current global financial system, and it is unlikely that another currency will replace the dollar any time soon. However, history reminds us that the US dollar’s dominant status should not be assumed to last forever.”

cambridge.org/…/0AEF98D2F232072409E9556620AE09B0

Raphael , to world in Ukraine takes down massive bot farm, seizes 150,000 SIM cards
@Raphael@lemmy.world avatar

The following countries were invaded by Nazis:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">Austria
</span><span style="color:#323232;">Belgium
</span><span style="color:#323232;">Czechoslovakia (modern Czech Republic and Slovakia)
</span><span style="color:#323232;">Denmark
</span><span style="color:#323232;">Estonia
</span><span style="color:#323232;">France
</span><span style="color:#323232;">Greece
</span><span style="color:#323232;">Guernsey (U.K. Channel Island)
</span><span style="color:#323232;">Hungary
</span><span style="color:#323232;">Italy
</span><span style="color:#323232;">Jersey (U.K. Channel Island)
</span><span style="color:#323232;">Latvia
</span><span style="color:#323232;">Lithuania
</span><span style="color:#323232;">Luxembourg
</span><span style="color:#323232;">Monaco
</span><span style="color:#323232;">Netherlands
</span><span style="color:#323232;">Norway
</span><span style="color:#323232;">Poland
</span><span style="color:#323232;">Russia (partial occupation)
</span><span style="color:#323232;">San Marino
</span><span style="color:#323232;">Ukraine
</span><span style="color:#323232;">Yugoslavia (modern Albania, Croatia, Montenegro, North Macedonia, and Serbia)
</span>

Can't figure out NFS file sharing

Sorry, noob here. I have been using Linux for a decade at least, but some basic stuff still stump me. Today, it’s file sharing: The idea is that the server is good at CPU and the NAS is good at storage. My NAS does run Docker but the services are slow; and my server runs a bunch of Docker containers just fine but has limited...

manwichmakesameal , (edited ) to linux in Can't figure out NFS file sharing

Also, to add to this: you’re setup sounds almost identical to mine. I have a NAS with multiple TBs of storage and another machine with plenty of CPU and RAM. Using NFS for your docker share is going to be a pain. I “fixed” my pains by also using shares inside my docker-compose files. What I mean by that is specify your share in a volume section:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">volumes:
</span><span style="color:#323232;">  media:
</span><span style="color:#323232;">    driver: local
</span><span style="color:#323232;">    driver_opts:
</span><span style="color:#323232;">      type: "nfs"
</span><span style="color:#323232;">      o: "addr=192.168.0.0,ro"
</span><span style="color:#323232;">      device: ":/mnt/zraid_default/media"
</span>

Then mount that volume when the container comes up:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">services:
</span><span style="color:#323232;">  ...
</span><span style="color:#323232;">  volumes:
</span><span style="color:#323232;">        - type: volume
</span><span style="color:#323232;">        source: media
</span><span style="color:#323232;">        target: /data
</span><span style="color:#323232;">        volume:
</span><span style="color:#323232;">          nocopy: true
</span>

This way, I don’t have to worry as much. I also use local directories for storing all my container info. e.g.: ./container-data:/path/in/container

randombullet , to selfhosted in Setting up your own VPN

This is the exact script I use to install tailscale on my VPN server

Installing Tailscale

<pre style="background-color:#ffffff;">
<span style="color:#323232;"> curl -fsSL https://tailscale.com/install.sh | sh 
</span>

Enable IP forwarding

<pre style="background-color:#ffffff;">
<span style="color:#323232;"> echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.conf 
</span><span style="color:#323232;"> echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.conf 
</span><span style="color:#323232;"> sudo sysctl -p /etc/sysctl.conf 
</span>

Advertise subenets and exit node

<pre style="background-color:#ffffff;">
<span style="color:#323232;"> tailscale up --advertise-exit-node --advertise-routes=192.168.0.0/24,192.168.2.0/28,192.168.5.0/24,192.168.10.0/24
</span>
rufus , (edited ) to linux in My thoughts on Linux (and a troubleshooting request)

uninstall grub

You might want to google a complete guide. “how to remove grub”, “restore windows bootmanager” or something like this. Things are a bit different depending on your setup (uefi, do you want do clean the efi partition, do you need help deleting the other partitions…)

i have used the old way before:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">bootrec.exe /fixmbr
</span><span style="color:#323232;">bootrec.exe /fixboot
</span><span style="color:#323232;">bootrec.exe /rebuildbcd
</span>

but google it yourself. it isn’t difficult and my windows knowledge is a bit rusty.

Linux, Mint at least, feels incomplete, sort of like a tech demo

I can tell you, this feeling won’t go away. I have the same feeling with windows or macos. You just had one glimpse at something that looked strange to your eyes and you then chose to believe in your prejudices. This is not Mint’s fault. Like I use windows and ask myself how people work with that. Well, gaming and updating my old TomTom gps is kind of okay, that’s what i use windows for. But how do you for example rename 350 photos from your camera after you found out you forgot to set the date and now all filenames are off (or from 1970)? How do you develop stuff? Do you really download gigabytes of some colourful IDE from the internet just to execute a simple ‘make’ command? How do you set up a webserver for your aunt’s etsy shop and install php and a database?

You’re alright not wanting to try linux or not liking it. But to give it a chance, you need to open up the package manager and see it has like 10.000s of packages of different software waiting for you. After first installation it’s kind of bare. You’re right. Thats intentional to make it slim, fast and customizable.

HDDs are slow

Put your system on SSD together with things you need available, and your other data that won’t fit gets stored on the HDD. That way your computer is fast and the data that isn’t accessed that often (or gets cached anyways) is stored on the cheap additional storage.

concept of having to compile something // simply download an installer

I’m sorry. You’re applying windows concepts to something where they do not apply, and this is making you fail. People from the linux community dedicate their time to make most of the software available in the package manager. Tailor it to work well with the rest of Mint etc… 99% of everyday software is available like this. This is your installer! If you chose to circumvent this, download random stuff from the internet and try to compile it yourself… You’re allowed to do it, but you’re on your own. It’s not an iPhone where there’s no alternative to the store. But… You actively chose to do something difficult, that beginners aren’t supposed to do and it’s not how it’s supposed to work. I use linux exclusively every day and also develop stuff with it. I rarely compile or download something myself.

future once Windows has devolved to the point of being garbage

There won’t be such a point in time. They feed you the changes in very small steps that are barely noticable. It’s like with that mean story with the frog and the boiling water.

krzschlss , to world in Climate change is a hoax /s

Ya… but you can’t blame the poor volk. Since the war ended we’ve been praised for our Autobahns. Our Autobahns are the best and fastest and most reliablest, we are always on time and don’t get me started on precision. Just how precise are we Germans? Who cares about enviroment, we are the best in something! Fuck nature. Like the boys from Kraftwerk sang:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">♬
</span><span style="color:#323232;">Autobahn
</span><span style="color:#323232;">Autobahn
</span><span style="color:#323232;">♬
</span><span style="color:#323232;">Wir fahr'n, fahr'n, fahr'n, auf der Autobahn
</span><span style="color:#323232;">Wir fahr'n, fahr'n, fahr'n, auf der Autobahn
</span><span style="color:#323232;">♬
</span>

…it’s a banger tho…

TwoGems , to news in 16 false Trump electors face felony charges in Michigan
@TwoGems@lemmy.world avatar
<pre style="background-color:#ffffff;">
<span style="color:#323232;">Kathy Berden, 70, of Snover 
</span><span style="color:#323232;">William (Hank) Choate, 72, of Cement City 
</span><span style="color:#323232;">Amy Facchinello, 55, of Grand Blanc 
</span><span style="color:#323232;">Clifford Frost, 75, of Warren 
</span><span style="color:#323232;">Stanley Grot, 71, of Shelby Township 
</span><span style="color:#323232;">John Haggard, 82, of Charlevoix 
</span><span style="color:#323232;">Mary-Ann Henry, 65, of Brighton 
</span><span style="color:#323232;">Timothy King, 56, of Ypsilanti 
</span><span style="color:#323232;">Michele Lundgren, 73, of Detroit 
</span><span style="color:#323232;">Meshawn Maddock, 55, of Milford
</span><span style="color:#323232;">James Renner, 76, of Lansing 
</span><span style="color:#323232;">Mayra Rodriguez, 64, of Grosse Pointe Farms 
</span><span style="color:#323232;">Rose Rook, 81, of Paw Paw 
</span><span style="color:#323232;">Marian Sheridan, 69, of West Bloomfield 
</span><span style="color:#323232;">Ken Thompson, 68, of Orleans 
</span><span style="color:#323232;">Kent Vanderwood, 69, of Wyoming 
</span>

lol it’s all boomers and cusp Gen X/boomer

What is your machine naming scheme?

I’ve ended up with a number of machines on my network, and a need to name them all in a somewhat logical way. For several years I had them named after the planets, which worked well until the PCs for myself, my girlfriend, servers and Raspberry Pi’s quickly summed up to more than the eight planets. I’ve broadened it...

wheelcountry , to selfhosted in What is your machine naming scheme?

Personally I use corporate-like naming scheme for my devices, the format is:

[AABB-CCCC-DDEE]

AA: Location of the device - HQ (home), CL (cloud).
BB: Role of the device - HV (hypervisor), SV (server), NW (network) and workstation (WS).
CCCC: Device brand (for NW), application running (for SV), and workstation purpose (for WS).
DD: For server and workstation - OS running on the device (WN=Windows, LX=Linux, MA=macOS). For network device - their role on network (RT=router, AP=access point, SW=switch).
EE: # of the device, year of purchase for WS.

For example, here’s my router, KASM server and my gaming PC hostnames:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">HQNW-UBNT-RT01
</span><span style="color:#323232;">HQSV-KASM-LX01
</span><span style="color:#323232;">HQWS-GAME-WN16
</span>

Still trying to optimize this naming scheme, like removing all the dash, but currently too lazy to do it lol.

beforan OP , (edited ) to programmerhumor in !important
@beforan@lemm.ee avatar
<pre style="background-color:#ffffff;">
<span style="color:#323232;"><span style="color:#323232;"> PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
</span><span style="color:#323232;"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
</span>
Phoenixbouncing , (edited ) to world in The hottest 14 days ever recorded are the last 2 weeks

You got it wrong, it’s:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">That didn't happen.
</span><span style="color:#323232;">And if it did, it wasn't that bad.
</span><span style="color:#323232;">And if it was, that's not a big deal.
</span><span style="color:#323232;">And if it is, that's not my fault.
</span><span style="color:#323232;">And if it was, I didn't mean it.
</span><span style="color:#323232;">And if I did, you deserved it.
</span>

(no not all conservatives/climate change deniers are narcissists but the overlap is interesting)

KiranWells , to programmerhumor in Ouch
@KiranWells@pawb.social avatar

To be fair, I have seen many people confused by git (in fact, there is a relevant xkcd). So for you and anyone else that could use some help:

Git is just a version tracker. It is basically like naming a files “project_1”, “project_2”, “project_final”, etc. It just does the hard work of remembering history for you, and only shows you the current version.

The commands are somewhat oddly named, but are fairly intuitive:

git add - adds some of the current changes to the tracker (“stages” them).

git commit - commits (i.e. saves) the currently staged changes to a new point in your history (a ‘commit’)

git checkout - check out, as in take a look at, another branch

And you shouldn’t think about pushing and pulling as a tree; think about it as an action you take. You either pull changes in from the server or you push them up to the server.

For more complex situations, you will need to use more complex functionality. Git is built to help manage changes when working on a team, so it has the concept of creating new branches of history - like an alternate timeline - so that each individual can work on their code as if they were working alone. When they are ready to send their changes to the main (or master) version, they can merge the changes in. In the event that you want to change history, there is git amend and git rebase.

The normal work flow goes like this:

  • git checkout -b new-feature: check out a new brach, based on the one you are on now
  • make some changes
  • git add file.txt (or -A for all): add your changes to tracking
  • git commit: save the changes to a new commit (a new point in history). This will try to open an editor so you can write a short message explaining the changes; you can use -m “message” to specify a message from the command line if you prefer.
  • repeat until you are done working
  • git push: send your changes to the remote server (add –set-upstream origin new-feature if this is the first time for this branch)
  • open a pull request or something similar so someone else on the team can review and approve your code
  • merge the pull request in

If your changes fall behind the main branch, you will need to update your branch before merging it in. First, checkout the main branch and pull the new changes. Then, checkout your branch and add the changes from main. There are two ways of doing this:

git merge main - merge the changes you are missing from main, creating a new point in history for the combined changes

git rebase main - change history so that it is as if your changes started from where main is now - change the base of your branch to be the current state of main.

If there are conflicts, stay calm and take a look at your files. You should see something like this (from here:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">here is some content not affected by the conflict
</span><span style="color:#323232;"><<<<<<< main
</span><span style="color:#323232;">this is conflicted text from main
</span><span style="color:#323232;">=======
</span><span style="color:#323232;">this is conflicted text from feature branch
</span><span style="color:#323232;">>>>>>>> feature branch
</span>

You need to edit the file to decide which of main’s code and which of your branch’s code to use. Once you are done, run:

git commit: if you are doing the merge method

git rebase --continue: if you are rebasing. A rebase resolves conflicts one commit at a time, so you might be editing code from previous commits, and you might need to repeat this process for the rest of your commits until you get back up to now.

Another tip: if git complains about uncommited changes, or if you just want to save all of your changes somewhere and go back to a clean slate, you can use git stash. This will create a local stash of your current changes, and allow you to get them back later with git stash apply or git stash pop.

And you aren’t expected to remember it all. That’s what man git, Google, and websites like git.wtf are for. Or, you can call that one friend who understands it, and ask them for help ;)

superkret , to programmerhumor in Why would a fly land on something like this?
<pre style="background-color:#ffffff;">
<span style="color:#323232;">$ alias vim='timeout 600 vim'
</span>
dan1101 , to news in AAA pulls back from offering insurance in Florida, following Farmers
@dan1101@lemmy.world avatar

Even CBS does clickbait now. First sentence in article:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">AAA will not renew the auto and home insurance policies for some customers in Florida, joining a growing list of insurers dialing back their presence in the Sunshine State amid a growing risk of natural disasters.
</span>

Some customers. Will that be dozens, thousands, millions?

What happened to the Crimea bridge and why is it important? (www.aljazeera.com)

Traffic on the single bridge that links Russia to Moscow-annexed Crimea and serves as a key supply route for the Kremlin’s forces in the war with Ukraine came to a standstill on Monday after one of its sections was blown up, killing a couple and wounding their daughter....

C4RCOSA , to world in What happened to the Crimea bridge and why is it important?
@C4RCOSA@lemmygrad.ml avatar

“The 2004 Madrid train bombings (also known in Spain as 11M) were a series of coordinated, nearly simultaneous bombings against the Cercanías commuter train system of Madrid, Spain, on the morning of 11 March 2004—three days before Spain’s general elections. The explosions killed 193 people and injured around 2,000. The bombings constituted the deadliest terrorist attack carried out in the history of Spain and the deadliest in Europe since 1988. The official investigation by the Spanish judiciary found that the attacks were directed by al-Qaeda, allegedly as a reaction to Spain’s involvement in the 2003 US-led invasion of Iraq”

On 6 July 2006, a videotaped statement by Shehzad Tanweer was broadcast by Al-Jazeera. In the video, which may have been edited to include remarks by al-Zawahiri, Tanweer said:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">What you have witnessed now is only the beginning of a string of attacks that will continue and become stronger until you pull your forces out of Afghanistan and Iraq. And until you stop your financial and military support to America and Israel.
</span>

Tanweer argued that the non-Muslims of Britain deserve such attacks because they voted for a government which “continues to oppress our mothers, children, brothers and sisters in Palestine, Afghanistan, Iraq and Chechnya.”

Targeting civilians with explosives because the country they are citizens of is engaged with war is decried as “terrorism” so are you stating that the Ukrainian officials responsible for this are terrorists?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines