Saturday, July 7, 2012

My personal Fedora 17 LXDE installation


Thanks to Fedora and many more users on other blogs/forums whose efforts helped me setup up Fedora 17 lxde on my home laptop and office laptop for regular use.

#installation
-unchecked use lvm and check review and modify partitioning layout
-set correct swap space, too much is waste anyways
-delete /home partition and merge space onto /
-Personally I would keep /home on the extended partition but this layout helps me reclaim the available space for partitions easily
-If dual booting with windows make sure you do not overwrite mbr and select first sector of sda2 or which ever partition has the /boot
-I also use http://gag.sourceforge.net/  to dual boot my windows 7 and fedora on my office laptop.

#setup sudo, update system and reboot
su
echo 'bhupendra ALL=(ALL) ALL' >> /etc/sudoers
exit
sudo yum update

#if getting error at boot 'cannot open Front File True'
http://forums.fedoraforum.org/showpost.php?p=1582163&postcount=7

#if you are in virtualbox vm, do following to install guest additions
sudo yum install kernel-devel kernel-headers dkms gcc gcc-c++
mount guest additions if not already mounted
cd /run/media/bhupendra/VBOXADDITIONS_*
sudo ./VBoxLinuxAdditions.run
reboot

#desktop changes
-Moved bottom panel to top, change background appearance to solid #000000 color with 30 opacity
-second panel to left for quick launch items again solid #000000 color with 30 opacity and width 26px, height 97%, alighnment bottom, edge left
-right click desktop preferences, wallpaper mode -> fill with background color only. Set background color to black
-disable screensaver or set to xmatrix, change to small fonts
-set custom color white to top panel and change date format on digital clock to %m/%d %r
-just in case you want to change the default background for login screen is controlled by symlink
default.png -> ./verne/default/standard/verne.png under /usr/share/backgrounds
Say we downloaded simple_linux.png under /usr/share/backgrounds/images and change the symlink to point to the downloaded image
sudo ln -sf /usr/share/backgrounds/images/simple_linux.png default.png
-If Tools > "Open Current Folder as Root" command gives an error, you probably need to enter a change similar to this one:
sudo yum install beesu
Then, PCManFM > Edit > Preferences > Advanced and in the the "Switch user command" field add the command "beesu %s" (without quotes).
-Enable left clicks and scrolling on mousepad
I added following lines to /usr/share/X11/xorg.conf.d/50-synaptics.conf. If you do not have this file, check which conf file is present under /usr/share/X11/xorg.conf.d
    Option "TapButton1" "1"
    Option "HorizEdgeScroll" "1"
    Option "VertEdgeScroll" "1"
Here is an interesting page to test scrolling: http://www.richinstyle.com/test/dynamic/overflowscroll.html
Reboot system.

#Make linux faster
-Preload - adaptive readahead daemon
sudo yum install preload
ensure it's running
sudo systemctl enable preload.service
sudo systemctl start preload.service
-On Fedora 16 lxde I also tried changing vm swappiness but held of from doing it here since I felt io operations were slower when I reduced the value.

#App installations
-skype
sudo yum -y install libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686 pulseaudio-libs.i686 pulseaudio-libs-glib2.i686 alsa-plugins-pulseaudio.i686
sudo yum install http://download.skype.com/linux/skype-4.0.0.7-fedora.i586.rpm
Based on test call, my mic was not correctly working.
Opened up pulse audio volume mixer, undere recording tab, show all streams, then gave test skype call.
Once the recording showed an entry I changed the option to Quickcam

-adobe flash 11 64bit
sudo yum install http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
sudo yum install flash-plugin

-office suite
removed exsting F17lxde office apps and install libreoffice
sudo yum remove abiword gnumeric osmo
sudo yum install libreoffice planner

-Firefox comes as default
Add fastdial to firefox and import bookmarks. Change default page startup to blank
Adblock plus
Awesome screenshot
downloadhelper
firebug
firecookie
fireftp
greasemonkey
jsview
live http headers
modify headers
measureit
poster
wsj/bol smartfox
UserAgent Switcher. Download xml file from http://techpatterns.com/forums/about304.html and import via addon via options.

-google chrome and voice chat
download rpm from https://www.google.com/chrome for chrome
download rpm from ls for google voice and video chat
sudo yum install lsb [required for chrome]
sudo rpm -Uvh google-*.rpm

-pdf viewer
lxde f17 comes preinstalled with epdfview, however it cannot enter fillable pdf forms
for editing pdfs, nothing beats pdfedit unfortunatly it's not in repo since F16
For now, I am staying with epdfview and mozplugger to view pdfs in firefox
sudo yum install epdfview mozplugger

-disk usage analyser
sudo yum install baobab

-rpm fusion repos for third party softwares
sudo yum install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
sudo yum install http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
sudo yum update

-audio and video requirements
Since I use audacious and vlc for all my video/audio needs, I removed others and installed these
sudo yum remove asunder lxmusic gxine
sudo yum install mozilla-vlc vlc vlc-extras ffmpeg audacious audacious-plugins*

-conky
sudo yum install conky
To add any applications to autostart read http://wiki.lxde.org/en/LXSession#autostart. I have added conky to autostart.
sudo vi /etc/xdg/lxsession/LXDE/autostart
Add follwing
@conky

