Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,207
» Latest member: Meup
» Forum threads: 4,029
» Forum posts: 16,404

Full Statistics

Online Users
There are currently 286 online users.
» 0 Member(s) | 283 Guest(s)
Applebot, Bing, Google

Latest Threads
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 63
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 73,713
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 30,357
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 1,643
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 5,050
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 40,627
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 103,305
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 44,076
Using git + python
Forum: How Do I?
Last Post: Clueless puppy
2020-08-21, 04:37 PM
» Replies: 0
» Views: 34,513
what does your nick mean ...
Forum: Hello
Last Post: volt
2020-08-06, 03:25 PM
» Replies: 28
» Views: 40,134

 
  Meun based shell
Posted by: magikman - 2008-07-17, 05:09 PM - Forum: How Do I? - Replies (3)


Howdy,

 

 

 

I am writing a shell script for users with no knowledge of UNIX. The script will be used as their shell and will give them options on things to do/execute. I need to allow them to telnet, ssh, etc. to devices. The following is what i have so far:

 



Code:
#!/bin/sh
#set -x
user=`whoami`;
CLEAR=`which clear`;
TELNET=`which telnet`;
MENU=/usr/local/query/menu;
SSH=`which ssh`;

_Menu ()
{
    $CLEAR;
    echo " "
    echo "        ============================================================"
    echo "                                 NS2 MENU                           "
    echo "        ============================================================"
    echo "           1. Telnet to a Device          12. CMTS Intfc Modem Count"
    echo "           2. SSH to a Device             13. Ping/Traceroute Device"
    echo "           3. Clear SSH Known Hosts       14.  "
    echo "           4. Access Core1 GSR            15.  "
    echo "           5. Access Core2 GSR            16.  "
    echo "           6. Access Core3 VXR            17.  "
    echo "           7.                             18.  "
    echo "           8.                             19.  "
    echo "           9.                             20.  "
    echo "          10.                             21.  "
    echo "          11. Access Server             22.  "
    echo "        ============================================================"
    echo "                    Select a Menu Number Option      "or"           "
    echo "                 Type  H# for Help on a Menu Option  "or"           "
    echo "                        --Q  to Quit Menu--                         "
    echo "        ============================================================"
    echo -n "Enter Menu Option ======> "
    read option;

    case "$option" in

            1)
                    _telnet;
           ;;

            2)
                    _ssh;
           ;;

            3)
                    _clearssh;
           ;;

            4)
                    _core1;
           ;;

            5)
                    _core2;
           ;;

            6)
                    _core3;
           ;;

            11)
                    _aov;
           ;;

            12)
                    _mdmcnt;
           ;;

            13)
                    _pingtrace;
           ;;

            *)
                    $CLEAR;
                    echo -e "You chose an invalid response. Please try again.\n Press any key to continue.";
                    read junk;
                    $MENU
           ;;

            esac
}

_telnet ()
{
    $CLEAR;
    echo -n "Enter IP address of device and press Return: ";
    read host;
    $TELNET $host;
}
_ssh ()
{
    $CLEAR;
    echo -n "Enter IP address of deivce and press return: ";
    read host;
    $SSH $host
}

_clearssh ()
{
    $CLEAR;
    echo -e "Know hosts has been cleared.\n Press any key to continue.";
    read junk;
    $MENU;
}

_core1 ()
{
    $CLEAR
    $TELNET <someIP>

}
_core2 ()
{
    $CLEAR
    $TELNET <someIP>
}
_core3 ()
{
    $CLEAR
    $TELNET <someIP>
}
_aov ()
{
    $CLEAR
    $SSH 216.54.59.140
}
_Menu




 

The problem i am having is that after remoting into another box, i lose the shell script as the shell when they come back. If anyone has any suggestions, i am all ears (znx).

Print this item

  World's fastest supercomputer runs Fedora Linux
Posted by: hybrid - 2008-07-16, 05:27 PM - Forum: Linux News - Replies (1)


Quote:The #1 supercomputer in the world, the IBM Roadrunner, produced at a cost of nearly $100 million dollars, runs Fedora. IBM has been working on and contributing to Fedora, using it as a prototype for the new cell architecture that leads to this supercomputer.
 

Just proves that Linux is good for computers on every scale - from ultra-embedded systems all the way up to supercomputers.

 

Story Source

Print this item

  getting to ubuntu
Posted by: kambing - 2008-07-15, 06:49 PM - Forum: How Do I? - Replies (1)


hi,

