## 20.04 – Even after removing Snap, Ubuntu still takes a lot of time to boot

Here is the log from `systemd-analyze`

``````Startup finished in 6.406s (firmware) + 4.794s (loader) + 4.066s (kernel) + 58.047s (userspace) = 1min 13.315s  graphical.target reached after 56.065s in userspace
``````

And here is the log from `systemd-analyze blame`

``````36.965s plymouth-quit-wait.service
24.279s mysql.service
11.620s networkd-dispatcher.service
10.769s fwupd.service
7.240s accounts-daemon.service
6.498s udisks2.service
5.611s bolt.service
5.227s grub-common.service
5.013s dev-sda2.device
4.892s NetworkManager.service
4.780s gpu-manager.service
4.717s polkit.service
3.899s avahi-daemon.service
3.894s bluetooth.service
3.843s upower.service
3.809s ModemManager.service
3.683s switcheroo-control.service
3.669s thermald.service
3.639s wpa_supplicant.service
3.602s systemd-resolved.service
2.729s gdm.service
2.554s secureboot-db.service
2.534s systemd-journal-flush.service
2.392s systemd-tmpfiles-setup.service
1.977s tlp.service
1.815s rsyslog.service
1.605s systemd-udevd.service
1.503s apport.service
1.481s apparmor.service
1.272s systemd-random-seed.service
956ms grub-initrd-fallback.service
736ms ua-messaging.service
726ms systemd-sysusers.service
654ms keyboard-setup.service
619ms systemd-fsck@dev-disk-byx2duuid-8B77x2d3D04.service
602ms systemd-tmpfiles-setup-dev.service
494ms systemd-journald.service
482ms systemd-udev-trigger.service
480ms swapfile.swap
455ms modprobe@drm.service
410ms systemd-timesyncd.service
269ms systemd-backlight@backlight:intel_backlight.service
256ms dev-hugepages.mount
254ms dev-mqueue.mount
251ms sys-kernel-debug.mount
249ms sys-kernel-tracing.mount
244ms kmod-static-nodes.service
228ms setvtrgb.service
227ms e2scrub_reap.service
225ms colord.service
217ms user@1000.service
185ms boot-efi.mount
181ms openvpn.service
167ms console-setup.service
151ms systemd-sysctl.service
149ms systemd-update-utmp.service
145ms ufw.service
140ms systemd-remount-fs.service
135ms plymouth-start.service
94ms systemd-user-sessions.service
82ms pppd-dns.service
72ms kerneloops.service
66ms systemd-tmpfiles-clean.service
36ms rtkit-daemon.service
27ms motd-news.service
18ms user-runtime-dir@1000.service
11ms sys-kernel-config.mount
11ms sys-fs-fuse-connections.mount
9ms systemd-update-utmp-runlevel.service
8ms alsa-restore.service
``````

Can anyone please help me with that since even after removing `snap` and `snapd` I still face the issue of high boot time. Thanks in advance.

OS Name and Type: Ubuntu 20.04.2 LTS x64 My Laptop: HP 250 G7 Notebook
PC Processor: Intel® Core™ i3-7020U CPU @ 2.30GHz × 4 Graphics: Mesa
Intel® HD Graphics 620 (KBL GT2)

## Rsyslog omfwd takes 30 to 45 minutes to begin forward messages

I am forwarding syslog messages from thousands of devices to 8 destinations.
In and out traffic is UDP, and we use non traditional ports.
I also balance the outgoing load by binding the omfwd actions to different interfaces.
It took me a while to get the config setup so that it would handle the flow.

The iftop 40sec for both interfaces is usually above 450Mb

When rsyslog restarts it takes up to an hour before some of the destinations begin to receive the logs. I believe this is probably due to my trial and error method of setting parameters in rsyslog.conf

I have reached the end of my google fu. Looking for any insites.

## performance – WordPress takes several minutes to load

I have a WordPress install that was running perfectly for years – https://electrofx.com

no changes or updates were made and it has started taking several minutes to load a page.

I have tried debugging via the wp-config file method, no errors can be found there.

I have tried restoring to one of the old backups that I know was working, no change.

I have tried disabling all plugins and switching themes, no change.

I have tried setting up a test page that is not WordPress and can confirm my hosting server is OK.

At this point I am at a loss as to what else I can try, does anyone have any suggestions?

## Outage at Akamai Takes Down Major Internet Sites

Akamai, a leading global content delivery network, was responsible for an outage today which impacted large portions of the Internet, including popular websites FedEx, UPS, Home Depot, and many others. The outage lasted at least an hour and was the result of a “software configuration” update which went wrong, apparently causing a disruption to the DNS system at the company.

According to Akamai:

“At 15:46 UTC today, a software configuration update triggered a bug in the DNS system, the system that directs browsers to websites. This caused a disruption impacting availability of some customer websites. The disruption lasted up to an hour. Upon rolling back the software configuration update, the services resumed normal operations. Akamai can confirm this was not a cyberattack against Akamai’s platform.”

