My Dokuwiki Pages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.9 KiB

====== Raspberry Pi Tips / Issues ======
Some stuffs...
===== Check if Running Raspbian-Lite =====
To check if we are on lite version, (well one way to do it...) is to check if raspberrypi-ui-mods package is installed. The following command will return nothing if it is not installed - so, we are probably on lite then.
<code>$ sudo apt list raspberrypi-ui-mods --installed</code>
===== Change hostname manually =====
Edit ''/etc/hostname'' and ''/etc/hosts'' - modify accordingly, and reboot immediately.
===== Disable Display from Sleeping =====
The simplest way is... install xscreensaver and disable it! <code># sudo apt install xscreensaver</code>
===== ePhoto Frame =====
Script to make Pi an e-Photo Frame.
<file bash>
[ -d "$1" ] && SHOW_PATH=`cd $1;pwd`
SHOW_FULL=`which $SHOW_EXEC 2>/dev/null`
# args: delay 5s, fullscreen, recursive, randomize
SHOW_ARGS="-D5 -F -r -z"
echo "Accessing pictures in $SHOW_PATH..."
# press esc to quit?
===== Set Static IP =====
* get the following info: address, netmask, broadcast, network, gateway
* to get address, netmask, broadcast:<code>
$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet netmask broadcast
* to get network, gateway:<code>
$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface UG 0 0 0 eth0 U 0 0 0 eth0
* edit ''/etc/network/interfaces'' and change <code>iface eth0 inet dhcp</code> to <code>
iface eth0 inet static
</code> //note: fill in the info accordingly//
===== Display Issues =====
//**Note** Got these from R-Pi site.//
The HDMI monitor (or HDMI adapter) may only support a limited set of formats for CEA (TV) or DMT (Monitor). To find out which formats are supported, use the following method:
* Set the output format to VGA 60Hz (hdmi_group=1 and hdmi_mode=1) and boot up your Raspberry Pi
* Enter the following command to give a list of CEA-supported modes: /opt/vc/bin/tvservice -m CEA
* Enter the following command to give a list of DMT-supported modes: /opt/vc/bin/tvservice -m DMT
* Enter the following command to show your current state: /opt/vc/bin/tvservice -s
Then edit config.txt to select:
* hdmi_group={0:EDID_auto_detect,1:CEA,2:DMT}
* hdmi_mode={select from tvservice output}
===== Auto-run Script/Program on Startup =====
//**Note**: This assumes a Raspbian installation with desktop environment.//
* create path ''/home/pi/.config/autostart''
* create a desktop file <file>
[Desktop Entry]