Just wanna have my script files (Python script, Shell script) shows color in ls:
LS_COLORS=$LS_COLORS:'*.py=0;94:*.sh=0;94' ; export LS_COLORS
Just wanna have my script files (Python script, Shell script) shows color in ls:
LS_COLORS=$LS_COLORS:'*.py=0;94:*.sh=0;94' ; export LS_COLORS
In you encounter scp problem when doing a recursive copy from Windows to Linux, try adding the -O parameter.
scp -r -O sample-files/ target-server:/target-path/
To run X11 / X-Window application in docker, the following tutorial provides a simple approach to archive it:
https://blog.yadutaf.fr/2017/09/10/running-a-graphical-app-in-a-docker-container-on-a-remote-server/
Working for fanvanzh's 3dtiles Linux compilation for days. Some items for reminding everybody how wants to do the same thing.
liwei0705 did a good move in making fanvanzh's 3dtiles converter works. But if you are using a new version of OSG and GDAL, pay attention to the following summarised reminders when building your own version of "_3dtile"
1) Create your start / stop script in a predefined directory (e.g. /development/service-script/ )
2) Allow SELinux to execute binaries in the predefined directory /development/service-script/ (!! important for SELinux)
chcon -R -t bin_t /development/service-script/
3) Create abc.service in /etc/systemd/system/
# Systemd unit file for ABC service
[Unit]
Description=ABC service
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/development/service-script/start-cmd
ExecStop=/development/service-script/stop-cmd
User=service_owner
Group=service_owner
UMask=0007
RestartSec=10
Restart=always
[Install]
WantedBy=multi-user.target
4) Reload systemd
systemctl daemon-reload
5) Start ABC service
systemctl start abc
Update the key file (qgis-archive.gpg) by:
wget -qO - https://qgis.org/downloads/qgis-2022.gpg.key | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/qgis-archive.gpg --import
The NO_PUBKEY error message will be gone for 'apt update'
Separated dock for multiple workspace in Ubuntu, set the following to be true:
gsettings set org.gnome.shell.extensions.dash-to-dock isolate-workspaces true
This can be done via "RequestHeader unset Authorization"
<Location "/some_path">
Require all granted
ProxyPass https://target-host
RequestHeader unset Authorization
</Location>
To add CSP to root if sort of funny. The following will NOT work for most cases !! <LocationMatch "^/$"> Header s...