I was asking about something like this yesterday in IRC, can't wait to hear how it goes for ya. smile

52

(17 replies, posted in Off Topic / General Chat)

I got so excited 'til it told me it wouldn't work for my country.  Now I know how Canada feels. sad

Amy Winehouse - Some Unholy War :x

I have this problem too with not being able to remove apps from the menu, thanks for the tip anonymous, though I wish I could figure out why it's inactive in the first place. hmm

55

(132 replies, posted in Tips, Tricks & Scripts)

Title says it all, post your .bashrc, .bash_profile, etc with an explanation if ya feel like it. wink

If you're new to .bashrc or like editing it a lot, one good alias is alias reload='source ~/.bashrc'.  This way you can type reload everytime you make a change to .bashrc to see the changes.

Mine's mainly aliases for easy/quick browsing and the extract function.  Been tryin' to think of more useful things to add.

PS1='\[\033[1;31m\]\W/\[\033[0m\] '

##### DEFAULTS #####

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

PROMPT_COLOR='35;1m'

export HISTCONTROL=ignoreboth
export EDITOR="nano"
export VISUAL="nano"

shopt -s histappend
shopt -s checkwinsize

# Make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# Set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# Color prompt
force_color_prompt=yes

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi



##### CUSTOM STARTS HERE #####

### FUNCTIONS

# Easy extract
extract () {
  if [ -f $1 ] ; then
      case $1 in
          *.tar.bz2)   tar xvjf $1    ;;
          *.tar.gz)    tar xvzf $1    ;;
          *.bz2)       bunzip2 $1     ;;
          *.rar)       rar x $1       ;;
          *.gz)        gunzip $1      ;;
          *.tar)       tar xvf $1     ;;
          *.tbz2)      tar xvjf $1    ;;
          *.tgz)       tar xvzf $1    ;;
          *.zip)       unzip $1       ;;
          *.Z)         uncompress $1  ;;
          *.7z)        7z x $1        ;;
          *)           echo "don't know how to extract '$1'..." ;;
      esac
  else
      echo "'$1' is not a valid file!"
  fi
}

# Makes directory then moves into it
function mkcdr {
    mkdir -p -v $1
    cd $1
}

# Creates an archive from given directory
mktar() { tar cvf  "${1%%/}.tar"     "${1%%/}/"; }
mktgz() { tar cvzf "${1%%/}.tar.gz"  "${1%%/}/"; }
mktbz() { tar cvjf "${1%%/}.tar.bz2" "${1%%/}/"; }

### ALIASES

## Keeping things organized
alias ls='ls --color=auto'
alias ll='ls -l'
alias la='ls -A'
alias rm='mv -t ~/.local/share/Trash/files'
alias cp='cp -i'
alias mv='mv -i'
alias mkdir='mkdir -p -v'
alias df='df -h'
alias du='du -h -c'
alias reload='source ~/.bashrc'
alias biggest='BLOCKSIZE=1048576; du -x | sort -nr | head -10'

## Moving around & all that jazz
alias back='cd $OLDPWD'
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ......="cd ../../../../.."

## Dir shortcuts
alias home='cd ~/'
alias documents='cd ~/Documents'
alias downloads='cd ~/Downloads'
alias books='cd ~/eBooks'
alias images='cd ~/Images'
alias packages='cd ~/Packages'
alias aruby='cd ~/Ruby'
alias torrents='cd ~/Torrents'
alias videos='cd ~/Videos'
alias webdesign='cd ~/Web\ Design'
alias localhost='cd /var/www'

## App-specific
alias nano='nano -W -m'
alias music='ncmpcpp'
alias ftp='ncftp Personal'
alias wget='wget -c'
alias scrot='scrot -c -d 7'

## Easy script callin'
alias show-info='~/.bin/info.pl'
alias show-colors='~/.bin/colors.sh'

## Sudo fixes
alias install='sudo apt-get install'
alias remove='sudo apt-get remove'
alias orphand='sudo deborphan | xargs sudo apt-get -y remove --purge'
alias cleanup='sudo apt-get autoclean && sudo apt-get autoremove && sudo apt-get clean && sudo apt-get remove && orphand'
alias updatedb='sudo updatedb'

## Dev related
alias restart-apache='sudo /etc/init.d/apache2 restart'

## Misc
alias edit='nano'

56

(10 replies, posted in Introductions)

Warm welcome, Joshnunn.  Glad you're liking #!, and appreciate us havin' our sh-t together. wink

corenominal wrote:
kestrel wrote:

Figuring out the importation of the articles seems to me to be the biggest challenge.

About that, personally I am not sure that duplicating the articles on the Wiki is totally desirable -- I was thinking more in terms of using TiddlyWiki to produce a guide/handbook with Tiddlers which could be linked to from Openbox's main menu, as opposed to trying to distribute a full community wiki.

