Giter VIP home page Giter VIP logo

linux-surface-wizard's Introduction

Linux-Surface Wizard

Requirements:

  • systemd
  • dialog
  • bash
  • yay(if you use Arch)
  • Password for the root user. This script uses su -c rather than sudo.

Using:

  • For Debian based distros: Run bash <( curl -s https://raw.githubusercontent.com/SlippingGitty/Linux-Surface-Wizard/main/SurfaceLinuxSetupWizard.sh) in a terminal.
  • For Arch based distros: Run bash <( curl -s https://raw.githubusercontent.com/SlippingGitty/Linux-Surface-Wizard/main/SurfaceLinuxSetupWizardArch.sh) in a terminal.
  • For Fedora based distros OTHER THAN FEDORA SILVERBLUE: Run bash <( curl -s https://raw.githubusercontent.com/SlippingGitty/Linux-Surface-Wizard/main/SurfaceLinuxSetupWizardFedora.sh) in a terminal.

screenshot

What does this do, and why should I trust this with my fresh install?

In a nutshell, this puts a pretty face on the linux-surface setup instructions. If you feel unweary about this, you can check the scripts yourself, and cross examine it with the linux-surface setup guide. It's quite literally just spitting the instructed commands into a terminal.

Trouble shooting:

Check out the Wiki!

Why aren't the modules loading?

This may be because the wrong kernel is being loaded.

As a way to debug, in the setup wizard, there is an option show the GRUB menu.

This spits the command sudo sed -i 's/\<GRUB_TIMEOUT=0\>//g' /etc/default/grub, effectively removing GRUB_TIMEOUT=0 from the /etc/default/grub file, allowing the GRUB menu to be visible. (It also makes a backup to /etc/default/grub.bak just in case. To restore it, simply run cp /etc/default/grub.bak /etc/default/grub as root.)

Some distros such as Ubuntu hide the GRUB menu by default, so you have to delete or comment out "GRUB_TIMEOUT=0" to "#GRUB_TIMEOUT=0" in order to unhide it.

From there, you can then select the boot entry from the GRUB menu and be on your way to using your computer like a normal person.

Why isn't my touchscreen/pen/camera/etc working?

Please check linux-surface/Feature Matrix.

Where do I start?

1, 2, preferably 3, then optionally 4. If neccessary, 5, then finish with 6 and reboot to see if it worked.

Hey! Something isn't working!

Submit an issue and we'll get to you as soon as possible.


Or you can do it manually! https://github.com/linux-surface/linux-surface/wiki/Installation-and-Setup

linux-surface-wizard's People

Contributors

slippinggitty avatar vishram1123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

linux-surface-wizard's Issues

Syntax Errors in Script

When running the bash command for Debian based distros, I receive the following errors and the script is aborted:

/dev/fd/63: line 29: syntax error near unexpected token 'do'
/dev/fd/63: line 29: '@@ -35,48 +32,66 @@ while [ "$CHOICE -ne 4" ]; do'

I'm currently running Linux Mint 20.2 on a Surface Pro 4 with all dependencies installed and root password set.

Error Bad Shim Signature

I'm new to linux, and probably using a surface book 1 for my first major use of it wasn't the best idea, but it's what I had lying around. I followed the script, which was crazy helpful considering I couldn't get the instructions on the linux-surface repo to work, but now when I turn on my computer it says:

error: bad shim signature.
error: you need to load the kernel first.

So I go into the advanced options on the Grub menu to manually select the linux-surface kernel and the same errors come up:

error: bad shim signature.
error you need to load the kernel first.
Press any key to continue...
Failed to boot both default and fallback entries.
Press any key to continue....

This happens with the recovery option as well. I load into the generic kernel just fine, but I have no idea what I'm doing wrong. I followed the install video at https://youtu.be/WOVnCdaSKR8 along with everything I could see online. It's not that big of a deal that I can't use most of the surface book features, but I figured I'd give these options a try and now I'm stuck so any help would be appreciated.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.