What I want to do: Print an A6 PDF centred on an A4 page from the command line on Linux What I tried: Tried to use evince and Firefox but they have no command line print options for linux. What worked: Calculate the margins and run lp or lpr by doing the following...
GNU/Linux
2nd Monitor not Working after Kernel Upgrade
Ubuntu 20.04.2 LTS with a 460.80 Nvidia Driver Just did an upgrade from 5.8.0-59-generic to 5.8.0-63-generic kernel last night and this morning my monitor connected to the VGA port on the card failed to work sudo lshw -c video *-display description: VGA compatible...
Run Shell Commands from the MySQL Client
Saw a post that says you need to put a ! to run a shell command in the MySQL but found in my mysql client that it was \! <shell-command-here> https://electrictoolbox.com/shell-commands-mysql-command-line-client/ To drop to a shell. use \! bash To return to the the...
Docker on Fedora 32
Commands to run to get moby-engine running on Fedora 32 # as root or sudo'd dnf install grubby grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierachy=0" # check the output of the above grubby --info=ALL sudo mkdir /sys/fs/cgroup/systemd sudo mount -t...
PDF Poster
Start with a wide long image. This is just a screen shot of my desktop. widescreen.png Convert it to postscript using convert from ImageMagick # install ImageMagick sudo dnf install ImageMagick convert widescreen.png widescreen.ps Use poster to chop and format the...
July 2020 VMWare Player and Workstation won’t compile their modules on kernel 5.7.6-201.fc32.x86_64 Fedora 32
So just had to downgrade my running Kernel to use an earlier one using: grubby --set-default /boot/vmlinuz-5.6.19-300.fc32.x86_64 I couldn't get the the vmware modules to compile on 5.7.6-201.fc32.x86_64. These things change rapidly and they will probably make an...
Can’t launch OpenVPN on Fedora 32 due to SeLinux preventing access to key
Network manager allows you to add certs to an OpenVPN connection but the connection fails with SeLinux enabled You know it's seLinux because when you disable seLinux it works # disable seLinux NM openvpn works setenforce 0 # enable seLinux NM openvpn fails setenforce...
View Fedora 32 Nvidia Driver Settings
So just booted my Fedora box into version 5.7.6-201.fc32.x86_64 kernel and got stuck at the UEFI boot logo and no further. Theoretically the NVIDIA driver should dynamically build and install it's kernel module in the later kernel when you follow the directions at the...
Scribus to PDF Print
Just using Scribus to design and print some lapel cards Regarding Scribus - It seems that the stable version will not run or install easily on Fedora 32 so I have had to make do with the Scribus Version 1.5.6.svn Beta. So after getting around the flakey behavior of...
CUPS-PDF Printing Images not searchable PDF
I have a cups-pdf printer that takes the output from glabels-3-batch # Using glabels-3-batch results in a PDF you can select and copy the text from cat merge.csv | glabels-3-batch -i - -o out.pdf 100x50sample.glabels The PDF file which glabels-3-batch creates can be...
How to detach or disconnect a screen session on Linux
Crtl-a Ctrl-d
Advanced git
https://youtu.be/duqBHik7nRo Just putting this here for later. A git talk that covers everything that I wonder about with git. Also the speaker has a book which going by her previous courses will be excellent.
Use FORCE INDEX
Just putting this here as I have a SELECT in MySQL that was taking 1.946 sec to return 20 records from a table with 159884 records when using a ORDER BY DESC on a DATETIME field Creating an index and changing the FROM to FORCE INDEX () dropped it down to 0.00079 sec /...
Using a git repo as a composer repository
So here is the link so I don't forget it https://getcomposer.org/doc/05-repositories.md#vcs Add your repo's URL into your composer.json in the repositories key and change the version on the original repo name to your dev-* version where * is a branch of your github...
pgAdmin / pgcli could not send data to server: Socket is not connected
My setup is My home network is IPv6 enabled. I have an AAAA record specifying the IPv6 address of the Amazon EC2 instances Elastic IP <IPv6 enabled home network> | <internet> | <Dockerized Postgres on EC2 Instance> Getting this error message when attempting...
I wanted a visible paragraph mark and after invoking ‘CTRL + SHIFT + u + b6’ my dreams were fulfilled
I have just installed Fedora 26. I have a PDF that contains a ¶ visible paragraph mark but when I copy it into a Libre Office Writer document an 8 appears. So I have to replace the incorrect 8 with a ¶ visible paragraph character To do this in LibreOffice you click...
seLinux practices the silent treatment – If you would only just tell me what’s wrong I would fix it
I have a html form that posts to a Perl CGI script. The script then loops and creates a CSV that is then piped to glabels-3-batch to create a PDF file of labels which lpr then sends to a printer. I found if I select to create 26 labels the script worked but above 26 I...
Fedora 25 Kernel Upgrade Breaks MacBook Pro WiFi
https://ask.fedoraproject.org/en/question/71227/how-to-keep-fedora-22-updates-from-breaking-broadcom-bcm4312-wireless/ The fix is to boot to the latest kernel and run