-Enable ssh
sudo systemctl enable sshd.service
sudo systemctl start sshd.service
Ensure firewall has port opened for 22, and enable port forwarding on wireless router
I found weird bug in Fedora 17. After doing aove changes, I was still not able to ssh to fedora 17 laptop. I had to uncheck apply and check apply again and reload rule for ssh in firewall.

-install 7zip
sudo yum install p7zip
To extract file use
7za e filename.7z
To create 7zip archive use
7za a filename.7z directoryWithFilesToCompress/

-image manipulation
lxde comes with mtpaint, which is ok but nothing beats gimp
sudo yum remove mtpaint
sudo yum install gimp
open gimp, under windows, there is option for single window mode

-printer
sudo yum install hplip hplip-gui
run following on command prompt or go to application menu -> administration -> hp device manager
hp-setup
During printer configuration, use ip to configure [192.168.0.6] and enter username/password for root.
For any other printer config like xerox, cannon etc. OR for most hp printer including hp estation
directly open printing menu, find netwrok printers and add them.

-scan to pdf if required
sudo yum install gscan2pdf

-picasa alternative
gone are the days for picasa on linux. I usually upload pics directly to picasa web. Alternatively shotwell is nice with photo editing features like red eye removal
sudo yum update shotwell
Anyways I did not install it this time around.

-finding key bindings
Use xev command to find out the key values
On hp elitebook 8440p
keycode 121 = XF86AudioMute
keycode 122 = XF86AudioLowerVolume
keycode 123 = XF86AudioRaiseVolume
keycode 171 = XF86AudioNext
Keycode 172 = XF86AudioPlay
Keycode 173 = XF86AudioPrev
Keycode 174 = XF86AudioStop
Keycode 163 = XXF86Mail
Keycode 107 = Print
keycode 232 = XF86MonBrightnessDown
keycode 233 = XF86MonBrightnessUp
keycode 150 = XF86Sleep
keycode 133 = Super_L
keycode 244 = XF86Battery
keycode 201 = XF86TouchpadOff

-volume key buttons
In ~/.config/openbox/lxde-rc.xml inside the <keyboard> element add the following
   <keybind key="XF86AudioLowerVolume">
     <action name="Execute">
       <startupnotify>
         <enabled>true</enabled>
         <name>amixer</name>
       </startupnotify>
       <command>amixer -c 0 set Master 5- unmute</command>
     </action>
   </keybind>
   <keybind key="XF86AudioRaiseVolume">
     <action name="Execute">
       <startupnotify>
         <enabled>true</enabled>
         <name>amixer</name>
       </startupnotify>
       <command>amixer -c 0 set Master 5+ unmute</command>
     </action>
   </keybind>
   <keybind key="XF86AudioMute">
     <action name="Execute">
       <startupnotify>
         <enabled>true</enabled>
         <name>amixer</name>
       </startupnotify>
       <command>amixer set Master toggle</command>
     </action>
   </keybind>
Re-login, reboot or just run openbox --reconfigure for above changes to be in effect.  

-print screen on linux
On terminal, run following, and click mouse on the screen whose image needs to be captured
xwd > myimage.xwd
To view the captured screen image run following or open with display, gimp, xv etc.
xwud -in myimage.xwd
Another option is to use gimp which has screenshot option
sudo yum install gimp
Goto file -> create ->screenshot
All this was great on comman promt but what about the print key?
Install scrot
sudo yum install scrot
Add following to inn ~/.config/openbox/lxde-rc.xml under keyboard
<!-- Keybinding for PrintScreen Key -->
    <keybind key="Print">
      <action name="Execute">
       <execute>scrot -e 'mv $f ~/Desktop/'</execute>
      </action>
    </keybind>

    <keybind key="A-Print">
      <action name="Execute">
       <execute>scrot -b -s -e 'mv $f ~/Desktop/'</execute>
      </action>
    </keybind>
Re-login or reboot and alt+printscreen allows you to select area to capture while printscreen captures whole page
On my laptop printscreen button was shared with insert key and had to be invoked using fn+insert/prt sc
Now there will be times when we want to take screenshot of pull down menu or something, in that case we need deplay

