Я собрал вещи из нескольких разных мест и придумал этот сценарий, чтобы настроить Bluetooth JAMBOX, когда он был спарен. Конечно, ваш MAC будет отличаться. Поскольку я контролирую громкость JAMBOX с помощью приложения Clementine, в моем случае лучше всего работает 130%. Возможно, вы захотите изменить это, наряду с rhythmbox.png (это была единственная фотография, которую я мог найти на своем компьютере). Проверка ошибок является рудиментарной, но работает довольно надежно. Я поместил это в планшетный ПК для удобства на нетбуке ASUS.
#!/bin/bash
# setjambox connection setup
# Find the particulars of your environment with 'pactl list sinks'
# This script uses the sink name instead of the index number
# You also need libnotify-bin to run this script
# Enter the bluetooth MAC address of your device here
MAC=00:21:3C:9F:19:AD
# Make ready
# Convert device address per pulseaudio standards
DEV=$(echo $MAC|tr ':' '_')
TITLE="JAMBOX $MAC"
CONNECTED="Audio connection updated."
PROBLEM="Unable to update settings."
JBLOGO=/usr/share/icons/hicolor/48x48/apps/rhythmbox.png
# And go
pactl list short sink-inputs | while read stream; do
streamId=$(echo $stream | cut '-d ' -f1)
pactl move-sink-input "$streamId" bluez_sink.$DEV
done
pactl set-default-sink bluez_sink.$DEV
pactl set-card-profile bluez_card.$DEV a2dp
pactl set-sink-volume bluez_sink.$DEV 130%
if [ $? -eq 0 ]
then
notify-send -i $JBLOGO -t 3000 "$TITLE" "$CONNECTED"
else
notify-send -i gtk-dialog-warning -t 3000 "$TITLE" "$PROBLEM"
fi
Веб-браузер Ubuntu по умолчанию - Mozilla Firefox.
Чтобы установить Internet Explorer, вам необходимо сначала установить два компонента: Wine и cab extract. [ ! d1] sudo apt-get install wine cabextract
Чтобы завершить установку, вам необходимо загрузить Internet Explorer.
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
./ies4linux
Это должно открыть графический интерфейс. В случае использования командной строки:
Welcome, ! I'm IEs4Linux.
I can install IE 6, 5.5 and 5.0 for you easily and quickly.
You are just four 'enter's away from your IEs.
I'll ask you some questions now. Just answer y or n (default answer is the bold one)
IE 6 will be installed automatically.
Do you want to install IE 5.5 SP2 too? [ y / n ]
Выберите y для установки.
And do you want to install IE 5.01 SP2? [ y / n ]
IEs can be installed using one of the following locales:
EN-US PT-BR DE FR ES IT NL SV JA KO NO
DA CN TW FI PL HU AR HE CS PT RU EL TR
Default is EN-US. Hit enter to keep it or choose a different one:
Нажмите enter, чтобы выбрать язык по умолчанию или выбрать другой.
By default, I will install everything at /home/.../.ies4linux
I will also install Flash 9 plugin and create Desktop shortcuts.
Is that ok for you? (To configure advanced options type n) [ y / n ]
Теперь будет установлен Internet Explorer!
Веб-браузер Ubuntu по умолчанию - Mozilla Firefox.
Чтобы установить Internet Explorer, вам необходимо сначала установить два компонента: Wine и cab extract. [ ! d1] sudo apt-get install wine cabextract
Чтобы завершить установку, вам необходимо загрузить Internet Explorer.
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
./ies4linux
Это должно открыть графический интерфейс. В случае использования командной строки:
Welcome, ! I'm IEs4Linux.
I can install IE 6, 5.5 and 5.0 for you easily and quickly.
You are just four 'enter's away from your IEs.
I'll ask you some questions now. Just answer y or n (default answer is the bold one)
IE 6 will be installed automatically.
Do you want to install IE 5.5 SP2 too? [ y / n ]
Выберите y для установки.
And do you want to install IE 5.01 SP2? [ y / n ]
IEs can be installed using one of the following locales:
EN-US PT-BR DE FR ES IT NL SV JA KO NO
DA CN TW FI PL HU AR HE CS PT RU EL TR
Default is EN-US. Hit enter to keep it or choose a different one:
Нажмите enter, чтобы выбрать язык по умолчанию или выбрать другой.
By default, I will install everything at /home/.../.ies4linux
I will also install Flash 9 plugin and create Desktop shortcuts.
Is that ok for you? (To configure advanced options type n) [ y / n ]
Теперь будет установлен Internet Explorer!