Tag: linux

Linux Samba User Add Script

Problem: The User Password Sync on Standalone Samba Server like Debian & Ubuntu without LDAP is broken since years! So i wrote a small Script called add-user-smb.sh: #!/bin/bash # Prompt for username read -p "Username: " username # Prompt for password without echoing read -p "Password: " password # Add a new User to Linux sudo useradd -m $username echo "$username:$password"| sudo chpasswd # Add same User to SAMBA Subsystem with same Password! sudo smbpasswd -a $username<<EOF $password $password EOF

Linux: Perfect Secure Travel Laptop

If you want to Travel to other Countries (Border-Control), you should know some things: Buy a older Acer Laptop with Micro SSD Harddisk and SATA CDROM Slot Buy a SATA CDROM Adaptor for 10$, open the Laptop and remove the SATA Drive put it into the SATA Adaptor Don’t put Screws into the Laptop to the Adaptorslot so that you can pull out quick the SSD drive Install Ubuntu Linux with LUKS Disk full encryption! DOWNLOAD here Buy a privacy Shield-Sticker onto the TFT To extend security use USB-WIFI Dongle for WIFI Connections! (MAC Address Spoofing) Or: Buy a older […]

Linux: Raise Security Level by removing Software

If you use Linux you should monthly check which Software you haven’t used last weeks. Background: Every additional Software put Load on your PC Every additional Software uses libraries which can be affected by zero day exploits The Developers doesn’t know all bugs of their dependencies Third parity Software parts like “Github” or “PPA-Sources” they can be a security hole, by confusing Developers! If a Projekt is closed, remove unneeded Software to reduces the count of securitry holes! Run Cleanups after uninstall to purge changed Configs read here

Linux Security: create, mount, lock Luks Encrypted Container Files

Howto create encrypted Container Files for private Photos? REMARKS: EVERY unlocked and active mounted Luks Drive could be read out by attackers! Use long Passwords for Luks! dismount and LOCK unused luks drives/containers if NOT used! Create and mount Script: #!/bin/bash # Script creates 4GB Encrypted File Container, set Password # and mount it to /mnt/photos-private change your username!!! # # check free loop device set as variable loop=`losetup -f` # move existing container to old as BACKUP sudo mv container container.old # create container 4G sudo dd if=/dev/urandom of=container bs=1M count=4096 # bind raw container disk to free a […]

Ubuntu Upgrade Bug: do-release-upgrade breaks cups wrapper filter files for Brother Laser Printers

If you upgrade ubuntu 18.04 to 22.04 via “do-release-upgrade” and you have installed brother laser printer drivers, the whole “cups” printing system will FAIL on print and log missing “filters” at cups log. The “lp” printer output piped into nirvana! Check at  /usr/lib/cups/filter/ for the filter files Reinstalls cups by deinstall/reinstall with –purge config option Check again  /usr/lib/cups/filter/ Copy all “brto*” missing filter files from other old working PC to  /usr/lib/cups/filter/ Restart PC, cups works now. The Filter files are not inside Brother Driver Packages (deb)! Seen on a Systems with Ubuntu Small/Mini Setup! I will check next days this […]

Install Cewe or Rossmann Photobook Software Linux

Problem: Cewe Fotobuch Software wurde für 32bit Linux geschrieben lässt sich daher nach der Installation wegen fehlender Libraries nicht starten. Lösung: Download der Software von http://www.cewe-fotobuch.de/download/ Konsole öffnen (ähnlich Windows Dos Fenster – keine Mausgesteuerte Installation) die Datei Namens setup_Mein_CEWE_Fotobuch.tgz nach /tmp kopieren entpacken des Archives (.tgz) starten des Perlscripts nachträgliche Installation der 32bit Framedateien (Libraries) Copy&Paste: sudo cp setup_Mein_CEWE_Fotobuch.tgz /tmp sudo tar -xvzf setup_Mein_CEWE_Fotobuch.tgz sudo ./install.pl sudo apt-get install ia32-libs-gtk sudo apt-get install ia32-libs lib32gomp1 Unter Suse Linux 64bit sollte das gleiche Problem bestehen, hier mit Yast die 32bit Libraries suchen und installieren. ..und klappt.. Update 2023: Die Software […]

