-
Search Results
-
Hi antiXers
Last year while fumbling though an install of antiX21 64bit runit edition, I encountered this status messages in the output of ps command:
$ ps -feww| grep -i log root 1505 1 0 21:29 ? 00:00:02 runsvdir -P /etc/service log: log/./run: file does not exist chown: invalid user: ‘_runit-log:adm’ chpst: fatal: unknown user/group: _runit-logI still have this error in the antiX21 install from that time:
$ ps -feww|grep -i log root 1515 1 0 21:07 ? 00:00:01 runsvdir -P /etc/service log: '_runit-log:adm' chpst: fatal: unknown user/group: _runit-log runsv ssh: fatal: unable to start log/./run: file does not exist runsv acpi-support: fatal: unable to start ./run: file does not exist runsv sudo: fatal: unable to start ./run: file does not exist *** debug [daemon/old_main.c(156)]: selected 0 times chown: invalid user: '_runit-log:adm' chpst: fatal: unknown user/group: _runit-logI see this seems to have been mentioned during testing of one of the alphas?:
Reply To: antiX-bullseye-a2-runit_x64-full.iso availableI am busy tidying up an install of antiX21 386 runit on a Thinkpad a22m with Pentium 3, and it seems to have the same output in the ps – I am too lazy to try and copy it over, but it also complains about the unknown user/group in the chpst command.
I am wondering if this could be because runit is expecting to be able to change a process owner to id “_runit-log” ?
This id seems to be mentioned in this debian bug report: dh-runit: Change in runit loguser need transition code
Sample text “Runit recently changed the loguser from runit-log to _runit-log”Could this be a concern?
- This topic was modified 11 months ago by entropyagent.
- This topic was modified 11 months ago by entropyagent.
I recently discovered the joys of using a shared folder to move files between my computers. It was a pain to set the shared folder because I did not find, in the repository any GUI that I was able to use to configure samba. I did eventually find a real nice GUI (not yet available in the repository), but, what really allowed me to first configure and use a network shared folder was the excellent YouTube channel “learnlinux.tv”. I jotted down a few notes that I used to create this “How to”. Following it will allow anyone to create a network shared public folder.
How to create a public shared folder on your local network:
(Adapted from https://www.learnlinux.tv/setting-up-simple-samba-file-shares/)1-Install samba with all it’s dependencies, Open a terminal and run this commands, enter your password if asked to:
sudo apt update && sudo apt install samba2- Make sure samba is not being executed, on the terminal, run this command:
sudo service smbd stopand then back up the default Samba configuration, just to be on the safe side (optional step)
sudo mv /etc/samba/smb.conf /etc/samba/smb.confBAK3- Open samba configuration file for edition:
sudo geany /etc/samba/smb.conf4- Edit the smb.conf file:
Delete any of the file’s contents and replace it with the text below, making sure that you replace the capitalized text with the appropriate values. FILESERVER and WORKGROUP do not have to be replaced, unless you what to and SHARED-FOLDER can/should be replaced with the name of the folder you want to be displayed (do not use spaces or special characters). The only value you have to adapt when editing this config file is /FULL/PATH/OF/FOLDER/TO/BE/SHARED that has to be replaced with the full path of the folder you want to be shared: for example- /home/ppc/PublicFiles
Optionally you can also replace the smbuser and smbgroup values with any values you select, but you’ll have to apply those exact values on the terminal commands that you’ll have to enter after editing the smb.conf file…[global]
server string = FILESERVER
workgroup = WORKGROUP
security = user
map to guest = Bad User
name resolve order = bcast host[SHARED-FOLDER]
path = /FULL/PATH/OF/FOLDER/TO/BE/SHARED
force user = smbuser
force group = smbgroup
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
public = yes
writable = yes5- Save the config file and close geany and, on the terminal run this commands to create the required and group and user:
sudo groupadd --system smbgroup sudo useradd --system --no-create-home --group smbgroup -s /bin/false smbuserIMPORTANT: make really sure that the folder you what to share already exists and DO NOT SHARE YOUR HOME FOLDER!!! (but you can share any sub-folder inside your home- example: /home/ppc/downloads
6- Change ownership/permissions of the shared folder (replace /FULL/PATH/OF/FOLDER/TO/BE/SHARED with the appropriate address to your shared folder):
sudo chown -R smbuser:smbgroup /FULL/PATH/OF/FOLDER/TO/BE/SHARED
sudo chmod -R g+w /FULL/PATH/OF/FOLDER/TO/BE/SHARED7- Make sure that samba is started:
sudo service smbd restartThat’s all.
How to access your shared folder from another device connected to your network:
You can now access your shared folder from any other computer connected to the same local network by entering, on the address bar of your file manager:
//IP.of.host.computer/SHARED-FOLDER
(replacing, of course, the “IP.of.host.computer” part with the real IP of the computer that is sharing the folder(s) and “SHARED-FOLDER” with the name you choose, for example//192.123.4.5/PublicFolder
How do you get the IP of the computer that is hosting the shared file? On that computer open the terminal and run this command:
ifconfig
On the line just below you network connection (ex: “eth0” if you are using a network cable or “wlan0” if you are using wi-fi) is a line staring with “inet”- the long string of four numbers separated by dots- that’s the IP you want.Extra tip- sharing more folders/sharing protected folders:
You can add as many shared folders as you want, to the smb.conf file, taking care to remember to:
-always disable samba before editing the config file:
sudo service smbd stop-edit the samba config file, adding and adapting the [SHARED-FOLDER] part included above. If you want to make it so the users accessing your shared folder can’t change it, make sure to change the last line “writable = yes” to “writable = no”:
Example:
[PROTECTED-SHARED-FOLDER]
path = /FULL/PATH/OF/FOLDER/TO/BE/SHARED/NUMBER/2
force user = smbuser
force group = smbgroup
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
public = yes
writable = no-Save your editions to the config file
-Don’t forget to change ownership of the newly shared folder(s), adapting the commands from step 6.
-Restart samba:
sudo service smbd restartTroubleshooting:
-Don’t forget- you are sharing the folder over your local network. You can’t access a shared folder over the internet (well, there are ways to do it, but it’s DANGEROUS. If you want to access your local files via the Internet, you’ll be better off using FTP)
-You can’t obviously access a shared folder if the device that hosts the shared folder is off or off-line… If the host of the shared folder is on-line but you can’t access the shared folder, make sure to run (on the host computer);
sudo service smbd restart
-Some File Managers get “frozen” if they lose connection to a mounted shared folder – zzzfm is one of such file manager- if that happens you’ll either have to re-enable the shared folder on the host computer and then unmount it on the remote computer or you’ll have to kill zzzfm and forcibly unmount the mount point… Yeah… it’s not pretty… You’ll have to force zzzfm to “let it go, let it go” (yes, it’s a “Frozen” joke)P.
- This topic was modified 1 year, 1 month ago by PPC.
- This topic was modified 1 year, 1 month ago by PPC.
- This topic was modified 1 year, 1 month ago by PPC.
