debian远程桌面功能 8 测试功能是否正常

Debian8.1服务器安装配置之安装php5并测试_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
Debian8.1服务器安装配置之安装php5并测试
|0|0|文档简介
网络工程师|
总评分1.4|
浏览量10290
&&本人学习debian8.1架设服务器日志,亲测
试读已结束,如果需要继续阅读或下载,敬请购买
定制HR最喜欢的简历
你可能喜欢
您可以上传图片描述问题
联系电话:
请填写真实有效的信息,以便工作人员联系您,我们为您严格保密。解决安装debian8(jessie无法用sudo的问题-Debian
当前位置:&>&&>& &
解决安装debian8(jessie无法用sudo的问题
解决安装debian8(jessie无法用sudo的问题
| 来源:网络 | 关键字:
在ubuntu系统用sudo习惯了,安装debian8后,却不能用
解决方法: 1`切换到root 2` 然后apt-get install sudo 3`chmod +w /etc/sudoers 4`编辑 gedit /etc/sudoers 在root 那一行的下面添加 user名 后面复制root后面的粘贴到这儿 5`su user,切换到user,试一下是不是sudo 就可以用了。 6`最后别忘了再吧sudoer改回只读模式 chmod -w /etc/sudoer
无相关信息
网友评论仅供其表达个人看法,并不表明网易立场。每天执行一次 sudo ntpdate
逐渐觉得麻烦了,有没有自动执行的方法?
在Linux中用户可以执行例行性的工作,使用crontab这个命令。&
1、在终端中输入:
$ crontab -e
2、在打开的文件中输入:
16 10 * * * echo "hello"&&/tmp/test.txt
表示10点16分的时候发送&hello&到test.txt这个文件中。
这个方法是普通用户在操作,如果要用到root用户使用的命令怎么办呢?比如ntpdate这个命令普通用户是没法使用的。
如果这样写,希望每一分钟更新一次系统时间:
*/1 * * * * /usr/sbin/ntpdate &&/tmp/ntpdate.log
结果发现并没有执行这个任务。
以上 crontable-e 是针对用户的cron来设计的,如果是系统任务,则需编辑 /etc/crontab 这个文件即可。
在终端中输入:
$ sudo vi /etc/crontab
打开后看到有这几行:
# m h dom mon dow user
cd / && run-parts --report /etc/cron.hourly
test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
分别表示每小时、每天、每周、每月要执行的脚本。
我们来建立一个每小时要执行的任务:
# m h dom mon dow user
cd / && run-parts --report /etc/cron.hourly
test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
* */1 * * * & & root & &/usr/sbin/ntpdate &/tmp/ntpdate.log 这是每分钟执行一次
0 * * * * & & root & &/usr/sbin/ntpdate &/tmp/ntpdate.log 这是每小时执行一次
然后重启服务:
/etc/init.d/cron restart
&或者 sudo crontab -e 建一个:&
/usr/sbin/ntpdate
& /tmp/ntpdate.log
以上方法似乎不奏效,后来发现Debian 从 jessie 开始使用systemd来管理任务。
$ timedatectl status
Local time: 五 2016-10-21 01:34:20 CST
Universal time: 四 2016-10-20 17:34:20 UTC
RTC time: 四 2016-10-20 17:34:20
Time zone: Asia/Shanghai (CST, +0800)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: n/a
$ timedatectl set-ntp true
再看状态:
$ timedatectl status
Local time: 五 2016-10-21 01:36:57 CST
Universal time: 四 2016-10-20 17:36:57 UTC
RTC time: 四 2016-10-20 17:36:58
Time zone: Asia/Shanghai (CST, +0800)
NTP enabled: yes
NTP synchronized: no
RTC in local TZ: no
DST active: n/a
打开 /etc/systemd/timesyncd.conf:
# This file is part of systemd.
# systemd is free you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software F either version 2.1 of the License, or
# (at your option) any later version.
# See timesyncd.conf(5) for details
#Servers=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org
加入时间更新服务器:
This file is part of systemd.
systemd is free you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software F either version 2.1 of the License, or
(at your option) any later version.
# See timesyncd.conf(5) for details
#Servers=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org
这样每次开机就会从自动更新时间了。
参见:How to manage system services on Debian Jessie
&https://blog.sleeplessbeastie.eu//how-to-manage-system-services-on-debian-jessie/
查看硬件时间
把硬件的时间写到操作系统(如果hwclock是昨天,则此命令会把系统当前的时间改到昨天):
# hwclock --hctosys
把系统当前的时间写到硬件时钟(写到BIOS ?):这才是我们需要的
# hwclock --systohc
阅读(...) 评论()debian&8.2&基本设置
用虚拟机安装了deibian8.2, 安装后不能进行源更新和设置,下面是一些简单的配置
切换到跟用户($ su)
#vi /etc/apt/sources.list
将文件里的源都注释掉(前面加#)
deb /debian/ jessie
deb-src /debian/ jessie main
deb http://security.debian.org/ jessie/updates
deb-src http://security.debian.org/ jessie/updates main
deb /debian/ jessie-updates
deb-src /debian/ jessie-updates
保存文件。 然后执行 apt-get update && apt-get
2、安装gcc
#&apt-get install gcc
3、 安装vm-tools
直接运行vmware-install.pl
4、 安装sudo
#&apt-get install sudo
# chmod 740 /etc/sudoers
# vi /etc/sudoers
在root ALL=(ALL)
ALL处,后一行,添加:username ALL=(ALL)ALL
#chmod 440 /etc/sudoers
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。debian8对指纹,触摸,摄像头的支持和使用
最近换了开发本, 带了指纹和手触+笔触, 以及摄像头的功能. 于是打算利用起来.
查看下usb设备.
Bus 001 Device 004: ID 04f2:b217 Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP) &
Bus 001 Device 003: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor &
又摄像头和指纹.
摄像头很简单.因为摄像头就那几款.所以安装一个公版的UVC(USB video class)驱动就好.而debian8的内核已经内置了
#dmesg | grep uvc &
[ & &3.779156] uvcvideo: Found UVC 1.00 device Integrated Camera (04f2:b217) &
[ & &3.781585] usbcore: registered new interface driver uvcvideo &
# dmesg | grep video &
[ & &3.640583] thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver &
[ & &3.768512] Linux video capture interface: v2.00 &
[ & &3.779156] uvcvideo: Found UVC 1.00 device Integrated Camera (04f2:b217) &
[ & &3.781585] usbcore: registered new interface driver uvcvideo &
一些视频软件,在多媒体下面有视频的相关软件.可以截取或者录制
#apt-get install guvcview cheese &
指纹可替换掉桌面登录的密码.&
#apt-get install fprintd fprint-demo &
如果源里没有
add-apt-repository ppa:fingerprint/fingerprint-guisudo &
添加一次然后重新update再去安装.
然后桌面打开附件里面的fprint-demo来录取指纹信息
接下来输入
#pam-auth-update &
来选择第一密码顺序
把Fingerprint authentication列到第一就可以了. 如果无效, 加一个参数 --force
#pam-auth-update --force来强制生效, 这样就可以刷指纹来登录系统了
至于触摸屏.2.6以上的内核早已经支持.只需要一些软件即可.
比较出名的是xournal手写板. 另外可以安装国内开发的识字程序,ibus-handwrite,地址在这里/p/ibus-handwrite/
如果要禁止掉触摸板只保留小红点.
root@debian:/# xinput list &
Virtual core pointer & & & & & & & & & & & & &id=2 & &[master pointer &(3)] &
↳ Virtual core XTEST pointer & & & & & & & &id=4 & &[slave &pointer &(2)] &
↳ Logitech Unifying Device. Wireless PID:4028 & & & id=10 & [slave &pointer &(2)] &
↳ Logitech Unifying Device. Wireless PID:101b & & & id=11 & [slave &pointer &(2)] &
↳ Wacom ISDv4 E6 Pen stylus & & & & & & & & id=12 & [slave &pointer &(2)] &
↳ Wacom ISDv4 E6 Finger touch & & & & & & & id=13 & [slave &pointer &(2)] &
↳ SynPS/2 Synaptics TouchPad & & & & & & & &id=15 & [slave &pointer &(2)] &
↳ Wacom ISDv4 E6 Pen eraser & & & & & & & & id=17 & [slave &pointer &(2)] &
↳ TPPS/2 IBM TrackPoint & & & & & & & & & & id=18 & [slave &pointer &(2)] &
Virtual core keyboard & & & & & & & & & & & & id=3 & &[master keyboard (2)] &
↳ Virtual core XTEST keyboard & & & & & & & id=5 & &[slave &keyboard (3)] &
↳ Power Button & & & & & & & & & & & & & & &id=6 & &[slave &keyboard (3)] &
↳ Video Bus & & & & & & & & & & & & & & & & id=7 & &[slave &keyboard (3)] &
↳ Sleep Button & & & & & & & & & & & & & & &id=8 & &[slave &keyboard (3)] &
↳ Integrated Camera & & & & & & & & & & & & id=9 & &[slave &keyboard (3)] &
↳ AT Translated Set 2 keyboard & & & & & & &id=14 & [slave &keyboard (3)] &
↳ ThinkPad Extra Buttons & & & & & & & & & &id=16 & [slave &keyboard (3)]
找到TouchPad 的id数, 比如我的id=15
#xinput set-prop 15 &Device Enabled& 0
其中0 是禁止, 1是启用
如果要查看电池的相关信息, 可以去
/sys/class/power_supply/BAT* 下看电池的详细信息, 或者直接ACPI看简单的电池信息
如果要节能控制电源等, 可以看看TLP, 德国人开发的一个优化.
地址在:http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html
本文永久更新地址:
------分隔线----------------------------

我要回帖

更多关于 debian 8.7.1 的文章

 

随机推荐