Tag Info

Hot answers tagged

21

The hardware power button triggers an ACPI event that acpid (the ACPI daemon) notices and reacts to; in this case by shutting down the system, although you could have it do whatever you want. The ACPI daemon runs as root, so it has permission to shutdown the system. Desktop environments (e.g. gdm for Gnome) typically run as root as well, so I suspect they ...


12

You can use X11 forwarding over SSH; make sure the option X11Forwarding yes is enabled in /etc/ssh/sshd_config, and either enable X11 forwarding by hand with ssh -X remoteserver or add a line saying ForwardX11 yes to the relevant host entry in ~/.ssh/config Of course, that requires a working X display at the local end, so if you're using Windows ...


12

The Wikipedia page on Comparison of X Window Managers sorts the various Window Managers into four categories: Heavyweight, Middleweight, Lightweight, and minimal. You'd probably be interested in those in the minimal category. Right now, those include Matchbox, sithWM, evilwm, dwm, WMFS, wmii, and scrotwm. (i3 gets put into Lightweight; Xfwm (used by ...


12

Did you have a look at some other "lighterweight" ;-) window managers? I'm completly happy with i3 for example: http://i3wm.org/ It's just a tiling windowmanger with dmenu for launching applications. No desktop, no other special features and the binary is just some KBs. There are a lot others in this range: evilwm - http://www.6809.org.uk/evilwm/ dwm - ...


12

