Tuesday, September 14, 2021
Odroid XU4 headless setup
Sunday, September 12, 2021
Raspberry Pi USB carrier adapter OTG
Wednesday, September 8, 2021
Install Xrdp on Ubuntu 20.04 LTS
--30--
Friday, August 20, 2021
Install cockpit on Debian 9, Ubuntu 20.04 (or 18.0x)
captured a bit of info.
Install Cockpit on Ubuntu 20.04/18.04/19.04 & Debian 10/9
Welcome to our guide on How to Install Cockpit on Ubuntu 20.04/18.04/16.04 & Debian 10/9. Linux Cockpit is an Open Source, lightweight, web-based Server/system administration tool originally written for RHEL family Linux distributions. Cockpit interacts directly with the operating system from a real Linux session in a browser with easy to use interface.
Features of Cockpit
Cockpit allows you to perform:
- Service Management – Start, stop, restart, reload, disable, enable, mask e.t.c
- User Account Management – Add users, delete, Lock, assign Administrator role, set password, force password change, Add Public SSH keys e.t.c.
- Firewall Management
- Cockpit Container management
- SELinux Policy management
- Journal v2
- iSCSI Initiator configurations
- SOS-reporting
- NFS Client setup
- Configure OpenConnect VPN Server
- Privileged Actions – Shutdown, Restart system
- Join Machine to Domain
- Hardware Device Management
- System Updates for dnf, yum, apt hosts
- Manage the Kubernetes Node
Install Cockpit on Ubuntu 20.04/18.04
Cockpit is available on Ubuntu official repositories. The installation is as simple as running a one-liner set of commands:
sudo apt update
sudo apt install cockpitInstall Cockpit on Debian 10 / Debian 9
Install Cockpit on Debian 10:
sudo apt update
sudo apt install cockpitInstall Cockpit on Debian 9:
Cockpit is included in Debian 9 (Stretch) backports. Enable backports repository on Debian 9 by running the command:
echo 'deb http://deb.debian.org/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/backports.listThen update your package list and install cockpit:
sudo apt update
sudo apt install cockpitAccessing cockpit web interface
Cockpit service should be automatically started after the installation. You can confirm if service is running using:
$ systemctl status cockpitIf the service is not running, start it by running the following command in your terminal:
sudo systemctl start cockpitCockpit service binds to port 9090 once it is started. Access its web interface by opening http://[ServerIP|Hostname]:9090.
If you have a running UFW firewall service, allow port 9090.
sudo ufw allow 9090Ignore Invalid Certificate Warning.
Ubuntu Login Page:
--30--
Thursday, August 19, 2021
install xrdp for remote desktop on friendlyarm ubuntu version, focal 20.04.
How to setup XRDP server on NanoPC-T4
Contents
1 Step1: Install XRDP remote desktop
Enter the following command to install:
sudo apt install -y tigervnc-standalone-server xrdp sudo sed -e 's/^new_cursors=true/new_cursors=false/g' -i / etc / xrdp / xrdp.ini
2 Step2: Edit /etc/xrdp/startwm.sh
Edit /etc/xrdp/startwm.sh:
sudo vim / etc / xrdp / startwm.sh
Comment out the last two lines in the file (comment method: add # sign at the beginning of the line), as shown below:
# test -x /etc/X11/Xsession && exec /etc/X11/Xsession # exec /bin/sh /etc/X11/Xsession
Then add the following at the end of the file:
lxsession -s LXDE -e LXDE
3 Step3: Edit /etc/xrdp/xrdp.ini
Edit /etc/xrdp/xrdp.ini
sudo vim / etc / xrdp / xrdp.ini
Scroll to the address of "; Session types", delete all other session types, only [Xvnc] is left:
; ; Session types ; ; Some session types such as Xorg, X11rdp and Xvnc start a display server. ; Startup command-line parameters for the display server are configured ; in sesman.ini. See and configure also sesman.ini. [ Xvnc ] name =Xvnc lib =libvnc.so username =ask password =ask ip =127.0.0.1 port =- 1 #xserverbpp=24 #delay_ms=2000
4 Step4: Disable light-locker
Since light-locker will not work properly in the XRDP environment, we need to disable it in the XRDP environment. In order not to affect the real environment, here we use a packaging script to solve the problem. First, rename the original file:
the sudo CP / usr / bin / Light-Locker / usr / bin / Light-locker.orig the sudo RM / usr / bin / Light-Locker
Create another script to call it, and use the editor to create a file /usr/bin/light-locker with the following content:
#!/bin/sh # The light-locker uses XDG_SESSION_PATH provided by lightdm. if [ ! -Z " \$ {XDG_SESSION_PATH}" ] ; then / usr / bin / light-locker.orig else # Disable light-locker in XRDP. true fi EOF
Give the script executable permissions:
sudo chmod 755 / usr / bin / light-locker
5 Step5: Start xrdp service
sudo systemctl enable xrdp sudo systemctl restart xrdp
6 Step6: Test the remote desktop connection
Use the Microsoft Remote Desktop client to create a new connection, the address is the IP address of the development board, and the user name and password are pi. In order to get a better experience, the resolution is recommended to be set to 1280x800, and the color depth is 24 bits. The settings are as shown in the figure below. Shown:
After the connection is successful, as shown in the figure below:
Friday, July 9, 2021
Wednesday, June 30, 2021
Sample landing page
This is a sample landing page for a blog entry to discuss items of interest.
comments can be left with the comments section on this asking questions.
Should have a static link as well to this page.
A label is applied which would show up in any page display allowing labels, "sample landing page"

