Pages

Showing posts with label fedora. Show all posts
Showing posts with label fedora. Show all posts

Monday, July 11, 2016

Best screen recorder for fedora

Best Screen Recoder and Video Editor for Fedora with Gnome 



Demo Video




I have used many recorder like istanbul and recordmydesktop . Both of the are not capable of record audio .



EasyScreenCast    is the best tool record as video with sound     


Steps to install 


Enable the extension , 

2. New video icon will be visible in the top right .



Video editing tool : Open edit 


1. Add  rpmfusion repo




yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-21.noarch.rpm


yum update






2. Install openshot 





yum install openshot 



Tuesday, November 3, 2015

Useful shell scripts used as alias for fedora and Linux machine

Useful shell scripts used as  alias for fedora and Linux machine

Here is list of useful shell scripts which used as alias in day to day work






1. connect script .

This list all the hosts to connect , we can pass it in commadline or by choice
if [ $# != 1 ]

then


echo 1.Xtest as root
echo 2.Xtest2 as oracle
echo 3.Xtest3 as oracle
echo 4.Xs5 as oracle
echo 5. Xcluster1 xx.yyy.zz.214 as oracle
echo 6. Xcluster2 xx.yyy.zz.215 as oracle
echo 7. X-portal as oracle
echo 8.X-pc2 as oracle

read ch

else

ch=$1

fi


case $ch in
1)ssh -l root xx.yyy.zz.139 ;;
2)ssh -l oracle xx.yyy.zz.140 ;;
3)ssh -l oracle xx.yyy.zz.141 ;;
4)ssh -l oracle xx.yyy.zz.147 ;;
5)ssh -l oracle xx.yyy.zz.137 ;;
6)ssh -l oracle xx.yyy.zz.138 ;;
7)ssh -l oracle xx.yyy.zz.132 ;;
8)ssh -l oracle xx.yyy.zz.145 ;;
*)echo Enter the right choice ;;
esac

To add in .bashrc
alias connect='/home/sterin/Templates/nm.sh'





2.Pack command : it will make tar file for folder or files

