Wednesday, September 06, 2023

How to setup an Ubuntu Linux Samba Server and Share Files Anonymously

How to Create a Samba Share with Free Access

Samba is a free and open-source software suite that allows you to share files and printers over a network. It is commonly used to share files between computers on a local area network (LAN).

In this blog post, we will show you how to create a Samba share with free access. This means that anyone on the network will be able to access the shared files without having to enter a password.

Prerequisites

To create a Samba share, you will need:
  • A computer running Linux, macOS, or Windows
  • The Samba software installed

Instructions

1. Open a terminal window.

2. Install the Samba software by running the following command:

sudo apt install samba

(For macOS, use the following command: brew install samba)

(For Windows, download and install the Samba software from the Samba website: https://www.samba.org/)


3. Create a directory that you want to share.

4. Edit the Samba configuration file. The location of this file varies depending on your operating system.
  • For Linux, the file is located at /etc/samba/smb.conf.
  • For macOS, the file is located at /usr/local/etc/samba/smb.conf.
  • For Windows, the file is located at %windir%\system32\drivers\etc\samba\smb.conf.
5. In the Samba configuration file, add the following lines to the [share] section:

 path = /path/to/shared/directory

valid users = @Everyone

The path parameter specifies the path to the shared directory. The valid users parameter specifies that anyone on the network can access the shared files.

6. Save the Samba configuration file and restart the Samba service.

sudo service smb restart

(For macOS, use the following command: brew services restart samba)

(For Windows, restart the Samba service from the Services control panel.)

Once you have completed these steps, anyone on the network will be able to access the shared files without having to enter a password.

Tips
  • You can also create a Samba share with restricted access. To do this, you would need to specify a list of users who are allowed to access the shared files.
  • You can also set permissions on the shared files to control who can read, write, and execute the files.
  • For more information on creating and configuring Samba shares, please refer to the Samba documentation: https://www.samba.org/samba/docs/.
I hope this blog post was helpful!

Thursday, March 11, 2021

Cignus XT-2 Default Channel Frequency

The CIGNUS XT-2 UHF Walkie-talkie is a budget-friendly two-way radio that offers a variety of features, including:

  • A frequency range of 400.000 to 470.000 MHz
  • A maximum transmit range of 1 kilometer (line-of-sight)
  • Battery life of 1-2 days on standby
  • 16 channels
  • A time-out timer
  • 50 CTCSS groups and 105 DCS codes
  • Busy channel lockout
  • Battery saving functions
  • Low battery warning
  • PC programmable
  • NTC type approved
  • Available colors: black, white, and camo

*image courtesy of geraldstoreph


The default factory channel frequency configurations are:

CHANNELFREQUENCYCTSSDCS
1452.875
2454.325D023N
3454.625141.30
4455.125D245N
5455.425118.80
6455.575D156N
7455.625162.20
8400.25067.00
9469.98567.00
10450.125D445I
11450.875131.80
12451.325D346I
13452.450241.80
14453.475D612N
15454.575189.90
16451.875D523I


Saturday, December 26, 2020

[SOLVED] VLC is unable to play youtube streams.

The cause



Copying a YouTube link and then pasting it in Videolan/VLC's "Open network stream" allows playing of YouTube content in VLC. Sometimes it doesn't work.

YouTube changes its transmission protocol over time, sometimes breaking the YouTube module embedded in VLC.

The VLC developers try to fix the error as soon as possible, whenever these problems occur. The fix (once implemented) is not immediately released within the public version of the program.

To solve the problem:

Update VLC to the latest version, downloading it from the official website.

If the problem is still present, you will need to download a small file from the development branch of VLC, and to overwrite the corresponding one in yours.

To update youtube.luac:

  1. Make sure VLC is not running.
  2. go to youtube.luac latest update on GitHub - "https://github.com/videolan/vlc/blob/master/share/lua/playlist/youtube.lua"
  3. Select all the text inside the page, and copy it to the clipboard:
  4. Open the Notepad and paste the copied content in it.
  5. Save the file as youtube.luac, and select All Files in the Save as box.
  6. Now, copy the file in:
    • Windows x64: C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\
    • Windows x86: C:\Program Files\VideoLAN\VLC\lua\playlist\
    • MacOS: /Applications/VLC.app/Contents/MacOS/share/lua/playlist/
    • 64-bit Linux: /usr/lib64/vlc/lua/playlist/
    • 32-bit Linux: /usr/lib/vlc/lua/playlist/

If the instructions are followed correctly, the youtube.luac file will be overwritten in the destination folder. Enjoy the streaming of any YouTube video inside VLC!

Whenever the problem comes back due to further YouTube protocols changes, simply repeat the process, check if the developers have already fixed the error with the latest version of youtube.luac file.

Remember that the execution of YouTube videos may hang if you try to jump from a point of the stream to another, so it is usually better to start the video from the very beginning, pausing it only when necessary.