Tuesday, December 31, 2013

rc.xml Shortcut keybindings in Openbox

Hi There..

The Shortcuts menu keys on your openbox Desktop Session configured by editing the file rc.xml found under $HOME/.config/openbox/rc.xml and will be invoked every time you login to your openbox Desktop Session.

The Standard file is located under /etc/xdg/openbox/rc.xml, which will overwritten on a new install.
rc.xml is XML file with a Set of Standard Tags which are self explanatory.

You will need to Edit this file ~/.config/openbox/rc.xml using your favorite editor by going to the <keyboard> section of this file and start adding your custom key combinations and invoke the executables.

Below are some Examples from my ~/.config/openbox/rc.xml

<keybind>

  <action name="name">

    <command>"command"</command>

  </action>

</keybind>



    <keybind key="W-space">

      <action name="ShowMenu">

        <menu>root-menu</menu>

      </action>

    </keybind>

    <keybind key="W-Tab">       <action name="ShowMenu">         <menu>client-list-combined-menu</menu>       </action>     </keybind>
  <keybind key="W-x">       <action name="Execute">         <startupnotify>           <enabled>true</enabled>           <name>Logout</name>         </startupnotify>         <command>cb-exit</command>       </action>     </keybind>  
*> Here W is also referred as the Super Key or just the Windows Logs Key on your PC.

For More information on how to configure your custom keybindings Visit #!wiki page here page and Bindings help here.

I have uploaded the Standard keybind Entries of rc.xml file here. So, that you can copy and paste it to your openbox rc.xml, To effect the changes Logout and then Login back and now you can enjoy your new keybinding Shortcut Changes And Get Lazy.

Hope This Helps!

Friday, December 27, 2013

Oracle VirtualBox config on Linux and network Adapter settings


Here's a simple procedure for configuring Virtual Box 4.1.18 from debian repository on Crunch Bang #! as some of my colleagues had asked me.

The below is a screenshot of the packages that would be installed during a virtualbox install

wiz@cb-DOC:~/$ sudo apt-get --simulate install virtualbox
Reading package lists... Done

Building dependency tree      

Reading state information... Done

The following extra packages will be installed:

  cpp-4.6 dkms gcc-4.6 gcc-4.6-base libgsoap2 libqt4-opengl libvncserver0 linux-headers-3.2.0-4-amd64

  linux-headers-3.2.0-4-common linux-headers-amd64 linux-kbuild-3.2 virtualbox-dkms virtualbox-qt

Suggested packages:

  gcc-4.6-locales gcc-4.6-multilib libmudflap0-4.6-dev gcc-4.6-doc libgcc1-dbg libgomp1-dbg

  libquadmath0-dbg libmudflap0-dbg binutils-gold libvncserver0-dbg virtualbox-guest-additions-iso vde2

The following NEW packages will be installed:

  cpp-4.6 dkms gcc-4.6 gcc-4.6-base libgsoap2 libqt4-opengl libvncserver0 linux-headers-3.2.0-4-amd64

  linux-headers-3.2.0-4-common linux-headers-amd64 linux-kbuild-3.2 virtualbox virtualbox-dkms

  virtualbox-qt

0 upgraded, 14 newly installed, 0 to remove and 0 not upgraded.

Inst libqt4-opengl (4:4.8.2+dfsg-11 Debian:7.3/stable [amd64])

Inst libvncserver0 (0.9.9+dfsg-1 Debian:7.3/stable [amd64])

Inst libgsoap2 (2.8.7-2 Debian:7.3/stable [amd64])

Inst virtualbox (4.1.18-dfsg-2+deb7u1 Debian:7.3/stable [amd64])

Inst dkms (2.2.0.3-1.2 Debian:7.3/stable [all])

Inst virtualbox-dkms (4.1.18-dfsg-2+deb7u1 Debian:7.3/stable [all])

Inst virtualbox-qt (4.1.18-dfsg-2+deb7u1 Debian:7.3/stable [amd64])

