Koozali.org: home of the SME Server

manual edit file

badm4n

manual edit file
« on: February 25, 2007, 08:32:07 AM »
afaik we have transparant proxy and some other software that installed automatically when we install this distro
-

can i edit this config file manually ?
example : pico squid.conf ?

cause i'd like to change the port and some other config

Offline mmccarn

  • *
  • 2,657
  • +10/-0
manual edit file
« Reply #1 on: February 25, 2007, 06:45:58 PM »
Here are my notes on customizing squid.conf.  The items I was trying to customize are not defined in SME 7 so I created a new template fragment.  If you want to customize an existing entry, search /etc/e-smith/templates/etc/squid/squid.conf/* for the appropriate template fragment, copy it to the .../templates-custom...  area, and customize the copy.

Frequently you can change settings using the configuration database -check out config show squid - it looks like you can change the squid port this way, at least.

Before customizing a template fragment, read the original to see if it already recognizes a database entry - frequently the templates will respond to database entries that don't exist by default in the configuration database...


Modify Squid Settings
    mkdir -p /etc/e-smith/templates-custom/etc/squid/squid.conf
    pico -w /etc/e-smith/templates-custom/etc/squid/squid.conf/90squid_customizations
Code: [Select]
# Modifications to squid settings.
# commented line shows the default value
# cache_replacement_policy lru
cache_replacement_policy heap LFUDA
# maximum_object_size 4096 KB
maximum_object_size 32768 KB
# cache_dir ufs /var/spool/squid 100 16 256
cache_dir ufs /var/spool/squid 1000 16 256
# cache_swap_low 90
cache_swap_low 80
# cache_swap_high 95
cache_swap_high 90
    expand-template /etc/squid/squid.conf
    /etc/init.d/signal-event squid restart

badm4n

manual edit file
« Reply #2 on: February 25, 2007, 07:08:24 PM »
thx but ( nmaybe cause iam so dumb :( i very new here, could u tell me more detail ? or there is any simple way ?

Offline mmccarn

  • *
  • 2,657
  • +10/-0
manual edit file
« Reply #3 on: February 25, 2007, 07:18:28 PM »
It's simpler than it looks - but if you want step-by-step instructions you'll have to tell us exactly what you want to change - we won't be able to teach you how to change anything you want to change in a few posts...

Specifically, what port do you want to change, what do you want to change it to, and why (in case there's a better way to solve the same problem)?

You mention wanting to change "some other config" - which?

badm4n

manual edit file
« Reply #4 on: February 25, 2007, 07:40:08 PM »
Quote from: "mmccarn"
It's simpler than it looks - but if you want step-by-step instructions you'll have to tell us exactly what you want to change - we won't be able to teach you how to change anything you want to change in a few posts...

Specifically, what port do you want to change, what do you want to change it to, and why (in case there's a better way to solve the same problem)?

You mention wanting to change "some other config" - which?


squid.conf ( i need to change the port )
smb.conf ( i need create 3 folder that can be mapped drive from windows XP )

sorry too much but i think i'll learn from both conf
i have already search to every where there is no step by step tutorial :(
rite now im on the way to understand different of the package installer between yum and swaret/apt-get

Offline mmccarn

  • *
  • 2,657
  • +10/-0
manual edit file
« Reply #5 on: February 25, 2007, 08:17:10 PM »
Change the squid port:
config setprop squid TCPPort <portnumber>

However, this may break transparent proxy mode unless you also do this:
config setprop squid TCPProxyPort=80:<portnumber>

And since the current value is 3128 for this, too, I'd suggest:
config setprop squid TransparentPort=<portnumber>

And finally, to activate your changes:
expand-template /etc/squid/squid.conf
/etc/init.d/signal-event squid restart


Creating samba shares
I think you just need to create "ibays".  I believe that ibays are published as samba shares using the permissions you specify when you create them.

Caveats & Excuses
I have not personally tested the above settings, but I don't see why they wouldn't work.  Having said that, I seem to make a lot of posts that require subsequent fine-tuning...

badm4n

manual edit file
« Reply #6 on: February 25, 2007, 08:32:09 PM »
Quote from: "mmccarn"


Creating samba shares
I think you just need to create "ibays".  I believe that ibays are published as samba shares using the permissions you specify when you create them.


ok...
click on ibays

first it displayed :
Code: [Select]
that the password has not yet been changed from the default, and should be changed soon.

 
Name Description Action
Primary Primary i-bay      


then
i click on
Quote
add ibay

then
Code: [Select]
Information bay name [ pc01 ]
Description [client1]
Group [ admin ]
User access via file sharing or user ftp  [ Write = admin, Read = group ]
Public access via web or anonymous ftp  [ Local network (no password required)Local network (password required)]
Execution of dynamic content (CGI, PHP, SSI)   [disabled]

then i click [Add]

Code: [Select]
Name Description Action
Primary Primary i-bay      
pc1 client1  Modify   Reset password   Remove  


i type \\192.168.1.254
it asking password :(
then i try \\192.168.1.254\pc1 and \\192.168.1.254\client1
same result asking password
and failed with every username&password :(

i mean i want to add map drive at windows using samba without askin any password :((
help pls

Offline mmccarn

  • *
  • 2,657
  • +10/-0
manual edit file
« Reply #7 on: February 25, 2007, 09:28:38 PM »
Try this:
Group: Everyone
User access via file sharing or ftp: Write = group, Read = group

then, access it using:
\\192.168.1.254\pc1

(your example says you created "pc01" but once created it was named "pc1" - I assume this is a typo somewhere?)

You *will* need to enter a username and password, but since all users are members of the group "everyone" you should now have access to the share using any existing username on the system.  

As you've set it up, you would have to give the 'admin' username and password to access the share (write = admin, read = group = admin).

If this is a real network requiring any sort of security I think you can create a new 'group', add all your users to this group, then set security to "write = group, read = group".

Here's a post about setting up samba shares that support "guest" access: http://forums.contribs.org/index.php?topic=34556.0