↓
 

A Pipe and a Keyboard

A sort of Linux scrapbook

  • Home
  • About
  • Software
  • List of posts

Post navigation

1 2 3 4 … 42 43 >>

GRUB problems

A Pipe and a Keyboard Posted on December 20, 2024 by RichardDecember 20, 2024

i have just acquired a new laptop.

Naturally the first thing i did was to resize the Windows partition and install Linux Mint. That all went very smoothly and when finished, I rebooted.

That’s when the problems started.

Rebooting just brought me back into Windows. There was no sign of the normal GRUB menu. However, by using the function keys boot diagnostics (in my case pressing F9 during bootup) I was able to boot into Linux. So both OSs were working but I could only boot into Windows.

I eventually found a solution the would explicitly install GRUB. I followed the procedure and it worked.

in case the linked site above disappears for any reason, the commands are as follows –

Firstly, you need to boot into your Linux system. If your current bootloader is broken, you might have to use a live CD or USB of your Linux distribution.

Once you have booted into Linux, open a terminal window to execute the necessary commands.

Before installing GRUB, you need to identify the disk where you want to install it. To list the disks and partitions, use the command:

lsblk

or

sudo fdisk -l

In my case, the above told me the correct partition is at /dev/nvme0n1p1.

Install GRUB to the Master Boot Record (MBR) of the desired disk using:

sudo grub-install /"target"

where “target” is the result of the previous command. In my case the command was sudo grub-install /dev/nvme0n1p1

After installing GRUB, you need to generate the GRUB configuration file. Use the command:

sudo update-grub

Alternatively, you can use:

sudo grub-mkconfig -o /boot/grub/grub.cfg

That’s it! GRUB is now installed.

Reboot.

Posted in Linux | Leave a reply

Tab bar broken again in Firefox 133

A Pipe and a Keyboard Posted on November 29, 2024 by RichardNovember 29, 2024

Firefox has updated and once again the Tab Bar is on top!

Why they keep doing this is beyond me. It is damned irritating.

The fix is detailed HERE.

In case that link disappears the technique and code are as follows.

Locate your userChrome.css

  • First, you need to enable the userChrome.css file. If you’ve done this before, you’re probably already muttering, “Here we go again…”
  • Click ‘Help’ > ‘More troubleshooting information’ > Profile folder – ‘Open folder’
  • Navigate to your Firefox profile folder.
  • Inside, create a folder named chrome if it doesn’t exist.

Add the Magic Code

  • Inside the chrome folder, create a file named userChrome.css . (Feel free to mumble, “Thanks for the extra work, Mozilla.”)
  • Paste the following code into your userChrome.css file:
  • SAVE and exit Firefox.
  • Restart Firefox

Celebrate Victory

The Code:

/*Additions by Codehaven - Mike to change specific sizes*/
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_on_bottom_v2.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* This reorders toolbar to place tabs below other toolbars. Requires Firefox 133+ */
@media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"){
#nav-bar > .titlebar-buttonbox-container{
order: -1 !important;
> .titlebar-buttonbox{
flex-direction: row-reverse;
}
}
}
@media not (-moz-bool-pref: "sidebar.verticalTabs"){
.global-notificationbox,
#tab-notification-deck,
#TabsToolbar{
order: 1;
}
#TabsToolbar > :is(.titlebar-spacer,.titlebar-buttonbox-container){
display: none;
}
:root[sizemode="fullscreen"] #nav-bar > .titlebar-buttonbox-container{
display: flex !important;
}
:root[tabsintitlebar] #toolbar-menubar:not([autohide="false"]) ~ #nav-bar{
> .titlebar-buttonbox-container{
display: flex !important;
}
:root[sizemode="normal"] & {
> .titlebar-spacer{
display: flex !important;
}
}
:root[sizemode="maximized"] & {
> .titlebar-spacer[type="post-tabs"]{
display: flex !important;
}
@media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"),
(-moz-gtk-csd-reversed-placement),
(-moz-platform: macos){
> .titlebar-spacer[type="post-tabs"]{
display: none !important;
}
> .titlebar-spacer[type="pre-tabs"]{
display: flex !important;
}
}
}
}
}
/* Adjust the height of the Tabs Toolbar */
#TabsToolbar {
height: 32px !important; /* Neater toolbar height */
min-height: 32px !important;
max-height: 32px !important;
margin: 10px 0 -5px 0 !important;
padding: 0 !important;
font-size: 14px !important;
}
/* Adjust tab height to match the toolbar */
#TabsToolbar .tabbrowser-tab {
height: 36px !important; /* Matches toolbar for a balanced look */
padding: 0 4px !important; /* Adds slight spacing between tabs */
}
/* Center align tab content */
#TabsToolbar .tab-label {
line-height: 34px !important; /* Align text with tab height */
margin: 0 !important;
}
/* Smaller close button for a cleaner appearance */
#TabsToolbar .tab-close-button {
height: 14px !important; /* Smaller close button */
width: 14px !important; /* Proportional width */
margin: 0 2px !important; /* Adjust spacing around the button */
padding: 0 !important;
}
/* Prevent overflow and ensure neat alignment */
.tabbrowser-tab .tab-stack {
margin: 0 !important;
padding: 0 !important;
}
/* Adjust tab icon size */
#TabsToolbar .tab-icon-image {
height: 18px !important; /* Matches the smaller close button */
width: 18px !important;
}

