How Do You Troubleshoot “wine: could not exec wineserver”?

Problem scenario
You installed wine. You ran a command, but you got this:
"wine: could not exec wineserver"

What should you do?

Solution

1. Run this:

sudo find / -name wineserver64

2. Run this command but replace "/path/to" with the path to the wineserver64 file you found above:

export wineserver=/path/to/wineserver64

How Do You Run Code in the Eclipse IDE?

Problem scenario
You are using Eclipse for the first time. You try to to use Run, but you get an error message like this: "Unable to Launch The selection cannot be launched, and there are no recent launches." Or you try to go to "Run configuration" and you have a prototype, but the "Run" button is grayed out. What should you do?

Solution
In the Run configuration section, under the Java Application section on the left, is there a configuration? A prototype is not enough. Right click "Java Application" to create a configuration. Make sure the "Main" tab's "Main class" has something valid. Now the "Run" button should appear. You should be able to run code now.

What Are Some Songs During the American Revolution?

Question
What patriotic songs were written during the American Revolution?

Answer
"The Toast" by Francis Hopkinson
"World Turned Upside Down" (instrumental)
"The Liberty Song" by John Dickinson
"Free America" by Joseph Warren
"Chester" by William Billings; see also: https://en.wikipedia.org/wiki/William_Billings
"Yankee Doodle"


"My Days Have Been So Wondrous" by Francis Hopkinson. (This was written in the 1750s, but the lyrics are too appropriate to not include in the list.)

How Do You Find the JQuery Version from the Command Prompt of a Linux Server?

Problem scenario
You are using Linux, and you want to know what JQuery version is installed. What do you do?

Solution
JQuery is a library to work with Javascript. There are many ways to install JQuery: git, using a .tar.gz file, the YARN CLI, or the npm command.

If it was installed with npm, one way find out the version is to run one of these command:

npm view jquery versions
npm view jquery version
npm view jquery
npm info jquery
npm ls jquery

This solution was partially taken from this external page.

If it was installed with yarn, try one of these commands:

yarn info jquery
yarn list
yarn check jquery

For more information, you can see these postings:

https://nishitvmaheta.medium.com/how-to-install-jquery-ea182b21ce5c

https://unix.stackexchange.com/questions/288291/how-do-i-find-the-version-of-jquery-that-is-installed-on-a-linux-web-server

How Do You Troubleshoot a “File Not Found” Message?

Problem scenario
You run a command, but you get a message like "filenotfounderror", "file or directory does not exist" or something similar. What should you do?

Possible Solution #1 (assuming that the file exists)
Do either i. or ii.
i.a. Find the original file with a command like this: sudo find / -name foobar
i.b. Create a symbolic link or a hard link to the file.

ii. Does the user have access to enter and read the file in the desired directory? You may need to change the permissions or have a different user run the command.

Possible Solution #2 (assuming that the file does not exist)
Create the file (and if necessary the directory path) with nothing in it. This may get you further into the process.

Possible Solution #3 (only applies if you are using Windows)
Are the file path and/or file name very long? You may need to change the directory where things are installed or rename folders. For more details, see this Stackoverflow posting.

Possible Solution #4
See these postings: https://continualintegration.com/?s=file+not+found

Possible Solution #5
See this external website:
http://net-informations.com/python/err/path.htm

How Do You Troubleshoot the Error “flatpak … no version info or cannot open shared object file”?

Problem scenario
You open a terminal window in Linux. You get an error like one of the following:

flatpak: /lib64/libldap_r-2.4.so.2: no version information available (required by /lib64/libcurl.so.4)

flatpak: error while loading shared libraries: libsasl2.so.2: cannot open shared object file: No such file or directory

What should you do?

Solution
(This solution will work if the file is in a different location from where it was expected on your server.)
1. Find if another copy of the file exists on your server. Run a command like this (but substitute "foobar.so.3" in the follow draft of a command with the file in the error message): sudo find / -name foobar.so.3
(replace "foobar.so.3" with the file you need)

2. Back up the file /lib64/foobar to another location. You may want to run "ls -lh /lib64/foobar" to see if it is merely a link to another file; if it is a link, just delete the link.

3. Copy the other copy of the file if it exists to /lib64/. Now the problem should go away.

How Do You Get a NIC on a Linux Server to Work?

Problem scenario
Your NIC on your Fedora Linux server totally will not work. The physical NIC has no lights on it. It seems it is disabled. You cannot enable it with commands.

You see errors like these in logs: "NetworkManager.service: Start request repeated too quickly."

What should you do?

Solution
Run this command:

journalctl -u NetworkManager

Do you see lines like these?

Jan 25 20:47:00 localhost.localdomain systemd[1]: NetworkManager.service: Scheduled restart job, restart counter is at 5.
Jan 25 20:47:00 localhost.localdomain systemd[1]: Stopped Network Manager.
Jan 25 20:47:00 localhost.localdomain systemd[1]: NetworkManager.service: Start request repeated too quickly.
Jan 25 20:47:00 localhost.localdomain systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
Jan 25 20:47:00 localhost.localdomain systemd[1]: Failed to start Network Manager.
lines 5443-5479/5479 (END)

Look for a line like this (and it may be subtle in the logs in gray text):

Jan 25 20:47:00 localhost.localdomain NetworkManager[3454]: /usr/sbin/NetworkManager: error while loading shared libraries: foobar.so.4: cannot open shared object file>

Try to find the foobar.so.4 file (e.g., with sudo find / -name foobar.so.4). It could be a lib.so file. Have the permissions changed? Was the file deleted? You may need to run sudo chmod u+r,g+x foobar.so.4 to get it to be executable.

A downside to color-coded logs is that sometimes they bring your attention to irrelevant details and contribute to you overlooking important details.

How Is Training Different from Exercise?

Problem scenario
You work out regularly at a fitness gym. Is exercise the same as training?

Answer
Exercise is physical activity. Training involves a long-term goal designed to achieve results that will include regular physical activity. Training would include progressively more weights for specific lifts and/or cardio that is increasingly intense or longer in duration.

Source: Starting Strength page 292.

How Do You Get a NIC to Permanently Be in a firewalld Zone with a Single Command?

Problem scenario
A NIC or network interface is not being protected by a zone in the firewalld. You run firewall-cmd commands, and later run "firewall-cmd --runtime-to-permanent" afterward. But a NIC (e.g., a virtual NIC) will not persistently remain in a zone. You want your firewall-cmd commands to have a permanent effect. The "firewall-cmd --runtime-to-permanent" command is supposed to work, but it is not helping. What should you do?

Solution
Run the individual firewall-cmd commands with the "--perm" flag. We don't know why the "firewall-cmd --runtime-to-permanent" command does not always work.

See also How Do You Get a NIC to Permanently Be in a firewalld Zone with Multiple Commands?