-dual monitor setups
LXDE ships with lxrandr which has limited functionality for xrandr, so most of the time we have to get hands dirty with xrandr as below:
get list of connected display with their supported resolution
xrandr
To attach 2nd monitor
xrandr --output VGA-1 --auto --right-of eDP-1
To remove 2nd monitor
xrandr --output VGA-1 --off
[More simplified details at http://blog.bodhizazen.net/linux/use-xrandr-to-set-a-screen-resolution/]
Alternatively, we can download and run arandr which is more complete but less intuitive gui for xrandr
cd ~
wget https://launchpad.net/arandr/release/0.1.6/+download/arandr-0.1.6.tar.gz [download latest one from https://launchpad.net/arandr]
tar xzf arandr-0.1.6.tar.gz
chmod 775 arandr-0.1.6
rm -rf arandr-0.1.6.tar.gz
One could create a menu item for this, but I just added keyboard shortcut for convinience
Add following to in ~/.config/openbox/lxde-rc.xml under keyboard
    <keybind key="C-F12">
      <action name="Execute">
        <execute>~/arandr-0.1.6/arandr</execute>
      </action>
    </keybind>
Reboot or relogin or openbox --reconfigure and hit ctrl+F12 keys

-Remmina - gtk+ app for rdp/nx/vnc/xdmcp/ssh
sudo yum install remminia remmina-plugins*
Once opened, it docks to tray. To disable that edit->preferences->applet->disable tray icon

-virtualbox
Download repo from virtualbox site into /etc/yum.repos.d/
cd /etc/yum.repos.d/
sudo wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
sudo yum install dkms kernel-headers gcc
sudo yum install VirtualBox-4.1
Add your user to vboxusers group
sudo service vboxdrv setup
Download and install extention pack

-configure wireless nw using certificates for office
check 'connect automatically'
ssid=djmcn
security=WPA & WPA2 Enterprise
Authentication=TLS
identity=username
user certificate=username-b64.cer
CA certificate=certname.cer
private key=username.pem
Private key password=passwordhere
http://www.sslshopper.com/article-most-common-openssl-commands.html

-import certificates to firefox
-Firefox promts to import certificate when clicked to save it in it's store.
-google chrome does not have it's own certificate store unlike firefox. On windows it uses windows store etc.
For more details http://code.google.com/p/chromium/wiki/LinuxCertManagement
yum install nss-tools
As for me, I download all the certificates to load using chrome
cd ~
certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n certname -i pathtocertfile/certname.crt

-configure cisco vpn to office
sudo yum install vpnc NetworkManager-vpnc
Now configure vpn using network manager applet

-outlook alternative -> thunderbird
sudo yum remove sylpheed [comes default with lxde]
sudo yum install thunderbird thunderbird-lightning
>>CONFIGURE MAIL [if mail.dowjones.net does not work, try outlooksbk.win.dowjones.net ]
incoming: IMAP mail.dowjones.net 143 STARTTLS normal password
outgoing: SMTP mail.dowjones.net 587 STARTTLS normal password
username: atreb [if this does not work try DJNAMERICAS/atreb]
>>Install addons
ImportExportTools
Exchange 2007/2010 Calendar and Tasks Provider
slideshow
>>CONFIGURE OFFLINE ADDRESSBOOK
Tools -> address book
File -> New -> Ldap directory
This will need the ldap details.
Right click new address book and click properties -> offline tab -> click download
Now goto mail settings -> composition & addressing
select 'Use a different LDAP server' and select new address book.
>>CONFIGURE CALENDAR
File -> New -> calendar
Select 'on the network'
Select Microsoft Exchange 2007/2010
Check Use Exchange's autodiscovery function

-ms office communicator plugin for pidgin
sudo yum install pidgin pidgin-sipe

-file editor
sudo yum install geany geany-plugins-treebrowser geany-plugins-xmlsnippets
Enable TreeBrowser and XML Snippets under tools -> plugins

-Install java
open jdk 1.7 was already installed
sudo yum install java-1.7.0-openjdk java-1.7.0-openjdk-devel

-subversion installation
sudo yum install svn

-Download eclipse
mkdir ~/DEV
cp ~/Downloads/eclipse-jee-juno-linux-gtk-x86_64.tar.gz ~/DEV
cd ~/DEV
tar -xzvf eclipse-jee-juno-linux-gtk-x86_64.tar.gz
rm -rf eclipse-jee-juno-linux-gtk-x86_64.tar.gz
cd eclipse
chmod 775 eclipse
./eclipse
set workspace as /home/bhupendra/DEV/eclipse/workspace
Once eclipse is opened:
move outline and task panel to right
window -> show view -> navigator
help -> check for updates
Drop eclipse.png in /usr/share/icons and Create eclipse.desktop file under /usr/share/applications
[Desktop Entry]
Name=eclipse
Exec=/home/bhupendra/DEV/eclipse/eclipse
Icon=eclipse.png
Terminal=0
Type=Application
Encoding=UTF-8
Categories=Development;Application;

Install subversive from the juno update site using eclipse add new software.
After restart select svnkit 1.3x for connector [after checking which version of svn is running]

-for file and folder diff operations
sudo yum install meld

-Download sql developer from oracle site
sudo rpm -Uvh sqldeveloper-*

type sqldeveloper and it will prompt for jdk path, enter following
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.3.x86_64

-Maven installation
Downloaded apache-maven-2.2.1-bin.tar.gz
cp apache-maven-2.2.1-bin.tar.gz ../DEV
cd ../DEV
tar -xzvf apache-maven-2.2.1-bin.tar.gz
rm apache-maven-2.2.1-bin.tar.gz
Add following to /etc/profile
export M2_HOME=/home/bhupendra/DEV/apache-maven-2.2.1
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
To check the installation immediatly, run above command in terminal and type
mvn --version
For my dev, I updated the settings.xml file under $M2_HOME/conf

-Apache httpd installation
sudo yum install httpd
to check service status
sudo systemctl status httpd.service
to start service
sudo systemctl start httpd.service
to stop service
sudo systemctl stop httpd.service
conf files located at /etc/httpd/conf
Disable the default welcome page by commenting out lines in /etc/httpd/conf.d/welcome.conf
New files can be dropped in at /var/www/html which is the default DocumentRoot
Created index.htmll in the Document root and accessed using http://localhost/index.html
sudo yum install php
restart httpd so that it loads up php module
create new file /home/bhupendra/DEV/html/test.php
// Show all information, defaults to INFO_ALL
phpinfo();
// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);
?>


-mount windows share
mkdir /mnt/mountdir
sudo mount -t cifs //ipaddresshere/client4 -o username=myusername,password=mypassword /mnt/mountdir
umount /mnt/mountdir

Sunday, June 19, 2011

Fedora 15 with gnome 3 - my howto

Installed live image from Fedora 15 64bit running gnome 3
I had to reinstalled since first time around, it loaded into fallback mode.

-disable selinux
vi /etc/selinux/config
change SELINUX=targetted to SELINUX=disabled
save and close

-enable sudo
vi /etc/sudoers
add following
yourusername ALL=(ALL) ALL

-enable left click on touchpad of laptop
click 'Activities' (top left)
click 'System tools' (right)
click 'Mouse and Touchpad'
goto Touchpad tab and check following boxes
Disable touchpad while typing
Enable mouse clicks with touchpad

-intall new programs
sudo yum install yum-fastestmirror

-install plugins for the new gnome-shell
sudo yum install gnome-shell-extensions-alternative-status-menu [to have shutdown(power off) along with suspend menu]
sudo yum install gnome-shell-extensions-places-menu [adds places menu to right hand system indicator aread on top panel]
sudo yum install gnome-tweak-tool

-install flash plugin,for my 64 bit installation I did following
sudo yum install wget
cd /tmp
wget http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_2_p3_64bit_linux_111710.tar.gz
tar xzvf flashplayer10_2_p3_64bit_linux_111710.tar.gz
sudo mv /tmp/libflashplayer.so /usr/lib64/mozilla/plugins/
For 32 bit, recommended approach is to download rpm from adobe site and install flash-plugin.

-skype
sudo yum -y install pulseaudio-libs.i686 pulseaudio-libs-devel.i686 alsa-plugins-pulseaudio.i686 libv4l.i686 libXv.i686 libXv-devel.i686 libXScrnSaver.i686 libXScrnSaver-devel.i686 dbus-qt-devel.i686 qt.i686 qt-devel.i686 dus-qt.i686
Then download and install fedora10+ rpm from skype site.
sudo rpm -Uvh skype-2.2.0.35-fedora.i586.rpm

-Install office
sudo yum install libreoffice-writer libreoffice-calc libreoffice-draw libreoffice-impress

-install webstart and java applet support for firefox
icetea-web

-install other programs that I use
gimp p7zip p7zip-plugins xboard gnuchess unrar wget

-Install repo for third party apps
su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'

-For mp3 player needs I use audacious, simple and winap like.
sudo yum install audacious audacious-plugins-freeworld*
change theme to winamp from view menu

-install play it all video player and fierfox plugin for videos.
sudo yum install vlc vlc-extras
God knows where vlc plugin for firefox went. It used to be available via rpmfusion repos. Anyways I downloaded it from ATrpms. Also got libdvdcss for dvd playback
http://dl.atrpms.net/all/vlc-plugin-1.1.9-69.fc15.x86_64.rpm at http://packages.atrpms.net/dist/f15/vlc/
http://dl.atrpms.net/all/libdvdcss2-1.2.10-5.fc15.x86_64.rpm at http://packages.atrpms.net/dist/f15/libdvdcss/
NOTE:After few days, once I updated using yum update, I was not able to update vlc due to vlc-plugin hard dependency. So I uninstalled vlc-plugin only to find out mozilla-vlc was back in repo. This was good news so no manual rpm installation required just do
sudo yum install vlc vlc-extras

-Enable ssh
system-config-services was missing on fedora 15, so I manually installed it only to find that I cannot enable/disable services only start/stop them. So I uninstalled it and googled for more info and found this http://fedoraproject.org/wiki/Systemd#How_do_I_start.2Fstop_or_enable.2Fdisable_services.3F
So after reading that, it was easy
sudo systemctl enable sshd.service
sudo systemctl start sshd.service

-Enable remote desktop
sudo yum install x11vnc x11vnc-javaviewers
x11vnc -storepasswd
The above command creates /home/yourusername/.vnc/passwd file where yourusername is your usernmae
To run server
sudo /usr/bin/x11vnc -o /var/log/x11vnc.log -display :0 -rfbauth /home/bhupendra/.vnc/passwd -many -bg -http
access via java enabled browser using http://hostOrIP:5800
access via vnc client hostOrIP:5900
To disconnect all connected clients
x11vnc -R disconnect:all
To stop running x11vnc server
x11vnc -R stop
To autostart x11vnc server on logon
cd /etc/gdm/PostLogin
sudo cp Default.sample Default
Add following line to Default file
/usr/bin/x11vnc -o /var/log/x11vnc.log -display :0 -rfbauth /home/bhupendra/.vnc/passwd -many -bg -http

-make fast firefox 4 faster, in browser open about:config
Search and update following
network.http.max-connections change to 60 (default: 30)
network.http.max-connections-per-server change to 20 (default: 15)
network.http.max-persistent-connections-per-server change to 8 (default: 6)
network.http.pipelining change to true (default: false)
network.http.pipelining.ssl change to true (default: false)

-Added following firefox addons
fireftp
User Agent switcher
Download helper
Awesome screenshot
fast dial
firecookie
firebug
colorzilla
live http header
measureit
refcontrol
JSONview
poster
jsview
flashblock

-share media on dlna enabled devices [Samsung BD-6500]
sudo yum install ffmpeg java-1.6.0-openjdk
Open TCP 8895 and UDP 1900 ports in firewall
Download serviio-0.5.2-linux.tar.gz from http://www.serviio.org/download
cp serviio-0.5.2-linux.tar.gz /home/bhupendra [where bhupendra is my home directory]
tar xzvf serviio-0.5.2-linux.tar.gz
rm serviio-0.5.2-linux.tar.gz
cd serviio-0.5.2/bin
Now turn on your dlan enabled device
Then run
./serviio.sh
Then run following to add media directory
./serviio-console.sh
If you are not knowing what's happening take a look at serviio-0.5.2/log/serviio.log
I was tailing the log in seperate conosle to see which all media got added.

-remove unwated apps
sudo yum remove totem totem-mozplugin totem-nautilus orca evince evince-nautilus rhythmbox evolution sound-juicer cdparanoia
ran package-cleanup --leaves
and uninstalled unwanted apps from it.

-organize photos and upload to picasa. I used to install picasa and run it with wine installation, but no more now.
sudo yum install shotwell
shotwell has dependency on totem, waiting for 0.10 version which removes it. Till then totem needs to be installed.
If shotwell fails to upload, check upload limit on picasa web, we may have exceeded limit.
[Update: switched back to picasa since needed it for collage creation]
Downloaded the rpm from http://picasa.google.com/linux/download.html#picasa30
sudo yum localinstall picasa-3.0-current.i386.rpm
This installed all the dependency rpms too.
sudo yum install wine
Had to install wine since default picasa gives segmentation fault.
So to run picasa I use following:
wine "/opt/google/picasa/3.0/wine/drive_c/Program Files/Google/Picasa3/Picasa3.exe"


-Enable ssh
system-config-services was missing on fedora 15, so I manually installed it only to find that I cannot enable/disable services only start/stop them. So I uninstalled it and googled for more info and found this http://fedoraproject.org/wiki/Systemd#How_do_I_start.2Fstop_or_enable.2Fdisable_services.3F
So after reading that, it was easy
sudo systemctl enable sshd.service
sudo systemctl start sshd.service

-Enable remote desktop
sudo yum install x11vnc x11vnc-javaviewers
x11vnc -storepasswd
The above command creates /home/yourusername/.vnc/passwd file where yourusername is your usernmae
To run server
sudo /usr/bin/x11vnc -o /var/log/x11vnc.log -display :0 -rfbauth /home/bhupendra/.vnc/passwd -many -bg -http
access via java enabled browser using http://hostOrIP:5800
access via vnc client hostOrIP:5900
To disconnect all connected clients
x11vnc -R disconnect:all
To stop running x11vnc server
x11vnc -R stop
To autostart x11vnc server on logon
cd /etc/gdm/PostLogin
sudo cp Default.sample Default
Add following line to Default file
/usr/bin/x11vnc -o /var/log/x11vnc.log -display :0 -rfbauth /home/bhupendra/.vnc/passwd -many -bg -http

-make fast firefox 4 faster
in browser open about:config
Search and update following
network.http.max-connections change to 60 (default: 30)
network.http.max-connections-per-server change to 20 (default: 15)
network.http.max-persistent-connections-per-server change to 8 (default: 6)
network.http.pipelining change to true (default: false)
network.http.pipelining.ssl change to true (default: false)
-Added following firefox addons
fireftp
User Agent switcher
Download helper
Awesome screenshot
fast dial
firecookie
firebug
colorzilla
live http header
measureit
refcontrol
JSONview
poster
jsview
flashblock

-share media on dlna enabled devices [Samsung BD-6500]
#USING SERVIO
sudo yum install ffmpeg java-1.6.0-openjdk
Open TCP 8895 and UDP 1900 ports in firewall
Download serviio-0.5.2-linux.tar.gz from http://www.serviio.org/download
cp serviio-0.5.2-linux.tar.gz /home/bhupendra [where bhupendra is my home directory]
tar xzvf serviio-0.5.2-linux.tar.gz
rm serviio-0.5.2-linux.tar.gz
cd serviio-0.5.2/bin
Now turn on your dlan enabled device
Then run
./serviio.sh
Then run following to add media directory
./serviio-console.sh
If you are not knowing what's happening take a look at serviio-0.5.2/log/serviio.log
I was tailing the log in seperate conosle to see which all media got added.
Added shortcut for serviio
/etc/share/applications/serviio-start.desktop with following in it.
[Desktop Entry]
Name=Serviio-start
Comment=Starts serviio
Icon=Serviio
Exec=/home/bhupendra/serviio-0.5.2/bin/serviio.sh
Terminal=false
Type=Application
Categories=AudioVideo;Player;
StartupNotify=true
#USING TVMOBILI
I found video buffering issue with serviio and also intermittently the connection was breaking with my blue ray. So I downloaded rpm from http://www.tvmobili.com/download.php, installed it. And that's it - all done. It installs service which runs when my laptop starts. It picked up wifi and immediatly my Videos, PIctures, Music folders were available on my blue ray player.
Ensure 30888 port is enabled on firewall.
TVmobili comes with a web console which can be accessed as http://yourLocalNetworkIP:30888/__index?page=information

-Run ftp server
sudo yum install proftpd
sudo vi /etc/proftpd.conf
Change DefaultRoot to some specific directory. By default it opens up user's home directory. ftp credentials is same as user's login credentials on the machine.
to start ftp as service
sudo systemctl enable proftpd.service
sudo systemctl start proftpd.service

-Enable bluetooth
systemctl status bluetooth.service
systemctl enable bluetooth.service
systemctl start bluetooth.service
I still was unable to send files from my cell to laptop after pairing. Dmsg showed following
Parsing /etc/bluetooth/input.conf failed: No such file or directory
I am still looking at solutions, will post once I get.

Sunday, May 22, 2011

vnc to current session on fedora

Been using fedora 14 and wanted to set up vnc to current session on the running gnome desktop

#install server
sudo yum install x11vnc-javaviewers x11vnc

#set x11vnc password, it is written to /home/yourusername/.vnc/passwd where yourusername is your usernmae
x11vnc -storepasswd

#run server
#-forever so that it does not disconnect when client disconnets
#-display :0 so that client shadows current logged in session
#-usepw so that client uses password from /home/yourusername/.vnc/passwd on server
#-bg can be used for the x11vnc to go into into the background after screen setup.Messages to
stderr are lost unless -o logfile is used
x11vnc -forever -usepw -display :0


#set up x11vnc startup in xinetd for autostart
sudo yum install xinetd
sudo vi /etc/xinetd.d/x11vnc
Enter following in the file
service x11vnc
{
port = 5900
type = UNLISTED
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/bin/x11vnc
server_args = -inetd -o /var/log/x11vnc.log -display :0 -rfbauth /home/yourusername/.vnc/passwd -many -bg
disable = no
}
Note here we are running the service as root so that it can access /var/log/x11vnc.log but use /home/yourusername/.vnc/passwd file created by yourusername

UPDATE:
my x11vnc server was sometimes giving error, probably it may be starting before x windows. So I removed inetd and it's config and instead added following to /etc/gdm/PostLogin/Default

#!/bin/sh
#Running x11vnc server
/usr/bin/x11vnc -o /var/log/x11vnc.log -display :0 -rfbauth /home/bhupendra/.vnc/passwd -many -bg

Saturday, December 4, 2010

Nokia N8 - loving it

Tips and tricks for nokia N8 for more battery life for daily use
-use default theme and screensaver since it's already loaded. The AMOLED display in your device consumes more power with white color. Therefore the themes with a lot of white colors (e.g. in wallpaper image) may consume more power than the other themes. Makes sense to use black wallpaper. When I go on vacation trips I use the black image as wallpaper.
-Turn off theme effects. This also speeds up homescreens. Settings -> Themes -> Options -> Theme Effects -> Off
-keep bluetooth off. Menu > Settings > Connectivity > Bluetooth > Bluetooth = Off)
-In the tone profile for normal:
--Set vibrating alert off
--Set volume to 6 bars or less (to reduce sound pollution :-) )
--Set touch screen vibration off instead of level 2
-turn off notification lights. Select Menu > Settings > Phone > Notification lights and disable the breathing light in Breathing light and adjust the light settings for different events in Notification light menu.
-close unused applications whenever possible. Leaving applications running in the background increases the demand on battery power. To close the applications you do not use, press and hold the menu key, swipe to the application in the list and close it by selecting X.

