PDA

View Full Version : Lazy OS set-ups!



hoppipolla
November 12th, 2009, 07:37 PM
Do you have any?

My personal favourite is one I made last night. It's a link on my desktop that fires off the command:

kdesu xterm updateme

updateme being a script I wrote that reads this:

apt-get update && apt-get dist-upgrade && apt-get upgrade


So basically in one go without any GUI tools (which can be long-winded) or prompt commands (which can be lengthy) it updates! It can be quite cool!

I also made a script which fires up Pidgin, Amarok, gufw and kmail in one click (which also now sits on the desktop) which saves me a bit of time on start-up without FORCING me to wait for them to start if I just popped on to do something quickly!


So do you guys have any? I think that these kinds of hacks and workarounds and flexibility is part of the beauty of such an open system! ^_^

Hoppi!

NoaHall
November 12th, 2009, 07:44 PM
If you use alias, you set that up to run on something like "u" ;)

FuturePilot
November 12th, 2009, 07:55 PM
I wouldn't call that lazy, I would call that being efficient.

I have a launcher on my panel that does

gnome-terminal --window-with-profile=IRC --geometry=135x35 --command='ssh blah blah blah'

which opens a terminal window with a special profile I made specifically for this and runs an ssh command which connects me to my server and automatically reattaches to my screen session running Irssi.

ajgreeny
November 12th, 2009, 08:04 PM
My most used alias is a very simple one, q='exit' for closing the terminal which I must use 10s of times a day.

When I first started using Ubuntu, I never dreamed I would use the terminal as much as I do, but it is such a fantastically powerful tool that to go back to the miserable command prompt of windows would seem like absolute hell to me now.

-grubby
November 12th, 2009, 08:11 PM
Hacks and workarounds aren't beautiful, but shell scripts can be convenient.

knepig91
November 12th, 2009, 08:13 PM
alias ..='cd..'

Now, that is lazy

hoppipolla
November 12th, 2009, 08:15 PM
Hacks and workarounds aren't beautiful, but shell scripts can be convenient.

haha yes I guess I used the wrong terminology there :)

Sporkman
November 12th, 2009, 08:42 PM
http://www.turnkeylinux.org/

earthpigg
November 12th, 2009, 08:53 PM
alias l='ls --color=auto'
alias dfg='df -Th -x tmpfs'
alias f='free -m'
alias t='htop'
alias e='exit'

alias ..='cd .. && fortune'
alias ...='cd ../.. && fortune'
alias ....='cd ../../.. && fortune'
alias .....='cd ../../../.. && fortune'

RiceMonster
November 12th, 2009, 09:02 PM
not lazy, but I think this one shows true boredom:


alias gtfo=exit

sisco311
November 12th, 2009, 09:09 PM
alias ..='cd..'

Now, that is lazy


shopt -s autocd


man bash | less --pattern\="autocd"

uberdonkey5
November 12th, 2009, 09:11 PM
I have a cool script that shutsdown in set number of minutes (user input).. could be done from command line (with sudo) but I made it possible without using sudo, and just from launcher...

great when I want computer to shut down after radio program (e.g. at night) or after a torrent

at work (windows.. huff) so can't list it at mo'

Tibuda
November 12th, 2009, 09:18 PM
snip

hoppipolla
November 13th, 2009, 01:12 AM
alias l='ls --color=auto'
alias dfg='df -Th -x tmpfs'
alias f='free -m'
alias t='htop'
alias e='exit'

alias ..='cd .. && fortune'
alias ...='cd ../.. && fortune'
alias ....='cd ../../.. && fortune'
alias .....='cd ../../../.. && fortune'


these are cool - I never even knew about alias. Does it set the alternate command permanently or just for that session?

sisco311
November 13th, 2009, 01:29 AM
these are cool - I never even knew about alias. Does it set the alternate command permanently or just for that session?

for a session.


to make them permanent you can add them to the ~/.bashrc (http://www.faqs.org/docs/abs/HTML/files.html) file.