Giter VIP home page Giter VIP logo

Comments (4)

fionera avatar fionera commented on August 17, 2024 2

You could setup autologin on the rootfs and then use the bashrc to execute your stuff.

from switch-linux.

benduckwdesign avatar benduckwdesign commented on August 17, 2024 1

That works, thanks @fionera for the advice.

Here is how I accomplished it for anyone else who wants to make use out of Switch Linux at the moment:

Note: Be sure to execute these commands after you have navigated to the root filesystem on your SD card, otherwise you'll be editing your own system and this could lead to unexpected results.

Step 1
Edit the configuration for getty which controls login security. Not recommended to do this unless you want no login security on your Switch.
root:~/rootfs# nano /lib/systemd/system/[email protected]

Find the following values and replace them (you could comment the old values out using # so you can always revert):

[Service]
TTYVTDisallocate=no
ExecStart=-/usr/bin/agetty --autologin alarm --noclear %I $TERM

Step 2
Edit the bashrc to use commands once logged in. In this case, I was probing to see if if some drivers were supported but you do whatever.
root:~/rootfs# nano /home/alarm/.bashrc

#
# ~/.bashrc
#

# If not running interactively, don't do anything
#[[ $- != *i* ]] && return

lspci -k
ip link set wlan0 up
dmesg | grep firmware
dmesg | grep iwlwifi
iw dev

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

Now you can wave your fists victoriously and meme your friends.

from switch-linux.

arnaud-devops avatar arnaud-devops commented on August 17, 2024

Thanks for this workaround.
There are any clues to have a keyboard or other usb devices working through the USB-C port ?

from switch-linux.

benduckwdesign avatar benduckwdesign commented on August 17, 2024

@oxynux As far as I know nothing is supported through the USB-C port except power. There is a kernel floating around that has working bluetooth and WiFi along with a rootfs image with the LXDE desktop installed, if you search around for it you should find it.

Edit: I was able to get a bluetooth keyboard working, however Chromium causes a kernel panic when bluetooth is enabled so use Firefox or some alternative web browser instead.

from switch-linux.

Related Issues (9)

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.