-
AuthorSearch Results
-
November 12, 2020 at 3:54 pm #44863Member
harv
cli-installer refuses to allow set of separate home partition.
Prior to install created 3 partitions with gparted livecd
Installer recognized them as
sda1:20G
sda2:210G
sda3:3gSelect root partition- sda1
“formatting sda1”
Do you want separate home partition- y
Select home partition- sda2
“invalid argument”Then tried partitioning with installer same result.
Work around: Do not set /home partition in installer.
Post install edit /etc/fstab to mount /dev/sda2 on /home.
Mount /dev/sda2 on /home
mkdir /home/<user>
Copy /etc/skel to /home/<user>
chown -R <user>: /home/<user>
or
After Mount step from above
deluser
adduserNovember 3, 2020 at 2:46 pm #44207In reply to: APT based offline repo (small yad-bash project)
Memberex_Koo
ust wondering if it could be taken a step further, to also install programs that one installs after installing the main system.
Do you mean to give a list of packages and get the program to search for dependencies and download them all for latter installation? I think it is doable. I will need to create a separate button inside Download packages to select “download from list”, and let you select a file with packagenames to download and create a .repo file for easy install later.
I will have a look at this tonight.[/quote]
Yes just like the offline updater, have the packagers that you normal install after installation of the system, stored so they can be installed offline.
And even keep them updated just by checking for updates for the stored packages.Like having a script to install a package or packagers. Like below as an idea but from a stored off line repo.. Sorry it is a big scrpt.
#!/bin/bash # Borrowed some of the syntax from DasGeek among others... # Tested on Debian Buster and Testing # Version 0.1 ## Define Temp location - "dis" stands for "debian-install-script" tmd_dir=/tmp/dis ## Define some variables because I'm lazy install='apt install' update='apt update; apt upgrade -y' user=$USER #User=$(getent passwd 1000 | awk -F: '{ print $1}') ## Start script cp /etc/apt/sources.list /etc/apt/sources.list.original if [[ $EUID -ne 0 ]]; then echo "This script must be run as root type: sudo ./dialog.sh" exit 1 else #Update and Upgrade echo "Updating and Upgrading" $update echo "Creating temporary folder" mkdir $tmp_dir $install dialog cmd=(dialog --title "LD-Installer" --separate-output --checklist "Please Select Software You Want To Install:" 22 80 16) options=( #A "<----Category: Repositories---->" on 1_repos " Grant Standard User Root Access" off 2_repos " Contrib and Non-free Repos" off # 3_repos " Testing Repos" off # 4_repos " Unstable Repos" off # 5_repos " Experimental Repos" off 6_repos " Return to Original" off 7_repos " Liquorx-Kernel" off #B "<----Category: Alternate Installers---->" on 1_installer " Snap Packages" off 2_installer " Flatpak" off 3_installer " Synaptic" off 4_installer " PIP" off #C "<----Category: Text Editors---->" on 1_editor " Vim" off 2_editor " Nano" off 3_editor " Geany" off 4_editor " emacs" off 5_editor " Gedit" off #D "<----Category: Phone---->" on 1_phone " android" off 2_phone " iphone" off #E "<----Category: Terminal Programs---->" on 1_terminal " Compress/Decompress" off 2_terminal " UFW" off 3_terminal " Identify hardware" off 4_terminal " Python" off 5_terminal " Cups" off 6_terminal " Youtube-dl" off 7_terminal " Htop" off 8_terminal " Parted" off 9_terminal " Curl" off 10_terminal " Wget" off 11_terminal " Ranger" off 12_terminal " Dmenu" off 13_terminal " Rofi" off 14_terminal " Build Essential" off 15_terminal " SSH" off 16_terminal " Urxvt" off 17_terminal " Sakura" off 18_terminal " Terminator" off 19_terminal " Tilix" off 20_terminal " Xterm" off #F "<----Category: Terminal Customization---->" on 1_customize " Neofetch" off 2_customize " Screenfetch" off 3_customize " Figlet" off 4_customize " Lolcat" off 5_customize " Powerline" off #G "<----Category: Email---->" on 1_email " Thunderbird" off 2_email " Neomutt" off 3_email " Geary" off #H "<----Category: Web Browsers/Downloaders---->" on 1_web " Chromium" off 2_web " Google Chrome" off 3_web " Vivaldi" off 4_web " ICE-SSB-Application" off 5_web " Transmission" off #I "<----Category: Networking---->" on 1_network " SAMBA" off #J "<----Category: Graphics---->" on 1_graphics " Nvidia Driver" off 2_graphics " AMD Driver" off #K "<----Category: Sound---->" on 1_sound " Pulse Audio" off 2_sound " ALSA" off #L "<----Category: Fonts---->" on 1_font " Microsoft fonts" off 2_font " Ubuntu fonts" off #M "<----Category: Icons---->" on 1_icon " Numix icons" off 2_icon " Moka icons" off 3_icon " Mate icons" off 4_icon " Papirus icons" off 5_icon " Deepin-icons" off #N "<----Category: Photo Viewing/Editing---->" on 1_photo " Feh" off 2_photo " Gimp" off 3_photo " Inkscape" off 4_photo " Digikam" off 5_photo " Darktable" off 6_photo " Shotwell" off #O "<----Category: Media Viewing/Editing/Converting---->" on 1_media " Handbrake" off 2_media " Kdenlive" off 3_media " VLC" off 4_media " Audacity" off 5_media " Plex Media Server" off 6_media " Simple Screen Recorder" off 7_media " OBS Studio" off 8_media " Optical Drive Software" off 9_media " SM Player" off 10_media " FFmpeg" off #P "<----Category: Gaming---->" on 1_gaming " Steam" off 2_gaming " Lutris" off #Q "<----Category: File Explorer---->" on 1_files " Nemo" off 2_files " Thunar" off 3_files " Pcmanfm" off 4_files " Caja" off 5_files " Nautilus" off 6_files " Dolphin" off #R "<----Category: Desktop Customization---->" on 1_desktop " nitrogen" off 2_desktop " variety" off 3_desktop " lxappearance" off 4_desktop " conky" off 5_desktop " QT matches GTK" off 6_desktop " Vimix Theme" off 7_desktop " Adapta Theme" off 8_desktop " Polybar" off #S "<----Category: File Systems---->" on 1_filesystem " ZFS" off 2_filesystem " Exfat" off #T "<----Category: Virtualizaion---->" on 1_virtual " Virtualbox" off 2_virtual " Gnome Boxes" off #U "<----Category: System---->" on 1_system " Swappiness=10" off V "Post Install Auto Clean Up & Update" off) choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty) clear for choice in $choices do case $choice in # Section A -----------------------Repositories---------------------------- 1_repos) # Find the standard user you created during installation and make it a variable User=$(getent passwd 1000 | awk -F: '{ print $1}') # Echo the user into the sudoers file echo "$User ALL=(ALL:ALL) ALL" >> /etc/sudoers sleep 1 ;; 2_repos) #Enable Contrib and Non-free Repos echo "enabling Contrib and Non-free Repos" cat /etc/apt/sources.list >> /etc/apt/sources.list.bak sed -e '/Binary/s/^/#/g' -i /etc/apt/sources.list sed -i 's/main/main contrib non-free/gI' /etc/apt/sources.list apt update sleep 1 ;; # 3_repos) # #Enable Testing Repos # echo "enabling Bullseye Repos" # #cat /etc/apt/sources.list >> /etc/apt/sources.list.bak # #echo "deb http://deb.debian.org/debian testing main contrib non-free" >> /etc/apt/sources.list # apt update # sleep 1 # ;; # 4_repos) # #Enable Unstable Repos # echo "enabling Unstable Repos" # #cat /etc/apt/sources.list >> /etc/apt/sources.list.bak # #echo "deb http://ftp.us.debian.org/debian unstable main contrib non-free" >> /etc/apt/sources.list # #echo "deb-src http://ftp.us.debian.org/debain unstable main contrib non-free" >> /etc/apt/sources.list # apt update # sleep 1 # ;; # 5_repos) # #Enable Experimental Repos # cat /etc/apt/sources.list >> /etc/apt/sources.list.bak # #echo "deb http://ftp.us.debian.org/debain experimental main contrib non-free" >> /etc/apt/sources.list # #echo "deb-src http://ftp.us.debian.org/debian experimental main contrib non-free" >> /etc/apt/sources.list # apt update # sleep 1 # ;; 6_repos) #Return sources.list to original echo "Returning /etc/apt/sources.list to its Original State cat /etc/apt/sources.list.original > /etc/apt/sources.list apt update sleep 1 ;; 7_repos) #Install dependencies echo "installing dependencies" sudo apt install curl wget apt-transport-https dirmngr echo "getting custom kernel" codename="$(find /etc/apt -type f -name '*.list' | xargs grep -E '^deb' | awk '{print $3}' | grep -Eo '^[a-z]+' | sort | uniq -c | sort -n | tail -n1 | grep -Eo '[a-z]+$')" && sudo apt-get update && sudo apt-get install apt-transport-https && echo -e "deb http://liquorix.net/debian $codename main\ndeb-src http://liquorix.net/debian $codename main\n\n# Mirrors:\n#\n# Unit193 - France\n# deb http://mirror.unit193.net/liquorix $codename main\n# deb-src http://mirror.unit193.net/liquorix $codename main" | sudo tee /etc/apt/sources.list.d/liquorix.list && curl https://liquorix.net/linux-liquorix.pub | sudo apt-key add - && sudo apt-get update echo "DONE" echo "running updates" sudo apt update echo "YOU CAN INSTALL THE NEW KERNEL MANUALLY NOW OR WHEN THIS SCRIPT FINISHES" # Section B ---------------------Alternate Installers---------------------------- 1_installer) #Install snap.d echo "Installing Snap.d" sudo apt install snapd -yy sleep 1 ;; 2_installer) #Install flatpak echo "installing Flatpak" sudo apt install flatpak -yy sleep 1 ;; 3_installer) #Install Synaptic echo "installing Synaptic" sudo apt install synaptic -yy sleep 1 ;; 4_installer) #Install PIP echo "installing PIP -python installer" sudo apt install python-pip python3-pip -yy sleep 1 ;; # Section C ------------------------Text Editors------------------------------ 1_editor) #Install Vim echo "Installing VIM" sudo apt install vim -yy sleep 1 ;; 2_editor) #Install Nano echo "Installing Nano" sudo apt install nano -yy sleep 1 ;; 3_editor) #Install Geany echo "Installing Geany" sudo apt install geany -yy sleep 1 ;; 4_editor) #Install Emacs echo "Installing Emacs" sudo apt install emacs -yy sleep 1 ;; 5_editor) #Install Gedit" echo "Installing Gedit" sudo apt install gedit -yy sleep 1 ;; # Section D ---------------------------Phone------------------------------------ 1_phone) #Install Everything for Android Phones echo "Installing Android SDK, ADB, Fastboot, and Build Tools" sudo apt install android-sdk adb fastboot android-sdk-build-tools android-sdk-common android-sdk-platform-tools -yy sleep 1 ;; 2_phone) #Install Everything to do with an iPhone" echo "Installing All Packages for iPhone" sudo apt install ideviceinstaller libimobiledevice-utils python-imobiledevice libimobiledevice6 libplist3 libplist-utils python-plist ifuse usbmuxd libusbmuxd-tools gvfs-backends gvfs-bin gvfs-fuse -yy sudo echo "user_allow-other" >> /etc/fuse.conf sudo usermod -aG fuse $User sleep 1 ;; # Section E --------------------------Terminal Programs--------------------------- 1_terminal) #Install Compression Programs echo "Installing Compression Programs" sudo apt install p7zip p7zip-full unrar-free unrar unrar-free unzip zip -yy sleep 1 ;; 2_terminal) #Install Firewall echo "Installing UFW" sudo apt install ufw gufw -yy sleep 1 ;; 3_terminal) #Install Hardware Identifier" echo "Installing lshw" sudo apt install lshw lshw-gtk -yy sleep 1 ;; 4_terminal) #Install Cups echo "Installing CUPS" sudo apt install cups cups-pdf -yy sleep 1 ;; 5_terminal) #Install Youtube-dl echo "Installing youtube-dl" sudo apt install wget -yy sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+x /usr/local/bin/youtube-dl hash -r sleep 1 ;; 6_terminal) #Install Htop" echo "Installing Htop" sudo apt install htop -yy sleep 1 ;; 7_terminal) #Install Parted echo "Installing Parted and Gparted" sudo apt install parted gparted -yy sleep 1 ;; 8_terminal) #Install Curl echo "Installing Curl" sudo apt install curl -yy sleep 1 ;; 9_terminal) #Install Wget echo "Installing Wget" sudo apt install wget -yy sleep 1 ;; 10_terminal) #Install Ranger echo "Installing Ranger" sudo apt install ranger -yy sleep 1 ;; 11_terminal) #Install Dmenu echo "Installing Dmenu" sudo apt install dmenu -yy sleep 1 ;; 12_terminal) #Install Rofi echo "Installing Rofi" sudo apt install rofi -yy sleep 1 ;; 13_terminal) #Install Build-Essential echo "Installing Build-Essential" sudo apt install build-essential cmake -yy sleep 1 ;; 14_terminal) #Install SSH echo "Installing SSH" sudo apt install ssh -yy sudo systemctl enable ssh sudo systemctl start ssh sleep 1 ;; 15_terminal) #Install Urxvt echo "Installing Urxvt" sudo apt install rxvt-unicode -yy sleep 1 ;; 16_terminal) #Install Sakura echo "Installing Sakura" sudo apt install sakura -yy sleep 1 ;; 17_terminal) #Install Terminator echo "Installing Terminator" sudo apt install terminator -yy sleep 1 ;; 18_terminal) #Install Tilix echo "Installing Tilix" sudo apt install tilix -yy sleep 1 ;; 19_terminal) #Install Xterm echo "Install XTerm" sudo apt install xterm -yy sleep 1 ;; # Section F -------------------------Terminal Customization-------------------------- 1_customize) #Install Neofetch echo "Installing Neofetch" sudo apt install Neofetch -yy sleep 1 ;; 2_customize) #Install Screenfetch echo "Installing Screenfetch" sudo apt install screenfetch -yy sleep 1 ;; 3_customize) #Install Figlet echo "Installing Figlet" sudo apt install figlet -yy sleep 1 ;; 4_customize) #Install Lolcat echo "Installing lolcat" sudo apt install lolcat -yy sleep 1 ;; 5_customize) #Install Powerline echo "Installing Powerline" sudo apt install powerline git -yy #Make a powerline font folder sudo mkdir /usr/share/fonts/powerline # clone powerline fonts from github git clone https://github.com/powerline/fonts # change directories into fonts folder created by cloning powerline from github cd fonts # run installation script for powerline fonts ./install.sh # copy powerline fonts into the powerline folder wer created eariler sudo cp /home/$USER/.local.share/fonts/*Powerline* /usr/share/fonts/powerline #backup the bashrc just to be safe sudo cp .bashrc .bashrc.bak #enable Powerline Shell echo "if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then source /usr/share/powerline/bindings/bash/powerline.sh fi" >> .bashrc # Restart Bash . .bashrc sleep 1 ;; # Section G ----------------------------------Terminal Customization------------------------ 1_email) #Install Thunderbird echo "Installing Thunderbird" sudo apt install thunderbird -yy sleep 1 ;; 2_email) #Install NeoMutt echo "Install NeoMutt" sudo apt install neomutt -yy sleep 1 ;; 3_email) #Install Geary echo "Installing Geary" sudo apt install geary -yy sleep 1 ;; # Section H ----------------------------------Web Browsers/Downloaders------------------------- 1_web) #Install Chromium echo "Installing Chromium" sudo apt install chromium -yy sleep 1 ;; 2_web) #Install Google Chrome echo "Installing Gooogle Chrome" sudo apt install wget -yy wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo dpkg -i google-chome*.deb sleep 1 ;; 3_web) #Install Vivaldi echo "Installing Vivaldi" sudo apt install wget -yy wget https://downloads.vivaldi.com/stable/vivaldi-stable_2.1.1337.47-1_amd64.deb sudo dpkg -i vivaldi*.deb sleep 1 ;; 4_web) #Install ICE-SSB-Application echo "Installing ICE-SSB-Application" sudo apt install wget -yy wget https://launchpad.net/~peppermintos/+archive/ubuntu/ice-dev/+files/ice_6.0.5_all.deb sudo dpkg -i ice*.deb sleep 1 ;; 5_web) #Install Transmission echo "Installing Transmission" sudo apt install transmission-gtk -yy sleep 1 ;; # Section I ----------------------------------Networking---------------------------------------------- 1_network) #Install Samba echo "Installing Samba" sudo apt install samba samba-common samba-libs cifs-utils libcups2 cups smbclient gvfs-backends net-tools network-manager network-manager-openvpn network-manager-openvpn-gnome #backup smb.conf sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak sudo chmod 755 /etc/samba/smb.conf.bak sudo chmod 755 /etc/samba/smb.conf sudo grep -v -E "^#|^;" /etc/samba/smb.conf.bak | grep . > /etc/samba/smb.conf sudo systemctl enable smbd sudo systemctl start smbd sudo systemctl enable nmbd sudo systemctl start nmbd sleep 1 ;; # Section J -------------------------------Graphics--------------------------------------------------- 1_graphics) #Install Nvidia Driver echo "Installing Nvidia Driver" echo "Make sure you have the contrib and non-free repos enabled and updated" sudo apt install nvidia-driver -yy sleep 1 ;; 1_graphics) #Install AMD Driver echo "Installing AMD firmware for graphics cards" sudo apt install firmware-amd-graphics -yy sleep 1 ;; # Section K --------------------------------------Sound---------------------------------------------- 1_sound) #Install Pulse Audio echo "Installing Pulse Audio" sudo apt install pulseaudio pulseaudio-utils pavucontrol pulseaudio-equalizer gstreamer1.0-pulseaudio -yy sleep 1 ;; 2_sound) #Install ALSA echo "Installing ALSA" sudo apt install alsa-utils gstreamser1.0-alsa alsamixergui alsaplayer-gtk alsa-player-daemon alsa-player-common alsa-player-alsa libao-common libao-dbd libao-dev libao4 libasound2 libasound-data libasoundev-libasound-doc libasound-plugins -yy sleep 1 ;; # Section L -------------------------------------Fonts------------------------------------------------ 1_font) #Install Microsoft fonts echo "Installing Microsoft fonts" sudo apt install ttf-mscorefonts-installer -yy sleep 1 ;; 2_font) #Install Ubuntu fonts echo "Installing Ubuntu fonts" # make an ubuntu font folder sudo mkdir /usr/share/fonts/truetype/ubuntu-fonts # download ubuntu font family sudo apt install wget unzip -yy wget https://assets.ubuntu.com/v1/fad7939b-ubuntu-font-family-0.83.zip unzip *.zip # change directories into unzipped ubuntu folder cd ubuntu-font-family* # move all ttf fonts into the ubuntu font folder we created eariler sudo mv *.ttf /usr/share/fonts/truetype/ubuntu-fonts/ # change directories back home cd .. # remove all files dending in ".zip" rm *.zip # remove all folders beginning with "ubuntu-font-family" rm -r ubuntu-font-family* sleep 1 ;; # Section M ---------------------------------Icons--------------------------------------------------- 1_icon) #Install Numix Icons echo "Installing Numix Icons" sudo apt install numix-icon-theme -yy sleep 1 ;; 2_icon) #Install Moka Icons echo "Installing Moka Icons" sudo apt install moka-icon-theme -yy sleep 1 ;; 3_icon) #Install Mate Icons echo "Installing Mate Icons" sudo apt install mate-icon-theme mate-icon-theme-faenza -yy sleep 1 ;; 4_icon) #Install Papirus Icons echo "Installing Papirus Icons" sudo apt install papirus-icon-theme -yy sleep 1 ;; 5_icon) #Install Deepin Icons echo "Installing Deepin Icons" sudo apt install deepin-icon-theme -yy sleep 1 ;; # Section N ---------------------------------Photo Viewing/Editing-------------------------------------- 1_photo) #Install Feh echo "Installing Feh" sudo apt install feh -yy sleep 1 ;; 2_photo) #Install Gimp echo "Installing Gimp" sudo apt install gimp -yy sleep 1 ;; 3_photo) #Install Inkscape echo "Installing Inkscape" sudo apt install inkscape -yy sleep 1 ;; 4_photo) #Install Digikam echo "Installing Digikam" sudo apt install digikam -yy sleep 1 ;; 5_photo) #Install Darktable echo "Installing Darktable" sudo apt install darktable -yy sleep 1 ;; 6_photo) #Install Shotwell echo "Installing Shotwell" sudo apt install shotwell shotwell-common -yy sleep 1 ;; # Section O --------------------------Media Viewing/Editing/Converting--------------------------------- 1_media) #Install Handbrake echo "Installing Handbrake" sudo apt install handbrake -yy sleep 1 ;; 2_media) #Install Kdenlive echo "Installing Kdenlive" sudo apt install kdenlive -yy sleep 1 ;; 3_media) #Install VLC echo "Installing VLC" sudo apt install VLC -yy sleep 1 ;; 4_media) #Install Audacity echo "Installaing Audacity" sudo apt install audacity -yy sleep 1 ;; 5_media) #Install Plex Media Server echo "Installing Plex Media Server" sudo apt install wget -yy wget -q https://downloads.plex.tv/plex-media-server-new/1.16.2.1321-ad17d5f9e/debian/plexmediaserver_1.16.2.1321-ad17d5f9e_amd64.deb sudo dpkg -i plex*.deb sudo systemctl enable plexmediaserver sudo systemctl start plexmediaserver sleep 1 ;; 6_media) #Install Simple Screen Recorder echo "Installing Simple Screen Recorder" sudo apt install simplescreenrecorder -yy sleep 1 ;; 7_media) #Install OBS Studio echo "Installing OBS-Studio" sudo apt install obs-studio -yy sleep 1 ;; 8_media) #Install Optical Drive Software echo "Installing Optical Drive Software" sudo apt install k3b asunder -yy sudo chmod 4711 /usr/bin/cdrdao sudo chmod 4711 /usr/bin/wodim sleep 1 ;; 9_media) #Install SM Player echo "Installing SMPlayer" sudo apt install smplayer smplayer-themes -yy sleep 1 ;; 10_media) #Install FFmpeg echo "Install FFmpeg" sudo apt install ffmpeg -yy sleep 1 ;; # Section P --------------------------------Gaming------------------------------------------------- 1_gaming) #Installing Steam ulimit -Hn > ulimit.txt # fix permissions for scripting sudo chown $USER /etc/apt/sources.list.d # add 32bit architecture sudo dpkg --add-architecture i386 # update sudo apt update -yy # Install vulkan and mesa drivers sudo apt install mesa-vulkan-drivers mesa-vulkan-drivers:i386 -yy # Install dxvk sudo apt install dxvk dxvk-wine32-development dxvk-wine64-development -yy # Install Steam sudo apt install steam -yy # Install game mode sudo apt install gamemode -yy sleep 1 ;; 2_gaming) #Install Lutris echo " Installing Lutris" # import wine gpg key sudo chown $User /etc/apt/sources.list sudo chmod 755 /etc/apt/sources.list sudo chown $User /etc/apt/sources.list.d/ sudo chmod 755 /etc/apt/sources.list.d/ sudo wget -nc https://dl.winehq.org/wine-builds/winehq.key # add wine gpg key sudo apt-key add winehq.key # add wine repository sudo touch /etc/apt/sources.list.d/wine.list sudo echo "deb https://dl.winehq.org/wine-builds/debian buster main" > /etc/apt/sources.list.d/wine.list # update sudo apt update -yy # Install wine staging sudo apt install --install-recommends winehq-staging -yy # Install wine-tricks sudo apt install winetricks -yy # Install PlayOnLinux sudo apt install playonlinux -yy # Import lutris repository key sudo wget https://download.opensuse.org/repositories/home:/strycore/Debian_9.0/Release.key # Add key with apt sudo apt-key add Release.key # Add Lutris Repository sudo touch /etc/apt/sources.list.d/lutris.list sudo echo "deb http://download.opensuse.org/repositories/home:/strycore/Debian_9.0/ ./" > /etc/apt/sources.list.d/lutris.list $update sudo apt install lutris -yy # Change Permissions to Root sudo chown root:root /etc/apt/sources.list sudo chmod 600 /etc/apt/sources.list sudo chown root:root /etc/apt/sources.list.d/ sudo chmod 600 /etc/apt/sources.list.d/ sleep 1 ;; # Section Q -----------------------------------File Explorers----------------------------------------------- 1_files) #Install Nemo echo "Installing Nemo" sudo apt install nemo nemo-python nemo-data nemo-fileroller ffmpegthumbnailer nemo-nextcloud nemo-owncloud -yy sleep 1 ;; 2_files) #Install Thunar echo "Installing Thunar" sudo apt install thunar thunar-data thunar-archive-plugin thunar-media-tags-plugin thunar-vcs-plugin thunar-volman ffmpegthumbnailer -yy sleep 1 ;; 3_files) #Install Pcmanfm echo "Installing Pcmanfm" sudo apt install pcmanfm pcmanfm-qt ffmpegthumbnailer -yy sleep 1 ;; 4_files) #Install Caja echo "Installing Caja" sudo apt install caja caja-common caja-actions caja-actions-common caja-admin caja-extensions-common caja-image-converter caja-open-terminal caja-sendto caja-share caja-wallpaper caja-xattr-tage caja-rename caja-seahorse caja-nextcloud caja-owncloud caja-dropbox ffmpegthumbnailer -yy sleep 1 ;; 5_files) #Install Nautilus echo "Installing Nautilus" sudo apt install nautilus nautilus-data nautilus-admin nautilus-compare nautilus-hide nautilus-scripts-manager nautilus-sendto nautilus-share ffmpegthumbnailer -yy sleep 1 ;; 6_files) #Install Dolphin echo "Installing Dolphin" sudo apt install doplhin dolphin-dev ffmpegthumbnailer -yy sleep 1 ;; # Section R ----------------------------------Desktop Customization--------------------------------------------- 1_desktop) #Install nitrogen echo "Installing nitrogen" sudo apt install nitrogen -yy sleep 1 ;; 2_desktop) #Install Variety echo "Installing Variety" sudo apt install variety -yy sleep 1 ;; 3_desktop) #Install LX Appearance echo "Installing LXAppearance" sudo apt install lxappearance -yy sleep 1 ;; 4_desktop) #Install conky echo "Installing Conky" sudo apt install conky-all sleep 1 ;; 5_desktop) #Make qt match gtk echo "Make QT match GTK Themes" sudo chown $User /etc/environment sudo chmod 755 /etc/environment sudo echo "QT_QPA_PLATFORMTHEME=gtk2" >> /etc/environment sudo chown root:root /etc/environment sudo chmod 600 /etc/environment sleep 1 ;; 6_desktop) #Install Vimix Theme echo "Installing Vimix Theme" #Install git sudo apt install git -yy #Clone the git Repo echo "Cloning the Git Repo" git clone https://github.com/vinceliuice/vimix-gtk-themes cd vimix-gtk-themes ./Install cd .. sudo rm -r vimix* sleep 1 ;; 7_desktop) #Install Adapta Theme echo "Installing Adapta Themes" sudo apt install adapta-gtk-theme -yy sleep 1 ;; 8_desktop) # Install polybar echo "installing Dependencies" sudo apt install cmake cmake-data libcairo2-dev libxcb1-dev libxcb-ewmh-dev -yy sudo apt install libxcb-icccm4-dev libxcb-image0-dev libxcb-randr0-dev libxcb-util0-dev -yy sudo apt install libxcb-xkb-dev pkg-config python-xcbgen xcb-proto libxcb-xrm-dev -yy sudo apt install libasound2-dev libmpdclient-dev libiw-dev libcurl4-openssl-dev -yy sudo apt install libpulse-dev ccache libxcb-composite0 libxcb-composite0-dev -yy # Download from polybar from github echo "Downloading Polybar form Github" git clone https://github.com/jaagr/polybar.git # Change directories into polybar cd polybar echo "Installing Polybar" ./build.sh ;; # Section S -----------------------------------File Systems------------------------------------------- 1_filesystem) #Install ZFS echo " Make sure you have the contrib and non-free repos enabled and updated" sleep 1 echo "Installing the headers for your kernel" sudo apt install linux-headers-"$(uname -r)" linux-image-amd64 -yy echo "Installing the ZFS DKMS and Utilities" sudo apt install zfs-dkms zfsutils-linux -yy echo "Installing kernel modules" sudo modprobe zfs echo "Enabling ZFS Services" sudo systemctl enable zfs.target sudo systemctl enable zfs-import-cache sudo systemctl enable zfs-mount sudo systemctl enable zfs-import.target sudo systemctl enable zfs-import-scan sudo systemctl enable zfs-share echo "Starting ZFS Services" sudo systemctl start zfs.target sudo systemctl start zfs-import-cache sudo systemctl start zfs-mount sudo systemctl start zfs-import.target sudo systemctl start zfs-import-scan sudo systemctl start zfs-share sleep 1 ;; 2_filesystem) #Install Exfat echo "Installing Exfat Utilities" sudo apt install exfat-utils -yy sleep 1 ;; # Section T ------------------------------------Virtualization------------------------------------------ 1_virtual) #Install Virtualbox echo "wget is needed... installing" sudo apt install wget -yy echo "Setting up the Repository" wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add - wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add - echo "Adding Repo to Sources.list" sudo chown $USER /etc/apt/sources.list.d/ sudo chmod 755 /etc/apt/sources.list.d/ sudo echo "deb http://download.virtualbox.org/virtualbox/debian bionic contrib" >> /etc/apt/sources.list.d/virtualbox.list echo "Running Updates" sudo apt update -yy echo "Installing Virtualbox" sudo apt install virtualbox-6.0 -yy echo "Downloading Extension Pack" wget -q https://download.virtualbox.org/virtualbox/6.0.10/Oracle_VM_VirtualBox_Extension_Pack-6.0.10.vbox-extpack echo "Adding user to the vbox user group" sudo usermod -aG vboxusers $User sleep 1 ;; 2_virtual) #Install Gnome Boxes echo "Installing Gnome Boxes" sudo apt install gnome-boxes -yy sleep 1 ;; V) #Cleanup echo "Cleaning up" sudo apt update -yy sudo apt upgrade -yy sudo apt autoremove -yy rm -rf $tmp_dir ;; esac done fiJune 12, 2020 at 12:06 pm #37288Topic: Missing Icon Apps in menu antiX when I install new software
in forum SoftwareMember
wachin
Hello antiX support, many times I have had the problem that the applications menu when I install a new program the icons do not appear
I made this tutorial in antiX 19 x386 default iceWM environment
I write in terminal:
desktop-menu --write-out-globaland appear:
Writing Menu: jwm Traceback (most recent call last): File "/usr/local/bin/desktop-menu", line 313, in <module> build_menu() File "/usr/local/bin/desktop-menu", line 277, in build_menu text = file((USER_HOME+"/"+Var.Conf_Dir+"/"+Var.App_File), "w") IOError: [Errno 13] Permiso denegado: '/usr/share/desktop-menu//.jwm/menu-applications'Here a picture:

