显示标签为“raspberry pi”的博文。显示所有博文
显示标签为“raspberry pi”的博文。显示所有博文

2024年5月10日星期五

[youtube-dl]Blocked?

 Just want to confirm if there is any newer version for YouTube-dl, unfortunately, it was blocked by de court...


It was shown that [Access denied] to yt-dl.org due to a ruling of the Hamburg Regional Court.

Access to this website is blocked.


So, we still have another way.

https://github.com/ytdl-org/youtube-dl

But it seems that it stopped development since 2021.

ーーーーーーーーーーーーーーーSuper beautiful seperate lineーーーーーーーーーーーー

After asked Google, I found the below repository.

yt_dlp

We can make some change on script to work on yt_dlp rather than Youtube_DL.

2023年2月14日星期二

[RaspBerry Pi]How to expand the root partition of your Raspberry PI’s SD card

 How to expand the root partition of your Raspberry PI’s SD card?

After installing a new OS on your PI’s SD card you might notice there is a lot of diskspace ‘missing’ on the card…

By expanding the root partition of the card you can regain that ‘missing’ space!

This is the easiest way to do it:

  • open the PI’s configuration screen (in the terminal window) by typing:
    sudo raspi-config
  • run the bottom option just to make sure you have the latest version of the configuration software:
    update
  • run the second option:
    expand_rootfs
  • click:
    Finish
  • select ‘YES‘ when it asks for a reboot

2022年9月22日星期四

[Raspberry Pi]Install mail server on local raspberry pi with own domain

Yes, We will run the command [sudo apt-get install postfix].

To ensure you will get the newest version, you have to run below first.

sudo apt-get update

sudo apt-get upgrade

Then you can go with [sudo apt-get install postfix]

You will see some log like below.

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following packages were automatically installed and are no longer required:

  libgnutls-dane0 libunbound8

Use 'sudo apt autoremove' to remove them.

Suggested packages:

  procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre postfix-lmdb postfix-sqlite sasl2-bin | dovecot-common libsasl2-modules

  | dovecot-common postfix-cdb ufw postfix-doc

The following packages will be REMOVED:

  exim4-base exim4-config exim4-daemon-light

The following NEW packages will be installed:

  postfix

0 upgraded, 1 newly installed, 3 to remove and 0 not upgraded.

Need to get 1,412 kB of archives.

After this operation, 62.5 kB disk space will be freed.

Do you want to continue? [Y/n] y

Get:1 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian buster/main armhf postfix armhf 3.4.23-0+deb10u1 [1,412 kB]

Fetched 1,412 kB in 2s (774 kB/s)    

Preconfiguring packages ...

(Reading database ... 221744 files and directories currently installed.)

Removing exim4-daemon-light (4.92-8+deb10u7) ...

Removing exim4-base (4.92-8+deb10u7) ...

Removing exim4-config (4.92-8+deb10u7) ...

Selecting previously unselected package postfix.

(Reading database ... 221611 files and directories currently installed.)

Preparing to unpack .../postfix_3.4.23-0+deb10u1_armhf.deb ...

Unpacking postfix (3.4.23-0+deb10u1) ...

Setting up postfix (3.4.23-0+deb10u1) ...

Adding group `postfix' (GID 126) ...

Done.

Adding system user `postfix' (UID 118) ...

Adding new user `postfix' (UID 118) with group `postfix' ...

Not creating home directory `/var/spool/postfix'.

Creating /etc/postfix/dynamicmaps.cf

Adding group `postdrop' (GID 127) ...

Done.

setting myhostname: raspberrypi

setting alias maps

setting alias database

changing /etc/mailname to achillia-mfg.com

setting myorigin

setting destinations: achillia-mfg.com, $myhostname, raspberrypi, localhost.localdomain, localhost

setting relayhost: smtp.localhost

setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128

setting mailbox_size_limit: 0

setting recipient_delimiter: +

setting inet_interfaces: all

setting inet_protocols: all

WARNING: /etc/aliases exists, but does not have a root alias.


Postfix (main.cf) is now set up with a default configuration.  If you need to 

make changes, edit /etc/postfix/main.cf (and others) as needed.  To view 

Postfix configuration values, see postconf(1).


After modifying main.cf, be sure to run 'service postfix reload'.


Running newaliases

Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service → /lib/systemd/system/postfix.service.

Processing triggers for systemd (241-7~deb10u8+rpi1) ...

Processing triggers for man-db (2.8.5-2) ...

Processing triggers for rsyslog (8.1901.0-1+deb10u2) ...