Jump to content

grep420

Members
  • Content Count

    118
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by grep420

  1. welcome, glad to have you as a member.
  2. Do you have a jump box you can ssh to on the public net? Here is a little trick I do at work because of our nazi firewall. We arent supposed to be able to get into the work network from home. I setup a reverse ssh tunnel to my jumpbox on the public internet. This will listen on port 8888 and also fork the process into the background and release the shell: [jsw34@paradox jsw34]$ ssh -l grep420 -f -R 8888:localhost:22 grep420.net -N grep420@grep420.net's password: (now this drops me back to a prompt on my box behind the firewall, so I now ssh out to the box on the public internet.) [jsw34@paradox jsw34]$ ssh grep420.net -l grep420 grep420@grep420.net's password: Last login: Thu Jan 1 23:35:13 2004 from xxxxx.client.comcast.net (now that I am on the box the tunnel is setup to, I just ssh to the tunnel port on localhost.) grep420@grep420.net [~]# ssh -l jsw34 -p 8888 localhost "Any unauthorized attempts will be recorded!" jsw34@localhost's password: [jsw34@paradox jsw34]$ (Now I am back on the box behind the nazi firewall, and the firewall thinks the connection was initiated from behind it so it allows the traffic. Since the process has no shell and is running in the background it will keep the connection open until you reboot the box or your network goes down.) - grep420
  3. grep420

    RedHat Upgrade

    I upgraded from 9 to fedora on one box and have ran into multiple problems, mainly compiling things. Enlightenment, fluxbox, bitchx, and several others I can't think of right off hand. I am sticking with 9 until april as my primary desktop OS just due to the issues I have seen so far. Hopefully core2 will be out before then.
  4. grep420

    NFS - Problems

    what exactly are you installing? Are you using the rpms? apt-get? up2date? NFS is really easy to setup. Here is a quickie. First you need to add the filesystem you want shared to /etc/exports. Example for /etc/exports: [root@paradox root]# cat /etc/exports /nfs 192.168.1.0/24(rw) Now you will need to start the portmap daemon (service portmap start) and nfs (service nfs start). To make this always start at boot issue the chkconfig command: chkconfig nfs on && chkconfig portmap on. Now with your share dir added to /etc/exports issue the exportfs command as root: [root@paradox root]# exportfs /nfs 192.168.1.0/24 This is now sharing out the /nfs dir on the box to any ip in the 192.168.1.0/24 range, with read and write priveleges. - grep420
  5. grep420

    Time update

    [jsw34@paradox jsw34]$ su - Password: [root@paradox root]# ntpdate clock.redhat.com 2 Jan 00:12:18 ntpdate[7975]: step time server 66.187.233.4 offset 3656.741776 sec you can add this to a cron at whatever interval you like. example: will run 15 minutes after the hour, every hour. 15 * * * * /usr/sbin/ntpdate clock.redhat.com
  6. grep420

    sup yo's im tek

    Welcome to the linux-noob forums. Please do not feel stupid asking questions here. We take them all seriously, and we were all noob's once.
  7. This is the year of the big 30 for me, so I am getting old myself. I hope you all have good times and great success this year. - grep420
  8. grep420

    howdy

    Welcome to the forums, I am also a bass player. I would like to hear your cd.
  9. grep420

    hi i'm anyweb

    cheers webster! glad you started the forums. oh yeah, get me a job in sweden!!
  10. I am posting this for nforbes. - grep420 One of the great things about emacs is that you can change the looks of it by editing files in a programming language called "lisp". It's actually a very simple programming language, and with the help of emacs, it can become quite useful. Let's get started. First, open up emacs, and get up a find file in the minibuffer. This can be accomplished by pressing ^X-^F (^ means Ctrl). It should look similar to this: Find file: ~/ Locate the file ~/.emacs, and open it. .emacs is the file that emacs trys to autoload to get settings from. If it doesn't exist, let emacs create it for you. Now we can start doing some cool things. Most commands in lisp for emacs look like this: (set-variable 'option value) These options are equivalent to pressing M-X (M means Alt), and then the option. For example, try M-X global-font-lock-mode. This is the same as writing (set-variable 'global-font-lock-mode t) in your .emacs. However, by putting that line in your .emacs, every time emacs starts, it will automatically execute M-X global-font-lock-mode. Pretty neat, huh? A good way to edit your .emacs is to use the built-in emacs customization interface. Type M-X customize-browse. You can browse through all the settings available to emacs here. When you select to turn one on (or off), it will automatically add that to your .emacs as if you had written it yourself! Next, let's do some key bindings. These are neat because you don't have to remember specific M-X commands, just the key that executes them. Let's see how we can have F1 and Shift-F1 move forward and backward in the buffers. Some people like to have a different file for key bindings, and they generally put this in the /usr/share/emacs/site-lisp (or wherever your site-lisp directory might happen to be). By doing this, you can easily organize all your emacs settings. So get up the find file dialog in the minibuffer again, and (making sure you are root for this one), open /usr/share/emacs/site-lisp/site-keys.el. .el is the extension used for emacs lisp files. Let's make a new keybinding. this can be accomplished by doing (global-set-key [key] 'option) We want to bind F1 to 'go to the next buffer' (the command for this is 'exhume-buffer'), and Shift-F1 to 'go to the previous buffer' (the command for this is 'bury-buffer'), so what we can do is this: (global-set-key [f1] 'exhume-buffer) (global-set-key [(shift f1)] 'bury-buffer) Note the parenthesis around "shift f1". emacs does not have an interface (that I know of) for adding new key bindings, so you'll have to write this file yourself. emacs does not automatically load the files in /usr/share/emacs/site-lisp, so we'll have to add this file as a library to our .emacs. Switch to your .emacs buffer (M-X bury-buffer until we load these key bindings), and add a library line: (load-library "library-name") By default, emacs loads libraries from its shared site-lisp directory. If you saved this file somewhere else, include the path to the library as well. You can also customize emacs' colors. Again, it's good to put these in a seperate file, so open up /usr/share/emacs/site-lisp/primary-faces.el Let's just do some easy stuff. You should be able to catch on to these settings, so I won't bother explaining all of them. (set-background-color "black") (make-face 'default) (set-face-background 'default "black") (set-face-foreground 'default "gray90") (copy-face 'default 'bold) (copy-face 'default 'italic) (copy-face 'default 'bold-italic) (copy-face 'bold 'zmacs-region) (copy-face 'bold 'isearch) (copy-face 'bold 'highlight) (copy-face 'bold 'primary-selection) (copy-face 'bold 'secondary-selection) (copy-face 'default 'left-margin) (copy-face 'default 'right-margin) (set-face-background 'zmacs-region "steelblue" ) (set-face-foreground 'zmacs-region "grey90" ) (set-face-background 'isearch "lightblue" ) (set-face-foreground 'isearch "black" ) (set-face-background 'modeline "deepskyblue4") (set-face-foreground 'modeline "linen" ) (set-face-background 'highlight "lightblue" ) (set-face-foreground 'highlight "black" ) (set-face-background 'primary-selection "steelblue3" ) (set-face-background 'secondary-selection "steelblue4" ) (set-face-foreground 'secondary-selection "grey90" ) (provide 'primary-faces) The one thing you may be curious about here is 'copy-face'. copy-face looks like this: (copy-face 'face-from 'face-to) It gives the 'face-to' face the attributes of the 'face-from' face, and nothing more. That's pretty much how my primary-faces.el looks. Now we need to load the primary faces in our .emacs. This is accomplished by using a require require line (note: this is note a library because we use 'provide' in our file): (require 'primary-faces) There's a lot more customization available in emacs; this is just the tip of the iceberg. For other commands, you can type ^H-I and scroll to the 'Elisp' section. Be sure to check out some of the other help topics available, too. If you have any questions about this tutorial, feel free to send me an email (<nomafo@bellsouth.net>), or hop on irc.blessed.net (EFNet) and join #redhat. Enjoy! --Noel
  11. grep420

    grep420

    My name is shaun. I go by grep420 on efnet. You can usually find me in #redhat. I am a solaris/linux systems administrator for earthlink. I am part of the field systems admin team, this means I get to do a good bit of travel and I also help maintain the dallas development data center. We currently have a little over 500 systems for development and testing of new software for customers both internal and external. I am also the lead sysadmin for the mail disaster recovery project, I maintain a production mail farm capable of handling approximately 5 million mailboxes. We are primarily a solaris shop, but we have a growing redhat farm as well. I also play bass guitar and enjoy snowboarding and riding my motorcycle (zx600r ninja). Check out my website http://grep420.net for more info and a pic of myself.
  12. I like the one in the center with the white bg behind the penguin.
×
×
  • Create New...