desktop

在CentOS 7中双击启动shell

坚强是说给别人听的谎言 提交于 2020-01-28 02:30:39
http://www.cocoachina.com/articles/119360 要通过双击其图标来运行脚本,您需要为其创建一个.desktop文件: [Desktop Entry] Name=My script Comment=Test hello world script Exec= / home / user / yourscript . sh Icon= / home / user / youricon . png Terminal=true Type =Application 将上述内容保存为桌面上的扩展名为.desktop的文件.将/home/user/yourscript.sh和/home/user/youricon.gif更改为脚本的路径以及您希望它分别具有的图标,然后您可以通过双击它来启动. 来源: CSDN 作者: YJ-Eden 链接: https://blog.csdn.net/sinat_25079053/article/details/103646373

Linux远程管理常用命令

混江龙づ霸主 提交于 2020-01-25 16:16:15
关机/重启 shutdown 查看或配置网卡信息 ifconfig ping 远程登录和复制文件 ssh scp 01. 关机/重启 序号 命令 对应英文 作用 01 shutdown 选项 时间 shutdown 关机/重新启动 1.1 shutdown shutdown 命令可以 安全 关闭 或者 重新启动系统 选项 含义 -r 重新启动 提示: 不指定选项和参数 ,默认表示 1 分钟 之后 关闭电脑 远程维护服务器时,最好不要关闭系统,而应该重新启动系统 常用命令示例 # 重新启动操作系统,其中 now 表示现在 $ shutdown -r now # 立刻关机,其中 now 表示现在 $ shutdown now # 系统在今天的 20:25 会关机 $ shutdown 20:25 # 系统再过十分钟后自动关机 $ shutdown +10 # 取消之前指定的关机计划 $ shutdown -c 02. 查看或配置网卡信息 序号 命令 对应英文 作用 01 ifconfig configure a network interface 查看/配置计算机当前的网卡配置信息 02 ping ip地址 ping 检测到目标 ip地址 的连接是否正常 2.1 网卡 和 IP 地址 网卡 网卡是一个专门负责网络通讯的硬件设备 IP 地址 是设置在网卡上的地址信息 我们可以把 电脑

Windows 上 GitHub Desktop 的操作

社会主义新天地 提交于 2020-01-25 08:03:38
目 录 第 1 章 上传开源代码至 GitHub 1 1.1 git Windows 客户端 1 1.2 注册 GitHub 账户 2 1.3 登录 2 1.4 创建本地代码仓库 2 1.5 创建远程代码仓库 3 1.6 行结束符 5 1.7 提交改动至本地代码仓库 7 1.8 同步代码仓库 7 1.9 添加文件至本地代码仓库 8 1.10 删除本地代码仓库 9 1.11 增加本地代码仓库 9 1.12 删除远程代码仓库 10 第 2 章 上传开源代码至 oschina 11 2.1 创建远程代码仓库 11 2.2 SSH KEY 13 2.3 克隆远程代码仓库至本地 14 2.4 其它操作 16 2.5 README.md 16 第 1 章 上传开源代码至 GitHub 1.1 git Windows 客户端 具有 git 功能的 Windows 客户端软件有很多,如: git for windows (以前的 msysGit )、 TortoiseGit 、 GitHub Desktop (以前的 GitHub for Windows )…… 笔者对这些客户端的理解: 1 、 git for windows git 原产于 Linux ,要在 Windows 上运行,需要移植。 git for windows 就是一个这样的移植项目。它移植的不仅仅是一个程序,而是在

三种方式简单入门Git操作(GitHub项目图解)

丶灬走出姿态 提交于 2020-01-25 02:37:40
前言 三种方式实现Git操作: Git命令 GitHub Desktop做 IDEA中Git插件 软件: 链接:https://pan.baidu.com/s/1d_ji6Hbh17hk6WWBkMNgMQ 提取码:nt4k 1. Git命令 先在GitHub上创建一个测试项目: 下载安装GitBash 详细安装教程请查阅其他文章。 下载好后需要配置密钥,简单来说就是在你本地生成密钥,配置到GitHub上。具体操作请查阅其他文章。 克隆Test项目到本地 进入项目中: 提交修改 修改README.md: GitBash查看状态: 当前是工作区,将修改提交到暂存区: 将暂存区修改提交到仓库区 将本地仓库区修改提交到远程仓库 需要填写GitHub账号和密码: push成功: GitHub上查看提交: 2. GitHub Desktop 下载安装GitHub Desktop: 初次安装需要登陆你的GitHub账号: 克隆GitHub项目 博主在GitBash中已经克隆了下来,直接导入本地项目: 提交修改 修改README.md 提交修改 推送到远程仓库 GitHub上查看提交: 3. IDEA插件 安装IDEA 安装教程请查阅其他文章。 安装Git插件 在IDEA中查看已经安装的插件: 如果没有Git插件需要安装(这个应该是IDEA默认自带的) 设置GitBash 启动VSC版本管理

