Posts

Canon

 sudo add-apt-repository ppa:thierry-f/fork-michael-gruz sudo apt update lsb_release -a apt search scangear sudo apt install scangearmp2 sudo apt install software-properties-common sudo apt update apt policy scangearmp2 apt search scangearmp2 lpinfo -v scanimage -L lpstat -p scanimage -L airscan-discover ipptool -tv ipp://PRINTER_IP/ipp/scan get-scanner-attributes.test sane-find-scanner dmesg | tail -30 sudo apt install sane-airscan ipp-usb sudo systemctl enable --now ipp-usb lpstat -p lpstat -t sudo systemctl stop ipp-usb sudo systemctl disable ipp-usb sudo systemctl restart cups lpstat -t lsusb | grep Canon sudo sane-find-scanner sudo apt install sane-airscan airscan-discover scanimage -L journalctl -u ipp-usb -n 50 journalctl -u cups -n 50 cat /sys/module/usbcore/parameters/autosuspe nd sudo sh -c 'echo -1 > /sys/module/usbcore/parameters/autosuspend' journalctl -u ipp-usb -n 50 http://localhost:631 systemctl status cups-browsed. systemctl status avahi-daemon.    su...

Air sane for hp scanner

 hp-info -i sudo apt install hplip hp-plugin scanimage -L Sudo mount -o remount,exec /home sudo apt purge snapd sudo rm -rf ~/snap sudo apt remove --purge hplip hplip-gui sudo apt autoremove sudo rm -rf /usr/share/hplip sudo systemctl stop ipp-usb sudo systemctl disable ipp-usb dpkg -l | grep ipp-usb sudo systemctl unmask ipp-usb sudo systemctl enable ipp-usb sudo systemctl start ipp-usb lpstat -t scanimage -L sudo apt install sane-airscan sudo systemctl unmask ipp-usb sudo systemctl enable ipp-usb sudo systemctl start ipp-usb systemctl status ipp-usb sudo snap list sudo snap remove cups sudo apt purge hplip hplip-gui printer-driver-hpcups sudo apt autoremove sudo systemctl stop ipp-usb sudo systemctl disable ipp-usb sudo systemctl unmask ipp-usb sudo apt install cups which cupsd Output /usr/sbin/cupsd sudo add-apt-repository universe sudo apt update sudo apt install ipp-usb sudo apt install ipp-usb sane-airscan sudo apt -f install apt policy ipp-usb sudo systemctl enable ipp-usb s...

Data

 ls ~/.local/share/Trash/files/ stat ~/.local/share/Trash/files/PHOTO_NAME.jpg ls ~/.local/share/Trash/info/ photo.jpg.trashinfo cat ~/.local/share/Trash/info/photo.jpg.trashinfo [Trash Info] Path=/home/user/Desktop/photo.jpg DeletionDate=2026-01-12T14: 32:10
Mouse Usb issue  sudo apt-get update --fix-missing sudo apt-get install --reinstall xserver-xorg-input-all sudo apt update sudo apt install --reinstall xserver-xorg-input-libinput APT History Log: The APT history log records all package installations, removals, and upgrades that have occurred. Location: /var/log/apt/history.log To view it, use the cat , less , or more commands: cat /var/log/apt/history.log less /var/log/apt/history.log Log Rotation These log files are rotated regularly, which means old logs are archived and compressed. If you want to see older logs, you might have to look at the compressed .gz files:  zcat /var/log/apt/history.log.*.gz Delete APT Logs: APT logs are stored in the following files: /var/log/apt/history.log /var/log/apt/term.log /var/log/dpkg.log To delete them, run the following commands: sudo rm /var/log/apt/history.log sudo rm /var/log/apt/term.log sudo rm /var/log/dpkg.log This will delete the current logs. You may ...

For shred disk or file shred cmd

 lsblk sudo umount /dev/sda3 sudo shred -v -n 3 -z /dev/sda3 For use again partion  sudo mkfs.ext4 /dev/sda3 For mount  sudo mkdir /mnt/data sudo mount /dev/sda3 /mnt/data Only one folder  sudo shred -v -n 3 -z -u filename

