Wednesday, November 22, 2023
Introducing #RockyLinux A Stable, Secure, and Community Driven #OperatingSystem #Technology #Tech https://youtu.be/C3mrSK0Ejrs
Friday, November 17, 2023
🐍 Guide to Installing Python 3.12! | Easy Setup Tutorial #Python312 #ProgrammingTips #technology
Wednesday, November 15, 2023
Obtain the #absolute #path of the #directory containing the currently executing script
MYPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
Then you can use $MYPATH variable as you need to access files in the current directory where the currently running script is residing.
$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )
1. `$(...)`: This syntax is used for command substitution. Whatever is inside `$(...)` will be executed, and the output of that command will replace `$(...)`.
2. `cd -- "$(dirname "$0")"`: This command changes the current directory (`cd`) to the directory containing the script. Here, `"$0"` represents the name of the script, and `dirname "$0"` extracts the directory name from the script's path. The double quotes and `$(...)` ensure that spaces or special characters in the directory path are handled correctly.
3. `>/dev/null 2>&1`: This part is a redirection. `>/dev/null` redirects standard output (stdout) to `/dev/null`, which essentially discards any output from the `cd` command. `2>&1` redirects standard error (stderr) to the same place as stdout, which is `/dev/null` in this case, effectively suppressing any error messages.
4. `;`: This semicolon allows the chaining of commands in a single line. It separates the `cd` command from the subsequent `pwd` command.
5. `pwd -P`: This command (`pwd`) prints the working directory. The `-P` option stands for `--physical` and is used to get the physical current working directory without any symbolic links.
To summarize, this line of code changes the current directory to the directory containing the script, suppresses any output or errors from the `cd` command, and then prints the absolute path of that directory.
#CommandSubstitution, #AbsolutePaths, #DirectoryNavigation, #BashScripting, #CurrentDirectory, #PathManipulation, #RedirectOutput, #SuppressErrors, #PhysicalDirectories, #ScriptExecution
Friday, November 3, 2023
Installing #Debian and Exploring #Desktop #Environments
Thursday, November 2, 2023
Wednesday, November 1, 2023
Access #windows shared drive in #windows from #samsung #mobile?
Windows shared drive from a Samsung mobile device, you can use various methods, including built-in features and third-party apps. Here's a step-by-step guide on how to do it using the built-in features:
Requirements:
- Ensure that your Samsung mobile device and the Windows computer with the shared drive are on the same network.
Steps:
Enable Sharing on Windows: On your Windows computer, make sure that the folder or drive you want to access is shared. To do this, right-click on the folder or drive, select "Properties," go to the "Sharing" tab, and click "Advanced Sharing." Enable sharing and give it an appropriate name.
Note the Computer Name: You'll need to know the computer's name that is sharing the drive. To find this, right-click on "This PC" or "My Computer," select "Properties," and note the "Computer Name."
Access Shared Drive on Samsung Mobile: Now, on your Samsung mobile device:
a. Open the "My Files" or "File Manager" app (the name may vary based on your device).
b. Tap on the three horizontal lines or the menu icon in the upper left or right corner, then select "Network."
c. Tap on "Windows SMB."
d. Enter the computer name or IP address of the Windows computer you noted earlier.
e. If prompted, enter the username and password for your Windows computer.
f. Browse the shared folders and drives and access the one you need.
g. You can also create shortcuts to access shared folders more quickly.
This method allows you to access Windows shared drives from your Samsung mobile device using the built-in file manager. Keep in mind that your Windows computer must be powered on and connected to the same network for this to work.
Additionally, there are third-party apps available on the Google Play Store, such as "Solid Explorer" or "ES File Explorer," which offer more advanced features for accessing shared Windows drives from your mobile device. You can consider using such apps if you need more functionality or if the built-in method doesn't meet your needs.
or try this
To install Samba server in Windows, follow these steps:
- Open the Control Panel.
- Click Programs and Features.
- Click Turn Windows features on or off.
- Scroll down to SMB 1.0/CIFS File Sharing Support and expand it.
- Select the SMB 1.0/CIFS Client and SMB 1.0/CIFS Server checkboxes.
- Click OK.
- Click Restart now to restart your computer.
After your computer has restarted, Samba server will be installed and running. You can now create and share folders on your Windows computer with other devices on your network.
To create a shared folder:
- Open File Explorer.
- Navigate to the folder that you want to share.
- Right-click the folder and select Properties.
- Click the Sharing tab.
- Click the Share button.
- In the Network access section, select the Everyone checkbox.
- Click Share.
- Click Done.
To access a shared folder on another device:
- Open File Explorer.
- In the left pane, click Network.
- Double-click the computer that contains the shared folder.
- Double-click the shared folder.
You can now access the files and folders in the shared folder just like you would on your local computer.
#SambaServer #Windows #FileSharing #NetworkStorage
Featured Posts
Podman: The Complete Guide to Rootless, Daemonless Containers
Podman: The Complete Guide to Rootless, Daemonless Containers Podman is an open-source container engine designed to build, run, manage, and...
-
public struct CoOrds { public int x, y; public CoOrds( int p1, int p2) { x = p1; y = p2; } }
-
LM Studio Overview LM Studio is a desktop application designed for developing and experimenting with large language models (LLMs)...