Pretty ingenious workaround. Just a note to skip some of the first 'blind' section (installing openssh server through the desktop environment with no screen visible):
Ctrl+Alt+F1 still works in many distros to switch VTs to a text-mode terminal tty1, and likely also works without logging into the desktop. Ctrl-Alt-F7 to switch back.
From here, you should be able to login blind, then sudo apt install openssh-server (assuming Internet connectivity,) or kill whatever misbehaving process, or even restart the whole DE or computer.
Switching to TTY2 is probably a better idea. I haven't used Linux in a while, but IIRC modern distributions use TTY1 for the graphical session due to some sort of limitation with systemd.
Actually, it dates from a couple of years before systemd existed, and started with the idea of minimizing monitor flicker during the system bootstrap in Fedora. The idea was to make the display not switch between text and graphics modes, as it did when successively switching from graphical splash screen to textual virtual terminal to graphical X display. Starting the X server on the default virtual terminal eliminated the middle part.
By the time that systemd came along, this was already established Fedora behaviour with upstart. The systemd people had to work to replicate existing semantics.
Not a limitation, but the notion that the graphical console should replace the text console on the same TTY.
Kind of makes sense, but very consistency/tradition-breaking. One of those decisions that should have been implemented a while back in order to be elegant.
Not so on my Bunsenlabs installation, which is just plain Debian, systemd included, with a minimalist OpenBox theme. Ctrl+Alt+F1 from the desktop gives me a text login session, and Alt+F7 returns to the desktop. Alt+F(1-6) switches between six text sessions.
There is no mention of what altitude he was at, but it's worth noting that LCDs are often rated to no higher than 10k-12kft, because tiny pockets of air at trapped during manufacturing (at sea level) may expand and cause damage.
That is what Apple used to recommend but the general approach these days is to allow the user to scale however they want as long as it doesn't break your UI, and for accessibility reasons.
Cool work around. Just adding another cool way to get laptops IP without ifconfig.
AVAHI. install avahi daemon (comes pre installed with most distros) and your laptop can be referred with a domain name(generally LAPTOPNAME.local, "local" domain). By using this you won't have to worry about the changing IPs, you always refer to the laptop with that name. Very handy.
Great stuff! For the record: Avahi is an implementation of Zeroconf. Bonjour is another implementation from Apple. Bonjour is built into macOS. Bonjour is available for Windows too, for example it can be downloaded somewhere on apple.com. (Personally I just install Cyberduck on all Windows machines I touch - it's an open-source SFTP/FTP/block-storage client and includes Bonjour for Windows.)
I'm reminded of the section in Cryptonomicon where the protagonist is imprisoned with his laptop and needs to hack with the screen turned off, for security reasons
I haven't reread it since about 2000 so you are now likely to be right. I was sure there's another bit where he's doing things blind, but memory serves me badly! I do recall he needed to make sure anyone reading his screen remotely couldn't read his code. Time to dip in for another look
Huge amount of useful information for anybody with a laptop - screens break anytime, anywhere, and of you are in maker-mode at 0300 you wont be getting it fixed for a day! VNC definitely a great tool to have on and running all the time in case this happens. The other tools very useful to know about.
Thank you :) So pleased you appreciate it, there's a surprising amount of time and energy spent in all that. And yes that was exactly my thought, the hacks could be useful for any number of reasons, not just broken screens in the Himalayas.
Nice hacks. Just wanted to comment that the free version of JuiceSSH is crippled. I forget in what way but I tried it out a while back because I wanted to test out mosh support and ended up deleting it because of the crippling.
Now I'm happily back with ConnectBot (I didn't really need mosh support anyway), although I do see that screen status bar update screen scrolling thing happen from time to time, never worked out why or how to fix it, but it goes away if I start a new session.
I definitely considered this, it was just the look on local faces, they said that stuff does arrive but sometimes goes missing too. My screen is more like $300 so considering I have a functional setup I decided I was happy enough. Besides the hackery was worth it in itself :) And I'll be in Delhi next week now anyway.
I did try for a bit, but the screen update FPS was annoyingly slow. Also the resolution difference required a lot of pinch zooming. I think it'd be worth experimenting with reducing the desktop resolution to match my phone cos it would likely alos increase the FPS. However, I'm productive enough now with mosh and tmux.
Leh is capital of province in which this happened, it has 30K people. I think it should be possible to just buy new crappy laptop, which is standard procedure for DNs.
> There are no easy ways to get crashed computers or laptops repaired in Leh. There is a large samsung dealer shop in the Leh Main Market.
I did think of that, also getting a crappy external monitor too. But I didn't want to reinstall everything again and my laptop is pretty powerful, so I didn't want to lose out on that. Also, I just like the challenge of a hack.
Well half the time there's no Internet at all. Then the rest of the time it's mostly high latency and Internet at ~5kbps. Perhaps once a week we get a few hours of 3G, hitting speeds of 200kbps tops.
No I hadn't. I just checked and the nearest network is Manali, so they're on their way :) [1]. I'd heard about such networks before, but wasn't aware they were so actuvely and successfully implemented, very inspiring.
1. https://airjaldi.com/networks/manali-network/
In actual fact, I have to use pen and paper more than usual because vanilla Android can't display 2 apps at once. So for example, one time I wanted to read something from Wikipedia into a Whatsapp audio message, so I had to write the salient points down on paper first.
Ctrl+Alt+F1 still works in many distros to switch VTs to a text-mode terminal tty1, and likely also works without logging into the desktop. Ctrl-Alt-F7 to switch back.
From here, you should be able to login blind, then sudo apt install openssh-server (assuming Internet connectivity,) or kill whatever misbehaving process, or even restart the whole DE or computer.