Tips to reduce battery usage under critical conditions
-Change the synchronisation frequency for your mailbox. Select Menu > Applications > Mail, your mailbox, and Options > Settings, and the relevant sync frequency settings.
-Deactivate the Big clock screen saver. Select Menu > Settings > Themes > Screen saver > None.
-Home screen widgets may periodically connect to internet if the home screen is in online mode. If you are not actively using the widgets, the automatic connection can be disabled by selecting Options > Widgets to offline mode on the home screen.
-Features that use wireless LAN (WLAN) increase the demand on battery power. WLAN on your Nokia device switches off when you are not trying to connect, not connected to another access point, or not scanning for available networks. To further reduce battery consumption, you can specify that your device does not scan, or scans less often, for available networks in the background. WLAN switches off in between background scans. When Menu > Settings > Connectivity > WLAN > Options > Settings > Show WLAN availability is set to Never, the WLAN availability icon is not shown in the standby mode. However, you can still manually scan for available WLAN networks and connect to WLAN networks as usual.

Let me know any more tips n tricks and I'll add up.


Updated: Got this link on nokia site, has more tips
http://www.nokiausa.com/get-support-and-software/product-support/n8-00/faq#00

Wednesday, August 18, 2010

Switched back to Fedora 13 Gnome


After playing a lot with lxde on fedora 12,13 I got bored of it's plain looks, gmixer issue and occasional lxpanel and FF crashes. After looking at kde vs gnome vs xfce vs lxde comparisions I decided to go back to gnome. Above is the screenshot of my system after everything was done.