Distributing TiddlyWiki would be very easy, producing it could prove to be more difficult; although as I am sure you are aware, it does come with some excellent features for importing Tiddlers and plugins. I think a collaborative effort could be arranged without too much effort.

Also, I found a very interesting plugin for launching applications from within a Tiddler, this could be used to great affect when detailing how to edit config files etc. For example, when detailing how to edit ~/.config/openbox/rc.xml a button could be provided to open the file.

Anyhow, I almost completely sold on the idea of using TiddlyWiki, not only because I believe it would make an excellent platform for delivery, but because the alternatives (?) are far from convincing.

Sounds like a great idea to me, especially like having it in the OB menu.

rfquerin wrote:

3. I hope this doesn't raise the bar on expectations from any contributions I might make

Oh, it does. wink

59

(25 replies, posted in Off Topic / General Chat)

Mehall wrote:
Nik_Doof wrote:
anonymous wrote:

As repeated by other, using free software is great but sometimes I find that the best or necessary software may not be free.

+1, I think that just sums it up for me.

*cough*dreamweaver > text editor for web pages*cough*

Last time I used Dreamweaver (granted it's been many years back) it was horrible at creating clean and standard code.  I enjoy text editors more either way, even nano'll do it for me. yikes

But I do agree with anonymouse, I'm not gonna go out of my way to use free software.  What works, works.

Looks nice, Bast.  Definitely stealing your conky. wink

globetrotterdk wrote:
dannytatom wrote:

Also, if you relly want lxde, they have their own version of ubuntu you can get.  http://lxde.org/download

The PUD distro seems to work well in many ways, but doesn't seem to provide the same Ubuntu language modules. It seems to be only English and Chinese centric. It also includes things like OpenOffice.org, which in my estimation can by no means be considered to be "light".

No doubt, was just mentioinin' it in case ya didn't know. tongue

Also, if you relly want lxde, they have their own version of ubuntu you can get.  http://lxde.org/download

63

(9 replies, posted in Introductions)

'elo and welcome aboard, Liam. big_smile

64

(7 replies, posted in Tips, Tricks & Scripts)

Added to the wiki: http://crunchbanglinux.org/wiki/crunchb … y_commands

65

(7 replies, posted in Tips, Tricks & Scripts)

Mehall wrote:

You can easily add these to the herd, though I forget how.

Anyone fancy making a #! skin for ubiquity?

There's a way to do it,  and it's not hard, but last time I checked it wasn't well done.  Like if I were to put all the commands on a page, there'd be an "Add to herd" button.  Problem would be you'd have to all or not, so this way seems better fit in case someone only wants the forums or wiki and not the other.

Or, of course, you can set seperate pages for each command.  This seems a bit easier to manage, though.

66

(7 replies, posted in Tips, Tricks & Scripts)

If you use the firefox add-on Ubiquity, I made a couple commands to search the forums and wiki.

To install 'em, Ctrl+Space (or whatever you have set to open Ubiquity) and type in command-editor. There'll be a huge textbox on the page, paste this in there:

makeSearchCommand({
  name: "crunchwiki",
  url: "http://crunchbanglinux.org/wiki/?do=search&id={QUERY}",
  icon: "http://crunchbanglinux.org/favicon.ico",
  description: "Searches the CrunchBang Wiki."
});

makeSearchCommand({
  name: "crunchbbs",
  url: "http://crunchbanglinux.org/forums/search/?action=search&keywords={QUERY}",
  icon: "http://crunchbanglinux.org/favicon.ico",
  description: "Searches the CrunchBang Forums."
});

It saves as you type,  so once you paste it go ahead and ctrl+space and type crunchbbs for the forums or crunchwiki for the wiki. 

Enjoy. smile

67

(7 replies, posted in Tips, Tricks & Scripts)

I've been using pypanel for the last few days and love it.  When/if iggy fixes this bug, will it be included as the default panel for lite instead of lxpanel?  Seems to me like a better choice, at least.

I know this isn't #!, but I just got it set up and took a lot of configs from my #! install to make it look pretty. tongue

http://www.picamatic.com/show/2009/01/30/12/52/1899641_bigthumb.png

Thank you, ma'am!  They're here if you want 'em:

http://dotfiles.org/~dannytatom/.config … r%2Fconfig

Love it, Hanna! So much greeeeeen. big_smile

Mine for now, I change it way too often (and post 'em in here way too often)
http://www.picamatic.com/show/2009/01/30/01/12/1896507_bigthumb.png

Sounds good to me, just don't ignore the terminal. wink

http://www.picamatic.com/show/2009/01/29/12/33/1888266_bigthumb.png

I can't seem to get pypanel to shrink the icons any more than that. sad

Edit: Nevermind, I was changing the wrong thing. tongue

Great Lake Swimmers - Passenger Song

Hah, my bad, didn't see that part. tongue

Have you tried this: http://www.tatanka.com.br/ies4linux/page/Main_Page ?