Skip to content

u/linunix

In this archive from Mar 2018 to Jan 2024

7
posts
134
comments
1
media
594
score
2 saved before deletion

With DynDNS, you don't need keep track of anything. Who ever tries to reach to your (with a dynamic IP) service, it gets the IP provided by DynDNS. This can only work, if your router keeps the DynDNS provider up to date about its new IP. The request is then forwarded to your router. Your router has to forward the request to the port that your service is listening on (port forwarding). Am not sure if all routers supports this.

> make that domain name have https

That domain name (if any) is not yours, so cannot add/update/change anything that is not under your control.

You could use a "self signed certificate", but browsers don't trust these by default, you/who ever, will get the famous security warnings shown in the browser. I personally would not make a "home" service reachable from outside. Some of the reasons: The infrastructure/resources needed. A "server" that is running 24/7 costs money. Money better invested in a hosting plan. The other thing is security risks: Your private data could be stolen/deleted/..,DDOS attacks, and so on.

To avoid (some) headaches, get a domain name and a hosting plan.

2 points

Am not an expert, but you have a dynamic IP, which you get assigned by your ISP. In other words: Your router gets a public IP from Your ISP, which then changes in intervals. In order for you or someone else ("the internet outside there") to reach your service, you need to know the IP address and port of your service.

Lets say, your IP is 1.2.3.4 and port is 8080, typing http://1.2.3.4:8080 in your browser, the request is sent to that IP:PORT. Then apache or whatever service is listening on that port will send you (the browser in this case) back a response.

When your router get a different IP assigned, your apache server etc cant be reached anymore. You can to some extent mitigate it with DynDNS (google that).

So, you need a fixed IP address for your service, which costs you a recurring amount of money depending on the provider (google web hosting).

To be able to get an SSL/TLS certificate (https) among other things, you will need a domain name (which also costs a few dollars/whatever a year). With a domain name, you service is then available as https://yourDomanName.TLD instead of a cryptic http://1.2.3.4 or even worse with an IPv6 like 388ef:c900c:3766ac:a7333:f6652

2 points

Hi, this might be late, but for the case you still looking for a solution. My goto way to update my "old" Thinkpads, is using a perl script to create a bootable image, then dd the image to an USB stick and boot from it.

The procedure is as follows:

Get the script and make it executable:

chmod u+x geleltorito.pl

Put the script in $PATH to be able to run it just by typing its filename, otherwise run it with full path.

Go to lenovo website and get the firmware iso file (Bootable cd) as you can see here

Cd to where the iso is saved:

cd path/to/xyz.iso
geteltorito.pl xyz.iso > biosupdate.img

Insert the USB key: Note: All data will be overwritten. A small one will be enough, since the image is small. Double check the USB key path before dd'ing it:

lsblk -po NAME,RM,SIZE,TYPE,MOUNTPOINT

Check the RM, it should be 1 for the USB Key, which means it is removable, its path/size...

D(isk)D(estroy) the image to the USB key: You need to specify the path of the USB key itself, not one of its partitions, if it has any. Like /dev/sdb, but not /dev/sdb1

sudo dd status=progress if=biosupdate.img of=/dev/usbKey
sudo sync

Boot from the USB Key.

1 points

Don't edit files, that will be overwritten after an update. Instead, create a default theme under ~/.local/share/icons and add the changes there.

# ~/.local/share/icons/default/index.theme
[Icon Theme]
Name=default
Inherits=Breeze Light
# Or:
#Inherits=Breeze

By the way: The `Inherits` property takes the `Name` property defined in the `index.theme` and not the folder name.

1 points

The module is actually /usr/lib/grub/x86_64-efi/gcry_rijndael.mod So I dont know why grub cant find it, weird...What do you see when you reboot, can you post a screenshot or type in what you see, is it the grub rescue shell or systemd asking for the luks passphrase...?

What is the command you used for encryption (cryptsetup...)?

What is lsblk -f output??

/etc/fstab and /etc/mkinitcpio.conf content?

You see, too many questions: but to be able to help, one need to know how you configured your system. So please, when asking for help, provide information, exact errors, logs etc.

1 points

/dev/sda3 '@boot' subvolume is mounted at /boot right? If so, change prefix and -p argument to '(crypto0)/@boot', reinstall grub and run grub-mkconfig and the script. I wonder why you save the grubx64.efi under /etc, instead of /boot/efi or /efi

EDIT: Any reason not including the gcry_rijndael module?

EDIT2: It might be '(crypto0)/@boot/grub', can't tell exactly without knowing where the subvolumes are mounted. The output of lsblk -f would be helpful. I would recommend leaving /boot as part of / and separate /boot/grub out into its own subvolume, especially if you plan to use snapper for snapshotting, because booting from a (read only) snapshot and try to edit stuff or run grub-mkconfig etc. leads to errors... That is why I used '(crypto0)/@grub' in the script you linked, '@grub' is a subvolume mounted to /boot/grub

3 points

There are a couple of things you need to take care of:
1- Grub 2.06 "supports" LUKS2, but currently only pbkdf2, which means when running cryptsetup luksFormat you have to specify pbkdf2 as well:
cryptsetup -y --cipher aes-xts-plain64 --key-size 512 --hash sha512 --pbkdf pbkdf2 --type luks2 luksFormat /dev/device
2- When installing grub, you have to specify the modules required to detect/decrypt your root/device(s): Change --efi-directory and btrfs with your filesystem.
grub-install --target=x86_64-efi --efi-directory=/boot/efi --modules="luks2 part_gpt cryptodisk gcry_rijndael pbkdf2 gcry_sha512 btrfs" --bootloader-id=archlinux --recheck
3- Generate the bootloader image/config:
a- See https://aur.archlinux.org/packages/grub-git/?O=10&PP=10#comment-769218
You can use the grub-mkluks2-image script, but DO CHANGE the prefix and root variables according to your setup!
b- Run grub-mkconfig -o /boot/grub/grub.cfg
Reboot :-)

3 points

The order matters!: The repo listed first, will be used first, so no need for pacman -S repo/package_name; pacman would error out.

If you enable any unstable repo, you better enable testing and community-testing as well, because packages move from unstable to testing (from top to bottom so to say) . Otherwise you might get a dependency problem, if pkg x from unstable depends on pkg y from testing/cummunity-testing etc.

2 points

Welcome !. On my system, firefox isn't listed either while playing videos, but the system never sleeps while watching videos/movies... I think it is just a matter of installing the needed packages and changing the settings in the power management KCM.

EDIT: powerdevil and upower are list, among others.

2 points

Install, if not already done, the package powerdevil and open "System Settings" -> "Power Management". Try the the different option...

See if you installed the package upower , it should be already pulled by solid, which is pulled by kio... (see pacman -Qi pkgname).

Systemd inhibitors might shade some light on this: systemd-inhibit --list (use --help instead for more options.)

3 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.