LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-05-2006, 10:12 AM   #1
cwa107
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 5.10
Posts: 10

Rep: Reputation: 0
A few nagging issues - need help with Ubuntu 5.10


Hello all,

I'm an absolute newbie to Linux, but not to other operating systems. I work as a network administrator of a large Microsoft network and was also an Amiga user years ago - so UNIX-like commands don't scare me.

Anyway, I have sampled Linux distributions on and off over the years, but never had a compelling reason to make the jump until recently. Since so many companies are making the move over to Linux, it's absolutely necessary for someone in my field to have a good working knowledge of it and other *NIX systems.

I settled on Ubuntu for use at home primarily because I've heard so many good things about it and the fact that it runs beautifully on every system I've installed it on (currently using it on a Dell Optiplex GX270). I also have a spouse who needs something extremely easy to use, difficult to break, and is Windows-like and Ubuntu seems to fit the bill.

So far, I've learned quite a bit from a number of tutorials on the Internet and also from reading through the threads on this forum, but I do have a few nagging questions that I hope you'll entertain.

1. How do I cd to a directory that has spaces in the folder name? For example, if I'm in my home folder and I have a subfolder created called:

example folder name

Obviously, in Windows, I would just do a:

cd "example folder name"

...and I'm good to go. But I haven't figured this out in the Ubuntu shell (BASH).

2. How do I execute a script in the shell? I've tried just typing in the name of the script and hitting enter (as I would in Windows), but this obviously doesn't work. I've tried the 'exec' command, but it returns an error of 'bash: exec: setupwfc: not found' where 'setupwfc' is the name of the script.

3. Can I shutdown the Gnome GUI in Ubuntu and just work from a terminal screen? It looks like they've tried very hard to keep you in the GUI for some reason.

4. Is it possible to browse a Microsoft file server easily? In the MS world, I'd just hit 'Start -> Run', type in the path in the format:

\\%computername%\%sharename%

...and if it was correct and I had appropriate permissions, that directory would pop right up. But I don't really see where I can do something like that (at least not in Ubuntu).

5. Finally, I'm wondering if any of you experienced Linux users have any recommendations as far as books (online or in print) for n00bs like me, that have a lot of Windows experience working against them

I purchased "Linux for NT/2000 Administrators: The Secret Decoder Ring" several years ago, but that book is pretty dated and mostly geared toward the older version of Mandrake that accompanies it on the included CD-ROM.

TIA for any insight you might be able to provide.
 
Old 06-05-2006, 10:32 AM   #2
jeelliso
Member
 
Registered: Oct 2005
Location: Knoxville, Tn (USA)
Distribution: OpenSUSE, Ubuntu
Posts: 250

Rep: Reputation: 30
Quote:
How do I cd to a directory that has spaces in the folder name?
If, for example, your directory is "My Documents" you would type
Code:
cd My\ Documents
Quote:
How do I execute a script in the shell?
You probably need to specify the full path to the script you want to execute. For example, if your present working directory (the directory you are currently in) is /usr/local/bin and you want to execute /usr/bin/local/links you might need to specify the entire path. When you execute a command, the shell looks in your path, which is just a list of directories it is supposed to look in to find commands. If you are in a directory that is not in your path and your pwd (present working directory) is not in your path, then the command won't execute. You can also run ./links where the . is expanded to your pwd by the shell prior to its execution.

Quote:
Can I shutdown the Gnome GUI in Ubuntu and just work from a terminal screen?
You can kill the X server (Ctrl + Alt + Backspace), but newer versions of the X server will automatically start back if you've logged in through a login manager. Linux as a bunch of different screens running simultaneously. By default, the X server runs on F7 or F8. If you press "Ctrl + Alt + F1" or F2, ..., F6, it will temporarily exit the X server and take you to a command line. This doesn't kill your X server so you can go back to it later and pick up where you left off.

I'm not sure about the other two, so hopefully someone with more experience in this area will also help out.

Good Luck,
~Justin
 
Old 06-05-2006, 10:38 AM   #3
ctkroeker
Senior Member
 
Registered: May 2005
Location: Paraguay
Posts: 1,565
Blog Entries: 1

