Conversation started Sep 25, 2013 at 3:25.
Sep 25, 2013 03:25
@slm I can access from linux with smb://badabing/movies and from windows with \\badabing or \\192.168.0.72
However, I can't get either system to discover the server when browsing the network through GUI
slm
slm
window gui?
how are you browsing, in exploer?
no idea then...
slm
slm
not IE
explorer
slm
slm
see a screenshot?
Sep 25, 2013 03:26
and also on nemo (Cinnamon file browser)
@Braiam no problem, thanks for the netmask help!
@slm hang on
now I discovered a bung of unknown packages about samba...
damn screenshot tool
lol, blue screen :P
@terdon did you did a "refresh"?
heh yeah :)
@Braiam many many times
Sorry about the blue, it's a bug in the screenshot tool
slm
slm
so the issue is that server doesn't show up in either of these, right?
Sep 25, 2013 03:30
or just in windos?
The server does not show up in either
but works in both when accessed through its IP
how to replace newline with space again?
with sed?
echo -e "foo\nbar" | tr '\n' ' '
slm
slm
sed can't
sed can do it but I never remember the syntax.
It can @slm it's just some weird hack or enabling multiline strings or something. I saw an answer somewhere showing sed with multiline strings
Sep 25, 2013 03:35
I did the contrary
slm
slm
6
A: format output of xargs

slmBelow are a dozen or so examples of how you can take a file such as this: $ cat k.txt 1 2 3 and convert it to this format: 1,2,3 You can use this command to create the above file if you'd like to play along: $ cat <<EOF > k.txt 1 2 3 EOF The examples below are split into 2 groups. Ones t...