Seafile Photo Cloud Server Problems (must KNOW)

If you plan to setup a small private Photo Cloud Server and you try to setup “Seafile Community Edition” there are some MAJOR Points (disadvantages) to know: Seafile Community Edition has limited Functions (5 Users) The Photo Files saved on “Data Blocks Files” like on “IPFS” with hash Keys as Names You need a MYSQL Database, MAJOR if broken by Updates all Photos lost! Seafile is based on Python Framework Software if any SPECIAL needed Python-Module is broken by a Update your Photos lost! I have tested many Setups, the big OS-RELEASE Changes often a big Trap cause broken Dependencies […]

Bug: virt-manager NO Keyboard input on VM

If you use Debian as Host System for Virtual Servers the “virt-manager” Package is broken! no keymap input no VM Console Control no VT-Switch possible Fix: run sudo virsh edit "vm-name" remove all “spice” display + audio entrys !! open sudo virt-manager go details  and and ADD Display VGA + VGA-Adapter select VNC!! save + exit settings.. reboot VM now you should be able to enter the login commands

Ubuntu Debian MAJOR Bug: WIFI randomly disconnected at 100% Signal no internet

Ubuntu Debian (All Linux OS) Bug: WIFI randomly disconnected at 100% Signal no internet System : ubuntu 18.04 LTS Kernel 5.7 amd64 Router openwrt LAN/WIFI: disabled ipv6 dhcp ! Bug: Wifi lost internet connection randomly on 100% Signal beside the Gateway-Router! Problem: No Error Logs, no Kernel Messages Tested: Replaced Mini-PCI WIFI 5/6 Cards various Brands ATH9/Intel no fix!! Replaces Drivers and Power Off Powermanagement of PCI-WIFI! no fix! Solution: edit /etc/sysctl.conf insert: net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 Bug Background Info: dhcp6 daemon got a expire time of IP Address but fails to renew the handshake […]

Firefox Bug more than a Feature no Sound after Update

If you use firefox for hamradio like openwebrx or kiwisdr the Sound will die after a Update! That’s NO Driver or NO Linux or a WEBSDR Problem, The Problem is DISABLED AUDIO startup on Firefox Fix: Enter at the URL-BAR “about:config” search entry “media.autoplay.block-webaudio” to false Restart Firefox and be happy.. If you are a Security Nerd then use 2 Firefox Profiles for Web and different for SDR-Radio..

Major Tools for your IT Systems

A must “USE” in these insecure days: nmap Portscan Tool use nmap -PN IP-Address to check failed Firewall Settings! arp-scan  Network Scan to find active devices iftop to detect traffic and used Ports on a physical network Interface! ps aux  show active processes on a Linux System htop more human friendly Process Monitor iotop human friendly traffic monitor from CPU/RAM to Drives Daily check Error Logs! Use always Firewalls and Disk/File Encryption! Don’t trust Hardware Protection (TPM) Chips most do communicate by clean signals on copper which can be read out by hardware hacking or magnetic fields! NEVER leave Hardware […]

Bug Nautilus slow SMB Performance gvfs-smb

If you use Samba as File Share (NAS) Samba mounts often hang by listing huge amount files like Photos. Known Problem is the gfvs-backend is hanging up on switching between smb protocol (smb1-2-3) versions! Faster is to use the cifs Kernel mount without the gnome-backend communication open Terminal enter: id myusername mkdir /home/myusername/nas/ with known id do: Workaround edit /etc/fstab insert: sudo nano /etc/fstab insert at the end !! //192.168.1XX.XXX/nas /home/myusername/nas cifs file_mode=0777,dir_mode=0777,username=myusername,password=XXXX,domain=home.local,uid=10XX 0 0 Now over 50MB’s per second should by possible over gigabit cable. If not needed disable Samba Logging!

Impressum Datenschutz-DSGVO-GDPR

Last Update 08.10.2023 www.linuxonlinehelp.eu - Nonprofit Linux PC & Server Support since 2004 Tags: Linux Online Help, Linuxonlinehelp, Linux Support, Linux Hilfe