HOWTO: get a terminal built into your desktop in linux

So with the release of the newest version of Ubuntu coming out, I've been working on a theme for my laptop. I like to change it up a bit, rather frequently, and usually to fit my needs at the time.

I saw a few people do this on their systems and wanted to try it.  This little hack since I've gotten it to work has been quite useful for quick trips in the text based backbone of the system.  

So I'll walk you through this pretty simple hack, and then if you choose to, you can experiment and customize it to fit your wants/needs.

Step 1:

we're going to need a program called Devils Pie to get this to work, and we can get that in the software repositories of ubuntu.  Either by looking it up in synaptic, or from the quicker easier route..the console.  (console would make more sense, since you're putting one on the desktop anyhow!)

here's what you type:  <pre>sudo apt-get install devilspie </pre>
then enter your admin password and wait for the prompt. 

Now we're going to make the config file that determines how the console will interact with the desktop:

mkdir ~/.devilspie
nano ~/.devilspie/DesktopConsole.ds

you can use gedit instead of nano if you want a graphical editor:

(if
        (matches (window_name) "DesktopConsole")
        (begin
                (below)
                (stick)
                (undecorate)
                (skip_pager)
                (skip_tasklist)
                (wintype "utility")
                (geometry "500x400")
        )
)

this is my config file.. we'll use it as an example..for a list of commands see here

Step 2:

Now we're going to create a new profile for our gnome-terminal.  We'll make a seperate one, so that way, we still have use of the terminal as a window we can open normally.

We're going to call this new profile "DesktopConsole".

  • Select "Edit > Profiles"
  • in the "General" tab, untick "show menubar by default..."
  • in the "Scrolling" tab, select "Scrollbar is" -> Disabled.
  •  in the "Effects" tab, set "Transparent background" and shade to "None" (or to whatever you prefer)

So now we're ready to add this to our system startup, we'll go over two ways to do this.  If you don't use any Desktop Effects (compiz, compiz-fusion, or beryl), we can do this:

Open "System > Preferences > Sessions" in the main menu
Create a new  entry for:

devilspie
gnome-terminal --window-with-profile=DesktopConsole

Here's what I did instead, since I use compiz-fusion, the terminal opens with the window decorations despite the parameters in the config file.

the problem I found, was because devilspie was loading up after the console.. it needs to be the other way around.

I created a script that loads them in the correct order.

so in an empty file (similar to the one we made before) paste the following:

#!/bin/bash
#
# Start devilspie en gnome-terminal with profile DesktopConsole
devilspie & gnome-terminal --window-with-profile=DesktopConsole

so save it as desktopconsolescript in your home folder

now type the following to make it an executable:
chmod o+w ~/descktopconsolescript

Add the script you just made to the start up sessions the same as stated before.  Now it should load up with your window manager on boot.

we can start it by executing the script as well

./desktopconcolescript

when its all done, it should look similar to this:

screenshot for desktopconsole

 

 try it out!

