Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-10-2008, 08:38 AM   #1
LQ Newbie
Registered: Jul 2008
Location: Indiana, US
Distribution: Ubuntu, Debian
Posts: 12

Rep: Reputation: 0
Linux command/whatever that is equal to %username% in windows

Is there code in Linux that is equal to %username% that is on windows?

I am working at my school this summer as a technology assistant. The Director of Technology is not much of a Linux person and neither am I. I have just started getting in to Linux and I like it so far and pretty much the same goes for the Director of Technology. The servers here my school are all Windows Server 2003. We have some older laptops that currently have XP on them but they are pretty much junk. The assistant principal wants kids to be able to use them when they are being disciplined or I guess any time they need to. The problem is they are old and only have 256MB of RAM, so we are thinking about putting Linux on them, probably Open SUSE 11. My thought is that these laptops are good enough to have Linux put on them with a nice size SWAP partition on the HD. If anybody has any other useful thoughts or whatever I would appreciate it.

EDIT: I am also looking at this article right now to try to get our laptops do stuff with our domain, such as access home drives. This article mentions the $HOME thing but that is not the way we have our FP server set up. We are not planning on joining these laptops to the domain once we get an OS on them if it is Linux. Our domain is an Active Directory domain.


Last edited by C_MAN; 07-10-2008 at 08:45 AM. Reason: Added more details.
Old 07-10-2008, 08:50 AM   #2
LQ Newbie
Registered: Mar 2007
Posts: 20

Rep: Reputation: 0

For the first part of your question, the following commands will provide you with the current user name:

echo $USER

You can also use $LOGNAME and $USER in scripts if required.

For the second part of your question, I recommend you experiment with different distributions.


Last edited by opc; 07-10-2008 at 09:08 AM. Reason: forgot something
Old 07-10-2008, 09:16 AM   #3
LQ Newbie
Registered: Mar 2007
Posts: 20

Rep: Reputation: 0

For sharing files between Windows and Linux PCs, you are on the right track with Samba. Each major distribution has a Wiki for installing and configuring Samba. A quick Internet search brought up this one for Suse:

Old 07-10-2008, 09:16 AM   #4
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Opensuse is probably as good a choice as any. Another one to check might be Edubuntu or skolelinux, both of which are Linux distribution specially made for educational establishments.

It is normally good to have an online connection with the laptops, which would mean you need to be able to connect them to the school lan. If you want to access windows shares over the network, the answer is samba (should be available on all distributions).

Far as I know Linux can connect to active directory. Not sure how though.
Old 07-10-2008, 05:20 PM   #5
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
If you like linux then maybe it worth a look at taking out those windows servers and getting in the spin with Karoshi
Old 07-11-2008, 01:59 AM   #6
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
I think you'll find this worth looking into:

"LTSP workstations can run applications from Linux and Windows servers."


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
Howto execute a command in C if argv[1] is equal to -A daYz Programming 4 02-16-2007 04:06 AM
LXer: Study: Linux and Windows Costs Equal LXer Syndicated Linux News 0 09-26-2006 02:03 PM
Configure the unix/linux server to use windows username and password sunhui Linux - Software 4 07-06-2006 10:36 AM
Common username/password on Linux and Windows Yalla-One Linux - Networking 1 03-16-2005 06:50 AM
What is linux equal to DirectInput? HelloKitty Linux - Software 1 08-07-2003 07:08 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:23 PM.

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