GB
  
You are currently viewing the United Kingdom version of the site.
Would you like to switch to your local site?
13 MIN READ TIME

Answers

Got a burning question about open source or the kernel? Whatever your level, email it to answers@linuxformat.com

Q Chi cken and eggcryption

I have Pop_OS installed on my Surface Pro 3. During installation, I neglected to uncheck the option to encrypt the disk. Now when I turn on the tablet, I must have a keyboard attached in order to get past the first login screen as no virtual keyboard is made available. The second login screen does make the virtual keyboard available.

Is there a way to disable the disk encryption? Or, is there a way to activate a virtual keyboard on this first login screen? My whole purpose in installing Pop on the Surface Pro was to take advantage of the portability of the tablet without a keyboard. The OS runs blazing fast on this old tablet computer.

A This occurs because unlocking your encrypted disk has to happen early in the boot process, before the keyboard modules have had a chance to load – because the modules are on your encrypted disk. So, to enter your encryption key, you need to load the modules, but to load the modules, you need to enter your encryption key. The solution is to include the keyboard modules in the initramfs. This is a minimal filesystem in a file that is loaded by the kernel when booting and includes just what is necessary to start booting the main system from your disk, but not here.

After booting via an external keyboard, you can set up the initramfs to enable your keyboard. Open a terminal and run $ sudo nano /etc/initramfs-tools/modules

This file contains a list of modules to add to the initramfs. Add this list of modules, one per line, and press Ctrl+O then Ctrl+X to save and exit the editor. surface_aggregator surface_aggregator_registry surface_hid_core surface_hid intel_lpss intel_lpss_pci 8250_dw

Now update the initramfs with your new modules by running: $ sudo update-initramfs -u Now your initramfs should contain the modules you need and give you access to the virtual keyboard early on when you reboot. You can check the contents of the initramfs by running: $ lsinitramfs /boot/initrd.img /boot/initrd.img is usually a symlink to the latest files, but you can list any initramfs file with this command. The output is long, so either pipe it through a pager, such as less , or pipe it through grep to look for a particular module or set of modules $ lsinitramfs /boot/initrd.img | grep surface

Unlock this article and much more with
You can enjoy:
Enjoy this edition in full
Instant access to 600+ titles
Thousands of back issues
No contract or commitment
Try for 99p
SUBSCRIBE NOW
30 day trial, then just £9.99 / month. Cancel anytime. New subscribers only.


Learn more
Pocketmags Plus
Pocketmags Plus

This article is from...


View Issues
Linux Format
June 2023
VIEW IN STORE

Other Articles in this Issue


