Saturday, April 25, 2020
Re-enable smb1
Most modern OSes have disabled support to SMB1 by default due to known security issues. It is all good if you don't have any legacy devices. If you are like myself who still have one of these legacy device, you may need to re-enable the smb1 support.
To re-enable smb1 support, you need to edit your /etc/samba/smb.conf and add the line below to its [global] section.
client min protocol = NT1
Wednesday, September 25, 2019
Problem connection to Samba Server
However, when I tested my setup on a Windows machine, I got connection error. I have checked my setup and everything seems to be fine. At the end, it turns out nothing wrong with my setup as I can connect to this machine using IP. The problem is with my NetBIOS resolver.
My Linux machine IP is 133, but the IP reported when I ping it on my Windows machine is 113.
If you have similar issue as i did, you may want to check your NetBIOS resolver too. The problem may be in your network rather than your setting.
n.b. To clear DNS caches under Ubuntu is:
sudo systemd-resolve --flush-caches
Tuesday, May 15, 2018
SMB3
To make Windows shares browsable again, I added this line to /etc/samba/smb.conf
client max protocol = SMB3This line should be put right after the line
Now I can browse and open share folders on my Windows machines in the network as it used to be.
workgroup = WORKGROUP
Friday, March 20, 2015
Things to do after installing Xubuntu
- NetBIOS - Allows computer names to be used rather than IP.
- sudo apt-get install winbind libnss-winbind
- Edit /etc/nsswitch.conf, and add wins to the end of the line in (3)
- host: files mdns4_minimal [NOTFOUND=return] dns wins
- Samba Configuration Tool - Allows folders to be shared with other Windows computers.
- sudo apt-get install system-config-samba
- sudo touch /etc/libuser.conf
- sudo system-config-samba
- RDP Client - Allows making remote desktop connection to a Windows machine in the network.
- sudo apt-get install remmina
-
Preserve Job History - Stops CUPS preserving job history
- sudo pico /etc/cup/cupsd.conf
- add PreserveJobHistory off just before WebInterface Yes
Wednesday, July 17, 2013
Windows 7 Share Not showing up
At the end, I managed to put it back on the map by using this command:
netsh advfirewall set allprofiles state off
I don't know how this differs from having firewall off ... which was off.
Anyway, guess off isn't quite off in Microsoft terms ...
I found my solution in this forum:
http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/windows-7-share-not-visible-to-linux-or-mac-os-x/940ca57e-0072-4ae2-beec-ec814a3ceebe
If you are like me who has a stuborn machine whole shows up in your network. It may worth to give the solution suggest a go.
Wednesday, December 8, 2010
Samba and Windows 7 Share
Sunday, July 27, 2008
Good to share!
My sister got this cheapy Samsung ML-2010 Laser printer, and it is so simple to set up under the latest version of Linux. You plug the printer in one of the USB port, and you are ready to print. You can't get any simpler than this.
After getting the nice test page printed, I brought up the printer set up tool, and configured the printer to be shared on the network. Both Windows XP and Vista found the printer as they should, however, they required drivers to print. As XP and Vista are two "different" operating systems, I need to download two separate large drivers for two systems (what a pain). Now, there is a problem. The drivers are come as installers, i.e. EXE files. Luckily, if you expand it using 7-zip, you will find these driver EXEs are just fancy archived files. Once you expanded the file, pointed Windows to the right direction, you are ready to print too.
Update Previously, I have problem to print from certain application in Vista. This problem has now solves by using the connection string below instead.
http://<hostname>:631/printers/<printername>
