x11

How to properly configure xstartup file for TightVNC with Ubuntu VPS GNOME environment

ぐ巨炮叔叔 提交于 2019-12-09 12:39:58
问题 I'd like to access my Ubuntu 16.10 VPS (Contabo) with using a GNOME environment with VNC, however I am still facing some issues that I couldn't solve so far. To install and configure the software I ran the following commands: sudo apt-get install ubuntu-gnome-desktop sudo apt-get install tightvncserver xtightvncviewer tightvnc-java sudo locale-gen de_DE.UTF-8 sudo apt-get install xfonts-75dpi sudo apt-get install xfonts-100dpi sudo apt-get install gnome-panel sudo apt-get install metacity

How can I set an action to occur on a key release in xmonad?

ぃ、小莉子 提交于 2019-12-09 12:02:39
问题 How can I set an action to occur on a key release in xmonad? I don't like menu bars and panels. Instead of a panel like xmobar I want to have a full screen page of info, (time, currently selected window and workspace etc) appear when I hold down a key combo and then vanish when I let the keys go. I could code the info page application myself. I can set the info page to spawn on a key press. I can not set anything to happen on a key release. How can I set an action to occur on a key release? I

Vim copy-paste to system buffer not behaving as expected

戏子无情 提交于 2019-12-09 07:16:14
问题 I'm having a headache trying to figure out why vim isn't copying to a system buffer. Here's my workflow: vim asd y1y :q vim qwe p On computerA and computerB, this works as I want it to: the line yanked from the file asd is put into the file qwe. On computerC, this doesn't work. All systems are running Ubuntu 8.04. computerA has the vim-full package installed, computerB and computerC have the vim package installed. computerA has xorg installed, is using the fluxbox window manager, and is

Does Mac X11 have the XTEST extension?

不羁的心 提交于 2019-12-09 05:11:13
问题 So I moved some X programs down to the mac, and I'm getting Error: XTEST extension unavailable on '(null)'. from xdotool. Does OS X X11 come with XTEST? If not, is there a way to add it? 回答1: Run the following command in the Terminal: defaults write org.x.X11 enable_test_extensions -boolean true (as per here). Then quit and restart the X server; the XTEST extension should then be available. 回答2: I had to do the following two commands to get this to work on Mountain Lion (from here): defaults

Why is DirectFB not more widely used in GNU/Linux? Are there crippling limitations to it that don't exist in X11?

我的梦境 提交于 2019-12-09 04:35:30
问题 As far as I understand, DirectFB offers hardware acceleration for many kinds of graphics cards. Additionally, it's smaller, faster, and uses up less memory than X11. Why then, is it not more mainstream than it is now? Here's what I'm really unsure about: Do common GTK+/Qt programs need to be ported to it? On the DirectFB site, there's a project for porting Firefox to it. Why is that even necessary, if GTK+ has the ability to use DirectFB directly? The way I (probably incorrectly) understand

C++ Get string from Clipboard on Linux

对着背影说爱祢 提交于 2019-12-09 00:37:56
问题 Hello I'm writing a c++ program and I need to get what's on clipboard into a string variable. I found a lot of solutions but all of them were written for windows. Is there any method without using the QT libraries? I found something related to X11 but not very explicit aswell. Thank you very much 回答1: Did you try to find not a code first but a program with an implementation ? I did it for you and found a lot of implementations which use direct X11 calls. I think the most valuable is this but

SDL_SetWindowSize resizes window, but SDL_GetWindowSize reports old size — in Unix

耗尽温柔 提交于 2019-12-08 21:20:25
问题 I can't use SDL_GetWindowSize cross-platform, because in Unix it doesn't know that the window size changed (though I can see it did). Visual Studio and MinGW have no problem. (I keep running into cases where Unix is an outlier, but it's always been that I was doing something wrong and the other 2 platforms didn't notice.) I was running SDL2's version 2.0.8+dfsg1-4ubuntu on 64-bit Ubuntu 4.18.0 on VirtualBox; have since upgraded to SDL2 2.0.9+dfsg1-1ubuntu1 on Ubuntu 5.0.0, but behavior is the

matplotlib error when running plotting in multiprocess

岁酱吖の 提交于 2019-12-08 19:25:19
问题 I am using python's Multiprocess.Pool to plot some data using multiple processes as follows: class plotDriver: def plot(self, parameterList): numberOfWorkers = len(parameterList) pool = Pool(numberOfWorkers) pool.map(plotWorkerFunction, parameterList) pool.close() pool.join() this is a simplified version of my class, the driver also contains other stuffs I choose to omit. The plotWorkderFunction is a single threaded function, which imports matplotlib and does all the plotting and setting

linux中以.d结尾的目录

浪尽此生 提交于 2019-12-08 15:00:32
一般为了保持对原有配置方式的兼容,而增加的.d结尾目录。 如: /etc/X11/xorg.conf 这原本是个文件,现在也有了一个/etc/X11/xorg.conf.d这样的目录,显卡驱动的相关设置原本是放在/etc/X11/xorg.conf这个文件中的,现在为了配置文件的简洁和灵活性,可以将配置按照情况分配,扔到/etc/X11/xorg.conf.d里面去...像“规则”一样的方式来添加...系统会自动去这个/etc/X11/xorg.conf.d里面去找这些规则并按照规则进行设置.这样可以保持之前相对于之前的/etc/X11/xorg.conf方法的兼容性。 又如: 在yum系发行版中,/etc/yum.repo是yum的配置文件,可以将所有的yum源都扔到yum.repo文件中,现在也可以将不同的源配置文件都扔到/etc/yum.repo.d里面去,而只在yum.repo中设置一些比较有共性的配置选项.这样哪个源不想要了就从/etc/yum.repo.d里面删了就行了不影响其他的,再增加源也是相同的道理。 还有/etc/env.d,/etc/profile.d,/etc/udev.rules.d等...都是一样的~ 所以,.d实际是表示directory,目录的意思。.d 是 directory 的缩写,表示这是一个目录(文件夹)。这个在配置文件中比较常见

How to start linux with gui without monitor? [closed]

冷暖自知 提交于 2019-12-08 13:52:35
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I met a problem. I had a server which is installed redhat enterprise 5.5. And one Qt program was running on this server. So what I should do is to turn on my server, the server will start automaticly with Gui and that Qt program will start automaticly. I finished all on my desktop. But while I start this server without monitor, we know server was running without monitor,the X server go bad.God, what should I do?