Inst gcc-4.6-base (4.6.3-14 Debian:7.3/stable [amd64])

Inst cpp-4.6 (4.6.3-14 Debian:7.3/stable [amd64])

Inst gcc-4.6 (4.6.3-14 Debian:7.3/stable [amd64])

Inst linux-headers-3.2.0-4-common (3.2.51-1 Debian:7.3/stable [amd64])

Inst linux-kbuild-3.2 (3.2.17-1 Debian:7.3/stable [amd64])

Inst linux-headers-3.2.0-4-amd64 (3.2.51-1 Debian:7.3/stable [amd64])

Inst linux-headers-amd64 (3.2+46 Debian:7.3/stable [amd64])

Conf libqt4-opengl (4:4.8.2+dfsg-11 Debian:7.3/stable [amd64])

Conf libvncserver0 (0.9.9+dfsg-1 Debian:7.3/stable [amd64])

Conf libgsoap2 (2.8.7-2 Debian:7.3/stable [amd64])

Conf virtualbox (4.1.18-dfsg-2+deb7u1 Debian:7.3/stable [amd64])

Conf dkms (2.2.0.3-1.2 Debian:7.3/stable [all])

Conf virtualbox-dkms (4.1.18-dfsg-2+deb7u1 Debian:7.3/stable [all])

Conf virtualbox-qt (4.1.18-dfsg-2+deb7u1 Debian:7.3/stable [amd64])

Conf gcc-4.6-base (4.6.3-14 Debian:7.3/stable [amd64])

Conf cpp-4.6 (4.6.3-14 Debian:7.3/stable [amd64])

Conf gcc-4.6 (4.6.3-14 Debian:7.3/stable [amd64])

Conf linux-headers-3.2.0-4-common (3.2.51-1 Debian:7.3/stable [amd64])

Conf linux-kbuild-3.2 (3.2.17-1 Debian:7.3/stable [amd64])

Conf linux-headers-3.2.0-4-amd64 (3.2.51-1 Debian:7.3/stable [amd64])

Conf linux-headers-amd64 (3.2+46 Debian:7.3/stable [amd64])



Now going about installing the Guest addition Package,
Download the Oracle Vbox extension package from here



To fireup the Extension menu usethe key combination (CTRL+G)
Navigate through File--> Preferences-->Extensions.
















Once downloaded It can be browsed from the downloaded location usually in one's Download Directory `$HOME/Downloads`







Browse the Downloaded extension package and
proceed with self explanatory installation procedure.

















This completes the VirtualBox Extension Pack installation

                                                                               







The Download can be launched from Menu bar, Devices-->Install Guest Additions..

(HOST keys+D)




The extension package will be downloaded to .VirtualBox Directory in one's home directory `$HOME`



Alternatively one can install the extension package from host machine's cli as below:


root@cb-DOC:~# cd .VirtualBox/
root@cb-DOC:~/.VirtualBox# mkdir /root/vboxext; mount -t iso9660 VBoxGuestAdditions_4.1.18.iso /root/vboxext
root@cb-DOC:~/.VirtualBox# cd root/vboxext/
root@cb-DOC:~/vboxext# ls -ltha
total 48M
drwxr-xr-x 3 root root 4.0K Dec 27 16:49 ..
dr-xr-xr-x 4 root root 2.0K Jun  5  2012 .
dr-xr-xr-x 3 root root 2.0K Jun  5  2012 32Bit
dr-xr-xr-x 2 root root 2.0K Jun  5  2012 64Bit
-r-xr-xr-x 1 root root  20M Jun  5  2012 VBoxSolarisAdditions.pkg
-r-xr-xr-x 1 root root 7.4M Jun  5  2012 VBoxLinuxAdditions.run
-r-xr-xr-x 1 root root 6.9K Jun  5  2012 autorun.sh
-r-xr-xr-x 1 root root 5.4K Jun  5  2012 runasroot.sh
-r-xr-xr-x 1 root root  13M Jun  5  2012 VBoxWindowsAdditions-amd64.exe
-r-xr-xr-x 1 root root 7.1M Jun  5  2012 VBoxWindowsAdditions-x86.exe
-r-xr-xr-x 1 root root 277K Jun  5  2012 VBoxWindowsAdditions.exe
-r-xr-xr-x 1 root root  647 Aug 17  2011 AUTORUN.INF

