Skip to content

Commit

Permalink
desktop: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
outdoorbits committed Jan 26, 2024
1 parent 03d900c commit d7eb96b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
8 changes: 6 additions & 2 deletions etc_apache2_sites-available_little-backup-box.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
include /etc/apache2/includes/password.conf
</Location>

SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog

ErrorLog ${APACHE_LOG_DIR}/lbb-error.log
CustomLog ${APACHE_LOG_DIR}/lbb-access.log combined
CustomLog ${APACHE_LOG_DIR}/lbb-access.log combined env=!dontlog

</VirtualHost>

Expand Down Expand Up @@ -79,8 +81,10 @@
include /etc/apache2/includes/password.conf
</Location>

SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog

ErrorLog ${APACHE_LOG_DIR}/lbb-error.log
CustomLog ${APACHE_LOG_DIR}/lbb-access.log combined
CustomLog ${APACHE_LOG_DIR}/lbb-access.log combined env=!dontlog

</VirtualHost>

Expand Down
Binary file added img/lbb-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions setup-graphical-environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#######################################################################

# expects
# INSTALLER_DIR
# from calling script

# settings
USER="lbb-desktop"

Expand Down Expand Up @@ -57,6 +61,30 @@ mount_removable=0
autorun=0
""" | sudo -u $USER tee $CONFIG_FILE

# set background
BG_FILE="lbb-desktop.png"
BG_DIR="/home/$USER/backgrounds"

sudo -u $USER mkdir -p "${BG_DIR}"
sudo cp "${INSTALLER_DIR}/img/${BG_FILE}" "${BG_DIR}"
sudo chown $USER:$USER "${BG_DIR}" -R

echo """[*]
wallpaper_mode=crop
wallpaper_common=1
wallpaper=${BG_DIR}/${BG_FILE}
desktop_bg=#ffffff
desktop_fg=#e8e8e8
desktop_shadow=#d6d3de
desktop_font=PibotoLt 12
show_wm_menu=0
sort=mtime;ascending;
show_documents=0
show_trash=0
show_mounts=0
""" | sudo -u $USER tee /home/$USER/.config/pcmanfm/LXDE-pi/desktop-items-0.conf


# auto start browser
AUTOSTART_USER_DIR="/home/$USER/.config/autostart"

Expand Down

0 comments on commit d7eb96b

Please sign in to comment.