Thursday, June 19, 2014

To install a rpm package

To install a rpm package or to upgrade it, you can use

rpm -U filename.rpm

List all packages installed with yum

[root@thanatos ~]# yum list installed
Loaded plugins: langpacks, refresh-packagekit
Installed Packages
GConf2.i686                                                              3.2.6-7.fc20                                                       @koji-override-0/$releasever
LibRaw.i686                                                              0.15.4-1.fc20                                                      @koji-override-0/$releasever
ModemManager.i686                                                        1.1.0-2.git20130913.fc20                                           @koji-override-0/$releasever
ModemManager-glib.i686                                                   1.1.0-2.git20130913.fc20                                           @koji-override-0/$releasever
...
zenity.i686                                                              3.8.0-3.fc20                                                       @koji-override-0/$releasever
zip.i686                                                                 3.0-9.fc20                                                         @koji-override-0/$releasever
zlib.i686                                                                1.2.8-3.fc20                                                       @koji-override-0/$releasever
[root@thanatos ~]#

Wednesday, June 18, 2014

"Access denied" when trying to login into a Linux Fedora Server by using PuTTY

Don't worry if you receive "Access denied" when trying to login into your new Linux Fedora Server by using PuTTY.
Release 0.61 shows this message when GSSAPI authentication fails:it is the first method PuTTY tries. Although this, you will be able to login, if any other method of authentication works successfully.
New PuTTY releases corrected that (newest release is 0.63 at July 18, 2014)

ssh connect to host port 22 Connection refused

After installing Fedora-Live-Desktop-i686-20-1, I could not login because sshd deamon was not running.

[root@merope sysconfig]# ssh eider@thanatos
ssh: connect to host thanatos port 22: Connection refused
[root@merope sysconfig]#

Just start it by using "service sshd start" and everything works fine:

[root@thanatos ssh]# uname -a
Linux thanatos 3.11.10-301.fc20.i686 #1 SMP Thu Dec 5 14:21:31 UTC 2013 i686 i686 i386 GNU/Linux
[root@thanatos ssh]# service sshd start
Redirecting to /bin/systemctl start  sshd.service
[root@thanatos ssh]# service sshd status
Redirecting to /bin/systemctl status  sshd.service
sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; disabled)
   Active: active (running) since Wed 2014-06-18 13:45:13 BRT; 3h 48min ago
  Process: 2935 ExecStartPre=/usr/sbin/sshd-keygen (code=exited, status=0/SUCCESS)
 Main PID: 2943 (sshd)
   CGroup: /system.slice/sshd.service
           ââ2943 /usr/sbin/sshd -D

[root@thanatos ssh]#

[root@merope sysconfig]# ssh eider@thanatos
The authenticity of host 'thanatos (10.80.122.52)' can't be established.
RSA key fingerprint is 4d:f2:7f:ae:70:00:ed:67:d2:ce:b4:53:84:e6:a5:df.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'thanatos,10.80.122.52' (RSA) to the list of known hosts.
eider@thanatos's password:
Last login: Thu Jun 19 16:40:36 2014 from merope
[eider@thanatos ~]$



About Me

My photo
Leitor Compulsivo e Apaixonado