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.

Wednesday, March 31, 2010

Mount Lvm Partition and backup data using Live linux CD

Once I ran yum update on my fedora 12 lxde spin and it broke. System was unable to boot. I had to take backup before reinstalling so booted with the fedora 12 lxde live cd and ran regular mount command mount /dev/sda2 /mnt/hdd but got error - "mount: unknown filesystem type 'LVM2_member'"
After lot of googling I came across [http://forums.opensuse.org/archives/sf-archives/archives-software/337006-can-not-mount-lvm-partition-2.html] which was a life saver for me and my data. Then I ran following commands with output [indented] to mount my volume.

su

pvscan
PV /dev/sda2 VG vg_xps lvm2 [74.33 GB / 0 free]
Total: 1 [74.33 GB] / in use: 1 [74.33 GB] / in no VG: 0 [0 ]

vgscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Reading all physical volumes. This may take a while...
Finding all volume groups
Finding volume group "vg_xps"
Found volume group "vg_xps" using metadata type lvm2

vgchange -ay -v
Finding all volume groups
Finding volume group "vg_xps"
2 logical volume(s) in volume group "vg_xps" already active
2 existing logical volume(s) in volume group "vg_xps" monitored
Found volume group "vg_xps"
Found volume group "vg_xps"
Activated logical volumes in volume group "vg_xps"
2 logical volume(s) in volume group "vg_xps" now active

vgdisplay -v
Finding all volume groups
Finding volume group "vg_xps"
--- Volume group ---
VG Name vg_xps
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 74.33 GB
PE Size 4.00 MB
Total PE 19029
Alloc PE / Size 19029 / 74.33 GB
Free PE / Size 0 / 0
VG UUID wDR2Xa-8km9-Q5f3-4y4f-jCyE-ebkn-pQbTev
--- Logical volume ---
LV Name /dev/vg_xps/lv_root
VG Name vg_xps
LV UUID OshzOn-H2WY-6GXP-W0D9-HBJ2-fqRD-6heWXi
LV Write Access read/write
LV Status available
# open 0
LV Size 72.33 GB
Current LE 18517
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Logical volume ---
LV Name /dev/vg_xps/lv_swap
VG Name vg_xps
LV UUID ScYasH-efcp-0yyP-i0FK-lcFJ-g33x-lo3bie
LV Write Access read/write
LV Status available
# open 1
LV Size 2.00 GB
Current LE 512
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3
--- Physical volumes ---
PV Name /dev/sda2
PV UUID oENBs0-bYPL-8Uh3-bZsJ-H6nZ-tjDv-DUH99M
PV Status allocatable
Total PE / Free PE 19029 / 0

Note down the "LV Name" for running next command. Here LV name is /dev/vg_xps/lv_root

lvchange -ay -v /dev/vg_xps/lv_root
Using logical volume(s) on command line
Activating logical volume "lv_root"
Found volume group "vg_xps"

cd /mnt
mkdir hdd
mount /dev/vg_xps/lv_root /mnt/hdd

The logical volume has been mounted under /mnt/hdd and we can take backup now.

For those interested in knowing why the yum update created issue with my fedora 12 lxde boot, it's because of kernel update of kernel-2.6.32.10-90 on system. Defect at https://bugzilla.redhat.com/show_bug.cgi?id=578217#c8. I tried to install kernel-2.6.32.10-94.fc12.i686.rpm and kernel-2.6.32.10-94.fc12.src.rpm from http://koji.fedoraproject.org/koji/buildinfo?buildID=164636 but same issue. Hence reinstalled lxde spin and sticking to 2.6.31.5-127.fc12.i686 by disabling updates untill fedora 13 comes out.