Linux-SWAT
Forum Addict!
- Joined
- Feb 13, 2010
- Messages
- 9,194
MiLou-- is now all alone .
#!/bin/bash
pwd=$(pwd)
export PS1='\w\$ '
umask 022
export PATH=$pwd/j4-dmenu-desktop:$pwd/dmenu:$pwd/usr/local/bin/:$pwd/usr/local/lib/surfraw:$PATH
export LD_LIBRARY_PATH=$pwd/usr/lib:$pwd/usr/local/lib:/lib:/usr/lib:$LD_LIBRARY_PATH
if [ ! -d home ];then
mkdir home
fi
export HOME=$pwd/home
export XDG_DATA_HOME=$pwd/home
if [ ! -d $HOME/Cache ];then
mkdir $HOME/Cache
fi
if [ ! -d $HOMEConfig ];then
mkdir $HOME/Config
fi
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/Cache"
export XDG_CONFIG_HOME="$HOME/Config"
export XDG_DATA_DIRS="$pwd/usr/local/share:/usr/local/share:/usr/share"
export XDG_CONFIG_DIRS="$pwd/usr/local/etc/xdg/:/etc/xdg"
./dmenuWebSearch.sh
#!/bin/bash
/usr/bin/nohup /usr/pandora/scripts/pnd_run.sh -p "/media/DEDGEDORA/pandora/apps/qupzilla-app.pnd" -m -b "qupzilla-app"
export GTK2_RC_FILES="/home/$USER"
pwd="/mnt/utmp/qupzilla-app"
export LD_LIBRARY_PATH="$pwd/lib":/usr/lib:/lib:$LD_LIBRARY_PATH
export HOME="$pwd/home"
export PATH="$pwd/bin:$PATH"
export XDG_CACHE_HOME="$pwd/home/Cache"
export XDG_CONFIG_HOME="$pwd/home/Config"
export XDG_DATA_DIRS="$pwd/share":XDG_DATA_DIRS
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_SCALE_FACTOR=1
export QT_XKB_CONFIG_ROOT="$pwd/share/X11"
export QTWEBKIT_PLUGIN_PATH="$pwd/plugins"
export QT_PLUGIN_PATH="$pwd/plugins"
export DICPATH="$pwd/share/myspell/dicts"
if [ ! -e $pwd/home ]; then
echo "no config found. creating default-config"
mkdir home
mkdir home/Cache
mkdir home/Config
cp -R init/.config $pwd/home
fi
if [ -e $pwd/home/.config/qupzilla/profiles/default/certificates/ca-bundle.crt ]; then
echo "no certs found, copying"
rm $pwd/home/.config/qupzilla/profiles/default/certificates/*.crt
fi
## requires surfraw, add below to your .bashrc
## PATH=/usr/lib/surfraw:${PATH}
## default script uses rofi, if you use dmenu just replace "rofi -dmenu" with "dmenu", you can simply mask that line and unmask the next line with dmenu
## put your browser command in BROWSER=<-->, defaults to chromium
## put your bookmarks & history file in appropriate place, defaults to w3m bookmarks and history file
## EXAMPLE
## "youtube movie trailers" to search movie trailers ay youtube.com
## "youtube.com" to open default youtube page
## similarly "google world war 2" , "wiki world war", "aur telegram-bin", "awiki mutt", "pubmed giant cell tumor" etc.
BROWSER=qupzilla
BOOKMARKS=~/bookmarks.html
HISTORY=~/qupzilla/profiles/default/browsedata.db
grep -o 'http[^"]*' $BOOKMARKS > /tmp/bookmarks
grep -o 'http[^"]*' $HISTORY >> /tmp/bookmarks
# cat /tmp/bookmarks | rofi -dmenu -location 6 -lines 10 -width 100 -p $BROWSER: > /tmp/x
cat /tmp/bookmarks | dmenu -p $BROWSER: > /tmp/x
check=$(wc -l < /tmp/x)
(( check == 0)) && exit
awk '{ print $1 }' /tmp/x > /tmp/y
awk '{ print $2, $3, $4, $5, $6, $7, $8 }' /tmp/x > /tmp/z
grep -o http /tmp/x && $BROWSER $(cat /tmp/x) && exit
grep -o "www\." /tmp/x && $BROWSER $(cat /tmp/x) && exit
grep -o "\.com" /tmp/x && $BROWSER $(cat /tmp/x) && exit
grep -o "\.in" /tmp/x && $BROWSER $(cat /tmp/x) && exit
grep -o "\.org" /tmp/x && $BROWSER $(cat /tmp/x) && exit
grep -o awiki /tmp/y && archwiki -browser=$BROWSER $(< /tmp/z) && exit
grep -o wiki /tmp/y && wikipedia -browser=$BROWSER $(< /tmp/z) && exit
grep -o imdb /tmp/y && imdb -browser=$BROWSER $(< /tmp/z) && exit
grep -o aur /tmp/y && aur -browser=$BROWSER $(< /tmp/z) && exit
grep -o pkg /tmp/y && archpkg -browser=$BROWSER $(< /tmp/z) && exit
grep -o google /tmp/y && google -browser=$BROWSER $(< /tmp/z) && exit
grep -o dict /tmp/y && webster -browser=$BROWSER $(< /tmp/z) && exit
grep -o dictu /tmp/y && urban -browser=$BROWSER $(< /tmp/z) && exit
grep -o torrent /tmp/y && piratebay -browser=$BROWSER $(< /tmp/z) && exit
grep -o pubmed /tmp/y && pubmed -browser=$BROWSER $(< /tmp/z) && exit
grep -o youtube /tmp/y && youtube -browser=$BROWSER $(< /tmp/z) && exit
S -browser=$BROWSER $(cat /tmp/x)
sleep 1
unset LD_LIBRARY_PATH
unset HOME
unset PATH
unset XDG_CACHE_HOME
unset XDG_CONFIG_HOME
unset XDG_DATA_DIRS
unset QT_AUTO_SCREEN_SCALE_FACTOR
unset QT_SCALE_FACTOR
unset QT_XKB_CONFIG_ROOT
unset QTWEBKIT_PLUGIN_PATH
unset QT_PLUGIN_PATH
unset DICPATH
/usr/bin/nohup /usr/pandora/scripts/pnd_run.sh -p "/media/DEDGEDORA/pandora/apps/qupzilla-app.pnd" -b "qupzilla-app" -u
sleep 1
/usr/pandora/scripts/pnd_run.sh -p "/media/DEDGEDORA/pandora/apps/qupzilla-app.pnd" -b "qupzilla-app" -u &
edged-openpandora:/media/DEDGEDORA/downloads/mlite$ make
cd src/ && ( test -e Makefile || /mnt/utmp/codeblocks/qt5/bin/qmake5 /media/DEDGEDORA/downloads/mlite/src/src.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/media/DEDGEDORA/downloads/mlite/src'
make[1]: Nothing to be done for 'first'.
make[1]: Leaving directory '/media/DEDGEDORA/downloads/mlite/src'
cd tests/ && ( test -e Makefile || /mnt/utmp/codeblocks/qt5/bin/qmake5 /media/DEDGEDORA/downloads/mlite/tests/tests.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/media/DEDGEDORA/downloads/mlite/tests'
( test -e Makefile.ut_mdesktopentry || /mnt/utmp/codeblocks/qt5/bin/qmake5 /media/DEDGEDORA/downloads/mlite/tests/ut_mdesktopentry.pro -o Makefile.ut_mdesktopentry ) && make -f Makefile.ut_mdesktopentry
make[2]: Entering directory '/media/DEDGEDORA/downloads/mlite/tests'
lrelease -idbased ut_mdesktopentry.ts -qm ut_mdesktopentry.qm
lrelease: could not find a Qt installation of ''
Makefile.ut_mdesktopentry:483: recipe for target 'ut_mdesktopentry.qm' failed
make[2]: *** [ut_mdesktopentry.qm] Error 1
make[2]: Leaving directory '/media/DEDGEDORA/downloads/mlite/tests'
Makefile:44: recipe for target 'sub-ut_mdesktopentry-pro-make_first' failed
make[1]: *** [sub-ut_mdesktopentry-pro-make_first] Error 2
make[1]: Leaving directory '/media/DEDGEDORA/downloads/mlite/tests'
Makefile:69: recipe for target 'sub-tests-make_first' failed
make: *** [sub-tests-make_first] Error 2
edged-openpandora:/media/DEDGEDORA/downloads/telepathy-qt-0/telepathy-qt-0.9.7$ cmake .
-- The C compiler identification is GNU 6.2.0
-- The CXX compiler identification is GNU 6.2.0
-- Check for working C compiler: /mnt/utmp/codeblocks/usr/bin/cc
-- Check for working C compiler: /mnt/utmp/codeblocks/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /mnt/utmp/codeblocks/usr/bin/c++
-- Check for working CXX compiler: /mnt/utmp/codeblocks/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden - yes
-- Checking to see if CXX compiler accepts flag -fvisibility-inlines-hidden
-- Checking to see if CXX compiler accepts flag -fvisibility-inlines-hidden - yes
-- Checking to see if CXX compiler accepts flag -Wdeprecated-declarations
-- Checking to see if CXX compiler accepts flag -Wdeprecated-declarations - yes
-- Performing Test all_cxx_result
-- Performing Test all_cxx_result - Success
-- Performing Test extra_cxx_result
-- Performing Test extra_cxx_result - Success
-- Performing Test sign-compare_cxx_result
-- Performing Test sign-compare_cxx_result - Success
-- Performing Test pointer-arith_cxx_result
-- Performing Test pointer-arith_cxx_result - Success
-- Performing Test format-security_cxx_result
-- Performing Test format-security_cxx_result - Success
-- Performing Test init-self_cxx_result
-- Performing Test init-self_cxx_result - Success
-- Performing Test non-virtual-dtor_cxx_result
-- Performing Test non-virtual-dtor_cxx_result - Success
-- Performing Test error_cxx_result
-- Performing Test error_cxx_result - Success
-- Performing Test missing-field-initializers_cxx_result
-- Performing Test missing-field-initializers_cxx_result - Success
-- Performing Test noerror_missing-field-initializers_cxx_result
-- Performing Test noerror_missing-field-initializers_cxx_result - Success
-- Performing Test unused-parameter_cxx_result
-- Performing Test unused-parameter_cxx_result - Success
-- Performing Test noerror_unused-parameter_cxx_result
-- Performing Test noerror_unused-parameter_cxx_result - Success
-- Performing Test unused-local-typedefs_cxx_result
-- Performing Test unused-local-typedefs_cxx_result - Success
-- Performing Test noerror_unused-local-typedefs_cxx_result
-- Performing Test noerror_unused-local-typedefs_cxx_result - Success
-- Performing Test all_c_result
-- Performing Test all_c_result - Success
-- Performing Test extra_c_result
-- Performing Test extra_c_result - Success
-- Performing Test declaration-after-statement_c_result
-- Performing Test declaration-after-statement_c_result - Success
-- Performing Test shadow_c_result
-- Performing Test shadow_c_result - Success
-- Performing Test strict-prototypes_c_result
-- Performing Test strict-prototypes_c_result - Success
-- Performing Test missing-prototypes_c_result
-- Performing Test missing-prototypes_c_result - Success
-- Performing Test sign-compare_c_result
-- Performing Test sign-compare_c_result - Success
-- Performing Test nested-externs_c_result
-- Performing Test nested-externs_c_result - Success
-- Performing Test pointer-arith_c_result
-- Performing Test pointer-arith_c_result - Success
-- Performing Test format-security_c_result
-- Performing Test format-security_c_result - Success
-- Performing Test init-self_c_result
-- Performing Test init-self_c_result - Success
-- Performing Test error_c_result
-- Performing Test error_c_result - Success
-- Performing Test missing-field-initializers_c_result
-- Performing Test missing-field-initializers_c_result - Success
-- Performing Test noerror_missing-field-initializers_c_result
-- Performing Test noerror_missing-field-initializers_c_result - Success
-- Performing Test unused-parameter_c_result
-- Performing Test unused-parameter_c_result - Success
-- Performing Test noerror_unused-parameter_c_result
-- Performing Test noerror_unused-parameter_c_result - Success
-- Performing Test unused-local-typedefs_c_result
-- Performing Test unused-local-typedefs_c_result - Success
-- Performing Test noerror_unused-local-typedefs_c_result
-- Performing Test noerror_unused-local-typedefs_c_result - Success
CMake Error at cmake/modules/FindQt.cmake:64 (MESSAGE):
CMake was unable to find any Qt versions, put qmake in your path, or set
QTDIR/QT_QMAKE_EXECUTABLE.
Call Stack (most recent call first):
CMakeLists.txt:56 (find_package)
CMake Error at CMakeLists.txt:72 (if):
if given arguments:
"EQUAL" "4"
Unknown arguments specified
-- Configuring incomplete, errors occurred!
See also "/media/DEDGEDORA/downloads/telepathy-qt-0/telepathy-qt-0.9.7/CMakeFiles/CMakeOutput.log".
edged-openpandora:/media/DEDGEDORA/downloads/pebble-master/pebble-master$ make
cd daemon/ && ( test -e Makefile || /mnt/utmp/codeblocks/qt5/bin/qmake5 /media/DEDGEDORA/downloads/pebble-master/pebble-master/daemon/daemon.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/media/DEDGEDORA/downloads/pebble-master/pebble-master/daemon'
g++ -c -pipe -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -O2 -std=gnu++11 -std=c++11 -Wall -W -D_REENTRANT -fPIC -DAPP_VERSION=\"\" -DQUAZIP_STATIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_BLUETOOTH_LIB -DQT_DBUS_LIB -DQT_CONTACTS_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -I. -Iquazip -I/mnt/utmp/codeblocks/qt5/include/mlite5 -isystem /usr/include/mlite5 -I/mnt/utmp/codeblocks/qt5/include/QtDBus -I/mnt/utmp/codeblocks/qt5/include -I/mnt/utmp/codeblocks/qt5/include/QtCore -isystem /mnt/utmp/codeblocks/usr/include -I/mnt/utmp/codeblocks/qt5/include/QtGui -I/mnt/utmp/codeblocks/qt5/include/QtQml -I/mnt/utmp/codeblocks/qt5/include/QtNetwork -I/mnt/utmp/codeblocks/qt5/include/QtBluetooth -I/mnt/utmp/codeblocks/qt5/include/QtContacts -I/mnt/utmp/codeblocks/qt5/include/QtPositioning -I. -I/mnt/utmp/codeblocks/qt5/mkspecs/linux-pandora-g++ -o daemon.o daemon.cpp
g++ -Wl,-O1 -Wl,-rpath-link,/mnt/utmp/codeblocks/qt5/lib -o pebbled daemon.o manager.o voicecallmanager.o voicecallhandler.o notificationmanager.o watchconnector.o appmanager.o musicmanager.o datalogmanager.o unpacker.o appmsgmanager.o jskitmanager.o appinfo.o jskitobjects.o packer.o bankmanager.o uploadmanager.o bundle.o qioapi.o JlCompress.o quaadler32.o quacrc32.o quagzipfile.o quaziodevice.o quazip.o quazipdir.o quazipfile.o quazipfileinfo.o quazipnewinfo.o unzip.o zip.o moc_manager.o moc_voicecallmanager.o moc_voicecallhandler.o moc_notificationmanager.o moc_watchconnector.o moc_settings.o moc_appmanager.o moc_musicmanager.o moc_datalogmanager.o moc_appmsgmanager.o moc_jskitmanager.o moc_appinfo.o moc_jskitobjects.o moc_bankmanager.o moc_uploadmanager.o moc_bundle.o moc_quagzipfile.o moc_quaziodevice.o moc_quazipfile.o watch_adaptor.o moc_watch_adaptor.o -L/mnt/utmp/codeblocks/qt5/lib -lmlite5 -L/mnt/utmp/codeblocks/usr/lib -licui18n -licuuc -licudata -lz -lQt5Gui -lQt5Qml -lQt5Network -lQt5Bluetooth -lQt5DBus -lQt5Contacts -lQt5Positioning -lQt5Core -lGLESv2 -lpthread
daemon.o: In function `Settings::Settings(QObject*)':
daemon.cpp:(.text._ZN8SettingsC2EP7QObject[_ZN8SettingsC5EP7QObject]+0x40): undefined reference to `MDConfGroup::MDConfGroup(QString const&, QObject*, MDConfGroup::BindOption)'
daemon.cpp:(.text._ZN8SettingsC2EP7QObject[_ZN8SettingsC5EP7QObject]+0xe8): undefined reference to `MDConfGroup::resolveMetaObject(int)'
daemon.cpp:(.text._ZN8SettingsC2EP7QObject[_ZN8SettingsC5EP7QObject]+0x204): undefined reference to `MDConfGroup::sync()'
daemon.cpp:(.text._ZN8SettingsC2EP7QObject[_ZN8SettingsC5EP7QObject]+0x24c): undefined reference to `MDConfGroup::~MDConfGroup()'
daemon.o: In function `Settings::~Settings()':
daemon.cpp:(.text._ZN8SettingsD2Ev[_ZN8SettingsD5Ev]+0xe4): undefined reference to `MDConfGroup::~MDConfGroup()'
daemon.o: In function `Settings::~Settings()':
daemon.cpp:(.text._ZN8SettingsD0Ev[_ZN8SettingsD5Ev]+0xe4): undefined reference to `MDConfGroup::~MDConfGroup()'
moc_settings.o: In function `Settings::qt_metacast(char const*)':
moc_settings.cpp:(.text+0x8f8): undefined reference to `MDConfGroup::qt_metacast(char const*)'
moc_settings.o: In function `Settings::qt_metacall(QMetaObject::Call, int, void**)':
moc_settings.cpp:(.text+0x918): undefined reference to `MDConfGroup::qt_metacall(QMetaObject::Call, int, void**)'
moc_settings.o:(.data.rel.ro+0x8): undefined reference to `typeinfo for MDConfGroup'
moc_settings.o:(.data.rel.ro+0x44): undefined reference to `MDConfGroup::staticMetaObject'
collect2: error: ld returned 1 exit status
Makefile:485: recipe for target 'pebbled' failed
make[1]: *** [pebbled] Error 1
make[1]: Leaving directory '/media/DEDGEDORA/downloads/pebble-master/pebble-master/daemon'
Makefile:43: recipe for target 'sub-daemon-make_first' failed
make: *** [sub-daemon-make_first] Error 2
-fuse-ld=gold -fuse-linker-plugin
edged-openpandora:/media/DEDGEDORA/downloads/pebble-master/pebble-master$ make
cd daemon/ && ( test -e Makefile || /mnt/utmp/codeblocks/qt5/bin/qmake5 /media/DEDGEDORA/downloads/pebble-master/pebble-master/daemon/daemon.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/media/DEDGEDORA/downloads/pebble-master/pebble-master/daemon'
g++ -Wl,-O1 -Wl,-rpath-link,/mnt/utmp/codeblocks/qt5/lib -fuse-ld=gold -fuse-linker-plugin -o pebbled daemon.o manager.o voicecallmanager.o voicecallhandler.o notificationmanager.o watchconnector.o appmanager.o musicmanager.o datalogmanager.o unpacker.o appmsgmanager.o jskitmanager.o appinfo.o jskitobjects.o packer.o bankmanager.o uploadmanager.o bundle.o qioapi.o JlCompress.o quaadler32.o quacrc32.o quagzipfile.o quaziodevice.o quazip.o quazipdir.o quazipfile.o quazipfileinfo.o quazipnewinfo.o unzip.o zip.o moc_manager.o moc_voicecallmanager.o moc_voicecallhandler.o moc_notificationmanager.o moc_watchconnector.o moc_settings.o moc_appmanager.o moc_musicmanager.o moc_datalogmanager.o moc_appmsgmanager.o moc_jskitmanager.o moc_appinfo.o moc_jskitobjects.o moc_bankmanager.o moc_uploadmanager.o moc_bundle.o moc_quagzipfile.o moc_quaziodevice.o moc_quazipfile.o watch_adaptor.o moc_watch_adaptor.o -L/mnt/utmp/codeblocks/usr/lib -L/mnt/utmp/codeblocks/qt5/lib -lmlite5 -licui18n -licuuc -licudata -lz -lQt5Gui -lQt5Qml -lQt5Network -lQt5Bluetooth -lQt5DBus -lQt5Contacts -lQt5Positioning -lQt5Core -lGLESv2 -lpthread
daemon.o:daemon.cpp:function Settings::Settings(QObject*): error: undefined reference to 'MDConfGroup::MDConfGroup(QString const&, QObject*, MDConfGroup::BindOption)'
daemon.o:daemon.cpp:function Settings::Settings(QObject*): error: undefined reference to 'MDConfGroup::resolveMetaObject(int)'
daemon.o:daemon.cpp:function Settings::Settings(QObject*): error: undefined reference to 'MDConfGroup::sync()'
daemon.o:daemon.cpp:function Settings::Settings(QObject*): error: undefined reference to 'MDConfGroup::~MDConfGroup()'
daemon.o:daemon.cpp:function Settings::~Settings(): error: undefined reference to 'MDConfGroup::~MDConfGroup()'
daemon.o:daemon.cpp:function Settings::~Settings(): error: undefined reference to 'MDConfGroup::~MDConfGroup()'
moc_settings.o:moc_settings.cpp:function Settings::qt_metacast(char const*): error: undefined reference to 'MDConfGroup::qt_metacast(char const*)'
moc_settings.o:moc_settings.cpp:function Settings::qt_metacall(QMetaObject::Call, int, void**): error: undefined reference to 'MDConfGroup::qt_metacall(QMetaObject::Call, int, void**)'
moc_settings.o:moc_settings.cpp:typeinfo for Settings: error: undefined reference to 'typeinfo for MDConfGroup'
moc_settings.o:moc_settings.cpp:Settings::staticMetaObject: error: undefined reference to 'MDConfGroup::staticMetaObject'
collect2: error: ld returned 1 exit status
Makefile:485: recipe for target 'pebbled' failed
make[1]: *** [pebbled] Error 1
make[1]: Leaving directory '/media/DEDGEDORA/downloads/pebble-master/pebble-master/daemon'
Makefile:43: recipe for target 'sub-daemon-make_first' failed
make: *** [sub-daemon-make_first] Error 2