I use pdftk mainly. But here are some others to consider: pdfsam (PDF Split and Merge): "pdfsam is an open source tool (GPL license) designed to handle pdf files" PDFJam "A small collection of shell scripts which provide a simple interface to much of the functionality of the excellent pdfpages PDF file package (by Andreas Matthias) for pdfLaTeX." (You can ...


12

I don't know about Arch and Debian, but oftentimes those GUIs are made with dialog(1), which takes a bunch of command-line arguments and then renders a dialog with ncurses. For examples, the Linux kernel menuconfig looks like this: An example dialog usage is: $ dialog --title "Hello" --infobox "Hello there Unix and Linux Stack Exchange" 20 100 Which ...


11

What Cinnamon version do you use? As far as I know, their latest version can do this seamlessly. In my Linux Mint 14 I can just use CtrlAltUp to show all workspaces, and then click + button on the right edge of the screen to add new workspace. You may want to check cinnamon 1.6 release page. Clem already explained how to do this over there.


10

I know two programs for manipulating PDFs under Linux: PDEedit "Pdf Editor is primary created for simple editation and manipulation with objects of documents in PDF format and storing them as new version of document. Editation and manipulation with objets is by graphical and by commandline interface too. For simple use command line is using script language, ...


10

Despite the fact that X.org is 20+ years old, what is it exactly that you need from a windows server that it doesn't provide? You have OpenGL support, anti-aliased fonts, double buffering, spiffy translucent composite windows, hardware-accelerated video playback. You can even play some DirectX games on it with wine if you're into that. What makes an X11 ...


9

Rather than yanking into the a register yank into the * or + register to yank the file contents into the X clipboard using one of: :%y* :%y+ This does require that you're using a copy of vim that has X support compiled in and is able to connect to your X server. Which of those works better for you will depend on which type of clipboard the target ...


8

According to the xinit man page that I read, xinit (and thereby startx) looks in its command line parameters for a client program to run. If it doesn't find one, it runs ~/.xinitrc instead. So you should be able to write startx path/to/my_alternate_xinitrc and it will do what you want. You will need to provide a path, though, and not just a filename. ...


8

Dolphin looks like what you are looking for: But the terminal is a slave of its directory navigation (if you change the directory in the GUI, it changes in the terminal, but not the other way around). To change the application directory when you change the current directory in the terminal, you can make your shell send a message to Dolphin to update its ...


8

There are several other implementations of X11, but none of them have all the features & driver support that X.org has. There are also some framebuffer-based solutions like DirectFB and whatever Android uses. And recently work has been ongoing on Project Wayland, which maybe one day might (partially) replace X11.


8

Usually, you can use SIGHUP to "friendly" close an application (with or without graphical interface). kill -HUP <application_pid> EDITED: added some other info The way SIGHUP is handled is application dependent so, as Dave noted, it can happen that this signal is masked or handled. However quite all interactive applications exit gracefully with a ...


8

At a higher level, the ones that look exactly like that generally use something like newt/whiptail or dialog. That particular one looks like it's newt/whiptail, since dialog tends to draw a frame around controls like that listbox. For another example, the linux kernel config uses a cut-down custom version of dialog (without extra features it doesn't use, and ...


7

For a moment, I thought that this might be inherited from the GDM configuration (since the GDM login screen does the same thing), but apparently it's not. After checking a few other places without any luck, I decided to find out for myself and took a look at the source code(v2.30). The code responsible for the shaking only checks to make sure the dialog ...


7

You're going to need a GUI toolkit. There are more available than I can list here. Python has bindings for more toolkits than you can shake a stick at. See their GUI Programming wiki page for more info. I don't know much about Fortran, but the same logic is going to apply. The most common toolkits on Linux are GTK (originally developed for The GIMP and now ...


7

It really depends on what you are trying to accomplish. Dialog creates curses based text dialog boxes that are accessible from the console. This is useful for adding some level of interaction to shell scripts. Dialog is older than the hills but still has it's uses. Zenity creates GTK based graphical dialog boxes for use in a windowed GUI environment. This ...


7

Debian uses tasksel for installing software for a specific system. The command gives you some information: > tasksel --list-tasks i desktop Graphical desktop environment u web-server Web server u print-server Print server u dns-server DNS server u file-server File server u mail-server Mail server u database-server SQL database u ...


7

Living in the town (Nuremberg, Germany) where SuSE has its current roots I have a little background-info from some people, who originally worked for SuSE. The current graphical yast2 (running on X11) has its predecessors of the time when it was usual to just have non-graphical interfaces. That predecessor was yast - which is still there, but does not have ...


7

Not sure if vi is required for this operation. There is xclip utility that allows you to copy anything from console output to x server clipboard. You should specify DISPLAY=:0.0 environment and execute it like this: cat file | xclip or for remote file ssh remote "cat file" | xclip Or from vi (note, that this way will temporaly clear vi buffer ...


6

First off, don't use sudo or su to change users to run a graphical process, or you're liable to have problems down the line (~/.ICEauthority changing owner is a notable issue). Instead, create a shortcut that uses the following command: gksu -u [user] command gksu launches a graphical prompt for the user's password, and upon entering the correct password, ...


6

Openbox and Window Maker are great suggestions. You may also have luck with related projects and derivatives; I had a good experience with Fluxbox on Crunchbang (Ubuntu-based). Lubuntu, with the LXDE desktop environment is very lightweight while providing a bit more out-of-the-box infrastructure than going without any desktop environment. Though, I've ...


6

You can use xdotool, a versatile X window automation tool. focused_window_id=$(xdotool getwindowfocus) active_window_id=$(xdotool getactivewindow) active_window_pid=$(xdotool getwindowpid "$active_window_id") (I don't know what the difference between focused and active is.) (I thought wmctrl could do this, but apparently not.)


6

You have two choices: Wait for RHEL7 later this year, it will be based on versions of Fedora that contained gnome3 and systemd. Compile everything from source. Those are basically it. Even CentOS says they won't do it since it involves re-compiling too much original code. Not to mention it would be an enormous amount of work for marginal benefit. I'll ...


5

If you're trying to get any chrooted app to show up in X11, you will need a couple of things set up correctly. One is a valid DISPLAY environment variable, second is a proper Xauthority file, and third and most important, access to the socket used by X11/Xorg. X11 can use either a TCP network socket or a Unix Domain socket. A TCP socket will be easier to ...


5

If you are looking at all the possibilities that can resolve the problem, I suggest the following link which is about how to port gtkparasite to GTK3. Although it is a bit technical, the effort is successful. http://code.google.com/p/gtkparasite/issues/detail?id=18


5

A different approach is to write your functionality as a library. Then you have a GUI which uses the library; and a CLI which also uses the library. Depending on the complexity of your task that may be the best solution, as both programs could work independently without the need of any kind of inter process communication.


5

I hope, that I understood you right: you need just a launcher to the existing script. If so, try to write a small .desktop file for your script and place it in ~/.local/share/applications or /usr/share/applications . Here is an example for it: [Desktop Entry] Type=Application Encoding=UTF-8 Name=Sample Application Name Comment=A sample application ...


4

Well, there's SVGALib or fbdev, you could build a window manager on top of one of those, if you'd like. I think the existing desktop environments (Gnome/KDE) are built on top of the X.Org programming interfaces, so you'd have quite a bit of work to do to make them work on a different substrate. I've heard that Android uses it's own frame buffer system and ...



Only top voted, non community-wiki answers of a minimum length are eligible