Thursday, July 23, 2015

Hide users list from login screen Ubuntu 10.04 ( The Lucid Lynx )

  

root@nirav:~# vim /etc/gdm/gdm.schemas
 
Look for “greeter/Exclude” section 
you will see <default> tags

<default>bin,root,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,nobody4,noaccess,postgres,pvm,rpm,nfsnobody,pcap</default>

Add users you wish not to be seen in the user list from login screen. 

I Added the users user1,user2,user3 between the default tags

<default>bin,root,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,nobody4,noaccess,postgres,pvm,rpm,nfsnobody,pcap,user1,user2,user3</default>

root@nirav:~# reboot


Wednesday, July 8, 2015

Install DIA ( Diagram Editor ) CentOS 7


root@nirav:~# yum install intltool gcc gcc­c++ cairo­gobject­devel gtk2 gtk2­devel gdk­pixbuf2­devel libglade2­devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centosmirror.go4hosting.in
 * epel: mirror.premi.st
 * extras: centosmirror.go4hosting.in
 * nux­dextop: li.nux.ro
 * updates: centosmirror.go4hosting.in
Package gcc­4.8.3­9.el7.x86_64 already installed and latest version
Package cairo­gobject­devel­1.12.14­6.el7.x86_64 already installed and
latest version
Package gtk2­2.24.22­5.el7_0.1.x86_64 already installed and latest version
Package gdk­pixbuf2­devel­2.28.2­4.el7.x86_64 already installed and latest
version
Resolving Dependencies
­­> Running transaction check
­­­> Package gcc­c++.x86_64 0:4.8.3­9.el7 will be installed
­­> Processing Dependency: libstdc++­devel = 4.8.3­9.el7 for package: gcc­c+
+­4.8.3­9.el7.x86_64
­­­> Package gtk2­devel.x86_64 0:2.24.22­5.el7_0.1 will be installed
­­­> Package intltool.noarch 0:0.50.2­6.el7 will be installed
­­> Processing Dependency: gettext­devel for package: intltool­0.50.2­
6.el7.noarch
­­­> Package libglade2­devel.x86_64 0:2.6.4­11.el7 will be installed
­­> Running transaction check
­­­> Package gettext­devel.x86_64 0:0.18.2.1­4.el7 will be installed
­­> Processing Dependency: gettext­common­devel = 0.18.2.1­4.el7 for
package: gettext­devel­0.18.2.1­4.el7.x86_64
­­> Processing Dependency: git for package: gettext­devel­0.18.2.1­
4.el7.x86_64
­­­> Package libstdc++­devel.x86_64 0:4.8.3­9.el7 will be installed
­­> Running transaction check
­­­> Package gettext­common­devel.noarch 0:0.18.2.1­4.el7 will be installed
­­­> Package git.x86_64 0:1.8.3.1­4.el7 will be installed
­­> Processing Dependency: perl­Git = 1.8.3.1­4.el7 for package: git­
1.8.3.1­4.el7.x86_64
­­> Processing Dependency: perl(Term::ReadKey) for package: git­1.8.3.1­
4.el7.x86_64
­­> Processing Dependency: perl(Git) for package: git­1.8.3.1­4.el7.x86_64
­­> Processing Dependency: perl(Error) for package: git­1.8.3.1­4.el7.x86_64
­­> Running transaction check
­­­> Package perl­Error.noarch 1:0.17020­2.el7 will be installed
­­­> Package perl­Git.noarch 0:1.8.3.1­4.el7 will be installed
­­­> Package perl­TermReadKey.x86_64 0:2.30­20.el7 will be installed­­> Finished Dependency Resolution
Dependencies Resolved
==================================================================

Package              Arch     Version        Repository     Size
==================================================================

Installing:
 gcc­c++             x86_64   4.8.3­9.el7         base       7.2 M
 gtk2­devel          x86_64   2.24.22­5.el7_0.1   base       2.9 M
 intltool           noarch   0.50.2­6.el7        base       59 k
 libglade2­devel     x86_64   2.6.4­11.el7        base       52 k
Installing for dependencies:
 gettext­common­devel noarch   0.18.2.1­4.el7      base       368 k
 gettext­devel       x86_64   0.18.2.1­4.el7      base       315 k
 git                x86_64   1.8.3.1­4.el7       base       4.3 M
 libstdc++­devel     x86_64   4.8.3­9.el7         base       1.5 M
 perl­Error          noarch   1:0.17020­2.el7     base       32 k
 perl­Git            noarch   1.8.3.1­4.el7       base       52 k
 perl­TermReadKey    x86_64   2.30­20.el7         base       31 k