Kyocera printer

 Verify ipp-usb Service Check if the service is running: systemctl --user status ipp-usb.service If not running, start it: systemctl --user start ipp-usb.service systemctl --user enable ipp-usb .service >.  Find Printer’s Local IPP URL Run: lpinfo -v | grep ipp You should see something like: ipp://localhost:60000/i pp/print > Add Printer via CUPS (Web or CLI) Using Web 1. Open browser → go to: http://localhost:631 (CUPS web interface). 2. Go to Administration → Add Printer. 3. Select ipp://localhost:60000/ipp/print. 4. Choose driver → Kyocera (or Generic IPP Everywhere if drive r not listed). Using Command Line sudo lpadmin -p Kyocera6000 -E -v ipp://localhost:60000/ipp/print -m everywhere Check installed printers: lpstat -p -d Print test page: echo "Hello Kyocera via USB-IPPs" | lp -d K yocera6000 So basically: ipp-usb → makes USB printer appear as ipp://localhost:60000. Use CUPS (localhost:631) or lpadmin to add it. Use sane-airscan for scanning. Sometimes http://loca...

Google crome proxy setup

 chrome://extensions/ Use grafics acceleration when available  turn off  Permanent Fix (so you don’t type it every time) 1. Open terminal. 2. Edit the Chrome .desktop launcher file: sudo nano /usr/share/applications/google-chrome.desktop 3. Find the line that starts with: Exec=/usr/bin/google-chrome-stable %U 4. Change it to: Exec=/usr/bin/google-chrome-stable --no-proxy-server %U 5. Save (Ctrl+O, then Enter) and exit (Ctrl+X). Permanent Fix  6 google-chrome-stable --no-proxy-server 7 . sudo apt install gnome-shell-extension-manager 8. sudo systemd-resolve --flush-caches 8 . sudo service network-manager restart

For screen brightness solution by chandrakant bharti

 1. Terminal Solution: Fix Brightness via GRUB & xrandr 📌 Step 1: Edit GRUB configuration sudo nano /etc/default/grub 📌 Step 2: Find this line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" Change it to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor" 📌 Step 3: Update GRUB and reboot sudo update-grub sudo reboot --- ✅ 2. Software-Based GUI Tool (DEB-based) 🖥️ Option A: Brightness Controller (GUI Tool) This is a simple GUI-based software. If the system backlight doesn't work, it adjusts brightness using xrandr. 🔧 Install it via terminal: sudo add-apt-repository ppa:apandada1/brightness-controller sudo apt update sudo apt install brightness-controller 🔍 To run: Go to Applications → Brightness Controller This tool also supports multiple monitors. --- ✅ 3. Temporary Brightness Control using xrandr (Terminal method) 🔍 Step 1: Check your display name xrandr | grep " connected" Example output: eDP-1 connected ... 📉 Step 2: Adjust brigh...

For 1120

 ✅ Step-by-step Tested Fix: 🔍 Step 1: Check where sane is installed which scanimage --- 🔧 Step 2: Fix permission  sudo chown -R root:scanner /opt/<your_scanner_folder> --- 👤 Step 3: Add your user to scanner group sudo usermod -aG scanner $USER --- 📁 Step 4: Fix ~/.config/simple-scan/ folder permission Check : ls -l ~/.config/simple-scan If permission issue : sudo chown -R $USER:$USER ~/.config/simple-scan --- 🔁 Step 5: (Optional but Safe) Reinstall sane via apt To make sure no conflict : sudo apt remove --purge sane sane-utils libsane libsane-common sudo apt install sane-utils simple-scan --- 🧪 Step 6: Test as Normal User Reboot ke baad directly simple-scan run karo normal user se. Scan karo aur check karo kya ab file save hoti hai. --- ✅ Bonus: Check Log If Still Not Saving Run simple-scan via terminal: simple-scan --- 📦 Pro Tip: Never Install Same Software via GUI + sudo ./install.sh Ready?

Hp printer

 Step-by-Step Solution 1. Remove Old HPLIP Cleanly Open a terminal and run: sudo apt-get purge hplip hplip-data hplip-gui sudo apt-get autoremove --purge sudo rm -rf /usr/share/hplip --- 2. Download the Latest HPLIP Get the latest version from HP's official website: https://developers.hp.com/hp-linux-imaging-and-printing/gethplip Or use terminal (example for HPLIP 3.24.4, adjust version if newer): cd ~/Downloads wget https://downloads.sourceforge.net/project/hplip/hplip/3.24.4/hplip-3.24.4.run --- 3. Give Execute Permission and Run Installer chmod +x hplip-3.24.4.run ./hplip-3.24.4.run > Tip: If /home has noexec, move the installer: sudo mv ~/Downloads/hplip-3.24.4.run /opt/ cd /opt/ sudo chmod +x hplip-3.24.4.run sudo ./hplip-3.24.4.run --- 4. During Installation Say yes to install missing dependencies. Choose automatic installation when prompted. If asked for sudo password, enter it. --- 5. After Installation Run the HP Device Manager: hp-setup Follow on-screen steps to detect...

