Raspberry: Difference between revisions

From Halfface
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
Most settings can be modified via raspi-config
Most settings can be modified via raspi-config
  raspi-config
  raspi-config
=which version of raspberry do you have?=
cat /proc/cpuinfo
=which version of raspian=
cat /etc/os-release
==Black lines==
==Black lines==
/boot/config.txt
/boot/config.txt
Line 19: Line 23:
  tar xzf data.tar.gz -C /  
  tar xzf data.tar.gz -C /  
  rm data.tar.gz
  rm data.tar.gz
=rename=
=rename=
  /etc/hostname
  /etc/hostname
Line 30: Line 35:
=is clock in sync=
=is clock in sync=
  timedatectl
  timedatectl
=enable ntp=
timedatectl set-ntp true
=connect to wifi=
=connect to wifi=
  sudo wpa_cli -i wlan0 select_network 1
  sudo wpa_cli -i wlan0 select_network 1
Line 39: Line 47:
=restart wifi=
=restart wifi=
  sudo wpa_cli -i wlan0 reconfigure
  sudo wpa_cli -i wlan0 reconfigure
=log2ram=
https://github.com/azlux/log2ram

Latest revision as of 11:06, 3 November 2023

raspi-config

Most settings can be modified via raspi-config

raspi-config

which version of raspberry do you have?

cat /proc/cpuinfo

which version of raspian

cat /etc/os-release

Black lines

/boot/config.txt

overscan_left=-40
overscan_right=-40
overscan_top=-40
overscan_bottom=-40
disable_overscan=1

Installed packages

sudo apt -y install autofs screen vim htop ntp

omxplayer

ar vx /path/to/your/file.deb data.tar.gz 
tar xzf data.tar.gz -C / 
rm data.tar.gz

rename

/etc/hostname
/etc/hosts

temperatur

vcgencmd measure_temp

list content of package

dpkg-query -L <package_name>

which package contain file

dpkg --search /etc/bash_completion

is clock in sync

timedatectl

enable ntp

timedatectl set-ntp true

connect to wifi

sudo wpa_cli -i wlan0 select_network 1

list save wifi networks

sudo wpa_cli -i wlan0 list_networks
network id / ssid / bssid / flags
0       [-_-] halfface 2.4      any     [DISABLED]
1       pepsi   any     [CURRENT]

restart wifi

sudo wpa_cli -i wlan0 reconfigure

log2ram

https://github.com/azlux/log2ram