Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
rpi_common [2020/07/28 08:25] β [Configure wireless connection] JΓΊne Park | rpi_common [2024/04/18 08:52] (current) β JΓΊne Park | ||
---|---|---|---|
Line 1: | Line 1: | ||
< | < | ||
* {{fa> | * {{fa> | ||
- | * [[:rpi_common|β General Things on Raspbian]]Β | + | * [[rpi_common|β General Things on Raspbian]]Β |
- | * [[:rpi_autism|Media Ditorium β AUTiSM Rainbow]]Β | + | * [[rpi_nimbus|ππ’ππππ πππΉππππ]]Β |
- | * [[:rpi_epigen|Private Cellarium β EPiGEN Crystal]]Β | + | * [[debian_common|β General info on Debian Linux]]Β |
- | * [[:rpi_nimbus|Webius Officium β NiMBUS deBlanc]]Β | + | * [[deb_cicada|ππ’ππππ πππ©π π₯π¦π]]Β |
- | * [[: | + | * [[deb_mutism|ππππ’ππ πππππ¦π]] Β |
- | * [[:deb_mutism|Opus Imperium β MUTiSM Magnum]]Β | + | * [[deb_gilead|ππ’ππππ πΈπ£ππππ₯π]] Β |
- | * [[:deb_gilead|Actu Periculum β GiLEAD Argenta]]Β | + | * [[deb_symbio|πππππ’π βπ πππ₯π¦π€]]Β |
- | * [[:deb_debris|Finca LaDichium β DEBRiS Chrome]] | + | * [[deb_tardis|πππππ’π ππ‘ππ₯ππ¦π]] Β |
+ | * [[deb_debris|πππππ’π βππ£π ππ]] | ||
* {{fa> | * {{fa> | ||
* [[: | * [[: | ||
- | * [[: | + | * [[PC_MESONiSM|ππππππ’ππ]] Β |
- | * [[: | + | * [[PC_MESONiST|ππππππ’ππ]] |
- | * [[: | + | |
- | * [[: | + | |
* {{fa> | * {{fa> | ||
* [[: | * [[: | ||
- | * [[: | + | * [[CELL_EPiCON|πππ’πππ π½π]] Β |
- | * [[: | + | * [[CELL_EPiMER|πππ’πππ π‘]] Β |
- | * [[: | + | * [[CELL_EPiLUX|πππ’πππ π]] |
- | * [[: | + | * [[CELL_EPiTAP|πππ’πππ ππ]] Β |
- | * [[: | + | * [[CELL_EPiETA|πππ’πππ π]] |
</ | </ | ||
Line 75: | Line 74: | ||
<code bash> | <code bash> | ||
- | | + | sudo passwd root |
</ | </ | ||
Line 91: | Line 90: | ||
<code autoconf> | <code autoconf> | ||
- | | + | # User privilege specificationΒ |
- | root ALL=(ALL: | + | root ALL=(ALL: |
- | userid | + | userid |
</ | </ | ||
Line 170: | Line 169: | ||
---- | ---- | ||
+ | ==== Configure wireless connection ==== | ||
+ | |||
+ | < | ||
+ | <panel title=" | ||
+ | |||
+ | * Check wireless & configuration '' | ||
+ | * Change proper configuration with editing ''/ | ||
+ | |||
+ | {{fa> | ||
+ | |||
+ | <code ini> | ||
+ | # Do not use in Stretch | ||
+ | allow-hotplug wlan0 | ||
+ | iface wlan0 inet static | ||
+ | address 192.168.abc.xyz | ||
+ | netmask 255.255.255.0 | ||
+ | gateway 192.168.abc.1 | ||
+ | dns-nameservers 8.8.8.8 8.8.4.4 | ||
+ | wpa-conf / | ||
+ | </ | ||
+ | |||
+ | '' | ||
+ | <code ini> | ||
+ | # Here is an example which configures a static address, routes and dns. | ||
+ | # define static profile | ||
+ | profile static_eth0 | ||
+ | static ip_address=192.168.1.23/ | ||
+ | static routers=192.168.1.1 | ||
+ | static domain_name_servers=192.168.1.1 | ||
+ | |||
+ | # fallback to static profile on eth0 | ||
+ | interface eth0 | ||
+ | fallback static_eth0 | ||
+ | </ | ||
+ | |||
+ | This configuration is static (fixed) IP with assigned DNS servers. '' | ||
+ | |||
+ | * Edit ''/ | ||
+ | |||
+ | <code autoconf> | ||
+ | country=US | ||
+ | ctrl_interface=DIR=/ | ||
+ | update_config=1 | ||
+ | | ||
+ | network={ | ||
+ | ssid=" | ||
+ | psk=" | ||
+ | key_mgmt=WPA-PSK | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | * Gear wireless up | ||
+ | |||
+ | <code bash> | ||
+ | sudo ip link set wlan0 down | ||
+ | sudo ip link set wlan0 up | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ---- | ||
==== Set Google Public NTP ==== | ==== Set Google Public NTP ==== | ||
+ | |||
+ | < | ||
+ | <panel title=" | ||
Use either '' | Use either '' | ||
Line 198: | Line 262: | ||
sudo service ntp reload | sudo service ntp reload | ||
</ | </ | ||
+ | |||
+ | </ | ||
+ | </ | ||
---- | ---- | ||
Line 210: | Line 277: | ||
* '' | * '' | ||
+ | |||
+ | * '' | ||
---- | ---- | ||
- | ==== Colorful | + | ==== Time stamp prompt ==== |
Edit '' | Edit '' | ||
Line 237: | Line 306: | ||
Edit ''/ | Edit ''/ | ||
- | <button type="info" size=" | + | <button type="danger" size=" |
Create '' | Create '' | ||
Line 249: | Line 318: | ||
Script shows the information of the attached disks, which also reminds whether disk is mounted or not. | Script shows the information of the attached disks, which also reminds whether disk is mounted or not. | ||
+ | |||
+ | <code ini> | ||
+ | Mounted on | ||
+ | / | ||
+ | / | ||
+ | </ | ||
---- | ---- | ||
==== Move directories & files using rsync ==== | ==== Move directories & files using rsync ==== | ||
+ | |||
+ | < | ||
+ | <panel title=" | ||
'' | '' | ||
Line 264: | Line 342: | ||
After running '' | After running '' | ||
+ | </ | ||
+ | </ | ||
---- | ---- | ||
- | ==== hash sum mismatch during apt-get update ==== | ||
- | This problem has something | + | ==== Upgrade Raspbian from Jessie |
- | <code bash> Β | + | [[https://www.raspberrypi.org/forums/viewtopic.php? |
- | sudo vi /etc/apt/source.lists Β | + | |
- | </code> Β | + | |
- | Β | + | |
- | Remove downloaded repository information from the '' | + | |
<code bash> | <code bash> | ||
- | sudo rm -rf /var/lib/apt/lists/*Β | + | sudo apt update Β |
- | </ | + | sudo apt dist-upgrade |
- | Β | + | |
- | Change mirror address seemingly to be fast. Β | + | |
- | Β | + | |
- | [[https:// | + | |
- | Β | + | |
- | This is a kind of temporary problem due to network condition. Β | + | |
- | Β | + | |
- | ---- Β | + | |
- | ==== Upgrade Raspbian from Jessie to Stretch ==== Β | + | |
- | [[https:// | + | |
- | [[https:// | + | |
- | Β | + | |
- | <code bash>Β | + | |
- | sudo apt-get | + | |
- | sudo apt-get upgrade Β | + | |
- | | + | |
</ | </ | ||
Line 300: | Line 359: | ||
<code bash> | <code bash> | ||
- | | + | sudo dpkg -C |
</ | </ | ||
Line 306: | Line 365: | ||
<code bash> | <code bash> | ||
- | | + | sudo apt-mark showhold |
</ | </ | ||
- | Packages showing '' | + | Packages showing '' |
+ | |||
Replace '' | Replace '' | ||
<code bash> | <code bash> | ||
- | | + | sudo sed -i ' |
</ | </ | ||
Line 319: | Line 379: | ||
<code bash> | <code bash> | ||
- | | + | lsb_release -a |
</ | </ | ||
Line 377: | Line 437: | ||
sudo reboot | sudo reboot | ||
</ | </ | ||
- | |||
---- | ---- | ||
- | ==== Customize login messages ==== | ||
- | edit or append ''/ | ||
- | |||
- | For example touch ''/ | ||
- | |||
- | <code bash> | ||
- | #!/bin/sh | ||
- | printf " | ||
- | df -h /dev/sd* --out=target, | ||
- | printf " | ||
- | </ | ||
- | |||
- | shows size of disk, used and available capacities of '' | ||
- | |||
- | <code ini> | ||
- | Mounted on | ||
- | / | ||
- | / | ||
- | </ | ||
- | |||
- | ---- |