Linux.com

Home Linux Community Community Blogs

Community Blogs



Pitivi 0.13.1

Huge updates to Pitivi are headed this way for July.  0.13.1 is the frame work that should be identical to the finished build with exceptions to the plug-ins.

Pitivi is powered by the Gstreamer and can work smoothly with any format Gstreamer can handle.  Since 2008 Collabora Multimedia has sponcered the ongoing development.

Newest release video can be found on YouTube.

 If you want help, support, or just learn more about the project you can find all this and more at pitivi.org.

 

ssh, scp without password to remote host (Look Ma, no Password !)

Here I'm, back again on SSH stuff, as you can see from my previous posts (search blogger name = "ben") OpenSSL and SSH stuff is very interesting and useful for me, so I wrote down a lot of notes on them, this time I'll show you how to connect to an SSH host without password input.

Yeah, I know, there're a lot of folks all around explaining you how to do that but I promise to make it easy 'n' dirty, without hassling you too much, just the basic steps for connecting to your remote host and make it working.

What would you do with this tutorial ? for example:

  • you can ssh to your remote host without requiring a password, this is safe and secure (it uses SSH public/private keys) until you keep your private keys for yourself. A quite recurring task if you've a lot of machines to manage
  • Copy files from an host to another, not only as utility but even for basic administration task, if you manage a network you know what I mean
  • Grant someone access to certain hosts for his job (be careful ok ?)
  • Use all the other SSL suite across hosts, this is not only for ssh or scp, all SSL suite is involved, look at my articles on SSH port forwarding for example, there are a lot of them (blogger: ben)
  • Impress your boss or whatever you'd like


Ok, let's get started

Let's assume you've two hosts:
mylocal - the host from where you want to connect
myremote - the host where you want to connect to

 

1) From mylocal create an ssh rsa key pair for host validation, here's how: 

mylocal:~# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx user@mylocal
The key's randomart image is:
+--[ RSA 2048]----+
....
+-----------------+



2) Now you need to copy the public key to your remote host, do NOT copy the private key, obviously use scp to do this

mylocal:~# scp ~/.ssh/id_rsa.pub myremote:~
Password:
id_rsa.pub 100% 391 0.4KB/s 00:00

so now you've your public key copied fine, let's connect to remote host now



 

3) Connect to your remote machine (myremote)

mylocal:~# ssh root@myremote (root or your remote username)
Password:
Last login: Wed May xx xx:xx:xx xxxx 2009 from mylocal on ssh
myremote ~ #



4) Check out .ssh stuff, if .ssh dir doesn't exist you need to create it

myremote ~ # ls -la ~/.ssh
ls: cannot access /root/.ssh: No such file or directory
If you get something like this you need to create the dir, so:
myremote ~ # mkdir .ssh
myremote ~ # chmod 700 .ssh



5) Now copy your ssh public key into authorized keys file and delete it when finished, so:

myremote ~ # cat ~/id_rsa.pub >> .ssh/authorized_keys
myremote ~ # chmod 600 .ssh/authorized_keys
myremote ~ # rm id_rsa.pub
NOTE: If you've a Debian remote host you MUST use this instead:
myremote ~ # cat ~/id_rsa.pub >> .ssh/authorized_keys2
myremote ~ # chmod 600 .ssh/authorized_keys2
myremote ~ # rm id_rsa.pub
First row is used for all major distros (Gentoo in my real example), Debian users must use the second one, check your ssh man page for details on your setup (first is the most common case)



6) FINAL TEST
Ok let's go back to our local host and try to make something to see what happens:

mylocal:~# scp example.file root@myremote:/tmp/
example.file 100% 169 0.2KB/s 00:00
mylocal:~# ssh root@myremote
Last login: Wed May xx xx:xx:xx xxxx 2009 from mylocal on ssh
myremote ~ # ls -la /tmp/example.file
total 1
-rwxr-xr-x 1 root root 169 May xx xx:xx example.file
Did you see it ? I'll hope so.
As you can see you can copy or connect to host without supplying passwds




Note (read)

Sometimes additional configurations are requested on remote ssh daemon, this may vary from your distro setup and basic security configuration, if final test failed you'll probably have PublicAuthentication or RSA disabled.
In this case you need to change them, don't worry it doesn't affect or lower your current security, tipically this change is done by editing /etc/ssh/sshd_config file, you need root access for it.
sshd_config path may vary between different distro even it's the most common name

To get the correct configuration, see that the following attributes are set (not commented or set to "no") in your sshd_config file

RSAAuthentication    yes
PubkeyAuthentication yes

If you change sshd_config file with these values you need to restart ssh daemon (something like: /etc/init.d/sshd restart)

 

Hope it helps someone
Let me know if you need help or further suggestions
Andrea Benini Ben

 

Comparing UNIX innovation

This article compares and contrasts some of the innovations of the latest releases of AIX 6.1, Solaris 10, and HP-UX. Learn the differences on how to work with certain tasks, such as networking and performance tuning. Also, see at a high level some of the virtualization differences among these big three. You decide what you prefer best.

 