Downloaded Fedora-13-i686-Live.iso and installed. After installation did following:

echo 'bhupendra ALL=(ALL) ALL' >> /etc/sudoers
After this we can logout as root and run sudo yum ...

vi /etc/selinux/config
Change SELINUX=enforcing to SELINUX=disabled

-Enable touchpag clicks
sudo yum install gconf-editor
Open gconf-editor (not as root) and goto /desktop/gnome/peripherals/touchpad
select tap_to_click
select horiz_scroll_enable
select disable_while_typing

-Download 'yum for linux rpm' from http://get.adobe.com/flashplayer/ for flash player in browser and adobe reader
yum install flash-plugin AdobeReader_enu

-Download and install skype rpm for fedora 10+
sudo rpm -ivh skype-2.1.0.81-fc10.i586.rpm

-Download picasa rpm from http://picasa.google.com/linux/download.html
sudo yum install lsb libgphoto2 openssl sane-backends audiofile esound-libs openssl-devel
sudo rpm -Uvh picasa-3.0-current.i386.rpm

-Install rpmfusion repos
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

-Enable mp3 playback on rythmbox
sudo yum install gstreamer-plugins-ugly gstreamer-plugins-bad

-install java 6 and firefox java plugin for applet support
sudo yum install java-1.6.0-openjdk java-1.6.0-openjdk-plugin

