Oct 17 2005
Fedora notes
9/12/06: Notes on configuring your bash prompt.
9/9/06: Got smbd working.
9/2/06: Noted that the Java plug-in for Firefox is not available for AMD64 installations. You’re supposed to get the standard AMD 32-bit version of the JRE and that will still work.
Installing windows fonts
http://www.yolinux.com/TUTORIALS/LinuxListOfFonts.html#MSTTF
http://corefonts.sourceforge.net/
How to configure GTK fonts
- Check env for GTK resource files for KDE. You’ll see the paths somewhere in ~/.kde/share/config/gtkrc
- create rc file for personal GTK-2.0 settings: .gtkrc-2.0.mine. My contents are simply:
gtk-font-name = “Verdana 8″
- modify gtkrc in ~/.kde/share/config/gtkrc, add:
include “/
- Another option, is to take the “default” style and add font_name = “Verdana 8″. Then set:
class “*” style “default”
This is not as global as the gtk-font-name option. For example, this doesn’t seem to affect Firefox for me.
Help from:
http://tommy.impulsestorm.com/texts/view/44
What I’m wondering now, is if the GTK2_RC_FILES and GTK_RC_FILES are searched in any kind of order.
- Answer to this question is that they are. My GTK2_RC_FILES env variable looks like:
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/daveshih/.gtkrc-2.0:/home/daveshih/.kde/share/config/gtkrc
And when I set the default styles in /home/daveshih/.gtkrc-2.0, I don’t believe the last entry is used, making the edits to the .gtkrc in the .kde path useless. Which is good, because unless told not to, KDE overwrites that file anyways.
enabling translucent windows in KDE 3.4+
1. Pretty much summed up here. Although the RenderAccel option has been hanging my comp at startup
how to set up the vpn tunnel to my work network
- Followed directions here
http://pptpclient.sourceforge.net/howto-fedora-core-4.phtml
But when running the pptpconfig, I’m getting this error:
Xlib: connection to “:0.0″ refused by server
Xlib: No protocol specifiedFatal error: php-gtk: Could not open display in /usr/bin/pptpconfig.php on line 31
Found an answer to the above at
http://pptpclient.sourceforge.net/howto-diagnosis.phtml#x_display
It basically looks like “root” doesn’t have permissions to display on my X client. I managed to resolve the issue through the really ghetto ssh tunneling option. I’m still trying to get my head around how that works. From what I understand, you’re connecting to a machine, saying, forward your X responses to my display… which I’m not allowed to display on normally. I’m probably just not thinking about it straight just yet.
how to get azureus running
This one was pretty (relatively) easy:
1. Downloaded Azureus from http://azureus.sourceforge.net
2. Untarred the file, attempted to run the azureus script.
3. At run-time, script complained about missing com.sun.ssl package. I figured this was strange.
4. Followed directions and set JAVA_PROGRAM_DIR in the azureus startup script. Still no go.
5. Discovered that Fedora is installed with some non-standard java thing called gij (i think it stands for gnu integrated java compiler or something).
6. Tried exporting CLASSPATH and JAVA_HOME to this non-standard installation, no go.
7. I began suspecting that the non-standard installation didn’t have all the standard java libraries. Downloaded Java 1.5 (”Java 5″) from http://java.sun.com.
8. Exported JAVA_HOME and CLASSSPATH to point at the java 5 installation.
9. Configured JAVA_PROGRAM_DIR in the azureus startup script. Things worked.
10. Moved azureus to /usr/share
11. Created a symlink in /usr/bin to /usr/share/azureus/azureus. This didn’t work because I think it caused the azureus script to think that it was running out of /usr/bin, and thus it wasn’t able to find its libraries, which were placed relatively.
12. Created a script in /usr/bin instead, which invoked /usr/share/azureus/azureus.
upgraded my nvidia driver
1. When to nVidia to find the video driver for my trusty ol’ GeForce 2 Pro
2. Discovered that my video card is no longer supported by their unified driver
3. Was forced to find the legacy drivers - not that painful.
4. Read the README.txt. Carefully. I imagined myself to be helpless without windows and installing the drivers required shutting down X.
5. Updated /etc/inittab to set runlevel to 1 - single user reboot
6. Rebooted, ran the installation, discovered that the runlevel should be 3.
7. Switched to runlevel 3 (forgot how this was done… ahh… it was running “telinit 3″)
8. Ran installation
9. Updated xorg.conf with settings required by README.txt
Specifically, switched:
the relevant Device section and replace the line:
Driver “nv”
(or Driver “vesa”)with
Driver “nvidia”
In the Module section, make sure you have:
Load “glx”
You should also remove the following lines:
Load “dri”
Load “GLcore”
10. Ran startx to verify that X would work okay.
11. Reset runlevel to 5 (start X on reboot)
12. CTRL+ALT+DEL to reboot (there must have been a better way)
Installed OpenOffice
1. Downloaded tar from http://www.openoffice.org
2. Untarred the tar file
3. when to RPM directory, discovered that yum install *rpm wouldn’t work - citing some unsigned error
4. tried manually removing existing OOO packages first (rpm -qa | grep -in “openoffice”)
5. Still found that yum complained
6. Went ahead and just ran rpm –install *.rpm. This worked fine
7. Verified installation into /opt/openoffice2…
8. Verified that /opt/openofice2…./soffice started open office
9. Went to desktop-integration/ subdirectory and ran rpm –install on the package related to Redhat, because the installation guide told me to.
how to get xmms running
1. After installing xmms using ‘yum install xmms’, xmms segfaults every time it’s started up. Looks like it’s an issue w/ using the nvidia drivers http://forums.fedoraforum.org/showthread.php?p=380306
2. With my new computer, I installed xmms again, but this time I was thwarted by some royalties issue causing fedora core 4 not to install mp3 player support. However, it appears that it is perfectly legal for home users to play mp3s w/o royalties issues.
3. I just went ahead and downloaded the xmms-mp3 plugin from here
4. You should also consider using beep media player, a branch off the xmms mainline intending to update xmms to use GTK2. There is actually a yum package “bmp” so you can just run “yum install bmp”. A heads up that the executable will be named “beep-media-player”, not “bmp”.
5. Before playing with beep-media-player, you still need the bmp-mp3 library, also available at rpmfind.net
how to use themes written for kwin
- Turns out I was installing everything okay, but I was expecting the installed “themes” to be under the “Themes” category in the Appearance tab under the KDE control center. Themes actually fall under “Window Decorations”.
how to revert to gcc3 when necessary (many apps don’t seem to like to build w/ gcc4)
This has been the most painful task so far. The main reason is that installing gcc involves compilation, as opposed to nice, easy yum/rpm binary installs.
1. Download gcc-3.4.4 packge from gcc.gnu.org
2. Extract tarball
3. Create build directory as specified in installation directions
4. run “make build”
5. run “make install”
6. Discovered that running “gcc” still loads version 4.0.
7. Discovered that installing the main gcc package re-installed that gij compiler (java substitute)
8. Re-symlinked all the java bins in /usr/bin/ back to /usr/java/jdk1.5…./bin/
9. Discovered that in the /usr/local/bin directory, all the gcc-related binaries were versioned 3.4.4 - this leads me to be confused as to why i’m seeing gcc –version report version 4.0
10. Ran the following commands in this order, to further perplex myself:
In the directory /usr/local/bin/:
$ which gcc - returned /usr/local/bin/gcc
$ gcc –version - returned 4.0.0
$ ./gcc –version - returned 3.4.4
11. Noticed that there were three identical binaries (verified w/ diff) in /usr/local/bin, but had different names:
-rwxr-xr-x 2 root root 191981 Oct 22 20:51 gcc
-rwxr-xr-x 2 root root 191981 Oct 22 20:51 i686-pc-linux-gnu-gcc
-rwxr-xr-x 2 root root 191981 Oct 22 20:51 i686-pc-linux-gnu-gcc-3.4.4
12. Finally decided to “rm gcc”, and “ln -s i686-pc-linux-gnu-gcc-3.4.4 gcc”. Yet to verify how things run.
13. I’d remove the RPMs that installed gcc 4.0.0, but I’m afraid that that will screw up my gcc 3.4.4 installation, which is bad, because gcc needs a working C compiler in order to build.
13a. I did this anyways, and it looked like running $ gcc started complaining about not finding /usr/bin/gcc (which gcc returns /usr/local/bin/gcc). I just hacked this one up by creating a symlink in /usr/bin for cc and gcc which point at /usr/bin/gcc -> /usr/local/bin/i686-pc-linux-gnu-gcc-3.4.4. I’m not quite clear if this creates a loop during program execution at some point… but let’s hope not.
14. Realized that I should have looked for this first: gcc FAQ How to Install Multiple Versions of gcc.
how to switch themes
1. Download theme package from kde-look.org. Untar and attempt to run ./configure
2. Script complains about gcc 4
3. Install a gcc version earlier than 4. See above.
4. Run ./configure.
5. Script complains about missing x11 headers
6. After much painful searching on the net, yum install xorg-x11-devel.i386 (i was grepping the yum list for xorg-dev, xfree86-dev, xlibs-dev…)
7. Run ./configure.
8. Script complains about missing qt headers
9. yum install qt-devel.i386 (i learned from 6 and visually scanned over the “yum list” list)
10. Run ./configure
11. Script continued to fail with the same error.
12. Found a thread and discovered that you can run “./configure –help”. This resulted in the discovery of the following flags:
–with-qt-dir
–with-qt-includes
–with-qt-libraries
With those, tried:
./configure –with-qt-dir=/usr/lib/qt-3.3/ –with-qt-includes=/usr/lib/qt-3.3/include/ –with-qt-libraries=/usr/lib/qt-3.3/lib/
13. Now fails with error:
in the prefix, you’ve chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!
14. Looks like I need the KDE devel packages a well.
Ran ‘yum install kdebase-devel kdelibs-devel’
15. Run ./configure (with the extra options) again
16. configure runs successfully!
17. Ran make and make install (make install had to be as root) successfully!
18. Hopefully, downloading all these packages will be a one-time thing for theme installation. On top of that, I verified that my hackish installation of gcc works.
install mplayer
1. Download Fedora/Redhat RPM and essential codecs from http://www.mplayerhq.hu/homepage/design7/dload.html.
2. yum installed the mplayer package
3. Attempted to start mplayer on an xvid got error “Error opening/initializing the selected video_out (-vo) device.”
4. Figured installing the essential codecs might help. . untar the essential codecs into the location designated in the README mainly /usr/local/lib/codecs/
5. Tried also copying into the other listed directory, /usr/lib/codecs.
6. Continued to get the same error
7. Found http://www.mplayerhq.hu/DOCS/HTML/en/faq.html#id2885013. The links to the installation help and FAQ on the main mplayer page pointed at: http://mplayerhq.hu/DOCS/HTML/en/faq.html#id2885013 (same url as above, but without the leading “www”) for whatever reason, this caused a timeout when trying to fetch the document from the webserver.
8. Following directions, starting gmplayer -vo xv seemed to do the trick for playing xvid. This also appeared to have auto-updated ~/.mplayer/gui.conf, so I don’t need to specify this flag in the future.
9. I tried playing a dvd, but it looks like the ao isn’t quite right either. But seeing as there are known issues running dvds in mplayer (can’t use interactive menus) i’m going to pursue that issue at a later time.
installed xine (dvd player)
1. Followed directions here: http://cambuca.ldhs.cetuc.puc-rio.br/xine/ - probably the easiest installation so far…
2. To be specific, I downloaded the the libxine (for k7, since i’m running on an athlon), xine-ui and libdvdcss packages only.
how to start apps on graphical login (such as KDE, as opposed to shell login)
1. For KDE, just add a symlink in ~/
How I diagnosed: FATAL: Error inserting ppp_mppe (/lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net/ppp_mppe.ko): Invalid module format. a dkms module
1. Checked online for “Invalid module format” error
2. Found a newsgroup where someone pointed out the /sbin/modinfo command. You can use this command to get information on dkms (dynamic kernel module support) modules
3. I ran /sbin/dkms ppp_mppe.
4. The vermagic string in the return value returns the kernel version the module is built for and compiler used to compile the module. Both the kernel version and compiler version must match your current kernel version and the compiler used to build your kernel.
5. Looks like the compiler I was using gcc 3.4, my kernel was built with 4.0
6. I had symlinked /usr/local/bin/gcc to point at version 4.0 gcc compiler. But it looks like I also need to update the symlinks for /bin/gcc and /bin/cc. I’m curious as to the invokation order of gcc. Seems like it calls /usr/local/gcc, then somehow ends up invoking /bin/gcc or /bin/cc. What’s weird is, the way I got it to work, I pointed /usr/bin/gcc, /bin/cc and /bin/gcc all to the same executeable… if that’s the case, how does /bin/cc and /bin/gcc get invoked? Does the gcc executable make sure that it is the same executable as the one that /bin/gcc points at? Otherwise it runs /bin/gcc? That seems strange. Why have /usr/bin/gcc at all then?
7. Anyhow, I rebuilt with the new symlinks and now modinfo reports that ppp_mppe was built with gcc 4.0 and everything works.
how to disable CTRL+TAB virtual desktop switching (for KDE)
1. update both the “Walk Through Desktop List” and “Walk Through Desktop List (Reverse)” properties in ~/.kde/share/config/kdeglobals from (Ctrl+Tab) and (Ctrl+Shift+Tab), respectively, to none.
For example, here’s my diff -bu:
Switch to Previous Desktop=none
Toggle Showing Desktop=default(Alt+Ctrl+D)
Toggle Window Raise/Lower=none
-Walk Through Desktop List=none
-Walk Through Desktop List (Reverse)=none
+Walk Through Desktop List=default(Ctrl+Tab)
+Walk Through Desktop List (Reverse)=default(Ctrl+Shift+Tab)
Walk Through Desktops=none
Walk Through Desktops (Reverse)=none
Walk Through Windows=default(Alt+Tab)
Pretty simple eh? Now you can finally do some real tabbed browsing in firefox and gaim.
how to play avi files in mplayer
1. Go back to the mplayer download page
2. Under “Codecs” you should already have the essential codecs package. Now get the “other binary codec packages”
3. Download the “all” set. And copy the untarred set into /usr/lib/win32
install a nice-looking icon set
1. There are two that I’ve liked so far: OS-L and Amaranth Altheae. Both available at http://www.kde-look.org
Get MySQL query browser running
1. The binary RPMs don’t work because they’re looking for libraries are already installed on my system:
Error: Missing Dependency: libgtkhtml-3.6.so.18 is needed by package mysql-query-browser
Error: Missing Dependency: libatkmm-1.6.so.1 is needed by package mysql-query-browser
Error: Missing Dependency: libsigc-2.0.so.0 is needed by package mysql-query-browser
Error: Missing Dependency: libgnomeui-2.so.0 is needed by package mysql-query-browser
Error: Missing Dependency: libgdkmm-2.4.so.1 is needed by package mysql-query-browser
Error: Missing Dependency: libpangomm-1.4.so.1 is needed by package mysql-query-browser
Error: Missing Dependency: libbonoboui-2.so.0 is needed by package mysql-query-browser
Error: Missing Dependency: libgnome-2.so.0 is needed by package mysql-query-browser
Error: Missing Dependency: libgtkmm-2.4.so.1 is needed by package mysql-query-browser
Error: Missing Dependency: libglibmm-2.4.so.1 is needed by package mysql-query-browser
2. I downloaded the source RPMs and tried configuring them. That brought me this error:
configure: error: Library requirements (libglade-2.0
gthread-2.0
libxml-2.0 >= 2.6.2
libgtkhtml-3.0
gtkmm-2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
But I do have them:
$ locate libgtkhtml
/usr/lib64/libgtkhtml-2.so.0
/usr/lib64/libgtkhtml-3.6.so.18
/usr/lib64/libgtkhtml-3.6.so.18.0.2
/usr/lib64/libgtkhtml-2.so.0.0.0
$ locate gtkmm
/usr/lib64/libgtkmm-2.4.so.1.0.20
/usr/lib64/libgtkmm-2.4.so.1
etc…
It just looks like I don’t have the pkg-config pc files for them.
3. Ah… it looks like the .pc files are installed for the *-devel versions of the packages, which makes sense if pkg-config files are used mostly for building apps.
4. During my attempt to re-”./configure” mysql-query-browser, I still had an issue with libgtkhtml-3.0. Turns out I had a newer version, version 3.6. I searched through the configure script and found that I can specify the version of gtkhtml to use with the –with-gtkhtml= flag. Now everything configures just dandy.
5. My make of mysql-query-browser failed with error:
make[3]: *** No rule to make target `../../../../mysql-gui-common/library/source/libmysqlx.a’, needed by `test_query_analyze’. Stop.
6. I decided to move onto mysql-gui-common. It building with make succeeded with no errors.
7. Trying to re-make mysql-query-browser returned error:
MGResultSetModel.cc: In member function ‘virtual void MGResultSetModel::get_value_vfunc(const Gtk::TreeIter&, int, Glib::ValueBase&) const’:
MGResultSetModel.cc:402: error: no matching function for call to ‘MGResultSetModel::get_value(const Gtk::TreeIter&, int&, void*&, gsize&) const’
MGResultSetModel.cc:259: note: candidates are: bool MGResultSetModel::get_value(const Gtk::TreeIter&, unsigned int, void*&, guint&) const
It makes me wonder if I’m missing some kind of typedef, considering that the difference is between gsize& and guint&
8. I got to go in and fix code! That was kind of exciting. The main issues stemmed (as expected) from running on a 64-bit architecture. Some of the changes were outlined here:
MySQL bugs forum.
Otherwise, I just deduced from the error messages:
MQResultSetView.cc: In member function ‘void MQResultSetView::editor_save(MGBlobEditor*)’:
MQResultSetView.cc:1854: error: cast from ‘void*’ to ‘int’ loses precision
The above bug is a good example. The complaint is that void * to int loses precision. In a 32-bit archecture, you tend to get away with it, because an int is the same size as a pointer (32-bits). On a 64-bit archiecture howerever, pointers are 64 bits, whereas ints are 32. So the trick was just to go into that function and witch the int to long and things worked great.
9. Running make install in the mysql-query-browser worked out fine. Trying to run mysql-query-browser returned the error:
mysql-query-browser:20981): libglade-WARNING **: could not find glade file ‘/usr/local/share/mysql-gui/common/preferences.glade’
terminate called after throwing an instance of ‘MGGladeXML::Error’
/usr/local/bin/mysql-query-browser: line 20: 20981 Aborted $PRG-bin
Yeah, it sort of tipped me off that I need to make install mysql-gui-common. Ran make install on mysql-gui-common with no errors.
10. Loading mysql-query-browser worked! My first manual tweaking of code to make an app build!
get pictures off my digital camera
1. There’s a front-end called gtkam, which uses gphoto2 and libphoto2. These packages were readily available so I just yum installed them and everything worked fine. Even auto-detected my digital camera.
2. Additionally, there’s an album manager, which also a front-end on gphoto, called digiKam which is pretty good. It also has digital camera reading functionality built into it.
cutting and pasting in emacs
1. One annoying thing about using emacs in linux is that by default, it does not use the X cut/paste buffer. Meaning, you can’t copy from emacs and paste into, say, the terminal, or vice versa.
2. It turns out that, once again, this is linux and you can simply set a configuration option in .emacs to get it working
(setq x-select-enable-clipboard t)
3. More details are at an emacs wiki I found here. The page specifically relating to copy and paste is here.
installing 32-bit firefox on 64-bit linux
1. All questions answered here http://www.linuxquestions.org/questions/showthread.php?threadid=345264
2. I had to do this in order to get flash and java content working in my browser. I know I know, it’s silly, but I need my flash sites.
configuring KDM
I now have this cool penguin theme running for my login screen.
1. Download the theme.
2. Copy it into $KDEDIR/share/apps/kdm/themes
3. Edit /etc/kde/kdm/kdmrc, set UseTheme=true, set Theme=
5. Looked in /etc/inittab, noticed that when starting in runlevel 5, it was running /etc/X11/prefdm
# Run xdm in runlevel 5
x:5:once:/etc/X11/prefdm -nodaemon
6. In prefdm, saw this block:
# Run preferred X display manager
preferred=
if [ -f /etc/sysconfig/desktop ]; then
. /etc/sysconfig/desktop
if [ “$DISPLAYMANAGER” = GNOME ]; then
preferred=gdm
elif [ “$DISPLAYMANAGER” = KDE ]; then
preferred=kdm
elif [ “$DISPLAYMANAGER” = XDM ]; then
preferred=xdm
elif [ -n “$DISPLAYMANAGER” ]; then
preferred=$DISPLAYMANAGER
fi
fi
So it looks like it was expecting /etc/sysconfig/desktop to set the DISPLAYMANAGER variable
7. I updated /etc/sysconfig/desktop to include the line DISPLAYMANAGER=”KDE”
8. All is well =)
mounting my home directory from work
1. At first i tried mounting using -t smbfs, this ended up with a failed mount… I don’t know how else to describe it other than that it didn’t work. No error message or anything, but when I went to my mount point, there was nothing there. Turned out I needed to use nfs
2. ran mount -t nfs -o rsize=32768,wsize=32768,hard
3. I somehow need to get write permissions to my directory. I saw this interesting thread from a mac os x forum… the trick now is how to get my UID to match my UID from work…
mounting usb flash drive/ipod (i’ll just use the ipod as an example sine there are additional steps)
1. The standard way to mount a usb drive, appears to be to just plug it in, run dmesg (look through syslogs) and see which device the system detected it on. Usually, it will be something like sda or sdb. Let’s call this DEVICE
2. After that, you could create a directory to serve as the mount point. When you mount the drive, all the files will appear that subdirectory. Let’s just call it MOUNT_DIR for brevity.
3. Once you’ve determined the device interface and have a MOUNT_DIR, the simplest thing to do, is just run (as root)
mount DEVICE MOUNT_DIR
If you’re lucky, this will work.
4. For me, this didn’t work for the longest time. When I took a flash drive that was formatted as FAT32 (aka Windows),
and dmesg reported:
sdb: assuming drive cache: write through
sdb: sdb1
Attached scsi removable disk sdb at scsi5, channel 0, id 0, lun 0
I would try: mount /dev/sdb /mnt/usbflash
But first get back the error:
mount: you must specify the filesystem type
And then after changing my command to
mount -t vfat /dev/sdb /mnt/usbflash
I’d get:
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Turns out, when running off of a usb bus that attaches to two usb ports, you have to include the port designator (this is not official terminology, I’m just trying to explain it the best i can)
So now If i run:
mount -t vfat /dev/sdb1 /mnt/usbflash
Everything is dandy.
5. For the ipod, it’s the same thing. If you bought an iPod and formatted it using the windows installer, it will have a FAT filesystem. If you used a mac, I believe it will have HFS.
6. To sync your ipod, there is an app called gtkpod. God bless sourceforge projects.
7. gtkpod has three primary library dependencies:
libgpod
libmp4v2 (actually included in the package faad2)
libid3tag
Once you install those three libraries, things should be dandy.
sound editing
1. The goal here was to get audacity installed. I tried doing this from source the first time around and it was a terrible flop. This time, I decided it would be more worthwhile to just hunt for the binaries.
2. First went to audacity.sourceforge.net. Noticed that their Fedora downloads link was not working.
3. Google’d: audacity fedora rpms. And my first result was http://rpmforge.net/user/packages/audacity/ a success. Fedora Core 4, x86_64.
4. Tried to install with:
rpm -Uvh audacity-1.2.3-2.2.fc4.rf.x86_64.rpm
Failed because it had a dependency on wxGTK.
5. Searched for it through yum
yum list | grep wxGTK
Turns out yum had it, so it was just a matter of running:
yum install wxGTK
6. Success!
7. After the fact, I thought… hm… maybe audacity is on yum too… and yeah, it was. Oh well.
Port Tunneling
A generally useful technique for *nix users that deal with networks and security zones.
Say there are hosts A, B and C and you can ssh into host A. Then from host A, you can ssh into host B. From host B you can ssh into host C. But from host A, you cannot ssh into host C. Let’s say you wanted to rsync something from A to C and don’t want to do two transfers, one from A=>B and one from B=>C. What you can do is basically create a “tunnel” from A=>B that lets you hit host C. It’s better explained by an example.
SSH typically listens on port 22, so to enable rsync over ssh you need to be able to hit port 22 on host C. What you can do then, is take an available port on host A, say as an example, 9022 and make it so that when you make the ssh connection through 9022, it hits port 22 on host C. The command to do this is the following:
ssh -L 9022:C:22
@B
All this says is, forward the local port 9022 to port 22 of host C, and tunnel the connection through host B. After this tunnel is set up, you should be able to do the following:
telnet localhost 9022
And see the Open SSH protocol prompt, because what you are effectively doing, is opening a telnet connection to port 22 on host C.
Thus, when you want to rsync, you can do:
rsync -azP -e ’ssh -p 9022′
This basically says establish an ssh connection to port 9022 of localhost (A) and rsync through that connection. Since port 9022 is forwarded to C:22, the package that is transferred ends up on host C.
Installing the mplayer plugin
1. Grabbed the rpm from http://mplayerplug-in.sourceforge.net/
2. Ran “rpm -Uvh
3. Got a failed depency check on some .so
4. Did a find for the .so and found it to exist in the firefox directory. Thus, I figured the dependency error was bogus and would be resolved at run-time
5. Ran “rpm -Uvh –nodeps
6. Started up firefox. Everything worked good!
installing Java plugin
1. Grabbed self-extracting .bin from http://www.java.com/en/download/manual.jsp
2. Extracted into /usr/java (I keep all jdk*, jre* directories in there), use symlinks if necessary to run multiple versions.
3. Symlink /home/
get smbd running
1. After much troubleshooting, all it takes to get smbd running is setting up a simple smb.conf file, a la:
server string = Linux Server
security = user[fileshare]
path = /fileshare
writeable = yes
2. Create a user via smbpasswd:
As root:
smbpasswd -a [username]
3. Start smbd. As root:
smbd -D
4. Test connecting to your fileshare as that user
smbclient -U [username] //localhost/fileshare
5. It should basically be that easy.
How to configure your bash prompt
- Reference here Bash Prompt HOWTO
get php running
- TODO
get apache configured
- TODO
get mysql installed
- TODO