Daily Shaarli

All links of one day in a single page.

March 1, 2022

How to Auto-Start Services on Boot in RHEL/CentOS 7?

The mechanism for managing and starting processes on boot has been changed. Until RHEL/CentOS  6.x, you would have created a script in /etc/init.d/ and enabled with the help of chkconfig but things are different on RHEL 7.

It’s replaced by systemd and since it is more or less the default process manager on major Linux versions, System Admin versed in other flavors will feel right at home. In this article, we will explore what systemd is, what the reasons to the switch were, and how to use systemd to set up, run and manage background processes with it.

The Definitive Shipping Container Capacity Chart
Size Weight lb Weight kg Volume cu-ft Cubic Meters Shelf space cu-ft Cubic Meters
10-Foot Container ~22,000 lb ~9,980 kg 555.5 cu-ft 15.7 m3 135 cu-ft 3.8 m3
10-Foot High Cube ~22,000 lb ~9,980 kg 626.4 cu-ft 17.7 m3 144 cu-ft 4.1 m3
20-Foot Container ~55,000 lb ~24,900 kg 1156 cu-ft 32.7 m3 405 cu-ft 11.5 m3
20-Foot High Cube ~55,000 lb ~24,900 kg 1303.7 cu-ft 36.9 m3 432 cu-ft 12.2 m3
40-Foot Container ~61,000 lb ~27,600 kg 2367.2 cu-ft 67 m3 810 cu-ft 22.9 m3
40-Foot High Cube ~61,000 lb ~27,600 kg 2619 cu-ft 74 m3 1620 cu-ft 45.9 m3

Internal volume vs. volumetric shelf space:

*Assumes 1.5-foot shelf depth with shelving along both long walls. While you can technically make a perfect shelving system that creates more space, these conservative calculations are based on designs that we have found to be cost-effective and practical for accommodating features like doors and climate control units.

The numbers above are calculated using the interior dimensions of shipping containers. When using these numbers to determine what you can store in your container, we recommend using a packing efficiency modifier because it’s nearly impossible to use every square inch of space. For example, if you need to gauge the volume of dry goods you can fit in a container with shelves, multiply the volumetric shelf space by a packing efficiency modifier of .8 or .7 to create a realistic estimate.

How to create and manage services in CentOS 7 with systemd

Systemd is a system and service manager and like most major Linux distributions the init deamon was replaced by systemd in CentOS 7. One of the main functions of systemd is to manage the services, devices, mount points, sockets and other entities in a Linux system. Each of these entity that are managed by systemd is called a unit. Each unit is defined by a unit file (configuration file) which is located in one of the following directories.

In Russian Diplomacy Leaks, Biden Exposed Scary Weakness On China

The Biden administration’s weakness and incompetence were on full display in a New York Times article last week recounting the White House’s repeated—and failed— attempts to urge China to help avert war in Ukraine. The purpose of the article was to allow senior administration officials to take their duplicitous Chinese counterparts to task, but the account reveals above all that White House officials are out of their depth in dealing with China.

https://www.nytimes.com/2022/02/25/us/politics/us-china-russia-ukraine.html?smtyp=cur&smid=tw-nytimes

It is nearly impossible to read the Biden administration’s side of the story without perceiving the weakness, gullibility, and ineffectiveness that the Biden White House unwittingly presents. Administration officials describe how they were “repeatedly rebuffed” by Chinese officials even as the Americans scrambled for “half a dozen urgent meetings over three months” to try to avert the Russian invasion of Ukraine. The article repeats how “Each time, the Chinese officials… rebuffed the Americans,” as if to drive home the humiliating point. //

Biden officials disclosed to The New York Times that they shared intelligence with their Chinese counterparts only to be double-crossed when the Chinese quickly leaked that intel to the Russians.

To add insult to injury, the Chinese also told the Russians that the Americans were “trying to sow discord,” and promised Moscow that Beijing would not interfere with Russia’s war plans. The Biden officials who leaked these details must not be aware of how embarrassing they are. //
When China was weaker and threatened by what was then the Soviet Union, it turned toward America. After decades of aid, investment, technology transfer, education, and lucrative trade with the United States, China is now much stronger than Russia. Its population is much larger, its gross domestic product is ten times bigger, and its technologies (many stolen from the United States) are better. China has much less to fear from Russia, and thus can leverage Russia against America—the only remaining superpower stronger than China.

