Skip to main content

Posts

Showing posts from 2024

Shutdown or Restart Ubuntu

Ubuntu commands to restart or shutdown the server  1. Ubuntu Reboot command Ubuntu Linux terminal we can run to restart it is “Reboot“.   This command can be used with or without sudo, however, if some Admin process is not allowing you to restart the computer then it is recommended to use sudo with the command.      Sudo reboot The system will prompt you to enter the current user password to initiate the reboot command. 2. Sudo Shutdown Command “shutdown” command with the -r option. It will properly first shut down the computer and then restart the same because we have used the -r option with it. The syntax to use is here:      sudo shutdown -r now 3. REISUB Sequence (Emergency Restart) If your Ubuntu system is not responding properly then the REISUB sequence is quite handy to safely start it. In this method, we have to type REISUB in our command terminal in the same sequence it is written while holding ALT and Print screen keys. So, on your computer open the command terminal and then

password not recognized

While operating in a network environment Occasionally unable to log in to share folders as stated The shared folder password is not accepted as legitimate credentials.  so that we may do the easy actions listed below to get it to function again. open the registry edit and find the below key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa In the left pane of this registry location, highlight the Lsa key and come to its right pane.  Then, right click in blank space and select  New -> DWORD Value. Give the newly created DWORD (REG_DWORD) as LmCompatibilityLevel name double click on it to get this: Logon-Failure-While-Joining-2 after that  In the above shown Edit DWORD Value box,  put the Value data equals to  Click OK.  You can now close Registry Editor and reboot the machine.  After restarting your computer,  you’ll be easily able to join the shared system.

Word to PDF Convertor

 A Word document may be easily converted to a PDF file However, what happens if you need to convert a ton of Word files into PDFs? It will take a long time to open every file by hand and save it to PDF.  You may quickly and easily convert large amounts of Word to PDF with the help of this method. And without utilizing any outside tools either. Ms. Word is all you need. Copy the following code into Notepad or Notepad++, then save the file as "PDF.js" in a folder var obj = new ActiveXObject("Scripting.FileSystemObject"); var docPath = WScript.Arguments(0); docPath = obj.GetAbsolutePathName(docPath); var pdfPath = docPath.replace(/\.doc[^.]*$/, ".pdf"); var objWord = null; try {     objWord = new ActiveXObject("Word.Application");     objWord.Visible = false;     var objDoc = objWord.Documents.Open(docPath);     var format = 17;     objDoc.SaveAs(pdfPath, format);     objDoc.Close();     WScript.Echo("Saving '" + docPath + "'

Mount CIFS Share

Mounting a remote Windows share via CIFS is similar to mounting regular file systems. Follow the steps below to mount a CIFS share on Linux. Step 1: Install CIFS Utilities Packages on Linux The CIFS-Utils package provides the necessary utilities for mounting SMB/CIFS shares on a Linux system. The installation steps differ depending on which Linux distribution you are using. For Debian-based systems: First, update the local package repository to ensure the latest available package gets installed: sudo apt update Run the following command to install the CIFS-Utils package: sudo apt install cifs-utils - y For RHEL-based systems: First, update the system repository: yum update Next, install the CIFS-Utils package by running the following command: yum install cifs-utils For Fedora: Run the following command to update the package repository: sudo dnf update Install CIFS-Utils by running: sudo dnf install cifs-utils After the package installs, move on to the next section to create a mount poi