Comments (4)
You could setup autologin on the rootfs and then use the bashrc to execute your stuff.
from switch-linux.
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.
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.
@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)
- Stuck at "Waiting for root device /dev/mmcblk0p2" HOT 11
- Documentation Not building HOT 1
- Black Screen after sending the kernel via imx usb HOT 5
- Support vulkan api and sound (feature request). HOT 3
- Battery calibration issues after running Linux HOT 13
- Ability to rotate the display without Xorg (framebuffer with GBM/KMS)
- Screen sometimes don't power on HOT 2
- how to use usb device? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from switch-linux.