apt-get

ubuntu windows mutual remote control

血红的双手。 提交于 2019-12-06 05:12:20
Win10 remote control Ubuntu18 Part1.ubuntu settings 1.安装所需组件 sudo apt-get update //若没有desktop sharing,则需要安装vino sudo apt-get install vino //若有desktopsharing,则执行接下来的命令 sudo apt-get install tightvncserver xrdp sudo apt-get install dconf-tools 2.设置 dconf write /org/gnome/desktop/remote-access/require-encryption false 打开dconf Editor 将require-encryption设置为off 设置screen sharing允许控制并设置密码 Part2.win10 settings win+R open command run, run commmand:mstsc or open mstsc directly input the ip of ubuntu. press connect and enter information just like followings: Ubuntu remote control Win10 Part1.win10 settings

做为GPU服务器管理员,当其他用户需要执行某个要root权限的命令时,除了告诉他们root密码,还有没有别的办法?

隐身守侯 提交于 2019-12-06 04:40:26
通常一台GPU服务器(这里指linux系统)不可能只有一个帐号能用的,比如当其他用户想要在GPU服务器上安装一些软件的时候,会需要用到apt-get命令,但是apt-get命令需要root用户的操作权限,如果GPU服务器由你管理,那么你如何在不直接给root密码的情况下,让其他用户可以执行该命令呢? 可以使用sudo命令,sudo命令就是为了让普通用户可以在不知道root密码的情况下使用root的操作权限。 sudo apt-get xxx 但是,你会发现这样执行会提示用户没有sudo的权限,所以我们需要先简单配置一下。 首先,使用root用户登录GPU服务器,执行如下命令来编辑/etc/sudoers配置文件: visudo 然后会打开sudoers文件,如下: 如上图,就是在root所在行的下方,再加入一行,比如这里你要授予sudo使用权限的用户的名字是txzf,ALL表示允许任何连接到本服务器的host主机使用sudo,(root)表示只允许使用sudo切换到root用户,而不能切换到其他用户, 最后的apt-get命令文件的路径表示只允许使用sudo命令授予当前用户在apt-get命令下的root权限,也就是说sudo apt-get 你是满足要有root权限的要求的,但是sudo 其他命令就还是不满足的。 需要注意的是,有的人会简单粗暴的直接写成如下形式: txzf

ubuntu_软件推荐

落花浮王杯 提交于 2019-12-06 04:34:47
1、便签:Indicator Stickynotes sudo add-apt-repository ppa:umang/indicator-stickynotes sudo apt-get update sudo apt-get install indicator-stickynotes 2、安装 FoxitReader step1:官网下载安装包 网址: https://www.foxitsoftware.cn/products/reader/ step2:tar -zxvf xxxx.tar.gz step3: chmod +x xxx.run step4: sudo ./xxx.run 3、划词翻译软件Goldendict step1: sudo apt-get install goldendict step2: 配置词源 打开Goldendict -> 编辑 -> 词典 -> 词典来源 -> 网站, 添加有道词典源: http://dict.youdao.com/search?q=%GDWORD%&ue=utf8 添加海词词典源:http://dict.cn/%GDWORD% 记得在左边勾选启用。 step3: 开启划词翻译 编辑 -> 首选项 -> 屏幕取词,勾选启用屏幕取词功能。 step4: 添加本地词典 在百度云链接: https://pan.baidu.com

MySQL数据库及其工具

佐手、 提交于 2019-12-06 04:34:32
一、安装MySQL数据库   1.查询可用包 apt-cache search mysql-server   2.安装mysql-server sudo apt-get update sudo apt-get install mysql-server   3.设定初始化配置 sudo mysql_secure_installation   4.查看MySQL状态 systemctl status mysql.service 二、安装MySQL工具   1. 下载mysql workbench     workbench连接可能出现"access denied for user 'root@localhost'问题的 解决方法   2. 安装MySQL C API apt-cache search libmysqlclinet sudo apt-get update sudo apt-get install libmysqlclient-dev   3.测试C API #include<mysql/mysql.h> #include<stdio.h> #include<stdlib.h> int main() { MYSQL *conn; MYSQL_RES *res; MYSQL_ROW row; char *server = "localhost"; char *user =

how to remove default-jre java installation from Ubuntu?

筅森魡賤 提交于 2019-12-06 02:47:32
问题 I had no java (i.e. java -version said java no found or similar) I installed it like this: sudo apt-get install default-jre This results in installing java 1.6 - I need java 1.7 So the next probelem is how to uninstall it. I tried this: sudo apt-get --purge -remove default-jre Which seemed to work, but when I do: java -version I still java respond with 1.6 - i.e. id didnt uninstall java. Ok, so I guess -remove does not remove the thing it installed. Is there a way to o this? 回答1: sudo apt-get

caffe ssd + cuda9.0

纵然是瞬间 提交于 2019-12-06 02:28:13
安装依赖 sudo apt -get install libprotobuf -dev libleveldb -dev libsnappy -dev libhdf5 - serial -dev protobuf -compile sudo apt - get install -- no -install -recommends libboost -all -dev sudo apt - get install libopenblas -dev liblapack -dev libatlas -base -dev sudo apt - get install libgflags -dev libgoogle -glog -dev liblmdb -dev sudo apt - get install git cmake build -essential 修改配置文件 来源: https://www.cnblogs.com/gris/p/11957016.html

ubuntu 安装MYSQLDB , pymssql记录

喜你入骨 提交于 2019-12-06 00:28:44
1. 安装MYSQLDB 9 wget http://jaist.dl.sourceforge.net/project/mysql-python/mysql-python-test/1.2.4b4/MySQL-python-1.2.4b4.tar.gz tar zxvf MySQL-python-1.2.4b4.tar.gz cd MySQL-python-1.2.4b4/ sudo apt-get install libmysqlclient-dev sudo apt-get install python-dev python setup.py build python setup.py install 2. 安装pymssql 28 apt-get install easy_install 29 ls 30 tar zxvf -f pymssql.tar.gz 31 tar -zxvf pymssql-2.0.0b1-dev-20130403.tar.gz 32 cd pymssql-2.0.0b1-dev-20130403/ 33 ls 34 apt-get install Cpython 35 apt-get install cpython 36 apt-get install freetds 37 cd .. 38 ls 39 tar zxvf freetds

ubuntu换源

寵の児 提交于 2019-12-06 00:06:55
18.4.6 源 # 中科大源 deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/

debian 7 上安装lamp

心不动则不痛 提交于 2019-12-05 23:58:28
平台:debian 7 x86_64 一、准备 apt-get update apt-get upgrade -y --show-upgraded 二、安装mysql apt-get install -y mysql-server mysql-client mysql_secure_installation service mysql start 配置文件位置/etc/mysql/my.cnf mysql -u root mysql> USE mysql; mysql> UPDATE user SET Password=PASSWORD('new-password') WHERE user='root'; mysql> FLUSH PRIVILEGES; 三、安装apache和php apt-get install -y apache2 php5 php5-gd php5-common php5-intl php5-xmlrpc php-pear php5-mysql php5-curl libcurl3 libapache2-mod-php5 php5-mcrypt php5-mhash php5-xcache vim vim-runtime sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php5/apache2