-I tried microsoft office 2007 with wine and then with the trial version of code weaver's crossover. Let me tell you, crossover works great and seamless. However I later came to know that openoffice supports word 2007 formats (though partially). If I need full support and I my wish of using linux in my workplace comes true will definatly buy licensed copy of crossover for personal use as it's not at all expensive.
installed openoffice writer(word) and calc(excel)
sudo yum install openoffice.org-writer openoffice.org-calc
Install microsoft fonts for dealing with microsoft word documents
I always refer to mjwired for his excellent work on this. http://www.mjmwired.net/resources/mjm-fedora-f13.html

-removed unwated apps, also ran package-cleanup --leaves to see which packages are not being used
sudo yum remove pino gnome-games vinagre totem brasero sound-juicer

-Install other programs I need, vlc for videos, gimp for image manupulation and xboard as frontend to gnuchess
sudo yum install vlc mozilla-vlc gimp xboard gnuchess proftpd

-Update system
sudo yum update
I rebooted once done for sanity check

-Bluetooth
Bluetooth packages were installed by default
Enabled bluetooth service under services
to get services sudo yum install system-config-services
Bluetooth applet also sows up by default. Right click goto preferences, click 'recieve files' and check 'Recieve files in Downloads folder over bluetooth' and changed accpet files to 'always'.

