Skip to content

u/DustVoice

In this archive from Mar 2020 to Mar 2021

2
posts
58
comments
1
media
344
score
1 saved before deletion

well because you're giving away control completely. Would you run some random scripts in a root shell? No of course not. But for example do you know if all your vim plugins are free fromlmalicious code? Maybe but not most certainly. It's just one more security hazard easily avoidable by using sudoedit. If it is not important to you, more power to you. But this doesn't make this NOT a security hazard

1 points

Visudo, as the op explained in another comment, which is his culprit, edits the sudoers file.

But even for editing a normal file, your advice bears some big security issue: You then have a sudo command prompt in vim?!

:!rm -rf /home

aaaand your done for

sudoedit is your friend in that regard and even cares about $EDITOR

2 points

I was in zen for a long time until I got back into audio stuff and somehow the zen kernel really fucked with my high fidelity audio equipment, namely interfaces etc. I tried several fixes, changed settings around, blamed it on jack, etc. Until I suddenly got the enlightment to try the normal kernel and et voila it really seemed to be the zen kernel. So for me it isn't suited, but I had a blast while using it

1 points

You can make actually windows appear where you want them to, instead of trying to move all your windows, so the final layout after 3 years of moving stuff around is finally acceptable for your 10 second terminal input. E.g. you can preselect the side (north, east, ...) of a node (because bspwm is using a binary tree internally) a new node will appear on. That means, a new window doesn't have to be opened next to an actual window, but can also be opened next to a parent node of two windows. This is just one of the benefits, but it already motivated me to switch a long time ago

7 points

No problem at all. I tried bruning an ISO using OTG one, but without success so I hope you can achieve more. But I think smth like this would only possible with a rooted phone.

I think you should research on smth like Amazon how much a Linux boot stick is before going out of your way to buy an OTG cable. Where I live, an Amazon Ubuntu boot stick is like 15 bucks so pretty much in the range of an OTG cable. And for the next time, remember to always have at least one boot stick at hand for recovery. I live by this mantra. Cheap 4Gig USBs are perfect for this. But because I don't want to have 20 USBs laying around, I use a butt ton of microSD cards for that. Just to give you some options for the time after you've fixed your stuff. Best of luck

1 points

Ok. So if CD/DVD isn't an option the only thing I could think of right now is that if only your Grub files are corrupt and you're rocking an EFI install, that you might somehow boot the EFISTUB included in the kernel image, located on your EFI Partition using your UEFI Firmware. Other than that you could either ask a friend or something to create a bootable USB for you, or if you don't have such means, you could always order a Linux stick online... But that would be the last resort for me.

1 points

Well you can "burn" images to USB using windows, no problem. Try Rufus, it's what I used to do my boot drive initially. Make sure you select GPT as your partition scheme and try the NOT dd mode first after pressing START. If this doesn't make your usb bootable, try using the dd mode. Rufus provides a portable executable IIRC. but I don't know of course how locked down this pc is...

3 points

Well if you have the means to mount the iso in order to copy files you could always dd it to the USB? Because in order to make the iso work as intended it has to be copied block by block. You could install a bootloader on the USB, copy the archiso files and point the bootloader, yes but I don't think you're able to do that.

If you use Grub for example and your Grub is working fine, you could theoretically copy the archiso itself to the USB and try using the Grub console to chainload the syslinux bootloader.

IIRC, these are the steps to take:

DISCLAIMER: I give no guarantee for this to work as it is a long time ago when I used Grub but I think this procedure should do. If not please report back where it fails

Boot "into" Grub and switch to the recovery console. Now do ls in order to see what drives & partitions are recognized. Now you have to guess what drive your iso resides on by looking at the contents of the partitions, so if you've got the following disks & partitions

(hd0) (hd0,gpt1) (hd0,gpt2) (hd1) (hd1,msdos1) (hd2) (hd2,gpt1) (hd3) (hd3,gpt1)

And you know you usb has one partition, with a GPT partition table rather than an MBR one, you would only have to try hd2 and hd3. For that you ls the drive & partition and append a slash like e.g.

ls (hd2,gpt1)/

If you've found your iso, you can now map it to a "new" disk e.g.

map (hd2,gpt1)/archiso-xxx.iso (hd4)
map --hook

And set it as your new root

root (hd4)

Now the only thing left should be to chainload syslinux on the archiso

insmod chain
chainloader (hd4)
4 points

I'm running arch on a microSD Card, inserted into a USB3.0 card reader which exposes the microSD as a USB Stick to the system, if I'm on the go. Never had any issue. Be sure to keep backups around and I'm specifically using nilf2 bc of its concurrent snapshots, because you have limited recovery possibilities on the go if something goes wrong. I also have a backup archiso card just in case. Note that a microSD is not as great as a portable ssd but it's perfect for my Keychain. As I set mine up with a BIOS/UEFI setup, it has never failed me once

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

โ†orโ†’
Previous / next file
โ†‘orโ†“
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.