Linux.com

Community Blogs



Problem with LAN MOUNTS

It seems the only major difficulty that still exists for me in swapping from WIN to LINUX is the management of PERMISSIONS!!

 For me it is a convoluted hit and miss affair ... and is continually proving a thorn in my side.

 The latest nightmare is trying to get the correct permission allocated to simply mounted network shares!! Why is it so difficult???

My WorkStation runs latest pclos 2009.1 KDE ... it contects to shares from two other machines .. one an XP 'fileserver' that holds all dynamic data files and the other is a LAMP server running under pclos 2007 GNOME ... my local LAMP host.

The XP Fileserver exposes SAMBA shares to the network ... the LAMP Server exposed NFS shares to the network.

These XP and LAMP shares are mounted on my PCLOS workstation via the Control Centre >> Network Sharing >> Configure NFS / Windows Shares

Here is the fstab file:
########################
#Entry for /dev/hda5 :
UUID=b8ed29e5-ff38-483d-b639-102d2617b8de / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0

#Entry for /dev/hda7 :
UUID=98656360-c225-4f8b-a7b5-3cf7d96e856b /home ext3 defaults 1 2

#Entry for /dev/hdb2 :
UUID=BC5C0CB25C0C6A0A /media/Spare_NTFS ntfs-3g defaults,locale=en_US.UTF-8 0 0

#Entry for /dev/hda1 :
UUID=7EB016B7B01675BD /media/hda1 ntfs-3g defaults,locale=en_US.UTF-8 0 0

//pc-cme/Foyer /mnt/Foyer cifs user,credentials=/etc/samba/auth.pc-cme.administrator,sync,soft 0 0
//pc-cme/JohnStuff /mnt/JohnStuff cifs user,credentials=/etc/samba/auth.pc-cme.administrator 0 0
//pc-cme/MAXBin /mnt/MAXBin cifs user,credentials=/etc/samba/auth.pc-cme.administrator,sync,soft 0 0
//pc-cme/Music /mnt/Music cifs user,credentials=/etc/samba/auth.pc-cme.administrator,sync,soft 0 0
//pc-cme/Photos /mnt/Photos cifs user,credentials=/etc/samba/auth.pc-cme.administrator,sync,soft 0 0
//pc-cme/Storage /mnt/Storage cifs user,credentials=/etc/samba/auth.pc-cme.administrator,sync,soft 0 0

lnxlamp:/var/www /mnt/www nfs user,sync,rsize=8192,wsize=8192,soft 0 0

none /proc proc defaults 0 0

#Entry for /dev/hda6 :
UUID=5a9c8cd5-f653-49ee-942d-b919c5e9cd5b swap swap defaults 0 0
#######################

The the directories under "/mnt", of course are owned by ROOT, but have been given 777 permissions by root prior to mounting.

The problem is that everytime a file is written to any of the mounted shares from my workstation [logged on as a USER, not ROOT] i get the message ...


"Could not change permissions for <filename>"


... for each file that is copied/moved to the mounted share, whether it the SAMBA or NFS share.

I think i understand the reason why .... it is because the Mount Points on my PCLOS client are owned by Root ... and while these Moutn Points have been given 777 permissions, it does not permit the permissions of the files to be altered by a user other than root, following transfer to their respective servers [Why is it trying to 'change permissions' anyway????]

I thought i would fix it by moving the mount points on my WorkStation to within the "/home/myusername" directory, and ensured that the Mount Points were Owned by me and my group!!!

Sounds logical *keh?* ...

HOWEVER, following remounting of the shares to these 'USER owned' mount points, the system forces a change of ownership of my Mount Points to that of ROOT!! ... and i find i am back in the same position as when the Mount Points where under "/mnt"!!

And, annoyingly, the problem persists!!

Any clues GURUS ... *smile*???

Thx Rfah

 

Searchable group discussions?

I've added few how-to in group discussions. Now I am trying to search if those posts can be searched from Linux.com search option, I am amazed to see that none of the discussion contents are searchable.

I am wondering.. what is the point of adding group discussions when its not searchable?

 

NOOB's adventure in Linux From Scratch

 Hello again,