One way to pit Russia against America is to give tacit support for a Russian war in eastern Europe that will consume America and her allies, while letting China see how the West responds to an invasion analogous to what China has planned for Taiwan. And that’s exactly what China did. //

Russia might even be reduced to a client state to supply commodities to China. That wouldn’t be a bad turn of events by the Chinese against a country that used to threaten them.

How China Is Taking Advantage Of The Ukraine Crisis

Xi doesn’t see Russia as an equal partner but as a valuable pawn to realize his vision for China — to replace the United States as the sole superpower in a Sino-centered and autocracy-friendly new world order. An economically weak but militarily aggressive Russia suits Xi’s vision.

Xi deploys China’s economic power to support Putin, counting on the Russian military to keep the West, primarily the United States, occupied and to draw attention away from Beijing’s geopolitical expansion. Meanwhile, the more Russia is economically isolated from the western world due to sanctions and becomes more economically dependent on China, the less likely Putin’s Russia will present a threat to challenge China’s dominance.

Shockingly, the Biden administration has failed to recognize China’s strategic calculations so far. The New York Times reports that Biden administration officials shared intelligence on Russia’s troop buildup with China, hoping Beijing would help avert Russia’s invasion of Ukraine. Chinese officials rebuffed the United States and apparently shared the information with Moscow.

Stop Letting Leftist Groups Funded By Russia Dictate U.S. Energy Policy

In 2017, congressional investigators found that a money trail linked Russia to millions of dollars funding U.S. nonprofits to work against U.S. shale gas in order to influence the U.S. energy market. Specifically, investigators found that NRDC, Sierra Club, and Climate Action Network were all found to have received millions of dollars of funding in grants from a shady San Francisco-based company called “Sea Change” that a money trail linked back to the Russians. Indeed, it is an open secret that Russians have funded anti-fracking and anti-natural gas propaganda in America for decades, as environmental groups funded the campaigns of Democrats and pressured them to ban fossil fuels.

These same environmental groups relentlessly attacked President Trump and his appointees (I was one) as “anti-science,” “enemies of the EPA,” and “climate change deniers,” pulling out all the stops to frame President Trump’s pro-American energy agenda as harmful to the environment. President Trump knew then what we are all seeing now: Energy independence is crucial to our security, and we don’t have to shut down industry with duplicative and costly regulations to protect our environment.

After spending millions to elect Biden, the environmental left got its wish: Biden canceled America’s Keystone XL pipeline, blocking the safe transport of oil from one of our closest allies and killing thousands of jobs. At the same time, Biden removed President Trump’s sanctions on the Russian NordStream2 pipeline, giving Putin the green light to move forward.

Biden canceled oil and gas leasing on 2.46 billion acres of federal on and off-shore lands, effectively crushing American energy supplies. He unleashed his federal regulators at the Environmental Protection Agency, Department of Energy, and more to hamper energy exploration, production, and transportation with new regulations. Finally, as the Russian invasion of Ukraine was imminent, Biden’s regulators at the Federal Energy Regulatory Commission took one more step to embolden Russian oil by clamping down on pipeline permits and LNG-export terminals, which could have helped supply American gas to the rest of the world.

https://legacy-assets.eenews.net/open_files/assets/2017/07/07/document_pm_02.pdf //

very few of Biden’s punitive moves against American energy would actually help the environment. Numerous studies have shown that pipelines have no material impact on greenhouse gas emissions since crude oil would still be extracted, and shipping it by rail or tanker instead of pipeline results in up to 42 percent higher emissions and more leaks.

Furthermore, American natural gas is far cleaner than Russian gas. A major 2019 study by the U.S. National Energy Technology Laboratory found that Russian gas piped to Europe has up to 22 percent more greenhouse gas emissions than European coal. U.S. liquified natural gas (LNG) delivered to the EU, in contrast, has up to 56 percent fewer total emissions than EU coal, the report shows.