Gnome Terminal as a Lightweight Desktop Environment




Use gnome-terminal as a powerful lightweight desktop environment and graphical user interface that runs on top of a computer Gnu/Linux operating system X server. Basically, will turn the gnome-terminal into a desktop.
There is a saying. If you master the command line interface, you'll master the entire system.


1- Add gnome-terminal in the Login manager list

Open the terminal, and enter (enter your password when prompt to):
sudo gedit /usr/share/xsessions/gnome-terminalOS.desktop

Once gedit is open add, save and close:

[Desktop Entry] Encoding=UTF-8 Name=Chrome OS Comment= Exec=~/master-command Type=Application

2- Edit your ~/.bashrc file:
copy and past the following in your ./.bashr

echo -e ;links2 -dump "http://www.google.com/search?q=weather+atlanta&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a" | grep -A 5 -m 1 "Weather for" echo -e ;cal -3 echo -n '┌─=[' $(whoami) ']=─┐' '┌─=[' $(who -q) ']=─┐' '┌─=[' $(df -h | grep /dev/sda1 | awk '{print $3}') ']=─┐' '┌─=[' $(acpi) ']=─┐' '┌─=[' $(acpi -t -f) ']=─┐'


3- Make the bash script call ~/master-command

In the terminal, enter
gedit ~/master-command

Once gedit is open add, save and close:
#!/usr/bin/env bash xsetroot -solid "#000000" & gnome-terminal --geometry 117x34+49+69 --hide-menubar --tab --title=System -e htop --tab --title=web -e elinks --tab --title=Network Monitor -e 'netstat -tcp' --tab --title=Mixer -e 'alsamixer -g' --tab --title=Calendar --active & gnome-terminal --window --title=+Status+Main-Menu --hide-menubar --geometry 122x2+22-5 & xclock -digital -update 1 -bg "#000000" -fg "#00ffff" -fn -*-*-bold-*-*-*-16-*-*-*-*-*-*-* -padding 6 -geometry 285x25-13+16 & exec metacity

In the terminal, enter:
chmod +x ~/master-command


Qick tips:


+ Change the gnome-terminal color and the color values in ~/master-command to match your metacity theme.

+ Make adjustment to each window size according to your display, use xwininfo to get the proper -geometry values in ~/master-command

+ Install liknks2 if you want the weather to display on your terminal. And replace weather+atlanta with weather+YOUR ZIP CODE

+ Run graphical apps (GTK+) with the & (this will free the terminal you using as a launcher for other commands). for example, to run chromium-browser, just enter:
chromium-browser &

+ Do a search for CLI apps. There are lots of awesome apps and commands you can use in the terminal.

+ here are what you need to install if you are doing this from scratch: A Linux operating System, gnome-terminal, X server, a login manager, metacity.