For user permission scanner

 Lsusb  Bus 001 Device 004: ID 04a9:27cb Kyocera Mita Chenge vender id and product id  Vendor ID: 04a9 Product ID: 27cb ⚙️ Step 2: Udev rule banao sudo nano /etc/udev/rules.d/99-kyocera-scanner.rules add this line  ( accordingly your device ): SUBSYSTEM=="usb", ATTR{idVendor}=="04a9", ATTR{idProduct}=="27cb", MODE="0666", GROUP="scanner" > Important: Replace 04a9 and 27cb with your exact IDs if di different. Step 3: Reload udev rules sudo udevadm control --reload-rules sudo udevadm trigger Step 4: User ko scanner aur lp group mein daalo sudo usermod -aG scanner $USER sudo usermod -aG lp $USER And logout or reboot  And use your scanner through normal user  sudo mount -o remount,exec /home sudo nano /etc/fstab

Data copy through pendrive logs

 To read and copy data from a USB pendrive in Linux and check its size, follow these steps: 1. Identify the Pendrive Open a terminal and run: lsblk or fdisk -l This will list all connected storage devices. Look for entries like /dev/sdb1 (it may vary). 2. Mount the Pendrive (If Not Auto-mounted) If the pendrive is not automatically mounted, create a mount point and mount it manually: sudo mkdir -p /mnt/usb sudo mount /dev/sdb1 /mnt/usb Replace /dev/sdb1 with the correct partition name. 3. Copy Data from the Pendrive Use the cp command to copy files: cp -r /mnt/usb /destination/path/ Or use rsync for a safer copy: rsync -av /mnt/usb/ /destination/path/ 4. Check Pendrive Size To check the total and available space: df -h /mnt/usb 5. Unmount After Use Once done, unmount the pendrive safely: sudo umount /mnt/ usb Let me know if you need more details! To check if data has been copied to or from a pendrive in Linux, you can analyze system logs and use tools to track USB activity. Here’s ...

System activity check

 ,sudo apt update && sudo apt install clamav -y sudo freshclam # Update virus database sudo clamscan -r /home/ # Scan home directory It looks like you might be asking about "threats" in Linux. If you're looking for ways to check for security threats or malware on a Linux system, here are some methods: 1. Check Running Processes Use the following commands to check for unusual processes: ps aux --sort=-%cpu | head -20 # Check top CPU-consuming processes ps aux --sort=-%mem | head -20 # Check top memory-consuming processes 2. Check Open Network Connections See active network connections and detect suspicious activity: netstat -tulnp ss -tulnp lsof -i 3. Check System Logs Look for unusual logs in system files: journalctl -xe dmesg | less cat /var/log/syslog | less 4. Use ClamAV for Malware Scanning ClamAV is an open-source antivirus for Linux: sudo apt update && sudo apt install clamav -y sudo freshclam # Update virus database sudo clamscan -r /home/ # S...

Airscan

 To install airscan (which is part of sane-airscan) in Linux and configure it with a Kyocera scanner, follow these steps: Step 1: Install sane-airscan sane-airscan provides support for eSCL (Apple AirScan) and WSD (Web Services on Devices) scanners, which many Kyocera models support. Ubuntu/Debian-based distributions: sudo apt update sudo apt install sane-airscan Fedora: sudo dnf install sane-airscan Arch Linux (AUR package): yay -S sane-airscan Step 2: Install SANE and Required Utilities To ensure scanning works properly, install the following: sudo apt install sane-utils Check if SANE recognizes your scanner: scanimage -L If your Kyocera scanner supports eSCL or WSD, it should appear in the list. Step 3: Configure sane-airscan By default, sane-airscan should detect supported network scanners. However, if your scanner is not detected: 1. Check for the scanner's IP If your Kyocera printer/scanner is on the network, find its IP address using: avahi-browse -rt _uscan._tcp or check yo...