This morning I find myself eating a bit of crow, instead of following the link provided on the LFS prerequisites page now embedded into memory,  I typed in the address to the Linux User's Guide  http://www.linuxhq.com/guides/LUG/index.html  and went immediately to a General Disclaimer page... this is not the case when you follow the link in the LFS site.. they send you to http://www.linuxhq.com/guides/LUG/guides.html  missing the Disclaimer page all together.

  So, it seems that the errors I was complaining about are already in the process of being repaired. 

  I've sent an email to the webmaster of the site,  apologizing for my mistake and informing him of how sites are linking directly to the guide and his pop up windows being skipped over.

  Just goes to show how the community works quickly to fix mistakes .. Bravo!!

 

Linux on Netbooks

It is so annoying (but not unexpected) that Microsoft swooped in and fixed it so you can't find a netbook with Linux on it in any store, but this is the icing on the cake:

http://popey.com/Asus_The_Fair_Weather_Friend

I was in Costco a couple of weeks ago and I was looking over the netbooks to see if there was one with Linux installed (of course there wasn't).  The salesman came up and asked if I had any questions.  I said "yes, where can I get a one of these with a decent operating system instead of Windows".

I can say that I won't ever buy another machine with Windoze pre-installed. I did that once and I have regretted it ever since. I tried to get my money back for the unused copy of Windoze that came with it, but finally gave up. I am mad at myself for giving up too easily, I should have fought the battle just on principle.

It occurred to me that we should grab the "itsbetterwithlinux.com" URL and put up a rebuttal, but it looks like somebody already has it. I certainly hope it isn't a Redmond lackey cybersquatting.
 

NOOB's adventures in Linux From Scratch

Back again,

 I'm about 3/4 of the way thru the first prerequisite . Feeling the first inkling of understanding of what it takes to put a command line together. Not just a  single command. 

   I personally don't think that the  http://www.linuxhq.com/guides/LUG/guide.html  could be the best one to learn from as it's somewhat dated and I the NOOB even find many mistakes ...  It for one is not easy to follow,  it jumps all over the place. Command examples  are not with the paragraph that  writes about it. They're  is sometimes three or four paragraphs away from it, with no direction or no# linking the example with the paragraph... confusing to say the least.  There are mis-spelled commands.  Easy for an established person to realize there's a problem here. But, I found myself lost on many occasions following along blindly lost as to why I wasn't getting the same answer at they get.. or getting an error about the command , only IRC and Google saved me.  None the less,  I'm committed to my goal of getting the knowledge I need to successfully build LFS. I'll finish reading and making notes, and follow up with google and other pages as needed. Actually, thats probably the reason I'll be more competent. I won't give up... I'm making everything work before I move on so the end result is more information is sticking to my brain because of the mistakes :) It is aggravating but that's exactly why I'm retaining more info ???

  I've been at this now about 3 weeks. I quickly read through the prerequisites only to fall flat on my face building LFS. I've really made the point of studying all the info pointed out in the prerequisites  this time...so that I will fully comprehend what I've read.  At this point in time , I believe that just the prerequisites will not be enough for me. We shall soon see.

 

 

Intel Core 2 Quad... Which version of Linux do I have to install?

This is my first contribution to the community, I hope it will be at least from a practical point of view, useful for some of the new Linux users, as I actually am.

I recently purchased a nice computer. I mounted the components (which was kind of an adventure) and decided to install Debian on it. I faced the very first question as I was going to download it: which architecture is the one I should use?

My processor is an Intel Core 2 Quad 8200, so I knew I could run on 64-bits.  But the amd64 version looked weird to me, since my computer had an Intel processor (Intel64...) not an AMD. The answer is quite straight forward: for Core 2 amd64 is the one.

Read more... Comment (0)
 

How I got involved with Linux

I am a technical writer. I've written hundreds of thousands of words about the Linux operating system over the years. I currently write for three different companies - one of them our beloved linux.com.

I thought I would introduce myself by way of discussing how I got involved with Linux in the beginning....

I came into computers rather late in life. I was just joining the professional world as a professor at a university and realized I had to have my first computer. So I bought an Acer Aspire with a 75 Mhz CPU. At the time it was sweet. I was on AOL and having a blast...that is until Windows 95 decided to do its thing and reveal to me my first "BOSD". At that point I assumed it was a "feature" and plodded on. But that "feature" continued creeping into my daily computing life. No matter what I was doing I found myself having to reboot my machine with either the three or the one finger salute. 