Akamai went on further in their post-outage announcement, explaining that they intend to do better in the future:

“We apologize for the inconvenience that resulted. We are reviewing our software update process to prevent future disruptions.”

This is just one of many serious recent outages caused by major content delivery networks and cloud hosting providers over the past year, including CloudFlare, Microsoft Azure, Amazon AWS, IBM Cloud, and Google Cloud. The recent run of outages may cause some CIOs and CTOs to re-evaluate their reliance on centralized CND and Cloud solutions.

See a larger list of impacted major websites by today’s outage below:

### Jon Biloh

I’m Jon Biloh and I own LowEndBox and LowEndTalk. I’ve spent my nearly 20 year career in IT building companies and now I’m excited to focus on building and enhancing the community at LowEndBox and LowEndTalk.

## ❕NEWS – Thorchain takes a massive loss after recent hack | Proxies-free

With the digital currency world being online, there is a chance that there will never be complete security and that we are constantly going to be faced with cyberattacks and security issues. In fact, there is always a back door that is built into coding websites, and this can be exploited by a hacker. This was the case with Thorchain who recently suffered a hack and has lost a total of 7.6 million dollars. Whilst the company says that it will compensate its users, it is asking the hackers to give the funds back. What do you think about this plea?

## bashrc – Create an alias that takes a file name as a paremeter, removes the extension of the parameter and creates a new extension

I want to create an alias in my `~/.bashrc` file that takes a file as a parameter, removes the extension of that file, and adds a new extension.

For instance, instead of doing `cp file.txt file.bak`, I would do `backup file.txt` with the same result (obviously this is a silly example, not what I really want to do).

So I added this line in my `~/.bashrc` file:

``````alias backup='cp \$1 \${1%???}bak'
``````

which should work, but it doesn’t. Any idea of what I’m doing wrong? Thanks.

## probability theory – How long a graph random walk takes to hit every vertex?

I have a simply connected graph $$G$$. I start at a uniformly randomly chosen vertex, and from there, randomly walk through the graph by choosing a random edge to follow at each step.

On average, how many steps $$T$$ until the random walk hits every vertex? Can this be efficiently computed?

Here are some cases for which I’d like the question answered (from most general to least general). The more general the case you can solve, the better.

1. $$G$$ is a directed weighted graph, and an edge is chosen w.p. proportional to its weight.
2. $$G$$ is an undirected weighted graph, and an edge ” ” “
3. $$G$$ is a directed graph.
4. $$G$$ is an undirected graph.
5. $$G$$ is a tree.

For bonus points, it’d be cool if you could say something about the distribution of $$T$$. E.g. is there a chernoff-style bound like $$Pr(Tgeq t)leq e^{-t/tau}$$? What is the variance of $$T$$? Etc.

All I can easily think of is the following: compute the transition matrix $$P$$ for the random walk by normalizing rows of the adjacency matrix $$A$$. Its highest eigenvalue will be 1, and second-highest eigenvalue will be $$lambda_2$$. The random walk will converge to its stationary distribution roughly exponentially at a rate (time-scale) of $$frac{1}{lambda_2}$$. At the stationary distribution, each node will have positive probability (because $$G$$ is connected). So I imagine that $$T$$ will, at worst, be on the order of $$frac{1}{lambda_2}$$.

## ❕NEWS – TikTok takes a stance against crypto | Proxies-free

Tiktok is a social media application that has become increasingly popular amongst the younger generations and it has even proven to be a great way to reach a lot of people and advertise for products and services during the time of the pandemic as well. However it seems that Tiktok is cracking down on crypto and in a recent news development, the social media has announced that users on this platform can longer promote any cryptocurrency. Do you think that this has anything to do with the ban that was implemented by China?

## settings – Android studio takes too long fid path hen opening project

settings – Android studio takes too long fid path hen opening project – Android Enthusiasts Stack Exchange

## management – Need to do a stored procedure that takes two options and those two options execute different actions depending on the value

These were my instructions:

Create a stored procedure that receives two parameters:

@i_action

in which:

‘I’ inserts a value
‘D’ Delete Values
‘C’ Consult

and @_option

where

1 = cursor
2= specific value

for @i_action it must go through the procedure

on top of that:

if @i_action = ‘C’ and @i_option = 2 it must return a value indicating “Invalid option”
if @i_action = ‘C’ and @i_option = 1 it must go trough the table with an specific value

I am honestly at a lost as I have never done a stored procedure that is this complex (I have not even made an IF or CASE that is this complex)

this is what I am attempting right now:

``````GO
CREATE PROCEDURE TWOPTIONS
@i_action  varchar (1),
@i_option int,

AS

IF @i_option = 2

declare @value

IF @i_action = 'I' Insert into Authors values ()
IF @i_action = 'U' Update Authors Set country =
IF @i_action = 'C' Select * from Authors
IF @i_action = 'D' delete from Authors where Name =
``````

I am mostly struggling with the structure I am sure I can make the instructions work once I figure it out