Norway Online shops and e-marketplaces registered in the VOEC register

Norway Online shops and e-marketplaces registered in the VOEC register

Continue reading →

Rename multiple files

Rename multiple files

for filename in *.jpg; do newname=echo $filename | sed ‘s/xxx/yyy/g’; mv $filename $newname; done

Continue reading →

How to disable password authentication for SSH

How to disable password authentication for SSH

In file /etc/ssh/sshd_config Uncomment the second line, and, if needed, change yes to no. Then run

Continue reading →

Mount encrypted volumes from command line with Luks

Mount encrypted volumes from command line with Luks

Your volume is probably encrypted with LUKS, here’s how to mount it: You need: sudo apt-get install cryptsetup To decrypt the volume: sudo cryptsetup luksOpen /dev/sda1 my_encrypted_volume Now you can mount it as usual: sudo mkdir /media/my_device sudo mount /dev/mapper/my_encrypted_volume /media/my_device To lock the container…

Continue reading →

How to mount a HFS partition in Ubuntu as Read/Write?

How to mount a HFS partition in Ubuntu as Read/Write?

First, make sure that you have hfsprogs installed. Example installation command: Next, mount or remount the HFS+ drive; commands need to be as follows: Finally, if the drive was improperly unmounted or has otherwise become partially corrupted run fsck.hfsplus (provided here by Jayson) as such:

Continue reading →

How to install your public key in the remote machine’s authorized_keys

How to install your public key in the remote machine’s authorized_keys

cat ~/.ssh/id_rsa.pub | ssh USER@HOST "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

Continue reading →

Change extension to multiple files

Change extension to multiple files

for i in *.pdf; do mv $i ${i/pdf/jpg}; done

Continue reading →

How to redirect stderr and stdout in Bash

How to redirect stderr and stdout in Bash

do_something 2>&1 | tee -a some_file

Continue reading →

ssh local tunneling – access home from remote location

ssh local tunneling – access home from remote location

Let’s say you have a raspberry running at home and you want to access it from your office. If you have a google router you can easily set up IPv4 port forwarding 2222 -> 22 At this point from the office you can ssh -p…

Continue reading →

Tesla model 3: ecall emergency call system needs service on tesla

Tesla model 3: ecall emergency call system needs service on tesla

Description: An error shows up on the screen: _ecall emergency call system needs service_ Solution: Within ten seconds: a. Press the SOS call button in the roof of the car and cancel the call immediately on the screen. b. Hard reboot the car by pressing…

Continue reading →

Page 1 of 16 1 2 3 4 5 ... Last →