[ debian共享文件夹设置 ]


一.在debian12挂载windows的共享文件夹

参考阿里云文档

sudo apt-get install samba

sudo apt-get install smbclient

sudo apt-get install cifs-utils

1. 手动挂载

  1. 先获取主机那边所有能挂载的文件夹
smbclient -L 192.168.1.108 
  1. 再从文件夹里选择 cifs //ip/xxx
sudo mount -t cifs //192.168.8.105/HHS /home/samba

2.永久挂载

vim /etc/fstab

最后添加
//192.16

< Read more >

[ Python使用通义千问 ]


在python中使用通义千问-阿里云

官方api

api-key管理页面

注册

pip install dashscope

配置环境变量

export DASHSCOPE_API_KEY=YOUR_DASHSCOPE_API_KEY

运行

import random
from http import HTTPStatus
import dashscope


dashscope.api_key = "sk-4607ca0bb63d4646b8aeaca909091a9f"

def call_with_messages():
    messages = [{&qu

< Read more >

[ debian安装v2raya-web科学上网 ]


linux科学上网web版本 会在本地启动一个端口2017来访问页面配置vpn

安装方法

一.请自己查看v2raya安装文档:有很多种

二.这里只介绍这一种安装方法:(下载deb安装包到debian系统安装)

1. 下载v2ray-core.deb文件

安装-wget这个zip下载符合自己电脑的版本
wget https://github.com/v2fly/v2ray-core/releases/latest/download/v2ray-linux-64.zip
unzip v2ray-linux-64.zip -d ./v2ray
mkdir -p /usr/local/share/v2

< Read more >

[ pycharm2023.3.4破解 ]


linux版本pycharm[2023.3.4]

一.pycharm2023.3.4官方linux版本rar(下载后自行修改文件名)

  • 自行安装完成后再破解

二.破解工具下载(下载后自行修改文件名)

1.解压rar文件后

2.进入需要使用的方法(当前使用的是3号方法到2025年)

3.复制jetbra文件夹到一个全英文路径的目录下, 随后进入,执行文件夹scripts内的

sudo bash install.sh

  1. 把vmoptions文件夹里的pycharm.vmoptions最后几行, 添加到pycharm安装目录内bin/pycharm64.vmoptions 这三行
-ja

< Read more >

[ debian[休眠修改] ]


修改debian休眠,导致ssh断连问题

异常提示消息

Broadcast message from Debian-gdm@debian on tty1 (Tue 2024-02-27 10:47:42 CST):  The system will suspend now!

解决

vi /etc/systemd/sleep.conf

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it under the
#  terms of the

< Read more >

[ debian12让普通用户使用docker ]


debian系统普通用户使用docker

在Debian系统中,为了让普通用户使用Docker,你需要执行以下步骤:

安装Docker:

sudo apt update
sudo apt install docker.io

将用户添加到docker组:

sudo usermod -aG docker your-username

将your-username替换为实际的用户名。

重新登录或重启以确保用户组更改生效。

验证Docker安装:

docker run hello-world

这个命令会下载一个小型的测试镜像,并运行一个容器来确认Docker是否正确安装。

现在,该用户应该能

< Read more >