Sat, 27 Jul 2013
Keywords: rvm ruby 1.9.3 tmuxinator zsh
In order to upgrade tmuxinator I needed to run Ruby 1.9.3. So I installed rvm as follows:
$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
and added the following to my .zshrc:
if [[ -e ~/.rvm/scripts/rvm ]] then . ~/.rvm/scripts/rvm . ~/.rvm/gems/ruby-1.9.3-p448/gems/tmuxinator-0.6.2/completion/tmuxinator.zsh fi
then
$ rvm install 1.9.3 $ rvm use 1.9.3 --default $ gem install tmuxinator
I also had up change my tmuxinator config files:
$ cd ~/.tmuxinator $ perl -pi.bak -e 's/cli_args/tmux_options/' *.yml $ perl -pi.bak -e 's/tabs/windows/' *.yml $ perl -pi.bak -e 's/^project_//' *.yml $ perl -pi.bak -e 's/-2$/-l -2/' *.yml
The last change there is because with just the "-2" in tmux_options I got the error:
in `tmux_options': undefined method `strip' for -2:Fixnum (NoMethodError)
[/software/ruby] permanent link
Sat, 22 Jun 2013
Keywords: linux ubuntu postfix Return-Path Sender From
My family connects to my mail server in order to send mail. But everyone has mail addresses that differ from their login names. On sending mail, postfix would add a Return-Path header matching my username on the mail server. In order to have the correct Return-Path added, I created /etc/postfix/generic with the following content:
local_user1@pjcj.net user1@example.com local_user2@pjcj.net lonelyboy99@example.com
And added to /etc/postfix/main.cf:
smtp_generic_maps = hash:/etc/postfix/generic
Then run:
# postmap /etc/postfix/generic # service postfix restart
Passing that mail through another server running exim4, I added the following lines to /etc/exim4/exim4.conf:
no_local_from_check untrusted_set_sender = *