Wednesday, June 9, 2010

Q and A Fedora 9

# Make pdf document error.
[q.yang@localhost DocBook]$ make pdfdocs
make: *** No rule to make target `/scripts/kernel-doc', needed by `/wanbook.xml'. Stop.

[q.yang@localhost linux-]$ make pdfdocs
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
DOCPROC Documentation/DocBook/wanbook.xml
PDF Documentation/DocBook/wanbook.pdf
*** You have to install docbook-utils or xmlto ***
make[1]: *** [Documentation/DocBook/wanbook.pdf] Error 1
make: *** [pdfdocs] Error 2
[q.yang@localhost linux-]$ yum install docbook-utils
[root@localhost linux-]# yum install xmlto

SAMBA Setting - Fedora 9 / 20

1. [root@localhost usb]# yum install system-config-samba
2. [root@localhost usb]# system-config-samba

addShare->basic (directory,sharename,description,writable&visible)
->Access (only allow access to specific user)

[root@localhost usb]# vi /etc/samba/smb.conf can see the changes made by 'system-config-samba'.

3. [root@localhost usb]# system-config-firewall
4. [root@localhost usb]# smbpasswd -a q.yang
New SMB password:
Retype new SMB password:
Added user q.yang.

this is doing something that also can be done in
'[root@localhost usb]# system-config-user'
5. [root@localhost usb]# system-config-services

enable smb service so that smb auto start after reboot
This can also be done via command line:
[root@localhost usb]# chkconfig smb on

6. [root@localhost usb]# service smb restart
Shutting down SMB services: [ OK ]
Starting SMB services: [ OK ]

7. check samba service

[root@localhost usb]# smbclient -L localhost
Enter q.yang's password:
Domain=[LOCALHOST] OS=[Unix] Server=[Samba 3.2.11-0.28.fc9]

Sharename Type Comment
--------- ---- -------
Fedora9Samba Disk Quentin's Linux Box
IPC$ IPC IPC Service (Samba Server Version 3.2.11-0.28.fc9)
q.yang Disk Home Directories
Domain=[LOCALHOST] OS=[Unix] Server=[Samba 3.2.11-0.28.fc9]

Server Comment
--------- -------

Workgroup Master
--------- -------

8. If samba not accessible from another PC, check firewall
In fedora20
#firewall-config  make sure to tick 'samaba' service

=========== finished samba setting up to this point============

=== validate it from windows ================
map network device


You will be asked user name and samba password.

[root@localhost usb]# yum install system-config-samba
Loaded plugins: refresh-packagekit
updates-newkey | 3.4 kB 00:00
fedora | 2.4 kB 00:00 [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
updates | 2.6 kB 00:00
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package system-config-samba.noarch 0:1.2.63-1.fc9 set to be updated
--> Processing Dependency: samba for package: system-config-samba
--> Running transaction check
---> Package samba.i386 0:3.2.11-0.28.fc9 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

Package Arch Version Repository Size
system-config-samba noarch 1.2.63-1.fc9 fedora 413 k
Installing for dependencies:
samba i386 3.2.11-0.28.fc9 updates-newkey 3.9 M

Transaction Summary
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 4.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): system-config-samba-1.2.63-1.fc9.noarch.rpm | 413 kB 00:03
(2/2): samba-3.2.11-0.28.fc9.i386.rpm | 3.9 MB 01:50
Total 38 kB/s | 4.3 MB 01:56
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : samba 1/2
Installing : system-config-samba 2/2

system-config-samba.noarch 0:1.2.63-1.fc9

Dependency Installed:
samba.i386 0:3.2.11-0.28.fc9


[root@fedora20 samba]# yum install system-config-samba
[root@fedora20 samba]# rpm -qa |grep samba
Use GUI to add samba user; then choose /home/q.yang as samba shared folder and only specific user access.
smb.conf will be changed after GUI change
comment = Quentin's Fedora20 home
path = /home/q.yang
read only = no
; browseable = yes
valid users = q.yang
#systemctl enable smb.service
#systemctl restart  smb.service
[root@fedora20 samba]# systemctl |grep smb
smb.service         loaded active running   Samba SMB Daemon

[q.yang@fedora20 samba]$ smbclient -L localhost
Enter q.yang's password:
Domain=[MYGROUP] OS=[Unix] Server=[Samba 4.1.6]

Sharename       Type      Comment
---------       ----      -------
Fedora20Home    Disk      Quentin's Fedora20 home
IPC$            IPC       IPC Service (Samba Server Version 4.1.6)
q.yang          Disk      Home Directories
Domain=[MYGROUP] OS=[Unix] Server=[Samba 4.1.6]

Server               Comment
---------            -------

Workgroup            Master
---------            -------