0% found this document useful (0 votes)
38 views5 pages

Ubuntu Solutions

Enrish with ubuntu solutions with no. of practical questions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views5 pages

Ubuntu Solutions

Enrish with ubuntu solutions with no. of practical questions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

For mongodb installation issue.

: /var/lib/dpkg/statoverride

TO COMPLETELY REMOVE MONGODB, `MONGOD`, AND COMPASS FROM YOUR UBUNTU


SYSTEM, YOU CAN FOLLOW THESE STEPS:

1. Remove MongoDB Server (`mongod`):

sudo systemctl stop mongod


sudo systemctl disable mongod
sudo apt-get purge mongodb-server
sudo apt-get autoremove

2. Remove MongoDB Client (`mongo`):

sudo apt-get purge mongodb-clients


sudo apt-get autoremove

3. Remove MongoDB Tools:

sudo apt-get purge mongodb-tools


sudo apt-get autoremove

4. Remove MongoDB Compass:


If you installed MongoDB Compass, you can uninstall it separately. Depending on how you
installed it, the commands may vary.

- If you installed MongoDB Compass using `snap`: sudo snap remove mongodb

- If you installed MongoDB Compass via a Debian package: sudo apt-get purge mongodb-
compass

sudo apt-get autoremove

5. Clean Up Configuration Files:


MongoDB configuration files are usually located in `/etc/mongod.conf`. Remove them manually if
necessary: sudo rm /etc/mongod.conf

If you installed MongoDB Compass via a Debian package, you might want to remove its
configuration files as well: sudo rm -rf ~/.config/MongoDB\ Compass

6. Verify the Removal:


You can check if MongoDB-related packages are removed by running: dpkg -l | grep mongo

7. sudo vim /var/lib/dpkg/statoverride


Remove : mongodb mongodb 755 /var/log/mongodb

sudo apt-get --reinstall install package


or
sudo dpkg-reconfigure package
8. Now install MongoDB and Compass.
9. sudo vi /etc/apt/source.list.d/

IF MYSQL NOT WORKING IN WINDOWS:-

Stop the XAMPP server, MySQL and Apache


#Create a backup of the “/xampp/mysql/data” folder using a compression software
Rename the “/xampp/mysql/data” folder to “/xampp/mysql/data-old”
Create a new folder and name it “/xampp/mysql/data”
Copy all folders from the “/xampp/mysql/backup” and paste it to the “/xampp/mysql/data” folder,
which you have just created
Copy all the databases from the “/xampp/mysql/data-old” folder and paste it to the
“/xampp/mysql/data” folder
Finally copy the “ibdata1” and all of the log files including “ib_logfile0, ib_logfile1 ” from
“/xampp/mysql/data-old” and paste it to the “/xampp/mysql/data” folder
Start MySQL from the XAMPP control panel
Go to phpMyAdmin to check if all the databases are available and running properly:
If not and error is: some errors have been detected on the server in windows
Then: /xampp/phpMyAdmin” locate config.inc or config.inc.php file and open it
paste this " $cfg['SendErrorReports'] = 'never'; " at lowest.

SETTINGS ICON NOT SHOWING IN UBUNTU:-


sudo apt-get install --reinstall gnome-control-center

HOW TO INSTALL NVM?


sudo apt install curl
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.bashrc
HOW TO INSTALL POSTMAN?
sudo snap install postman

HOW To install Android Studio from a `.tar.gz` archive, you can follow these steps:

1. **Download Android Studio**: Visit the official Android Studio download page
(https://developer.android.com/studio) and download the Linux `.tar.gz` archive.
2. **Extract the Archive**: After downloading the `.tar.gz` file, navigate to the directory where it's
located and extract it using the following command in the terminal:

```bash
tar -xvzf android-studio-<version>.tar.gz
```

Replace `<version>` with the specific version of Android Studio you downloaded.

3. **Move Android Studio to Installation Directory**: Move the extracted directory to a location
where you want to install Android Studio. For example:

```bash
sudo mv android-studio /opt
```

This will move the Android Studio folder to the `/opt` directory.

4. **Set Up Environment Variables (Optional)**: You can optionally set up environment variables to
easily launch Android Studio from the terminal. Edit your shell configuration file (e.g., `.bashrc`,
`.zshrc`, etc.) and add the following lines:

```bash
export PATH=$PATH:/opt/android-studio/bin
```

Save the file and then run the following command to apply the changes:

```bash
source ~/.bashrc
```

This will allow you to run Android Studio from the terminal by typing `studio.sh`.

5. **Launch Android Studio**: Navigate to the `bin` directory inside the Android Studio installation
directory and execute the `studio.sh` script to launch Android Studio:

```bash
cd /opt/android-studio/bin
./studio.sh
```
6. **Complete Installation**: Follow the on-screen instructions to complete the installation process.
You may need to install additional components and set up SDK paths during the first launch.

That's it! You've now installed Android Studio from the `.tar.gz` archive on your Linux system.

sudo snap install notepad-plus-plus

Not able to share entire screen on Google meet, zoom etc why?
Sudoedit /etc/gdm3/custom.conf
-> uncomment WaylandEnable=false. Save the file now.
Sudo systemctl restart gdm3. And it's Done.

BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.1) built-in shell (ash)


Enter 'help' for a list of built-in commands.?

(initramfs)

(initramfs) fsck /dev/sda1 -y


(initramfs) reboot

Replace /dev/sda1 with your partition name. In your system, it could be /dev/sdb1,
/dev/sdc1 etc. You can use cat /proc/partitions or blkid or lsblk commands to
get your Linux partition details in Busybox

How to install vs code in ubuntu:


sudo snap install code --classic
How to uninstall vs code in ubuntu:
Sudo snap remove code

How to clear Ram in ubuntu:


cd .cache
Rm -rvf * (be careful to run only in cache)
swapoff -a
swapon -a
sudo sync; echo 1 > /proc/sys/vm/drop_caches 3times
sudo sync; echo 2 > /proc/sys/vm/drop_caches 3times
sudo sync; echo 3 > /proc/sys/vm/drop_caches 3times

TOOL for the ABOVE


git clone https://github.com/aristocratos/bashtop
cd bashtop
bash bashtop

How to setup VPN


https://180.211.97.51:8466/
sudo tar -xvf NetExtender64.tgz
cd netExtenderClient/
sudo ./install

How to change node version:


nvm -v
nvm install 18
nvm alias default version name
nvm use version name

node -v
npm -v

You might also like