tag:blogger.com,1999:blog-78019856194789950702024-03-21T07:39:47.584-07:00Bhupendra Atre's blogbhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.comBlogger17125tag:blogger.com,1999:blog-7801985619478995070.post-23210536082975760942014-03-01T19:09:00.000-08:002014-03-01T19:22:03.997-08:00Fedora out, Arch is in and am loving it!<div dir="ltr" style="text-align: left;" trbidi="on">
Writing this post after many months, since I got little more time than anticipated. And after years running fedora, I finally switched to arch linux. Fedora was great, had no issues and I enjoyed the backup, reformat and new install of each new fedora release. The switch to arch was due to following three main reasons:<br />
1. Rolling release, so no need to reformat. This was especially helpful for office laptops.<br />
2. Awesome documentation. whenever you are stuck, just google your issue and suffix arch and you will be taken to arch wiki with solutions or forums for suggestions. <br />
3. Since we start install and configuring the arch system from scratch, it's educational. There are lot of stuff I came to know after trying out arch. First I started out in virtual box vm, then on other laptops. Also I haven't found any package which is not available in arch either in main repos or in aur, you will always find what you need.<br />
<br />
<br />
Anyways here are the steps I took for my arch install. This will serve as reference to myself as well as others who want to try out. <br />
<br />
---------------------------------------------------------------------------------------------------<br />
# Burn arch iso to usb drive on existing linux system using dd<br />
[More info at https://wiki.archlinux.org/index.php/USB_Flash_Installation_Media]<br />
---------------------------------------------------------------------------------------------------<br />
Goto https://www.archlinux.org/download/ and download arch iso.<br />
I downloaded archlinux-2014.01.05-dual.iso<br />
For my usb, the command I used was<br />
dd bs=4M if=/home/bhupendra/Downloads/archlinux-2014.01.05-dual.iso of=/dev/sdb && sync<br />
<br />
---------------------------------------------------------------------------------------------------<br />
# creating partitions<br />
[More info at https://wiki.archlinux.org/index.php/Beginners%27_Guide#Prepare_the_storage_drive]<br />
---------------------------------------------------------------------------------------------------<br />
boot into arch linux cd or bootable usb<br />
lsblk [to list existing partitions]<br />
465.8gb total space was available on my hdd<br />
I decided to create partition of 461.8gb and use 4gb for swap<br />
fdisk /dev/sda<br />
d - to delete partitions<br />
o - to create a new empty dos partition table<br />
n - add new partition<br />
a - to set /dev/sda1 bootable else bios may not boot the partition<br />
w - write to disk<br />
<br />
After above has been done, verify changes using lsblk again. then<br />
mkfs -t ext4 /dev/sda1<br />
mkswap /dev/sda2<br />
<br />
---------------------------------------------------------------------------------------------------<br />
# minimal install<br />
[More info at https://wiki.archlinux.org/index.php/Beginners%27_Guide]<br />
---------------------------------------------------------------------------------------------------<br />
<br />
mount /dev/sda1 /mnt<br />
pacstrap -i /mnt base<br />
genfstab -U -p /mnt >> /mnt/etc/fstab<br />
echo "/dev/sda2 none swap defaults 0 0" >> /mnt/etc/fstab<br />
arch-chroot /mnt<br />
ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime<br />
uncomment below line in /etc/locale.gen<br />
en_US.UTF-8 UTF-8<br />
generate locale with following command<br />
locale-gen<br />
vi /etc/locale.conf and add following:<br />
LANG="en_US.UTF-8"<br />
hwclock --systohc --utc<br />
echo arch > /etc/hostname<br />
systemctl enable dhcpcd<br />
pacman -S grub<br />
grub-install --target=i386-pc --recheck --debug /dev/sda<br />
vi /etc/default/grub and set following [where /dev/sda2 is the swap partition]<br />
GRUB_CMDLINE_LINUX="resume=/dev/sda2"<br />
grub-mkconfig -o /boot/grub/grub.cfg<br />
<br />
pacman -S mkinitcpio<br />
mkinitcpio -p linux<br />
<br />
passwd<br />
useradd -m -g users -s /bin/bash bhupendra<br />
passwd bhupendra<br />
pacman -S sudo<br />
echo 'bhupendra ALL=(ALL) ALL' >> /etc/sudoers<br />
<br />
#remove vi and nano and install vim<br />
sudo pacman -Rs vi nano<br />
sudo pacman -S vim<br />
add vi symlink to vim just in case some programs try to utilize vi eg. crontab -e or git<br />
sudo ln -s /usr/bin/vim /usr/bin/vi<br />
<br />
#set correct time [https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon]<br />
pacman -S ntp<br />
to synchronize your system clock just once without starting ntpd<br />
ntpd -q<br />
After updating the system clock, store the time to the hardware clock so that it is preserved when rebooting<br />
hwclock -w<br />
to enable ntpd service<br />
systemctl enable ntpd<br />
systemctl start ntpd<br />
<br />
#enable remote login via ssh/sftp<br />
pacman -S openssh<br />
The SSH client configuration file is /etc/ssh/ssh_config or ~/.ssh/config<br />
The SSH daemon configuration file can be found and edited in /etc/ssh/sshd_config<br />
vi /etc/ssh/sshd_config and set following<br />
PermitRootLogin no<br />
X11Forwarding yes<br />
sudo systemctl enable sshd<br />
sudo systemctl start sshd<br />
Note that for firefox to open on x forwarding, one might need to use firefox -no-remote<br />
<br />
pacman -Syu<br />
<br />
exit<br />
umount -R /mnt<br />
shutdown now<br />
remove arch install cd and boot into installed arch<br />
boot up<br />
<br />
---------------------------------------------------------------------------------------------------<br />
# lxde install<br />
---------------------------------------------------------------------------------------------------<br />
<br />
#install base xorg<br />
sudo pacman -S xorg-server xorg-server-utils xorg-xinit mesa<br />
<br />
#enable audio. ALSA usually works out-of-the-box. It just needs to be unmuted. Install alsa-utils (which contains alsamixer)<br />
sudo pacman -S alsa-utils alsa-plugins pulseaudio<br />
type alsamixer and unmute/inc everything.<br />
After reboot, sound setting by alsamixer can not restore. Maybe you can restore by command : sudo alsactl restore.<br />
Please check the Auto-Mute toggle status in alsamixer : set Enabled to Disabled.<br />
<br />
#install video drivers<br />
lspci | grep VGA<br />
sudo pacman -S xf86-video-intel xf86-video-nouveau xf86-video-ati xf86-video-vesa<br />
[for intel, nvidia and amd/ati respectivly. vesa as fallback generic mode-setting driver that will work with almost every GPU, but will not provide any 2D or 3D acceleration]<br />
<br />
#enable video acceleration api<br />
For me I have only the integrated intel graphics card, if there is discrete dedicated video card more info at https://wiki.archlinux.org/index.php/VA-API<br />
sudo pacman -S libva-intel-driver<br />
sudo vim /etc/profile and add following<br />
export LIBVA_DRIVER_NAME=vdpau<br />
for gstreamer, sudo pacman -S gst-vaapi<br />
To enable hardware acceleration in vlc: Tools -> Preferences -> Input & Codecs, then check "Use GPU accelerated decoding". Generally, VAAPI is used for Intel and Broadcom graphic cards, while VDPAU is used for AMD/ATI and NVIDIA cards. <br />
<br />
#install common fonts packages to support international languages<br />
sudo pacman -S ttf-dejavu ttf-indic-otf ttf-freefont ttf-arphic-uming ttf-baekmuk<br />
<br />
#lxde group install<br />
sudo pacman -S lxde<br />
sudo systemctl enable lxdm<br />
sudo vim /etc/lxdm/lxdm.conf and uncomment line session=/usr/bin/startlxde<br />
NOTE: obconf and lxappearance are very similar so installing one should be good enough<br />
<br />
#setting up networking manager<br />
sudo pacman -S rfkill networkmanager networkmanager-vpnc network-manager-applet<br />
sudo systemctl enable NetworkManager<br />
sudo systemctl enable NetworkManager-dispatcher<br />
Note: instead of using ifconfig and iwconfig, use ip addr<br />
sometimes if wifi link is down, do following:<br />
sudo ip link wlo1 up<br />
I had to stop and disable dhcpcd for networkmanager to pick up ethernet<br />
<br />
#creating some default folders in home directory<br />
mkdir ~/Downloads ~/scripts ~/Videos ~/Music ~/Pictures ~/Documents<br />
<br />
#clipboard manager<br />
sudo pacman -S clipit<br />
I started it once by invoking from terminal and it always started showing up in on reboot. Hence removed it from autostart.<br />
Also changed following preferences:<br />
check use right-click menu under settings<br />
under history, items in history 150 (default 50), items in menu 20 (default 20), character lenght of items 500 (default 50)<br />
<br />
---------------------------------------------------------------------------------------------------<br />
# lxde customization and common software install<br />
---------------------------------------------------------------------------------------------------<br />
#move panel to top, remove broken icon on left of panel and add lxterminal to panel shortcut<br />
#right click panel, apprearance, set solid color with 0 opacity<br />
#change date format on digital clock to %m/%d %r instead of %R and set font to bold<br />
<br />
#add battery applet to lxde panel before systemtray. It uses xmessage to display notification that battery is low<br />
sudo pacman -S gxmessage<br />
right click battery applet and go to settings. change alarm command to following<br />
gxmessage Battery low - 5 min left<br />
<br />
#adding your own wallpaper<br />
download to wallpaper image eg. Planets.jpg under ~/Downloads<br />
sudo cp ~/Downloads/Planets.jpg /usr/share/lxde/wallpapers<br />
sudo chmod 644 /usr/share/lxde/wallpapers/Black-Wallpaper.jpg<br />
Now right click on desktop, desktop preferences, and change the wallpaper<br />
#make lxdm use the updated wallpaper<br />
sudo vim /etc/lxdm/lxdm.conf and add following<br />
bg=/usr/share/lxde/wallpapers/Planets.jpg<br />
<br />
#install adwaita theme<br />
sudo pacman -S gnome-themes-standard<br />
<br />
#prep for aur builds<br />
sudo pacman -S --needed base-devel wget rync<br />
<br />
#yaourt installation (to install packages from aur)<br />
Add following to /etc/pacman.conf<br />
[archlinuxfr]<br />
SigLevel = Never<br />
Server = http://repo.archlinux.fr/$arch<br />
Now run <br />
sudo pacman -Sy yaourt<br />
<br />
#install comix cursors, good especially on large monitors or connected tvs [skipping for now]<br />
yaourt xcursor-comix<br />
now goto lxappearance and select<br />
comiz cursor original white small bold - for laptop<br />
comiz cursor original white huge bold - for connected tv<br />
Also I have set following in lxappearance:<br />
widget = adwaita<br />
color = check "Use customized color scheme", for "selected items" change color to #75507B for purple or #000000 for black, instead of default blue<br />
icon theme = nuoveXT.2.2 [default]<br />
window border = onyx [default]<br />
<br />
#Installing sound tray icon and equilizer<br />
sudo pacman -S pavucontrol<br />
yaourt pnmixer<br />
<br />
open pnmixer preferences and under behavoiur tab set volume control command = pavucontrol if it does not exit<br />
also select icon theme as nuoveXT.2.2 as it is more visible on dark background.<br />
Ran into issue with hot key bindings for pnmixer. It was muting volume correctly but unmuting did not work.<br />
Hence had to add custom bindings seperatly.<br />
sudo vim /etc/xdg/lxsession/LXDE/autostart and add following<br />
@pnmixer<br />
Note that if you have keybindings for volume keys you need not install pnmixer at all. Worst case scenarios, one can open pavucontrol<br />
<br />
#transparent lxterminal<br />
open lxterminal<br />
edit -> preferences<br />
under background set opacity = 220<br />
<br />
#nice effects<br />
yaourt compton-git<br />
pacman -Rs asciidoc git [since they were required only for the build]<br />
vim ~/.compton.conf and add following<br />
# Shadow<br />
shadow = true; # Enabled client-side shadows on windows.<br />
no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows.<br />
no-dnd-shadow = true; # Don't draw shadows on DND windows.<br />
clear-shadow = true; # Zero the part of the shadow's mask behind the<br />
# window. Fix some weirdness with ARGB windows.<br />
shadow-radius = 7; # The blur radius for shadows. (default 12)<br />
shadow-offset-x = -7; # The left offset for shadows. (default -15)<br />
shadow-offset-y = -7; # The top offset for shadows. (default -15)<br />
# shadow-opacity = 0.7; # The translucency for shadows. (default .75)<br />
# shadow-red = 0.0; # Red color value of shadow. (0.0 - 1.0, defaults to 0)<br />
# shadow-green = 0.0; # Green color value of shadow. (0.0 - 1.0, defaults to 0)<br />
# shadow-blue = 0.0; # Blue color value of shadow. (0.0 - 1.0, defaults to 0)<br />
shadow-exclude = [ "n:e:Notification" ]; # Exclude conditions for shadows.<br />
# shadow-exclude = "n:e:Notification";<br />
shadow-ignore-shaped = true; # Avoid drawing shadow on all shaped windows<br />
# (see also: --detect-rounded-corners)<br />
# Opacity<br />
menu-opacity = 0.9; # The opacity for menus. (default 1.0)<br />
inactive-opacity = 0.9; # Default opacity of inactive windows. (0.0 - 1.0)<br />
# active-opacity = 0.8; # Default opacity for active windows. (0.0 - 1.0)<br />
# frame-opacity = 0.8; # Opacity of window titlebars and borders. (0.1 - 1.0)<br />
# inactive-opacity-override = true; # Let inactive opacity set by 'inactive-opacity' overrides<br />
# value of _NET_WM_OPACITY. Bad choice.<br />
alpha-step = 0.06; # XRender backend: Step size for alpha pictures. Increasing<br />
# it may result in less X resource usage,<br />
# Yet fading may look bad.<br />
# inactive-dim = 0.2; # Dim inactive windows. (0.0 - 1.0)<br />
# inactive-dim-fixed = true; # Do not let dimness adjust based on window opacity.<br />
# blur-background = true; # Blur background of transparent windows.<br />
# Bad performance with X Render backend.<br />
# GLX backend is preferred.<br />
# blur-background-frame = true; # Blur background of opaque windows with transparent<br />
# frames as well.<br />
blur-background-fixed = false; # Do not let blur radius adjust based on window opacity.<br />
blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ];<br />
# Exclude conditions for background blur.<br />
# Fading<br />
fading = true; # Fade windows during opacity changes.<br />
# fade-delta = 30; # The time between steps in a fade in milliseconds. (default 10).<br />
fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028).<br />
fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03).<br />
# no-fading-openclose = true; # Avoid fade windows in/out when opening/closing.<br />
fade-exclude = [ ]; # Exclude conditions for fading.<br />
# Other<br />
backend = "xrender" # Backend to use: "xrender" or "glx". GLX backend is typically<br />
# much faster but depends on a sane driver.<br />
mark-wmwin-focused = true; # Try to detect WM windows and mark them as active.<br />
mark-ovredir-focused = true; # Mark all non-WM but override-redirect windows active (e.g. menus).<br />
use-ewmh-active-win = false; # Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused<br />
# instead of using FocusIn/Out events. Usually more reliable but<br />
# depends on a EWMH-compliant WM.<br />
detect-rounded-corners = true; # Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.<br />
detect-client-opacity = true; # Detect _NET_WM_OPACITY on client windows, useful for window<br />
# managers not passing _NET_WM_OPACITY of client windows to frame<br />
# windows.<br />
refresh-rate = 0; # For --sw-opti: Specify refresh rate of the screen. 0 for auto.<br />
vsync = "none"; # "none", "drm", "opengl", "opengl-oml", "opengl-swc", "opengl-mswc"<br />
# See man page for more details.<br />
dbe = false; # Enable DBE painting mode. Rarely needed.<br />
paint-on-overlay = false; # Painting on X Composite overlay window. Recommended.<br />
sw-opti = false; # Limit compton to repaint at most once every 1 / refresh_rate.<br />
# Incompatible with certain VSync methods.<br />
unredir-if-possible = false; # Unredirect all windows if a full-screen opaque window is<br />
# detected, to maximize performance for full-screen windows.<br />
focus-exclude = [ ]; # A list of conditions of windows that should always be considered<br />
# focused.<br />
detect-transient = true; # Use WM_TRANSIENT_FOR to group windows, and consider windows in<br />
# the same group focused at the same time.<br />
detect-client-leader = true; # Use WM_CLIENT_LEADER to group windows.<br />
invert-color-include = [ ]; # Conditions for windows to be painted with inverted color.<br />
# GLX backend # GLX backend fine-tune options. See man page for more info.<br />
# glx-no-stencil = true; # Recommended.<br />
glx-copy-from-front = false; # Useful with --glx-swap-method,<br />
# glx-use-copysubbuffermesa = true; # Recommended if it works. Breaks VSync.<br />
# glx-no-rebind-pixmap = true; # Recommended if it works.<br />
glx-swap-method = "undefined"; # See man page.<br />
# Window type settings<br />
wintypes:<br />
{<br />
tooltip = { fade = true; shadow = false; opacity = 0.75; focus = true; };<br />
# fade: Fade the particular type of windows.<br />
# shadow: Give those windows shadow<br />
# opacity: Default opacity for the type of windows.<br />
# focus: Whether to always consider windows of this type focused.<br />
};<br />
sudo vim /etc/xdg/lxsession/LXDE/autostart and add following to start compton on boot<br />
@compton --config ~/.compton.conf -b<br />
reboot<br />
<br />
<br />
#enable touchpad scrolling<br />
sudo pacman -S xf86-input-synaptics<br />
sudo vim /etc/X11/xorg.conf.d/50-synaptics.conf and add following options under inputclass<br />
Option "VertEdgeScroll" "on"<br />
Option "VertTwoFingerScroll" "on"<br />
Option "HorizEdgeScroll" "on"<br />
Option "HorizTwoFingerScroll" "on"<br />
Option "CircularScrolling" "on"<br />
Option "CircScrollTrigger" "2"<br />
Option "EmulateTwoFingerMinZ" "40"<br />
Option "EmulateTwoFingerMinW" "8"<br />
Option "CoastingSpeed" "0"<br />
Add following to /etc/xdg/lxsession/LXDE/autostart to disable touch pad while typing which helped in resolving jumping mouse/ error clicks.<br />
@syndaemon -t -k -i 2 -d<br />
<br />
#everything to handle archives<br />
sudo pacman -S file-roller p7zip unrar zip arj unace<br />
<br />
#open folders as root in pcmanfm<br />
sudo pacman -S gksu<br />
open pcmanfm preferences and under switch user commands replace "xdg-su -c '%s'" by "gksu %s"<br />
However since this was installing gconf and libgnome-keyring I decided not to use this feature for now.<br />
<br />
#to automount sdcards, external usb drives etc, mtp or camera devices<br />
sudo pacman -S gvfs gvfs-mtp gvfs-gphoto2<br />
<br />
#office suite<br />
sudo pacman -S libreoffice-en-US libreoffice-base libreoffice-calc libreoffice-common libreoffice-draw libreoffice-impress libreoffice-writer libmythes mythes-en aspell hunspell hunspell-en hyphen<br />
<br />
#calculator<br />
sudo pacman -S galculator<br />
<br />
#text editor<br />
sudo pacman -S leafpad<br />
<br />
#messenger<br />
sudo pacman -S pidgin<br />
<br />
#browser<br />
sudo pacman -S firefox flashplugin<br />
-Install following addons in firefox<br />
Adblock Edge<br />
No Google Analytics<br />
fast dial<br />
jsview [http://downloads.mozdev.org/xsidebar/mods/jsview-2.0.8-mod.xpi]<br />
live http headers<br />
measureit<br />
poster<br />
ref control<br />
user agent switcher<br />
Add your own useragent string or Download xml file from http://techpatterns.com/forums/about304.html and import via addon via options.<br />
downloadhelper<br />
Disable all the addons that are not in use and Add-on bar for faster firefox experience.<br />
Goto firefox edit preferences, under general tab<br />
show my homepage and set home page as chrome://fastdial/content/fastdial.html<br />
right click on fast dial<br />
under general tab -> inc quantity to 8x4, rearrange shortcuts if out of sync<br />
under appearance tab -> page -> add your wallpaper<br />
-sync bookmarks<br />
Tools -> setup sync<br />
I have account<br />
click sync options and uncheck addons, history, tabs<br />
I don't have the device with me, enter credentails and account key<br />
-install plugin support<br />
yaourt mozplugger<br />
<br />
#play all video files<br />
sudo pacman -S vlc ffmpeg<br />
yaourt npapi-vlc-git<br />
sudo pacman -Rs git npapi-sdk<br />
<br />
#music players<br />
lxmusic is already installed and should play mp3 files<br />
<br />
#torrent client<br />
sudo pacman -S transmission-gtk<br />
<br />
#cd/dvd burner<br />
sudo pacman -S k3b dvd+rw-tools vcdimager transcode emovix cdrdao<br />
<br />
#disk usage gui<br />
sudo pacman -S baobab<br />
<br />
#skype<br />
sudo vim /etc/pacman.conf and uncomment following lines<br />
[multilib]<br />
Include = /etc/pacman.d/mirrorlist<br />
sudo pacman -Syyu<br />
sudo pacman -S skype lib32-libpulse<br />
<br />
#video chat browser plugin for google talk<br />
yaourt google-talkplugin<br />
<br />
#partition manager<br />
sudo pacman -S gparted gpart mtools ntfs-3g dosfstools<br />
<br />
-firewall<br />
sudo pacman -S firewalld<br />
sudo systemctl enable firewalld<br />
sudo systemctl start firewalld<br />
<br />
-printer<br />
sudo pacman -S system-config-printer cups hplip<br />
sudo systemctl enable cups<br />
sudo systemctl start cups<br />
sudo gpasswd -a bhupendra sys<br />
type system-config-printer in terminal or under preferences print settings<br />
click add, it will ask for root password and prompt to adjust firewall for printing<br />
click network printer, select appsocket/jet direct, set host 192.168.0.8 (ip may differ), check duplexer installed<br />
HP-Photosmart-Estn-c510 (printer may differ) should show up<br />
--for my office xerox printer, I was able to configure below in similar way<br />
Xerox WorkCentre Pro 238 SBKPRT0229<br />
172.26.115.223<br />
lpd://172.26.115.223/PASSTHRU<br />
Xerox WorkCentre Pro 133 Foomatic/Postscript<br />
<br />
#screensavers if needed<br />
sudo pacman -S xscreensaver<br />
Then goto preferences ->screensaver. Set mode to "only one screensaver" and selected xMatrix.<br />
goto to matrix settings and change font to small<br />
set blank after 5 minutes<br />
set lock screen in 10 minutes<br />
under advanced tab, check power management enabled<br />
standby after 15 minutes<br />
suspend after 20 minutes<br />
off after 240 minutes<br />
<br />
#image utilities<br />
gpicview is already installed by default with lxde. If you want image manipulation try gimp.<br />
sudo pacman -S scrot gimp<br />
Gimp now has single window mode too.<br />
To see image thumbnail preview in pcmanfm for large sized images, <br />
open pcmanfm, edit-> preferences, under display, set size for "Do not generate thumbnails for files exceeding this size" as 99999<br />
<br />
#remote control<br />
yaourt teamviewer<br />
sudo systemctl enable teamviewerd<br />
sudo systemctl start teamviewerd<br />
Either open teamviewer from application menu or terminal or to auto start it on boot add to autostart.<br />
sudo vim /etc/xdg/lxsession/LXDE/autostart and add following<br />
@teamviewer<br />
Open teamviewer. <br />
You can give the generated user id and password code for someone to remote access.<br />
Alternativly, click on personal password and link it to your free teamviewer account for easier access.<br />
<br />
#Remmina - gtk+ app for rdp/nx/vnc/xdmcp/ssh<br />
sudo pacman -S remmina freerdp remmina-plugin-teamviewer<br />
Once opened, it docks to tray. To disable that edit->preferences->applet->disable tray icon<br />
<br />
#record desktop<br />
sudo pacman -S recordmydesktop gtk-recordmydesktop<br />
<br />
#stream to web from your webcam<br />
run following<br />
cvlc v4l2:// :v4l2-vdev="/dev/video0" --sout '#transcode{vcodec=x264{keyint=60,idrint=2},vcodec=h264,vb=400,width=368,heigh=208,acodec=mp4a,ab=32 ,channels=2,samplerate=22100}:duplicate{dst=std{access=http{mime=video/x-ms-wmv},mux=asf,dst=:8082/stream.wmv}}' --no-sout-audi<br />
and open the stream using following url on same machine<br />
127.0.0.1:8082/stream.wmv<br />
<br />
#conky<br />
sudo pacman -S conky<br />
default config at /etc/conky/conky.conf and user specific at ~/.conkyrc. Below is my conky config. However I later removed it since show desktop was hiding conky always.<br />
<br />
alignment bottom_left<br />
background yes<br />
border_width 1<br />
cpu_avg_samples 2<br />
default_color white<br />
default_outline_color white<br />
default_shade_color white<br />
draw_borders no<br />
draw_graph_borders yes<br />
draw_outline no<br />
draw_shades no<br />
use_xft yes<br />
xftfont DejaVu Sans Mono:size=10<br />
gap_x 10<br />
gap_y 30<br />
minimum_size 300 500<br />
net_avg_samples 2<br />
no_buffers yes<br />
double_buffer yes<br />
out_to_console no<br />
out_to_stderr no<br />
extra_newline no<br />
own_window yes<br />
own_window_transparent yes<br />
own_window_class Conky<br />
own_window_type normal<br />
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below<br />
stippled_borders 0<br />
update_interval 1.0<br />
update_interval_on_battery 3.0<br />
uppercase no<br />
use_spacer none<br />
show_graph_scale no<br />
show_graph_range no<br />
<br />
TEXT<br />
$hr<br />
${color grey}$sysname $Kernel on $machine - $nodename $color<br />
${color darkgrey}Internal IP:$color W[${addr wlo1}] E[${addr enp0s25}]<br />
${color darkgrey}External IP:$color ${execi 3600 wget -O - http://ip.tupeux.com | tail}<br />
${color darkgrey}Uptime:$color $uptime<br />
$hr<br />
${color darkgrey}MUMBAI: $color ${tztime Asia/Kolkata %a %m/%d %I:%M:%S %p}<br />
${color darkgrey}PLAINSBORO:$color ${tztime America/New_York %a %m/%d %I:%M:%S %p}<br />
${texeci 300 curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=1\&locCode\=08536 | grep "Currently:" | sed 's/<title>Currently://' | sed 's/C<\/title>/C/' | sed 's/^[ \t\n]*//'}<br>$hr<br>${color darkgrey}RAM:$color ${membar 4,100} $memperc% $memmax/$mem<br>${color darkgrey}SWAP:$color ${swapbar 4,100} $swapperc% $swapmax/$swap<br>${color darkgrey}FS:$color ${fs_bar 4,100 /} ${fs_used_perc /}% ${fs_used /}/${fs_size /}<br>$hr<br>${color darkgrey}CPU1 Usage:$color ${cpubar cpu1 4,200} ${cpu cpu1}%<br>${color darkgrey}CPU2 Usage:$color ${cpubar cpu2 4,200} ${cpu cpu2}%<br>${color darkgrey}CPU3 Usage:$color ${cpubar cpu3 4,200} ${cpu cpu3}%<br>${color darkgrey}CPU4 Usage:$color ${cpubar cpu4 4,200} ${cpu cpu4}%<br>$hr<br>${color grey}File systems:<br> / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}<br>${color grey}Networking:<br>Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0}<br>$hr<br>${color darkgrey}Wireless Networking:<br>Up:$color ${upspeed wlo1} ${color darkgrey} - Down:$color ${downspeed wlo1}<br>${color darkgrey}Wired Networking:<br>Up:$color ${upspeed enp0s25} ${color grey} - Down:$color ${downspeed enp0s25}<br>$hr<br>${color darkgrey}Name PID CPU% MEM% $color<br>${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}<br>${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}<br>${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}<br>${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}<br>${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}<br><br>sudo vim /etc/xdg/lxsession/LXDE/autostart and add following to autostart conky<br>@conky<br><br>If you find that the minimum_size and maximum_height or maximum_width are not being obeyed by conky, then comment out own_window_type and own_window_hints, let conly reload, then add those back again. Courtsey [https://bbs.archlinux.org/viewtopic.php?pid=1037806#p1037806]<br><br>#xrandr scripts<br>sudo pacman -S arandr<br>arandr is good to switch off one monitor and use another. In my case when I take laptop to office, I have 2 external monitors for which below scripts helps<br>cd ~/scripts<br><br>vim singlemonitor.sh<br>#!/bin/sh<br>xrandr --output DP3 --off --output DP2 --off --output DP1 --off --output HDMI3 --off --output HDMI2 --off --output HDMI1 --off --output LVDS1 --off --output VGA1 --mode 1280x1024 --pos 0x0 --rotate normal<br>xrandr --output DP3 --off --output DP2 --off --output DP1 --off --output HDMI3 --off --output HDMI2 --off --output HDMI1 --off --output LVDS1 --mode 1366x768 --pos 0x0 --rotate normal --output VGA1 --mode 1280x1024 --pos 0x0 --rotate normal<br>xrandr --output DP3 --off --output DP2 --off --output DP1 --off --output HDMI3 --off --output HDMI2 --off --output HDMI1 --off --output LVDS1 --mode 1366x768 --pos 0x0 --rotate normal --output VGA1 --off<br>xbacklight -set 100<br>pkill conky<br>conky 2> /dev/null &<br><br>vim dualmonitor.sh<br>#!/bin/sh<br>xrandr --output DP3 --off --output DP2 --off --output DP1 --off --output HDMI3 --off --output HDMI2 --off --output HDMI1 --off --output LVDS1 --mode 1366x768 --pos 0x0 --rotate normal --output VGA1 --mode 1280x1024 --pos 0x0 --rotate normal<br>xrandr --output DP3 --off --output DP2 --off --output DP1 --off --output HDMI3 --off --output HDMI2 --off --output HDMI1 --off --output LVDS1 --off --output VGA1 --mode 1280x1024 --pos 0x0 --rotate normal<br>xrandr --output DP3 --off --output DP2 --off --output DP1 --off --output HDMI3 --off --output HDMI2 --mode 1280x1024 --pos 1280x0 --rotate normal --output HDMI1 --off --output LVDS1 --off --output VGA1 --mode 1280x1024 --pos 0x0 --rotate normal<br>pkill conky<br>conky 2> /dev/null &<br><br>vim tvonly.sh<br>#!/bin/sh<br>xrandr --output HDMI-0 --off --output LVDS --off --output DVI-0 --off --output VGA-0 --mode 1920x1080 --pos 0x0 --rotate normal<br>pkill conky<br>conky 2> /dev/null &<br><br>chmod 775 *.sh<br><br>To invoke the scripts from run command add symlinks to /usr/local/bin<br>cd /usr/local/bin<br>sudo ln -s /home/bhupendra/scripts/dualmonitor.sh dualmonitor<br>sudo ln -s /home/bhupendra/scripts/singlemonitor.sh singlemonitor<br>sudo ln -s /home/bhupendra/scripts/tvonly.sh tvonly<br><br>#finding key bindings<br>Use xev command to find out the key values. More info at openbox.org/wiki/Help:Bindings however note that LXDE users should follow these instructions to edit the file ~/.config/openbox/lxde-rc.xml and not the ~/.config/openbox/rc.xml<br>#Adding custom key events<br>In ~/.config/openbox/lxde-rc.xml inside the <keyboard> element add the following:<br><!-- Keybinding for volume Keys --><br> <keybind key="XF86AudioLowerVolume"><br> <action name="Execute"><br> <startupnotify><br> <enabled>true</enabled><br> <name>amixer</name><br> </startupnotify><br> <command>amixer -c 0 set Master 5- unmute</command><br> </action><br> </keybind><br> <keybind key="XF86AudioRaiseVolume"><br> <action name="Execute"><br> <startupnotify><br> <enabled>true</enabled><br> <name>amixer</name><br> </startupnotify><br> <command>amixer -c 0 set Master 5+ unmute</command><br> </action><br> </keybind><br> <keybind key="XF86AudioMute"><br> <action name="Execute"><br> <startupnotify><br> <enabled>true</enabled><br> <name>amixer</name><br> </startupnotify><br> <command>amixer -D pulse set Master 1+ toggle</command><br> </action><br> </keybind><br> <keybind key="XF86HomePage"><br> <action name="Execute"><br> <startupnotify><br> <enabled>true</enabled><br> <name>firefox</name><br> </startupnotify><br> <command>firefox</command><br> </action><br> </keybind><br><!-- Keybinding for PrintScreen Key --><br> <keybind key="Print"><br> <action name="Execute"><br> <execute>scrot -e 'mv $f ~/Downloads/'</execute><br> </action><br> </keybind><br> <keybind key="A-Print"><br> <action name="Execute"><br> <execute>scrot -b -s -e 'mv $f ~/Downloads/'</execute><br> </action><br> </keybind><br>run openbox --reconfigure<br><br>#Hardware check<br>uname -a<br>cat /proc/cpuinfo<br>cat /proc/meminfo<br>cat /proc/partitions<br>lspci -v | grep VGA<br><br>sudo pacman -S dmidecode hdparm<br>sudo dmidecode --type memory <br>hdparm -I /dev/sda <br> <br>One can also install lshw and view html for hw info<br>sudo pacman -S lshw<br>sudo lshw -html >> lshw.html<br>firefox lshw.html<br><br>#make arch faster<br>-For ssd<br>sudo vim /etc/fstab and add discard option to /dev/sda1. The file then looks something like below<br>#<br># /etc/fstab: static file system information<br>#<br># <file system> <dir> <type> <options> <dump> <pass><br># /dev/sda1<br>UUID=3e6fd4bb-6a0d-425a-81dd-fd3abbb37f96 / ext4 rw,relatime,data=ordered,discard 0 1<br>/dev/sda2 none swap defaults,discard 0 0<br>-play around with linux swapiness and vfs_cache_pressure<br>To check the currently set values (60 and 100 respectively)<br>sysctl -n vm.swappiness<br>sysctl -n vm.vfs_cache_pressure<br>setting value for session<br>sudo sysctl -w vm.swappiness=20<br>sudo sysctl -w vm.vfs_cache_pressure=50<br>permanently setting value, add following in /etc/sysctl.conf<br>vm.swappiness=20<br>vm.vfs_cache_pressure=50<br>-install preload<br>yaourt preload<br>sudo systemctl enable preload<br>sudo systemctl start preload<br>-install prelink<br>sudo pacman -S prelink<br>Note: Some proprietary binaries will crash with prelink (such as Flash, Skype, Nvidia proprietary driver).<br>You can add these to the exclude list in /etc/prelink.conf as in https://wiki.archlinux.org/index.php/Talk:Prelink<br>prelink all the binaries in the directories given by /etc/prelink.conf run following<br>prelink -amR<br>Removing prelinking from all binaries run following<br>prelink -au<br>Add prelink to daily cron job in order to get benefits from updates<br>sudo vim /etc/cron.daily/prelink.cron and add follwowing:<br>#!/bin/bash<br>[[ -x /usr/sbin/prelink ]] && /usr/sbin/prelink -amR &>/dev/null<br>sudo chmod 755 /etc/cron.daily/prelink.cron<br>sudo systemctl enable cronie<br>sudo systemctl start cronie<br>-improve boot times<br>enable readahead<br>sudo systemctl enable systemd-readahead-collect systemd-readahead-replay<br>sudo vim /etc/default/grub and change GRUB_TIMEOUT=1 for quicker booting<br>sudo grub-mkconfig -o /boot/grub/grub.cfg<br>-improve firefox performance<br>Reduce load time by compressing the Firefox binary with UPX<br>sudo pacman -S upx<br>sudo cp /usr/lib/firefox/firefox /usr/lib/firefox/firefox.backup<br>sudo upx --best /usr/lib/firefox/firefox<br>Tweak about:config set following recommended values for 1.5mb connection<br>network.http.pipelining true Enable pipelining for normal connections<br>network.http.proxy.pipelining true Enable pipelining for proxy connections<br>Configure Firefox to use ram only cache<br>open about:config in the address bar<br>set browser.cache.disk.enable to "false" (double click the line)<br>set browser.cache.memory.enable to "true" (double click the line)<br>set browser.cache.memory.max_entry_size to the amount of KB you'd like to spare, to -1 for automatic cache size selection<br><br>#if you need power savings on battery [More at https://wiki.archlinux.org/index.php/TLP]<br>yaourt tlp-rdw<br>sudo systemctl enable tlp<br>sudo systemctl enable tlp-sleep<br>sudo systemctl enable NetworkManager-dispatcher<br>The default configuration /etc/default/tlp provides optimized power saving out of the box.<br>sudo cp /etc/default/tlp /etc/default/tlp.bak<br>sudo vim /etc/default/tlp and change following:<br>DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"<br>DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan lan"<br>DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi lan"<br>DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi"<br>DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT="lan"<br>DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=""<br><br>#virtualbox<br>-installation<br>sudo pacman -S virtualbox virtualbox-host-modules qt4 virtualbox-guest-iso<br>-to load the kernal module manually<br>sudo modprobe vboxdrv<br>-to load the module at boot time add following virtualbox.conf under /etc/modules-load.d<br>#/etc/modules-load.d/virtualbox.conf<br>#load the virtualbox kernel module<br>vboxdrv<br>-to use usb ports of your host machines<br>sudo gpasswd -a $USER vboxusers<br>-once the virtualbox gui is up and running download and install the extention pack if needed.<br><br>#Copying backup from another *nix, use rsync<br>-Below command copies from current directory . to the remote directory via assh<br>rsync -auzve ssh . bhupendra@archtv:/export/home/bhupendra/tmp/<br>-Below command copies all files and folders from the remote tmp directory in current directory<br>rsync -auzve ssh bhupendra@archtv:/export/home/bhupendra/tmp/ .<br>-Below does the same however it also creates the tmp directory in current directory if it does not exit<br>rsync -auzve ssh bhupendra@archtv:/export/home/bhupendra/tmp .<br>v verbose<br>z compress<br>u skip files that are newer on reciever<br>e specify the remote shell to use<br>a archive mode; equals -rlptgoD (no -H,-A,-X)<br>r recursive into directories<br>l copy symlinks as symlinks<br>p preserve permissions<br>t preserve modification times<br>g preserve group<br>o preserve owner (super user only)<br>D same as --devices --specials<br>--devices This option causes rsync to transfer character and block device<br> files to the remote system to recreate these devices. This<br> option has no effect if the receiving rsync is not run as the<br> super-user <br>--specials This option causes rsync to transfer special files such as named<br> sockets and fifos.<br>--delete-during deletes files on reciever side if they do not exist anymore during transfers<br><br>-So to backup usual home folders from my laptop having host archoffice over the network to archtv here is what I do<br>rsync --delete-during --ignore-errors -auzve ssh /home/bhupendra/DEV/ bhupendra@archtv:/home/bhupendra/DEV<br>rsync --delete-during --ignore-errors -auzve ssh /home/bhupendra/Documents/ bhupendra@archtv:/home/bhupendra/Documents<br>rsync --delete-during --ignore-errors -auzve ssh /home/bhupendra/Music/ bhupendra@archtv:/home/bhupendra/Music<br>rsync --delete-during --ignore-errors -auzve ssh /home/bhupendra/Pictures/ bhupendra@archtv:/home/bhupendra/Pictures<br>rsync --delete-during --ignore-errors -auzve ssh /home/bhupendra/scripts/ bhupendra@archtv:/home/bhupendra/scripts<br>rsync --delete-during --ignore-errors -auzve ssh /home/bhupendra/Videos/ bhupendra@archtv:/run/media/bhupendra/NTFS297GB/<br>Note that in the last rsync, I want to move videos to connected external hdd instead of Videos folder under home directory.<br><br>-Since we have to enter password anytime we want to run the remote rsync, time we avoid that by auto ssh logins without password<br>[More at https://wiki.archlinux.org/index.php/SSH_Keys]<br>I have 2 laptops running arch, having hostnames archtv and archoffice.<br>This is that I did on archoffice<br>ssh-keygen -t rsa -C "$(whoami)@$(hostname)-$(date -I)"<br>hit enter for all options it provided, ie. save key to .ssh/id_rsa, do not enter passphrase else we will have to enter it each time we ssh<br>This generates private key at ~/.ssh/id_rsa and public key at ~/.ssh/id_rsa.pub<br>Now, copy the public key to archtv<br>ssh-copy-id bhupendra@archtv<br>This copies the key to ~/.ssh/authorized_keys<br>Now you can ssh from archoffice to archtv without password<br>Followed same process on archtv so that archtv can connect to archoffice without passwords.<br>Now the above rsync commands will not ask for passwords<br><br>-Time to create shell script which combines all my rsync commands<br>vim ~/scripts/syncbackup.sh<br>#!/bin/bash<br>/usr/bin/rsync --delete-during --ignore-errors -auzve /usr/bin/ssh /home/bhupendra/DEV/ bhupendra@archtv:/home/bhupendra/DEV <br>/usr/bin/rsync --delete-during --ignore-errors -auzve /usr/bin/ssh /home/bhupendra/Documents/ bhupendra@archtv:/home/bhupendra/Documents<br>/usr/bin/rsync --delete-during --ignore-errors -auzve /usr/bin/ssh /home/bhupendra/Music/ bhupendra@archtv:/home/bhupendra/Music<br>/usr/bin/rsync --delete-during --ignore-errors -auzve /usr/bin/ssh /home/bhupendra/Pictures/ bhupendra@archtv:/home/bhupendra/Pictures<br>/usr/bin/rsync --delete-during --ignore-errors -auzve /usr/bin/ssh /home/bhupendra/scripts/ bhupendra@archtv:/home/bhupendra/scripts<br>/usr/bin/rsync --ignore-errors -auzve /usr/bin/ssh /home/bhupendra/Videos/ bhupendra@archtv:/run/media/bhupendra/NTFS297GB/<br><br>chmod 775 ~/scripts/syncbackup.sh<br>sudo ln -s /home/bhupendra/scripts/syncbackup.sh /usr/bin/syncbackup<br><br>-Now lets invoke the script when wireless network gets connected to ssid kitty.<br>sudo vim /etc/NetworkManager/dispatcher.d/01-syncbackup<br>#!/bin/sh<br><br>ssid="kitty"<br>interface=$1<br>status=$2<br><br>if [ "$interface" = "wlo1" -a "$status" = "up" ]; then<br> if nmcli con status id $ssid | grep -qs activated; then<br> syncbackup > /var/log/rsync/$(date +%Y-%m-%d-%H-%M-%S).log 2>&1<br> fi<br>fi<br><br>sudo chmod 755 /etc/NetworkManager/dispatcher.d/01-syncbackup<br>sudo mkdir /var/log/rsync<br>sudo chown bhupendra:users /var/log/rsync<br><br>-google drive support<br>yaourt insync<br>run insync<br>login to google account<br>name your drive folder as: bhupendra.atre@gmail.com<br>put google drive folder at: /home/bhupendra/googledrive<br>Insync was starting automatically on reboot, and I did not see any systemd service or any entry in lxde autostart<br>then I created following symlink folder to sync my Documents folder<br>cd /home/bhupendra/googledrive/bhupendra.atre@gmail.com<br>ln -s /home/bhupendra/Documents Documents<br><br>---------------------------------------------------------------------------------------------------<br>#Changes for archtv<br>I have another arch laptop connected to my 47' led tv. Since we want larger fonts here are the steps I took<br>---------------------------------------------------------------------------------------------------<br>-disable latop display and enable tv display<br>sudo vim /etc/xdg/lxsession/LXDE/autostart and add following<br>@tvonly<br>-disbale suspend on lid close<br>sudo vim /etc/systemd/logind.conf<br>HandleSuspendKey=ignore<br>HandleHibernateKey=ignore<br>HandleLidSwitch=ignore<br>-in firefox add plugin noSquint to auto zoom pages on hdtv resolution. In global settings change the default zoom to 170%.<br>-default font increase<br>open lxappearance<br>under widget, adwaita, change default font to sams 18 instead of sams 10<br>under window border, title bar, change sans bold 10 to 18.<br>-open panel preferences on lxpanel,<br>under appearance, select font size and set it to 18<br>under geometry, change height to 44 pixel instead of 26 and icon size to 42 instead of 24.<br>-under lxterminal change default font size from monospace 10 to 18.<br>-under leafpad change default font size to 18.<br>-under pcmanfm preferences, display section, change following:<br>size of big icons 96x96 [default 48x48]<br>size of small icons 48x48 [default 24x24]<br>size of thumbnails 256x256 [default 128x128]<br>size of side pane icons 48x48 [default 24x24]<br>-in ~/.conkyrc change the font size from 10 to 18<br><br></p>
<p>
<!--data-blogger-escaped-<title>Currently://' | sed 's/C<\/title>/C/' | sed 's/^[ \t\n]*//'}<br>$hr<br>${color darkgrey}RAM:$color ${membar 4,100} $memperc% $memmax/$mem<br>${color darkgrey}SWAP:$color ${swapbar 4,100} $swapperc% $swapmax/$swap<br>${color darkgrey}FS:$color ${fs_bar 4,100 /} ${fs_used_perc /}% ${fs_used /}/${fs_size /}<br>$hr<br>${color darkgrey}CPU1 Usage:$color ${cpubar cpu1 4,200} ${cpu cpu1}%<br>${color darkgrey}CPU2 Usage:$color ${cpubar cpu2 4,200} ${cpu cpu2}%<br>${color darkgrey}CPU3 Usage:$color ${cpubar cpu3 4,200} ${cpu cpu3}%<br>${color darkgrey}CPU4 Usage:$color ${cpubar cpu4 4,200} ${cpu cpu4}%<br>$hr<br>${color grey}File systems:<br> / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}<br>${color grey}Networking:<br>Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0}<br>$hr<br>${color darkgrey}Wireless Networking:<br>Up:$color ${upspeed wlo1} ${color darkgrey} - Down:$color ${downspeed wlo1}<br>${color darkgrey}Wired Networking:<br>Up:$color ${upspeed enp0s25} ${color grey} - Down:$color ${downspeed enp0s25}<br>$hr<br>${color darkgrey}Name PID CPU% MEM% $color<br>${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}<br>${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}<br>${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}<br>${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}<br>${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}<br><br>sudo vim /etc/xdg/lxsession/LXDE/autostart and add following to autostart conky<br>@conky<br><br>If you find that the minimum_size and maximum_height or maximum_width are not being obeyed by conky, then comment out own_window_type and own_window_hints, let conly reload, then add those back again. Courtsey [https://bbs.archlinux.org/viewtopic.php?pid=1037806#p1037806]<br><br>#xrandr scripts<br>sudo pacman -S arandr<br>arandr is good to switch off one monitor and use another. In my case when I take laptop to office, I have 2 external monitors for which below scripts helps<br>cd ~/scripts<br><br>vim singlemonitor.sh<br>#!/bin/sh<br>xrandr --output DP3 --off --output DP2 --off --output DP1 --off --output HDMI3 --off --output HDMI2 --off --output HDMI1 --off --output LVDS1 --off --output VGA1 --mode 1280x1024 --pos 0x0 --rotate normal<br>xrandr --output DP3 --off --output DP2 --off --output DP1 --off --output HDMI3 --off --output HDMI2 --off --output HDMI1 --off --output LVDS1 --mode 1366x768 --pos 0x0 --rotate normal --output VGA1 --mode 1280x1024 --pos 0x0 --rotate normal<br>xrandr --output DP3 --off --output DP2 --off --output DP1 --off --output HDMI3 --off --output HDMI2 --off --output HDMI1 --off --output LVDS1 --mode 1366x768 --pos 0x0 --rotate normal --output VGA1 --off<br>xbacklight -set 100<br>pkill conky<br>conky 2> /dev/null &<br><br>vim dualmonitor.sh<br>#!/bin/sh<br>xrandr --output DP3 --off --output DP2 --off --output DP1 --off --output HDMI3 --off --output HDMI2 --off --output HDMI1 --off --output LVDS1 --mode 1366x768 --pos 0x0 --rotate normal --output VGA1 --mode 1280x1024 --pos 0x0 --rotate normal<br>xrandr --output DP3 --off --output DP2 --off --output DP1 --off --output HDMI3 --off --output HDMI2 --off --output HDMI1 --off --output LVDS1 --off --output VGA1 --mode 1280x1024 --pos 0x0 --rotate normal<br>xrandr --output DP3 --off --output DP2 --off --output DP1 --off --output HDMI3 --off --output HDMI2 --mode 1280x1024 --pos 1280x0 --rotate normal --output HDMI1 --off --output LVDS1 --off --output VGA1 --mode 1280x1024 --pos 0x0 --rotate normal<br>pkill conky<br>conky 2> /dev/null &<br><br>vim tvonly.sh<br>#!/bin/sh<br>xrandr --output HDMI-0 --off --output LVDS --off --output DVI-0 --off --output VGA-0 --mode 1920x1080 --pos 0x0 --rotate normal<br>pkill conky<br>conky 2> /dev/null &<br><br>chmod 775 *.sh<br><br>To invoke the scripts from run command add symlinks to /usr/local/bin<br>cd /usr/local/bin<br>sudo ln -s /home/bhupendra/scripts/dualmonitor.sh dualmonitor<br>sudo ln -s /home/bhupendra/scripts/singlemonitor.sh singlemonitor<br>sudo ln -s /home/bhupendra/scripts/tvonly.sh tvonly<br><br>#finding key bindings<br>Use xev command to find out the key values. More info at openbox.org/wiki/Help:Bindings however note that LXDE users should follow these instructions to edit the file ~/.config/openbox/lxde-rc.xml and not the ~/.config/openbox/rc.xml<br>#Adding custom key events<br>In ~/.config/openbox/lxde-rc.xml inside the <keyboard> element add the following:<br><!-- Keybinding for volume Keys --><br> <keybind key="XF86AudioLowerVolume"><br> <action name="Execute"><br> <startupnotify><br> <enabled>true</enabled><br> <name>amixer</name><br> </startupnotify><br> <command>amixer -c 0 set Master 5- unmute</command><br> </action><br> </keybind><br> <keybind key="XF86AudioRaiseVolume"><br> <action name="Execute"><br> <startupnotify><br> <enabled>true</enabled><br> <name>amixer</name><br> </startupnotify><br> <command>amixer -c 0 set Master 5+ unmute</command><br> </action><br> </keybind><br> <keybind key="XF86AudioMute"><br> <action name="Execute"><br> <startupnotify><br> <enabled>true</enabled><br> <name>amixer</name><br> </startupnotify><br> <command>amixer -D pulse set Master 1+ toggle</command><br> </action><br> </keybind><br> <keybind key="XF86HomePage"><br> <action name="Execute"><br> <startupnotify><br> <enabled>true</enabled><br> <name>firefox</name><br> </startupnotify><br> <command>firefox</command><br> </action><br> </keybind><br><!-- Keybinding for PrintScreen Key --><br> <keybind key="Print"><br> <action name="Execute"><br> <execute>scrot -e 'mv $f ~/Downloads/'</execute><br> </action><br> </keybind><br> <keybind key="A-Print"><br> <action name="Execute"><br> <execute>scrot -b -s -e 'mv $f ~/Downloads/'</execute><br> </action><br> </keybind><br>run openbox --reconfigure<br><br>#Hardware check<br>uname -a<br>cat /proc/cpuinfo<br>cat /proc/meminfo<br>cat /proc/partitions<br>lspci -v | grep VGA<br><br>sudo pacman -S dmidecode hdparm<br>sudo dmidecode --type memory <br>hdparm -I /dev/sda <br> <br>One can also install lshw and view html for hw info<br>sudo pacman -S lshw<br>sudo lshw -html >> lshw.html<br>firefox lshw.html<br><br>#make arch faster<br>-For ssd<br>sudo vim /etc/fstab and add discard option to /dev/sda1. The file then looks something like below<br>#<br># /etc/fstab: static file system information<br>#<br># <file system> <dir> <type> <options> <dump> <pass><br># /dev/sda1<br>UUID=3e6fd4bb-6a0d-425a-81dd-fd3abbb37f96 / ext4 rw,relatime,data=ordered,discard 0 1<br>/dev/sda2 none swap defaults,discard 0 0<br>-play around with linux swapiness and vfs_cache_pressure<br>To check the currently set values (60 and 100 respectively)<br>sysctl -n vm.swappiness<br>sysctl -n vm.vfs_cache_pressure<br>setting value for session<br>sudo sysctl -w vm.swappiness=20<br>sudo sysctl -w vm.vfs_cache_pressure=50<br>permanently setting value, add following in /etc/sysctl.conf<br>vm.swappiness=20<br>vm.vfs_cache_pressure=50<br>-install preload<br>yaourt preload<br>sudo systemctl enable preload<br>sudo systemctl start preload<br>-install prelink<br>sudo pacman -S prelink<br>Note: Some proprietary binaries will crash with prelink (such as Flash, Skype, Nvidia proprietary driver).<br>You can add these to the exclude list in /etc/prelink.conf as in https://wiki.archlinux.org/index.php/Talk:Prelink<br>prelink all the binaries in the directories given by /etc/prelink.conf run following<br>prelink -amR<br>Removing prelinking from all binaries run following<br>prelink -au<br>Add prelink to daily cron job in order to get benefits from updates<br>sudo vim /etc/cron.daily/prelink.cron and add follwowing:<br>#!/bin/bash<br>[[ -x /usr/sbin/prelink ]] && /usr/sbin/prelink -amR &>/dev/null<br>sudo chmod 755 /etc/cron.daily/prelink.cron<br>sudo systemctl enable cronie<br>sudo systemctl start cronie<br>-improve boot times<br>enable readahead<br>sudo systemctl enable systemd-readahead-collect systemd-readahead-replay<br>sudo vim /etc/default/grub and change GRUB_TIMEOUT=1 for quicker booting<br>sudo grub-mkconfig -o /boot/grub/grub.cfg<br>-improve firefox performance<br>Reduce load time by compressing the Firefox binary with UPX<br>sudo pacman -S upx<br>sudo cp /usr/lib/firefox/firefox /usr/lib/firefox/firefox.backup<br>sudo upx --best /usr/lib/firefox/firefox<br>Tweak about:config set following recommended values for 1.5mb connection<br>network.http.pipelining true Enable pipelining for normal connections<br>network.http.proxy.pipelining true Enable pipelining for proxy connections<br>Configure Firefox to use ram only cache<br>open about:config in the address bar<br>set browser.cache.disk.enable to "false" (double click the line)<br>set browser.cache.memory.enable to "true" (double click the line)<br>set browser.cache.memory.max_entry_size to the amount of KB you'd like to spare, to -1 for automatic cache size selection<br><br>#if you need power savings on battery [More at https://wiki.archlinux.org/index.php/TLP]<br>yaourt tlp-rdw<br>sudo systemctl enable tlp<br>sudo systemctl enable tlp-sleep<br>sudo systemctl enable NetworkManager-dispatcher<br>The default configuration /etc/default/tlp provides optimized power saving out of the box.<br>sudo cp /etc/default/tlp /etc/default/tlp.bak<br>sudo vim /etc/default/tlp and change following:<br>DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"<br>DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan lan"<br>DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi lan"<br>DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi"<br>DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT="lan"<br>DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=""<br><br>#virtualbox<br>-installation<br>sudo pacman -S virtualbox virtualbox-host-modules qt4 virtualbox-guest-iso<br>-to load the kernal module manually<br>sudo modprobe vboxdrv<br>-to load the module at boot time add following virtualbox.conf under /etc/modules-load.d<br>#/etc/modules-load.d/virtualbox.conf<br>#load the virtualbox kernel module<br>vboxdrv<br>-to use usb ports of your host machines<br>sudo gpasswd -a $USER vboxusers<br>-once the virtualbox gui is up and running download and install the extention pack if needed.<br><br>#Copying backup from another *nix, use rsync<br>-Below command copies from current directory . to the remote directory via assh<br>rsync -auzve ssh . bhupendra@archtv:/export/home/bhupendra/tmp/<br>-Below command copies all files and folders from the remote tmp directory in current directory<br>rsync -auzve ssh bhupendra@archtv:/export/home/bhupendra/tmp/ .<br>-Below does the same however it also creates the tmp directory in current directory if it does not exit<br>rsync -auzve ssh bhupendra@archtv:/export/home/bhupendra/tmp .<br>v verbose<br>z compress<br>u skip files that are newer on reciever<br>e specify the remote shell to use<br>a archive mode; equals -rlptgoD (no -H,-A,-X)<br>r recursive into directories<br>l copy symlinks as symlinks<br>p preserve permissions<br>t preserve modification times<br>g preserve group<br>o preserve owner (super user only)<br>D same as --devices --specials<br>--devices This option causes rsync to transfer character and block device<br> files to the remote system to recreate these devices. This<br> option has no effect if the receiving rsync is not run as the<br> super-user <br>--specials This option causes rsync to transfer special files such as named<br> sockets and fifos.<br>--delete-during deletes files on reciever side if they do not exist anymore during transfers<br><br>-So to backup usual home folders from my laptop having host archoffice over the network to archtv here is what I do<br>rsync --delete-during --ignore-errors -auzve ssh /home/bhupendra/DEV/ bhupendra@archtv:/home/bhupendra/DEV<br>rsync --delete-during --ignore-errors -auzve ssh /home/bhupendra/Documents/ bhupendra@archtv:/home/bhupendra/Documents<br>rsync --delete-during --ignore-errors -auzve ssh /home/bhupendra/Music/ bhupendra@archtv:/home/bhupendra/Music<br>rsync --delete-during --ignore-errors -auzve ssh /home/bhupendra/Pictures/ bhupendra@archtv:/home/bhupendra/Pictures<br>rsync --delete-during --ignore-errors -auzve ssh /home/bhupendra/scripts/ bhupendra@archtv:/home/bhupendra/scripts<br>rsync --delete-during --ignore-errors -auzve ssh /home/bhupendra/Videos/ bhupendra@archtv:/run/media/bhupendra/NTFS297GB/<br>Note that in the last rsync, I want to move videos to connected external hdd instead of Videos folder under home directory.<br><br>-Since we have to enter password anytime we want to run the remote rsync, time we avoid that by auto ssh logins without password<br>[More at https://wiki.archlinux.org/index.php/SSH_Keys]<br>I have 2 laptops running arch, having hostnames archtv and archoffice.<br>This is that I did on archoffice<br>ssh-keygen -t rsa -C "$(whoami)@$(hostname)-$(date -I)"<br>hit enter for all options it provided, ie. save key to .ssh/id_rsa, do not enter passphrase else we will have to enter it each time we ssh<br>This generates private key at ~/.ssh/id_rsa and public key at ~/.ssh/id_rsa.pub<br>Now, copy the public key to archtv<br>ssh-copy-id bhupendra@archtv<br>This copies the key to ~/.ssh/authorized_keys<br>Now you can ssh from archoffice to archtv without password<br>Followed same process on archtv so that archtv can connect to archoffice without passwords.<br>Now the above rsync commands will not ask for passwords<br><br>-Time to create shell script which combines all my rsync commands<br>vim ~/scripts/syncbackup.sh<br>#!/bin/bash<br>/usr/bin/rsync --delete-during --ignore-errors -auzve /usr/bin/ssh /home/bhupendra/DEV/ bhupendra@archtv:/home/bhupendra/DEV <br>/usr/bin/rsync --delete-during --ignore-errors -auzve /usr/bin/ssh /home/bhupendra/Documents/ bhupendra@archtv:/home/bhupendra/Documents<br>/usr/bin/rsync --delete-during --ignore-errors -auzve /usr/bin/ssh /home/bhupendra/Music/ bhupendra@archtv:/home/bhupendra/Music<br>/usr/bin/rsync --delete-during --ignore-errors -auzve /usr/bin/ssh /home/bhupendra/Pictures/ bhupendra@archtv:/home/bhupendra/Pictures<br>/usr/bin/rsync --delete-during --ignore-errors -auzve /usr/bin/ssh /home/bhupendra/scripts/ bhupendra@archtv:/home/bhupendra/scripts<br>/usr/bin/rsync --ignore-errors -auzve /usr/bin/ssh /home/bhupendra/Videos/ bhupendra@archtv:/run/media/bhupendra/NTFS297GB/<br><br>chmod 775 ~/scripts/syncbackup.sh<br>sudo ln -s /home/bhupendra/scripts/syncbackup.sh /usr/bin/syncbackup<br><br>-Now lets invoke the script when wireless network gets connected to ssid kitty.<br>sudo vim /etc/NetworkManager/dispatcher.d/01-syncbackup<br>#!/bin/sh<br><br>ssid="kitty"<br>interface=$1<br>status=$2<br><br>if [ "$interface" = "wlo1" -a "$status" = "up" ]; then<br> if nmcli con status id $ssid | grep -qs activated; then<br> syncbackup > /var/log/rsync/$(date +%Y-%m-%d-%H-%M-%S).log 2>&1<br> fi<br>fi<br><br>sudo chmod 755 /etc/NetworkManager/dispatcher.d/01-syncbackup<br>sudo mkdir /var/log/rsync<br>sudo chown bhupendra:users /var/log/rsync<br><br>-google drive support<br>yaourt insync<br>run insync<br>login to google account<br>name your drive folder as: bhupendra.atre@gmail.com<br>put google drive folder at: /home/bhupendra/googledrive<br>Insync was starting automatically on reboot, and I did not see any systemd service or any entry in lxde autostart<br>then I created following symlink folder to sync my Documents folder<br>cd /home/bhupendra/googledrive/bhupendra.atre@gmail.com<br>ln -s /home/bhupendra/Documents Documents<br><br>---------------------------------------------------------------------------------------------------<br>#Changes for archtv<br>I have another arch laptop connected to my 47' led tv. Since we want larger fonts here are the steps I took<br>---------------------------------------------------------------------------------------------------<br>-disable latop display and enable tv display<br>sudo vim /etc/xdg/lxsession/LXDE/autostart and add following<br>@tvonly<br>-disbale suspend on lid close<br>sudo vim /etc/systemd/logind.conf<br>HandleSuspendKey=ignore<br>HandleHibernateKey=ignore<br>HandleLidSwitch=ignore<br>-in firefox add plugin noSquint to auto zoom pages on hdtv resolution. In global settings change the default zoom to 170%.<br>-default font increase<br>open lxappearance<br>under widget, adwaita, change default font to sams 18 instead of sams 10<br>under window border, title bar, change sans bold 10 to 18.<br>-open panel preferences on lxpanel,<br>under appearance, select font size and set it to 18<br>under geometry, change height to 44 pixel instead of 26 and icon size to 42 instead of 24.<br>-under lxterminal change default font size from monospace 10 to 18.<br>-under leafpad change default font size to 18.<br>-under pcmanfm preferences, display section, change following:<br>size of big icons 96x96 [default 48x48]<br>size of small icons 48x48 [default 24x24]<br>size of thumbnails 256x256 [default 128x128]<br>size of side pane icons 48x48 [default 24x24]<br>-in ~/.conkyrc change the font size from 10 to 18</p>
<p>
<br></p>
</div>
</title>--></div>
bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com0tag:blogger.com,1999:blog-7801985619478995070.post-50598490934053292092012-07-07T04:57:00.004-07:002012-07-07T05:22:12.285-07:00My personal Fedora 17 LXDE installation<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
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.<br />
<br />
#installation<br />
-unchecked use lvm and check review and modify partitioning layout<br />
-set correct swap space, too much is waste anyways<br />
-delete /home partition and merge space onto /<br />
-Personally I would keep /home on the extended partition but this layout helps me reclaim the available space for partitions easily<br />
-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<br />
-I also use <a href="http://gag.sourceforge.net/">http://gag.sourceforge.net/</a> to dual boot my windows 7 and fedora on my office laptop.<br />
<br />
#setup sudo, update system and reboot<br />
su<br />
echo 'bhupendra ALL=(ALL) ALL' >> /etc/sudoers<br />
exit<br />
sudo yum update<br />
<br />
#if getting error at boot 'cannot open Front File True'<br />
<a href="http://forums.fedoraforum.org/showpost.php?p=1582163&postcount=7">http://forums.fedoraforum.org/showpost.php?p=1582163&postcount=7</a><br />
<br />
#if you are in virtualbox vm, do following to install guest additions<br />
sudo yum install kernel-devel kernel-headers dkms gcc gcc-c++<br />
mount guest additions if not already mounted<br />
cd /run/media/bhupendra/VBOXADDITIONS_*<br />
sudo ./VBoxLinuxAdditions.run<br />
reboot<br />
<br />
#desktop changes<br />
-Moved bottom panel to top, change background appearance to solid #000000 color with 30 opacity<br />
-second panel to left for quick launch items again solid #000000 color with 30 opacity and width 26px, height 97%, alighnment bottom, edge left<br />
-right click desktop preferences, wallpaper mode -> fill with background color only. Set background color to black<br />
-disable screensaver or set to xmatrix, change to small fonts<br />
-set custom color white to top panel and change date format on digital clock to %m/%d %r<br />
-just in case you want to change the default background for login screen is controlled by symlink<br />
default.png -> ./verne/default/standard/verne.png under /usr/share/backgrounds<br />
Say we downloaded simple_linux.png under /usr/share/backgrounds/images and change the symlink to point to the downloaded image<br />
sudo ln -sf /usr/share/backgrounds/images/simple_linux.png default.png<br />
-If Tools > "Open Current Folder as Root" command gives an error, you probably need to enter a change similar to this one:<br />
sudo yum install beesu<br />
Then, PCManFM > Edit > Preferences > Advanced and in the the "Switch user command" field add the command "beesu %s" (without quotes). <br />
-Enable left clicks and scrolling on mousepad<br />
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<br />
Option "TapButton1" "1"<br />
Option "HorizEdgeScroll" "1"<br />
Option "VertEdgeScroll" "1"<br />
Here is an interesting page to test scrolling: http://www.richinstyle.com/test/dynamic/overflowscroll.html<br />
Reboot system.<br />
<br />
#Make linux faster<br />
-Preload - adaptive readahead daemon<br />
sudo yum install preload<br />
ensure it's running<br />
sudo systemctl enable preload.service<br />
sudo systemctl start preload.service<br />
-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.<br />
<br />
#App installations<br />
-skype<br />
sudo yum -y install libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686 pulseaudio-libs.i686 pulseaudio-libs-glib2.i686 alsa-plugins-pulseaudio.i686<br />
sudo yum install http://download.skype.com/linux/skype-4.0.0.7-fedora.i586.rpm<br />
Based on test call, my mic was not correctly working. <br />
Opened up pulse audio volume mixer, undere recording tab, show all streams, then gave test skype call.<br />
Once the recording showed an entry I changed the option to Quickcam<br />
<br />
-adobe flash 11 64bit<br />
sudo yum install http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm<br />
sudo yum install flash-plugin<br />
<br />
-office suite<br />
removed exsting F17lxde office apps and install libreoffice<br />
sudo yum remove abiword gnumeric osmo<br />
sudo yum install libreoffice planner<br />
<br />
-Firefox comes as default<br />
Add fastdial to firefox and import bookmarks. Change default page startup to blank<br />
Adblock plus<br />
Awesome screenshot<br />
downloadhelper<br />
firebug<br />
firecookie<br />
fireftp<br />
greasemonkey<br />
jsview<br />
live http headers<br />
modify headers<br />
measureit<br />
poster<br />
wsj/bol smartfox<br />
UserAgent Switcher. Download xml file from http://techpatterns.com/forums/about304.html and import via addon via options.<br />
<br />
-google chrome and voice chat<br />
download rpm from https://www.google.com/chrome for chrome<br />
download rpm from ls for google voice and video chat<br />
sudo yum install lsb [required for chrome]<br />
sudo rpm -Uvh google-*.rpm<br />
<br />
-pdf viewer<br />
lxde f17 comes preinstalled with epdfview, however it cannot enter fillable pdf forms<br />
for editing pdfs, nothing beats pdfedit unfortunatly it's not in repo since F16<br />
For now, I am staying with epdfview and mozplugger to view pdfs in firefox<br />
sudo yum install epdfview mozplugger<br />
<br />
-disk usage analyser<br />
sudo yum install baobab<br />
<br />
-rpm fusion repos for third party softwares<br />
sudo yum install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm<br />
sudo yum install http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm<br />
sudo yum update<br />
<br />
-audio and video requirements<br />
Since I use audacious and vlc for all my video/audio needs, I removed others and installed these<br />
sudo yum remove asunder lxmusic gxine<br />
sudo yum install mozilla-vlc vlc vlc-extras ffmpeg audacious audacious-plugins*<br />
<br />
-conky<br />
sudo yum install conky<br />
To add any applications to autostart read http://wiki.lxde.org/en/LXSession#autostart. I have added conky to autostart.<br />
sudo vi /etc/xdg/lxsession/LXDE/autostart<br />
Add follwing<br />
@conky<br />
<br />
-Enable ssh<br />
sudo systemctl enable sshd.service<br />
sudo systemctl start sshd.service<br />
Ensure firewall has port opened for 22, and enable port forwarding on wireless router<br />
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.<br />
<br />
-install 7zip<br />
sudo yum install p7zip<br />
To extract file use<br />
7za e filename.7z<br />
To create 7zip archive use<br />
7za a filename.7z directoryWithFilesToCompress/<br />
<br />
-image manipulation<br />
lxde comes with mtpaint, which is ok but nothing beats gimp<br />
sudo yum remove mtpaint<br />
sudo yum install gimp<br />
open gimp, under windows, there is option for single window mode<br />
<br />
-printer<br />
sudo yum install hplip hplip-gui<br />
run following on command prompt or go to application menu -> administration -> hp device manager<br />
hp-setup<br />
During printer configuration, use ip to configure [192.168.0.6] and enter username/password for root.<br />
For any other printer config like xerox, cannon etc. OR for most hp printer including hp estation<br />
directly open printing menu, find netwrok printers and add them.<br />
<br />
-scan to pdf if required<br />
sudo yum install gscan2pdf <br />
<br />
-picasa alternative<br />
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<br />
sudo yum update shotwell<br />
Anyways I did not install it this time around.<br />
<br />
-finding key bindings<br />Use xev command to find out the key values<br />On hp elitebook 8440p<br />keycode 121 = XF86AudioMute<br />keycode 122 = XF86AudioLowerVolume<br />keycode 123 = XF86AudioRaiseVolume<br />keycode 171 = XF86AudioNext<br />Keycode 172 = XF86AudioPlay<br />Keycode 173 = XF86AudioPrev<br />Keycode 174 = XF86AudioStop<br />Keycode 163 = XXF86Mail<br />Keycode 107 = Print<br />keycode 232 = XF86MonBrightnessDown<br />keycode 233 = XF86MonBrightnessUp<br />keycode 150 = XF86Sleep<br />keycode 133 = Super_L<br />keycode 244 = XF86Battery<br />keycode 201 = XF86TouchpadOff<br /><br />-volume key buttons<br />In ~/.config/openbox/lxde-rc.xml inside the <keyboard> element add the following <br /> <keybind key="XF86AudioLowerVolume"><br /> <action name="Execute"><br /> <startupnotify><br /> <enabled>true</enabled><br /> <name>amixer</name><br /> </startupnotify><br /> <command>amixer -c 0 set Master 5- unmute</command><br /> </action><br /> </keybind><br /> <keybind key="XF86AudioRaiseVolume"><br /> <action name="Execute"><br /> <startupnotify><br /> <enabled>true</enabled><br /> <name>amixer</name><br /> </startupnotify><br /> <command>amixer -c 0 set Master 5+ unmute</command><br /> </action><br /> </keybind><br /> <keybind key="XF86AudioMute"><br /> <action name="Execute"><br /> <startupnotify><br /> <enabled>true</enabled><br /> <name>amixer</name><br /> </startupnotify><br /> <command>amixer set Master toggle</command><br /> </action><br /> </keybind><br />Re-login, reboot or just run openbox --reconfigure for above changes to be in effect. <br /><br />-print screen on linux<br />On terminal, run following, and click mouse on the screen whose image needs to be captured<br />xwd > myimage.xwd<br />To view the captured screen image run following or open with display, gimp, xv etc.<br />xwud -in myimage.xwd<br />Another option is to use gimp which has screenshot option<br />sudo yum install gimp<br />Goto file -> create ->screenshot<br />All this was great on comman promt but what about the print key? <br />Install scrot<br />sudo yum install scrot<br />Add following to inn ~/.config/openbox/lxde-rc.xml under keyboard<br /><!-- Keybinding for PrintScreen Key --><br /> <keybind key="Print"><br /> <action name="Execute"><br /> <execute>scrot -e 'mv $f ~/Desktop/'</execute><br /> </action><br /> </keybind><br /><br /> <keybind key="A-Print"><br /> <action name="Execute"><br /> <execute>scrot -b -s -e 'mv $f ~/Desktop/'</execute><br /> </action><br /> </keybind><br />Re-login or reboot and alt+printscreen allows you to select area to capture while printscreen captures whole page<br />On my laptop printscreen button was shared with insert key and had to be invoked using fn+insert/prt sc<br />Now there will be times when we want to take screenshot of pull down menu or something, in that case we need deplay<br /><br />-dual monitor setups<br />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:<br />get list of connected display with their supported resolution<br />xrandr<br />To attach 2nd monitor<br />xrandr --output VGA-1 --auto --right-of eDP-1<br />To remove 2nd monitor<br />xrandr --output VGA-1 --off<br />[More simplified details at http://blog.bodhizazen.net/linux/use-xrandr-to-set-a-screen-resolution/]<br />Alternatively, we can download and run arandr which is more complete but less intuitive gui for xrandr<br />cd ~<br />wget https://launchpad.net/arandr/release/0.1.6/+download/arandr-0.1.6.tar.gz [download latest one from https://launchpad.net/arandr]<br />tar xzf arandr-0.1.6.tar.gz<br />chmod 775 arandr-0.1.6<br />rm -rf arandr-0.1.6.tar.gz<br />One could create a menu item for this, but I just added keyboard shortcut for convinience<br />Add following to in ~/.config/openbox/lxde-rc.xml under keyboard<br /> <keybind key="C-F12"><br /> <action name="Execute"><br /> <execute>~/arandr-0.1.6/arandr</execute><br /> </action><br /> </keybind><br />Reboot or relogin or openbox --reconfigure and hit ctrl+F12 keys<br /><keyboard><br />-Remmina - gtk+ app for rdp/nx/vnc/xdmcp/ssh<br />sudo yum install remminia remmina-plugins*<br />Once opened, it docks to tray. To disable that edit->preferences->applet->disable tray icon<br /><br />-virtualbox<br />Download repo from virtualbox site into /etc/yum.repos.d/<br />cd /etc/yum.repos.d/<br />sudo wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo<br />sudo yum install dkms kernel-headers gcc<br />sudo yum install VirtualBox-4.1<br />Add your user to vboxusers group<br />sudo service vboxdrv setup<br />Download and install extention pack <br /><br />-configure wireless nw using certificates for office<br />check 'connect automatically'<br />ssid=djmcn<br />security=WPA & WPA2 Enterprise<br />Authentication=TLS<br />identity=username<br />user certificate=username-b64.cer<br />CA certificate=certname.cer<br />private key=username.pem<br />Private key password=passwordhere<br /><a href="http://www.sslshopper.com/article-most-common-openssl-commands.html">http://www.sslshopper.com/article-most-common-openssl-commands.html</a><br /><br />-import certificates to firefox<br />-Firefox promts to import certificate when clicked to save it in it's store.<br />-google chrome does not have it's own certificate store unlike firefox. On windows it uses windows store etc.<br />For more details http://code.google.com/p/chromium/wiki/LinuxCertManagement<br />yum install nss-tools<br />As for me, I download all the certificates to load using chrome<br />cd ~<br />certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n certname -i pathtocertfile/certname.crt<br /><br />-configure cisco vpn to office<br />sudo yum install vpnc NetworkManager-vpnc<br />Now configure vpn using network manager applet<br /><br />-outlook alternative -> thunderbird<br />sudo yum remove sylpheed [comes default with lxde]<br />sudo yum install thunderbird thunderbird-lightning<br />>>CONFIGURE MAIL [if mail.dowjones.net does not work, try outlooksbk.win.dowjones.net ]<br />incoming: IMAP mail.dowjones.net 143 STARTTLS normal password<br />outgoing: SMTP mail.dowjones.net 587 STARTTLS normal password<br />username: atreb [if this does not work try DJNAMERICAS/atreb]<br />>>Install addons<br />ImportExportTools<br />Exchange 2007/2010 Calendar and Tasks Provider<br />slideshow<br />>>CONFIGURE OFFLINE ADDRESSBOOK<br />Tools -> address book<br />File -> New -> Ldap directory<br />This will need the ldap details.<br />Right click new address book and click properties -> offline tab -> click download<br />Now goto mail settings -> composition & addressing<br />select 'Use a different LDAP server' and select new address book.<br />>>CONFIGURE CALENDAR<br />File -> New -> calendar<br />Select 'on the network'<br />Select Microsoft Exchange 2007/2010<br />Check Use Exchange's autodiscovery function<br /><br />-ms office communicator plugin for pidgin<br />sudo yum install pidgin pidgin-sipe<br /><br />-file editor<br />sudo yum install geany geany-plugins-treebrowser geany-plugins-xmlsnippets<br />Enable TreeBrowser and XML Snippets under tools -> plugins<br /><br />-Install java<br />open jdk 1.7 was already installed<br />sudo yum install java-1.7.0-openjdk java-1.7.0-openjdk-devel<br /><br />-subversion installation<br />sudo yum install svn<br /><br />-Download eclipse<br />mkdir ~/DEV<br />cp ~/Downloads/eclipse-jee-juno-linux-gtk-x86_64.tar.gz ~/DEV<br />cd ~/DEV<br />tar -xzvf eclipse-jee-juno-linux-gtk-x86_64.tar.gz<br />rm -rf eclipse-jee-juno-linux-gtk-x86_64.tar.gz<br />cd eclipse<br />chmod 775 eclipse<br />./eclipse<br />set workspace as /home/bhupendra/DEV/eclipse/workspace<br />Once eclipse is opened:<br />move outline and task panel to right<br />window -> show view -> navigator<br />help -> check for updates<br />Drop eclipse.png in /usr/share/icons and Create eclipse.desktop file under /usr/share/applications<br />[Desktop Entry]<br />Name=eclipse<br />Exec=/home/bhupendra/DEV/eclipse/eclipse<br />Icon=eclipse.png<br />Terminal=0<br />Type=Application<br />Encoding=UTF-8<br />Categories=Development;Application;<br /><br />Install subversive from the juno update site using eclipse add new software. <br />After restart select svnkit 1.3x for connector [after checking which version of svn is running]<br /><br />-for file and folder diff operations<br />sudo yum install meld<br /><br />-Download sql developer from oracle site<br />sudo rpm -Uvh sqldeveloper-*</keyboard><br />
type sqldeveloper and it will prompt for jdk path, enter following<br />
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.3.x86_64<br />
<br />
-Maven installation<br />
Downloaded apache-maven-2.2.1-bin.tar.gz<br />
cp apache-maven-2.2.1-bin.tar.gz ../DEV<br />
cd ../DEV<br />
tar -xzvf apache-maven-2.2.1-bin.tar.gz<br />
rm apache-maven-2.2.1-bin.tar.gz<br />
Add following to /etc/profile<br />
export M2_HOME=/home/bhupendra/DEV/apache-maven-2.2.1<br />
export M2=$M2_HOME/bin<br />
export PATH=$M2:$PATH<br />
To check the installation immediatly, run above command in terminal and type<br />
mvn --version<br />
For my dev, I updated the settings.xml file under $M2_HOME/conf<br />
<br />
-Apache httpd installation<br />
sudo yum install httpd<br />
to check service status<br />
sudo systemctl status httpd.service<br />
to start service<br />
sudo systemctl start httpd.service<br />
to stop service<br />
sudo systemctl stop httpd.service<br />
conf files located at /etc/httpd/conf<br />
Disable the default welcome page by commenting out lines in /etc/httpd/conf.d/welcome.conf<br />
New files can be dropped in at /var/www/html which is the default DocumentRoot<br />
Created index.htmll in the Document root and accessed using http://localhost/index.html<br />
sudo yum install php<br />
restart httpd so that it loads up php module<br />
create new file /home/bhupendra/DEV/html/test.php<br />
// Show all information, defaults to INFO_ALL<br />
phpinfo();<br />
// Show just the module information.<br />
// phpinfo(8) yields identical results.<br />
phpinfo(INFO_MODULES);<br />
?><br />
<br />
<br />
-mount windows share<br />
mkdir /mnt/mountdir<br />
sudo mount -t cifs //ipaddresshere/client4 -o username=myusername,password=mypassword /mnt/mountdir<br />
umount /mnt/mountdir<br />
<br /></div>bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com2tag:blogger.com,1999:blog-7801985619478995070.post-78099220745047204622011-06-19T08:26:00.000-07:002011-08-07T18:20:36.234-07:00Fedora 15 with gnome 3 - my howtoInstalled live image from Fedora 15 64bit running gnome 3<br />I had to reinstalled since first time around, it loaded into fallback mode.<br /><br />-disable selinux<br />vi /etc/selinux/config<br />change SELINUX=targetted to SELINUX=disabled<br />save and close<br /><br />-enable sudo<br />vi /etc/sudoers<br />add following<br />yourusername ALL=(ALL) ALL<br /><br />-enable left click on touchpad of laptop<br />click 'Activities' (top left)<br />click 'System tools' (right)<br />click 'Mouse and Touchpad'<br />goto Touchpad tab and check following boxes<br />Disable touchpad while typing<br />Enable mouse clicks with touchpad<br /><br />-intall new programs<br />sudo yum install yum-fastestmirror<br /><br />-install plugins for the new gnome-shell<br />sudo yum install gnome-shell-extensions-alternative-status-menu [to have shutdown(power off) along with suspend menu]<br />sudo yum install gnome-shell-extensions-places-menu [adds places menu to right hand system indicator aread on top panel]<br />sudo yum install gnome-tweak-tool<br /><br />-install flash plugin,for my 64 bit installation I did following<br />sudo yum install wget<br />cd /tmp<br />wget http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_2_p3_64bit_linux_111710.tar.gz<br />tar xzvf flashplayer10_2_p3_64bit_linux_111710.tar.gz<br />sudo mv /tmp/libflashplayer.so /usr/lib64/mozilla/plugins/<br />For 32 bit, recommended approach is to download rpm from adobe site and install flash-plugin.<br /><br />-skype<br />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<br />Then download and install fedora10+ rpm from skype site.<br />sudo rpm -Uvh skype-2.2.0.35-fedora.i586.rpm<br /><br />-Install office<br />sudo yum install libreoffice-writer libreoffice-calc libreoffice-draw libreoffice-impress<br /><br />-install webstart and java applet support for firefox<br />icetea-web<br /><br />-install other programs that I use<br />gimp p7zip p7zip-plugins xboard gnuchess unrar wget<br /><br />-Install repo for third party apps<br />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'<br /><br />-For mp3 player needs I use audacious, simple and winap like.<br />sudo yum install audacious audacious-plugins-freeworld*<br />change theme to winamp from view menu<br /><br />-install play it all video player and fierfox plugin for videos.<br />sudo yum install vlc vlc-extras<br />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<br />http://dl.atrpms.net/all/vlc-plugin-1.1.9-69.fc15.x86_64.rpm at http://packages.atrpms.net/dist/f15/vlc/<br />http://dl.atrpms.net/all/libdvdcss2-1.2.10-5.fc15.x86_64.rpm at http://packages.atrpms.net/dist/f15/libdvdcss/<br />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<br />sudo yum install vlc vlc-extras<br /><br />-Enable ssh<br />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<br />So after reading that, it was easy<br />sudo systemctl enable sshd.service<br />sudo systemctl start sshd.service<br /><br />-Enable remote desktop<br />sudo yum install x11vnc x11vnc-javaviewers<br />x11vnc -storepasswd<br />The above command creates /home/yourusername/.vnc/passwd file where yourusername is your usernmae<br />To run server<br />sudo /usr/bin/x11vnc -o /var/log/x11vnc.log -display :0 -rfbauth /home/bhupendra/.vnc/passwd -many -bg -http<br />access via java enabled browser using http://hostOrIP:5800<br />access via vnc client hostOrIP:5900<br />To disconnect all connected clients<br />x11vnc -R disconnect:all<br />To stop running x11vnc server<br />x11vnc -R stop<br />To autostart x11vnc server on logon<br />cd /etc/gdm/PostLogin<br />sudo cp Default.sample Default<br />Add following line to Default file<br />/usr/bin/x11vnc -o /var/log/x11vnc.log -display :0 -rfbauth /home/bhupendra/.vnc/passwd -many -bg -http<br /><br />-make fast firefox 4 faster, in browser open about:config<br />Search and update following<br />network.http.max-connections change to 60 (default: 30)<br />network.http.max-connections-per-server change to 20 (default: 15)<br />network.http.max-persistent-connections-per-server change to 8 (default: 6)<br />network.http.pipelining change to true (default: false)<br />network.http.pipelining.ssl change to true (default: false)<br /><br />-Added following firefox addons<br />fireftp<br />User Agent switcher<br />Download helper<br />Awesome screenshot<br />fast dial<br />firecookie<br />firebug<br />colorzilla<br />live http header<br />measureit<br />refcontrol<br />JSONview<br />poster<br />jsview<br />flashblock<br /><br />-share media on dlna enabled devices [Samsung BD-6500]<br />sudo yum install ffmpeg java-1.6.0-openjdk<br />Open TCP 8895 and UDP 1900 ports in firewall<br />Download serviio-0.5.2-linux.tar.gz from http://www.serviio.org/download<br />cp serviio-0.5.2-linux.tar.gz /home/bhupendra [where bhupendra is my home directory]<br />tar xzvf serviio-0.5.2-linux.tar.gz<br />rm serviio-0.5.2-linux.tar.gz<br />cd serviio-0.5.2/bin<br />Now turn on your dlan enabled device<br />Then run<br />./serviio.sh<br />Then run following to add media directory<br />./serviio-console.sh<br />If you are not knowing what's happening take a look at serviio-0.5.2/log/serviio.log<br />I was tailing the log in seperate conosle to see which all media got added.<br /><br />-remove unwated apps<br />sudo yum remove totem totem-mozplugin totem-nautilus orca evince evince-nautilus rhythmbox evolution sound-juicer cdparanoia<br />ran package-cleanup --leaves<br />and uninstalled unwanted apps from it.<br /><br />-organize photos and upload to picasa. I used to install picasa and run it with wine installation, but no more now.<br />sudo yum install shotwell<br />shotwell has dependency on totem, waiting for 0.10 version which removes it. Till then totem needs to be installed.<br />If shotwell fails to upload, check upload limit on picasa web, we may have exceeded limit.<br />[Update: switched back to picasa since needed it for collage creation]<br />Downloaded the rpm from http://picasa.google.com/linux/download.html#picasa30<br />sudo yum localinstall picasa-3.0-current.i386.rpm<br />This installed all the dependency rpms too.<br />sudo yum install wine<br />Had to install wine since default picasa gives segmentation fault.<br />So to run picasa I use following:<br />wine "/opt/google/picasa/3.0/wine/drive_c/Program Files/Google/Picasa3/Picasa3.exe"<br /><br /><br />-Enable ssh<br />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<br />So after reading that, it was easy<br />sudo systemctl enable sshd.service<br />sudo systemctl start sshd.service<br /><br />-Enable remote desktop<br />sudo yum install x11vnc x11vnc-javaviewers<br />x11vnc -storepasswd<br />The above command creates /home/yourusername/.vnc/passwd file where yourusername is your usernmae<br />To run server<br />sudo /usr/bin/x11vnc -o /var/log/x11vnc.log -display :0 -rfbauth /home/bhupendra/.vnc/passwd -many -bg -http<br />access via java enabled browser using http://hostOrIP:5800<br />access via vnc client hostOrIP:5900<br />To disconnect all connected clients<br />x11vnc -R disconnect:all<br />To stop running x11vnc server<br />x11vnc -R stop<br />To autostart x11vnc server on logon<br />cd /etc/gdm/PostLogin<br />sudo cp Default.sample Default<br />Add following line to Default file<br />/usr/bin/x11vnc -o /var/log/x11vnc.log -display :0 -rfbauth /home/bhupendra/.vnc/passwd -many -bg -http<br /><br />-make fast firefox 4 faster<br />in browser open about:config<br />Search and update following<br />network.http.max-connections change to 60 (default: 30)<br />network.http.max-connections-per-server change to 20 (default: 15)<br />network.http.max-persistent-connections-per-server change to 8 (default: 6)<br />network.http.pipelining change to true (default: false)<br />network.http.pipelining.ssl change to true (default: false)<br />-Added following firefox addons<br />fireftp<br />User Agent switcher<br />Download helper<br />Awesome screenshot<br />fast dial<br />firecookie<br />firebug<br />colorzilla<br />live http header<br />measureit<br />refcontrol<br />JSONview<br />poster<br />jsview<br />flashblock<br /><br />-share media on dlna enabled devices [Samsung BD-6500]<br />#USING SERVIO<br />sudo yum install ffmpeg java-1.6.0-openjdk<br />Open TCP 8895 and UDP 1900 ports in firewall<br />Download serviio-0.5.2-linux.tar.gz from http://www.serviio.org/download<br />cp serviio-0.5.2-linux.tar.gz /home/bhupendra [where bhupendra is my home directory]<br />tar xzvf serviio-0.5.2-linux.tar.gz<br />rm serviio-0.5.2-linux.tar.gz<br />cd serviio-0.5.2/bin<br />Now turn on your dlan enabled device<br />Then run<br />./serviio.sh<br />Then run following to add media directory<br />./serviio-console.sh<br />If you are not knowing what's happening take a look at serviio-0.5.2/log/serviio.log<br />I was tailing the log in seperate conosle to see which all media got added.<br />Added shortcut for serviio<br />/etc/share/applications/serviio-start.desktop with following in it.<br />[Desktop Entry]<br />Name=Serviio-start<br />Comment=Starts serviio<br />Icon=Serviio<br />Exec=/home/bhupendra/serviio-0.5.2/bin/serviio.sh<br />Terminal=false<br />Type=Application<br />Categories=AudioVideo;Player;<br />StartupNotify=true<br />#USING TVMOBILI<br />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.<br />Ensure 30888 port is enabled on firewall.<br />TVmobili comes with a web console which can be accessed as http://yourLocalNetworkIP:30888/__index?page=information<br /><br />-Run ftp server<br />sudo yum install proftpd<br />sudo vi /etc/proftpd.conf<br />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.<br />to start ftp as service<br />sudo systemctl enable proftpd.service<br />sudo systemctl start proftpd.service<br /><br />-Enable bluetooth<br />systemctl status bluetooth.service<br />systemctl enable bluetooth.service<br />systemctl start bluetooth.service<br />I still was unable to send files from my cell to laptop after pairing. Dmsg showed following<br />Parsing /etc/bluetooth/input.conf failed: No such file or directory<br />I am still looking at solutions, will post once I get.bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com0tag:blogger.com,1999:blog-7801985619478995070.post-65900043524980617502011-05-22T17:18:00.000-07:002011-05-23T16:12:40.530-07:00vnc to current session on fedoraBeen using fedora 14 and wanted to set up vnc to current session on the running gnome desktop<br /><br />#install server<br />sudo yum install x11vnc-javaviewers x11vnc<br /><br />#set x11vnc password, it is written to /home/yourusername/.vnc/passwd where yourusername is your usernmae<br />x11vnc -storepasswd<br /><br />#run server<br />#-forever so that it does not disconnect when client disconnets<br />#-display :0 so that client shadows current logged in session<br />#-usepw so that client uses password from /home/yourusername/.vnc/passwd on server<br />#-bg can be used for the x11vnc to go into into the background after screen setup.Messages to<br /> stderr are lost unless -o logfile is used<br />x11vnc -forever -usepw -display :0<br /><br /><br />#set up x11vnc startup in xinetd for autostart<br />sudo yum install xinetd<br />sudo vi /etc/xinetd.d/x11vnc<br />Enter following in the file<br />service x11vnc<br />{<br /> port = 5900<br /> type = UNLISTED<br /> socket_type = stream<br /> protocol = tcp<br /> wait = no<br /> user = root<br /> server = /usr/bin/x11vnc<br /> server_args = -inetd -o /var/log/x11vnc.log -display :0 -rfbauth /home/yourusername/.vnc/passwd -many -bg<br /> disable = no<br />}<br />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<br /><br />UPDATE:<br />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<br /><br />#!/bin/sh<br />#Running x11vnc server<br />/usr/bin/x11vnc -o /var/log/x11vnc.log -display :0 -rfbauth /home/bhupendra/.vnc/passwd -many -bgbhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com1tag:blogger.com,1999:blog-7801985619478995070.post-29328376856580362652010-12-04T07:36:00.000-08:002011-06-03T10:49:38.018-07:00Nokia N8 - loving it<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimjXb_feSKG5jMoQY5tj8g8XdhGwxzH9mbcbYSF0X0rfK5knOnVWp758nNA11GIdwbetwwCFefSpStckVDQhxHEE7qQgCj66svuWft-eBsZWh0pHJeepE9vTPYadTp3Z4UytjNFR3Uwes/s1600/images.jpg"><img style="float: right; margin: 0pt 0pt 10px 10px; cursor: pointer; width: 183px; height: 275px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimjXb_feSKG5jMoQY5tj8g8XdhGwxzH9mbcbYSF0X0rfK5knOnVWp758nNA11GIdwbetwwCFefSpStckVDQhxHEE7qQgCj66svuWft-eBsZWh0pHJeepE9vTPYadTp3Z4UytjNFR3Uwes/s400/images.jpg" alt="" id="BLOGGER_PHOTO_ID_5546851909949659922" border="0" /></a>Tips and tricks for nokia N8 for more battery life for daily use<br />-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.<br />-Turn off theme effects. This also speeds up homescreens. Settings -> Themes -> Options -> Theme Effects -> Off<br />-keep bluetooth off. Menu > Settings > Connectivity > Bluetooth > Bluetooth = Off)<br />-In the tone profile for normal:<br />--Set vibrating alert off<br />--Set volume to 6 bars or less (to reduce sound pollution :-) )<br />--Set touch screen vibration off instead of level 2<br />-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.<br />-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.<br /><br />Tips to reduce battery usage under critical conditions<br />-Change the synchronisation frequency for your mailbox. Select Menu > Applications > Mail, your mailbox, and Options > Settings, and the relevant sync frequency settings.<br />-Deactivate the Big clock screen saver. Select Menu > Settings > Themes > Screen saver > None.<br />-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.<br />-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.<br /><br />Let me know any more tips n tricks and I'll add up.<br /><br /><br />Updated: Got this link on nokia site, has more tips<br />http://www.nokiausa.com/get-support-and-software/product-support/n8-00/faq#00bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com0tag:blogger.com,1999:blog-7801985619478995070.post-86435392255041828092010-08-18T15:40:00.000-07:002010-08-23T18:29:53.146-07:00Switched back to Fedora 13 Gnome<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCeW_TQlnvViueRgJJybC5m6W9m_ifuKODaUHwh1ynPBegelmIpTOoR8NrpWL0wu4Hc5Llzxx6i6AlAH_OkEEna3tZYmvqbYyNTKu42NvCp-OhG_vnAeTsenWeyoXPO5VivpPXwIZYQ4g/s1600/Screenshot.png"><img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 250px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCeW_TQlnvViueRgJJybC5m6W9m_ifuKODaUHwh1ynPBegelmIpTOoR8NrpWL0wu4Hc5Llzxx6i6AlAH_OkEEna3tZYmvqbYyNTKu42NvCp-OhG_vnAeTsenWeyoXPO5VivpPXwIZYQ4g/s400/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5508416412460698274" border="0" /></a><br />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 <a href="http://www.phoronix.com/scan.php?page=article&item=linux_desktop_vitals&num=1">kde vs gnome vs xfce vs lxde comparisions</a> I decided to go back to gnome. Above is the screenshot of my system after everything was done.<br /><br />Downloaded Fedora-13-i686-Live.iso and installed. After installation did following:<br /><br />echo 'bhupendra ALL=(ALL) ALL' >> /etc/sudoers<br />After this we can logout as root and run sudo yum ...<br /><br />vi /etc/selinux/config<br />Change SELINUX=enforcing to SELINUX=disabled<br /><br />-Enable touchpag clicks<br />sudo yum install gconf-editor<br />Open gconf-editor (not as root) and goto /desktop/gnome/peripherals/touchpad<br />select tap_to_click<br />select horiz_scroll_enable<br />select disable_while_typing<br /><br />-Download 'yum for linux rpm' from http://get.adobe.com/flashplayer/ for flash player in browser and adobe reader<br />yum install flash-plugin AdobeReader_enu<br /><br />-Download and install skype rpm for fedora 10+<br />sudo rpm -ivh skype-2.1.0.81-fc10.i586.rpm<br /><br />-Download picasa rpm from http://picasa.google.com/linux/download.html<br />sudo yum install lsb libgphoto2 openssl sane-backends audiofile esound-libs openssl-devel<br />sudo rpm -Uvh picasa-3.0-current.i386.rpm<br /><br />-Install rpmfusion repos<br />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<br /><br />-Enable mp3 playback on rythmbox<br />sudo yum install gstreamer-plugins-ugly gstreamer-plugins-bad<br /><br />-install java 6 and firefox java plugin for applet support<br />sudo yum install java-1.6.0-openjdk java-1.6.0-openjdk-plugin<br /><br />-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.<br />installed openoffice writer(word) and calc(excel)<br />sudo yum install openoffice.org-writer openoffice.org-calc<br />Install microsoft fonts for dealing with microsoft word documents<br />I always refer to mjwired for his excellent work on this. http://www.mjmwired.net/resources/mjm-fedora-f13.html<br /><br />-removed unwated apps, also ran package-cleanup --leaves to see which packages are not being used<br />sudo yum remove pino gnome-games vinagre totem brasero sound-juicer<br /><br />-Install other programs I need, vlc for videos, gimp for image manupulation and xboard as frontend to gnuchess<br />sudo yum install vlc mozilla-vlc gimp xboard gnuchess proftpd<br /><br />-Update system<br />sudo yum update<br />I rebooted once done for sanity check<br /><br />-Bluetooth<br />Bluetooth packages were installed by default<br />Enabled bluetooth service under services<br />to get services sudo yum install system-config-services<br />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'.<br /><br />-Virtual machines using virtualbox<br />Download Fedora repo file and move to /etc/yum.repos.d from http://www.virtualbox.org/wiki/Linux_Downloads<br />yum install dkms gcc kernel-headers kernel-devel VirtualBox-3.2<br />I already had images of windows exported from my previous virtual box so just imported them.<br />Dont forget to add your user to vboxuser group for usb support on guests.<br /><br />Show desktop icon available in panel configuration. By default ctrl+alt+D toggles desktop<br />set top and bottom panels transparent<br />Enable compiz via system->preferences->desktop effects<br />Change background image by right click on desktop. Set it default so that it reflects on login screen also.<br />open terminal goto edit->profile preferences->colors<br />uncheck use colors from system theme<br />select white on black system theme<br />goto background tab, and set transparent background to 50%<br />I also changed background image to Aqua and made panels transparent.<br />speed up firefox page loading, type about:config, search for network.dns.disableIPv6 and set it to true<br /><br /><br />Downloaded screenlets rpm but eventually removed it all since screenlets kept on crashing. Following dependencies were required for it.<br />sudo yum install gnome-python2-rsvg gnome-python2-rsvg python-imaging python-dateutil<br /><br />to connect to other machines<br />sudo yum install rdesktop vpnc NetworkManager-vpnc<br />I configured vpnc under network manager to connect to my office nw and created office.sh with following<br />rdesktop -u username -p password -f hostOrIp<br />Open nautilus, goto edit->preferences->behaviour tab<br />select 'Run executable text files when they are opened'<br />This way our script executes directly instead of opening dialog box telling what to do.bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com3tag:blogger.com,1999:blog-7801985619478995070.post-14269838283314062010-06-07T20:10:00.000-07:002010-06-30T16:49:08.347-07:00Fedora 13 lxde spin - my personal installationDownloaded 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.<br /><br />Download rpmfusion from http://rpmfusion.org/Configuration<br />rpmfusion-free-release-stable.noarch.rpm<br />rpmfusion-nonfree-release-stable.noarch.rpm<br />rpm -Uvh rpmfusion-free-release-stable.noarch.rpm rpmfusion-nonfree-release-stable.noarch.rpm<br /><br />[All yum and rpm commands needs to be run as root]<br /><br />yum update<br /><br />echo 'bhupendra ALL=(ALL) ALL' >> /etc/sudoers<br />After this we can logout as root and run sudo yum ...<br /><br />vi /etc/selinux/config<br />Change SELINUX=enforcing to SELINUX=disabled<br /><br />-Enable left clicks and scrolling on mousepad<br />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<br /> Option "TapButton1" "1"<br /> Option "HorizEdgeScroll" "1"<br /> Option "VertEdgeScroll" "1"<br />Here is an interesting page to test scrolling: http://www.richinstyle.com/test/dynamic/overflowscroll.html<br />Reboot system.<br /><br />-Download flash-plugin-10.0.45.2-release.i386.rpm for adobe flash from adobe's site<br />rpm -Uvh flash-plugin-10.0.45.2-release.i386.rpm<br /><br />-Installed needed apps<br />yum install vlc mozilla-vlc audacious audacious-plugins-freeworld* NetworkManager-vpnc vpnc proftpd<br /><br />-Default volume on system was less. Gmixer still annoyingly defaults to the mic options instead of speaker volume.<br />yum install pulseaudio-equalizer<br />I was able to ehance audio levels using this one.<br /><br />-gtalk video calls<br />yum install x264 ffmpeg empathy<br />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.<br /><br />-Download and install skype rpm for fedora 10+<br />rpm -Uvh skype-2.1.0.81-fc10.i586.rpm<br /><br />-Disable screensaver<br />-enable ftp in firewall<br /><br />-Remove unwated stuff<br />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<br /><br />-cd/dvd burning. Though for kde, this is the best tool for the purpose.<br />sudo yum install k3b k3b-extras-freeworld<br />While burning cd-rw, I had to black out existing content which did not work. I got this error<br />/usr/bin/wodim: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.<br />After looking at k3b site, it was recommended to disable automount and/or use unpatched cdrtools(wodim)<br />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.<br /><br />-VirtualBox can now be installed from fpmfusion repos, installing dependencies has never been easier with manual rpm install.<br />yum install dkms VirtualBox-OSE VirtualBox-OSE-guest<br />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.<br />So downloaded http://download.virtualbox.org/virtualbox/3.2.0/VirtualBox-3.2-3.2.0_61806_fedora13-1.i686.rpm<br />yum remove VirtualBox-OSE VirtualBox-OSE-guest<br />yum install dkms gcc kernel-headers<br />rpm -Uvh VirtualBox-3.2-3.2.0_61806_fedora13-1.i686.rpm<br />Add virtualbox group to your user.<br />Any installation errors can be seen in and reinitialization done via /etc/init.d/vboxdrv setup as root<br />Boot xp guest. I had to change network to intel pro/100 T server for my xps 1210.<br />Loaded guest additions cd from /usr/share/virtualbox/VBoxGuestAdditions.iso and installed on my xp guest<br />Added shared permanent folder.<br />To access shared folder under xp, open windows exporer, goto tools, map network drive.<br />select drive say eg. V<br />Browse for folder and you should see 'Virtualbox shared folders->//Vboxsrv'<br />Map it and create shortcut to desktop for easy access.<br /><br />-Want video chat on yahoo<br />yum install gyachi<br /><br />-google picasa. Download rpm from http://picasa.google.com/linux/download.html#picasa30. Will have to install few dependecies first.<br />yum install lsb libgphoto2 openssl sane-backends audiofile esound-libs openssl-devel<br />rpm -Uvh picasa-3.0-current.i386.rpm<br /><br />-ssh between laptops on wireless network<br />enable and start sshd service under services<br />ensure firewall has ssh enabled<br /><br />-ftp between 2 laptops on wireless network<br />install proftpd on one laptop<br />start ftp service using<br />sudo service proftpd start<br />Ensure ftp is enabled on firewall<br />Enable port 21 port forwading on router for ip of laptop having proftpd service.<br /><br />-download google chrome and install rpm<br />http://www.google.com/chrome/eula.html?hl=en&brand=CHMA&utm_campaign=en&utm_source=en-ha-na-us-bk&utm_medium=ha<br /><br />-My desktop folders and icons went missing after an update. To get back the icons open following<br />sudo vi /etc/xdg/lxsession/LXDE/autostar<br />Change @pcmanfm2 --desktop --profile lxde<br />to @pcmanfm --desktop --profile lxde<br /><br />-Missing java plugin on firefox 3.6<br />Install openjdk<br />sudo yum install java-1.6.0-openjdk java-1.6.0-openjdk-plugin<br />Restart firefox and check if plugin comes up in about:plugins. If not then<br />sudo alternatives --config libjavaplugin.so<br />Enter the number for other .so file and restart firefox.bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com1tag:blogger.com,1999:blog-7801985619478995070.post-32937623434114933792010-04-05T00:18:00.000-07:002010-04-05T00:24:17.079-07:00Picasa on fedora 12 lxde spinDownload picasa rpm from http://picasa.google.com/linux/<br />I downloaded picasa-3.0-current.i386.rpm<br />sudo rpm -ivh picasa-3.0-current.i386.rpm<br /><br />Above will ask for bunch of dependencies are required. Hence installed following:<br />sudo yum install openssl-devel openssl redhat-lsb libexif libgpohoto2 sane-backends-libs esound-libs<br /><br />Note that without openssl-devel you will not be able to login to web using picasa.bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com0tag:blogger.com,1999:blog-7801985619478995070.post-27829973003349872252010-03-31T17:13:00.000-07:002010-04-05T00:03:55.096-07:00Mount Lvm Partition and backup data using Live linux CD<div>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'"</div><div>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.</div><div><br /></div><div>su</div><div><br /></div><div>pvscan</div><div> PV /dev/sda2 VG vg_xps lvm2 [74.33 GB / 0 free]</div><div> Total: 1 [74.33 GB] / in use: 1 [74.33 GB] / in no VG: 0 [0 ]</div><div><br /></div><div>vgscan -v</div><div> Wiping cache of LVM-capable devices</div><div> Wiping internal VG cache</div><div> Reading all physical volumes. This may take a while...</div><div> Finding all volume groups</div><div> Finding volume group "vg_xps"</div><div> Found volume group "vg_xps" using metadata type lvm2</div><div><br /></div><div>vgchange -ay -v</div><div> Finding all volume groups</div><div> Finding volume group "vg_xps"</div><div> 2 logical volume(s) in volume group "vg_xps" already active</div><div> 2 existing logical volume(s) in volume group "vg_xps" monitored</div><div> Found volume group "vg_xps"</div><div> Found volume group "vg_xps"</div><div> Activated logical volumes in volume group "vg_xps"</div><div> 2 logical volume(s) in volume group "vg_xps" now active</div><div><br /></div><div>vgdisplay -v</div><div> Finding all volume groups</div><div> Finding volume group "vg_xps"</div><div> --- Volume group ---</div><div> VG Name vg_xps</div><div> System ID </div><div> Format lvm2</div><div> Metadata Areas 1</div><div> Metadata Sequence No 3</div><div> VG Access read/write</div><div> VG Status resizable</div><div> MAX LV 0</div><div> Cur LV 2</div><div> Open LV 1</div><div> Max PV 0</div><div> Cur PV 1</div><div> Act PV 1</div><div> VG Size 74.33 GB</div><div> PE Size 4.00 MB</div><div> Total PE 19029</div><div> Alloc PE / Size 19029 / 74.33 GB</div><div> Free PE / Size 0 / 0 </div><div> VG UUID wDR2Xa-8km9-Q5f3-4y4f-jCyE-ebkn-pQbTev</div><div> </div><div> --- Logical volume ---</div><div> LV Name /dev/vg_xps/lv_root</div><div> VG Name vg_xps</div><div> LV UUID OshzOn-H2WY-6GXP-W0D9-HBJ2-fqRD-6heWXi</div><div> LV Write Access read/write</div><div> LV Status available</div><div> # open 0</div><div> LV Size 72.33 GB</div><div> Current LE 18517</div><div> Segments 1</div><div> Allocation inherit</div><div> Read ahead sectors auto</div><div> - currently set to 256</div><div> Block device 253:2</div><div> </div><div> --- Logical volume ---</div><div> LV Name /dev/vg_xps/lv_swap</div><div> VG Name vg_xps</div><div> LV UUID ScYasH-efcp-0yyP-i0FK-lcFJ-g33x-lo3bie</div><div> LV Write Access read/write</div><div> LV Status available</div><div> # open 1</div><div> LV Size 2.00 GB</div><div> Current LE 512</div><div> Segments 1</div><div> Allocation inherit</div><div> Read ahead sectors auto</div><div> - currently set to 256</div><div> Block device 253:3</div><div> </div><div> --- Physical volumes ---</div><div> PV Name /dev/sda2 </div><div> PV UUID oENBs0-bYPL-8Uh3-bZsJ-H6nZ-tjDv-DUH99M</div><div> PV Status allocatable</div><div> Total PE / Free PE 19029 / 0</div><div><br /></div><div>Note down the "LV Name" for running next command. Here LV name is /dev/vg_xps/lv_root</div><div><br /></div><div>lvchange -ay -v /dev/vg_xps/lv_root</div><div> Using logical volume(s) on command line</div><div> Activating logical volume "lv_root"</div><div> Found volume group "vg_xps"</div><div><br /></div><div>cd /mnt</div><div>mkdir hdd</div><div>mount /dev/vg_xps/lv_root /mnt/hdd</div><div><br /></div><div>The logical volume has been mounted under /mnt/hdd and we can take backup now.</div><div><br /></div><div>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.<br /></div>bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com3tag:blogger.com,1999:blog-7801985619478995070.post-61637675033460028972009-12-12T22:43:00.000-08:002010-01-17T21:06:21.235-08:00FEDORA 12 LXDE SPINAfter reading about super effecient lxde and having xfce earlier, I was glad that fedora came up with lxde spin. After some trial and errors and lot of googling here is my personal installation guide for my dell xps 1210<br /><br />-Download and install lxde spin for fedora 12. I used the 64bit spin on my dell xps 1210<br /><br />-setup sudo<br />login as root and execute following<br />echo 'loginname ALL=(ALL) ALL' >> /etc/sudoers<br /><br />-disabled selinux. Though this provides great security, sometimes it is very irritating for home use.<br />sudo vi /etc/selinux/config<br />Change SELINUX=enforcing to SELINUX=disabled<br /><br />-setup rpmfusion and fastestmirror<br />sudo rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm<br />sudo rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm<br />run 'sudo yum install yum-plugin-fastestmirror'<br /><br />-install apps that i like to use :-)<br />sudo yum install firefox mplayer gecko-mediaplayer mencoder gnome-mplayer java-1.6.0-openjdk java-1.6.0-openjdk-devel java-1.6.0-openjdk-plugin pidgin audacious audacious-plugins-freeworld* gpicview brasero<br /><br />-Firefox tweaks<br />Installed following add-ons<br />firebug<br />firecookie<br />codeburner for firebug<br />colorzilla<br />downloadhelper<br />fastdial<br />http resource test<br />jsview<br />live http headers<br />measureit<br />modify headers<br />refcontrol<br />screengrab<br />Also set following params in about:config for better performace<br />network.dn.disableIPv6=true<br />network.http.pipelining=true<br />network.http.pipelining.maxrequests=8<br />network.http.pipelining.ssl=true<br />network.http.proxy.pipelining=true<br />ui.submenuDelay=0<br />nglayout.initialpaint.delay=0<br /><br />-install flash plugin<br />For 32 bit sudo yum install flash-plugin should do it, but since I have 64 bit dual core, I downloaded <a href="http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.42.34.linux-x86_64.so.tar.gz">http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.42.34.linux-x86_64.so.tar.gz</a> and installed the plugin manually.<br />sudo tar -zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz -C /usr/lib64/mozilla/plugins<br />[Well, make sure you get the latest version of the flash from this page http://labs.adobe.com/downloads/flashplayer10_64bit.html]<br /><br />-install chromium instead of googe chrome<br />Download following rpm from <a href="http://spot.fedorapeople.org/chromium/F12/">http://spot.fedorapeople.org/chromium/F12/</a><br />v8-2.0.0-1.20091118svn3334.fc12.x86_64.rpm<br />chromium-4.0.252.0-0.1.20091119svn32498.fc12.x86_64.rpm<br /><br />sudo yum install minizip nss-mdns<br />sudo rpm -ivh v8-2.0.0-1.20091118svn3334.fc12.x86_64.rpm chromium-4.0.252.0-0.1.20091119svn32498.fc12.x86_64.rpm<br /><br />-install opera - seriosly page loads are faster than firefox<br />sudo yum install qt3<br />Download opera-10.10.gcc4.shared.qt3.x86_64.rpm from <a href="http://www.opera.com/download/">http://www.opera.com/download/</a><br />sudo rpm -ivh opera-10.10.gcc4.shared.qt3.x86_64.rpm<br /><br />-install microsfot fonts.<br />Download the rpm created by at Mauriat. Many thanks to Mauriat Miranda for the rpm and notes at <a href="http://www.mjmwired.net/resources/mjm-fedora-f12.html">http://www.mjmwired.net/resources/mjm-fedora-f12.html</a><br />run 'sudo rpm -ivh msttcore-fonts-2.0-3.noarch.rpm'<br /><br />-remove unwanted apps<br />run 'sudo yum remove midori gxine lxmusic xmms2 abiword iok osmo'<br />I also removed lot of unwanted font packages. eg. I dont read arabic, chinese, japanese and many more so why install the fonts.<br />run 'package-cleanup --leaves' and uninstall the listed packages<br />run 'sudo yum update' to update all the installed packages.<br />Once done reboot system<br /><br />-webcam, worked out of the box with cheese application<br />sudo yum install cheese<br /><br /><br />-Install skype<br />sudo gpg --keyserver pgp.mit.edu --recv-keys 0xD66B746E<br />sudo gpg -a -o /etc/pki/rpm-gpg/RPM-GPG-KEY-skype --export 0xD66B746E<br />Add following to /etc/yum.repos.d/skype.repo and then call yum installed skype<br />[skype]<br />name=Skype Repository<br />baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/<br />#gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc<br />gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-skype<br />enabled=1<br />gpgcheck=1<br /><br />Unfortunatly I found that this is the old version of skype. So I downloaded the new version from http://www.skype.com/go/getskype-linux-beta-fc10 and manually installed it<br />sudo rpm -Uvh skype-2.1.0.47-fc10.i586.rpm<br />Good thing with using the repo first was that the dependencies got installed and I need not manually hunt for those rpm packages.<br />Unfortunatly again, the new skype had issues with my webcam so i reverted back to the repo based skype version.<br /><br />-Install Virtual box. I have win xp virtual machine in VirtualBox which I used for windows specific use eg. office apps.<br />Visit virtualbox site and check instructions for repo installation. But before that make sure you have following installed.<br />sudo yum install dkms gcc kernel-headers<br /><br />-issue with touch pad. Scrolling and clicks did not work out of the box. I enabled click using following<br />sudo yum install xorg-x11-drv-synaptics<br />cp /usr/share/hal/fdi/policy/20thirdparty/10-synaptics.fdi /etc/hal/fdi/policy/<br />vi /etc/hal/fdi/policy/10-synaptics.fdi<br />Remove the comments around the match section in the file.<br />Either reboot or run following to see if touchpad click works<br />synclient TapButton1=1<br />Now for vertical scroll To verify if it's on or off, do the following<br />synclient -l | grep -i vertedge<br />If it reports VertEdgeScroll = 0, try to manually enable it<br />synclient VertEdgeScroll=1<br />If above works then add following merge line in /etc/hal/fdi/policy/10-synaptics.fdi<br /><merge key="input.x11_options.VertEdgeScroll" type="string">1</merge><br />Many thanks to Walter Francis for his post <a href="http://fedorasolved.org/Members/khaytsus/configuring-synaptics-using-hal/?searchterm=None">http://fedorasolved.org/Members/khaytsus/configuring-synaptics-using-hal/?searchterm=None</a><br /><br />-issue with keyring. When I setup my wireless, keyring popup asked me for password and I set up one. Then on every reboot if promted me to enter it which was annoying. So went and deleted /home/bhupendra/.gnome2/keyrings/default.keyring. Next time I logged back in, left keyring password emty and chose unprotected keyring settings.<br /><br />-remove wallpaper, modify slim background<br />Slim's login screen wallpaper is background.jpg in /usr/share/slim/themes/default. I removed the symlink and dropped my own plain wallpaper.<br />Next to remove wallpaper on desktop, I right clicked desktop, click desktop settings and unchecked wallpaper. Instead set background color to #1B144D which was close to my login screen background image.<br />I wanted to remove use of wallpaper to minimize system resource use.<br /><br />-disable plymouth boot screen<br />The plymouth graphical boot in fedora is nice but I wanted to remove it and see the conole log.<br />Removed rhgb quite from /boot/grub/grub.conf to achive this.<br />If you just want to try out other plymouth theme eg. solar (I was using this for a long time even in F11)<br />sudo yum install plymouth-theme-solar<br />plymouth-set-default-theme solar<br />/usr/libexec/plymouth/plymouth-update-initrd<br /><br />-easy vpnc setup<br />I need to use cisco vpn to connect to office network. Originally I was using vpnc package and configured the setup in /etc/vpnc/default.conf. But F12 comes with nice gui setup via network manager. Make sure you have following packages for cisco<br />sudo yum install NetworkManager-vpnc vpnc<br /><br />-bluetooth<br />Since lxde does not have it's own bluetooth manager, I installed bluez and hoped it would work. It did work but few gnome specific packages were also installed. Atleast I was able to see my nokia n80's bluetooth.<br /><br />-minor issue with gmixer and volume control buttons on laptop<br />Gmixer is good but by default it sets control buttons to my mic instead of speaker. I have to manually select HDA intel alsa mixer in the selection and then change volume<br /><br />-connecting to tv<br />Miss the gnome system-config-monitor. Using monitor settings in lxde i.e lxrandr I could only change screen resolution. I wanted to replicate my laptop screen to tv when connected with svideo and came up with following scripts.<br />#tvconnect<br />xrandr --auto --output LVDS1 --mode 800x600<br />xrandr --auto --output TV1 --mode 800x600 --same-as LVDS1<br /><br />#tvdisconnect<br />xrandr --output TV1 --off<br />xrandr --output LVDS1 --mode 1280x800<br /><br />I had to change the resolution from 1280x800 to 800x600 since that was the correct fit for my big non hd toshiba tv.<br /><br />With all of the above changes, my cpu usage has seldom crossed 20% and memory usage was always under 500mb under normal use. Think my F12 lxde xps 1210 is faster than better high end laptops running bloted win* :-)bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com3tag:blogger.com,1999:blog-7801985619478995070.post-12170106906678607502009-09-09T20:08:00.000-07:002009-10-24T16:44:56.248-07:00speed up gnome on fedora 11<span style="font-family: courier new;">disable unnecessary services eg. bluetooth and print services when not in use.<br /><br />cd</span><br /><span style="font-family: courier new;">touch .gtkrc-2.0</span><br /><span style="font-family: courier new;">echo "gtk-menu-popup-delay = 0"| tee -a .gtkrc-2.0</span><span style="font-family: monospace;"><br /></span><br /><br />login as root or sudo<br />yum install gconf-editor<br />open gconf-editor by typing it on terminal<br />goto /->apps->metacity->general and check 'reduced resources'bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com0tag:blogger.com,1999:blog-7801985619478995070.post-85448331707118058932009-03-22T19:52:00.000-07:002009-04-12T21:42:21.219-07:00Need two OS on single laptop/machine-Download virtualbox from http://www.virtualbox.org/wiki/Downloads. Downloads available for multiple host OS.<br />-I installed rpm for fedora 10 and also installed dkms so that my kernel upgrades do not give probelms<br />-The install creates a group vboxusers. my user being 'bhupendra' I added it to this group.<br />-To start virtulbox gui type in VirtualBox [V abd B should be capital] and follow the instructions.<br /><br />Well I thought things would be ok, but while launching VirtualBox, I got following error:<br />WARNING: The vboxdrv kernel module is not loaded. Either there is no module<br /> available for the current kernel (2.6.27.19-170.2.35.fc10.i686) or it failed to<br /> load. Please recompile the kernel module and install it by<br /><br /> sudo /etc/init.d/vboxdrv setup<br /><br /> You will not be able to start VMs until this problem is fixed.<br />WARNING: The compilation of the vboxdrv.ko kernel module failed during the<br /> installation for some reason. Starting a VM will not be possible.<br /> Please consult the User Manual for build instructions.<br /><br />So changed to root user and ran /etc/init.d/vboxdrv setup only to find out that the setup failed. Fortunately the log showed that I did not have gcc installed so did yum install gcc. After that the setup was smooth and VirtualBox gui was up.bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com0tag:blogger.com,1999:blog-7801985619478995070.post-70330653571418791292009-02-06T14:30:00.000-08:002009-06-20T17:40:29.683-07:00disk full on fedora 10? clean it up...Use gnome's disk usage analyser to get insight on possible junk data. It came handy for me.<br /><br />I saw deleted torrent data from my transmission in /home/myusername/.local/share/Trash/files. Ran 'rm-rf *' to delete everything here.<br /><br />Have heard that tempwatch is good to delete /tmp folder. Run or add tmpwatch to cron tab. 'tmpwatch -maf 4 /tmp' deletes tmp files older than 4 hours.<br /><br />run 'yum clean all' to clear yum cache.<br /><br />Sometimes we install a package which install bunch of dependencies. Later when we remove using yum, the dependencies are not removed. Use<br />package-cleanup --leaves<br />to get list of unused packages and remove them.<br /><br />After doing above 3 things my 'df -h' statistics jumped from 25% / usage to 13% / usage :-)bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com0tag:blogger.com,1999:blog-7801985619478995070.post-82301974416160745932009-01-21T20:27:00.000-08:002009-01-21T21:12:23.534-08:00connect office networks with vpn on linux-install licensed cisco vpn client on windows os to check if it works fine.<br />-copy the *.pcf file which is the configuration file.<br />-on your linux install vpnc<br />-run following to get the value for [decrypted enc_GroupPwd]<br />cisco-decrypt [value of enc_GroupPwd from the *.pfc]<br />-now edit /etc/vpnc/default.conf with values from pfc file<br />IPSec gateway [Host]<br />IPSec ID [GroupName]<br />IPSec secret [decrypted enc_GroupPwd]<br />Xauth username [your username for vpn connection]<br />-now run "sudo vpnc", it would ask for password key and once set runs as a background process<br />-to disconnect type "vpnc-disconnect"bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com0tag:blogger.com,1999:blog-7801985619478995070.post-42159017993171347742009-01-18T16:26:00.000-08:002009-01-18T19:49:36.366-08:00Register and create your website - all for freeDOMAIN REGISTRATION AND DNS FOR FREE<br />-Open account on freedns.afraid.org<br />-I did not have any domain registered. once logged in, click the "registry" to choose your domain eg. mooo.com and click on it. Ensure that the domain is public.<br />-Now you are creating a subdomain from the available domains. Select type A, type your subdomain eg. I did bhupendra. Your external ip would already be captured. Hit save and you are done.<br /><br />SETTING UP LOCAL SITE<br />-I have a laptop running fedora 10 configured to netgear wireless router and had to make few changes as follow:<br />#router changes ------------------------------------------------------------------------------<br />-keep router as DHCP for devices attached to the network eg. my laptop however I reserved <span class="ttext">192.168.1.2 for my laptop<br />-enable port forwarding for http on port 80 from my router to </span><span class="ttext">192.168.1.2<br />-both the above steps can vary depending on your router however most of the basic router do come with these features. Also be sure to upgrade your firmware just to get best security and features.<br />#laptop changes-------------------------------------------------------------------------------<br />-system should be aware of the network ip address. I removed the dhcp setting for my wlan0 and set static ip of 192.168.1.2 with subnet mask of 255.255.255.0 as specified by my router.<br />-open system-config-firewall and enable http/80 which is disabled by default<br />-install apache. yum install httpd httpd-tools<br />-edit /etc/httpd/conf/httpd.conf to remove welcome page include and/or comment entries in /etc/httpd/conf.d/welcome.conf<br />-create /var/www/html/index.html to serve your custom welcome page<br />-"apachectl start" to start your apache.<br /><br />TEST<br />-goto http://localhost to verify if your apache is up and default index.html is picking up<br />-goto http://192.168.1.2 or http://yournetworkip to see if your static ip for network is all ok<br />-goto http://bhupendra.mooo.com to check if your external domain is working<br /><br />A WORD FOR IMPATIENT<br />If you are impatient like me, just take a break go out for a smoke or something. And even after few hours things dont work, get a manual for your router which I did and found about a NAT filtering option which is a firewall on the router which was blocking the port forwading. I changed the NAT filtering from secured to open and things began to work.<br /></span><br />EXTERNAL IP ALWAYS CHANGES? no probs<br />-download script to update the external ip from <a href="http://freedns.afraid.org/scripts/freedns.clients.php">http://freedns.afraid.org/scripts/freedns.clients.php</a><br />-I use <a href="http://freedns.afraid.org/scripts/dnsactual.sh.txt">http://freedns.afraid.org/scripts/dnsactual.sh.txt</a> simple and clean. Just download the script, remove txt, give permission of your default user on linux and add crontab entry to schedule it to run say 5 min or more as per your ip lease expiry.<br /><br />THE DOWNSIDE AS I SEE IT........<br /><a href="http://freedns.afraid.org/faq/#16">http://freedns.afraid.org/faq/#16</a><br />alternative: If you want your site to be google seo friendly then register a domain (not free) and set the domain in your freedns account. you can then create subdomain on the registered domain instead of using it off the available freedns public domains.<br /><br /><span style="text-decoration: underline;"></span>bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com0tag:blogger.com,1999:blog-7801985619478995070.post-7208943322009698562008-11-27T07:21:00.000-08:002009-01-03T23:36:50.424-08:00Fedora 10 out and on my xps 1210Fedora 10 went GA on 25th nov 08 and I was counting days for over a month. I was pretty happy with fedora 9 with few exception of system crashes when using skype. In any case I had to try out the new version. Believe me, I never had a troublefree all working linux before. Always something or other had problems. Audio, else video or flash or jdk.......but not this time.<br /><br />-INSTALL<br />This time instead of downloading the dvd image, i decided to get the gnome live cd since the download times is less for this.<br />Booted through the cd, click the desktop item and the install started. If you have installed fedora before this should not be any different.<br />My wireless internet was easy to configure and less cranky than on fedora 9.<br /><br />-POST INSTALL<br />no open office, no jdk<br />instead found abiword<br />Fine good for me, I prefer to install openoffice and jdk manually myself.<br />Here is the list of packages I removed/added:<br />yum remove pidgin<br />yum install empathy [bye bye pidgin and hello empathy - gtalk call support]<br />yum install vlc [for all my video needs]<br />I had xmms on fedora 9 but decided to use rythmbox going forward as it was already installed. There are radio channels in it. free music :-)<br />yum install gnome-applet-netspeed [I like to see how much bandwidth my comcast internet connection gives, I had to configure the applet on panel]<br />yum remove abiword<br />yum install wget<br />wget http://www.skype.com/go/getskype-linux-fc7 [downloading skype rpm]<br />rpm -ivh skype-2.0.0.72-fc5.i586.rpm [after install, had to chage audio settings]<br />Also downloaded the rpm for adobe reader and flash player from adobe site and installed them. The flash plugin showed up on about:plugins on firefox and youtube was working without any headaches [really surprised]y<br />yum install gstreamer-plugin* [to add mp3 support to rythmbox]<br />For java and openoffice, I followed the install instruction on respective sites. [quite similar to my install on fedora 9 actually]<br /><br />Ahh.....after a day, when I actually installed jdk1.6.0.10, my logmein on firefox did not work. firefox started hanging on remote connectivity. Suspecting java plugin issue, reverted back to the old version i had on fedora 9 which was jdk1.6.0.07. Everything works fine now.<br /><br />oops few more days and I found that I am not able to connect my laptop to tv to watch youtube videos. After heavy googling, i came to know that something has broken in f10 and was forced to play around with randr<br />-to see connections run<br />xrandr<br />-to configure dual monitor<br />xrandr --output TV --mode 800x600 --set TV_FORMAT NTSC-M<br />-to stop replication to tv<br />xrandr --output TV --off<br /><br />Though my entire 12 inch monitor is not correctly replicated on tv screen, it's sufficient to see youtube videos on full screen mode.bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com0tag:blogger.com,1999:blog-7801985619478995070.post-33163205621445565812008-10-26T08:27:00.000-07:002008-10-26T09:25:08.624-07:00My personal Fedora 9 installation<span style="font-family: verdana;">I have dell xps 1210 and fedora 9 works superb with it.<br /><br />-partition layout<br />2 primary partition one for winxp and one for linux. Third partition for data to be shared by both OS. First and third NTFS and formatted 2nd as ext3 using partition magic.<br /><br />-Dual booting<br />My winxp was always present but i rarely use it. In order to experint with other OS (to name a few: FreeBSD and fedoras) I installed <a href="http://gag.sourceforge.net/">GAG boot manager</a>.<br /><br />-Install fedora 9<br />Download fedora 9 dvd for gnome preferably using torrent. Boot the dvd for install. Do not forget to "remove all linux partitions" (since we had preformatted 3rd partition using ext3) and select advanced boot loader configuration to install linux boot loader on first sector of boot partion instead of MBR.<br /><br />-what to install<br />I did not select to install games and java or any other developer tools since i wanted to install them manually. Also do not install open office if you plan intall java manually. open office from software repo install jre 1.5. I wanted everything to run on jdk 6<br /><br />-post installation<br />1. Firs thing i configured was my wireless network.<br />2. Once internet was available i got loads of software updates, of which i updated most using yum and ignored rest.<br />3. download <a href="http://sourceforge.net/project/platformdownload.php?group_id=217092">EasyLife</a> for fedora 9. This does most of the boring but much needed tasks like adding livna repo, installing skype, add flash support to firefox etc. Select whatever you like when you run the script, note that here also i selected not to install java since i wanted the complete sun version instead of almost perfect open jdk implementation.<br />4. configure skype<br />Go to skype options - sound devices. For my laptop configuration following works when earphones and mic are plugged in<br />sound in: usb device 0x46d:0x8c6 (hw:U0x46d0x8c6,0)<br />sound out:HDA intel (hw:intel,0)<br />ringing:</span><span style="font-family: verdana;">HDA intel (hw:intel,0)<br />Play around with the options till you figure out which one is for you. I did the same.<br />5. install pidgin for all my yahoo/gmail/aol messenger needs using yum<br />6. installed xmms and vlc for all my audio and video needs<br />7. installed k3b for all my cd/dvd burning needs<br />8. I hated the default desktop on this one and even if i changed it, the same old image was appearing on logon screen. Seems some modifications are in plan and i had to use a hack to get what i want. I liked the sulphur wallpaper. So i went to /usr/share/background/waves and edited all the image paths in waves.xml to point to sulphur-on-waves.png located in same folder.<br /><br />-Note though rpm provides easy interface for installing uninstalling packages, for developer tools i always prefer installing manually for 2 reaons:<br />1. I can intall latest version which may not be available in rpm<br />2. I have control over what to install and where to install.<br /><br />-installing jdk<br />Downloaded and installed jdk-6u7-linux-i586.bin under /opt. Follow instructions for jdk install for non-rpm binary. It's really sweet.<br />I had to edit /home/bhupendra/.bashrc to have java_home and path available to bhupendra. However finally decided to add the path to /etc/profile so that it gets available to all users just in case.<br />As for java plugin for firefox, followed sun java instructions. In /usr/lib/mozilla/plugins made a symlink as follow:<br />ls -s /opt/jdk1.6.0_07/jre/plugin/i386/ns7/libjavaplugin_oji.so and restarted firefox.<br /></span><span style="font-family: verdana;"><br />-open office<br />for open office downloaded OOo_2.4.1_LinuxIntel_install_wJRE_en-US.tar.gz and followed install instructions on site<br />to uninstall goto /opt/open... and ./setup to start the uninstallation wizard.<br /><br />-eclipse<br />downloaded eclipse-jee-ganymede-SR1-linux-gtk.tar.gz and moved to /opt<br />tar xvzf eclipse-jee-ganymede-SR1-linux-gtk.tar.gz<br />to run eclipse /opt/eclipse/eclipse or goto /opt/eclipse and ./eclipse<br />if eclipse is ran as user bhupendra, default workspace is created at /home/bhupendra/workspace which was fine with me<br /><br />-Tomcat 6<br />downloaded apache-tomcat-6.0.18.tar.gz, copied to /opt<br />tar xvzf apache-tomcat-6.0.18.tar.gz<br />mv apache-tomcat-6.0.18.tar.gz tomcat6 (renames the folder)<br />goto /opt/tomcat6/bin and to start ./catalina start and to stop ./catalina stop<br />Also added CATALINA_HOME and tomcat's bin on PATH<br />I was root when i installed tomcat as mentioned above. Hence i always had to login as root to start/stop tomcat. Note if you do not want to start/stop tomcat using root then goto /opt/tomcat6 and change owner<br />chown -R bhupendra *<br /><br />-RDBMS<br />I was in dilema to install mysql or oracle. Though I had installed and used mysql on windows before, i was using oracle in my office. Hence thought of giving it a try. Plus my friend madhav had already installed oracle on centOS so i knew it would work. After googling for some time, found an excellent writeup for <a href="http://www.oracle-base.com/articles/11g/OracleDB11gR1InstallationOnFedora9.php">oracle on fedora 9</a>. Only modification i made was instead of having a new oracle user, i used my existing user id so that i could start stop oracle using same user. Also instead of installing to /u01/app/oracle/product/11.1.0/db_1, installed at /opt/oracle/product/11.1.0/db_1. Being a lazy bum i created scripts to start and stop oracle from desktop.<br />#-------------------------------------<br />#ora_dbca.sh (opens oracle database configuration assistant)<br />#-------------------------------------<br />#!/bin/bash<br />/opt/oracle/product/11.1.0/db_1/bin/dbca<br /><br />#------------------------------------------------------------------------<br />#ora_DB11G_start.sh (starts the DB11G database and listener)<br />#------------------------------------------------------------------------<br />#!/bin/bash<br />$ORACLE_HOME/bin/lsnrctl start<br />$ORACLE_HOME/bin/dbstart $ORACLE_HOME<br />emctl start dbconsole<br /><br /></span><span style="font-family: verdana;"><br />#------------------------------------------------------------------------<br />#ora_DB11G_stop.sh (stops the DB11G database and listener)<br />#------------------------------------------------------------------------</span><br /><span style="font-family: verdana;">#!/bin/bash<br />emctl stop dbconsole<br />$ORACLE_HOME/bin/dbshut $ORACLE_HOME<br />$ORACLE_HOME/bin/lsnrctl stop<br /></span>bhupendrahttp://www.blogger.com/profile/08038840816468529434noreply@blogger.com0