and I looked for the solution and found it, is this:
For icewm
sudo chmod -R 777 /usr/share/desktop-menu//.icewm/menu-applications sudo chown -R $ USER: $ USER /usr/share/desktop-menu//.icewm/menu-applicationsFor jwm
sudo chmod -R 777 /usr/share/desktop-menu//.jwm/menu-applications sudo chown -R $ USER: $ USER /usr/share/desktop-menu//.jwm/menu-applicationsFor Fluxbox
sudo chmod -R 777 /usr/share/desktop-menu//.fluxbox/menu-applications sudo chown -R $ USER: $ USER /usr/share/desktop-menu//.fluxbox/menu-applicationsbut i think this error should not be present, and it is present since version 17.1
Based in:
How can I become the owner of a file/folder that root owns?
https://askubuntu.com/a/40854/145772How to change permissions from root user to all users?
https://unix.stackexchange.com/a/307914/312968- This topic was modified 2 years, 11 months ago by wachin.
May 28, 2020 at 9:12 am #36412In reply to: Cannot use gksu anymore
Memberkaye
gksudo spacefm
does not work. Same error.
/home/kaye/.Xauthority
is still there.
I executed this:
sudo chown kaye:kaye ~/.Xauthority
Still the same error message.
It looks like a lot of things are affected. If I open a libreoffice-calc .ods file, I get this:
The lock file could not be created for exclusive access by LibreOffice, due to missing permission to create a lock file on that file location or lack of free disk space.Maybe it would be easier to just re-install everything.
May 28, 2020 at 8:51 am #36411In reply to: Cannot use gksu anymore
Member
Xecure
I suspect .Xauthority has been deleted somehow in your home folder. Check to see if you still have it there.
If you run
gksudo spacefm
does it work?If it does, you will have a new .Xauthority file in your home folder, but it will be owned by root. To have your user own it, you have to:
sudo chown username:username ~/.Xauthority
where user is the name of your user. If you user is kaye, it would look like:
sudo chown kaye:kaye ~/.XauthorityantiX Live system enthusiast.
General Live Boot Parameters for antiX.February 29, 2020 at 4:48 am #33188Member
mikey777
@fatmac
many thanks for your reply about linking to users. In the end I didn’t need to use /etc/fstab at all – just mounting the drive and then changing ownership seemed to work fine.Here is the fix that others might find useful:
1. Open terminal
2. Use gparted to give the drive a label (name) that you want the drive to have: I’ve called mine Samsung-2TB
3. Make a directory for the newly formatted USB-drive at the mount point /media as follows:
sudo mkdir -p /media/Samsung-2TB
3. Change ownership of /media/Samsung-2TB to the username (in this case the username is netbook) as follows:
sudo chown -R netbook /media/Samsung-2TBThat’s it – all done 🙂
- This reply was modified 3 years, 2 months ago by mikey777.
▪ 32-bit antix19.4-core+LXDE installed on :
- (2011) Samsung NP-N145 Plus (JP04UK) – single-core CPU Intel Atom N455@1.66GHz, 2GB RAM, integrated graphics.
▪ 64-bit antix21-base+LXDE installed on:
- (2008) Asus X71Q (7SC002) – dual CPU Intel T3200@2.0GHz, 4GB RAM. Graphics: Intel Mobile 4 Series, integrated graphics
- (2007) Packard Bell Easynote MX37 (ALP-Ajax C3) – dual CPU Intel T2310@1.46GHz, 2GB RAM. Graphics: Silicon Integrated Systems.November 20, 2019 at 10:04 pm #29550In reply to: [SOLVED] Change username in Live USB
Anonymous
RECENTLY, THE FORUM HAS REPEATEDLY SWALLOWED (ANTISPAM?) MESSAGES THAT I HAVE ATTEMPTED TO POST.
RECENTLY, THE FORUM HAS REPEATEDLY SWALLOWED (ANTISPAM?) MESSAGES THAT I HAVE ATTEMPTED TO POST.
RECENTLY, THE FORUM HAS REPEATEDLY SWALLOWED (ANTISPAM?) MESSAGES THAT I HAVE ATTEMPTED TO POST.
RECENTLY, THE FORUM HAS REPEATEDLY SWALLOWED (ANTISPAM?) MESSAGES THAT I HAVE ATTEMPTED TO POST.
RECENTLY, THE FORUM HAS REPEATEDLY SWALLOWED (ANTISPAM?) MESSAGES THAT I HAVE ATTEMPTED TO POST.
RECENTLY, THE FORUM HAS REPEATEDLY SWALLOWED (ANTISPAM?) MESSAGES THAT I HAVE ATTEMPTED TO POST.
RECENTLY, THE FORUM HAS REPEATEDLY SWALLOWED (ANTISPAM?) MESSAGES THAT I HAVE ATTEMPTED TO POST.
RECENTLY, THE FORUM HAS REPEATEDLY SWALLOWED (ANTISPAM?) MESSAGES THAT I HAVE ATTEMPTED TO POST.
RECENTLY, THE FORUM HAS REPEATEDLY SWALLOWED (ANTISPAM?) MESSAGES THAT I HAVE ATTEMPTED TO POST.strange things appear to happen
/etc/skel/.config/rox.sourceforge.net/ROX-Filer/globicons
is hardcoded such that it looks to “/home/demo/.config/rox.sourcefor…”/etc/skel/.gtkrc
contains a hardcoded line:
include “/home/demo/.gtkrc.mine”/etc/skel/.gtkrc-2.0
contains a hardcoded line:
include “/home/demo/.gtkrc-2.0.mine”^—- Anyone who creates multiple user login accounts will need to manually edit these
and, search to weed out any other such hardcoded references to “demo”.
cd ~
grep -inr ‘[^a-z]demo[^a-z]’Also, check to verify ownership any permissions of files under each /home/_someusername_ / are correct.
(I have not noticed any anomolies, but would still recommend to check)
If you are unsure how to use the chmod and chown commands,
man chmod
man chownI haven’t identified any prospective problems related to live-remaster,
aside from (possibly) resetting the autologin_user demo assignement within slim.conf ~~ a detail which you would be able to easily change afterward during next liveboot session.possible to show username instead of generic ‘–antiX–‘ on top of Fluxbox menu?
Sure, it’s easily changed. You can discover the appropriate file to edit by grep’ping:
cd ~
grep -nr ‘[(][-][-]antiX[-][-][)]’November 20, 2019 at 9:53 pm #29549In reply to: [SOLVED] Change username in Live USB
Anonymous
strange things appear to happen
/etc/skel/.config/rox.sourceforge.net/ROX-Filer/globicons
is hardcoded such that it looks to “/home/demo/.config/rox.sourcefor…”/etc/skel/.gtkrc
contains a hardcoded line:
include “/home/demo/.gtkrc.mine”/etc/skel/.gtkrc-2.0
contains a hardcoded line:
include “/home/demo/.gtkrc-2.0.mine”^—- Anyone who creates multiple user login accounts will need to manually edit these
and, search to weed out any other such hardcoded references to “demo”.
cd ~
grep -inr ‘[^a-z]demo[^a-z]’Also, check to verify ownership any permissions of files under each /home/_someusername_/ are correct.
(I have not noticed any anomolies, but would still recommend to check)
If you are unsure how to use the chmod and chown commands,
man chmod
man chownI haven’t identified any prospective problems related to live-remaster,
aside from (possibly) resetting the autologin_user demo assignement within slim.conf ~~ a detail which you would be able to easily change afterward during next liveboot session.possible to show username instead of generic ‘–antiX–‘ on top of Fluxbox menu?
Sure, it’s easily changed. You can discover the appropriate file to edit by grep’ping:
cd ~
grep -nr ‘[(][-][-]antiX[-][-][)]’November 2, 2019 at 10:06 pm #28870In reply to: Help with PCmanFM – Folder Option to "Open as Root"?
Anonymous
rej, in case you are stuck with only a FAT32-formatted pendrive in hand & don’t want to reformat it b/c it also contains “other stuff, which must be readable from windows PCs” here’s a workaround:
On the antiX 17 system, launch spaceFM and right-click }}} New }}} Archive.
Name the archivefile “transfer.tar.gz” or similar.
Right-click the new archivefile in spaceFM }} Open }} “archive manager”.You can drag the archive manager app window off to the side and, browse across your folders (using rox or spacefm) and drag/drop any items of interest onto the archivemanager window. After you have gathered the items of interest, copy the transfer.tar.gz file onto the pendrive.
-=-
When you copy transfer.tar.gz from the pendrive onto another system, you’ll only need to “sudo chown rj:rj /path/to/transfer.tar.gz” then, (as user “rj”) OpenWith archive manager. Then (as user “rj”) launch a file manager and you can drag items from the archive manager window to desired locations in the file manager and the original permissions will be preserved._____________________
(note to self: I installed in a fresh antiX 19 instance “pcmanfm” and “pcmanfm-qt” and noted that pcmanfm uses 27MB ram, pcmanfm uses 45MB ram. In comparison, spaceFM (gtk2 version) uses 48MB and rox-filer uses 47MB.September 1, 2019 at 9:46 am #26569In reply to: How can I play MP4a audio files?
Member
Xecure
I couldn’t find any audio Codec’s in the Package Installer and the Package Manager was overloaded with with items that have ‘codec’ in their title or description.
Codecs can also be installed from Control Center

Control Center > Drivers > Install Restricted Codecs
If that is not the issue, please ignore this reply.When I googled “https://www.antixforum.com/forums/topic/bug-in-synaptic/#post-4375”
Don’t google the antix forum (it is not in google). Simply click the link caprea has provided and it should open the forum post.
Anyway, the answer linked by skidoo that is linked by caprea, is the 7th reply on that page, also by skidoo. If you have trouble finding it, this is what skidoo says:aptitude & synaptic utilize the user _apt to download packages.
This error occurs when _apt lacks write permission for either
/var/cache/apt/archives/partial/ or an existing file /var/cache/apt/archives/partial/whatever_file_name.deb
so it downloaded the file as root.solution:
ensure /var/cache/apt/archives/partial/ and everything below it are writeable for _apt, e.g. by running
sudo chown -Rv _apt:root /var/cache/apt/archives/partial/
sudo chmod -Rv 700 /var/cache/apt/archives/partial/- This reply was modified 3 years, 8 months ago by Xecure. Reason: quoting skidoo's answer
antiX Live system enthusiast.
General Live Boot Parameters for antiX.August 23, 2019 at 9:56 pm #26251In reply to: OT: Sometimes …
Memberrej
noClue-
Thanks for the explanation.
used:
rj@antix19rj:~
$ su
root@antix19rj:/home/rj# chown -R $USER:$USER /home/$USER
root@antix19rj:/home/rj# chmod -R 755 /home/$USER
root@antix19rj:/home/rj#Nothing changed (that is apparent) – permissions still the same.
For proper understanding of Linux rights management, you should read some thorough explanations first!
Thanks – Found some tutorials for this. One is specifically Debian.
August 23, 2019 at 4:34 am #26214In reply to: OT: Sometimes …
Anonymous
@ rej
First, please take my apology for the troubles it caused.
I assumed that you have the basic Linux rights management understanding, but I was wrong.Are you guys testing with the Base or Full version?
Makes no difference on that matter.
sudo chown -R $rj:$rj /home/$rj
and
sudo chmod -R 644 /home/$rj
————–Deleted home folder and nothing worked – no menu or logout – powered off.
Re-installed 3 times and tried the 644 version 3 times. Same result. Maybe I did something wrong.
You did it very much wrong.
@ BobC
… the same thing happened to me and I ended up needing to reinstall.
No need to reinstall even if, reinstalling is a better chice at that point, since the basic problem stays there.
Rej, it’s so:
In /home is your own main user folder, containing all other user folders and named as your user name.
I suppose it’s called “rj” in your case … /home/rj
Now, the rights are written either as 3 numbers or 3×3 letters.
644 == rw–r– –r– – (3-bit word, a combination of 4 2 1)
If you see a “d” at the beginning, it stands for “directory”.
Each of those numbers (or each group of letter groups) stand for one user: user – group – others
And there is a “$” sign which stands for the variable.
“-R” stands for “recursive”.
Last, normal files (some PDF, TXT, JPG, PNG …) in Linux should have the permission “6” (r + w — read + write) for yourself and the directories should be “7” (rwx) since you need to be able to execute them (enter their contents).
What went wrong in your case is:
There’s no user $ry.
It’s either user “$USER”, a variable that stands for the user which is executing the command, or it’s “rj”.
Will say, if a user “rj” is executing the command “chown $USER:$USER”, it’ll actually automatically do “chown rj:rj”.
After executing:
sudo chown -R $rj:$rj /home/$rj and sudo chmod -R 644 /home/$rj
… you made nonexistent user “$rj” take the ownership of all files and …
… you took him permission to access its own home folder including all the files inside.
Actually, at that point, you’re not even able to shut down your system anymore and if you ever reach the login screen again and try to log in, you’ll get only:
See 2nd screenshot.
If you had been executing:
sudo chown -R rj:rj /home/rj (“rj” would become the owner of /home/rj folder and all other files and folders inside)
sudo chmod -R 644 /home/rj (“rj” would lose the permission to enter /home/rj folder and all files and folders inside would be set to read + write permissions)
sudo chmod 755 /home/rj (“rj” would be granted permission to enter the /home/rj directory and read, write and execute all files inside)
You’ve noticed missing “-R” in the last command?
Example: example.pdf inside folder Documents
“rj” would have right to read and write example.pdf, but it wouldn’t be able to access that file, since it wouldn’t have the rights to open the folder, containing that file itself.
See 1st screenshot … you’ll notice the red file names.
So, that’s what went wrong and why.
Now, if you make it to screw yourself up that way, you’ll (want to, but not necessarily need to) reinstall your system or, you’ll remember that you’re not the only user.
There’s still “root” user that owns and controls the system.
At (re~) boot, you can press “e”, look for the Grub line and add “single” at the end.
See 3rd screenshot.
This will bring you to: See 4th screenshot.
There you can log in as root and repair the damage you’ve done before.
This works with or without GUI — it doesn’t really matter what you choose.
One way or the other, it’s always the “root” user doing its job inside of the Terminal.See screenshots 5 ~ 8.
Your files are still there and that’s all what matters.
Once at that point, you could easily create a new user and copy your files back to your new home directory.
Or, you simply reboot and log in with your username (“rj”) again and pretend that nothing has happened.😉
* This was just a very basic explanation, to give you the idea of what / why it went wrong.
For proper understanding of Linux rights management, you should read some thorough explanations first!P.S.
Thanks Dave! The copy and paste error while changing 755 into 644. 🙁August 22, 2019 at 11:26 am #26191In reply to: OT: Sometimes …
Memberrej
noClue, BobC, and Dave-
Thanks for the input.
Made snapshot and bootable USB to test:sudo chown -R $rj:$rj /home/$rj
and
sudo chmod -R 755 /home/$rj
—————
Did not change anything
—————
sudo chown -R $rj:$rj /home/$rjand
sudo chmod -R 644 /home/$rj
————–Deleted home folder and nothing worked – no menu or logout – powered off.
Re-installed 3 times and tried the 644 version 3 times. Same result. Maybe I did something wrong.
August 22, 2019 at 2:33 am #26153In reply to: OT: Sometimes …
Anonymous
The wallpaper issue … Grub background … taking spaces out of the file name …
NEVER use empty spaces and special characters in names. Use only “clean” letters (NO ä, ö, ü, à, é, è …) and “-” or “_”.
As far as the executable files, this has also never happened previously and I have installed it so many times on various computers …
There’s always “the first time”.
To fix it in a matter of seconds, open the Terminal and execute:
CLOSE ALL RUNNING PROGRAMS EXCEPT THE TERMINAL!
($USER == your username / home directory)
sudo chown -R $USER:$USER /home/$USERand
sudo chmod -R 755 /home/$USERJuly 31, 2019 at 2:21 pm #25213In reply to: XFCE4 error loging in after messing with /etc/passwd
Moderator
Brian Masinick
When you change user information it is important to change the file and directory rights for everything in the directory tree used by the user account.
If you changed ziga account details then you will have to make the changes from root. Use su or sudo to gain root access.
Then run the command:
chown -R ziga /home/ziga
You can change the group ID using a GID after the UID:
chown -R riga:riga /home/riga
where the user, group and directory all use the me riga.
--
Brian Masinick -
AuthorSearch Results
Search Results for 'chown'
-
Search Results
-
cli-installer refuses to allow set of separate home partition.
Prior to install created 3 partitions with gparted livecd
Installer recognized them as
sda1:20G
sda2:210G
sda3:3gSelect root partition- sda1
“formatting sda1”
Do you want separate home partition- y
Select home partition- sda2
“invalid argument”Then tried partitioning with installer same result.
Work around: Do not set /home partition in installer.
Post install edit /etc/fstab to mount /dev/sda2 on /home.
Mount /dev/sda2 on /home
mkdir /home/<user>
Copy /etc/skel to /home/<user>
chown -R <user>: /home/<user>
or
After Mount step from above
deluser
adduser