Incidentally, There was already a userChrome.css file [probably from a previous fix] so I replaced the entire contents with the above code.

It works!

Posted in Linux, Tech stuff | Leave a reply

WP phpMyAdmin Session mismatch

A Pipe and a Keyboard Posted on February 19, 2024 by RichardFebruary 19, 2024

I recently installed “WP phpMyAdmin” plugin on another WordPress site.

It’s an excellent plugin and saves the tedious business of logging into the hosting server to access the database.

On the second attempt to run the plugin however I ran into a problem –

Session mismatch.
Go back and click Enter phpMyAdmin button again. If you still experience issue, try to open a ticket at Support pages and provide some details.

After a fair bit of a search I came across a fix. Simply enter plugins/wp-phpmyadmin-extension/lib/phpMyAdmin_[followed by string of random characters] and delete the three files starting “_session_temp“

My next task is to write a small batch file to delete these without having to use FTP!

Posted in Blogging, Tech stuff | Leave a reply

When Linux slows down

A Pipe and a Keyboard Posted on September 4, 2023 by RichardDecember 12, 2024

A while back I had a problem with my Linux Mint.

Programmes took an age to shut down, sometimes taking several minutes. It wasn’t confined to one programme. Any programme seemed to be affected. Also I would occasionally get a screen full of code on shut down [or boot, I can’t remember!] that flew past too quickly to read.

Then I started getting messages that my disk was full. This was worrying as I have a 1Tb HDD with windows/Linux dual boot. The Linux root partition was 50Gb and the home partition was 500Gb, both being big enough to avoid problems. Or so I thought. It was the root partition that was nearly full.

A quick check with Disk Usage Analyzer showed that the problem was log files. Tons of ’em. I deleted them [carefully].

Next I took a photo of the scrolling text. That at least allowed me to read some of it.

I selected a likely looking piece from one of the lines – “PCIe bus error severity=corrected” – and did a search on the web. I quickly found a solution.

Edit the file “/etc/default/grub” as Root user [making a backup of it first, of course].

Change the line

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”

to

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash pci=noaer”

Save it and run update-grub.

Everything now loads and shuts down smoothly and quickly.

N.B.

Two of the log files which can grow to several Gigabytes are “syslog” and “kern.log”. Both files must exist but can be emptied:

sudo truncate -s 0 /var/log/syslog

sudo truncate -s 0 /var/log/kern.log

Posted in Linux | Leave a reply

Firefox broken again

A Pipe and a Keyboard Posted on May 13, 2023 by RichardMay 13, 2023

The latest update to Firefox broke the display once more by moving Tabs to the top.

I searched and eventually found a fix on Mac’s site – The Foggy Mirror.

After a couple of failed attempts I eventually found how to do it.

  1. Copy the code provided in Mac’s link’
  2. Type about:profiles in the address bar.
  3. At “Preofile: default -> Root directory” click on “Open Directory”.
  4. Enter folder “chrome” or create it if it doesn’t exist.
  5. Save the copied content as a file “userChrome.css” or replace an existing file.
  6. Restart Firefox.

This fixed the Tabs location but I wanted the Toolbar on top. I found the fix for that on Mac’s link too.

  1. Copy the code provided here.
  2. Paste the code at the end of the userChrome.css file [as above]
  3. Restart Firefox.

I did try the second block of code on its own but that broke the site again. With the two blocks together my Firefox is back to its original appearance.

Posted in Tech stuff | Leave a reply

Post navigation

1 2 3 4 … 42 43 >>

Recent Posts

  • GRUB problems
  • Tab bar broken again in Firefox 133
  • WP phpMyAdmin Session mismatch
  • When Linux slows down
  • Firefox broken again

Categories

  • Blogging
  • General
  • Linux
  • Media
  • Tech stuff
  • Writing

Blogroll

  • Head Rambles
  • Kirk M's Just Thinkin'
  • Wordpress Beginner
  • Wordpress Development

Archives

©2025 - A Pipe and a Keyboard - Weaver Xtreme Theme
↑