NEWB's adventure's in Linux From Scratch

 argh!

          Maybe I should be calling this NEWB's misadventures in LFS??? :) as you may recall, I crushed 150 gigs of media files a few days ago. Late last night somehow I did something that screwed the pooch on my first partition of my second physical hard drive. I was installing and got some i/o errors about a zip driive but the grub installer said no errors finiished or something or other. Don't recall the exact words. To make matters worse, when I tried to umount the drives I did the shorter path first and when I got to the longer path it wouldn't umount . So like a dummy I did a reboot by ctrl ,alt,del and guess what ?? file system unrecognized. Did fsck.ext2 and still no luck , tried to figure out tune2fs and couldn't understand the man page on that one ..... couldn't get the syntax right. I googled it and many people had the same issues yet I couldn't see anything they were trying that worked so ... just call me "Duke Nuke'm"

        Reinstall yet again, what is this the 3 or 4th time? so that makes 11 tries?now??? sado machism???? LOL

 

SLES10

I still say: I love the Suse linux enterprise server software. It is easy to use and has a great integration with Wind##s server product. So till the moment where we can enjoy a 100% Linux enviroment an excellent choice.
 

Qgis

Today i tried the qgis application for a client of us. Great application with tons of features. Does the job good en cheap.
 

8 Great Linux Apps Worth Bragging About, part 1

The Linux/FOSS world contains a wealth of great applications for everything under the sun. There are many things to like about Linux applications: no spyware, no DRM, great quality and performance. In part 1 of this two-part series I share some of my personal favorites: Audacity, Zoneminder, Kompozer, and the very excellent Kile, which I am using to write my next book.

8 Great Linux Apps Worth Bragging About, part 1

 

Making My own Desktop Manager: The Composite Extension

One feature I want for my window manager is similar to the "Quick-Dial" start-page in Google Chrome, whereby recently open web-sites appear in a 3x3 grid and clicking on a screenshot re-launches that particular site.
 
 

I thought having Iconified apps in a grid on the root window similar to Chrome would be kinda cool, so I would need to render all windows to an off-screen buffer. This meant I could get an image representation of a window (and it's sub-windows) to put in my grid.
Read more... Comment (0)
 

Create and get your jQuery plug-in listed

jQuery lets you create your own plug-ins to extend the functions of jQuery—and to give back to the jQuery community. This article steps you through the process for creating your own jQuery plug-in and as well as getting it listed on the jQuery plug-in community Web pages. Be a part of the JQuery JavaScript library many have grown to depend on
 

Tweak your GTK app fonts to look as good as KDE apps

I don't know how many times I've had to install 100's (ok it seemed that way) of gnome apps just to tweak the font's in GTK apps  so that they looked decent.  The KDE apps have always looked good.  But the GTK ones lacked, well, everything.  

Then I ran across this little article on how to do it.  All I had to do was run this command in a term window.

#> sudo ln -s /etc/fonts/conf.avail/10-autohint.conf /etc/fonts/conf.d/

 Then I restarted the X server, and the fonts on GTK apps (Like Firefox) began to pop like their KDE brethren. HTH

 

 

NEWB's adventure's in Linux From Scratch

Whew,

    I'm back again..... I've been fully involved with the Holiday weekend and between reading the users' guide and learning about my computer hardware I haven't gotten much sleep. I've been told to learn by doing so I've been trying alot of things trying to know, what I'm doing, I 've frustrated myself trying to get different commands to do what I wanted them to do. Like put a simple line in a file instead of opening vi for one line, could have done it on vi in a few seconds but wouldn't learn anything.  So I guess you could say that I'm learning:" Instead of saying  just the commandline equivilent to "daddy" . I can now say "daddy I'm hungry"LOL... maybe someday soon I'll be able to say a whole paragraph.  I stayed up late trying to get the partitions ready for install on my Dell and I guess I stayed up too late, It was 2:00am and I inadvertently did mke2fs -j /dev/hdb3 /mnt/LFS and kill my whole ntfs partition filled with lots of hard work :((. I had an issue with the "order" of the partitions in fdisk. I deleted all the partitions on my drive but the ntfs partition. It was hdb2(on the hard drive it was the last blocks of the drive from like 15-30.... well when I added my first primary partition, It became hdb1, added swap that got put to hdb3 and root on hdb4 when I tried to mount hdb1 to make dir boot I was told device was busy. Ok, so I did like windows and rebooted and restarted fdisk thinking this would fix my problem. NO such luck... I found my solution   the x gave me expert mode LOL. yeah right.. anyway there was a command for correcting the order. I did and rebooted and it worked. All happy that I finally got it fixed when I went to make the linux file system I used the old drive partition numbers and wham!!! hdb2 was no longer 2 it was now 4 and I just formatted my ntfs partition .. just as I hit the enter key , I knew what I had just done!!! lost 150 gigs of important data :(( Learned a very valueable lesson "ALWAYS CHECK COMMAND LINE SYNTAX" !!! think about what you are trying to do and what the command line is saying to do, they can be two entirely diffent things. This was one of my main problems with LFS in the first place. That and the fact that I keep getting lost in the directory tree forgetting where I am at.

 After my experience with the  MSI board , I'm now on a Dell board made by Foxconn , it's an old Pentium4 system 845G chipset, with both and intel 8025 ethernet and the 3com 3x905 card. I've got all the info about this board. I learned about  "lsmod"and "lspci" to list the installed modules and hardware, One thing I've yet to figure out is if on the left side of the list I have 105 modules listed and maybe only 20  on the right side are all the ones listed really needed, or is it just the ones on the right?

 

 
Page 121 of 153

Upcoming Linux Foundation Courses

  1. LFS220 Linux System Administration
    16 Mar » 19 Mar - Chicago +VIRTUAL
    Details
  2. LFS426 Linux Performance Tuning
    16 Mar » 19 Mar - Virtual
    Details
  3. LFD405 Embedded Linux Development with Yocto Project
    23 Mar » 26 Mar - Toronto - ON
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board