Now, Running the executable VBoxLinuxAdditions.run
 
root@cb-DOC:~/vboxext# ./VBoxLinuxAdditions.run


You can go about creating the Virtual Network configuration, for Nat interface
 and for Host-only Network, toggle your tab

Do mention it on your new type of adapter in VM settings, also accessible <ctlr + s >

 

Mounting the Shared folder from your host on to your linux VM

Login as root to your Linux VM.

#mkdir ~/vm-share
#mount -t  vboxsf <share-name-host machine> ~/vm-share

Enjoy seamless share access.

HTH

Sunday, December 22, 2013

Wine Tools Installation on ubuntu 8.04

Wine Tools Installation on ubuntu 8.04 Wine is an emulation software which when installed on linux presents the scope to run the Linux executables on top of linux by calling Linux API system calls. This though is a excerpt from the wine installation notes way back in 2008.
$ tar jxvf wine-0.9.21.tar.bz2
$ cd wine-0.9.21
$ ./configure
$ cat ../cont32.diff | patch -p1
$ make
$ sudo make install
$ cd ..
$ tar zxvf winetools-0.9jo-III.tar.gz
$ cd winetools-0.9jo-III
$ sudo ./install
$ cd ..
$ wine contiuum038setup.exe
$ unzip contiuum039pr1.zip
$ mv menu039pr1.dll ~/.wine/drive_c/Program\ Files/Continuum/
$ mv Contiuum039pr1.exe ~/.wine/drive_c/Program\ Files/Continuum/
$ winecfg
HTH

vi Editor

Opening up the vi editor in RO mode
view or vi -R
Various methods of exiting the vi editor mode
ZZ to save and exit
:e! to returns you to the last saved version of the file, so you can start over.
:q! to wipe out any changes and exit.
:w! to force write.
:sh to create a shell 
:!rm junkfile
:w <file_name_to_save>
You can also download the apvlv which is a GTK "VI like PDF Reader" as a startup. So, that you can learn the VI editor environment faster.

Auto complete under vi Editor,

In Edit mode type <ctrl-P> and Voila.. it suggests the auto complete by predicting the remaining characters to complete the word from a similar beginning words in your file.

Enjoy your Experience.

Installing Gentoo Gnu/Linux

Installing Gentoo Linux, .. Here's the steps on howto make the chrooting into it and compiling your way into a fresh Gentoo Install
mount /dev/sda5 /mnt/gentoo/
mount /dev/sda3 /mnt/gentoo/boot/
mount -t proc none /mnt/gentoo/proc
cd /mnt/gentoo/
chroot /mnt/gentoo/ /bin/bash
env-update && source /etc/profile
More to come..

building and make-ing

Small tutorial on how to Build and install from *.tar tarball files

.tar also known as tarball, an archive format for electronic data and software. Most Linux tarball contains a source code for software. If you are new to Linux I recommend using apt-get, rpm and yum command to install all binary packages.

Tarballs are a group of files in one file. Tarball files have the extension .tar.gz, .tgz or .tar.bz2. Most open source software use tarballs to distribute programs/source codes.
# 1: Uncompress tarball

To uncompress them, execute the following command(s) depending on the extension:
$ tar zxf file.tar.gz

$ tar zxf file.tgz

$ tar jxf file.tar.bz2

$ tar jxf file.tbz2


Now change directory
$ ls

$ cd path-to-software/


# 2: Build and install software

Generally you need to type 3 commands as follows for building and compiling software:
$ sudo ./configure

$ sudo make

$ sudo make install


./configure will configure the software to ensure your system has the necessary functionality and libraries to successfully compile the package
make will compile all the source files into executable binaries.
Finally, make install will install the binaries and any supporting files into the appropriate locations.

