|
|||||||
| Linux Operating Systems Talk about all Linux distributions and software here! |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
I = Greatest Dood
Join Date: Nov 2003
Location: Nebraska
Posts: 5,949
Rep Power: 71 ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Now taking a Linix/unix class
Holy cow this stuff is great, I can see why you guys love linix/unix. This stuff is so itneresting, give me 2 more months and hopefully i can help troubleshoot with the best of you, we are into vi, setting up users and all that good stuff right now. command line only of course. this stuff is insanely fun and interesting. My friend has met linus torvalds (if thats how you spell it) before and kinda got me going on the subject and so far i love it.
__________________
Rock On \m/ Thank you Mousey for the Sig! --------------- ![]() Intel Core2Duo E6660 (3.4GHZ) ~ Tuniq Tower 120 ~ Enermax Galaxy 1000W ~ Corsair Dominator @ 1090MHZ 5-5-5-15 (OCZ XTC Modded Cooler)~ EVGA 8800GTX W/ HR-03 Plus 120MM ~ Asus DVD-RW LiteScribe ~ LG DVD-RW ~ Corsair Voyager 2GB ReadyBoost Drive ~ Vantec Nexus Fan Controller ~ ThermalTake Armor 25CM fan ~ Personal Finance Blog: Dent Your Debt |
|
|
|
|
|
#2 |
|
Styleless Wonder
Join Date: Jun 2002
Location: Ottawa, Ontario
Posts: 6,034
Rep Power: 0 ![]() |
Yeah, Linux is fun for awhile... just wait til you get to scripting
It'll either make you or break you. Process Management isn't too thrilling either.. I also found that the more commands I learned.. the more I appreciated DOS and its naming scheme. The man pages will become your best friend!
__________________
|
|
|
|
|
|
#3 |
|
BSD SMASH!
Join Date: May 2002
Location: A rabbit hole. . .
Posts: 1,170
Rep Power: 0 ![]() |
s/fun/more fun than a barrel of monkeys/g
__________________
quad (FreeBSD/amd64 8-CURRENT): Intel Q6600 - Asus P5E-VM HDMI - 2x2 GB Kingston PC6400 DDR2 Ram - Seagate 320GB 7200RPM HD - 2xSeagate 1TB 7200RPM HD in RAID 1 via ZFS - Lite-On 20x DVD Multi Recorder - Coolermaster Centurion 5 router (FreeBSD/amd64 8-CURRENT): Intel E4500 - Intel D945GCNL - 2 GB PC6400 Mushkin Ram - Lite-On 48x24x48x16 - Seagate 320GB 7200RPM HD - Silverstone SST-SG02-F wanderer (FreeBSD/i386 7-CURRENT): Lenovo Thinkpad T61p mini (OS X 10.5): Intel Core 2 Duo @ 1.8Ghz, 4 GB Mushkin PC5400 Ram - Headroom MicroDAC Portable sound: Rockboxed iPod Video -> Westone UM2's Not-So-Portable Sound: Headroon MicroDAC -> Singlepower PPX3-SLAM -> Grado RS-1's or Beyerdynamic DT-880's Very-Not-Portable-Sound: Squeezebox v3 -> Denon AVR-1507 -> B&W 683's & Sunfire HRS-10 |
|
|
|
|
|
#4 |
|
A Legend in Underwear
Join Date: May 2002
Location: Unknown
Posts: 5,255
Rep Power: 0 ![]() |
echo sdnammoc sselesu dna lufesu ynam nrael lliw uoy yllufepoH | rev
__________________
Gentoo Linux - Developer (baselayout) Read my blog "I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours." Stephen Roberts |
|
|
|
|
|
#5 | |
|
Styleless Wonder
Join Date: Jun 2002
Location: Ottawa, Ontario
Posts: 6,034
Rep Power: 0 ![]() |
Quote:
__________________
|
|
|
|
|
|
|
|
|
I = Greatest Dood
Join Date: Nov 2003
Location: Nebraska
Posts: 5,949
Rep Power: 71 ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
well would any1 be interested in uhhh like partial tutor me, but not really tutor me just help me when i have questions and need stuff explained and willing to teach me a few new things?
__________________
Rock On \m/ Thank you Mousey for the Sig! --------------- ![]() Intel Core2Duo E6660 (3.4GHZ) ~ Tuniq Tower 120 ~ Enermax Galaxy 1000W ~ Corsair Dominator @ 1090MHZ 5-5-5-15 (OCZ XTC Modded Cooler)~ EVGA 8800GTX W/ HR-03 Plus 120MM ~ Asus DVD-RW LiteScribe ~ LG DVD-RW ~ Corsair Voyager 2GB ReadyBoost Drive ~ Vantec Nexus Fan Controller ~ ThermalTake Armor 25CM fan ~ Personal Finance Blog: Dent Your Debt |
|
|
|
|
|
#7 |
|
Styleless Wonder
Join Date: Jun 2002
Location: Ottawa, Ontario
Posts: 6,034
Rep Power: 0 ![]() |
What would you like to know?
I just spent 2.5 hours of Linux 3 Basically networking with Linux... we're doing Apache next week. FUN! ![]() "service ipchains stop" solves a lot of problems for me today
__________________
|
|
|
|
|
|
|
|
I = Greatest Dood
Join Date: Nov 2003
Location: Nebraska
Posts: 5,949
Rep Power: 71 ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
apache is great man so much fun
I am working on shell scripting, the basics, up to making a 4 option menu to do whatever i want to, (if then statements get an A) if you could help me itd be awesome, got msn or anything ?
__________________
Rock On \m/ Thank you Mousey for the Sig! --------------- ![]() Intel Core2Duo E6660 (3.4GHZ) ~ Tuniq Tower 120 ~ Enermax Galaxy 1000W ~ Corsair Dominator @ 1090MHZ 5-5-5-15 (OCZ XTC Modded Cooler)~ EVGA 8800GTX W/ HR-03 Plus 120MM ~ Asus DVD-RW LiteScribe ~ LG DVD-RW ~ Corsair Voyager 2GB ReadyBoost Drive ~ Vantec Nexus Fan Controller ~ ThermalTake Armor 25CM fan ~ Personal Finance Blog: Dent Your Debt |
|
|
|
|
|
#9 |
|
Styleless Wonder
Join Date: Jun 2002
Location: Ottawa, Ontario
Posts: 6,034
Rep Power: 0 ![]() |
You played with Apache?
Never made a 4 option menu before.. in fact I never made a menu.
__________________
|
|
|
|
|
|
|
|
I = Greatest Dood
Join Date: Nov 2003
Location: Nebraska
Posts: 5,949
Rep Power: 71 ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
i had my own apache server running at my house for awhile (untill my mobo went poop)
i know a little but not much,... do you understand if then statements?
__________________
Rock On \m/ Thank you Mousey for the Sig! --------------- ![]() Intel Core2Duo E6660 (3.4GHZ) ~ Tuniq Tower 120 ~ Enermax Galaxy 1000W ~ Corsair Dominator @ 1090MHZ 5-5-5-15 (OCZ XTC Modded Cooler)~ EVGA 8800GTX W/ HR-03 Plus 120MM ~ Asus DVD-RW LiteScribe ~ LG DVD-RW ~ Corsair Voyager 2GB ReadyBoost Drive ~ Vantec Nexus Fan Controller ~ ThermalTake Armor 25CM fan ~ Personal Finance Blog: Dent Your Debt |
|
|
|
|
|
#11 |
|
Styleless Wonder
Join Date: Jun 2002
Location: Ottawa, Ontario
Posts: 6,034
Rep Power: 0 ![]() |
I don't know them off hand, but use Google dude! Google helped me a lot along with my classmates.
Also check the man pages. Google is your best friend, get to know him and know how to exploit him for your benefits ![]() "man if" I believe. Here are some nice resources: Linux Shell Scripting Tutorial Linux Shell Programming
__________________
|
|
|
|
|
|
|
|
I = Greatest Dood
Join Date: Nov 2003
Location: Nebraska
Posts: 5,949
Rep Power: 71 ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
thank you very much
![]() i do use google, but i never get the good sites hah, and after an hour of looking i cant sit any longer
__________________
Rock On \m/ Thank you Mousey for the Sig! --------------- ![]() Intel Core2Duo E6660 (3.4GHZ) ~ Tuniq Tower 120 ~ Enermax Galaxy 1000W ~ Corsair Dominator @ 1090MHZ 5-5-5-15 (OCZ XTC Modded Cooler)~ EVGA 8800GTX W/ HR-03 Plus 120MM ~ Asus DVD-RW LiteScribe ~ LG DVD-RW ~ Corsair Voyager 2GB ReadyBoost Drive ~ Vantec Nexus Fan Controller ~ ThermalTake Armor 25CM fan ~ Personal Finance Blog: Dent Your Debt |
|
|
|
|
|
#13 |
|
Styleless Wonder
Join Date: Jun 2002
Location: Ottawa, Ontario
Posts: 6,034
Rep Power: 0 ![]() |
It's all in the proper keywords my good man.
![]() It took me 4-6 minutes to find those sites I was looking for. I typed "Linux shell programming" and that gave me the best results.
__________________
|
|
|
|
|
|
|
|
I = Greatest Dood
Join Date: Nov 2003
Location: Nebraska
Posts: 5,949
Rep Power: 71 ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
i havent' look for shell programming guides yet, i was mainly looking for a tutor friend not some tech manual that puts me to sleep. interaaction with these subjects make life easier
__________________
Rock On \m/ Thank you Mousey for the Sig! --------------- ![]() Intel Core2Duo E6660 (3.4GHZ) ~ Tuniq Tower 120 ~ Enermax Galaxy 1000W ~ Corsair Dominator @ 1090MHZ 5-5-5-15 (OCZ XTC Modded Cooler)~ EVGA 8800GTX W/ HR-03 Plus 120MM ~ Asus DVD-RW LiteScribe ~ LG DVD-RW ~ Corsair Voyager 2GB ReadyBoost Drive ~ Vantec Nexus Fan Controller ~ ThermalTake Armor 25CM fan ~ Personal Finance Blog: Dent Your Debt |
|
|
|
|
|
#15 |
|
Carpcarpcarpcarpcarp
Join Date: Jun 2003
Location: nauticus
Posts: 232
Rep Power: 0 ![]() |
I recommend reading Linux Programming for Dummies. Very easy to digest, hence the title.
Not saying you're an idiot, or anything! A 4 option menu? I'll write up a basic one: There are two simple methods: If-elif-else, and case(better for what you are doing) If-else: Code:
echo "Choose an option, 1-4."
read Option #User's keyboard input is stored in variable "Option" (this is a comment, and is ignored by bash)
if [ $Option -eq 1 ] #if the input in variable Option equals 1...
then
echo "You have entered ONE!"
elif [ $Option -eq 2 ] #be careful here! if you put an 'if' here you create a "nest," if statements within another
then
echo "You have entered TWO!"
elif [ $Option -eq 3 ]
then
echo "You have entered THREE!"
elif [ $Option -eq 4 ]
then
echo "You have entered FOUR!"
else #you could just skip it, as it isn't neccessary for the menu, but it's fun!
echo "What the hell is wrong with you? Is it too hard to enter a valid number?"
fi #so bash knows the if statement is over. If you forget this, all code below this will belong (and only execute if it is true) the first if statement (if [ $Option -eq 1 ]...), which will lead to debugging hell, if this wasn't intended)
Code:
echo "Choose an option, 1-4."
read Option
case $Option in #initialize the case statement
1) #if you entered one, do this
echo "You entered ONE!"
;; #so bash knows the first case is done.
2)
echo "You entered TWO!"
;;
3)
echo "You entered THREE!"
;;
4)
echo "You entered FOUR!"
;;
*) #like the statement "else"
echo "What the hell is wrong with you? Is it too hard to enter a valid number?"
esac #so bash knows the whole case statement is done. if you don't do this, it gets even more hellish than if you forget "fi" in an if statement!
Have fun! Oh yea, you are most likely scripting in BASH (Bourne Again Shell), so when I say BASH, you now what I mean. Also if you try Googling for tutorials, try "bash scripting" Last edited by nauticus; Oct 16, 2004 at 12:22 AM. |
|
|
|
|
|
|
|
I = Greatest Dood
Join Date: Nov 2003
Location: Nebraska
Posts: 5,949
Rep Power: 71 ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
i know what bash is
I have my basic 4 option menu written Everything works, including the embedded case statment Im also using kornshell AND!!! i just need to learn how to do if then or whatever linux/unix uses I understand my variables like echo "You have chosen option 4, now to create your file... echo "please enter filename:" read file EDIT: Heh this was a different thread from my help thread ![]() touch $file ls -al
__________________
Rock On \m/ Thank you Mousey for the Sig! --------------- ![]() Intel Core2Duo E6660 (3.4GHZ) ~ Tuniq Tower 120 ~ Enermax Galaxy 1000W ~ Corsair Dominator @ 1090MHZ 5-5-5-15 (OCZ XTC Modded Cooler)~ EVGA 8800GTX W/ HR-03 Plus 120MM ~ Asus DVD-RW LiteScribe ~ LG DVD-RW ~ Corsair Voyager 2GB ReadyBoost Drive ~ Vantec Nexus Fan Controller ~ ThermalTake Armor 25CM fan ~ Personal Finance Blog: Dent Your Debt |
|
|
|
![]() |
| Thread Tools | |
|
|