Transaction Summary
===================================================================
Install  4 Packages (+7 Dependent packages)
Total download size: 17 M
Installed size: 70 M
Is this ok [y/d/N]: y
Downloading packages:
(1/11): gettext­devel­0.18.2.1­4.el7.x86_64.rpm        |315 kB  00:00:04
(2/11): gettext­common­devel­0.18.2.1­4.el7.noarch.rpm  |368 kB  00:00:05  
(3/11): intltool­0.50.2­6.el7.noarch.rpm              |59 kB  00:00:03 
(4/11): libglade2­devel­2.6.4­11.el7.x86_64.rpm        |52 kB  00:00:04 
(5/11): perl­Error­0.17020­2.el7.noarch.rpm            |32 kB  00:00:00 
(6/11): perl­Git­1.8.3.1­4.el7.noarch.rpm              |52 kB  00:00:02 
(7/11): perl­TermReadKey­2.30­20.el7.x86_64.rpm        |31 kB  00:00:01 
(8/11): gcc­c++­4.8.3­9.el7.x86_64.rpm                 |7.2 MB  00:00:54 
(9/11): git­1.8.3.1­4.el7.x86_64.rpm                  |4.3 MB  00:00:44 
(10/11): gtk2­devel­2.24.22­5.el7_0.1.x86_64.rpm       |2.9 MB  00:01:17  
(11/11): libstdc++­devel­4.8.3­9.el7.x86_64.rpm        |1.5 MB  00:01:42
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
Total                                                                      
155 kB/s |  17 MB  00:01:51    
Running transaction check
Running transaction test
Transaction test succeededRunning transaction
  Installing : 1:perl­Error­0.17020­2.el7.noarch           1/11
  Installing : gtk2­devel­2.24.22­5.el7_0.1.x86_64         2/11
  Installing : libstdc++­devel­4.8.3­9.el7.x86_64          3/11
  Installing : perl­TermReadKey­2.30­20.el7.x86_64         4/11
  Installing : perl­Git­1.8.3.1­4.el7.noarch               5/11
  Installing : git­1.8.3.1­4.el7.x86_64                   6/11
  Installing : gettext­common­devel­0.18.2.1­4.el7.noarch   7/11
  Installing : gettext­devel­0.18.2.1­4.el7.x86_64         8/11
  Installing : intltool­0.50.2­6.el7.noarch               9/11
  Installing : gcc­c++­4.8.3­9.el7.x86_64                  10/11
  Installing : libglade2­devel­2.6.4­11.el7.x86_64         11/11
  Verifying  : gcc­c++­4.8.3­9.el7.x86_64                  1/11
  Verifying  : gettext­common­devel­0.18.2.1­4.el7.noarch   2/11
  Verifying  : perl­TermReadKey­2.30­20.el7.x86_64         3/11
  Verifying  : intltool­0.50.2­6.el7.noarch               4/11
  Verifying  : 1:perl­Error­0.17020­2.el7.noarch           5/11
  Verifying  : perl­Git­1.8.3.1­4.el7.noarch               6/11
  Verifying  : libglade2­devel­2.6.4­11.el7.x86_64         7/11
  Verifying  : git­1.8.3.1­4.el7.x86_64                   8/11
  Verifying  : gettext­devel­0.18.2.1­4.el7.x86_64         9/11
  Verifying  : libstdc++­devel­4.8.3­9.el7.x86_64          10/11
  Verifying  : gtk2­devel­2.24.22­5.el7_0.1.x86_64         11/11
Installed:
  gcc­c++.x86_64 0:4.8.3­9.el7                   gtk2­devel.x86_64
0:2.24.22­5.el7_0.1          intltool.noarch 0:0.50.2­6.el7        
  libglade2­devel.x86_64 0:2.6.4­11.el7        
Dependency Installed:
  gettext­common­devel.noarch 0:0.18.2.1­4.el7       gettext­devel.x86_64 0:0.18.2.1­4.el7 git.x86_64 0:1.8.3.1­4.el7          
  libstdc++­devel.x86_64 0:4.8.3­9.el7 perl­Error.noarch
1:0.17020­2.el7 perl­Git.noarch 0:1.8.3.1­4.el7 perl­TermReadKey.x86_64 0:2.30­20.el7            
Complete!


root@nirav:~# wget
ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/1
9/Everything/x86_64/os/Packages/d/dia­0.97.2­5.fc19.x86_64.rpm

­­2015­06­29 15:57:12­­ 
ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/1
9/Everything/x86_64/os/Packages/d/dia­0.97.2­5.fc19.x86_64.rpm
           => ‘dia­0.97.2­5.fc19.x86_64.rpm’
Resolving ftp.pbone.net (ftp.pbone.net)... 85.14.85.4
Connecting to ftp.pbone.net (ftp.pbone.net)|85.14.85.4|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1)
/mirror/archive.fedoraproject.org/fedora/linux/releases/19/Everything/x86_64
/os/Packages/d ... done.
==> SIZE dia­0.97.2­5.fc19.x86_64.rpm ... 5655888
==> PASV ... done.    ==> RETR dia­0.97.2­5.fc19.x86_64.rpm ... done.
Length: 5655888 (5.4M) (unauthoritative)
100%[=====================================>] 5,655,888    135KB/s   in 58s 
2015­06­29 15:58:13 (95.2 KB/s) ­ ‘dia­0.97.2­5.fc19.x86_64.rpm’ saved
[5655888]
root@nirav:~# yum localinstall dia­0.97.2­5.fc19.x86_64.rpm
Loaded plugins: fastestmirror, langpacks
Examining dia­0.97.2­5.fc19.x86_64.rpm: 1:dia­0.97.2­5.fc19.x86_64
Marking dia­0.97.2­5.fc19.x86_64.rpm to be installed
Resolving Dependencies
­­> Running transaction check
­­­> Package dia.x86_64 1:0.97.2­5.fc19 will be installed
­­> Finished Dependency Resolution
Dependencies Resolved
=======================================================================

Package     Arch     Version          Repository             Size
=======================================================================
Installing:
 dia       x86_64   1:0.97.2­5.fc19 /dia­0.97.2­5.fc19.x86_64   19 M
Transaction Summary
=======================================================================
Install  1 Package
Total size: 19 M
Installed size: 19 M
Is this ok [y/d/N]: yDownloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:dia­0.97.2­5.fc19.x86_64                    1/1
  Verifying  : 1:dia­0.97.25.fc19.x86_64                    1/1
Installed:
 dia.x86_641:0.97.25.fc19                                               

Complete!