Display issue

 It looks like your HP All-in-One PC is freezing under Linux in specific scenarios: 1. When you lock the screen (Win + L). 2. When the screensaver activates after 5 minutes of inactivity. 3. It works fine in presentation mode and Windows. This suggests a graphics driver or power management issue. Here’s what you can try: 1. Update Graphics Drivers If your PC has an NVIDIA or AMD GPU, install/update the correct drivers: For Intel GPUs (default for HP AIO): sudo apt update && sudo apt upgrade   sudo apt install xserver-xorg-video-intel For NVIDIA GPUs: sudo ubuntu-drivers autoinstall   reboot 2. Disable Screensaver & Lock Screen Since the freeze happens when locking or after 5 minutes of inactivity, disable them: Disable Lock Screen: gsettings set org.gnome.desktop.screensaver lock-enabled false Disable Screensaver: sudo apt remove xscreensaver 3. Change Display Server (Xorg/Wayland) At the login screen, click your username, then click the settings ico...

Mount disk issue

It looks like your PC is having an issue with the EFI boot partition. This could happen due to an improperly mounted EFI partition or a corrupted bootloader. Here’s how you can fix it: Step 1: Check EFI Partition 1. Boot into your Linux system (if it starts after the error). 2. Open a terminal and check your disk partitions by running: sudo fdisk -l 3. Look for a partition labeled EFI System (usually something like /dev/sdX1 or /dev/nvme0n1p1). Step 2: Manually Mount EFI Partition If your EFI partition is not mounted, try mounting it manually: 1. Create a mount point: sudo mkdir -p /boot/efi 2. Mount the partition (replace /dev/sdX1 with the correct partition from Step 1): sudo mount /dev/sdX1 /boot/efi Step 3: Fix fstab Entry 1. Open the fstab file: sudo nano /etc/fstab 2. Look for a line referring to /boot/efi. If missing, add: UUID=<your-efi-uuid> /boot/efi vfat defaults 0 1 Replace <your-efi-uuid> with the correct UUID (get it using blkid command). 3. Save and exit...

For display lock

 xinput list xinput disable (id) Second method --++++ sudo nano /etc/X11/xorg.conf.d/99-disable-touchscreen.conf Add the following line  Section "InputClass"     Identifier "Disable Touchscreen"     MatchIsTouchscreen "on"     Option "Ignore" "on" EndSection Save ctrl x --++sudo reboot 3rd mathod  lsmod | grep -i touch echo "blacklist your_driver_name" | sudo tee -a /etc/modprobe.d/blacklist.conf

About firewall

 systemctl status firewalld firewall-cmd --version sudo ufw status ufw --version sudo iptables -L iptables --version sudo nft list ruleset nft --version

For printer logs

For printer error logs only  1)  cat /var/log/cups/error_log | less Filters only error message  2) grep -i "error" /var/log/cups/error_log Moniter logs in real time for cups  3) tail -f /var/log/cups/error_log Check completed and failed print jobs: 4) cat /var/log/cups/page_log Or  lpstat -W completed lpstat -W not-completed System log for printer issue  1 ) dmesg | grep -i printer Check journal log for printer error  2) journalctl -u cups --no-pager | less  Or  1) journalctl | grep -i printer Check connect printer status  lpstat -p Check default printer  lpstat -d Check printer configuration  lpoptions -p <printer_name> -l Check printer conection usb or network  lsusb | grep -i printer For network printer  lpinfo -v Or  nmap -p 631 <printer-ip> Edit the cups printer configuration  sudo nano /etc/cups/cupsd.conf Find the line  LogLevel warn Chenge it to LogLevel debug Find the printer ip add...

For_log analysis security threats

-----For fireball log  ( real time log analysis) 1)  journalctl -u firewalld -f --Ip table ke liye  2) tail -f /var/log/syslog | grep 'iptables' ----Ufw ke liye  3) tail -f /var/log/ufw.log Ufw log read -- 1.   cat /var/log/ufw.log | less .deb Or. 2. sudo tail -f /var/log/ufw.log Spesific blocked requests 3. grep "BLOCK" /var/log/ufw.log Only for specific port log  1.  grep 'DPT=80' /var/log/syslog For droped package  2. grep 'DROP' /var/log/syslog