# 3: Read INSTALL / README file

Each tarball comes with installation and build instructions. Open INSTALL or README file for more information:

Tweaking Synaptic Touch Pad

wiz@cb-DOC:~/C-src$ cat /usr/share/X11/xorg.conf.d/50-synaptics.conf
Section "InputClass"
          Identifier "touchpad catchall"
          Driver "synaptics"
          MatchIsTouchpad "on"
          Option "TapButton" "1"
          Option "TapButton" "2"
          Option "TapButton" "3"
   Option "VertEdgeScroll" "on"
          Option "VertTwoFingerScroll" "on"
#          Option "HorizEdgeScroll" "on"
#          Option "HorizTwoFingerScroll" "on"
#          Option "CircularScrolling" "on"
#          Option "CircScrollTrigger" "0"
          Option "EmulateTwoFingerMinZ" "40"
          Option "EmulateTwoFingerMinW" "8"
          Option "CoastingSpeed" "0"
EndSection
Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
        Option "TapButton1" "1"
        Option "VertEdgeScroll" "1"
EndSection

Enabling support for Broadcom Wireless driver on Debian flavored linux

Enabling support for Broadcom Wireless driver on Debian flavored linux

root@Crunch-Doc:~#lshw -C network

  *-network UNCLAIMED

       description: Network controller

       product: BCM43225 802.11b/g/n

       vendor: Broadcom Corporation

       physical id: 0

       bus info: pci@0000:02:00.0

       version: 01

       width: 64 bits

       clock: 33MHz

       capabilities: pm msi pciexpress cap_list

       configuration: latency=0

       resources: memory:b2400000-b2403fff

      


Enabling support for Broadcom Wireless driver on Debian flavored linux
root@Crunch-Doc:~# apt-get update && apt-get install firmware-brcm80211

Hit http://packages.crunchbang.org waldorf Release.gpg

Hit http://packages.crunchbang.org waldorf Release                                     

Hit http://deb.opera.com stable Release.gpg                                            

Hit http://packages.crunchbang.org waldorf/main amd64 Packages                         

Hit http://deb.opera.com stable Release                                       

Hit http://deb.opera.com stable/non-free amd64 Packages                                

Ign http://packages.crunchbang.org waldorf/main Translation-en_IN                      

Ign http://packages.crunchbang.org waldorf/main Translation-en                         

Hit http://http.debian.net wheezy Release.gpg                       

Ign http://deb.opera.com stable/non-free Translation-en_IN          

Ign http://deb.opera.com stable/non-free Translation-en

Hit http://http.debian.net wheezy Release     

Hit http://http.debian.net wheezy/main amd64 Packages

Hit http://http.debian.net wheezy/contrib amd64 Packages                               

Hit http://http.debian.net wheezy/non-free amd64 Packages

Hit http://http.debian.net wheezy/contrib Translation-en

Hit http://http.debian.net wheezy/main Translation-en

Hit http://http.debian.net wheezy/non-free Translation-en

Hit http://security.debian.org wheezy/updates Release.gpg

90% [Waiting for headers]

90% [Waiting for headers]

90% [Waiting for headers]

90% [Waiting for headers]

90% [Waiting for headers]

90% [Waiting for headers]

90% [Waiting for headers]



90% [Waiting for headers]



90% [Waiting for headers]

90% [Waiting for headers]



90% [Waiting for headers]



90% [Waiting for headers]



90% [Waiting for headers]

90% [Waiting for headers]

90% [Waiting for headers]





90% [Waiting for headers]

90% [Waiting for headers]



Hit http://security.debian.org wheezy/updates Release

Hit http://security.debian.org wheezy/updates/main amd64 Packages

Hit http://security.debian.org wheezy/updates/main Translation-en

Reading package lists... Done

Reading package lists... Done

Building dependency tree      

Reading state information... Done

The following NEW packages will be installed:

  firmware-brcm80211

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

