2022-09-08

My Debian 11 Setup

My Debian 11 Setup 

 

 

1. Download Debian Setup File:


download  build includes non-free firmware:
debian images

download live build +  xfce  desktop + non free.
debian-live-11.4.0-amd64-xfce+nonfree.iso

2. Install  Debian

Setup linux from bootable USB Flash

3.  Update Packages

$ sudo apt update
$ sudo apt upgrade
$ sudo apt autoremove

3. Install Software from Synaptic Package Manager

### Software-List
 
authy
chromium
firefox
iptvnator
keepassxc
Simplenote
Spotify
SimpleNote
KeePassXC
VLC
GParted
Thunderbird
Signal
whatSie-WhatsApp for Linux as
FirewallD
zoom

4. Setup-Package (.deb)  
 
$ sudo dpkg -i hello_2.8-4_amd64.deb

VNC-Server-6.7.4-Linux-x64.deb
dropbox_2020.03.04_amd64.deb
google-chrome-stable_current_amd64.deb

5. Install Snapd

$ sudo apt update
$ sudo apt upgrade -y
$ sudo apt install snapd
$ sudo snap install core
$ sudo systemctl start snapd
$ sudo systemctl enable snapd
$ sudo systemctl status snapd
$ sudo snap install snap-store

List installed packages
$ snap list
Update packages
$ sudo snap refresh vlc
Uninstall a package
$ sudo snap remove vlc
$ sudo snap remove vlc --purge


$ sudo snap install authy

6. Setup  UFW firewall

$ sudo apt update
$ sudo apt install ufw
$ sudo ufw enable
$ sudo ufw status


7. Install XRDP

$ sudo apt update
$ sudo apt install xrdp
$ sudo systemctl status xrdp
$ sudo adduser xrdp ssl-cert
$ sudo systemctl restart xrdp

sudo ufw allow from 192.168.1.0/24 to any port 3389

Logout current user, then Connecting to the Xrdp Server

 *known issue:  No Network Connection Before Login

  Solution:
Go to Application -> Settings ->
- Network Connections
- <select the wifi connection you want to connect to>
- Edit the selected connection
- General (tab)
- toggle on "All users may connect to this network"
- Save

8. Speedup XRDP

Turn off Compositor from Window Manager Tweaks


9. Setup Dark Appearance

 

10. Setup Samba

Check what is the IP address of the server.
$ ip addr

$ sudo apt update
$ sudo apt upgrade
$ sudo apt install samba

$ sudo systemctl start nmbd
$ systemctl enable smbd

$ sudo ufw allow from 192.168.150.0/24 to any app samba
$ sudo ufw status verbose
$ systemctl restart smbd

$ sudo systemctl status nmbd

$ sudo mkdir /samba
$ sudo cp /etc/samba/smb.conf smb.conf.orig

$ sudo nano /etc/samba/smb.conf

Scroll down to the bottom of the smb.conf and add the following lines:

[samba-share] comment = Samba on Debian path = /home/username/samba read-only = no browsable = yes
writeable = yes

ctrl+o Enter ctrl+x to save current file and exit
[home]  [printer] share can be disabled by add ; in front their lines in smb.conf



$ sudo smbpasswd -a "username"
$ sudo systemctl restart smbd.service

then  windows can explorer \\192.168.150.4

*********************
Samba 的配置檔案 /etc/samba/smb.conf 分為兩大部分,一部分是 [global] ,即全域性配置,另外是共享引數 [home] 、[printer] 、[自定義共享名],共享部分的設定優先順序高於全域性配置,另外,Samba 預設開啟本地使用者家目錄 [home] 和印表機 [printer] 的共享,如果不需要可以關閉這兩個共享,然後在末行自己重新建立一個共享
*********************


10. Fix xfce File Browser (root)


$ sudo apt install dbus_x11
$ sudo thunar




commands

$ top:
command to have a system monitor in console. It will display the CPU usage for the processes running in your machine.

Open File manager

  • nautilus PATH for the Gnome
  • nemo PATH for the Cinnamon
  • caja PATH for the MATE
  • thunar PATH for the Xfce



Tale screen shoot after 5 sec (for xfce)
sleep 5; xfce4-screenshooter -f



Share:

0 comments:

Post a Comment