Instalação e configuração do celular Nokia 6670 no Ubuntu 8.10
Publicado por Tiago Hillebrandt 09/12/2008
[ Hits: 6.636 ]
Homepage: http://tiagohillebrandt.eti.br
Script para instalação e configuração do celular Nokia 6670 através do Obex!
Após executar, basta acessar o menu "Aplicativos > Acessórios > Obextool".
#!/bin/bash
#
# Script para configuração do celular Nokia 6670 no Ubuntu 8.10 - 29/11/2008
# Tiago Hillebrandt [ tiagoscd@yahoo.com.br ]
#
nokia_6670() {
clear
echo "---------------------------------------------------------------------"
echo "INSTALAÇÃO E CONFIGURAÇÃO DO CELULAR NOKIA 6670"
echo "---------------------------------------------------------------------"
printf "Atualizando os repositórios..."
sudo apt-get update >/dev/null 2>&1
printf " [ OK ]\n"
printf "Instalando a suíte de aplicativos para Nokia..."
sudo apt-get install obexfs obexftp obextool -y >/dev/null 2>&1
printf " [ OK ]\n"
printf "Criando backup das configurações da suíte de aplicativos..."
sudo cp /etc/obextool/obextool.cfg /etc/obextool/obextool.cfg.bkp
printf " [ OK ]\n"
printf "Alterando as configurações da suíte de aplicativos para o modelo Nokia 6670..."
sudo echo "###
### Obex tool configuration file
###
set ObexConfig(cfg_file,version) \"0.33\"
###
### Language setting - 2 characters or environment
### keywords LOCALE, LC_MESSAGES, LC_ALL and LANG
### LOCALE honours \$LC_ALL, \$LC_MESSAGES and
### \$LANG in order
###
# set ObexConfig(config,language) en
# set ObexConfig(config,language) de
# set ObexConfig(config,language) da
set ObexConfig(config,language) LOCALE
# set ObexConfig(config,language) LC_MESSAGES
# set ObexConfig(config,language) LC_ALL
# set ObexConfig(config,language) LANG
###
### Date format in the file listings
### Format descriptors:
### Y - 4 digit year
### Z - 2 digit year
### M - 2 digit month
### D - 2 digit day
### H - 2 digit hour
### N - 2 digit minute
### S - 2 digit seconds
### Note: detailed list view becomes sorted alphabetically!
###
# set ObexConfig(file,datefmt) \"D.M.Y H:M\"
set ObexConfig(file,datefmt) \"Y-M-D H:M\"
###
### Temporary file path and prefix
###
set ObexConfig(temp,prefix) \"/tmp/otmp\"
# set ObexConfig(temp,prefix) \"~/otmp\"
### if encoding is wanted...
set ObexConfig(config,encoding) \"utf-8\"
### ... else activate next line ...
# set ObexConfig(cfg,encoding) \"\"
### if html quoting is wanted...
set ObexConfig(config,quote_map) {\""\" \"'\" \"'\" \"'\"}
### ... else activate next line ...
# set ObexConfig(config,quote_map) \"\"
### Siemens S65V requires the trailing slash on obexftp ls
set ObexConfig(config,add_lslash) \"/\"
### ... deactivate \"feature\" if not working for you
# set ObexConfig(config,add_lslash) \"\"
### Nokia 6670 requires the trailing slash on all directory names
set ObexConfig(config,dir_slash) 1
# set ObexConfig(config,dir_slash) 0
###
### Enable memory status display - only works with Siemens :-(
###
# set ObexConfig(config,memstatus) 1
set ObexConfig(config,memstatus) 0
###
### Enable file move command - only works with Siemens :-(
###
# set ObexConfig(config,filemove) 1
set ObexConfig(config,filemove) 0
###
### Busy cursor
###
set ObexConfig(gui,cursor) watch
###
### Baloon help options
###
set ObexConfig(gui,help_options) {-bg #ffffc0 -font {Helvetica 10}}
###
### Memory status bar colors (red, green)
###
set ObexConfig(gui,status_bg) #C00000
set ObexConfig(gui,status_fg) #00C000
###
### Initial main window size on startup
###
set ObexConfig(gui,initsize) \"800x600\"
###
### Global dialog fonts
###
set ObexConfig(font,labels) {Helvetica 12 bold}
set ObexConfig(font,entries) {Helvetica 12}
set ObexConfig(font,buttons) {Helvetica 12}
set ObexConfig(font,frames) {Helvetica 12 bold}
###
### File list line height and font (tree_mode)
###
set ObexConfig(tree,font) {Helvetica 12}
set ObexConfig(tree,height) 21
###
### File list line height and font (list_mode)
###
set ObexConfig(list,font) {Helvetica 12}
set ObexConfig(list,lineheight) 22
###
### Icon view text parameters (icon_mode)
###
set ObexConfig(icon,font) {Helvetica 12}
set ObexConfig(icon,txt_maxlen) 12
set ObexConfig(icon,lineheight) 18
###
### Icon view position parameters
###
set ObexConfig(icon,xstart) 50
set ObexConfig(icon,ystart) 40
set ObexConfig(icon,x_offs) 80
set ObexConfig(icon,y_offs) 100
###
### Text window parameters (file viewer, file/memory info...)
###
set ObexConfig(textwin,font) {fixed 12 bold}
set ObexConfig(textwin,width) 60
set ObexConfig(textwin,height) 20
###
### ObexFTP command options
### Have a look into the obexftp man page
###
set ObexConfig(fileopt,get) \"--get\"
set ObexConfig(fileopt,put) \"--put\"
set ObexConfig(fileopt,list) \"--list\"
set ObexConfig(fileopt,move) \"--move\"
set ObexConfig(fileopt,info) \"--info\"
set ObexConfig(fileopt,chdir) \"--chdir\"
set ObexConfig(fileopt,delete) \"--delete\"
set ObexConfig(fileopt,version) \"--version\"
###
### System command for obexftp wrapper
### Will be ignored if OBEXCMD is specified
###
set ObexConfig(obexftp,command) \"\$OBEXCFG/obexwrap.sh\"
###
### Initial mode of list window
###
# set ObexConfig(list,initmode) detail
set ObexConfig(list,initmode) listb
# set ObexConfig(list,initmode) icons
puts \"Found configuration file [info script] version \$ObexConfig(cfg_file,version) ...\"" > /etc/obextool/obextool.cfg
printf " [ OK ]\n"
printf "Criando atalho no menu \"Aplicativos > Acessórios\"..."
sudo touch /usr/share/applications/obextool.desktop
sudo echo "[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=gnome-terminal -e 'sudo obextool --obexcmd \"obexftp -u 1\"'
Icon=/usr/share/icons/gnome/scalable/devices/phone.svg
Terminal=false
Name=Obextool
GenericName=
Comment=Suíte de Aplicativos para Nokia
Categories=Application;Utility;" > /usr/share/applications/obextool.desktop
printf " [ OK ]\n"
}
if [ "$USER" == "root" ]; then
nokia_6670
else
echo "Permissão negada. Tente usar \"sudo ./nokia_6670.sh\"!"
fi
bookmaker.bash: Script para imprimir livros com 4 páginas em uma folha
Instalando BeEF Framework no Ubuntu
Conexão Remota Linux No Windows
Intalação do Thunderbird - Debian
Nenhum comentário foi encontrado.
Cirurgia para acelerar o openSUSE em HD externo via USB
Void Server como Domain Control
Modo Simples de Baixar e Usar o bash-completion
Monitorando o Preço do Bitcoin ou sua Cripto Favorita em Tempo Real com um Widget Flutuante
Como quebrar senha usando john the ripper
[Resolvido] VirtualBox can't enable the AMD-V extension
Como verificar a saúde dos discos no Linux
Como instalar , particionar, formatar e montar um HD adicional no Linux?
Podem me chamar de 1mbecil :) (18)
Duas Pasta Pessoal Aparecendo no Ubuntu 24.04.3 LTS (0)
Não consigo instalar distro antiga no virtualbox nem direto no hd (18)