LINUX FORMAT
LINUX FORMAT
The #1 open source mag Future Publishing Limited,
WELCOME
MEET THE TEAM
We’re looking at all manner of hacks this issue, from using Kali Linux to Hackfest and robot builds. What was your favourite hack?
Hacking away
It was a great experience to attend the
REGULARS AT A GLANCE
Newsdesk
THIS ISSUE: Ubuntu ties knot with RISC-V »
RISC-V on Ubuntu
Developers at Canonical and the RISC-V Foundation have been pulling out all the stops to marry everyone’s favourite distro with RISC-V.
Deutsche Telekom picks Collabora Online
An open source online office suite is now available to Telekom customers in Germany and Austria.
Storm in a Docker container?
Announcement causes confusion among customers.
LINUX FOCUSED
Keith Edmunds is MD of Tiger Computing, which
BACK TO BASICS
Joe Brockmeier is head of community, Percona. "There
Happy birthday to Curl!
As Curl turns 25, version 8.0.0 is released.
Multi-core improvements
Intel engineers have tweaked optimisations for the Linux kernel.
Google boosts VM performance
Google engineers release patches to improve KVMbased virtual machines.
Distro watch
What’s behind the free software sofa?
NEW DRIVER
Boris Brezillon is a senior software engineer at
CONFLICTS
Jon Masters is a kernel hacker who’s been
Kernel watch
Jon Masters keeps up with all the latest happenings in the Linux kernel, so you don’t have to.
Mails rver
MAILSERVER WRITE TO US Do you have a
HotPicks
System Monitoring Center Universal Media Server Element Carbonyl Nushell Tonfotos Conjure Space Station 14 Crispy Doom Singlebox Rymdport
UBUNTU 23.04 FAST AND LIGHT!
We take the latest Ubuntu release and sprinkle a little LXF magic on it, so it runs faster and lighter than ever before!
REVIEWS
LDO V0-S1 Voron 0.1
Denise Bertacchi thinks you can take DIY too far…
AMD Radeon RX 7900 XTX
It’s AMD’s fastest graphics card, powered by chiplets, cries Jacob Ridley.
Trisquel 11.0 Aramo
Nate Drake goes from being a Boy and his Blob to Trisquel, a truly free open source and blobless operating system.
Ubuntu 23.04 Lunar Lobster
Nate Drake finds this Lobster Linux to be a snappy dresser, with the stunning latest version of Gnome and improved settings.
Dome Keeper
The Management likes to think the monsters in the LXF dungeon are incentivisation multipliers. Jon Bailes is too busy mining a way out to argue.
ROUNDUP
Firewall distros
WE COMPARE TONS OF STUFF SO YOU DON’T HAVE TO!
Installation and setup
How simple are these firewalls to fire up?
Configuration and management
How easy do these firewalls make life for network admins?
Updates and upgrades
Which firewalls are easiest to keep in the loop?
Security features
How seriously do these firewalls take your safety?
Help and support
When all else fails, can you read the manual?
Cloud support
Which firewalls take to the cloud best of all?
Stability
Will your chosen firewall still be here 10 years from now?
The Verdict
Firewall distros
Master hacking with Kali
Daring David Rutland dons his black hoodie and joins the red team to try out Kali Linux from Offensive Security.
Ice cold with Kali
Kali is essentially a collection of tools gathered over the decades, and packaged in an easy-to-use, logical way.
Get to grips with Kali
Kali Linux enables amateurs and pros alike to take security into their own hands and carry out attacks on their own networks and equipment.
Metasploitation
No computer program is perfect and it’s not possible to predict every output for every input as neither humans nor computers are omniscient.
Chase the purple dragon
There are people who want to break into networks and machines, and people who try to stop them, known as red teams and blue teams.
Pi USER
Ada Computer Science platform launched
An English curriculum-mapped resource for GCSE and A-level grade students. Fill your boots!
Pico gets video-out with Adafruit
The latest microcontroller RP2040 comes with advanced visual goodies.
SPRING IS BEARING FRUIT
Les Pounder works with groups such as the
Argon ONE NVMe
Feeling the need, the need for 1980s film references, Les Pounder tries out a speedy Pi solution.
Pico Bricks
Learn all about electronics and programming with a simple, Pico-based kit and Les Pounder!
Boot your Pi faster from USB storage
Les Pounder feels the need, the need for speeding up his Raspberry Pi 4 using USB 3…
Robot object detection, side motion and video
To put the electronic cherry on Les Pounder’s finished robot, we add sonar sound, streaming video and sideways motion.
TOP OF THE FOSS!
Vanilla OS
Matt Holder discovers that Vanilla OS is anything but vanilla.
It’s Collabora time!
At Clare College, Cambridge, Neil Mohr catches up with the Collabora Online team to discover what’s state of the art in the online office world.
TUTORIALS
Check your disk usage
There are many vanilla tools that tell you the amount of free disk space but Shashank Sharma prefers one that values style as well as substance.
Speed up text-based tasks with Espanso
Nick Peers reveals how to boost your productivity with a free text replacement tool that has a multitude of different uses.
ALGOL: the father of mainstream languages
Time traveller Mike Bedford steps back 65 years to the birth of high-level languages and looks at ALGOL, the language that started a revolution.
Scale, repair and enhance your photos
G’MIC is a treasure chest with virtually inexhaustible content. But how do you use it? Karsten Günther helps open the box and explore the contents.
Rescuing data from legacy floppy disks
Matt Holder discovers that rescuing data from 20-yearold floppy disks is a lot more difficult than expected.
Relive the history of tracker music
Michael Reed looks at the history of so-called tracker music and explores some of the Linux tools that can work with that format.
IN DEPTH
Art beyond the canvas
Tam Hanna takes a look at running the Stable Diffusion image generator on your local Linux systems.
CODING ACADEMY
Add controllers and menus with OpenGL
Never a man to miss deadlines, Andrew Smith stays in control adding mouse menus to our OpenGL-powered 3D chess game.
Chat
X
Pocketmags Support