now im using compaq presario v3000 with os vista basic with service pack 1, i wanna set to dual boot with ubuntu, however, i have tried running the live cd of ubuntu 6.04 and my wireless network and sound doesnt work. i tried all the guide from the forums and the internet, but im stuck at cabextract step. i have download the driver from the internet but the terminal cant find the file. it keeps saying that the file not found while the file is really there. please help me by giving any link or step for super noob how to handle that. thank you

Print this item

  Printable Guide for Installing Software
Posted by: hybrid - 2008-07-15, 05:11 PM - Forum: Ubuntu - No Replies


OK, so this is a little bit of mindless self-promotion, but... :P

 

I've put together a printable two-sided guide to installing software under Ubuntu. It's aimed at the absolute beginner to Ubuntu, perhaps a switcher from Windows. It details how to download and install software from the Add/Remove Applications method as well as downloading .deb packages manually and installing them that way.

 

You can take a look and download the guide (PDF, OpenDocument, HTML) from http://fosswire.com/2008/07/15/printable-g...ware-on-ubuntu/

 

Oh, and it's Creative Commons licensed too.

Print this item

  Greetings from the Southern U.S.
Posted by: m1n70r - 2008-07-15, 09:38 AM - Forum: Hello - Replies (1)


I'm 16. I've dropped out of school, I'm going to the rest of my high school online via Penn Foster. Ever since I was a little kid I have been a computer hog, and have engulfed knowledge whenever I could find it. I've played around with pretty much all the versions of BSD, to some extent. I guess it can be said that I know the basics of Unix. I'm working right now, saving up money for a new computer, and some modifications to my current boxes. Right now I'm working on putting a phenom quad core setup together for school. (disguised in a emachines case). I play America's Army a good bit. If anybody knows what that is, my sn on there is .Gucci.-0m3n-. I always get into complicated things first, so I'm going to start out with Gentoo. I enjoy challenges. I have played with linux a good bit to, but I don't understand it as well as I understand FreeBsd, although overall I am pretty much a complete newbie. I don't know what else to put.. Just hey. I'm 16, and from Mississippi. No car, but nice computers, lots of time will be on my hands. :P

-m1n70r-

Print this item

  Concept art for Fedora 10
Posted by: anyweb - 2008-07-14, 05:57 AM - Forum: Fedora 10 - No Replies


For many, their first experience with Fedora leaves them in awe of the incredible artwork. This is an important part of Fedora's reputation, so if you're a fan of Fedora art, you should definitely check out what the art team has come up with.

 

via > http://osnews.com/story/20039/Concept_Art_for_Fedora_10

 

from > http://www.linuxloop.com/news/2008/07/11/e...ora-10-artwork/

Print this item

  gphoto2 error "PTP store full"
Posted by: TeeHee - 2008-07-13, 12:27 AM - Forum: How Do I? - Replies (6)


Hi,

does anyone know what the gphoto2 error "PTP store full" means. I get this after I've taken a few pictures (4 or 5) with a Nikon D50 from gphoto2's capture-image command. If I turn off the camera and then turn it back on, everything works fine for a few more pictures. However, I need to take like 30 pictures consecutively, so this is kind of annoying!

Thanks!!!

Print this item

  linux mint4
Posted by: MicroLzyD - 2008-07-12, 02:28 AM - Forum: Just Starting Linux - Replies (1)


[EDIT] - ok, so i installed linux mint.5(not 4, sorry!)

 

i can't get the wireless to work......

when i try to get the "Broadcom B43 wireless driver" enabled, it tells me:

"While this driver itself is free software, it relies on proprietary firmware which cannot be legally shipped with the operating system. Your hardware will not work without the firmware."

 

i don't know what that means........ help??

Print this item

  possible user in the future...
Posted by: MicroLzyD - 2008-07-10, 07:45 PM - Forum: Just Starting Linux - Replies (3)


hi, i'm running on a vista windows right now

i recently got interested in linux because my friend intro-ed me into it

anyways, if i download/install linux now, will i be able to keep Everything that i have right now on vista And run back-and-forth between linux and vista?

Print this item

  Application Nightmare
Posted by: ShaunC - 2008-07-10, 05:17 PM - Forum: Debian - Replies (7)


I am currently using Xebian, an Xbox distro that supposedly has full Debian support. I'm new to Linux but have followed the guides well. (Or so I hope.) I've tried to install new apps, but it has resulted in disaster. App A needs dependency B, dependency B needs dependencies C, D, E, F, G, H, i, J, etc. I was told I needed to update my sources file, and I did. I added some repositories I found on the web like Skype's - yet when I tried "apt-get install skype" (or Opera as I had the repository for that in there) I was again reminded of missing dependencies. What can I do? What have I done wrong? Help.

 

p.s. And yes, I did use apt-get update afterwards. I'd take a screenshot but don't know how.

Print this item