Linux Notes
 
I am certainly no expert - having been around since the days of the Iron Horse . However as I am trying to learn Linux and as I find it very difficult to get good clear connected together information on Linux I have put together a set of notes here . Many thanks to all those who have helped me - much apprectaied !
 
Linux & Windows GUI \ GDI Source Files

 
Problem : Getting visibility of Ubuntu shared directories from Windows XP
 

Situation : The situation I have is that I have a laptop and a desktop running XP on a home network without any problems . I also have a Ubuntu Linux 9.10 desktop running . I can access the shared drives on both the XP machines from the Ubuntu machine . However if I try to access the Ubuntu machine shared directory from either of the XP machines I am denied access to the Ubuntu machine .
I have the following situation :-
1) the XP machines are shown under the Mshome area .
2) the Ubuntu machine is shown under the Workgroup area .
3) when I open up Workgroup I get the Ubuntu machine name displayed KIM-LYON-UBUNTU-kim-lyon-ubuntu-linux server (Samba, Ubuntu) displayed .
4) when I click on this I get a message displayed :-

KIM-LYON-UBUNTU-kim-lyon-ubuntu-linux server (Samba, Ubuntu) is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.

The parameter is incorrect.

It doesn't provide me with any way of finding out what is wrong and then correcting it . Initially setting up the Samba was ok. - after reading the documentation this was fairly straight forward . However with this problem I have gone through the various documentation and tried various things - all to no avail unfortunately .

 
Answers
 

Your question #101985 on Ubuntu changed: https://answers.edge.launchpad.net/ubuntu/+question/101985
Status: Open =3D> Answered Ryan Dwyer proposed the following answer:

Right click the shared folder on the Ubuntu machine and choose Sharing Options. Make sure guest access is ticked.

Next, we need edit our Samba config file to set the workgroup. Open a terminal and run gksudo gedit /etc/samba/smb.conf. Near the top of the file, change workgroup to MSHOME. Save the file and close it.

Then you can restart the Samba service with sudo /etc/init.d/samba restart (or just reboot the computer).

That should at least allow you to at least see the shared files from the Windows computers. Get that working before you set permissions for writing.

 
Issue : there was no longer any visibility of the Ubuntu machine on the Window's machines .
 

Your question #101985 on Ubuntu changed: https://answers.launchpad.net/ubuntu/+question/101985
Status: Open => Answered Ian Ace A. Culallad proposed the following answer:

How about doing the routine below while on terminal:

sudo smbpasswd -a 'your_username' input your password since you called for sudo then enter a desired password for the username you substituted with 'your_username'.

Back on your windows explorer, access your Ubuntu machine with:

\\xxx.xxx.xxx.xxx (the IP address of your Ubuntu desktop)

If asked for credentials, input the username and password you configured earlier on Ubuntu.

 

Notes : this worked . I used the same password on all 3 computers - I don't know whether this is important .

I copied over my files from the XP using Beyond Compare . The directories and files were set up as being owned by 'nobody' and accessed from 'nogroup' . This prevented me accessing them using my user name . I changed the owner using the 'chown' command and the '-R' recursive directory switch . The group using the 'chgrp' command and the protection using the 'chmod' command . This allowed me access on the Ubuntu Linux machine but prevented me from having access from the XP machine . I checked the visibility of the Ubuntu Linux machine in the Windows File Explorer - it was not visible . On the Ubuntu Linux machine : I restarted the Samba - no change . I checked on the File Browser - the folder is not shown as shared . I checked under Properties \ Share - all boxes ticked ( by default ) - I pressed Close - no change . I checked under Permissions - tried setting all the permissions to Read and Write and tried both the Apply and Close buttons - no change . I went to Places and opened up a window on Network \ Home Folder and the shared folder is indicated as shared . The group for the root shared folder is indicated as sambashare , the owner is myself , all sub directories and files are owned by myself , likewise the groups . I changed the group of the root shared folder over to myself - no change - still no visibility XP side . I got visibility within Beyond Compare , however , so I assigned a drive , under Windows File Explorer , to the shared directory and used this to access the Windows MS VS VC++ project from the XP machine . The important thing is accessing the Ubuntu Linux machine using the IP address . The IP address should be assigned to a fixed address by the DHCP - by the router .

Linux console commands : chown , chgrp , chmod

 

 
Problem : Need to get KDevelop up and running
 

Situation : I am in the process of porting an application onto Linux . I initially set the project up in Code::Blocks and this went well - it is compiling ok. . The application requires a GUI and I have settled on the KDE GUI in the first instance . As such I have installed the KDevelop - K Desktop Environment Version 4.3.2 (KDE 4.3.2) . When I create the project :- KDE 4 GUI Application it comes back with : You need to select a cmake binary it doesn't tell me what a cmake binary is . It doesn't display a choice . The help pages are missing .

 
Answer
 

Your question #103589 on Ubuntu changed: https://answers.launchpad.net/ubuntu/+question/103589
Status: Open => Answered actionparsnip proposed the following answer:

Have you installed cmake?

sudo apt-get install cmake build-essential

Should do it.

 

Notes : this worked . An obvious , and likely , answer knowing Linux . But it was a matter of knowing the specific command line to use .

However , after trying Qt4 and colcluding that I could not get access to the GDI , I ended up using Code::Blocks and X Windows .

 

X Windows - X11 - Function Usage
 
Main.cxx