replacing spaces with new lines
slm
slm
yeah it's not worth doing it with sed, it sux
read the methods in that post, they show switching
1
2
3
to: 1,2,3
had to search and replace \n with ,
sed stinks at that
my personal fav. is paste
yeah paste is cool. So's tr for this kind of thing
Why'd you use 'perl -00'? Is that setting the end of line character?
ok, I just wanted an adhoc command :P
dpkg -l | grep kali | awk '{ print $2}' | tr '\n' ' '
slm
slm
Sep 25, 2013 03:37
tr has this issue though:
$ tr '\n' ',' < k.txt
1,2,3,
ah, true
@Braiam dpkg -l | grep kali | awk '{OFS=" "; print $2}'
slm
slm
steph. had the same feedback so that's why i know now too
makes sense, there's a trailing newline
@terdon nah, already done... :{
typical stephane to see it
slm
slm
Sep 25, 2013 03:39
doesn't dpkg have some switch to format the output directly?
no what I wanted to see...
dpkg -l | grep kali | awk '{printf $2" "}'
I wanted all pacakges that had "kali" in the version string
I have weird bugs in samba thanks to them... imported from sid...
slm
slm
dpkg-query is a tool to show information about packages listed in the dpkg database.
-W, --show package-name-pattern...
              Just like the --list option this will list all packages matching
              the  given  pattern.  However the output can be customized using
              the --showformat option.  The default output  format  gives  one
              line  per  matching  package,  each  line  having  the  name and
              installed version of the package, separated by a tab.
slm
slm
Sep 25, 2013 03:47
where we at w/ terdon's issue
no change
I'm searching for and trying various suggestions to make the server discoverable, nothing so far
slm
slm
stay focused one thing at at time too much jumping around
@slm hardy man... :( that changed to -l (which I use) and only match package names not version
Theoretically, these settings should do it:
    name resolve order = bcast lmhosts host wins
    hosts allow = 192.168.0.0/255.255.0.0
and
    browsable = yes
in the [share]
but no dice
nmbd is runing?
Sep 25, 2013 03:50
yup
slm
slm
guest ok = yes?
here's the current smb.conf:
slm
slm
sorry if that was asked, can't find it above
[global]
	workgroup = WORKGROUP
	netbios name = badabing
	server string = %h server (Samba, LinuxMint)
	map to guest = Bad User
	obey pam restrictions = Yes
	pam password change = Yes
	passwd program = /usr/bin/passwd %u
	passwd chat = *Entaaer\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	syslog = 0
	name resolve order = bcast lmhosts host wins
	guest ok = Yes
	hosts allow = 192.168.0.0/255.255.0.0
	hosts deny = 0.0.0.0/0, #hosts, deny, 0.0.0.0/0, =, all, others.
slm
slm
too much crap
Sep 25, 2013 03:51
@terdon you really need passwd?
not really, I can remove it but it does not seem to be an issue
slm
slm
those shouldn't matter you can try but they're more configuration than anything else, tells samba where to find tools to change password in smbpasswd file
ok, molotov cocktail sudo service nmbd stop && sudo service smbd stop
then the same but with start...
@Braiam I've been doing service smb restart which does exactly that
I remember that samba needs nmbd started before samba back in the day...
Sep 25, 2013 03:53
nmbd: unrecognized service
Anyway:
# service samba restart
[ ok ] Stopping Samba daemons: nmbd smbd.
[ ok ] Starting Samba daemons: nmbd smbd.
so the samba service takes care of that
good guys
btw... installing samba 4 is scaring me :S
Setting up samba4 (4.0.0~beta2+dfsg1-3.2) ...
Administrator password will be set randomly!
Unknown parameter encountered: "max log size"
Ignoring unknown parameter "max log size"
Unknown parameter encountered: "syslog"
Ignoring unknown parameter "syslog"
Unknown parameter encountered: "unix password sync"
Ignoring unknown parameter "unix password sync"
Unknown parameter encountered: "passwd program"
Ignoring unknown parameter "passwd program"
Unknown parameter encountered: "pam password change"
ugh!
@Braiam ugh indeed
slm
slm
yeah it's a different animal to 3
workgroup = TRINITY
netbios name = FAMILY-SERVER
map to guest = Bad User
passdb backend = smbpasswd
name resolve order = bcast host lmhosts wins
printcap name = cups
local master = yes
preferred master = yes
os level = 65
i found this they claim this allows browsing
i would comment out any lines not here
OK, I;ll try that
nope, no difference
give it time!
Sep 25, 2013 03:59
ah, that's another issue, would it not be discoverable immediately?
I would unplug the cable... or disable the network...
restarted nm, no difference
slm
slm
it should show up immediately
grrr then
I'm rebooting the machine just in case
just me or the chat shows local time instead servers?
Sep 25, 2013 04:08
it's local time yes
@terdon in the server samba-tool testparm
Yup, done that a few times too
slm
slm
try this command: $ nmblookup -MS -- -
on the server?
AAAAAAaaaaaaaa
slm
slm
it simulates a browse
via command lne
Sep 25, 2013 04:10
never mind, @Braiam was right
rebooting the server made it appear
slm
slm
nmbd not running?
I'm using the minimal smb.conf you posted before
shit, I hate it when reboot solves things, it makes me feel like I'm using Windows
slm
slm
did you restart both smb and nmb?
me too
I restarted the machine
told you so.... :P
slm
slm
Sep 25, 2013 04:11
i think the election to pick a master happens at reboot only
@Braiam yes you did :)
@slm OK, so when I reboot it set itself up a a master and then told the other clients
slm
slm
so win7 prob. was it's own master and wasn't having a new election for who's master with smb server
@slm na is a quark
slm
slm
the other thing you can do on windows is net view \\samba-server
too late now
from the command line?
slm
slm
Sep 25, 2013 04:13
cmd
on win
ok
wow, @slm @Braiam I owe you both a beer! (that's two for you @slm, I already owed you one for that paste asnswer). THANK you both!
nah, I just took one :P
slm
slm
np
exercising the brain muscle to remember this stuff
+ fun to chat with you
aww :)
slm
slm
us perl guys have to stick together
Sep 25, 2013 04:15
absolutely!
well, sometimes people gets annoying...
dying breed and all that
slm
slm
info on net command
you can do the same junk with smbtree on windows using net
Ah, yes I remember, I used it to configure my parent's network
slm
slm
i think there is one in there to force an election
Sep 25, 2013 04:16
useful if I ever set a samba share :P
 
Conversation ended Sep 25, 2013 at 4:16.