Ubuntu Tips

Edit Grub
      sudo gedit /etc/default/grub
                            --Change the required field, and then
      sudo update-grub

Terminal Window in UBUNTU
      Ctrl + Alt + T is the short key for opening terminal .

Edit Grub Menu in the Login
      sudo gedit /boot/grub/grub.cfg

To Change Grub-Menu Background
      sudo gedit /etc/default/grub
                            --Add new line at grub data
      GRUB_BACKGROUND="<path>"   --Give the correct path to the image
      sudo update-grub

Change the Password in Ubuntu
                            --Select the advanced option in Ubuntu at the time of Booting
      mount -rw -o remount /     --Press Enter
      passwd username               -- type user name & Press Enter
      new password:                    -- Give new password
      confirm:                              -- confirm password

Install xls module in UBUNTU
      sudo apt-get install libexcel-writer-xlsx-perl

Install Python in UBUNTU
     
    sudo apt-get install -y python3-pip
 
    pip3 install numpy
 
    sudo apt-get install build-essential libssl-dev libffi-dev python-dev 

    
    sudo apt-get install -y python3-venv
 
    python3 -m venv my_env 
    source my_env/bin/activate
 
Eg: nano hello.py
      print("Hi")
    python hello.py 
 

No comments:

Post a Comment