1.sudo apt-get install clamav
2.sudo freshclam
Note : The error indicates that ClamAV is currently running in the background.
3.sudo /etc/init.d/clamav-freshclam stop
4.sudo freshclam (Time to update the virus database now.)
5.sudo /etc/init.d/clamav-freshclam start
6.man clamav (To know the complete list of commands for ClamAV)
7. clamscan -i -r ~/ (f you want ClamAV to scan and list only the infected files in your home directory)
8. clamscan --remove=yes -i -r ~/ (to remove the virus as it finds:)
1.Use the command uname to show what kernel is being used. The kernel is the first section of the operating system to load into memory. It controls such system areas as disk drive management, memory allocation, system processes, and interrupt handler.
Example : user@bhavsinh:~$ uname -a
2.Use the command dmesg to show the contents of the boot log. This is a good way to find errors at startup
Example : user@bhavsinh:~/linux101$ sudo dmesg > dmesg.log
Note : In the example below, the command cat can be used with dmesg to join the contents of the log file.
Example : user@bhavsinh:~/linux101$ cat dmesg.log | grep intel
3.Open a terminal window. Type in the following command: sudo apt-get install cheese.Run Cheese. Cheese should automatically detect your webcam and display live video stream.
Example : sudo apt-get install cheese : cheese
4. rm...Remove files and directories.
5. man...Displays manual page of other commands.
6. mkdir...create directory.
7. mv....Moves (renames) files and directories.
Other
sudo ufw disable..... firewall disable..
sudo passwd username...
chmod user/ -R /home/user..
sudo init 6..... reboot system
sudo init 2 .... reboot system with multiple users....
chmod -r- 777 Desktop/
Recoll
Sudo apt-get install recoll
Sudo apt-get libxslt1-dev
sudo
LighDM
Note : .gdm3,kdm, and lightdm are all display managers. They provide graphical logins and handle user authentication.
1.sudo apt-get install gdm3
2.sudo apt-get remove gdm3
1.sudo apt-get install sddm
2.sudo apt-get remove sddm
1.sudo apt-get install lightdm
1.sudo apt-get remove lightdm
1.Sudo service ssh start
Sudo get-apt install iptux
sudo ufw allow ssh
sudo apt update
sudo apt upgrade
sudo apt install lxde
sudo apt install lightdm-settings
sudo apt install openssh*
sudo apt-get install ssh*
Sudo get-apt install ffmpeg
1.ls -al
2.sudo chmod +x file name
3.ls -al filename
To create file
1.sudo gedit demo.php...(to create file)
2.nano demo.php....(to edit)
Xampp installation steps in ubuntu
1. https://vitux.com/ubuntu-xampp/...(click here)
2. https://www.apachefriends.org/index.html........ (Download installation package)
3. chmod 755 xampp-linux-*-installer.run
4. ls -l xampp-linux-x64-8.0.3-0-installer.run
5. sudo ./xampp-linux-x64-8.0.3-0-installer.run
6. sudo /opt/lampp/lampp start
7. sudo apt install net-tools
8. http://localhost
9. http://localhost/phpmyadmin
10. sudo ./manager-linux-x64.run
Uninstall XAMPP
1. cd /opt/lampp
2. sudo ./uninstall
3. sudo rm -r /opt/lampp ....(To remove directory)
To Stop FTP
1. sudo systemctl stop vsftpd....(Port 21)
2. sudo systemctl status vsftpd
Digi_Signer
1.=> go ftp://10.225.19.70/Digi_Signer.zip
2.Copy jdk-8u171-linux-x64.tar.gz to /opt folder
3.extract at /opt using tar -xvf command
4.run sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_171/bin/java 2082
5.copy ePass2003_Linux.zip and extract at Desktop
6.Run config.sh file as per mathince architecture i.e. 32bit or 64bit
7.Run digisigner.sh file
8.Add key store file (libcastle_v2.so.1.0.0) from redist folder under 32bit or 64bit folder
zoom-client installtion steps
1.sudo apt update && sudo apt upgrade
2.sudo snap install zoom-client
3.zoom-client
How to create shale script in ubuntu
1.mkdir scripts
2.cd /scripts.
3.touch script.sh....(to create a script.sh file).
4.nano script.sh....(to write in script.sh file through terminal).
5.chmod -R 777.....(to change permission mode)
6.sh script.sh.....(to run script.sh file).
7.Libreoffice filename.odt....(to open .odt file in libreoffice)
What is LightDM?
=> Note : LighDM is the display manager running in Ubuntu up to version 16.04 LTS.
While it has been replaced by GDM in later Ubuntu releases,LightDM is still used by default in the latest release of several Ubuntu flavors.
LightDM starts the X servers, user sessions and greeter (login screen).
The default greeter in Ubuntu up to version 16.04 LTS is Unity Greeter.
LightDM Configuration
=> Note : Later versions of lightdm (15.10 onwards) have replaced the obsolete [SeatDefaults] with [Seat:*]
=> LightDM configuration is provided by the following files:
1./usr/share/lightdm/lightdm.conf.d/*.conf
2./etc/lightdm/lightdm.conf.d/*.conf
3./etc/lightdm/lightdm.conf
Help, I can't see my Desktop!
=> Note : Many things can go wrong in a graphics stack. If you can't see any graphics or see corrupt graphics the following might help :
1.You can get to a text terminal using alt-ctrl-F1.
2.Check the LightDM logs in /var/log/lightdm.
3.Stop LightDM with sudo stop lightdm.
4.You can try LightDM again with sudo start lightdm.
5.If you have another display manager you want to try (e.g. gdm) start that: sudo start gdm.
6.You can set the default display manager by running sudo dpkg-reconfigure lightdm.
7.Check your system is up to date, especially video drivers.
8.File a bug. If you're not sure where the cause is (lightdm / unity-greeter / unity / X / kernel) file against lightdm and the bug will be triaged and reassigned.
Install Nautilus
1.To get the packages, type in “sudo add-apt-repository ppa:gnome3-team/gnome3”
2.sudo apt-get update
3.sudo apt-get install nautilus.
4.To open Nautilus type “Nautilus”
How to set date by Terminal
=> date -s "DAY MONTH Date Time IST Year"
1. sudo date -s "Fri Sep 16 5:23:30 IST 2022"
To enable snap support, simply run the commands:
1.sudo rm /etc/apt/preferences.d/nosnap.pref
2.sudo apt update
3.sudo apt install snapd
How to Install Samba
1.sudo apt update
2.sudo apt install samba
3.whereis samba..(We can check if the installation was successful by running:)output...samba: /usr/sbin/samba /usr/lib/samba /etc/samba /usr/share/samba /usr/share/man/man7/samba.7.gz /usr/share/man/man8/samba.8.gz
4.mkdir /home/
5.sudo nano /etc/samba/smb.conf
6.[sambashare]
comment = Samba on Ubuntu
path = /home/username/sambashare
read only = no
browsable = yes
7.sudo service smbd restart
8.sudo ufw allow samba
9.sudo smbpasswd -a username
10. On Ubuntu: Open up the default file manager and click Connect to Server then enter:
11. smb://ip/foldername
cp and mv command
1.cp -i /home/levan/kdenlive/untitelds.mpg /media/sda3/SkyDrive/....(interactive you will be asked if you would like to replace the file)
2.cp -b /home/levan/kdenlive/untitelds.mpg /media/sda3/SkyDrive....(to create a backup of your file:)
3.cp (-i or -b) /media/sda3/SkyDrive/untitelds.mpg /home/levan/kdenlive
4.cp -Ri ~/MyFolder /sda3/.....(Use -R for recursive and -i for interactive)
5.mv -i ~/MyFile ~/OtherFolder/MyFile
6.mv -Ri ~/MyDirectory ~/OtherDirectory/
7.cp input.txt newname.txt(......And I want to copy input.txt with another name in my current directory.)
8.Copying a file something.txt to file folder: use cp something.txt folder/
9.Copying a file something.txt to the current directory as something2.txt: use cp something.txt something2.txt
10.cp -a input.txt ./SORT.....(cp -a input.txt newname.txt....(you will better add the option -a to cp command to preserve file-datetime, file-stats, etc.:))
11.man cp....(for more help).
Install Zoom client
1.sudo apt update && sudo apt upgrade 2.sudo snap install zoom-client 3.zoom-client
When package arror show in Ubuntu LibreOffice MailMerge is not restart Libre Office.. run this command in Terminal...
sudo apt-get install default-jre libreoffice-java-common \ libreoffice-base libreoffice-base-drivers
No comments:
Post a Comment