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.
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@Anonymous "gnome-terminal isnt exactly made for this."
ReplyDeleteHuman aren't made for flying either. But we do fly.
nice work
ReplyDelete:>
Thanks
Deletehey man... nice, something different but useable aren't they?
ReplyDeleteClever idea, just didn't work for me, ended up with a black screen and the mouse pointer (moving)..
ReplyDeleteI'm not trashing the idea though, if it worked for me I'd definitely have used it. :)
@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.
ReplyDeleteSome Distro's graphical login manager only work with .xsession, so link .xinitrc with .xsession
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.
DeleteRegards
Rick
Can you tell me how to link .xinitrc with .xsession?
ReplyDeleteAnd if I use the .xinitrc script should I delete the master-command script?
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.
ReplyDeleteThanks.
@RiddleBox Saw the pictures, did read the comments. Thanks for showing your interest in this project.
ReplyDeleteConcerning 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.
I think Evilvte would do the same thing but with minmal memory footprint.
ReplyDeleteHi 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.
ReplyDeleteCould you help me out in figuring where I am going wrong?
Thanks
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.
DeleteI 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.
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.
DeletePlease read the post again, from start to finish. I edited it with more details. Do not start the process until you understand it.
DeleteThe 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.
W00t
ReplyDeleteI 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.
ReplyDeleteI edited the post. It's easier to follow now.
Deleteim 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!
ReplyDeleteHappy 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?
DeleteCan I has theme? :P
ReplyDeletehey gimme a lil help. um gonna try this, but i dnt knw how to install this. can I load x tru Putty?
ReplyDeletePutty? So you are a windows user? OK.
DeleteBack up your data. Install a Debian based Linux OS. Next, follow the instructions posted here.
If you do not already have a Login Manager installed. Install lightdm or gdm.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteFollowing error
ReplyDeleteNote: (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?
You misspelled the commands. sudo apt-get install gnome-terminal xserver-xorg gedit lightdm metacity htop links2 alsa-utils elinks acpi
DeleteError
ReplyDeleteThe folowing packages unmet dependencies:
xserver-xorg-input-mtrack: Conflict : xserver-xorg-input-multitouch but 1.0 rc2+git20110312-2buli2 is to be installed
You don't need to install xserver-xorg if you already have an other Desktop Environment installed.
DeleteI retyped the command.. and now its working..
ReplyDeleteNow it´s running .... so i know that i need to change the parameters in "gnome-terminalOS-session"... to put wiht that black and blue..
ReplyDeleteSo what do i need to change??
Yeah, this is pretty awesome!
ReplyDeletewhat metacity theme are you using?
ReplyDeleteHi, I'm new to linux, and I had gotten this to work.
ReplyDeleteThank 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??
also, is there a way to get compiz to work
ReplyDeleteHi, I see u did a lot of hard work. Very cool.
ReplyDeleteI'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...
Figured it out. In my bashrc I have custom parameters, commented them and all work now.
ReplyDeleteHi 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.
ReplyDeleteRegards
Rick
Hi Salem. Your desktop is very cool. Congratulations.
ReplyDeleteI 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.
Here is some screenshots:
Deletehttps://plus.google.com/u/0/photos/103166871999826193062/albums/5812062661926993745
This comment has been removed by a blog administrator.
ReplyDeleteLightdm doesn't seem to be available for the version of Debian I downloaded. Would something like gdm, xdm, or slim be a suitable replacement?
ReplyDeleteVery 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.
ReplyDeleteWhat theme file do I need to edit to correct this? Is it GTK2 or GTK3?
Thanks
I can't get it to start, what should I do? Gnome-terminalOS.session doesn't seem to work.
ReplyDelete