Warning: Creating default object from empty value in /home/mirandam/public_html/linux/wp-includes/functions.php on line 292
Fedora, Linux and Stuff :: Tips

Archive for the 'Tips' Category

Automated FTP Script

Monday, October 11th, 2010

I’ve been doing some development for some embedded Linux devices which only support ftp and telnet. In order to automate transfer of binaries from my Fedora development host to the target embedded device I’m using this handy ftp script: pushftp.sh
#!/bin/bash

# arg1 = dest hostname
# arg2 = local file
# arg3 = dest dir

HOST=$1
SRCFILE=$2

USER=root
PASSWD=password
#DESTDIR=/usr/local/data
DESTDIR=$3

ftp -inv $HOST<<ENDFTP
user […]

Default Xorg Resolution

Tuesday, September 15th, 2009

Recent versions of Linux and the Xorg X-Windows system have been engineered to require very little configuration settings to properly detect graphics options and display resolutions. In most cases graphics should “just work”.
The Xorg system stores all its configuration options in the file: xorg.conf. Many distributions including Fedora and CentOS keep this file […]

SSH Client Configuration

Tuesday, August 25th, 2009

I have a VPS which is host to many websites. Some of those sites are permitted ssh access for their admins. However I am the admin to several sites myself. Each site has a different username (login/password) for administration. Additionally I have changed the ssh port to a different number (instead […]

Command Line DVD Burning

Wednesday, August 19th, 2009

When I built my server, I only used a CD-RW/DVD-ROM combination drive. Whenever I remotely downloaded a ISO using wget or bittorrent, I would have to copy the 2-4GB file(s) from my server to either my desktop or laptop. I finally caved, and bought a DVD-RW drive for my server (even though it […]

NetworkManager and YUM Update Issue

Wednesday, March 11th, 2009

As been noted, the NetworkManager update in Fedora 9 and Fedora 10 prevents YUM from performing a regular update. Apparently due to a bug in the Fedora Update system. The following error may be seen:
Public key for NetworkManager-0.7.0.99-3.fc10.i386.rpm is not installed
The solution is coming soon, but for a temporary workaround YUM supports an […]

Various Linux and Fedora News

Friday, February 13th, 2009

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 […]

Network Connections and Applications

Wednesday, October 8th, 2008

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 […]

Copy with a Progress Bar

Friday, September 26th, 2008

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?