Basic Linux Commands on Raspberry pi(debian)


Yes, Raspbian is linux but we all need to know some commands to access specific hardware and software to work on raspberry pi.

If you are beginner, then this is fine for advanced users this might sound silly so don't get angry.



Since Raspbian is debian based, let's see some of the basic commands used for it.

The things found here will be on short note and try playing with it.

------------------------Packages----------------------------

Snap

Enabling Snap support on Debian and Ubuntu based distributions;
sudo apt install snapd
------------------------------------------------------------
Search for Programs:
sudo snap find libreoffice
sudo snap install <snap_name>

List out installed snaps
snap list

Update an installed snap app
sudo snap refresh <snap_name>

Uninstall a snap package
sudo snap remove <snap_name>

------------------------------------------------------------
-----------------Remove an application;---------------------
sudo apt-get remove notepadqq
------------------------------------------------------------
--------------------Remove repository;----------------------
sudo add-apt-repository --remove ppa:notepadqq-team/notepadqq
------------------------------------------------------------

Notepadqq--Instead of Notepad++
------------------------------------------------------------
Install Notepadqq 
Either;
sudo snap install notepadqq

Or;
sudo add-apt-repository ppa:notepadqq-team/notepadqq
sudo apt-get update
sudo apt-get install notepadqq
------------------------------------------------------------
FSearch
------------------------------------------------------------
https://github.com/cboxdoerfer/fsearch
sudo add-apt-repository ppa:christian-boxdoerfer/fsearch-daily
sudo apt-get update
sudo apt install fsearch-trunk
------------------------------------------------------------
Config Mouse buttons
------------------------------------------------------------
sudo add-apt-repository ppa:libratbag-piper/piper-libratbag-git
sudo apt-get update

sudo apt install ratbagd
https://github.com/libratbag/libratbag

sudo apt install piper
https://github.com/libratbag/libratbag
------------------------------------------------------------

admin;
su -

set OR reset ROOT pass;
sudo passwd root

Update:
sudo apt update
sudo apt dist-upgrade
sudo apt clean
sudo reboot

------------------------------------------------------------
Configure;
sudo raspi-config
så: -localisation options
    -I4
     *wi-fi
------------------------------------------------------------
------------------------------------------------------------
Lists all the files and subdirectory in the current file directory:
ls

Copy:
cd /home/pi/Desktop
Copy;
cp xxx.txt -t /etc/pihole

Create directory:
mkdir xxx

Navigation;
cd /etc/pihole
cd Desktop

Directly to "/home/pi";
sudo -s
------------------------------------------------------------
------------------------------------------------------------
Get ip address;
ifconfig ( inet addr 10.0.0.132 )
------------------------------------------------------------
------------------------------------------------------------
Remote desktop;
sudo apt-get install tightvncserver
sudo apt-get install xrdp

iFconfig (to get the inet addr: 10.0.0.132)
in windows start:
Remote Desktop Connection and connect to 10.0.0.132
user:****
pass:****

------------------------------------------------------------
Update pihole;
pihole -up
------------------------------------------------------------
------------------------------------------------------------
Temperature;
vcgencmd measure_temp
/opt/vc/bin/vcgencmd measure_temp
------------------------------------------------------------


Post a Comment

1 Comments

  1. You will need the basic programs and commands to work in this type of system. This will help to speed up the information operations and increase productivity.

    ReplyDelete