Xfce

Xfce设置代理Proxy

自作多情 提交于 2019-12-06 03:34:58
在Debian系的Linux系统中,可以编辑/etc/environment文件,增加下面几行: http_proxy=http://myproxy.server.com:8080/ https_proxy=http://myproxy.server.com:8080/ ftp_proxy=http://myproxy.server.com:8080/ no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com" HTTP_PROXY=http://myproxy.server.com:8080/ HTTPS_PROXY=http://myproxy.server.com:8080/ FTP_PROXY=http://myproxy.server.com:8080/ NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com" 然后执行 $ source /etc/environment 这时候,大部分的软件都可以通过代理上网了。 还有一部分使用Gnome配置的软件仍然不能上网,可以这样解决,命令行: gsettings set org.gnome.system.proxy mode 'manual' gsettings set org.gnome.system

Python Tkinter in Docker .TclError: couldn't connect to display

▼魔方 西西 提交于 2019-12-04 09:15:43
I am new to python and am trying to build a small app. It needs to be a GUI app and I was wanting to containerise it with docker. I am getting the following error and can not find a solution No protocol specified No protocol specified Traceback (most recent call last): File "tkinker.py", line 7, in <module> tinker = Tk() File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1818, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: couldn't connect to display ":0.0" It starts locally but wont start in docker. My OS is

Tkinter TkMessageBox not closing after click OK

这一生的挚爱 提交于 2019-12-04 05:52:46
I have created a script in Python which notifies me at a given event. I am using the following function to produce the warning window: def window_warn(): ''' This function will throw up a window with some text ''' #These two lines get rid of tk root window root = Tkinter.Tk() root.withdraw() #tkMessageBox.deiconify() TkMessageBox.showwarning("New Case", "You have a new case\n Please restart pycheck") return The window draws fine, but when I click ok, the window stays in place with the button depressed. Im using xfce. Is there anyway to get the window to close after ok is clicked? A comment

Run script before Bash exits

