Disabling l4tbr0

On the Jetson Nano the l4tbr0 network bridge it is enabled by default, if you want to disable it you can use the following two commands.

systemctl disable nv-l4t-usb-device-mode.service
systemctl stop nv-l4t-usb-device-mode.service

Note – Once the service has been disabled you can’t simply re-enable it again.

Posted in Linux | Leave a comment

gksu is dead long live pkexec

I don’t use it very often but occasionally it can be useful to have a launcher somewhere on my desktop that starts a terminal session as root.
Continue reading

Posted in Debian, Linux, Raspbian, Ubuntu | Tagged | Leave a comment

Installing WordPress (on a Raspberry Pi Zero)

Having used WordPress for a few years now I decided it was time I tried setting up a WordPress server on my network, and just to make it interesting I decided to use a Raspberry Pi Zero W – why not!
Continue reading

Posted in Debian, Linux, Raspbian, Ubuntu | Tagged , , , | Leave a comment

How to identify a Raspberry Pi’s model number

I have several different little Raspberry Pi computers, and though there are subtle differences between them if you can’t remember what they are then you will be glad to know that you can easily check the model number from the comand line in the recent versions of the operating system.

echo $(cat /proc/device-tree/model | tr -d '\0')
Raspberry Pi 3 Model B Rev 1.2

See also how to get the operating system version.


Posted in Raspbian | Tagged | Leave a comment

Count the number of sub-directories

Another one liner that just counts the number of sub directories.

find ./*  -type d  | wc -l

Note – Remember to use ./* if you don’t want to include the current directory itself in the total.

Posted in Linux | Tagged | Leave a comment

List packages by install date

A handy ‘one liner’ that lists all the packages installed on a RedHat system by the install date.

rpm -qa --qf $'%{INSTALLTIME}\t%{INSTALLTIME:date}\t%{NAME}\n' | sort -n -r -k1 | cut -f2,3
Sun 09 Jun 2019 17:26:04 BST systemd-sysv
Sun 09 Jun 2019 17:26:04 BST systemd-libs
Sun 09 Jun 2019 17:26:04 BST rsync
Thu 02 Nov 2017 12:49:32 GMT bzip2-libs
Thu 02 Nov 2017 12:49:13 GMT fontpackages-filesys
Thu 02 Nov 2017 12:49:13 GMT basesystem

This command uses format specifier to display the installed packages with a numeric date/time in the first field, a descriptive date/time in the second field, and the package name in the third field, all separated by tabs. The output is then sorted into date order using the numeric date field, and then just the second and third fields are displayed.

Note – You don’t need to specify a delimiter the output is formatted with tab between the fields which is the default delimiter used by sort and cut.

Posted in RedHat | Tagged | Leave a comment

Trouble with suspend/resume device

After restoring my laptop from a not so recent backup I found that it spent about 30 seconds waiting for the suspend/resume device.
Continue reading

Posted in Debian, Linux, Ubuntu | Tagged | Leave a comment

Script to set the MTU size in RedHat

The following script makes it easy to set the MTU size if you are using RedHat or CentOS 7.x, and has also been tested successfully on RedHat 6.x.
Continue reading

Posted in Linux, Networking, RedHat | Tagged | Leave a comment

Configure proxy settings for Git

If you are using git from behind a proxy then you will need to tell it what your proxy settings are.
Continue reading

Posted in Linux | Leave a comment

Determine MTU size using ping

Normally the MTU size should be set correctly using Path MTU discovery, but this may not always work.
Continue reading

Posted in Linux, Networking | Tagged , , , , | Leave a comment