Wednesday, November 9, 2011

HiDE Printers in Win network


------
http://ubuntuforums.org/showthread.php?p=6339435

sudo gedit /etc/samba/smb.conf

wins support = no
[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700
   available = no
   public = no

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = no
   read only = yes
   guest ok = no
   #available = no
   #public = no


============ printer restart
sudo /etc/init.d/ccpd restart

turn off PC speaker in Ubuntu


To turn off PC speaker
Add this to the end of /etc/modprobe.d/blacklist:
Code:
blacklist pcspkr

Restore grub after windows instillation with existing ubuntu


============== Resotre Grub loader:
http://ubuntuforums.org/showthread.php?t=224351&highlight=grub
Commands:
suod grub
find /boot/grub/stage1
---- it returns smth like "(hd0,5)"
root (hd0,5) // put here returned values
setup (hd0) // put here returned values
quit

Tuesday, November 8, 2011

ubuntu 10.04 installation and turning

1.Ubuntu Software Center (UCS):
in UCS menu Edit -> Software sources. Open tab "Other Software" select "partner" repository.
Install from following applications:
htop
gnote
chromium
gnome do
goldendict and mplayer
thunderbird
krusader
gimp
gajim
stelarium
mscorefonts
pidgin
pidgin plugin pack
k3b
oggconvert
Abobe flash plugin


Launch  System->Administration->"Synaptic package manager" (SPM)
Press "Reload" in SPM
search mark for installation  by right click and apply/install:
rar
arj
unace
rpm
lha
p7zip-full
alien
nautilus-open-terminal
ooo-thumbnailer

Remove OOO or install Libreoffice and adjust it.
http://www.ubuntugeek.com/install-libreoffice-in-ubuntu-11-0410-1010-04-using-ppa.html

Install DockbarX for vertical panel and adjust it.


Firefox.
install latest FF:

sudo add-apt-repository ppa:mozillateam/firefox-stable
sudo apt-get update
sudo apt-get install firefox
FF preferences:
in menu Edit -> Preferences, on General tab in Downloads group select "Always ask where to save files"
FF Addons:
- "Adblock Plus"
- "Download statusbar"
- "Compact menu" (after installation remove applicaton button from toolbar)
- "Tab mix plus" (after installation setup multirow for tabs Addon Prferences -> Display -> TabBar -> When Tab don't fit width = "Multi-row", Events -> Tab Closing -> Closing current tab: When closing current tab, focus = Last selected Tab)
- "Locationbar" (in preferences - Lincfication = "on bottom"; "breadcrumb for" = "each segment")
Result:


and Thunderbird and adjust them

Chromium:
in Preferences
on tab "Basics" select " Reopen the pages that were open last"
on tab "Under the Hood" in Download part select "Ask where to save each file before downloading".
Install Extensions: adblock plus


Development environment from USC:
meld - Compare and merge your files
regexxer - Search and replace using regular expressions
kodos - Visual regular expression editor
xmlcopyeditor - cool xml viewer and editor for Linux

install packages from SPM:
maven2
subversion

git-core
git-gui
giggle

sun-java6-jdk
sun-java6-source
sun-java6-javadoc
sun-java6-plugin

Mercurial from ppa, lauch in terminal:
sudo sudo add-apt-repository ppa:mercurial-ppa/releases
sudo apt-get update
sudo apt-get install mercurial



Monday, November 7, 2011

How to remove all table from schema

Oracle DB:

Approach1:
select 'Drop table MY_SCHEMA.' ||  TABLE_NAME || ';'
from ALL_TABLES where OWNER = 'MY_SCHEMA';

Approach2:
<TO_DO>

Sunday, November 6, 2011

Ubuntu 11.10 for Dell Vostro 1510

Dell Vostro 1510 with Ubuntu 11.10.

Critical problem that make may laptop unusable: http://askubuntu.com/questions/76410/black-area-with-stroked-circle-on-the-screen due to hardware problem, the same problem on Windows.
http://ubuntuforums.org/showthread.php?p=11454188#post11454188
tried to resolve problem by disassembling and switching off media keyboard, unfortunately media and power use the same power cable.

Quick installation of applications from
http://blog.sudobits.com/2011/10/30/best-applications-and-tweaks-for-ubuntu-11-10/

Good link for set-up and adjustments:
http://www.webupd8.org/2011/10/things-to-tweak-after-installing-ubuntu.html


Additional packages:
synaptic (I need it because 'ubuntu software center' badly search for packages)
goldendict
goldendict-wordnet
mplayer (required for goldendict sound pronunciation)
htop
meld
chromium-browser
k3b
vlc

krusader (configure)

skype (failed to increase volume level for microphone, without "auto-adjust by Skype" in preferences I do not hear myself in test call, but work fine)

qutim (could not be activated from systray)
Registered by me against 0.3b:
"systray icon blinking always" - https://bugs.launchpad.net/qutim/+bug/886920
"system tray please provide "Activate" in menu" - https://bugs.launchpad.net/qutim/+bug/886919

libreoffice menu as global:
lo-menubar (to put menu in top panel)

empathy(alwas show contact in groups by account - very inconvenient pl ease vote for issues
(https://bugs.launchpad.net/empathy/+bug/622221
https://bugzilla.gnome.org/show_bug.cgi?id=627658 )

gnote (put in "Startup Applications" as command "gnote --systray" to not show main menu on launch http://askubuntu.com/questions/49378/how-do-i-start-gnote-minimized)

goldendict
Download Russian/English Vocabulary

enruen-content-1.1.tar.bz2
WordNet3.0_1.0.zip

upzip it to /home/<USERNAME>/.goldendict/dic
download morphology from the same site (en_US_1.0.zip, ru_RU_1.0.zip) and unzip pit to /home/<USERNAME>/.goldendict/morph
). And register it in  "Dictionaries" in tab Morphology.
Setup it to launch at StartUp Applications "/usr/bin/goldendict"
In Goldendict preferences select "start to system tray".
Setup pathes to dictionaries and morphology at Edit > Dictionaries menu.

GnomeDo (become not necessary as key Win/Super open menu and smart lookup is provided like in GnomeDo)

Thunderbird (plugins does not work from previous installation)
List of must have plugins:
Attention: Previous version a located at addon page at the bottom Group "Version information", link "See complete version history".

For Thunderbird 7 you need manually download appropriate addons:
https://addons.mozilla.org/thunderbird/downloads/file/132694/lightning-1.0b7-tb+sm-linux.xpi
https://addons.mozilla.org/thunderbird/downloads/file/124637/provider_for_google_calendar-0.8-sm+tb.xpi
https://addons.mozilla.org/en-US/thunderbird/addon/addressbooktab
https://addons.mozilla.org/en-US/thunderbird/addon/google-contacts
https://addons.mozilla.org/en-US/thunderbird/addon/no-message-pane-sort-by-mouse
https://addons.mozilla.org/en-US/thunderbird/addon/smarttemplate4
https://addons.mozilla.org/en-US/thunderbird/addon/Filter_Copy/
https://addons.mozilla.org/en-US/thunderbird/addon/thunderbird-message-filter-imp
or https://addons.mozilla.org/en-US/thunderbird/addon/tb-import-export-wind-li-port
https://addons.mozilla.org/en-US/thunderbird/addon/send-filter is good for making mail as not read in Sent folder to tread it like not answered.

Synaptic (still required as in Software Center is impossible to find nautilus extensions "nautilus-open-terminal", "nautilus-image-converter", "ooo-thumbnailer",.... without logout "nautilus -q")

gajim (allow be in system tray:::
gsettings set com.canonical.Unity.Panel systray-whitelist "['Skype', 'gnote', 'gajim']"
to get existing list of allowed applications:
gsettings get com.canonical.Unity.Panel systray-whitelist
after this do logout)

How to view CPU and memory in Systray:
http://askubuntu.com/questions/30334/list-of-application-indicators

How to remove user indicator in top panel:
http://askubuntu.com/questions/62092/how-do-i-remove-the-me-user-indicator-from-the-panel

How to show icons in main/context menu:
sudo apt-get install gnome-tweak-tool
Launch "Advanced Settings", Theme group, "Menu Have Items" = "ON"
http://askubuntu.com/questions/49093/no-app-icons-in-menus/78721

How to change shortcut for changing keyboard layout to Capslock:
Right click over language icon on top panel "Keyboard Preferences", "Options....", "Keys to change layout" = Capslock


Top panel - how to show menu always:
bug: https://bugs.launchpad.net/ubuntu/+source/indicator-appmenu/+bug/879110
discussion: http://askubuntu.com/questions/25785/can-auto-hide-for-the-application-menu-be-turned-off-in-unity


Development environment from Synaptic:
meld - Compare and merge your files
regexxer - Search and replace using regular expressions
kodos - Visual regular expression editor
xmlcopyeditor - cool xml viewer and editor for Linux

install packages from SPM:
maven2
subversion

git-core
git-gui
giggle


Java - OpenJDK:
openjdk-6-jdk
openjdk-6-doc
openjdk-6-source

Still Problems:

Why Software Center can not open/launch application just after installation???!!!!
http://askubuntu.com/questions/79014/ubuntu-software-center-add-option-to-launch-application-after-installation

Problem with showing time in different locations. in 10.04 it was possible to show time in different locations. in 11.10 is possible too BUT by click over this time your change your location and time - occasional click and your time is changed.


Install Lzma to CentOS

http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-5aabf02717d5b6b12d47edbc5811404998926a1b

sudo yum install lzma