Rep: Reputation: 50
Quote:
1. How do I cd to a directory that has spaces in the folder name?
cd /home/"My Documents" or cd /home/'My Documents'
Quote:
2. How do I execute a script in the shell?
type sh /home/username/shell.sh
Quote:
3. Can I shutdown the Gnome GUI in Ubuntu and just work from a terminal screen?
Yeah, you can just hit Ctrl+Alt+F2 (Ctrl+Alt+F7 is Gnome)
Quote:
4. Is it possible to browse a Microsoft file server easily?
Yeah, no problem. Check out http://samba.org for more info.
Quote:
5. Finally, I'm wondering if any of you experienced Linux users have any recommendations as far as books (online or in print) for n00bs like me, that have a lot of Windows experience working against them
http://www.desktoplinux.com/articles/AT7798707143.html
http://en.wikipedia.org/wiki/Compari..._distributions
http://easylinuxguide.com/
http://users.netwit.net.au/~pursang/lofat.html
http://linux.org.mt/article/terminal
http://www.tldp.org/HOWTO/HOWTO-INDEX/howtos.html
http://www.enterprisenetworkingplane...le.php/1570651
http://www-106.ibm.com/developerworks/linux/newto/
http://www.linux.org/lessons/index.html
http://www.psychocats.net/essays/linuxguide.php
http://www.tldp.org/
http://tille.xalasys.com/training/tldp/index.html
http://www.linuxhq.com/guides/LUG/node2.html
http://www.icon.co.za/~psheer/book/index.html.gz
http://www.tldp.org/LDP/intro-linux/...tro-linux.html
 
Old 06-05-2006, 10:55 AM   #4
cwa107
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 5.10
Posts: 10

Original Poster
Rep: Reputation: 0
Wow. Looks like I came to the right place. Thanks for the quick responses - to both of you, much appreciated.
 
Old 06-05-2006, 11:05 AM   #5
chief_officer
Member
 
Registered: Mar 2006
Location: Istanbul, TR
Distribution: Red Hat, CentOS, Ubuntu
Posts: 180

Rep: Reputation: 30
I don't know all the answers to your questions, but I'll try to do my best

Quote:
2. How do I execute a script in the shell?
Following is assuming that your shell is Bourne Again Shell [bash].

Suppose you coded your script and saved it to a file my_script. To execute it, you must first make it executable with chmod:

Code:
chmod +x my_script
then in the terminal type ./my_script and it will be executed.

Open a text file and save it as monitor_off. Copy and paste the following from the code tags:

Code:
#!/bin/bash
xset dpms force off
Save changes. Now open a terminal, navigate to the directory where you saved the file and type
Code:
chmod +x monitor_off
. Then, without changing your present working directory, type
Code:
./monitor_off
. Your monitor will be shut down [move the mouse or press a key to have it back ]

Quote:
3. Can I shutdown the Gnome GUI in Ubuntu and just work from a terminal screen?
Yes you can. Open up a terminal and change to root. In the terminal window type

Code:
init 3
This will bring you to the 3rd runlevel: multiuser, network connected without graphical interface [tip: install links to browse the web and pine to read your e-mails from the 3rd runlevel. It looks really cool.]

Quote:
4. Is it possible to browse a Microsoft file server easily? In the MS world, I'd just hit 'Start -> Run', type in the path in the format: \\%computername%\%sharename%
. I am a n00b in networking, but the first thing I would try would be to open up Firefox [or Nautilus as your choice] and type the server address (or server IP address) and share name in the address field, such as:

Code:
111.222.333.444/sharename
There is no \ in Linux world

Quote:
5. Finally, I'm wondering if any of you experienced Linux users have any recommendations as far as books (online or in print) for n00bs like me, that have a lot of Windows experience working against them.
1. What I saw in the past two years of my experience, Linux books are mainly distribution-oriented [I'm not trying to start a war or spreading FUD. Just stating my opinion]. Even if it doesn't mention it in the cover, you will see it inside. I don't recommend a book for your desktop environment, be it GNOME or KDE. Since you have Windoze experience, menu, icons etc doesn't need a book to learn.

To master the command-line interface, I bought Unix Unleashed by Robin Burk, Salim M. Douba. [The book tells about varieties from HP-UX to AIX to Linux, therefore you will be on the safe side]. It will both teach you the commands, and will be your reference book.

2. How Linux Works and The Linux Problem Solver by Brian Ward are excellent books to learn the basics of Linux. I have tremendously benefited from the former one. The latter one is especially useful when you want to know why you are doing a particular thing to solve a problem. In addition, it [the latter one] also helps you to solve some very *annoying* problems.

3. Become a subscriber to Tux Magazine, which I believe is the ideal for the people who are new to Linux. You can download all editions free, plus they send you each issue in the first days of the month. Moreover it's free 8))).

4. I have a couple of books in pdf format that can assist you. I can mention some: Introduction to Linux, A Hands on Guide by Machtelt Garrels. The Linux System Administrator's Guide by Lars Wirzenius. Vi Tutorial and GNU Emacs manual readily available in my work computer. [I can send them to you if you can pm me your e-mail address or you can Google yourself].

See if these help and I will go home and check your first question.
 
Old 06-05-2006, 08:32 PM   #6
cwa107
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 5.10
Posts: 10

Original Poster
Rep: Reputation: 0
Looks like I've gotten the answers to all of my questions. Thanks all, I appreciate your time and expertise. If you don't mind, I'll revive this thread if anything else pops up that I can't figure out on my own.

I just bought a new (used) laptop specifically for Linux (a Dell Latitude C400). I've got that up and running on Ubuntu 6.05 and am presently trying to get the wireless NIC functional (doesn't look like it supports WPA encryption, so I may need a new NIC). Either way, I haven't had this much fun since back in the Amiga days when half the fun was getting the machine to work the way you wanted it to