if [ $# != 1 ]

then

echo " usage pack <folderORfileName> "

exit
fi

dateformat=`date +%H%M_%d_%m_%y`


echo $1

folderName=`echo $1 | cut -f1 -d"/"`

echo $folderName

tar -cvf  "$folderName.tar"  "$1"




 



3. Starting browsers ,email client and other apps for day to day work


echo "starting firefox"

firefox "gmail.com" &

sleep 1
echo "starting chrome"

google-chrome "https://support.us.oracle.com/oip/faces/secure/srm/sr/SRQueue.jspx?mc=true" &

echo "starting thunderbird"

sleep 1
thunderbird &

echo "starting pidgin"

sleep 1
pidgin &

sleep 1

gnome-terminal &



sleep 1



gedit "FILE" &





4. Checking server status :

All the server details are menstion in one file . Script will check from the file


#Script:

if [ $# != 1 ]

then

echo "Parameter should pass like checkport <port> for specific port "
echo "OR checkport all for all port "

exit 0

fi

DIR=/home/oracle/latest_opatch/check_bug/list

if [ $1 = "all" ]

then

a=user_projects

else

a=$1

fi



if grep $a $DIR/yo.txt > /tmp/re

then

echo "below servers found from domain list file "
rm /tmp/uot

cat /tmp/re

else

echo "No server found for the keyword "

exit 0

fi

echo "<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>"

g=2

cat /tmp/re | while read LINE

do

g=`echo $LINE | awk -F"," '{print NF-1}'`
count=1

while [ $count -le $g ]
do
p=`echo $LINE | awk '{print $2}' | cut -f$count -d","`
if netstat -an | grep $p | grep LISTEN > /dev/null
then
echo " $p is running & pid is `netstat -anp | grep $p | grep LISTEN | awk '{print $7}' | tail -1` located at `echo $LINE | awk '{print $1}'` " >> /tmp/uot
fi
count=`expr $count + 1`
done

done

echo "<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>"

echo "status of the ports are "


cat /tmp/uot




## Format of the file having IP details
/domains/base_domain 7033,16201,16233
/domains/ps2 7032,16332,16232,
domains/stepsr3 7043,16332,16243


5. Copying boot.properties to every new domain

LOC=/home/oracle/latest_opatch/check_bug/boot.p

if ls -d ucm

then

echo " copying"

else

echo " go to domain dir and run the command "

exit 0

fi

cd servers/UCM_server1

cp -r $LOC/security .

Other required files

$ls -l /home/oracle/latest_opatch/check_bug/boot.p
total 8
-rwxr-xr-x 1 oracle oracle 201 Nov 12 2013 sec.sh
drwxrwxr-x 2 oracle oracle 4096 Nov 12 2013 security

$ ls -l /home/oracle/latest_opatch/check_bug/boot.p/security
total 4
-rw-rw-r-- 1 oracle oracle 36 Nov 12 2013 boot.properties

more /home/oracle/latest_opatch/check_bug/boot.p/security/boot.properties
username=weblogic
password=welcome1

Entry in .bashrc

alias sec='/home/oracle/latest_opatch/check_bug/boot.p/sec.sh'



6.Upload to FTP site :

It will be uploaded per defined FTP site:

HOST='HOSTADDRESS'
ftp -i $HOST <<END_SCRIPT

cd /ftp/anonymous/support/outgoing
#mkdir $1
#cd $1
put $FILE
quit
END_SCRIPT
echo "file copied to ftp URL is ftp://HOSTADDRESS/support/outgoing/$1 "
exit 3

Also you need create .netrc file in home directory for login with out entering password

Format of .netrc

default login hero password heropassord



7 . Run same command in multiple hosts from master server 

(Example to start all hadoop nodes from Master server )

SERVERS="172.31.27.144 172.31.27.145 172.31.27.146 "
# SSH User name
USR="hduser"



command="source ~/.bashrc; cd /usr/local/hadoop/sbin ; ./hadoop-daemon.sh stop datanode ; sleep 5 ;./yarn-daemon.sh stop nodemanager "



# connect each host and pull up user listing
for host in $SERVERS
do
echo "--------------------------------" 

echo "Server $host"

ssh $USR@$host  $command
echo "going to next hostname " 
done




8. Setting ec2 to hostname and using it


alias setec2='echo $1 > /tmp/ec2'
alias ec2='cat /tmp/ec2'

9. Fulltext search example :
To search one word all the files inside folder .

$1 will the keyword to search


alias fulltext='find . -exec grep "$1" {} \; -print'

Monday, October 12, 2015

How to create wifi hotspot in fedora 21 ?


In this example , wifi hotspot from fedoa21 is connecting to Android Phone



1. Create HotSpot network

Settings → Network → Select wifi → Use As Hotspot





2. It will create Hotspot file under   /etc/NetworkManager/system-connections






3. Usually this sufficient to access from your phone .


Select SID:
Provide the password :



4. Sometime phone can connect to SID , but stuck at “Authenticating “ or “Getting IP adress

in that case , Follow below steps to debug the issue

5. Verify the Hotsport file created in /etc/NetworkManager/system-connections


[root@sterinlap system-connections]# more Hotspot
[connection]
id=Hotspot
uuid=e6a7f45e-2bf3-4e92-8ba3-90e759sds32f2bc
type=wifi
autoconnect=false

[wifi]
ssid=sterinlap
mode=ap
mac-address=AC:7B:A1:3C:E2:3B
security=802-11-wireless-security
hidden=true

[wifi-security]
key-mgmt=wpa-psk
proto=rsn;
pairwise=ccmp;
group=ccmp;
psk=PASSWORD

[ipv4]
method=shared

[ipv6]
method=auto

Key is mode should ap

6. Get the Lan Card details :
ifconfig whill show the deails

Here my wirless card is wlp2s0:

7.Disable the firewall
systemctl stop firewalld.service

8.Start the hotspot from commadline :
nmcli con up Hotspot ifname wlp2s0


[root@sterinlap system-connections]# nmcli con up Hotspot ifname wlp2s0
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/19)


9. Connect from mobile

10.Some times , you have to set proxy in phone to access internet .




  1. Connect to WIFI network (e.g. 'sterinlap')
  2. Settings->WIFI
  3. Long tap on connected network's name (e.g. on 'sterinlap')
  4. Modify network config-> Show advanced options
  5. Set proxy settings

11. Next time , while accessing the hotspot, you have to simply follow steps 1,2 Phone will be automatically connects it






Friday, September 25, 2015

Things to do after installation of Fedora 21 to use as Office laptop


If you are migrating from old version , then keep backup 




of below folder from home directory




.config                                               



                                                                  



.thunderbird    



                                                                                                                     
.mozilla



                                                                       



                              
.purple



                                                                                                                                


1. Gnome extension

Go to https://extensions.gnome.org/


Enable : Applications Menu


:Places Status Indicator


: Window List


Other extensions like weather etc are available


After that :


























2. Install 
dconf-editor to configure window 


   settings





    yum install dconf-editor gconf-editor gnome-tweaks


Start dconf-editor

Go to org-->gnome-->Desktop-->wm--


>Perfence




set Button Layout to : 



appmenu:minimize,maximize,close



b. Set fav application format: 


['firefox.desktop', 'org.gnome.Terminal.desktop', 'org.gnome.gedit.desktop', 'google-chrome.desktop', 'slack.desktop', 'thunderbird.desktop']






3. Install skype :( Skype only works in 



32 bit . So installing this make sure 



that both 32 bit and 64 bit installed )



Download 









Run :


    yum install libc.so.6 libstdc++ libstdc++.so.6 qtweblit libXv.so.1 libQtXml.so.4 alsa-plugins-pulseaudio-1.0.28-3.fc21.x86 alibQtGui.so.4 libQtWebKit.so.4 alsa-plugins-pulseaudio-1.0.28-3.fc21.i686  alsa-plugins-pulseaudio.i686 libXss.so.1
     --setopt=protected_multilib=false





rpm -ivh skype-4.3.0.37-fedora.i586.rpm




4.Thunderbird :

64 bit 






extract and install .



or as


    yum install thunderbird


Migration : copy the .thunderbird folder


 from old system to home dir





5.VirtaulBox












  1. cd /etc/yum.repos.d/
    1. wget
    2. yum update

  2. yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms


reboot the machine


    reboot
  1. yum install VirtualBox-4.3
  2. rpm -qa kernel |sort -V |tail -n 1
  3. uname -r


# commands of rpm -qa kernel |sort -V |tail -n 1 & uname -r should match before going to next step


    /etc/init.d/vboxdrv setup
  1. usermod -a -G vboxusers <username>
  2. VirtualBox



6. VM player




Make sure that all the all libs are installed on the Virtaul 



box step up if not





run : yum install binutils gcc make patch libgomp glibc-


headers glibc-devel kernel-headers kernel-devel dkms


: reboot




./VMware-Player-12.0.0-2985596.x86_64.bundle





7.Chrome :

Download latest from chrome website and gtalk plugin :






    yum install libXss.so.1 libXScrnSaver-1.2.2-8.fc21*
  1. rpm -ivh google-chrome-stable_current_x86_64.rpm
  2. rpm -ivh google-talkplugin_current_x86_64.rpm


8.Enable Sharing to accept files from bluetooth

Setting → Sharing




9. Pidgin :

    yum install pidgin


Migration : Copy the .purple directory from home directory



Best notification tool: 



https://extensions.gnome.org/extension/170/pidgin-peristent-notification/


10 . firefox :

install adobe flash player








  1. yum install flash-plugin


Migration : Copy the .mozilla directory from home 



directory


11. AutoKey-gtk





    yum install autokey-gtk
  1. run : autokey-gtk -c


Set :
it



































will run automatically after reboot :


Migration : ~/ .config/autokey


12. Install nemo ( lightweight file browser instead of 


default )





    yum install nemo
  1. yum install nemo-fileroller



13. WebEx client :



It requires 32 bit firefox & 32 bit JDK to have all webex 




features like sharing desktop etc .





a. Access any webex URL ( Test URL :  





b.it will create .webex folder in home directory



c.Go to .webex/<>/ folder Run ldd libdbr.so




d.Check all the “not found “ lib files ( ldd libdbr.so | grep 



found



[sterin@sterinlap 1530]$ ldd libdbr.so
linux-gate.so.1 => (0xf77cd000)
libjawt.so => not found
libX11.so.6 => /lib/libX11.so.6 (0xf7667000)
libXmu.so.6 => not found
libdl.so.2 => /lib/libdl.so.2 (0xf7662000)
libstdc++.so.6 => /lib/libstdc++.so.6 (0xf756a000)
libm.so.6 => /lib/libm.so.6 (0xf751d000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf74ff000)
libc.so.6 => /lib/libc.so.6 (0xf7333000)
libxcb.so.1 => /lib/libxcb.so.1 (0xf730e000)
/lib/ld-linux.so.2 (0x5662f000)
libXau.so.6 => /lib/libXau.so.6 (0xf7309000)



e.Install using yum


yum install libjawt.so (in this case , it was already installed , so copy to .webex directory )

locate libjawt.so

cp /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc21.i386/lib/i386/libjawt.so .


yum install libXmu.so.6

yum install libgtk-3.so.0 ( it requires now )



In some cases yum shows pacakge is installed. In that case you need to copy to .webex folder

Example :




export LD_LIBRARY_PATH=:.


ldd libdbr.so


cp /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc21.i386/jre/lib/i386/libawt.so .


cp /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc21.i386-debug/jre/lib/i386/libawt_xawt.so .


cp /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc21.i386/jre/lib/i386/libjava.so .

cp /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc21.i386/jre/lib/i386/server/libjvm.so .

cp /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc21.i386/jre/lib/i386/libverify.so .


f. Install 32 bit firefox :

wget http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/27.0b9/linux-i686/en-US/firefox-27.0b9.tar.bz2


g. Extract and Start firefox :

h.It will show the missing 32 bit Lib

k.Install all missing 32 bit Lib using yum

yum install libdbus-glib-1.so.2 libgtk-x11-2.0.so.0



j.Download 32 bit JDK . (will work jdk1.6.0_45)


k. Link in ~/.mozilla/plugin folder


ln -s /home/sterin/Public/32bit/jdk1.6.0_45/jre/lib/i386/libnpjp2.so

l. Create different script for old 32 bit firefox

:cd /home/sterin/Public/32bit/firefox/

./firefox -p -no-remote


Add alias to call this firefox like “32bitfire”






14 . Zoom conference :


Required lib:




    yum install libLLVM-3.4.so mesa-dri-drivers-10.4.7-1.20150323.fc21.i686
  1. rpm -ivh ZoomInstaller_i686.rpm


15. vnc viewer



    yum install vnc


16. VLC meida player :




    yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-21.noarch.rpm
  1. yum update
  2. yum install vlc


17.rhythmbox

rpmfusion should be addes as per step 16




  1. yum install gstreamer1-libav gstreamer1-plugins-good gstreamer1-plugins-ugly
  2. gstreamer1-plugins-bad-free gstreamer-ffmpeg 
  3. gstreamer-plugins-good gstreamer-plugins-ugly 
  4. gstreamer-plugins-bad 
  5. gstreamer-plugins-bad-free gstreamer-plugins-bad-nonfree


18 .CISCO VPN

Download :

commnad : /opt/cisco/anyconnect/bin/vpnui



yum install pangox-compat







19. gedit : ( it will be installed by default , it required to 


install plugins)




    yum install gedit-plugin


Go to gedit → Perfernce → Enabl external Tools

Migration ~/.config/gedit folder

20 . Printers




    yum install @printing --setopt=group_package_types="default, mandatory, optional"




printers → add printer ( root password)



use Socket to add it

Description:
blr-kkgm-8-prn2
Location:


Driver:
Generic PostScript Printer Foomatic/Postscript (recommended) (color, 2-sided printing)
Connection:
socket://IP:9100/RAW
Defaults:
job-sheets=none, none media=iso_a4_210x297mm sides=two-sided-long-edge

21 . Remote desktop : ( for RDP to windows )




    yum install remmina*
Restart is required to enable the plugins

Migration ~/.remina


22 . Disable to tracker ( which will eat 100 % after startup )

Go to /etc/xdg/autostart and edit all tracker files , add Hidden=true at the end of all the files

cd /etc/xdg/autostart

Add add Hidden=true at the end of  below  the files
 tracker-extract.desktop
 tracker-miner-apps.desktop
 tracker-miner-user-guides.desktop
 tracker-store.desktop

23. Add custom shortcuts

Go to Setting → Keyborad → Shortcurts









24 . File compression 

for 7zip : yum install p7zip p7zip-plugins


for rar : 

Add repo:


    yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
  1. yum install unrar









25. Subtitle downloader  : SubDownloader



    yum install subdownloader



26. Image editing tool : GIMP



    yum install gimp



27. Screen Capture Tool : 


To Capture screen as video :

Option 1 : (Best option )

Use  : EasyScreenCast  extension

Location : https://extensions.gnome.org/extension/690/easyscreencast/

Do it like step 1 .

It can record sound from mic .
Option 2 :  istanbul

yum install istanbul

Option 3 :  gtk-recordmydesktop

yum install gtk-recordmydesktop


28. Video conversion command line tool 


ffmpeg can be used to convert video to mp4 and mp4 or


youtube videos to mp3 format





    yum install  ffmpeg


Example : ffmpeg -i  input.ogv output.mp4








29 . Wireshark to debug the network related issue . 



Fiddler is not available  on fedora





    yum install wireshark-gnome



30 .  Video editing tool : Open Shot

for conversion , cutting clips ,changing audio etc 


Make sure that rpmfusion   repo installed . ( refer step 16 )





    yum install openshot




other tools :

https://shotcut.org/download/


https://obsproject.com




https://getsharex.com/




31 . Live USB creator ( for windows and linux OS )







    yum install liveusb-creator




32.Subtitle Editor 



yum install gnome-subtitles


33. nodejs

 curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -

 yum -y install nodejs


34. Adobe Reader .

Adobe removed yum repo for the reader . So below steps 


should be followed to install the reader
set url and deps before running yum command


url=http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/
deps="nspluginwrapper.i686 libcanberra-gtk2.i686 adwaita-gtk2-theme.i686 PackageKit-gtk3-module.i686"

su -c "yum -y install $url/AdbeRdr9.5.5-1_i486linux_enu.rpm $deps"





35. Docker 



a. 
sudo tee /etc/yum.repos.d/docker.repo <<-'EOF' [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/fedora/$releasever/ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF


b. dnf install docker-engine
c. systemctl start docker
d. docker run hello-world


36. yum install ntfs-3g liberation-fonts libvulkan* python-simplejson python-xlib notify-python lsb-core-noarch snapd