搜索找到 78 个匹配
- 2024-05-27, 03:39
- 版面: linux相关
- 主题: ubuntu 放行端口
- 回复总数: 0
- 阅读次数: 150156
ubuntu 放行端口
代码: 全选
sudo apt install firewalld
sudo firewall-cmd --zone=public --permanent --add-port=端口/协议
sudo firewall-cmd --reload
- 2024-04-24, 11:49
- 版面: linux相关
- 主题: Ubuntu 24.04 安装 elementaryi OS 8 体验
- 回复总数: 0
- 阅读次数: 49998
Ubuntu 24.04 安装 elementaryi OS 8 体验
sudo apt-add-repository ppa:elementary-os/daily
sudo apt-add-repository ppa:elementary-os/os-patches
sudo apt install elementary-desktop elementary-minimal elementary-standard
sudo apt install io.elementary.settings.*
sudo apt install wingpanel-indicator-*
sudo apt install org.gnome.evince ...
sudo apt-add-repository ppa:elementary-os/os-patches
sudo apt install elementary-desktop elementary-minimal elementary-standard
sudo apt install io.elementary.settings.*
sudo apt install wingpanel-indicator-*
sudo apt install org.gnome.evince ...
- 2024-04-01, 07:59
- 版面: linux相关
- 主题: elementary OS 7.1 显示托盘图标
- 回复总数: 0
- 阅读次数: 50035
- 2024-03-29, 13:48
- 版面: linux相关
- 主题: ubuntu 24.04 卡plymouth
- 回复总数: 0
- 阅读次数: 49593
ubuntu 24.04 卡plymouth
编辑 /etc/initramfs-tools/initramfs.conf 修改
MODULES=most
为
MODULES=dep
然后运行
sudo update-initramfs -u
MODULES=most
为
MODULES=dep
然后运行
sudo update-initramfs -u
- 2023-03-17, 03:37
- 版面: linux相关
- 主题: debian系发行版系统信息
- 回复总数: 0
- 阅读次数: 54755
debian系发行版系统信息
/etc/lsb-release
- 2023-03-16, 08:50
- 版面: linux相关
- 主题: debian 11 vps 添加额外ipv6
- 回复总数: 0
- 阅读次数: 47742
debian 11 vps 添加额外ipv6
/etc/network/interfaces.d/50-cloud-init
代码: 全选
iface eth0 inet6 static
address 2a10:cc40:230:2b::/64
gateway 2a10:cc40:230::1
up ip addr add 2a10:cc40:230:2b::2222/64 dev eth0 # 这个是额外添加的
- 2023-02-19, 11:14
- 版面: 无独有偶
- 主题: Typecho 通过反向代理实现 HTTPS
- 回复总数: 0
- 阅读次数: 98385
Typecho 通过反向代理实现 HTTPS
nano config.inc.php
将 define('__TYPECHO_SECURE__', true); 添加到其余 define 语句后面, init 初始化之前:
// admin directory (relative path)
define('__TYPECHO_ADMIN_DIR__', '/admin/');
// ssl
define('__TYPECHO_SECURE__', true);
// register autoload
require_once __TYPECHO_ROOT_DIR__ . '/var/Typecho/Common.php ...
将 define('__TYPECHO_SECURE__', true); 添加到其余 define 语句后面, init 初始化之前:
// admin directory (relative path)
define('__TYPECHO_ADMIN_DIR__', '/admin/');
// ssl
define('__TYPECHO_SECURE__', true);
// register autoload
require_once __TYPECHO_ROOT_DIR__ . '/var/Typecho/Common.php ...
- 2023-02-16, 06:38
- 版面: linux相关
- 主题: 甲骨文 ubuntu 添加第二个ip
- 回复总数: 0
- 阅读次数: 47532
甲骨文 ubuntu 添加第二个ip
附加的 VNIC》ipv4 添加公网IP,
nano /etc/netplan/50-cloud-init.yaml
network:
ethernets:
enp0s3:
dhcp4: true
match:
macaddress: 02:00:17:02:1d:a5
set-name: enp0s3
addresses:
- 10.0.0.158/24
- 10.0.0.168/24
保存后 netplan try
nano /etc/netplan/50-cloud-init.yaml
network:
ethernets:
enp0s3:
dhcp4: true
match:
macaddress: 02:00:17:02:1d:a5
set-name: enp0s3
addresses:
- 10.0.0.158/24
- 10.0.0.168/24
保存后 netplan try
- 2023-02-08, 01:40
- 版面: 无独有偶
- 主题: mstodon 修改 图片和视频大小
- 回复总数: 0
- 阅读次数: 48608
mstodon 修改 图片和视频大小
app/models/media_attachment.rb
IMAGE_LIMIT = 16.megabytes
VIDEO_LIMIT = 200.megabytes
IMAGE_STYLES = {
original: {
pixels: 3_686_400, # 1920x1920px
file_geometry_parser: FastGeometryParser,
}.freeze,
app/javascript/mastodon/utils/resize_image.js
const MAX_IMAGE_PIXELS = 3686400 ...
IMAGE_LIMIT = 16.megabytes
VIDEO_LIMIT = 200.megabytes
IMAGE_STYLES = {
original: {
pixels: 3_686_400, # 1920x1920px
file_geometry_parser: FastGeometryParser,
}.freeze,
app/javascript/mastodon/utils/resize_image.js
const MAX_IMAGE_PIXELS = 3686400 ...