After a few years of that I heard the whispers of another operating system - one that wouldn't frustrate me beyond belief, one that would actually do what I wanted it to do. Being the curious monkey I am I had to know what this operating system was. That was circa 1998 and I finally heard the name Linux.

Being on dial up, the only way I was going to have this operating system was either: 1) from Cheapbytes or 2) from the local retail. I got lucky and the local retail shop had a copy of Caldera OpenLinux. Believe it or not I did get this installed. It was rough...like thermo-nuclear physics rough. I had never installed an operating system before and was, well, a bit taken aback by the process. 

Eventually it was installed and I was up and running. Only problem was I wasn't doing much. It took me a while to finally figure out I was the proud owner of a winmodem, so I couldn't get on line.

Ah the beauty of the US Robtics external dial up modem. It worked like a charm and I had Linux up and running and on line! I flipped the bird to Windows and never looked back.

Now I can say I have tried every distribution I can get my hands on. I have covered nearly every aspect of Linux one one or more sites. My writing about Linux has been published and translated into multiple languages.

Linux has been, and always shall be, my friend.

 

ASUS Ai Remote driver

Everybody with a ASUS P5E3 or a similar Mainboard has got an infrared remote control, that can be connected to the PC via USB. I had some trubles making this thing work with LIRC, so I wrote a Python script, that maps the remote's signals to keycodes.

Read more... Comment (0)
 

test „ÉÜ„Çπ„Éà

Test „ÉÜ„Çπ„Éà
 

Using lftp to synchronize folders with a FTP account

lftp is a powerfull FTP client than can be used to sync with a remote account. In Ubuntu 9.04 it is already installed so all you have to do is figure out how to use it. :)

First, you'll need 2 "scripts", one to download files from the remote FTP server to your computer an one to upload them from your computer to the server.

Download script:

Create a file named download.x with the following content:

open -u user,password -p [port] [server]
mirror -c -e /remote_directory /local_directory
exit

You will need to write your username and password; also specify the port, usually 22, and the server address (eg: ftp://domain.com - you can also use sftp://). Also insert the absolute paths to the remote and  local directories.

The effect of the option -e  in the second line is that files that don't exist anymore in the remote directory will be deleted from the local directory; you may want to change this if you don't need this option.

Upload script:

open -u user,password -p [port] [server]
mirror -c -e -R /local_directory /remote_directory
exit

 

There are only a few things changed in the upload script: the -R option is used because we want to upload from the local directory to the remote one. Also note that the order of the two folders changed from the download script.

There are many other options for lftp; just, you know, man lftp.

Now, to download the files from the remote FTP server to the local directory open a terminal an type in:

$ lftp -f download.x

Note: if the download.x file is not in your home directory, you'll have to write the path to it.

To upload the files to the remote directory use the command:

$ lftp -f upload.x

 

Hope this helps.

 

Been using Wine to play some old windows games.

Strangely these 6 to 8 year old commercial windows games run better under Linux using wine than they do on a fairly modern Windows XP box.

 Myth, Starcraft, SimCity3000 all just worked on Linux.

 I have also found Linux based Clients for several games that work perfectly. The quake 2 and 3 source code compiled very easily on my system and worked flawlessly. 

 Source code for Quake 2: http://www.icculus.org/quake2/#download

I had to install a few libXxx* libraries to get the code to compile.  To get sound to work I had to edit the Make file and have it build sdlquake and run that version to get sound working.  

 I used a couple of set commands to set the 1280x800 resolution of my monitor.: 

quake set r_customwidth 1280 set r_customheight 800 set r_mode -1

Source code for Quake 3: http://ioquake3.org/source-codes/

Here is an interesting site that analyzes Quake source code: http://fabiensanglard.net/quakeSource/quakeSourceNetWork.php

The following site has a lot of installers for many older games to run them under Linux:  http://www.liflg.org/?catid=3 

 I also got the Linux version of Myth II Soulblighter installed using these directions :  http://grokthink.com/wordpress/?p=184

 I haven't played any of these games for years, one nice thing about being unemployed.  :)

 Happy gaming.

 
Page 116 of 136

Upcoming Linux Foundation Courses

  1. LFD312 Developing Applications For Linux
    05 Jan » 09 Jan - Virtual
    Details
  2. LFS220 Linux System Administration
    05 Jan » 08 Jan - Virtual
    Details
  3. LFD331 Developing Linux Device Drivers
    12 Jan » 16 Jan - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board