Thanks again.
 
Old 06-06-2006, 02:45 AM   #7
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
Quote:
doesn't look like it supports WPA encryption
you possibly need something called wpasupplicant
otherwise if your are happy with wep it will be simpler
 
Old 06-08-2006, 01:59 PM   #8
cwa107
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 5.10
Posts: 10

Original Poster
Rep: Reputation: 0
WPA and Ubuntu

Quote:
Originally Posted by Emmanuel_uk
you possibly need something called wpasupplicant
otherwise if your are happy with wep it will be simpler
You're right, WPAsupplicant and NetworkManager are two of the components needed for WPA support. I managed to find this thread:

http://www.ubuntuforums.org/showthre...ght=WPA+dapper

Which details exactly how to get it running on Ubuntu 6.06 (Dapper Drake). And in fact, I'm writing this update with my C400 via a wi-fi, WPA-encrypted connection. It works BEAUTIFULLY.

My only problem at the moment is trying to get the Citrix ICA 9.0 client for Linux working properly. I have it installed and the webclient component works, but I can't get the "program neighborhood" (connection manager) to open. There's no error message or anything, it just doesn't open.

Anyway, there's a number of threads here and there regarding this problem, so it's only a matter of time until I get it. I have to say, I've learned a lot about Linux in the short time I've been using it - and it continues to be a challenge, but I'm enjoying every minute of it.

For those of you reading this thread that haven't tried Ubuntu or haven't tried it recently, I strongly suggest you take a look - it's awesome - particularly for newbies.

Thanks again for all your help.
 
Old 06-08-2006, 02:05 PM   #9
cwa107
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 5.10
Posts: 10

Original Poster
Rep: Reputation: 0
Oh, one more thing - regarding question 4 above:

Quote:

4. Is it possible to browse a Microsoft file server easily?
In Ubuntu, this is done by using the "Places" menu and then choosing "Connect to Server". I believe Samba, or components of Samba, are already integrated. As a result, you get a dialog box that asks you which service type to use (default is FTP, but you can choose "Windows Share") and then type in your credentials and click Connect. This will "map" the share in a very similiar fashion to mapping the drive in Windows - it works very well both with my Windows XP workstations at home and at work and also with Windows servers (both 2000 and 2003) at my company.
 
Old 06-13-2006, 10:28 AM   #10
cwa107
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 5.10
Posts: 10

Original Poster
Rep: Reputation: 0
Question regarding apt-get and proxy

Is it possible to use apt-get in an environment where an application needs to talk to a proxy server in order to access the Internet? If so, how would I configure the proxy settings for apt-get?

TIA for any info you might be able to provide.
 
Old 06-13-2006, 10:54 AM   #11
Marc
LQ Newbie
 
Registered: Dec 2001
Distribution: SuSE 10.1
Posts: 19

Rep: Reputation: 0
Great list of Linux tutorial docs... thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nagging problem --sharing USB drive with Windows for read/write 1kyle SUSE / openSUSE 2 09-25-2005 04:35 AM
GCC 2.95 nagging installation problem cutesneakers Linux - Software 2 04-13-2005 08:40 AM
sonypi is nagging me in KDE ta0kira Slackware 1 09-27-2004 03:02 AM
Nagging Questions!!!!! sorceran Slackware 2 08-26-2004 10:52 PM
What is your most nagging issue? carboncopy Slackware 15 07-12-2004 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration