Samba R/W share for nobody

Here’s a little trick you might want to apply to your linux-based-filesharing server,

Enable access from everyone (windows) without user/pass confirmation, you need to put these setting in global:

map to guest = bad user
guest account = nobody
usershare allow guests = yes

and below settings in share folder:

browsable = yes
guest ok = yes
public = yes

for write access, put below setting:

read only = no

maybe you need to force the creation of new file uploaded by client to be accessible for everyone, you could add below settings:

create mask = 0777
directory mask = 0777

and to simplify editing from your server so you don’t need to login as nobody/root, put this settings:

force user = stev
force group = stev

Finally, my minimalist-full setting of smb.conf:

[global]
map to guest = bad user
guest account = nobody
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
usershare allow guests = yes
[File4fun]
comment = File4fun
path = /media/other/fun/fun
browsable = yes
guest ok = yes
read only = no
public = yes
create mask = 0777
directory mask = 0777
force user = stev
force group = stev

Setting Web-Server on MacOSX in easy way

Edit /etc/apache2/httpd.conf
– uncomment line : LoadModule php5_module libexec/apache2/libphp5.so
– change webroot directory in line : DocumentRoot “/Users/stev/Sites”
– create dir /Users/stev/Sites using your local user
– create an index page (index.html,index.php) in your new dir

sample of index.php as below,

<?php
phpinfo();
?>

Start apache : sudo apachectl start
Download mysql-server dmg installer and mount dmg file
Install pkg and prefpane
Start mysql from prefpane

Open terminal and change your MySQL root password :

$ mysql -uroot
mysql> use mysql;
mysql> update user set password=PASSWORD(“NEWPASSWORD”) where User=’root’;
mysql> flush privileges;
mysql> quit

Hidden keyboard function on MACOSX

  • Command+Shift+3: takes a screenshot of the full screen (or screens if multiple monitors), and save it as a file to the desktop
    Command+Shift+4: brings up a selection box so you can specify an area to take a screenshot of, then save it as a file to the desktop
    Command+Shift+4, then spacebar, then click a window: takes a screenshot of a window only and saves it as a file to the desktop
  • Command+Control+Shift+3: take a screenshot of the entire screen (screens if multiple monitors), and saves it to the clipboard for pasting elsewhere
  • Command+Control+Shift+4, then select an area: takes a screenshot of selection and saves it to the clipboard for pasting elsewhere
  • Command+Control+Shift+4, then space, then click a window: takes a screenshot of a window and saves it to the clipboard for pasting
  • Home: command + ←
  • End: command + →
  • Page Up: command + ↑
  • Page Down: command + ↓
  • Home on terminal: control + a
  • End on terminal: control + e
  • Cut and Paste : command+c and command+option+v
  • Finder total size selected items : select items+command+option+I
Image

A cold morning, yet a warm scenery

image

Brrr….hawane adem tenan su. Mudhun soko kreto ing stasiun kediri.
Mlumpat banjur nggoleki masku sing wes mapak numpak motor.
“Ayo…tancap bos…hunting sunrise”, “ok…siap…”.
Aku lan masku nggeber motor yamaha vega werno biru.
“Menyang cedhak bendungan yo kang…”.
Mlaku 60-70km/h, asuuuu…jan adem tenan, opo meneh yen ra nggawe jaket.
Pathing cemethuk suarane untuku, karo ndekep tas natgeo isi kamera.
“Lha kae dik…endhog ceplok e wes siap saji…”.
“Wah iyo…minggir sebelahe buk kali kae wae”.
*ceprat-cepret***ceprat-cepret*
“…fokuse nang dong lamtorone ae…ben luweh dramatis”.
“Dramatis jare…koyo sinetron naga wae…hehehe. Siap…”. “Diudhunke stop e sithik…diunggahke ISO ne….steady…steady…”
*cekrek….*
“Yo’opo kang dadine…? ” *pamer*
Aku dhuduhake hasil jepretanku nang masku.
“Sip…bungkus….”.
*kruuuk…*
Lhoh,kameraku kok unine dadi aneh…ngopo iki.
Eh, lha dalah…tibakno suarane wetengku sing keluwen. Hehehehe….