Need to get 55.6 kB of archives.

After this operation, 161 kB of additional disk space will be used.

Get:1 http://http.debian.net/debian/ wheezy/non-free firmware-brcm80211 all 0.36+wheezy.1 [55.6 kB]

Fetched 55.6 kB in 3s (15.0 kB/s)            

Selecting previously unselected package firmware-brcm80211.

(Reading database ... 91504 files and directories currently installed.)

Unpacking firmware-brcm80211 (from .../firmware-brcm80211_0.36+wheezy.1_all.deb) ...

Setting up firmware-brcm80211 (0.36+wheezy.1) ...



root@Crunch-Doc:~# modprobe -r brcm

brcmsmac  brcmutil 



root@Crunch-Doc:~# modprobe -r brcmsmac ; modprobe brcmsmac

Now to confirm, verify the wireless driver detected
root@Crunch-Doc:~# iwconfig

lo        no wireless extensions.



wlan0     IEEE 802.11bgn  ESSID:off/any 

          Mode:Managed  Access Point: Not-Associated   Tx-Power=19 dBm  

          Retry  long limit:7   RTS thr:off   Fragment thr:off

          Encryption key:off

          Power Management:off

         

eth0      no wireless extensions.



root@Crunch-Doc:~#

HTH

Choose Login Session in Debian

Open the slim.conf file
wiz@cb-DOC:~$ vi /etc/slim.conf
Yank the following lines login_cmd in the slim.conf

 36 # login_cmd           exec /bin/sh - ~/.xinitrc %session

 37 login_cmd           exec /bin/bash -login /etc/X11/Xsession %session

# Commands executed when starting and exiting a session.

In Crunchbang you need to enable the session chooser by pressing F1-Key and heres how to enable to get the session options at login menu.

# Available sessions (first one is the default).

 52 # The current chosen session name is replaced in the login_cmd

 53 # above, so your login command can handle different sessions.

 54 # see the xinitrc.sample file shipped with slim sources

 55 #sessions            default,startxfce4,openbox,ion3,icewm,wmaker,blackbox,awesome

 56 sessions            default,openbox-session,awesome,startxfce4,wm

Yank the sessions line and include your available sessions on your desktop to choose from the login menu to show up while you login the next time.

Problem with apt-get and Source Lists

