Thanks for the info. I actually did find a way to produce a custom img file without destroying the map set in the existing one; however, as you said this wasn't really what I wanted to do.
I'll give the tool you linked a try.
CrunchBang Linux Forums » Posts by fhsm
Thanks for the info. I actually did find a way to produce a custom img file without destroying the map set in the existing one; however, as you said this wasn't really what I wanted to do.
I'll give the tool you linked a try.
I've got a Garmin eTrex Legend Cx. I'm able to mount the device and get access to my Garmin/gmapsupp.img file. I have a .GPX file composed of data from the Open Street Map project that I'd like to make available on my device. I understand that this model loads a single .img file at the specified location, so in order to make the new information available I've got to merge it into the existing gmapssupp.img file.
I've found documentation on how to merge two .img files. I'm testing that out right now using a freely available .img. It's going to take a while to finish but looks like it should work.
In the mean time I still can't figure out how to convert a .gpx file into a .img. I found these instructions but haven't been able to make it happen using QLandkarte. Looks very do-able because I found a little Windows app for sale that does it.
Any ideas how to do the conversion?
I've got an EeePC 1005HA with Statler and Win 7 on it. For no apparent reason my bluetooth stopped working after I enabled and updated with backports. I've spent hours today trying to figure out what was going on. Both #! and win 7 claimed I didn't have the hardware installed at all.
I tried disable/enable in the BIOS and the fn+f2 tricks in windows. Rebooting, probing, drivers, new applets, etc without any success. Same story on windows. I finally solved the problem and thought I'd share. I've got no idea what the problem was, I've got no idea why this fixes it but:
Search and find your model (1005HA in my case)
Select win 7 as your OS (Linux doesn't work)
Go to utilities on the downloads links
Download the ASUS LiveUpdate utility.
Install it on Win 7
Run the LiveUpdate utility
It will find a BIOS update
Select and install the BIOS update (it gives easy to follow instructions)
Reboot into Win 7 & let be while it does a very long driver search
After a while it will say that it's installed v 2.1 of the bluetooth software.
Problem solved under both #! and Win 7.
I'd previously tried to install v2.1 of the bluetooth driver/UI from the ASUS downloads and it failed claiming I didn't have a bluetooth card in my system. Why this BIOS update worked I can't say. Why bluetooth stopped working after a backports update is equally mysterious. I realize this post is a bit irritating given that it requires windows; however, I'd have bought a copy of windows to get this damn thing working 3 hours ago, so here it is.
I've never done this; however, I've seen many people posting tutorials about encrypting a partition using TrueCrypt from windows and TrueCrypt on linux so that's where I'd start.
I've encrypted a USB drive with truecrypt before and it has a special mode for this which might be helpful as you experiment.
I suspect you'll have a hard time finding auto mount for truecrypt. I've never seen this described. It seems dramatically weaken the security gained from encryption.
If you get it sorted out please post your experience. I'd be interested in hearing how it goes.
Any reason that you couldn't just put the package on hold and leave backports enabled?
echo "network-manager hold" | sudo dpkg --set-selections I had the same problem and this seems to be working for me.
I'm not sure if most of what I've been reading really counts as hate. It seems more like a case of fall from grace to well above average. Nevertheless I'll agree that a lot of non-glowingly-positive / potentially negative things are showing up. I suspect most of this is the brooding of jilted lovers, frustrated that their years of comfortable Ubuntu use are coming to an end.
The reasons given for the departures are varied but seem to come in two forms:
1) Ubuntu has had a major "just works" halo for years. This is nolonger grounds for the level of enthusiasm that it was in 2006. To some extent this is Ubuntu become a victim of its own success: after 5 years of Ubuntu users are ready for the training wheels to come off and the Linux landscape they are venture into is more friendly now than it was 5 years ago in part as a result of Ubuntu's contributions. #! Is an example of this - born as an Ubuntu derivative, no harder to use than Ubuntu if the idea of a config file isn't new to you, just works. In sum we've got options now .
2) Something to do with Apple (envy|hate?) that can take many forms. Notably:
Technical:
Ubuntu has turned into more of a monolithic "product" than a distribution and thus and lost the compossibility that lets me make the desktop my own ... "like OS X"
Ubuntu is so wrapped up in "lickability" and usability that they've made it inefficient for power users ... "like iOS"
WTF would I want with a really frustrating GUI on top of *nix; I can get a even more beautiful one from Apple...
Cultural:
Autocratic ... "like Apple"
Proprietary services ... "like Apple"
Can't trust a corporation to protect users ... ex Apple
I want to be unique just like all my hipster friends which is why I never support the most popular item in a product category (except my iPhone of course)
I'm done with Ubuntu and I'm not looking back for all of these reasons, but mostly because riding my fixie takes my full attention and if I look over my shoulder I may fall damaging my vintage camera and skinny jeans.
Thanks for the tips. As I said it wasn't a problem really just a flag in the ground for what I consider an unexpected behavior.
Just installed Statler on my Eee PC 1005HA. It had Mint and 9.04 previously. In both the Fn keys were working. With Statler and eeepc-acpi-scripts installed only the screen brightness Fn+keys are working.
The various scripts seem to be working (ex $ /etc/acpi/actions/volume.sh down drops the volume). With xev Fn+F1, F2, F10, F11,F12 (hibernate, wi-fi, sound) don't trigger an event, while Fn+F5, Fn+F6 (screen brightness) do trigger events.
Suggestions?
I've got an EeePC 1005HA that came with Win 7. I wanted to dual boot it with Statler. My install went without any problems. The install recognized two windows partitions (main and recovery), both of which were incorrectly listed as Windows Vista. I let it go ahead and stick Grub in the MBR.
On my first reboot my Grub menu didn't include win 7. It just showed Statler and the recovery partition. This was a bit alarming but I decided to deal with it later and go through the customization script. After doing so I rebooted and Win 7 appeared in the boot menu.
I did a bit of searching and didn't see any reference to this problem. I thought I'd drop a note that it has happened and was easy to solve here.
Does anyone know how the pcmanfm drives list (ie the little tray down the left side of the default setup that shows various devices) gets populated?
I'm dual booting a new EeePC 1005HA that came with Windows 7 + a restoration partition and I keep /home on a separate partition so the list is mighty crowded. I'd like to hide the restore partition.
Just got a brand new 1005HA and thought it was time to come back to #! for a while. Thanks for this helpful post. Everything worked as described.
One addition: most of what I found around the web referenced XP as the default OS. Mine came with Windows 7 Starter, which I wanted to keep on the system for the occasional Windows need. The drive was already partitioned 4 ways:
C:\ 100 GB - os, user folder/my documents whatever it's called
D:\ 120 GB - totally empty
3rd partition 10 GB for recovery
4th partition 20 mb for the rapid boot
While the D drive made a perfect home for #! the installer was unwilling to partition it. After screwing around with things that didn't work I just loaded up gParted from the usb/liveCD as root and partitioned D into an extended partition split between /, /home and swap. The install was uneventful from that point on.
I'm not sure why the drive came split into two partitions from Asus or why the installer had listed the second partition as unusable but this approach works. Hopefully that will come in handy to someone down the road.
Or edit /usr/share/applications/mimeinfo.cache if you want total control over the list.
Another interesting solution and one that I considered initially (see link in my first post) but one that doesn't account for log rotation. As such it would really need to be a monthly cron job on /var/log/dpkg.log.1 and append a separately maintained log file or run through /var/log/dpkg.log.[n+1].
Even going over all the available logs this still isn't quite what I was after because it shows everything that has been installed (updates / dependencies etc), instead of just the primary package requested. For example if I ran this script over a concatenation of all my dpkg.log files midori would show up multiple times - once when I ran apt-get install midori and then every time I ran apt-get update and a new midori package was available.
All of that said accounting for removals (which I had not considered) is actually quite valuable. Something I'll have to think about.
Try running xev and confirming that it isn't hardware. Does the left alt show up as Alt_L and the right as Alt_R or does the right key identify as something else?
Both great ways to get a list of what is installed but not what you installed. The point of this script is to just log the actual primary package that you installed onto the base system. Not what came with the distro / dependences of things you installed. Anyone have an easy way of just getting at what you've installed?
Similar thread: http://crunchbanglinux.org/forums/topic ns-addons/
All of this is easy enough to make happen. If you just want to make it work and don't want to screw around you could get a NAS. I've got a couple of D-Link 323s / 321s that I'm happy with and have had fun hacking.
Of course if you want to learn about it then an old box is a good way to go. One word of caution:
2) Currently I have 3 computers: my main box, a netbook, and my PS3, I would like to easily share files between all of them
3) I'd also like to be able to access my server when outside my home network, e.g. when I'm at school or spending a weekend back in the states
Right now odds are good that the vast majority of your computer's security is coming from the $50 NAT router sitting between your broadband connection and your LAN. If you hang your server off that NAT router and make it WAN accessible while leaving the same box on your LAN you've created a much larger attack surface than you currently have. You are just one bad config file away from putting your whole network on the internet.
If you are just starting out I would be very careful about cracking open any ports in your router. I never open ports in my perimeter. If I need a service to be on the Internet I put it on a totally different connection. If you must put services from your network on the internet strongly consider putting them on separate segments of your LAN and making them only respond to an IP white list.
I'd put in another vote for Debian. It is almost as easy as Ubuntu but you won't get caught having to upgrade your system in six months.
Check out the FAQ under "super key"
Haven't been around much but this was worth logging in for: strong +1 for going back to Thunar.
Watch wikipedia get edited in real time: http://www.lkozma.net/wpv/
this is what wikitravel should be: http://atlasobscura.com/
Great idea, thanks!
Another interesting solution showed up on the .bashrc thread.
Little off topic but if you are interested in a .zshrc I've posted mine.
Okay so my setup is to have ~/.zsh/ with the following:
dot-zshrc
zsh_history
functions/
prompt_fhsm_setup
and then symlink ~/.zshrc to ~/.zsh/dot-zshrc (obviously the whole symlink dot-zshrc is optional but I like it to keep my backups cleaner).
~/.zsh/functions/prompt_fhsm_setup is the following:
# fhsm prompt theme
prompt_fhsm_help () {
cat <<'EOF'
This prompt is color-scheme-able. You can invoke it with:
prompt fhsm [ 8bit ] [<color1> [<color2> [<color3>] [<color4>] [<color5>]]
where the colors are for the hyphens, current directory, user,
host and user input respectively. The default colors are cyan, green,
magenta, blue and white. This theme requires a dark background.
If you have either UTF-8 or the `nexus' or `vga' console fonts or similar,
you can specify the `8bit' option to use 8-bit replacements for the
7-bit characters.
This is a rip off of the adam2 theme.
EOF
}
prompt_fhsm_setup () {
# Some can't be local
local prompt_gfx_tlc prompt_gfx_mlc prompt_gfx_blc
if [[ $1 == '8bit' ]]; then
shift
if [[ ${LC_ALL:-${LC_CTYPE:-$LANG}} = *UTF-8* ]]; then
prompt_gfx_tlc=$'\xe2\x94\x8c'
prompt_gfx_mlc=$'\xe2\x94\x9c'
prompt_gfx_blc=$'\xe2\x94\x94'
prompt_gfx_hyphen=$'\xe2\x94\x80'
else
prompt_gfx_tlc=$'\xda'
prompt_gfx_mlc=$'\xc3'
prompt_gfx_blc=$'\xc0'
prompt_gfx_hyphen=$'\xc4'
fi
else
prompt_gfx_tlc='.'
prompt_gfx_mlc='|'
prompt_gfx_blc='\`'
prompt_gfx_hyphen='-'
fi
# Default color scheme
prompt_fhsm_color1=${1:-'cyan'} # hyphens
prompt_fhsm_color2=${2:-'green'} # current directory
prompt_fhsm_color3=${3:-'magenta'} # user@
prompt_fhsm_color4=${4:-'blue'} # host
prompt_fhsm_color5=${5:-'white'} # user input
local prompt_gfx_bbox
prompt_gfx_tbox="%{$fg_bold[$prompt_fhsm_color1]%}${prompt_gfx_tlc}%{$fg_no_bold[$prompt_fhsm_color1]%}${prompt_gfx_hyphen}"
prompt_gfx_bbox="%{$fg_bold[$prompt_fhsm_color1]%}${prompt_gfx_blc}${prompt_gfx_hyphen}%{$fg_no_bold[$prompt_fhsm_color1]%}"
# This is a cute hack. Well I like it, anyway.
prompt_gfx_bbox_to_mbox=$'%{\e[A\r'"$fg_bold[$prompt_fhsm_color1]${prompt_gfx_mlc}$fg_no_bold[$prompt_fhsm_color1]${prompt_gfx_hyphen}"$'\e[B%}'
prompt_l_paren="%{$fg_bold[grey]%}("
prompt_r_paren="%{$fg_bold[grey]%})"
prompt_user_host="%{$fg_bold[$prompt_fhsm_color4]%}%n%{$fg_no_bold[$prompt_fhsm_color4]%}@%{$fg_no_bold[$prompt_fhsm_color3]%}%m"
prompt_line_1a="$prompt_gfx_tbox$prompt_l_paren%{$fg_bold[$prompt_fhsm_color2]%}%~$prompt_r_paren%{$fg_no_bold[$prompt_fhsm_color1]%}"
prompt_line_1b="$prompt_l_paren$prompt_user_host$prompt_r_paren%{$fg_no_bold[$prompt_fhsm_color1]%}${prompt_gfx_hyphen}"
prompt_line_2="$prompt_gfx_bbox${prompt_gfx_hyphen}%{$fg_bold[white]%}"
prompt_char="%(!.#.>)"
precmd () { prompt_fhsm_precmd; setopt promptsubst }
preexec () { prompt_fhsm_preexec }
}
prompt_fhsm_precmd () {
setopt noxtrace localoptions extendedglob
local prompt_line_1
prompt_fhsm_choose_prompt
PS1="$prompt_line_1$prompt_newline$prompt_line_2%{$fg_bold[white]%}$prompt_char %{$fg_bold[$prompt_fhsm_color5]%}"
PS2="$prompt_line_2%{$prompt_gfx_bbox_to_mbox$fg_bold[white]%}%_> %{$fg_bold[$prompt_fhsm_color5]%}"
PS3="$prompt_line_2%{$prompt_gfx_bbox_to_mbox$fg_bold[white]%}?# %{$fg_bold[$prompt_fhsm_color5]%}"
RPS1=$'%{\e[1;30m%}<%T%{\e[0m%}%(?..%{\e[0;31m%} %?%{\e[0m%})'
#this is a bit unclear but the %{ %} is tells zsh not to count those chars into the prompt length, ie escape seq.
#then the \e[...m part is a color seqence, \e[0m is the color reset seqence
#%T is just expanded to the time
#Next is a test for the exit code of the previous command using %?
#This test uses the %([char].[true str].[false str]) construct to test for non zero exit codes
#Zero exit codes print nothing because the true str is blank, the .., but the false string prints the exit code in red
}
prompt_fhsm_choose_prompt () {
local prompt_line_1a_width=${#${(S%%)prompt_line_1a//\%\{*\%\}}}
local prompt_line_1b_width=${#${(S%%)prompt_line_1b//\%\{*\%\}}}
local prompt_padding_size=$(( COLUMNS
- prompt_line_1a_width
- prompt_line_1b_width ))
# Try to fit in long path and user@host.
if (( prompt_padding_size > 0 )); then
local prompt_padding
eval "prompt_padding=\${(l:${prompt_padding_size}::${prompt_gfx_hyphen}:)_empty_zz}"
prompt_line_1="$prompt_line_1a$prompt_padding$prompt_line_1b"
return
fi
prompt_padding_size=$(( COLUMNS - prompt_line_1a_width ))
# Didn't fit; try to fit in just long path.
if (( prompt_padding_size > 0 )); then
local prompt_padding
eval "prompt_padding=\${(l:${prompt_padding_size}::${prompt_gfx_hyphen}:)_empty_zz}"
prompt_line_1="$prompt_line_1a$prompt_padding"
return
fi
# Still didn't fit; truncate
local prompt_pwd_size=$(( COLUMNS - 5 ))
prompt_line_1="$prompt_gfx_tbox$prompt_l_paren%{$fg_bold[$prompt_fhsm_color2]%}%$prompt_pwd_size<...<%~%<<$prompt_r_paren%{$fg_no_bold[$prompt_fhsm_color1]$prompt_gfx_hyphen%}"
}
prompt_fhsm_preexec () {
print -n "$reset_color"
}
prompt_fhsm_setup "$@"~/.zsh/dot-zshrc contains the following:
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
#------------------------------------------////
# Basic Configuration:
#------------------------------------------////
#kill the beep alarm
setopt no_beep
#Make a history file
export HISTSIZE=2000
export HISTFILE="$HOME/.zsh/zsh_history"
export SAVEHIST=$HISTSIZE #this line is required to save the file
#enable auto-correct
setopt correctall
#turn on tab completion and make it fancy
autoload -U compinit && compinit
zstyle ':completion:*:descriptions' format '%U%B%d%b%u'
zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b'
#fancy colors and prompts are set later
#add custom functions to path (important for prompt)
fpath=(~/.zsh/functions $fpath)
#remove right prompt after command is run (helpful if copying and pasting)
#setopt TRANSIENT_RPROMPT
#------------------------------------------////
# Colors:
#------------------------------------------////
black='\e[0;30m'
blue='\e[0;34m'
green='\e[0;32m'
cyan='\e[0;36m'
red='\e[0;31m'
purple='\e[0;35m'
brown='\e[0;33m'
lightgray='\e[0;37m'
darkgray='\e[1;30m'
lightblue='\e[1;34m'
lightgreen='\e[1;32m'
lightcyan='\e[1;36m'
lightred='\e[1;31m'
lightpurple='\e[1;35m'
yellow='\e[1;33m'
white='\e[1;37m'
nc='\e[0m'
#Colors for less pager (man pages)
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # end mode
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
#------------------------------------------////
# Custom Prompt:
#------------------------------------------////
# Nice basic prompt
#export PS1="%n@%m:%~%# "
#export RPS1=" <%T"
#export PS2="%_> "
# Colorful basic prompt option 1
#autoload -U colors && colors
#export PS1="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% "
#export RPS1="%{$fg[cyan]%}<%T%{$reset_color%}"
#export PS2="%_> "
# Colorful basic prompt option 2 { Better than option 1 }
#export PS1=$'%{\e[1;32m%}%n%{\e[0m%}%{\e[1;34m%}@%{\e[1;31m%}%m %{\e[1;34m%}%~ %{\e[0m%}%% '
#export RPS1=$'%{\e[1;30m%}<%T%{\e[0m%}'
#export PS2=$'%{\e[0;37m%} %_>%{\e[0m%} '
# Fancy prompt system see /usr/share/zsh/functions/Prompts/ for files
# the "fhsm" configuration is loaded from ~/.zsh/functions, which is added to the path above.
# List options with: prompt -l
autoload -U promptinit && promptinit
prompt fhsm
#------------------------------------------////
# Aliases:
#------------------------------------------////
# Useful aliases (building on the color enablers)
alias ll='ls -l'
alias la='ls -Al'
alias lb='ls -Al --block-size=1MB'
alias reload='source ~/.zshrc'
alias biggest='BLOCKSIZE=1048576; du -x | sort -nr | head -10'
# Shortcuts
alias home='cd ~/'
alias documents='cd ~/documents'
alias downloads='cd ~/downloads'
alias images='cd ~/images'
alias videos='cd ~/videos'
## Sudo fixes
alias install='~/bin/install_and_log install'
alias remove='sudo apt-get remove'
alias update='sudo apt-get update'
alias upgrade='sudo apt-get update && sudo apt-get upgrade'
alias dist-upgrade='sudo apt-get update && sudo apt-get dist-upgrade'
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 search="apt-cache search"
##Info
alias stamp='date "+%Y-%m-%d %a %H:%M"'
alias da='date "+%Y-%m-%d %A %T %Z"'
#------------------------------------------////
# Custom Extract / Compress:
#------------------------------------------////
# 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
}
# 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%%/}/"; }
#------------------------------------------////
# Other Custom Functions:
#------------------------------------------////
# Get weather (replace the ##### in the url with your own zipcode, call it by typing weather)
weather ()
{
declare -a WEATHERARRAY
WEATHERARRAY=( `elinks -dump "http://www.google.com/search?hl=en&lr=&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&q=weather+#####&btnG=Search" | grep -A 5 -m 1 "Weather for" | grep -v "Add to "`)
echo ${WEATHERARRAY[@]}
}
upinfo ()
{
echo -ne "\t ";uptime | awk /'up/ {print $3,$4,$5,$6,$7,$8,$9,$10}'
}
#------------------------------------------////
# Custom Alias:
#------------------------------------------////
#Flash
alias flash_dump='rm -rf ~/.macromedia/Flash_Player/#SharedObjects/ZXAEK53N/* && rm -rf ~/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/*'
#------------------------------------------////
# Welcome Info:
#------------------------------------------////
clear
echo -e "${LIGHTGRAY}";figlet " Z-Shell #!";
echo -ne "${red}Today is:\t\t${cyan}" `date`; echo ""
echo -e "${red}Kernel Information: \t${cyan}" `uname -smr`
echo -ne "${red}Uptime is: \t${cyan}";upinfo;echo ""I realize this is a LOT of config and it may not be to your taste but It should at least give you an idea of what can be done w/ zsh. I keep zsh bound to super+z and a nice simple bash bound to super+t, plus tilda running on F1. I find I use bash in tilda about 40% of the time, zsh about 50% of the time and bash in terminator the rest of the time.
I've pulled all my custom alias junk so that this will be a cleaner starting point for you. I did include a couple of extra prompts just so you could have some other material to work with.
I look forward to seeing what you end up doing.
Posts found [ 1 to 25 of 435 ]
CrunchBang Linux Forums » Posts by fhsm
Forums powered by PunBB. Hosted by Linode.
Copyright © CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.