如何更改Ubuntu的热点密码

时间:2019-07-25 17:18:17

标签: ubuntu hotspot

Ubuntu热点的默认密码难以记忆。终端可以使用哪些代码进行更改?如果也可以更改热点名称,请附加代码。

2 个答案:

答案 0 :(得分:0)

您可以使用nm-connection-editor。它应该可以在所有基于Debian的发行版(例如Ubuntu)上运行。

答案 1 :(得分:0)

选项1:编辑热点配置文件。

package com.dafe.spring.logger.dao;

import org.springframework.data.jpa.repository.JpaRepository;

import com.dafe.spring.logger.entity.Employee;

public interface EmployeeRepository extends JpaRepository<Employee, Integer> {

}

选项2:NM连接编辑器。

JD = numpy.array([])
mag = numpy.array([])
nlines = getlen("increasing mag 2.txt")
print(nlines)
a = open("increasing mag 2.txt",'r')
# read header
word = a.readline()
for i in range(1,nlines):
    word = a.readline()
    word = word.split(',')
    dd = numpy.array(word[0]).astype(float)
    m = numpy.array(word[1]).astype(float)
    #err = np.array(word[2]).astype(float)
    filt = word[4]
    if filt == 'V':
        print(dd,m)
        JD = numpy.append(JD,dd)
        mag = numpy.append(mag,m)



x = JD
y = mag

coeffs = numpy.polyfit(x,y,2)

print(coeffs)

poly = numpy.poly1d(coeffs)

new_x = numpy.linspace(x[0], 2458940)
new_y = poly(new_x)

plt.plot(x,y,'x', new_x,new_y)

然后重新启动服务 sudo systemctl重新启动NetworkManager

enter link description here