You are not logged in.

#1 2010-01-29 13:29:25

Dethredic
Member
Registered: 2009-01-24
Posts: 361
Website

Share your Pro Tips

I was using linux (not arch) for about 6-8 months before I realized that pressing "Tab" in the terminal was an auto complete. This got me thinking that there are probably better ways of doing simple things that I just haven't realized.
Maybe just share little things you do that help out a lot that other people could have missed, like "I do this when updating so if something  goes wrong I can revert back easily" as a simple example.

Offline

#2 2010-01-29 13:37:44

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: Share your Pro Tips

This one's pretty simple. If you have a pacman -Syu addiction (you run it without knowing if you have to on a regular basis) then install conky and put the following into .conkyrc:

${if_match ${execi 3 pacman -Qu | wc -l} == 0}Updated${else}Outdated${endif}

then put the following into /etc/cron.hourly or daily or whatever you want:

pacman -Syy &> /dev/null

(Sy sometimes doesn't work well with http)

Last edited by tomd123 (2010-01-29 13:38:38)

Offline

#3 2010-01-29 13:55:03

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Share your Pro Tips

Dethredic wrote:

Maybe just share little things you do that help out a lot that other people could have missed

My favorite Linux pro tip is "anything that can be done in a GUI can be done with the command line". And many people would probably say that it is faster to do it that way.

That includes multitasking, having multiple screens and windows, copy and paste text, playing music and playlists, instant messaging, web browser, email, file management, programming, and sometimes even view photos and watch movies. The only thing I can think of that can't really be done with the command line is drawing a picture. Maybe someone can show that even that isn't true. tongue

Offline

#4 2010-01-29 14:33:10

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: Share your Pro Tips

drcouzelis wrote:

That includes multitasking, having multiple screens and windows, copy and paste text, playing music and playlists, instant messaging, web browser, email, file management, programming, and sometimes even view photos and watch movies. The only thing I can think of that can't really be done with the command line is drawing a picture. Maybe someone can show that even that isn't true. tongue

Indeed, but you need a graphical web browser for today's web to render correctly. And X renders photos and movies much better than a framebuffer.
Still, I recommend getting a good grasp of the command line (zsh, vim, tmux, ssh..). It allows for much more efficient work once learned.

Last edited by JohannesSM64 (2010-01-29 14:38:07)

Offline

#5 2010-01-29 14:38:12

ijanos
Member
From: Budapest, Hungary
Registered: 2008-03-30
Posts: 443

Re: Share your Pro Tips

#1: always backup important data
#2: if you are repeating the same task over and over (even if it is very simple) then probably there is a better way to do it.

Offline

#6 2010-01-29 14:40:38

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: Share your Pro Tips

ijanos wrote:

#2: if you are repeating the same task over and over (even if it is very simple) then probably there is a better way to do it.

iow. shell script.

Offline

#7 2010-01-29 14:45:59

tvale
Member
From: Portugal
Registered: 2008-12-11
Posts: 175

Re: Share your Pro Tips

tomd123 wrote:

This one's pretty simple. If you have a pacman -Syu addiction (you run it without knowing if you have to on a regular basis) then install conky and put the following into .conkyrc:

${if_match ${execi 3 pacman -Qu | wc -l} == 0}Updated${else}Outdated${endif}

then put the following into /etc/cron.hourly or daily or whatever you want:

pacman -Syy &> /dev/null

(Sy sometimes doesn't work well with http)

THANK YOU!
Much cleaner than the one I had.

Offline

#8 2010-01-29 14:52:17

Dethredic
Member
Registered: 2009-01-24
Posts: 361
Website

Re: Share your Pro Tips

what kind of cron tasks is everyone running?

Offline

#9 2010-01-29 14:56:28

tvale
Member
From: Portugal
Registered: 2008-12-11
Posts: 175

Re: Share your Pro Tips

I'm running one every hour to check for updates, and one every 5 minutes to check for e-mail.

Offline

#10 2010-01-29 15:00:59

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: Share your Pro Tips

If I had to say just one thing, it would be to backup data. You can never be too careful.

I have not one, but two backups of my data on a pair of external hard drives, each of which I keep in a separate location (in case of burglary or house burning down). Call me paranoid but I can sleep well at night knowing it would be extremely unlikely for my laptop and both my external hard drives to die simultaneously big_smile


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#11 2010-01-29 15:07:39

raymboard
Member
Registered: 2010-01-22
Posts: 61

Re: Share your Pro Tips

JohannesSM64 wrote:
drcouzelis wrote:

That includes multitasking, having multiple screens and windows, copy and paste text, playing music and playlists, instant messaging, web browser, email, file management, programming, and sometimes even view photos and watch movies. The only thing I can think of that can't really be done with the command line is drawing a picture. Maybe someone can show that even that isn't true. tongue

Indeed, but you need a graphical web browser for today's web to render correctly. And X renders photos and movies much better than a framebuffer.
Still, I recommend getting a good grasp of the command line (zsh, vim, tmux, ssh..). It allows for much more efficient work once learned.

How to view photos and movies in a framebuffer?


Linux is not an operating system it's a kernel. You're using GNU/Linux. http://www.gnu.org/gnu/linux-and-gnu.html

Offline

#12 2010-01-29 15:25:41

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: Share your Pro Tips

Keep your dotfiles and things in /etc in git or hg repositories. I suggest only committing things you actually modify. This lets you get any old versions or deleted things back, and means that listing the contents of the repo shows you all the files you care about.

Offline

#13 2010-01-29 15:45:26

hatten
Arch Linux f@h Team Member
From: Sweden, Borlange
Registered: 2009-02-23
Posts: 736

Re: Share your Pro Tips

backup. And use the CLI.

Offline

#14 2010-01-29 16:57:01

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: Share your Pro Tips

Don't eat the yellow snow. big_smile

Learn to use properly your shell of choice. Configure it properly and learn shortcuts for command line editing. Try fish shell.

Learn to use properly your editor of choice.

Automatize. Let the machine work for you.

In the sql statement when using mysql client put \G instead of ; to switch on the vertical output.

And most important of all...the thing I am still learning and I never learn is RTFM.

Offline

#15 2010-01-29 16:58:52

vik_k
Member
From: Pune, India
Registered: 2009-07-12
Posts: 227
Website

Re: Share your Pro Tips

raymboard wrote:

How to view photos and movies in a framebuffer?

for movies, use mplayer (if you have declared video driver in mplayer config file then try to use "-noconfig all" at commandline)

for images, i'm not sure but might be you can use "zgv"


"First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack." ~ George Carrette

Offline

Board footer

Powered by FluxBB