-Virtual machines using virtualbox
Download Fedora repo file and move to /etc/yum.repos.d from http://www.virtualbox.org/wiki/Linux_Downloads
yum install dkms gcc kernel-headers kernel-devel VirtualBox-3.2
I already had images of windows exported from my previous virtual box so just imported them.
Dont forget to add your user to vboxuser group for usb support on guests.

Show desktop icon available in panel configuration. By default ctrl+alt+D toggles desktop
set top and bottom panels transparent
Enable compiz via system->preferences->desktop effects
Change background image by right click on desktop. Set it default so that it reflects on login screen also.
open terminal goto edit->profile preferences->colors
uncheck use colors from system theme
select white on black system theme
goto background tab, and set transparent background to 50%
I also changed background image to Aqua and made panels transparent.
speed up firefox page loading, type about:config, search for network.dns.disableIPv6 and set it to true


Downloaded screenlets rpm but eventually removed it all since screenlets kept on crashing. Following dependencies were required for it.
sudo yum install gnome-python2-rsvg gnome-python2-rsvg python-imaging python-dateutil

to connect to other machines
sudo yum install rdesktop vpnc NetworkManager-vpnc
I configured vpnc under network manager to connect to my office nw and created office.sh with following
rdesktop -u username -p password -f hostOrIp
Open nautilus, goto edit->preferences->behaviour tab
select 'Run executable text files when they are opened'
This way our script executes directly instead of opening dialog box telling what to do.

Monday, June 7, 2010

Fedora 13 lxde spin - my personal installation

Downloaded fedora 13 lxde spin cd and installed on my dell xps 1210 harddisk. By default it created seperate volumes for root and home partition which was a problem for me due to very less space. It's more convinient for me to have one volume to manage the diskspace so chaged the disk management while installaion.

Download rpmfusion from http://rpmfusion.org/Configuration
rpmfusion-free-release-stable.noarch.rpm
rpmfusion-nonfree-release-stable.noarch.rpm
rpm -Uvh rpmfusion-free-release-stable.noarch.rpm rpmfusion-nonfree-release-stable.noarch.rpm

[All yum and rpm commands needs to be run as root]

yum update

echo 'bhupendra ALL=(ALL) ALL' >> /etc/sudoers
After this we can logout as root and run sudo yum ...

vi /etc/selinux/config
Change SELINUX=enforcing to SELINUX=disabled

