PDA

View Full Version : Does this sound like good little project to do?



Legendary_Bibo
June 11th, 2010, 03:28 AM
I want to make a pack of a bunch of shortcuts/launchers to do various tasks that you would do with the terminal. It's to help people transitioning over to linux and absolutely fear the terminal. In a way it'll help me learn more terminal commands, and it gives me something else to do to get to play around with GIMP more to create icons. I'll label them by their function and describe what they do in the most simplistic way.

ubunterooster
June 11th, 2010, 03:54 AM
I'm actually making one for my sis to have one-click updates:
gksu apt-get update

Legendary_Bibo
June 11th, 2010, 03:58 AM
Ah yes, I guess I should ask the community for several useful terminal commands and what they do. I'll admit this won't be the most convenient method of doing something but it'll make it easier for new users. It'll be like a one stop shop of a lot of help rather than googling a lot.

ubunterooster
June 11th, 2010, 04:05 AM
Oh, and remember everyone; here replace sudo with gksu

Legendary_Bibo
June 11th, 2010, 04:10 AM
How do you add PPAs with the terminal?

ubunterooster
June 11th, 2010, 04:20 AM
not sure (I forgot Something [cries] :( )

Legendary_Bibo
June 11th, 2010, 04:29 AM
Well I'm going to have a glossary...maybe. I might just make "Installers" for the the programs which is just where I have them run wget whatever or and then another launcher to run them. I'll have to make other launchers to add PPAs first and then have the installers.

Cuddles McKitten
June 11th, 2010, 04:36 AM
echo "http://hoochiemomma.com karmic whatever goes here I forget" >> /etc/apt/sources.list

Legendary_Bibo
June 11th, 2010, 04:42 AM
This is going to be bigger than I thought. Oh well. I would really like to make it where some of these commands don't even open up the terminal, but that would probably require making GUIs which is too much of a hassle.

Legendary_Bibo
June 11th, 2010, 05:17 AM
Does this look right? It's to add the Opera ppa. When I tried it, it just closed my terminal, but I already have it installed.


sudo add-apt-repository http://deb.opera.com/opera/ lenny

uRock
June 11th, 2010, 05:27 AM
Here are a couple of the ones I use regularly. The snort fix one is to restart snort after suspending. Without restarting snort a CPU will get maxed out. The Nautilus one is obvious. I had more, but as I deleted them as I realized they were of no real use to me.

earthpigg
June 11th, 2010, 05:41 AM
gnome-terminal -e htop

instead of using the resource-hogging panel app.

uRock
June 11th, 2010, 06:01 AM
gnome-terminal -e htop

instead of using the resource-hogging panel app.

That's a good one which I hadn't thought of. I do prefer to run it as sudo so I can kill root processes when needed.

juancarlospaco
June 11th, 2010, 06:30 AM
Thats already done.

Dont reinvent the whell and help APT-Icons (http://apticon.wordpress.com/)

Legendary_Bibo
June 11th, 2010, 07:47 AM
Thats already done.

Dont reinvent the whell and help APT-Icons (http://apticon.wordpress.com/)
I don't understand spanish. And from what I could tell, it doesn't look like that's what they're doing.

I want to get a big list of commands first. I did a few, but I also want to know how to set up launchers to add PPAs

This might give you a better picture of what I'm doing.

del_diablo
June 11th, 2010, 08:55 AM
I like using xterm -e "*command*

xterm -e 'sudo add-apt-repository http://deb.opera.com/opera/ lenny'

Legendary_Bibo
June 11th, 2010, 09:05 AM
I like using xterm -e "*command*

xterm -e 'sudo add-apt-repository http://deb.opera.com/opera/ lenny'
what does the xterm -e part do?

earthpigg
June 11th, 2010, 06:18 PM
what does the xterm -e part do?

starts a terminal session and immediately runs the command after -e. this way, if there is an error of some sort with the command/program, it will be displayed in a terminal instead of the icon simply mysteriously not working.

if the program runs fine, the terminal will automatically close. here, run this as an example:


xterm -e "sudo apt-get update"

and for comparison,


gnome-terminal -e "sudo apt-get update"

xterm is a bare-bones alternative to gnome-terminal - the big difference for us here is that virtually every distribution that includes a GUI also includes xterm.

gnome-terminal, on the other hand, is generally only included in gnome or gtk distributions. kubuntu, for example, almost certainly does not include gnome-terminal. a .desktop file that runs "xterm -e whatever" will work in xubuntu, lubuntu, kubuntu, etc. one that runs "gnome-terminal -e whatever" will only work in ubuntu.

so, as the de facto benevolent dictator (http://en.wikipedia.org/wiki/Benevolent_dictator#Open_Source_Usage) of this project, it is decision time for you: do you want this project to be for *buntu, or Ubuntu only?

if you use "gksu" anywhere, you are already limiting it to gtk-only... things with gksu will work in lubuntu, xubuntu, ubuntu... but not kubuntu.

itcotbtoemik
June 11th, 2010, 07:02 PM
>xterm is a bare-bones alternative to gnome-terminal

not really - xterm implements far more control sequences,
and is more configurable. gnome-terminal is targeted at
people who want something that fits with their desktop's
decor.

earthpigg
June 11th, 2010, 07:11 PM
>xterm is a bare-bones alternative to gnome-terminal

not really - xterm implements far more control sequences,
and is more configurable. gnome-terminal is targeted at
people who want something that fits with their desktop's
decor.

i stand corrected, sir.

juancarlospaco
June 11th, 2010, 07:18 PM
apt-icons got a big list of commands, some of them are launchers to add PPAs and such.

itcotbtoemik
June 11th, 2010, 07:53 PM
:p

Legendary_Bibo
June 11th, 2010, 08:57 PM
starts a terminal session and immediately runs the command after -e. this way, if there is an error of some sort with the command/program, it will be displayed in a terminal instead of the icon simply mysteriously not working.

if the program runs fine, the terminal will automatically close. here, run this as an example:


xterm -e "sudo apt-get update"and for comparison,


gnome-terminal -e "sudo apt-get update"xterm is a bare-bones alternative to gnome-terminal - the big difference for us here is that virtually every distribution that includes a GUI also includes xterm.

gnome-terminal, on the other hand, is generally only included in gnome or gtk distributions. kubuntu, for example, almost certainly does not include gnome-terminal. a .desktop file that runs "xterm -e whatever" will work in xubuntu, lubuntu, kubuntu, etc. one that runs "gnome-terminal -e whatever" will only work in ubuntu.

so, as the de facto benevolent dictator (http://en.wikipedia.org/wiki/Benevolent_dictator#Open_Source_Usage) of this project, it is decision time for you: do you want this project to be for *buntu, or Ubuntu only?

if you use "gksu" anywhere, you are already limiting it to gtk-only... things with gksu will work in lubuntu, xubuntu, ubuntu... but not kubuntu.

I'll use xterm for things that'll need it :D
All the Ubuntu distros come with Synaptic right?
I'm going to call this project "Training Wheels" Which I plan on making it a dropdown menu next to the System menu. I hope it goes upstream. And because it's just a dropdown menu that can be removed with a couple of clicks.
To juancarlospaco, I would help with your project, but it looks like you're making a whole new program like Ubuntu Tweak. I'm trying to make a menu integrated within the menu. I'm including ways on fixing common problems that usually involve entering commands into the terminal.

forrestcupp
June 11th, 2010, 09:46 PM
This sounds like the beginnings of Automatix3. :-\"

Bachstelze
June 11th, 2010, 09:48 PM
I'm actually making one for my sis to have one-click updates:
gksu apt-get update

Update Manager, anyone?


This sounds like the beginnings of Automatix3. :-\"

I lol'ed. That's really how it sounds, I had forgotten about Automatix.

Legendary_Bibo
June 11th, 2010, 10:05 PM
This sounds like the beginnings of Automatix3. :-\"
oh my no! It's just a menu bar with launchers for various terminal commands. It's not an actual program, it just uses what's already available. It's just tedious for someone to make, but it makes it easier on new users.

I LOVE DOING TEDIOUS THINGS!!! :D

It's using the terminal, without the terminal. To people who use the terminal it's slow, but to the new user it makes things more comfortable. Oh I made a launchpad thingy... If you guys want to help all I need is basically terminal commands for popular programs that you can't get through the Ubuntu software center, or the minimal Synaptic.
I'm looking for adding PPA's, installing the programs, typical system commands (i.e. top, htop, etc.), and commands for troubleshooting (i.e. compiz -replace, metacity -replace, sudo gedit '/usr/share/icons/default/index.theme' (for fixing mouse issue when compiz is on)).

https://blueprints.launchpad.net/ubuntu/+spec/training-wheels

Dustin2128
June 11th, 2010, 10:09 PM
well a few useful things to do with the terminal that could be added for me are

chmod +x binfileneedstobeexecuted.bin
./binfile.bin you need to use bin files to install google earth among other programs. Also:
tar xvzf tarpackage
cd tarpackage,
./configure
make && make install

forrestcupp
June 12th, 2010, 02:58 AM
oh my no! It's just a menu bar with launchers for various terminal commands. It's not an actual program, it just uses what's already available. It's just tedious for someone to make, but it makes it easier on new users.

That's basically how Automatix started.