(I'll edit this in a bit.. on my way out the door!!  Pay no attention to the <pre> tags.) 

0
No votes yet

Trackback URL for this post:

http://www.londoncommons.net/trackback/4851

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Trev McNaughton's picture

found a different method to this

so I've found a nicer way of doing this using compiz-fusion's advanced preferences/settings manager..

so if you use compiz-fusion (which you should .. its wicked!) this is the way to do it.

here's the HOWTO it REQUIRES compiz-fusion (and the advanced prefs manager)

.

[#londoncommonsnet] /me is 1337
Neil Blazevic's picture

In my world, I finally

In my world, I finally decided I would give linux a try, after many years of wanting to. I partitioned my new Dell laptop and installed Ubuntu 6.4 (I thought it was 7.4 but it didn't seem to be) and then upgraded to gutsy gibbon. I enjoy it, but its been running buggily, freezing up (mainly in the help system and openoffice). On boot-up it says swap failed, so perhaps that isn't helping. I'd really like to have a bug-free experience so I can switch entirely to Linux. At the moment all my research is in Microsoft OneNote, which is very valuable to me, so until I settle into a different system I need to keep the Windows partition on this system (someone reccomended 'Basket' to me).

Overall though, I'll be happy to enter the community of Linux nerds, but I have much to learn.  

Trev McNaughton's picture

try a fresh install..

I really wouldn't recommend the upgrade from a previous version to gutsy.. they say it works, and in theory it does.. however, I've personally seen a few crash and burn in the process (mine included).  whether is not booting up afterwards, or even just some hardware doesn't seem to work, it seems best for this version, to fresh install if you're going to try it (the benefit of having a seperate home partition.)

I think you should definately set up a partition for some sort of linux love.. its something I think everyone should really learn.  it gives you a better understanding of how a computer works, plus its going to be a major player in the next few years.. especially if mac and MS continue the trends they're on now.

gutsy has been awesome for me.. its a lot easier to use as a current/former windows user..  

.

[#londoncommonsnet] /me is 1337
Neil Blazevic's picture

Did a fresh install, and I

Did a fresh install, and I haven't had a problem yet. Cheers!

Trev McNaughton's picture

great!

glad that worked out for you.  I love being right!  

The problem is that some old bits from the previous version are left on your system, and it gets confused when the new stuff is added, small things too, like version numbers, or software that wasn't updated along with the OS..

have fun with it and experiment.. try getting the compiz config settings manager in synaptic package manager, and fool around with the desktop effects (it gives you complete customization of the window manager).. similar to aero, but requires alot less resource...even a 4 year old computer should be able to use most of the desktop effects.. 

.

[#londoncommonsnet] /me is 1337
Sean H's picture

Very cool!

I am switching between KDE and Gnome because I just can't make up my mind. Have you thought about a repository on London Commons for desktop wallpapers and/or other theme related items? I could contribute a few. The BG image I'm using now is one I took of a moss covered bench at Hamilton's RBG. I will try to upload it.

 

 

Trev McNaughton's picture

talk of a distro

My brother and I have spent a many hour discussing the idea of a londoncommons linux distribution.. both for the user and for a server.

I would love to have the site have a more developed tech section.  specifically an open source section, for anything from wall papers to scripts to full software.

maybe I'll post the conky script, and how to get conky working too.. (conky's a system monitor for those that don't know) 

.

[#londoncommonsnet] /me is 1337
Sean H's picture

Somemore eye candy

Hi Trev,

I have been playing about a bit with themes. It is incredible the extent to which a desktop can be customizd. The desktopp terminal isn't really working for me. It is because I am using a notebook with a graphic driver not quite optimized. So I get the effect, but as soon as I drag on an open window, and then click back to the desktop, it's gone.

But nevertheless I am having fun changing absolutely everything including the bootsplash and login screens. 

I also have some additional images for wallpaper.

 

I have been thinking about distros too. It would be possible to customize every aspect of a distribution and not just function. 

 

Trev McNaughton's picture

transparency

Sean, what GPU are you running in your laptop?  I might be able to help diagnose the transparency issue.. 

I'm pretty sure you have to have true transparency supported on your card.. and I think it also helps to have a composite based window manager, like compiz-fusion.  I know I heard some jargon about others having a similar issue with transparency.

when I switch back to my laptop (on the work computer, and the keyboard is the worst of the worst MS media keyboards .. its like typing on legos..ughh that doesn't even make sense.. see what I mean??) I'll see if I can dig up the thread for transparencies..

I'll also save that image for a future background.. keep em coming..

as for distros.. you could check out PClinuxOS, its top of distro watch and has a lot of good press on it.  though I don't know much about it.. 

durf! -- there's a bunch of pics.. wicked! 

.

[#londoncommonsnet] /me is 1337
2008 LondonCommons.net / About / Terms & Policies