-Enable left clicks and scrolling on mousepad
I added following lines to /usr/share/X11/xorg.conf.d/50-synaptics.conf. If you do not have this file, check which conf file is present under /usr/share/X11/xorg.conf.d
Option "TapButton1" "1"
Option "HorizEdgeScroll" "1"
Option "VertEdgeScroll" "1"
Here is an interesting page to test scrolling: http://www.richinstyle.com/test/dynamic/overflowscroll.html
Reboot system.

-Download flash-plugin-10.0.45.2-release.i386.rpm for adobe flash from adobe's site
rpm -Uvh flash-plugin-10.0.45.2-release.i386.rpm

-Installed needed apps
yum install vlc mozilla-vlc audacious audacious-plugins-freeworld* NetworkManager-vpnc vpnc proftpd

-Default volume on system was less. Gmixer still annoyingly defaults to the mic options instead of speaker volume.
yum install pulseaudio-equalizer
I was able to ehance audio levels using this one.

-gtalk video calls
yum install x264 ffmpeg empathy
Unfortunalty this did not work for me. Though I was testing with 2 laptops where in only one had webcam. Hope this works for all.

-Download and install skype rpm for fedora 10+
rpm -Uvh skype-2.1.0.81-fc10.i586.rpm

-Disable screensaver
-enable ftp in firewall

-Remove unwated stuff
yum remove liberation-mono-fonts liberation-sans-fonts liberation-serif-fonts libertas-usb8388-firmware iok sylpheed lostirc asunder gxine xmms2 gnomebaker lxmusic libdiscid liberation-fonts-common m17n-lib

-cd/dvd burning. Though for kde, this is the best tool for the purpose.
sudo yum install k3b k3b-extras-freeworld
While burning cd-rw, I had to black out existing content which did not work. I got this error
/usr/bin/wodim: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.
After looking at k3b site, it was recommended to disable automount and/or use unpatched cdrtools(wodim)
After looking around real hard, I opened pcmanfm, goto edit->preferences-> volume management tab, uncheck 'mount removable media automatically when inserted'. This did the trick instead of various other good suggestions.

-VirtualBox can now be installed from fpmfusion repos, installing dependencies has never been easier with manual rpm install.
yum install dkms VirtualBox-OSE VirtualBox-OSE-guest
Evils of using opensource edition is that after 2 days when I needed to connect my phone to xp guest, I was not able to add usb. Aparently open source edition does not support it.
So downloaded http://download.virtualbox.org/virtualbox/3.2.0/VirtualBox-3.2-3.2.0_61806_fedora13-1.i686.rpm
yum remove VirtualBox-OSE VirtualBox-OSE-guest
yum install dkms gcc kernel-headers
rpm -Uvh VirtualBox-3.2-3.2.0_61806_fedora13-1.i686.rpm
Add virtualbox group to your user.
Any installation errors can be seen in and reinitialization done via /etc/init.d/vboxdrv setup as root
Boot xp guest. I had to change network to intel pro/100 T server for my xps 1210.
Loaded guest additions cd from /usr/share/virtualbox/VBoxGuestAdditions.iso and installed on my xp guest
Added shared permanent folder.
To access shared folder under xp, open windows exporer, goto tools, map network drive.
select drive say eg. V
Browse for folder and you should see 'Virtualbox shared folders->//Vboxsrv'
Map it and create shortcut to desktop for easy access.

-Want video chat on yahoo
yum install gyachi

-google picasa. Download rpm from http://picasa.google.com/linux/download.html#picasa30. Will have to install few dependecies first.
yum install lsb libgphoto2 openssl sane-backends audiofile esound-libs openssl-devel
rpm -Uvh picasa-3.0-current.i386.rpm

-ssh between laptops on wireless network
enable and start sshd service under services
ensure firewall has ssh enabled

-ftp between 2 laptops on wireless network
install proftpd on one laptop
start ftp service using
sudo service proftpd start
Ensure ftp is enabled on firewall
Enable port 21 port forwading on router for ip of laptop having proftpd service.

-download google chrome and install rpm
http://www.google.com/chrome/eula.html?hl=en&brand=CHMA&utm_campaign=en&utm_source=en-ha-na-us-bk&utm_medium=ha

-My desktop folders and icons went missing after an update. To get back the icons open following
sudo vi /etc/xdg/lxsession/LXDE/autostar
Change @pcmanfm2 --desktop --profile lxde
to @pcmanfm --desktop --profile lxde

-Missing java plugin on firefox 3.6
Install openjdk
sudo yum install java-1.6.0-openjdk java-1.6.0-openjdk-plugin
Restart firefox and check if plugin comes up in about:plugins. If not then
sudo alternatives --config libjavaplugin.so
Enter the number for other .so file and restart firefox.

Monday, April 5, 2010

Picasa on fedora 12 lxde spin

Download picasa rpm from http://picasa.google.com/linux/
I downloaded picasa-3.0-current.i386.rpm
sudo rpm -ivh picasa-3.0-current.i386.rpm

Above will ask for bunch of dependencies are required. Hence installed following:
sudo yum install openssl-devel openssl redhat-lsb libexif libgpohoto2 sane-backends-libs esound-libs

Note that without openssl-devel you will not be able to login to web using picasa.