Mauriat Miranda     mjmwired

Various Linux and Fedora News

A great deal of the following is all old news. Adobe has has Flash Plugin for x86_64 Linux architecture in Beta since Oct 2008. The only thing, is that since it is provided in a tarball (.tar.gz), you are better off builing an RPM (spec file). Note that the 32bit i386 version still works perfectly with nspluginwrapper. Similarily Sun has released the Java JRE web plugin for x86_64 archictecture. Installation is the very identical to 32bit.

Network Connections and Applications

A fairly common question is: How do I determine which applications are making network connections? While there are different ways to do this, a quick solution is with netstat. To see which applications are connecting to which network addresses, run the following as root (if you are not root certain output is limited): # netstat -tuap This will produce several columns of output the last column is PID/Program name. If you do not recognize the application name, use the PID number and use the ps command to find more information.

Copy with a Progress Bar

This is something I’ve always thought about looking up myself. Great tip for using pv command for seeing copy progress. Example: $ cat source/file.img | pv -s 100g -p -e -r > destination/file.img [ 25MB/s] [==========> ] 13% ETA 0:54:35 Only problem: what package in CentOS includes pv?

SELinux Preventing SSH Passwordless Login

Since upgrading to Fedora 9, I am trying much harder to work with SELinux. For the most part it is pretty easy. I am using passwordless SSH logins between my CentOS 5.1 server and my Fedora 9 desktop. Since my Fedora 8 never used SELinux, all my file contexts were “wrong” when I mounted my /home partition. I noticed the following error when I tried to ssh from my server to Fedora (I read /var/log/messages):

Archive dotfiles and dotdirectories only

Sometimes I would find the need to archive just .files and .directories (e.g. .mozilla, .gnome). Unfortunately I would always manually do it. Quick tip: # ls -A | egrep '^\.' | tar -cvf filename.tar -T - (Thanks to LQ)