wiz@wiz-PC:/var/lib/apt$ file E:Problem with MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages
E:Problem:                                                                               ERROR: cannot open `E:Problem' (No such file or directory)
with:                                                                                    ERROR: cannot open `with' (No such file or directory)
MergeList:                                                                               ERROR: cannot open `MergeList' (No such file or directory)
/var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages: HTML document, ASCII text, with CRLF line terminators
wiz@wiz-PC:/var/lib/apt$ file /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages/var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages: HTML document, ASCII text, with CRLF line terminators
wiz@wiz-PC:/var/lib/apt$ file /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages
/var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages: HTML document, ASCII text, with CRLF line terminators
wiz@wiz-PC:/var/lib/apt$ sudo rm /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages
wiz@wiz-PC:/var/lib/apt$ sudo apt-get update
Ign http://archive.ubuntu.com precise InRelease
Ign http://in.archive.ubuntu.com precise InRelease                 
Ign http://in.archive.ubuntu.com precise-backports InRelease        
Ign http://in.archive.ubuntu.com precise-updates InRelease          
Ign http://extras.ubuntu.com precise InRelease                      
Ign http://security.ubuntu.com precise-security InRelease           
Get:1 http://archive.ubuntu.com precise Release.gpg [198 B]         
Get:2 http://in.archive.ubuntu.com precise Release.gpg [198 B]                                       
Get:3 http://in.archive.ubuntu.com precise-backports Release.gpg [198 B]                             
Get:4 http://extras.ubuntu.com precise Release.gpg [72 B]                                 
Get:5 http://security.ubuntu.com precise-security Release.gpg [198 B]                              
Hit http://archive.ubuntu.com precise Release                                                        
Get:6 http://in.archive.ubuntu.com precise-updates Release.gpg [198 B]                   
Ign http://archive.ubuntu.com precise Release                                                       
Hit http://extras.ubuntu.com precise Release                        
Get:7 http://security.ubuntu.com precise-security Release [49.6 kB]                      
Ign http://extras.ubuntu.com precise Release                                                     
Hit http://in.archive.ubuntu.com precise Release                                                 
Ign http://archive.ubuntu.com precise/main Sources/DiffIndex                                                             
Ign http://in.archive.ubuntu.com precise Release                                                                         
Ign http://extras.ubuntu.com precise/main Sources/DiffIndex                                         
Ign http://archive.ubuntu.com precise/restricted Sources/DiffIndex                                  
Ign http://extras.ubuntu.com precise/main i386 Packages/DiffIndex             
Ign http://extras.ubuntu.com precise/main TranslationIndex                                          
Hit http://archive.ubuntu.com precise/main Sources                                                  
Hit http://extras.ubuntu.com precise/main Sources                             
Hit http://archive.ubuntu.com precise/restricted Sources                                      
Hit http://extras.ubuntu.com precise/main i386 Packages              
Get:8 http://security.ubuntu.com precise-security/main Sources [58.4 kB]
Hit http://in.archive.ubuntu.com precise-backports Release                   
Get:9 http://in.archive.ubuntu.com precise-updates Release [49.6 kB]          
Ign http://in.archive.ubuntu.com precise-backports Release                                                   
Get:10 http://security.ubuntu.com precise-security/universe Sources [18.1 kB]                                
Ign http://in.archive.ubuntu.com precise/main Sources/DiffIndex                         
Ign http://in.archive.ubuntu.com precise/universe Sources/DiffIndex                                     
Ign http://in.archive.ubuntu.com precise/restricted Sources/DiffIndex          
Ign http://in.archive.ubuntu.com precise/multiverse Sources/DiffIndex
Get:11 http://in.archive.ubuntu.com precise/main i386 Packages [1,274 kB]
Ign http://extras.ubuntu.com precise/main Translation-en_IN                              
Get:12 http://security.ubuntu.com precise-security/restricted Sources [1,950 B]                        
Get:13 http://security.ubuntu.com precise-security/multiverse Sources [1,392 B]            
Get:14 http://security.ubuntu.com precise-security/main i386 Packages [215 kB]                                  
Ign http://extras.ubuntu.com precise/main Translation-en                                                       
Get:15 http://security.ubuntu.com precise-security/universe i386 Packages [59.2 kB]
Get:16 http://security.ubuntu.com precise-security/restricted i386 Packages [3,968 B]
Get:17 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,388 B]
Hit http://security.ubuntu.com precise-security/main TranslationIndex 
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en   
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Ign http://in.archive.ubuntu.com precise/universe i386 Packages/DiffIndex
Ign http://in.archive.ubuntu.com precise/restricted i386 Packages/DiffIndex
Ign http://in.archive.ubuntu.com precise/multiverse i386 Packages/DiffIndex
Hit http://in.archive.ubuntu.com precise/main TranslationIndex        
Hit http://in.archive.ubuntu.com precise/multiverse TranslationIndex  
Hit http://in.archive.ubuntu.com precise/restricted TranslationIndex  
Hit http://in.archive.ubuntu.com precise/universe TranslationIndex    
Ign http://in.archive.ubuntu.com precise-backports/main Sources/DiffIndex
Ign http://in.archive.ubuntu.com precise-backports/universe Sources/DiffIndex
Ign http://in.archive.ubuntu.com precise-backports/restricted Sources/DiffIndex
Ign http://in.archive.ubuntu.com precise-backports/multiverse Sources/DiffIndex
Ign http://in.archive.ubuntu.com precise-backports/main i386 Packages/DiffIndex
Ign http://in.archive.ubuntu.com precise-backports/universe i386 Packages/DiffIndex
Ign http://in.archive.ubuntu.com precise-backports/restricted i386 Packages/DiffIndex
Ign http://in.archive.ubuntu.com precise-backports/multiverse i386 Packages/DiffIndex
Hit http://in.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://in.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://in.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://in.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://in.archive.ubuntu.com precise/main Sources                 
Get:18 http://in.archive.ubuntu.com precise-updates/main Sources [195 kB]
Get:19 http://in.archive.ubuntu.com precise-updates/universe Sources [66.2 kB]
Get:20 http://in.archive.ubuntu.com precise-updates/restricted Sources [4,419 B]
Get:21 http://in.archive.ubuntu.com precise-updates/multiverse Sources [4,241 B]
Get:22 http://in.archive.ubuntu.com precise-updates/main i386 Packages [449 kB]
Get:23 http://in.archive.ubuntu.com precise-updates/universe i386 Packages [162 kB]
Get:24 http://in.archive.ubuntu.com precise-updates/restricted i386 Packages [8,374 B]
Get:25 http://in.archive.ubuntu.com precise-updates/multiverse i386 Packages [9,661 B]
Hit http://in.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://in.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://in.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://in.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://in.archive.ubuntu.com precise/universe Sources             
Hit http://in.archive.ubuntu.com precise/restricted Sources           
Hit http://in.archive.ubuntu.com precise/multiverse Sources           
Hit http://in.archive.ubuntu.com precise/universe i386 Packages       
Hit http://in.archive.ubuntu.com precise/restricted i386 Packages     
Hit http://in.archive.ubuntu.com precise/multiverse i386 Packages     
Hit http://in.archive.ubuntu.com precise/main Translation-en          
Hit http://in.archive.ubuntu.com precise/multiverse Translation-en    
Hit http://in.archive.ubuntu.com precise/restricted Translation-en    
Hit http://in.archive.ubuntu.com precise/universe Translation-en      
Hit http://in.archive.ubuntu.com precise-backports/main Sources       
Hit http://in.archive.ubuntu.com precise-backports/universe Sources   
Hit http://in.archive.ubuntu.com precise-backports/restricted Sources 
Hit http://in.archive.ubuntu.com precise-backports/multiverse Sources 
Hit http://in.archive.ubuntu.com precise-backports/main i386 Packages 
Hit http://in.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://in.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://in.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://in.archive.ubuntu.com precise-backports/main Translation-en
Hit http://in.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://in.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://in.archive.ubuntu.com precise-backports/universe Translation-en
Hit http://in.archive.ubuntu.com precise-updates/main Translation-en  
Hit http://in.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://in.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://in.archive.ubuntu.com precise-updates/universe Translation-en
Fetched 2,633 kB in 50s (52.6 kB/s)                                   
Reading package lists... Error!
W: GPG error: http://archive.ubuntu.com precise Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: GPG error: http://in.archive.ubuntu.com precise Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: GPG error: http://in.archive.ubuntu.com precise-backports Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_precise_restricted_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.


Here's what you need to do..

wiz@wiz-PC:/var/lib/apt$ sudo mv lists/ lists.old

wiz@wiz-PC:/var/lib/apt$ sudo mkdir -p lists/partial

wiz@wiz-PC:/var/lib/apt$ sudo apt-get update


You can now delete the lists.old. In case you require to generate a complete new Ubuntu source.lst file use the Ubuntu Sources List Generator

HTH
Wiz

Passwordless login Samba Share access


The below configuration enables password less access to the Share location


[root@Server-DOC ~]# cat /etc/samba/smb.conf
[global]
netbios name = Server-DOC
workgroup = WORKGROUP
guest account = admin
security = share
host allow = 192.168 0.33 127.
encrypt passwords = yes
log file = /var/log/samba/%m.log
smb passwd file = /etc/samba/smbpasswd
restrict anonymous = 2
###########SFTP with path /home/test/home
[home]
comment = Samba Share
path = /home/admin
writeable = yes
browseable = yes
guest only = yes
public = no
force create mode = 0770
locking = yes