Linux

北城余情 提交于 2020-01-24 19:33:16
序号 命令 对应英文 作用 01 ls list 查看当前文件夹下的内容 02 pwd print work directory 查看当前所在文件夹 03 cd[目录名] Change directory 切换文件夹 04 touch[文件名] touch 如果文件不存在新建文件 05 mkdir[目录名] make directory 创建目录 06 rm[文件名] remove 删除指定的文件文件夹要加-r) 07 clear Ctrl C另起一行 清屏 08 cd + 目录名 或cd …(.为本层目录) 返回上一层菜单(~用户主目录) 09 Man + 命令 q退出,/查找 查阅命令帮助信息 以上为Lin命令的基本使用 小技巧: 放大缩小终端窗口字体大小:command + - Tab自动补全,若不能补全可候选 上下箭头显示使用过的命令 List命令 -a 能够显示***隐藏目录*** -l列表形式显示文件详细信息 -h配合-l人性化显示***文件大小***(-lh连写,-lha连写) 通配符 * 任意个字符;?任意一个字符 cd命令 cd或cd~当前用户主目录 cd … 切换到上级目录 cd - 最近两次工作目录之间来回切换 相对路径和绝对路径 绝对路径以/开始,表示从根目录开始具体目录位置(localhost:~ guo$ cd /users/cc/desktop

Ubuntu & 配置火狐浏览器

人走茶凉 提交于 2020-01-23 22:28:38
Ubuntu确实不太友好,自带的火狐浏览器是旧版的,而且不可以登录中国区的火狐帐号,因此需要将其卸载。 但是下载的火狐是解压版的,不会向系统中添加快捷方式,使用起来并不方便。 假设下载后的火狐浏览器安装包存放于~/library/program中 kagome@kagome-pc:~$ cd ~/library/program/ kagome@kagome-pc:~$ tar -xf Firefox-latest-x86_64.tar.bz2 kagome@kagome-pc:~/library/program$ sudo vi /usr/share/applications/firefox.desktop [Desktop Entry] Name=firefox Name[zh_CN]=火狐浏览器 Comment=火狐浏览器 Exec=/home/kagome/library/program/firefox/firefox Icon=/home/kagome/library/program/firefox/browser/chrome/icons/default/default128.png Terminal=false Type=Application Categories=Application; Encoding=UTF-8 StartupNotify=true

c# screen capture virtual desktop

核能气质少年 提交于 2020-01-23 12:34:15
问题 I've found a way to create virtual desktops with c#. Now I was wondering if we can take a screenshot of a particular desktop and if so how ? Thanks in advance Blizz 回答1: HAve you tried the CopyFromScreen method in the GFX Object Graphics g = new Graphics(); g.CopyFromScreen( ....params.... ) 回答2: I haven't tried it but the first thing I'd try is: create a new thread switch the thread to the new desktop by calling SetThreadDesktop take a screen shot switch thread back might just work. 来源:

c# screen capture virtual desktop

混江龙づ霸主 提交于 2020-01-23 12:33:47
问题 I've found a way to create virtual desktops with c#. Now I was wondering if we can take a screenshot of a particular desktop and if so how ? Thanks in advance Blizz 回答1: HAve you tried the CopyFromScreen method in the GFX Object Graphics g = new Graphics(); g.CopyFromScreen( ....params.... ) 回答2: I haven't tried it but the first thing I'd try is: create a new thread switch the thread to the new desktop by calling SetThreadDesktop take a screen shot switch thread back might just work. 来源:

c# screen capture virtual desktop

谁说我不能喝 提交于 2020-01-23 12:33:45
问题 I've found a way to create virtual desktops with c#. Now I was wondering if we can take a screenshot of a particular desktop and if so how ? Thanks in advance Blizz 回答1: HAve you tried the CopyFromScreen method in the GFX Object Graphics g = new Graphics(); g.CopyFromScreen( ....params.... ) 回答2: I haven't tried it but the first thing I'd try is: create a new thread switch the thread to the new desktop by calling SetThreadDesktop take a screen shot switch thread back might just work. 来源:

Windows Security login form?

我们两清 提交于 2020-01-23 02:18:32
问题 Do you know the awesome looking form of Windows Live that asks you for your cerdentials? Gmail Notifier has it too, somehow. Is there any way I can invoke something like this in my application? BEHOLD! I wish to use this dialog for local authentication on a desktop app. 回答1: You could look into calling CredUIPromptForWindowsCredentials : From MSDN: The CredUIPromptForWindowsCredentials function creates and displays a configurable dialog box that allows users to supply credential information