爷,独闯天下 提交于 2019-12-03 05:50:55
问题 I'd like to run a script every time I close a Bash session. I use XFCE and Terminal 0.4.5 (Xfce Terminal Emulator), I would like to run a script every time I close a tab in Terminal including the last one (when I close Terminal). Something like .bashrc but running at the end of every session. .bash_logout doesn't work 回答1: You use trap (see man bash ): trap /u1/myuser/on_exit_script.sh EXIT The command can be added to your .profile/.login This works whether you exit the shell normally (e.g.

Gnome Xfce 环境下KDE界面显示不和谐问题

妖精的绣舞 提交于 2019-12-01 21:59:24
Qt软件主题问题 最近将gnome桌面环境改成了Xfce桌面,发现有些Qt编写的软件界面发生了很多变化,例如:VirtualBox 真的是惨不忍睹。 经过网上的多番收索,终于找到设置Qt主题的方案,gtk主题引擎有多种实现方案比如,适用于Xfce的 gtk3-engines-xfce , 适用Qt主题引擎 gtk3-engines-oxygen。 首先安装qtconfing(我用的是Debian系列操作系统,其他Linux请查找相应的安装方式) sudo apt-get install qt4-qtconfig 启动qt设置 qtconfig 并选择Gtk+主题 最终结果 来源: oschina 链接: https://my.oschina.net/u/1017208/blog/551722

解决Ubuntu 12.04下频繁死机-Chrome

天大地大妈咪最大 提交于 2019-11-30 21:56:52
1、现象 当ubuntu出12.04(64bit)时我决定重装为12.04这个版本。装完后在2个月时间里经常出现Ubuntu死机的情况。尤其是在用chrome浏览网页时,拖动右侧的滚动条。先是页面死,1-2s后鼠标和输入设备都死了,只能按power重启。抑郁~ 2、处理过程 当时我总以为ati显卡的驱动没有装好,玩命搞fglrx。后来被我完全搞坏了。准备尝试装一下Mint Xfce这个系统。这个Linux也是基于Xubuntu制作的。所以死机问题还是没有解决,也出现了。但我无意中发现只有在chrome加载flash时会死机。 只要在chrome的地址中写 chrome://plugins/ ,就可以看到flash插件 只要关闭Flash就不会出死机问题。 这时我才把重点放到Flash插件上,点击右边的Details,就可以看到chrome识别出的flash插件。一般写(2 files)。翻阅资料后有人说是因为这两个flash插件冲突导致。但尝试后发现只要用chrome中自带的就会死机。 以下为我的plugin配置,mint-flashplugin的插件版本太低,chrome总是提示我升级。所以我又安装了ubuntu源中的flashplugin-install。且只启用这一个flash plugin后问题解决。基本确定是chrome自带flash插件导致。 3、补充

bash及其特性

风格不统一 提交于 2019-11-30 18:04:36
shell是离用户最近的一个程序,也是用户直接链入计算机的外壳,shell分为GUI、CLI两种,CUI里面有gnome、KDE、Xfce,CLI里面有sh、bash、csh、ksh、zsh、tcsh。这次我们讲bash,讲之前得先弄清楚进程与程序的关系,在每个进程看来,当前主机上只存在内核和当前进程,进程是程序的副本,进程是程序执行实例。当执行bash进程,在bash里在执行一个bash进程,子bash所拥有的特性,父bash可能不可拥有,反过来也是。 bash特性 命令历史、命令补全 管道、重定向 命令别名 命令行编辑 命令行展开 文件名通配 变量 编程 命令行编辑( 光标跳转) Ctrl+a:跳到命令行首 Ctrl+e:跳到命令行尾 Crtl+d: Ctrl+u: 删除光标至命令行首的内容 Ctrl+k: 删除光标至命令行尾的内容 Ctrl+l: 清屏 ctrl+左右箭头:按单词转跳 命令历史 $ history -c:清空命令历史 -d OFFSET [n]: 删除指定位置的命令 -w:保存命令历史至历史文件中 命令默认显示1000行,可以配置环境变量,改变命令缓存的条数。可以使用echo `$HISTSIZE`查看,要修改变量可以直接修改。 命令历史的使用技巧 !n:执行命令历史中的第n条命令 !-n:执行命令历史中的倒数第n条命令 !!: 执行上一条命令 !string

How to install a GUI on Amazon AWS EC2 or EMR with the Amazon AMI

白昼怎懂夜的黑 提交于 2019-11-30 16:13:30
I have a need to run an application that requires a GUI interface to start and configure. I also need to be able to run this application on Amazon's EC2 service and EMR service. The EMR requirement means it has to run on Amazon's Linux AMI. After extensive searching I've been unable to find any ready made solutions, in particular the requirement to run on Amazon's AMI. The closest match and most often referenced solution is here . Unfortunately it was developed on a RHEL6 instance which differs enough from Amazon's AMI that the solution does not work. I'm posting my solution below. Hopefully

Windows10远程桌面Ubuntu优麒麟

时光怂恿深爱的人放手 提交于 2019-11-30 13:04:08
远程桌面方法最好内网使用,外网需要有固定IP地址,且3389端口访问权限。 本方法在Ubuntu 19.04的系统中测试通过。其它版本系统有问题,可多上网搜索解决方案。 Ubuntu端软件安装 需要管理员安装的软件 Ubuntu16.04下 以下命令行皆是在终端中运行: 安装xrdp sudo apt-get install xrdp 装vnc4server sudo apt-get install vnc4server 装xubuntu-desktop sudo apt-get install xubuntu-desktop xsession中写入xfce4-session(每个用户自己运行此行) echo "xfce4-session" >~/.xsession 启xrdp服务 sudo service xrdp restart 看ip地址 其实你能连接至服务器,应该就知道IP地址了。 ifconfig Windows端 启动 远程桌面连接 (开始菜单中可以找到,找不到搜索一下),输入IP地址连接;注意IP地址可以是服务器的内网(需要用户在同一网段)或外网(需要开通3389端口访问权限)均可。 不同版本的登陆界面略有不同,如下分别为Ubuntu 16.04和18.04的界面。 弹出窗口中输入用户名和密码点OK,即可打开远程桌面 这样性能强悍的计算机就变成了你的桌面

How to install a GUI on Amazon AWS EC2 or EMR with the Amazon AMI

拜拜、爱过 提交于 2019-11-29 15:22:47
问题 I have a need to run an application that requires a GUI interface to start and configure. I also need to be able to run this application on Amazon's EC2 service and EMR service. The EMR requirement means it has to run on Amazon's Linux AMI. After extensive searching I've been unable to find any ready made solutions, in particular the requirement to run on Amazon's AMI. The closest match and most often referenced solution is here. Unfortunately it was developed on a RHEL6 instance which