Comments

  1. From http://www.reddit.com/r/linux/comments/mw882/gnome_terminal_as_a_desktop_user_interface/ neat, but strange way to do it! There are plenty of moddable window managers out there, and gnome-terminal isnt exactly made for this.

    ReplyDelete
  2. @Anonymous "gnome-terminal isnt exactly made for this."
    Human aren't made for flying either. But we do fly.

    ReplyDelete
  3. hey man... nice, something different but useable aren't they?

    ReplyDelete
  4. Clever idea, just didn't work for me, ended up with a black screen and the mouse pointer (moving)..

    I'm not trashing the idea though, if it worked for me I'd definitely have used it. :)

    ReplyDelete
  5. @RiddleBox Double check your .xinitrc file. Instead of using ~/master-command script. Try adding the script directly in your .xinitrc like I said in the post.Make sure it's executable.
    Some Distro's graphical login manager only work with .xsession, so link .xinitrc with .xsession

    ReplyDelete
    Replies
    1. Hi Salem, love this desktop, just what I want as Unix sys-admin, but I can't get it to work. You talk about the .xinitrc and .xsession files but these have not been created by any of the package installs and I can find no reference to them in your main post above. Do you have another post that I am not seeing? Also lightdm doesn't seem to exist anywhere.

      Regards

      Rick

      Delete
  6. Can you tell me how to link .xinitrc with .xsession?

    And if I use the .xinitrc script should I delete the master-command script?

    ReplyDelete
  7. Sorry for the double post, if you check out your youtube account I left you a message with some pictures maybe you can understand better my problem.

    Thanks.

    ReplyDelete
  8. @RiddleBox Saw the pictures, did read the comments. Thanks for showing your interest in this project.

    Concerning the pictures, you edited my script by adding this command: exec unity.

    That is why it loaded everything inside Unity. Unity is already a desktop environment, not a window manager. Copy the commands exactly like I posted only, and everything will work just fine.

    Concerning everything else, like how do you link ~/.xinitrc with /.xsession? Read the post again. I edited the post just for you.

    If everything is working fine, but you desktop look doesn't look like mine, that is because your desktop theme and mine are different. Plus, you seem to be using Ubuntu. I haven't make a GTK3 version of my themes yet.
    I might take the time and make a gtk3 theme only if there are a lots of request for it.

    And again, Thanks for the comments.

    ReplyDelete
  9. I think Evilvte would do the same thing but with minmal memory footprint.

    ReplyDelete
  10. Hi Salem, just recently I came across your video on Youtube regarding Gnome Terminal Desktop Environment. I think it is super cool. I followed the steps as mentioned but I am not getting the output as you or others are getting, not even black screen with the arrow. I am having LinuxMint-12 on my system. Every time I restart the computer I see LM login window and then standard LM window. I am also looking at fast linux distro that uses less space - found Bodhi Linux and thought of combining your project with it.

    Could you help me out in figuring where I am going wrong?

    Thanks

    ReplyDelete
    Replies
    1. LinuxMint and Bodhi Linux are already pre-loaded with a Destop Environment; Which will load everytime you start your computer. You'll have to disable or uninstall the DE before you can use a different one.
      I suggest you install Debian instead as your Linux distro. It allow you to easilly install only the programs that you want. And it's easier to set things exactly the way you want it in Debian.

      Delete
    2. Thanks Salem. You had mentioned in one of your replies on YouTube video to check with the user-defined session. As that would help in changing from default session, I am using Ubuntu 10.04 and that does not have (or maybe I don't know how to change) user-defined session option. In one of the threads I read to change that I must install lightdm..however that didn't work either. Installed Debian as well but couldn't get it work. There has to be another way. I am going wrong somewhere. Prolly I should start the process with current Ubuntu version, which has lightdm and then test it out again.

      Delete
    3. Please read the post again, from start to finish. I edited it with more details. Do not start the process until you understand it.
      The OS recommended is Debian. If a file is misspelled, saved in the wrong directory, or if you forgot to make a file executable, It will not work.

      Delete
  11. I have followed this tutorial to a "T" and I still cannot get the desktop shown above. I chmod ~/.xinitrc I double check that everything is named correctly but it is still a no go. Is there something i need to do to activate it? Set it as the desktop environment etc? I am a upper-middle level linux user so the topics discussed make sense, but It doesn't seem to work even on a straight Debian 6 install.

    ReplyDelete
    Replies
    1. I edited the post. It's easier to follow now.

      Delete
  12. im fairly new to linux and i just want to say how good this looks. im learning the command line and this looks like a great way to help me with that goal! gonna give ghis a try over the weekend and hopefully i can make it work!

    ReplyDelete
    Replies
    1. Happy to hear that. By the way, this is not about a command line interface only. You can use cli apps or GUI apps. Did you notice, I launched Chromium-browser in the video demo?

      Delete
  13. hey gimme a lil help. um gonna try this, but i dnt knw how to install this. can I load x tru Putty?

    ReplyDelete
    Replies
    1. Putty? So you are a windows user? OK.
      Back up your data. Install a Debian based Linux OS. Next, follow the instructions posted here.

      Delete
  14. If you do not already have a Login Manager installed. Install lightdm or gdm.

    ReplyDelete
  15. This comment has been removed by the author.

    ReplyDelete
  16. Following error

    Note: (root)

    apt-get install gnome-terminal xserver-xorg nano lig htdm metacity htop links2 alsa-utilis elikns acpi
    Reading package list...Done
    Building dependency tree
    Reading state information... Done
    E:Unable to locate package lig
    E.Unable to locate package htdm
    E:Unable to locate package alsa-utilis
    Eunable to locate elinks.

    Can you help me?

    ReplyDelete
    Replies
    1. You misspelled the commands. sudo apt-get install gnome-terminal xserver-xorg gedit lightdm metacity htop links2 alsa-utils elinks acpi

      Delete
  17. Error

    The folowing packages unmet dependencies:
    xserver-xorg-input-mtrack: Conflict : xserver-xorg-input-multitouch but 1.0 rc2+git20110312-2buli2 is to be installed

    ReplyDelete
    Replies
    1. You don't need to install xserver-xorg if you already have an other Desktop Environment installed.

      Delete
  18. I retyped the command.. and now its working..

    ReplyDelete
  19. Now it´s running .... so i know that i need to change the parameters in "gnome-terminalOS-session"... to put wiht that black and blue..

    So what do i need to change??

    ReplyDelete
  20. Yeah, this is pretty awesome!

    ReplyDelete
  21. what metacity theme are you using?

    ReplyDelete
  22. Hi, I'm new to linux, and I had gotten this to work.
    Thank you for your efforts to create such a wonderful desktop environment.
    Also, thanks for the detailed instructions, but I was wondering how to change the number of workspaces and how they are connected(ie 2X2 square instead of 4X1 line). ALso, when I open libreoffice, the buttons do not look sleek as it does in Ubuntu 12.04. Is this because of something I did wrong??

    ReplyDelete
  23. also, is there a way to get compiz to work

    ReplyDelete
  24. Hi, I see u did a lot of hard work. Very cool.
    I've tried to set up this on one of my Debian (wheezy), but I've get error "Xsession unable to launch "Lubuntu" X session ---"/usr/bin/gnome-terminal..."falling back to default session". I've tried lightdm and gdm3...

    ReplyDelete
  25. Figured it out. In my bashrc I have custom parameters, commented them and all work now.

    ReplyDelete
  26. Hi Salem, love this desktop, just what I want as Unix sys-admin, but I can't get it to work. You talk about the .xinitrc and .xsession files but these have not been created by any of the package installs and I can find no reference to them in your main post above. Do you have another post that I am not seeing? Also lightdm doesn't seem to exist anywhere.

    Regards

    Rick

    ReplyDelete
  27. Hi Salem. Your desktop is very cool. Congratulations.
    I have Arch Linux with xfce4 and gnome3.
    In gdm, when i choose gnome-terminalOS-session, I look a simple terminal with few tabs, but there aren't look like CFD style.
    I using systemd. This problem?

    Thanks, Isti.

    ReplyDelete
    Replies
    1. Here is some screenshots:

      https://plus.google.com/u/0/photos/103166871999826193062/albums/5812062661926993745

      Delete
  28. This comment has been removed by a blog administrator.

    ReplyDelete
  29. Lightdm doesn't seem to be available for the version of Debian I downloaded. Would something like gdm, xdm, or slim be a suitable replacement?

    ReplyDelete
  30. Very impressive idea Salem. I got this to work on Lubuntu 13.04, but I still have terminal tabs that look grey. I've tried applying new GTK themes but they still are grey.

    What theme file do I need to edit to correct this? Is it GTK2 or GTK3?

    Thanks

    ReplyDelete
  31. I can't get it to start, what should I do? Gnome-terminalOS.session doesn't seem to work.

    ReplyDelete

Post a Comment

Popular Posts