“Kali初始化”的版本间的差异

来自linux中国网wiki
跳到导航 跳到搜索
 
(未显示同一用户的144个中间版本)
第9行: 第9行:
  
 
[https://linuxtoy.org/archives/lightweight-portable-desktop-with-pine64.html  Pine64 轻量级便携电脑 ]
 
[https://linuxtoy.org/archives/lightweight-portable-desktop-with-pine64.html  Pine64 轻量级便携电脑 ]
 +
 +
=更新系统=
 +
apt-get upgrade
 +
  apt -y full-upgrade
 +
  reboot
 +
  Sep 09 2021 更新成功 以后少点更新吧
 +
 +
Raspberry Pi OS 用户只需要通过在终端应用中运行 sudo apt update && sudo apt full-upgrade 命令来更新即可。
  
 
=NOTE=
 
=NOTE=
第15行: 第23行:
 
闪屏问题 参考 xps 相关wiki
 
闪屏问题 参考 xps 相关wiki
  
=xps=
+
铜豌豆软件源 可以很多参考的软件
主要目录挂在 data 所以作各种 ln
+
https://www.atzlinux.com/allpackages.htm
ln -s  data/evanhome/python/ python
 
  
=老旧计算机=
+
  rofi 一般显示的是这个东西 我的 atril 改名
https://antixlinux.com/
+
  Name[zh_CN]=pdf  文档查看器
=2020=
 
  
將硬盘模式由RAID 可以进入原来的win
+
=grub=
改为ACHI 就进入其它第三方os
 
 
 
[https://www.dell.com/support/article/zh-cn/sln308010/ubuntu-win10 Ubuntu ®/WIN10双系统安装教程 ]
 
 
 
https://www.dell.com/support/article/zh-cn/sln301754/%E5%A6%82%E4%BD%95%E5%9C%A8-dell-pc-%E4%B8%8A%E5%AE%89%E8%A3%85-ubuntu-%E5%92%8C-windows-8-%E6%88%9610%E4%BD%9C%E4%B8%BA%E5%8F%8C%E5%BC%95%E5%AF%BC?lang=zh
 
  
 +
kali grub引导修复
 
<pre>
 
<pre>
第一步在 win中分区中压缩出给unix的空间
+
xxx静电开机不了,送 主板修理 后,后发现自己的kali grub引导没了。
[[Win10系统相关]]
 
现在要什么改bios为AHI  原来的是ran0 on 是不是得重启安装win 问一下售后 
 
更改xps13的硬盘模式
 
  
Dell xps13 的硬盘模式有三种:RAID(默认)模式; ACHI模式;以及以上两种的混合模式。RAID模式下我们是无法安装ubuntu的,于是在开机dell图标的时候猛按F2进入BIOS选项,將硬盘模式由RAID改为ACHI, 在更改时系统会提醒若更改可能会导致无法逆转的问题,其实没关系,确认更改。注意,更改了硬盘模式之后是无法在进入win10的,所以这时候可以在USB接口插好我们准备好的ubuntu安装盘了,在系统重启进入dell图标界面时,
+
1.别慌,进BIOS在boot里面添加kali的efi引导(可不用)
猛按F12(不用按fn)进入boot界面选用U盘启动,进入ubuntu安装界面然后正常安装就好。关于安装ubuntu时的分区,我参考了网上的教程,采用以下分区:
 
  
 +
2.进kali后,进入了grub rescure模式,慢慢找,
  
分区完成后,不要急着下一步,这里还要选择 安装启动引导器的设备
+
先ls,查看分区情况
  
选择boot所在的分区 /dev/sda  ?
+
再ls (hd0,gpt8) #这是我的 ,一个一个找/boot/efi分区,反馈unknown的不管,出现其他的可能就是/boot分区
</pre>
 
  
xps 13  7390  安装双系统
+
3.如果找到了。
  
 +
ls (hdo,gpt8)/boot/grub
  
linuxqq 在debian 10上用 sh 安装是成功的  weixin用一下 docker那个 就不用虚拟机了
+
会显示kali的efi配置文件
  
 +
4.之后继续输命令。
  
 +
set root=(hd0,gpt8)
  
 +
set prefix=(hd0,gpt8)/boot/grub
  
[https://blog.csdn.net/JJ951001/article/details/104565862 安装参考这个喽 ]
+
insmod normal
一开始不要安装太多桌面 就先xfce作备用 然后再上awesome
 
  
默认安装,想要更多工具
+
normal
  sudo apt-get -y install kali-linux-large
 
  
[https://blog.csdn.net/zouguo1211/article/details/81200628 安装过程 有grub2修复呢]
+
5.进入kali系统后,打开终端。
  
 +
grub-install /dev/nvme0n1p8 (我的kali系统是装在 )
  
[https://blog.csdn.net/weixin_41247970/article/details/104118700 kali 2020.1安装(图文超详细版)]
+
update-grub
 +
</pre>
 +
 
 +
=xps=
 +
主要目录挂在 data 所以作各种 ln
 +
ln -s  data/evanhome/python/ python
 +
== 电池使用==
 +
TLP:一个可以延长 Linux 笔记本电池寿命的高级电源管理工具
 +
 
 +
sudo apt install tlp-rdw
 +
sudo apt install cbatticon
 +
systemctl enable tlp
 +
systemctl start tlp
 +
 +
sudo apt install powertop
  
 +
将会同时安装下列软件:
 +
  tlp
 +
建议安装:
 +
  tp-smapi-dkms acpi-call-dkms linux-cpupower
  
[https://blog.csdn.net/MiaodXindng/article/details/104397988 kali linux 2020.1安装注意事项]
+
https://wiki.archlinux.org/index.php/Power_management
  
=debian=
+
[https://www.zhihu.com/question/61602649 如何解决ubuntu笔记本续航不佳的问题]
<pre>
 
UNetbootin
 
  
debian-.0.0-amd64-xfce-CD-1.iso 安装后
 
如果还有方块需要装字体:
 
  
apt-get install ttf-wqy-zenhei #我试过这个就行了
+
[https://zhuanlan.zhihu.com/p/65546444 TLP:一个可以延长 Linux 笔记本电池寿命的高级电源管理工具]
$ reboot
 
$ apt-get install ttf-arphic-uming
 
  
 +
[https://www.jianshu.com/p/611ccf14ab62 Rog 幻14 完美安装 linux: 10小时续航,QQ和微信,中文输入法,独显关闭]
  
 +
[https://linuxtoy.org/archives/powertop.html PowerTOP:为你的笔记本电脑节省电源]
  
# testing
+
[https://linux.cn/article-10560-1.html PowerTOP:在 Linux 上监视电量使用和改善笔记本电池寿命 ]
  
# http://mirrors.ustc.edu.cn/debian/dists/
+
=老旧计算机=
deb http://mirrors.ustc.edu.cn/debian testing main contrib non-free
+
https://antixlinux.com/
# deb-src http://mirrors.ustc.edu.cn/debian testing  main contrib non-free
 
deb http://mirrors.ustc.edu.cn/debian testing-updates main contrib non-free
 
# deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
 
  
# deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
+
=2021=
# deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
+
wechat sidebar 登录不了 禁用那个https 插件
  
#deb http://mirrors.aliyun.com/debian/ testing  main non-free contrib
+
=2020=
##deb-src http://mirrors.aliyun.com/debian/ testing  main non-free contrib
 
#deb http://mirrors.aliyun.com/debian-security testing/updates main
 
##deb-src http://mirrors.aliyun.com/debian-security testing/updates main
 
#deb http://mirrors.aliyun.com/debian/ testing-updates main non-free contrib
 
##deb-src http://mirrors.aliyun.com/debian/ testing-updates main non-free contrib
 
#deb http://mirrors.aliyun.com/debian-backports/ bullseye-backports main non-free contrib
 
##deb-src http://mirrors.aliyun.com/debian-backports/ testing-backports main non-free contrib
 
#
 
#deb https://mirrors.163.com/debian-backports/ buster-backports main contrib non-free
 
#deb-src https://mirrors.163.com/debian-backports/ buster-backports main contrib non-free
 
  
 +
將硬盘模式由RAID 可以进入原来的win
 +
改为ACHI 就进入其它第三方os
  
sudo apt-get update
+
[https://www.dell.com/support/article/zh-cn/sln308010/ubuntu-win10 Ubuntu ®/WIN10双系统安装教程 ]
sudo apt-get upgrade
 
  sudo apt-get dist-upgrade
 
  
</pre>
+
https://www.dell.com/support/article/zh-cn/sln301754/%E5%A6%82%E4%BD%95%E5%9C%A8-dell-pc-%E4%B8%8A%E5%AE%89%E8%A3%85-ubuntu-%E5%92%8C-windows-8-%E6%88%9610%E4%BD%9C%E4%B8%BA%E5%8F%8C%E5%BC%95%E5%AF%BC?lang=zh
  
你正在运行 Debian稳定版 因为你更偏好选择 Debian 稳定版分支。它运行得很好,但是只有一个问题:与其他发行版相比,它的软件有一点过时了。这便是 backports 出现的原因。
+
<pre>
 +
第一步在 win中分区中压缩出给unix的空间
 +
[[Win10系统相关]]
 +
现在要什么改bios为AHI  原来的是ran0 on 是不是得重启安装win 问一下售后 
 +
更改xps13的硬盘模式
  
Backports是从testing版本 (大部分)和 unstable版本(可能性极小,例如:安全更新等)重新编译的软件包,因此他们在稳定的debian发行版中不需要新的库就可以运行(无论如何,这是可能的)。推荐你挑选一个能够满足你需求的单个的backports软件源,不要使用所有可用的backports源。
+
Dell xps13 的硬盘模式有三种:RAID(默认)模式; ACHI模式;以及以上两种的混合模式。RAID模式下我们是无法安装ubuntu的,于是在开机dell图标的时候猛按F2进入BIOS选项,將硬盘模式由RAID改为ACHI, 在更改时系统会提醒若更改可能会导致无法逆转的问题,其实没关系,确认更改。注意,更改了硬盘模式之后是无法在进入win10的,所以这时候可以在USB接口插好我们准备好的ubuntu安装盘了,在系统重启进入dell图标界面时,
 +
猛按F12(不用按fn)进入boot界面选用U盘启动,进入ubuntu安装界面然后正常安装就好。关于安装ubuntu时的分区,我参考了网上的教程,采用以下分区:
  
[https://wiki.debian.org/zh_CN/Backports      zh_CNBackports ]
 
  
[https://www.debian.cn/archives/45 如何使用 Debian backports 更新源]
+
分区完成后,不要急着下一步,这里还要选择 安装启动引导器的设备
  
https://wiki.debian.org/HowToUpgradeKernel
+
选择boot所在的分区 /dev/sda  ?
 +
</pre>
  
 +
xps 13  7390  安装双系统
  
[https://zhuanlan.zhihu.com/p/76991840 安装Debian并开启远程桌面(通过Xorg)]
 
  
[https://www.linuxtechi.com/things-to-do-after-installing-debian-10/ Top 8 Things to do after Installing Debian 10 (Buster)]
+
linuxqq 在debian 10上用 sh 安装是成功的  weixin用一下 docker那个 就不用虚拟机了
  
=start=
 
此文适合于 debian10初始化 20190730
 
  
  
Debian_stretch 也就是 debian 9 这也是kali2018
 
== 最常用软件==
 
<pre>  ;geany ;  catfish 文件查看;  现在用 rofi 这个不用了synapse (上次回车运行不了软件是 自己小小心 把运行配置设置为f2); zim ; ;
 
 
 
hardInfo  硬件查看
 
  
alias halt='/usr/bin/sudo /bin/sync && /usr/bin/sudo  /sbin/poweroff'
+
[https://blog.csdn.net/JJ951001/article/details/104565862 安装参考这个喽 ]
</pre>
+
一开始不要安装太多桌面 就先xfce作备用 然后再上awesome
  
== xps13 7390问题==
+
默认安装,想要更多工具
<pre>
+
  sudo apt-get -y install kali-linux-large
过一阵就会自动闪屏
 
  
 +
[https://blog.csdn.net/zouguo1211/article/details/81200628 安装过程 有grub2修复呢]
  
FN+向上  亮度
 
  
</pre>
+
[https://blog.csdn.net/weixin_41247970/article/details/104118700 kali 2020.1安装(图文超详细版)]
  
==国内iso下载地址==
 
  
 +
[https://blog.csdn.net/MiaodXindng/article/details/104397988 kali linux 2020.1安装注意事项]
  
kali 的国内官方镜像为东软信息学院 所以下载地址有两个
+
=debian=
 +
<pre>
 +
UNetbootin
  
http://mirrors.neusoft.edu.cn/kali-images/
+
debian-.0.0-amd64-xfce-CD-1.iso 安装后
 +
如果还有方块需要装字体:
  
公司这个下载比较快
+
apt-get install ttf-wqy-zenhei #我试过这个就行了
 +
$ reboot
 +
$ apt-get install ttf-arphic-uming
  
http://mirrors.163.com/kali-images/
 
  
https://mirrors.ustc.edu.cn/kali-images
 
  
https://www.turnkeylinux.org/
+
# testing
  
<pre>
+
# http://mirrors.ustc.edu.cn/debian/dists/
evan@evankali:~/iso$ sha256sum kali-linux-2017.2-amd64.iso
+
deb http://mirrors.ustc.edu.cn/debian testing main contrib non-free
4556775bfb981ae64a3cb19aa0b73e8dcac6e4ba524f31c4bc14c9137b99725d  kali-linux-2017.2-amd64.iso
+
# deb-src http://mirrors.ustc.edu.cn/debian testing  main contrib non-free
 +
deb http://mirrors.ustc.edu.cn/debian testing-updates main contrib non-free
 +
# deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
  
time sudo dd if=xxxxx.iso of=/dev/sdc && sync # real 23m33.039s
+
# deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
或者用什么 img32  linux 下还可以用 etcher U盘镜像复制工具
+
# deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
 +
 
 +
#deb http://mirrors.aliyun.com/debian/ testing main non-free contrib
 +
##deb-src http://mirrors.aliyun.com/debian/ testing  main non-free contrib
 +
#deb http://mirrors.aliyun.com/debian-security testing/updates main
 +
##deb-src http://mirrors.aliyun.com/debian-security testing/updates main
 +
#deb http://mirrors.aliyun.com/debian/ testing-updates main non-free contrib
 +
##deb-src http://mirrors.aliyun.com/debian/ testing-updates main non-free contrib
 +
#deb http://mirrors.aliyun.com/debian-backports/ bullseye-backports main non-free contrib
 +
##deb-src http://mirrors.aliyun.com/debian-backports/ testing-backports main non-free contrib
 +
#
 +
#deb https://mirrors.163.com/debian-backports/ buster-backports main contrib non-free
 +
#deb-src https://mirrors.163.com/debian-backports/ buster-backports main contrib non-free
  
国内源 加在最前面
 
 
deb https://mirrors.dgut.edu.cn/kali kali-rolling main non-free contrib
 
deb-src https://mirrors.dgut.edu.cn/kali kali-rolling main non-free contrib
 
  
 
sudo apt-get update
 
sudo apt-get update
 +
sudo apt-get upgrade
 +
  sudo apt-get dist-upgrade
 +
 
</pre>
 
</pre>
  
===Create bootable USB drives===
+
你正在运行 Debian稳定版 因为你更偏好选择 Debian 稳定版分支。它运行得很好,但是只有一个问题:与其他发行版相比,它的软件有一点过时了。这便是 backports 出现的原因。
https://rufus.ie/
 
  
sudoapt-getinstallusb-creator-gtk
+
Backports是从testing版本 (大部分)和 unstable版本(可能性极小,例如:安全更新等)重新编译的软件包,因此他们在稳定的debian发行版中不需要新的库就可以运行(无论如何,这是可能的)。推荐你挑选一个能够满足你需求的单个的backports软件源,不要使用所有可用的backports源。
  
 +
[https://wiki.debian.org/zh_CN/Backports      zh_CNBackports ]
  
https://www.balena.io/etcher/
+
[https://www.debian.cn/archives/45 如何使用 Debian backports 更新源]
  
 +
https://wiki.debian.org/HowToUpgradeKernel
  
win下的hash tools hash my files  divhasher
 
  
[https://docs.fedoraproject.org/en-US/quick-docs/creating-and-using-a-live-installation-image/ creating-and-using-a-live-installation-image]
+
[https://zhuanlan.zhihu.com/p/76991840 安装Debian并开启远程桌面(通过Xorg)]
  
http://www.ubuntukylin.com/public/pdf/1910.pdf
+
[https://www.linuxtechi.com/things-to-do-after-installing-debian-10/ Top 8 Things to do after Installing Debian 10 (Buster)]
  
==debian==  
+
=start=
[https://cdimage.debian.org/cdimage/unofficial/non-free/ 附带专有固件的非官方镜像]也已更新,如果您发现Debian与某个硬件不兼容,这些非自由版本很有用。
+
此文适合于 debian10初始化 20190730
<pre>
+
 
sudo apt-get install -y dnsutils#dig
+
 
 +
Debian_stretch 也就是 debian 9 这也是kali2018
 +
== 最常用软件==
 +
<pre>  ;geany ;  catfish 文件查看;  现在用 rofi 这个不用了synapse (上次回车运行不了软件是 自己小小心 把运行配置设置为f2); zim ; ;
 +
 
 +
hardInfo  硬件查看
 +
 
 +
alias halt='/usr/bin/sudo /bin/sync && /usr/bin/sudo /sbin/poweroff'
 
</pre>
 
</pre>
===debian elite 无线驱动  iwlwifi-7260-17.ucode===
+
https://appcenter.elementary.io/
 +
 
 +
== xps13 7390问题==
 
<pre>
 
<pre>
debian 10 elite 无线驱动  iwlwifi-7260-17.ucode
+
过一阵就会自动闪屏
  
#wifi 添加源
 
deb http://mirrors.163.com/debian/ buster main contrib non-free
 
  
apt install firmware-iwlwifi wireless-tools
+
FN+向上 亮度
</pre>
 
  
===常用包安装===
 
<pre>
 
sudo apt install net-tools
 
 
</pre>
 
</pre>
  
==pre==
+
==国内iso下载地址==
[[Parrot安装]]
+
 
<pre>
 
如果发现不是中文界面 settings -->Region &language  选择中国  再次登录就是中文了
 
  
允许root登录
+
kali 的国内官方镜像为东软信息学院 所以下载地址有两个
#PermitRootLogin prohibit-password
 
PermitRootLogin yes  #/etc/init.d/ssh restart
 
  
新用户  debain 系统建议用adduser
+
https://github.com/SpiralLinux/SpiralLinux-project/wiki
adduser evan #这个是交互的
 
  
useradd  evan -m  -s /bin/bash  -g evan
+
http://mirrors.neusoft.edu.cn/kali-images/
  
#is debian
+
公司这个下载比较快
apt install sudo -y
 
 
echo 'evan ALL=(ALL) NOPASSWD:NOPASSWD:ALL' >/etc/sudoers.d/evan
 
  
回收站 .local/share/Trash/files/
+
http://mirrors.163.com/kali-images/
</pre>
 
[[useradd与adduser的区别]]
 
  
==分区==
+
https://mirrors.ustc.edu.cn/kali-images
<pre>
 
kalilatop  / 27G  建议大一些好  我的现在是20G 昨晚更新时就空间不太够 清理了今天一个上午 ,昨天还搞到半夜
 
cd /var/cache/apt/archives && rm -rf *.deb
 
  
在公司电脑上 居然要安装成 /home不独立出来,不然会安装不成功 搞笑 第一天不行 第二天又可以 了 哈哈 #应该是硬盘没删除成功 我发现还有 原来的数据呀
+
https://www.turnkeylinux.org/
</pre>
 
  
==theme==
 
 
<pre>
 
<pre>
sudo apt install oxygen-icon-theme
+
evan@evankali:~/iso$ sha256sum kali-linux-2017.2-amd64.iso
 +
4556775bfb981ae64a3cb19aa0b73e8dcac6e4ba524f31c4bc14c9137b99725d  kali-linux-2017.2-amd64.iso
  
lxappearance (0.6.1-1)
+
time sudo dd if=xxxxx.iso of=/dev/sdc && sync  # real 23m33.039s
    LXDE GTK+ theme switcher
+
或者用什么 img32  linux 下还可以用 etcher U盘镜像复制工具
  
</pre>
+
国内源 加在最前面
https://github.com/paullinuxthemer/Mc-OS-themes
 
  
==输入法==
+
cat /etc/apt/sources.list
===fcitx===
+
# deb cdrom:[Kali GNU/Linux 2020.2rc3 _Kali-last-snapshot_ - Official amd64 DVD Binary-1 with firmware 20200508-14:35]/ kali-rolling contrib main non-free
  
fcitx can not use in  ff rednotebook etc apps  on debina 10 testing 更新完就可以了 
+
deb https://http.kali.org/kali kali-rolling main non-free contrib
 +
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
  
 +
#deb https://mirrors.neusoft.edu.cn/kali kali-rolling main non-free contrib
  
<pre> sudo apt-get install fcitx fcitx-table-wbpy ttf-wqy-microhei ttf-wqy-zenhei
+
#deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
  
  
#官方提示
 
设置 用户设置 /home/evan/.xinputrc 为 fcitx。
 
手动设置选择: fcitx
 
小企鹅输入法(Fcitx)
 
* 必需组件:fcitx
 
* 输入特定语言所需的组件:
 
  * 简体中文拼音:fcitx-sunpinyin 或 fcitx-googlepinyin 或 fcitx-pinyin
 
  * 简体中文五笔:fcitx-table-wubi 或 fcitx-table-wbpy
 
  * 繁体中文:fcitx-table-cangjie
 
  * 通用的输入法码表: fcitx-table* 套件
 
* 应用程序支持:
 
  * GNOME/GTK+:fcitx-frontend-gtk2 和 fcitx-frontend-gtk3
 
                  (强烈建议同时安装)
 
  * KDE/Qt4:fcitx-frontend-qt4
 
  
 +
#这个命令有意思
 +
sudo apt update -qq
  
  
  
  
用户设置 已被 im-config 修改。
+
deb https://mirrors.dgut.edu.cn/kali kali-rolling main non-free contrib
 +
deb-src https://mirrors.dgut.edu.cn/kali kali-rolling main non-free contrib
  
请重新启动 X 会话管理器以激活新的 用户设置。
+
sudo apt-get update
如果使用旧配置的守护进程被 X 会话管理器重启,您可能需要使用 kill(1) 手工将其杀死。
+
</pre>
请参考 im-config(8) 和 /usr/share/doc/im-config/README.Debian.gz
 
  
 +
===Create bootable USB drives===
  
# skin
+
UNetbootin
  
下载皮肤并解压缩到下面任一目录,如果没有可以新建目录:
+
https://rufus.ie/
  
/usr/share/fcitx/skin  ##全局设置
+
sudoapt-getinstallusb-creator-gtk
~/.config/fcitx/skin    #特定用户设置
 
  
  
debian  kali
+
https://www.balena.io/etcher/
 
 
ls /usr/share/fcitx/skin/
 
classic  dark  default  google  sogou
 
  
  
freebsd
+
win下的hash tools hash my files  divhasher
  
.config/fcitx/skin/
+
[https://docs.fedoraproject.org/en-US/quick-docs/creating-and-using-a-live-installation-image/ creating-and-using-a-live-installation-image]
Alpha google material sogou startos</pre>
 
  
皮肤下载  sogou 不错
+
http://www.ubuntukylin.com/public/pdf/1910.pdf
http://mirrors.163.com/deepin/pool/main/f/fcitx-skins/
 
  
[https://wiki.archlinux.org/index.php/Fcitx_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87) arch fcitx]
+
==debian==
 +
[https://cdimage.debian.org/cdimage/unofficial/non-free/ 附带专有固件的非官方镜像]也已更新,如果您发现Debian与某个硬件不兼容,这些非自由版本很有用。
 +
<pre>
 +
sudo apt-get install -y dnsutils#dig
 +
</pre>
 +
===debian elite 无线驱动  iwlwifi-7260-17.ucode===
 +
<pre>
 +
debian 10 elite 无线驱动 iwlwifi-7260-17.ucode
  
[https://www.cnblogs.com/findumars/p/5364701.html  Linux下Qt4与qt5的程序使用输入法(ibus与fcitx)不冲突 ]
+
#wifi 添加源
 +
deb http://mirrors.163.com/debian/ buster main contrib non-free
  
 +
apt  install firmware-iwlwifi wireless-tools
 +
</pre>
  
[https://plumz.me/archives/4180/ 解决 Ubuntu 16.04 下 Telegram Fcitx 不能加载的问题]
+
===常用包安装===
 
 
===ibus===
 
 
<pre>
 
<pre>
#sudo apt-get install ibus-gtk  ibus-table-wubi  ibus-wayland  ibus-pinyin ibus-sunpinyin
+
sudo apt install net-tools
    #不好用 暂时不用 现在又用了 2020      ibus-setup
+
</pre>
  
ibus-setup
+
==pre==
 +
[[Parrot安装]]
 +
<pre>
 +
如果发现不是中文界面 settings -->Region &language  选择中国  再次登录就是中文了
  
在$HOME/.bashrc中加入下面这段就好了
+
允许root登录
 +
#PermitRootLogin prohibit-password
 +
PermitRootLogin yes  #/etc/init.d/ssh restart
  
export GTK_IM_MODULE=ibus
+
新用户  debain 系统建议用adduser
export XMODIFIERS=@im=ibus
+
adduser evan #这个是交互的
export QT_IM_MODULE=ibus
 
  
 +
useradd  evan -m  -s /bin/bash  -g evan
 +
 +
#is debian
 +
apt install sudo -y
 +
 +
echo 'evan ALL=(ALL) NOPASSWD:NOPASSWD:ALL' >/etc/sudoers.d/evan
  
 +
回收站 .local/share/Trash/files/
 
</pre>
 
</pre>
[https://blog.csdn.net/wu10188/article/details/86540464  Ubuntu 18.04 配置ibus中文拼音输入法(超简单)]
+
[[useradd与adduser的区别]]
  
==openssh==
+
==分区==
 
<pre>
 
<pre>
apt-get install openssh-client openssh-server
+
kalilatop  /  27G  建议大一些好  我的现在是20G 昨晚更新时就空间不太够 清理了今天一个上午 ,昨天还搞到半夜
这个要先安装 不然自启动会不成功
+
cd /var/cache/apt/archives && rm -rf *.deb
  
如何激活服务并在启动时启用或禁用服务(即系统启动时自动启动服务)
+
在公司电脑上 居然要安装成 /home不独立出来,不然会安装不成功 搞笑 第一天不行 第二天又可以 了 哈哈 #应该是硬盘没删除成功 我发现还有 原来的数据呀
# systemctl is-active ssh.service
 
systemctl enable ssh.service
 
# systemctl disable ssh.service
 
 
</pre>
 
</pre>
  
[http://www.cnblogs.com/yinheyi/p/6266748.html debian系统下安装ssh服务超级详细]
+
==theme==
 
 
== 更新系统==
 
 
<pre>
 
<pre>
#配置源 又可以改为国内源了 记得在去年是不可以的 20180222 2020
+
sudo apt install oxygen-icon-theme
#eg
 
sed -i "[email protected]@163.com@g" sources.list
 
sed -i "s@http://.*archive.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list
 
sed -i "s@http://.*security.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list
 
  
 +
lxappearance (0.6.1-1)
 +
    LXDE GTK+ theme switcher
 +
 +
</pre>
 +
https://github.com/paullinuxthemer/Mc-OS-themes
 +
 +
==输入法==
 +
===fcitx5===
 +
sudo apt-cache search fcitx5
 +
sudo apt install  fcitx5  fcitx5-chinese-addons fcitx5-skin-nord
  
  
 +
https://github.com/topics/fcitx5-theme
  
deb https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
+
https://wiki.debian.org/I18n/Fcitx5
deb-src https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
 
  
#aliyun是最快的 配置上他的dns 2020 但是官方源才是软件最新的哦
+
[https://www.cnblogs.com/maicss/p/15056420.html fcitx5输入法使用技巧&简约皮肤分享]
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
 
#deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
 
#deb http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free
 
#deb-src http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free
 
#
 
#office
 
#deb https://http.kali.org/kali kali-rolling main non-free contrib
 
#deb http://http.kali.org/kali kali-rolling main non-free contrib
 
  
kali 的国内官方镜像为东软信息学院
+
===fcitx===
所以只要dns是国内 应该 会自动去东软信息学院mirrors的
+
fcitx can not use in  ff rednotebook etc apps  on debina 10 testing 更新完就可以了 
  
apt-get update
+
https://pkg.kali.org/pkg/fcitx5
  
#一般只更新自己要的软件就好了,不要全系统更新 容易挂 再说 很多软件更新也没用嘛
+
<pre> sudo apt-get install fcitx fcitx-table-wbpy ttf-wqy-microhei ttf-wqy-zenhei
apt install xxxx # apt list --upgradable |less 查看软件
 
apt upgrade
 
apt-get dist-upgrade #跨版本更新 ; 发布版升级
 
  
apt update && apt full-upgrade #升级2018的官方 命令
 
</pre>
 
===更新系统故障===
 
<pre> evan@kalipc:~/github/python/tutorial$ sudo apt update
 
获取:1 http://mirrors.aliyun.com/kali kali-rolling InRelease [30.5 kB]
 
错误:1 http://mirrors.aliyun.com/kali kali-rolling InRelease 
 
  下列签名无效: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
 
  
正在读取软件包列表... 完成         
+
#官方提示
W: GPG 错误:http://mirrors.aliyun.com/kali kali-rolling InRelease: 下列签名无效: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
+
设置 用户设置 /home/evan/.xinputrc 为 fcitx。
E: 仓库 “http://mirrors.aliyun.com/kali kali-rolling InRelease” 没有数字签名。
+
手动设置选择: fcitx
N: 无法安全地用该源进行更新,所以默认禁用该源。
+
小企鹅输入法(Fcitx)
#使用root 运行此命令
+
* 必需组件:fcitx
root@kalipc:~# wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
+
* 输入特定语言所需的组件:
OK </pre>
+
  * 简体中文拼音:fcitx-sunpinyin 或 fcitx-googlepinyin 或 fcitx-pinyin
[https://www.kali.org/news/kali-linux-2018-1-release/ Kali Linux 2018.1 Release]
+
  * 简体中文五笔:fcitx-table-wubi 或 fcitx-table-wbpy
 +
  * 繁体中文:fcitx-table-cangjie
 +
  * 通用的输入法码表: fcitx-table* 套件
 +
* 应用程序支持:
 +
  * GNOME/GTK+:fcitx-frontend-gtk2 和 fcitx-frontend-gtk3
 +
                  (强烈建议同时安装)
 +
  * KDE/Qt4:fcitx-frontend-qt4
  
==添加 home分区==
 
<pre>
 
cp  -a .bash_history              .chromium-bsu              .gnupg/                    .pki/                      .ssh/                      .xinputrc  .bak
 
  
把所以 . 隐藏的文件 先 ls . 然后得出的 放到 .bak目录 最后再放出来 
 
  
  
算了 直接搞个/data分区了
 
  mkfs.ext4  /dev/nvme0n1p9
 
  
 +
用户设置 已被 im-config 修改。
  
blkid /dev/nvme0n1p9
+
请重新启动 X 会话管理器以激活新的 用户设置。
 +
如果使用旧配置的守护进程被 X 会话管理器重启,您可能需要使用 kill(1) 手工将其杀死。
 +
请参考 im-config(8) 和 /usr/share/doc/im-config/README.Debian.gz
  
cat /etc/fstab
 
# /etc/fstab: static file system information.
 
#
 
# Use 'blkid' to print the universally unique identifier for a
 
# device; this may be used with UUID= as a more robust way to name devices
 
# that works even if disks are added and removed. See fstab(5).
 
#
 
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
 
# / was on /dev/nvme0n1p8 during installation
 
UUID=8239d727-9b16-4e03-bf2d-d05766db6a2e /              ext4    errors=remount-ro 0      1
 
# /boot/efi was on /dev/nvme0n1p1 during installation
 
UUID=0848-0943  /boot/efi      vfat    umask=0077      0      1
 
# swap was on /dev/nvme0n1p7 during installation
 
UUID=753c3bee-a5b7-4de4-b0bf-1d971622d47a none            swap    sw              0      0
 
# /home  was on /dev/nvme0n1p9 during installation
 
UUID=a90d5fe4-482b-458a-bc8b-fd733fd963d2  /data              ext4    errors=remount-ro 0      1
 
  
 +
# skin
  
</pre>
+
下载皮肤并解压缩到下面任一目录,如果没有可以新建目录:
  
==添加新硬盘==
+
/usr/share/fcitx/skin  ##全局设置
<pre>
+
~/.config/fcitx/skin    #特定用户设置
UUID=d94216fb-5712-dc44-ad1e-98534d6e4bae /mydata          ext4    defaults        0      2
 
#后来成为home 要记得改为 /home
 
mkdir /home/evan/data
 
uuid 查看
 
blkid
 
blkid /dev/sdb1
 
  
#mydata 2T hdd 2018年 09月 25日 星期二 10:22:06 CST
 
#/dev/sdb1  /home/evan/data    ext4    defaults        0      0
 
UUID=7664f2b3-ee40-4861-aed4-c6fd223126ac /home/evan/data          ext4    defaults        0      2
 
  
fstab 改为 /dev/sdb1 就好了 而不是UUID 可能和XFCE mount有关系  后来用uuid已正常 重分区系统也是同一个板 同一个CPU 不能在别的板搞过来
+
debian kali
  
此问题 后来确定为让 sata线位置
+
ls /usr/share/fcitx/skin/
 +
classic  dark  default  google  sogou
  
fdiskl -l Partition 1 does not start on physical sector boundary.
 
用命令行gpt 分区后 老提示空间不够 后来 用gparted 重新分区好了
 
  
 +
freebsd
  
2021
+
.config/fcitx/skin/
root@k8s-master:~# blkid /dev/sdb1
+
Alpha google material sogou startos</pre>
/dev/sdb1: UUID="7664f2b3-ee40-4861-aed4-c6fd223126ac" TYPE="ext4" PARTUUID="c7b67401-1c52-4394-a779-e473df6c2a94"
 
  
#/etc/fstab
+
皮肤下载  sogou 不错
UUID=7664f2b3-ee40-4861-aed4-c6fd223126ac  /mydata              ext4    errors=remount-ro 0      1
+
http://mirrors.163.com/deepin/pool/main/f/fcitx-skins/
  
 +
[https://wiki.archlinux.org/index.php/Fcitx_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)  arch fcitx]
  
</pre>
+
[https://www.cnblogs.com/findumars/p/5364701.html  Linux下Qt4与qt5的程序使用输入法(ibus与fcitx)不冲突 ]
  
== install Awesome ==
 
<pre>
 
这个的问题是安装后 gdm 选择了 依然进入gnome3 在家里用 vbox 试过也是尴尬了呢
 
解决办法是 ,可以不用安装kde
 
  apt install lightdm  lxrandr
 
#apt-get install kde-plasma-desktop
 
其实是gdm3  识别不了awesome 而ssdm可以识别,那其实也可以试一下 是不是只安装其它dm就可以了
 
</pre>
 
[[Awesome]]
 
  
== install xmonad ==
+
[https://plumz.me/archives/4180/ 解决 Ubuntu 16.04 下 Telegram Fcitx 不能加载的问题]
曾经放弃 现在 又回来了,没声音也是在mate打开一下就有了呢
 
  
[[xmonad安装及入门配置]]
+
===ibus===
 +
<pre>
 +
#sudo apt-get install ibus-gtk  ibus-table-wubi  ibus-wayland  ibus-pinyin ibus-sunpinyin
 +
    #不好用 暂时不用 现在又用了 2020      ibus-setup
  
安装完好像进入不了呢  原因和楼上一样
+
ibus-setup
[http://blog.linuxchina.net/?p=1880 xmonad 安装及入门配置]
 
  
==install lxde==
+
在$HOME/.bashrc中加入下面这段就好了
apt-get install lxde
 
  
 +
export GTK_IM_MODULE=ibus
 +
export XMODIFIERS=@im=ibus
 +
export QT_IM_MODULE=ibus
  
[https://www.cnblogs.com/bu-wu-zheng-ye/p/4760919.html 在Debian上用FVWM做自己的桌面]
 
  
==备份[[Clonezilla]] ==
+
</pre>
 +
[https://blog.csdn.net/wu10188/article/details/86540464  Ubuntu 18.04 配置ibus中文拼音输入法(超简单)]
  
== install mate ==
+
==openssh==
 
<pre>
 
<pre>
#在公司的电脑不用安装这个了
+
apt-get install openssh-client openssh-server
sudo apt-get update
+
这个要先安装 不然自启动会不成功
#This will install the base packages required for a minimal MATE desktop
 
sudo apt-get install mate-desktop-environment-core
 
  
#This will install the complete MATE desktop
+
如何激活服务并在启动时启用或禁用服务(即系统启动时自动启动服务)
sudo apt-get install mate-desktop-environment
+
# systemctl is-active ssh.service
 +
systemctl enable ssh.service
 +
# systemctl disable ssh.service
 +
</pre>
  
#This will install the complete MATE desktop including a few extras
+
[http://www.cnblogs.com/yinheyi/p/6266748.html debian系统下安装ssh服务超级详细]
sudo apt-get install mate-desktop-environment-extras
 
</pre>
 
http://wiki.mate-desktop.org/download
 
  
==xrandr Multi-monitor==
+
== 更新系统==
 
<pre>
 
<pre>
图形界面的用 lxrandr  XRandR
 
  
#if hdmi on home
+
帅的写法
  
#只开启外外接显示器并关闭本本自带显示器 省电
+
sudo sh -c 'cat > /etc/apt/sources.list.d/my.list << EOF
xrandr --output  HDMI-1  --mode 1920x1080 --output LVDS-1 --off
+
你的内容
 
+
EOF'
xrandr --output HDMI-1 --same-as  LVDS-1  --mode 1366x768  --output HDMI-1 --mode 1920x1080
 
  
 +
#配置源 又可以改为国内源了 记得在去年是不可以的 20180222 2020
 +
#eg
 +
sed -i "[email protected]@163.com@g" sources.list
 +
sed -i "s@http://.*archive.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list
 +
sed -i "s@http://.*security.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list
  
多显示器
 
今天使用了xrandr命令,似乎可以检测到扩展屏,之后详细看了xrandr的用法,运用 addmode 和 output 命令 结果可以用的!!!
 
  
</pre>
 
[http://blog.linuxchina.net/?p=1441 linux桌面(Dedian Ubuntu kali) 多显示器支持]
 
  
[https://www.dell.com/support/article/zh-cn/sln129825/%E5%A6%82%E4%BD%95%E8%AE%BE%E7%BD%AE%E5%A4%9A%E6%98%BE%E7%A4%BA%E5%99%A8?lang=zh 如何设置多显示器]
 
  
[http://blog.linuxchina.net/?p=285 xrandr — fvwm 双显示器]
+
deb https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
 +
deb-src https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
  
https://www.dell.com/community/Laptops-General-Read-Only/XPS-13-2in1-How-Many-External-Monitors-on-One-USB-C/td-p/5104782
+
#aliyun是最快的 配置上他的dns 2020 但是官方源才是软件最新的哦
 +
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
 +
#deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
 +
#deb http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free
 +
#deb-src http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free
 +
#
 +
#office
 +
#deb https://http.kali.org/kali kali-rolling main non-free contrib
 +
#deb http://http.kali.org/kali kali-rolling main non-free contrib
  
[https://simonhawketts.co.uk/2017/02/27/multiple-monitors-on-a-dell-xps-13/ multiple-monitors-on-a-dell-xps-13]
+
kali 的国内官方镜像为东软信息学院
 +
所以只要dns是国内 应该 会自动去东软信息学院mirrors的
  
https://wiki.archlinux.org/index.php/Multihead
+
apt-get update
  
https://wiki.debian.org/DualMonitorDualServerOneInput
+
#一般只更新自己要的软件就好了,不要全系统更新 容易挂 再说 很多软件更新也没用嘛
 +
apt install xxxx # apt list --upgradable |less 查看软件
 +
apt upgrade
 +
apt-get dist-upgrade #跨版本更新 ; 发布版升级
  
==外观==
+
apt update && apt full-upgrade #升级2018的官方 命令
lxappearance
+
</pre>
  lxqt 外观设置 qt风格用 qt5   other kali-light 不然 vlc 可能不好看
+
===更新系统故障===
 +
<pre> evan@kalipc:~/github/python/tutorial$ sudo apt update
 +
获取:1 http://mirrors.aliyun.com/kali kali-rolling InRelease [30.5 kB]
 +
  错误:1 http://mirrors.aliyun.com/kali kali-rolling InRelease  
 +
   下列签名无效: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
  
==all4one==
+
正在读取软件包列表... 完成         
<pre>sudo apt install  tree  anjuta  geany  zim  remmina vlc  -#synapse spyder
+
W: GPG 错误:http://mirrors.aliyun.com/kali kali-rolling InRelease: 下列签名无效: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
#sudo apt-get install fcitx fcitx-table-wbpy ttf-wqy-microhei ttf-wqy-zenhei
+
E: 仓库 “http://mirrors.aliyun.com/kali kali-rolling InRelease” 没有数字签名。
sudo apt-get install alarm-clock-applet
+
N: 无法安全地用该源进行更新,所以默认禁用该源。
#eclipse  emacs  pycharm  chrome  自己独立安装 </pre>
+
#使用root 运行此命令
 +
root@kalipc:~# wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
 +
OK </pre>
 +
[https://www.kali.org/news/kali-linux-2018-1-release/ Kali Linux 2018.1 Release]
  
==解决没有声音: ==
+
==添加 home分区==
 
<pre>
 
<pre>
  sudo apt install pulseaudio
+
cp -a .bash_history              .chromium-bsu              .gnupg/                    .pki/                      .ssh/                      .xinputrc  .bak
systemctl --user enable pulseaudio && systemctl --user start pulseaudio
+
 
  systemctl --user enable pulseaudio #打开声音控制就好了
+
把所以 . 隐藏的文件 先 ls . 然后得出的 放到 .bak目录 最后再放出来 
打开打开声音控制 然后
 
语音控制--输入设备--输入插孔 记得好个小锁头要打开
 
  
还有 就是 输出设备为  模拟耳机 20181023
 
  
可能还有回放要 chrome
+
算了 直接搞个/data分区了
</pre>
+
  mkfs.ext4  /dev/nvme0n1p9
  
== install applications==
 
大不了在启动是 用 win+R  先启动kupfer
 
  
===launcher===
+
blkid /dev/nvme0n1p9
====[[Awesome#rofi_on_awesome|rofi_on_awesome]]====
 
====synapse====
 
 
 
快捷键一般设置 为menu(win右边那个)  实在不行就设置 为  win +`    or  ctrl+1
 
 
 
====kupfer====
 
====gnome-do====
 
apt-get install gnome-do gnome-do-plugins.
 
 
 
===[[Linux 下的护眼软件]]===
 
  
 +
cat /etc/fstab
 +
# /etc/fstab: static file system information.
 +
#
 +
# Use 'blkid' to print the universally unique identifier for a
 +
# device; this may be used with UUID= as a more robust way to name devices
 +
# that works even if disks are added and removed. See fstab(5).
 +
#
 +
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
 +
# / was on /dev/nvme0n1p8 during installation
 +
UUID=8239d727-9b16-4e03-bf2d-d05766db6a2e /              ext4    errors=remount-ro 0      1
 +
# /boot/efi was on /dev/nvme0n1p1 during installation
 +
UUID=0848-0943  /boot/efi      vfat    umask=0077      0      1
 +
# swap was on /dev/nvme0n1p7 during installation
 +
UUID=753c3bee-a5b7-4de4-b0bf-1d971622d47a none            swap    sw              0      0
 +
# /home  was on /dev/nvme0n1p9 during installation
 +
UUID=a90d5fe4-482b-458a-bc8b-fd733fd963d2  /data              ext4    errors=remount-ro 0      1
  
=== 系统还原===
 
timeshift
 
https://github.com/teejee2008/timeshift
 
=== 视频播放===
 
==== vlc====
 
apt install vlc # 也有升级功能  继续播放功能升级为3.0.6 版本就可以了 有皮肤 在插件管理器里
 
  
==== smplaye====
+
</pre>
<pre>echo 'deb http://download.opensuse.org/repositories/home:/smplayerdev/Debian_9.0/ /' > /etc/apt/sources.list.d/home:smplayerdev.list
 
apt-get update
 
sudo apt-get install smplaye# 好用 可提高音量到200% 看py 教程非常 爽 vlc都没这么好 也可手工下载包安装 </pre>
 
  
[http://wiki.ubuntu.org.cn/SMPlayer SMPlayer使用]
+
==添加新硬盘==
 +
<pre>
 +
UUID=d94216fb-5712-dc44-ad1e-98534d6e4bae /mydata          ext4    defaults        0      2
 +
#后来成为home 要记得改为 /home
 +
mkdir /home/evan/data
 +
uuid 查看
 +
blkid
 +
blkid /dev/sdb1
  
[https://software.opensuse.org/download.html?project=home%3Asmplayerdev&package=smplayer smplayer安装教程]
+
#mydata 2T hdd 2018年 09月 25日 星期二 10:22:06 CST
 +
#/dev/sdb1  /home/evan/data    ext4    defaults        0      0
 +
UUID=7664f2b3-ee40-4861-aed4-c6fd223126ac /home/evan/data          ext4    defaults        0      2
 +
 
 +
fstab 改为 /dev/sdb1 就好了 而不是UUID  可能和XFCE mount有关系  后来用uuid已正常 重分区系统也是同一个板 同一个CPU 不能在别的板搞过来
 +
 
 +
此问题 后来确定为让 sata线位置
  
[http://wiki.ubuntu.org.cn/Qref/Apps#.E8.A7.86.E9.A2.91.E6.92.AD.E6.94.BE 软件参考]
+
fdiskl -l Partition 1 does not start on physical sector boundary.
 +
用命令行gpt 分区后 老提示空间不够 后来 用gparted 重新分区好了
  
=== 办公软件 ===
 
  
====xpad====
+
2021
====abiword and gnumeric====
+
root@k8s-master:~# blkid /dev/sdb1
 +
/dev/sdb1: UUID="7664f2b3-ee40-4861-aed4-c6fd223126ac" TYPE="ext4" PARTUUID="c7b67401-1c52-4394-a779-e473df6c2a94"
  
====libreoffice====
+
#/etc/fstab
[http://blog.linuxchina.net/?p=132 libreoffice installation]
+
UUID=7664f2b3-ee40-4861-aed4-c6fd223126ac  /mydata              ext4    errors=remount-ro 0      1
  
[https://zh-cn.libreoffice.org/download/fonts/ 适用于 LibreOffice 的中日韩字体]
 
  
https://zh-cn.libreoffice.org/get-help/install-howto/linux/
+
</pre>
  
==== wps====
+
== install Awesome ==
http://community.wps.cn/download/
 
 
<pre>
 
<pre>
问题
+
这个的问题是安装后 gdm 选择了 依然进入gnome3 在家里用 vbox 试过也是尴尬了呢
依赖关系问题使得 wps-office 的配置工作不能继续:
+
解决办法是 ,可以不用安装kde
  wps-office 依赖于 libpng12-0;然而:
+
  apt install lightdm lxrandr
  未安装软件包 libpng12-0。
+
#apt-get install kde-plasma-desktop
 
+
其实是gdm3  识别不了awesome 而ssdm可以识别,那其实也可以试一下 是不是只安装其它dm就可以了
wget http://ftp.cn.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.49-1+deb7u2_amd64.deb
 
sudo dpkg -i libpng12-0_1.2.49-1+deb7u2_amd64.deb
 
sudo dpkg -i wps-office_10.1.0.5672-a21_amd64.deb
 
 
</pre>
 
</pre>
 +
[[Awesome]]
  
[https://itaken.github.io/post/2017/05/03/libpng12-0%E6%9C%AA%E5%AE%89%E8%A3%85%E9%94%99%E8%AF%AF.html libpng12-0未安装错误]
+
== install xmonad ==
 +
曾经放弃 现在 又回来了,没声音也是在mate打开一下就有了呢
  
[http://community.wps.cn/wiki/No_necessary_symbol_fonts wps字体]
+
[[xmonad安装及入门配置]]
  
===Notes ====
+
安装完好像进入不了呢  原因和楼上一样
https://wiki.gnome.org/Design/Apps/Notes
+
[http://blog.linuxchina.net/?p=1880 xmonad 安装及入门配置]
=== CAD ===
 
==== freecad====
 
sudo add-apt-repository ppa:freecad-maintainers/freecad-stable
 
sudo apt update
 
  sudo apt install freecad
 
  
[https://www.sysgeek.cn/linux-cad-software/ 适用于Linux系统的5款最佳CAD软件汇总]
+
==install IceWM==
 +
https://ice-wm.org/
  
https://wiki.freecadweb.org/Install_on_Unix/zh-cn
+
==install lxde==
 +
apt-get install lxde
  
https://launchpad.net/~freecad-maintainers/+archive/ubuntu/freecad-stable
 
  
https://github.com/FreeCAD/FreeCAD/releases/tag/0.18.4
+
[https://www.cnblogs.com/bu-wu-zheng-ye/p/4760919.html 在Debian上用FVWM做自己的桌面]
  
 +
==备份[[Clonezilla]] ==
  
[https://linuxtoy.org/archives/6-of-the-best-free-linux-cad-software.html 6 款高品质的免费 Linux CAD 应用程序]
+
== install mate ==
 +
<pre>
 +
#在公司的电脑不用安装这个了
 +
sudo apt-get update
 +
#This will install the base packages required for a minimal MATE desktop
 +
sudo apt-get install mate-desktop-environment-core
 +
 
 +
#This will install the complete MATE desktop
 +
sudo apt-get install mate-desktop-environment
  
=== email ===
+
#This will install the complete MATE desktop including a few extras
====[[thunderbird]]====
+
sudo apt-get install mate-desktop-environment-extras
===GNURadio===
+
</pre>
GNURadio 是免费的软件开发工具套件。它提供信号运行和处理模块,用它可以在易制作的低成本的射频(RF)硬件和通用微处理器上实现软件定义无线电。 这套套件广泛用于业余爱好者,学术机构和商业机构用来研究和构建无线通信系统。
+
http://wiki.mate-desktop.org/download
https://www.gnuradio.org/
 
  
== emacs26 in Ubuntu 18.04==
+
==xrandr Multi-monitor==
 
<pre>
 
<pre>
sudo add-apt-repository ppa:kelleyk/emacs
+
图形界面的用 arandr (June 2022) lxrandr  XRandR
sudo apt update
+
 
 +
#if hdmi on home
  
  sudo apt install emacs26
+
#只开启外外接显示器并关闭本本自带显示器 省电
 +
xrandr --output  HDMI-1  --mode 1920x1080 --output LVDS-1 --off
  
root@myxps:/usr/share/applications# cat emacs25.desktop
+
xrandr --output HDMI-1 --same-as  LVDS-1  --mode 1366x768  --output HDMI-1 --mode 1920x1080
[Desktop Entry]
+
 
Version=1.0
+
#2 display
Name=GNU Emacs 25 (GUI)
+
xrandr --output  DP-1 --primary  --mode 1920x1080  --left-of  eDP-1    --auto
GenericName=Text Editor
+
 
Comment=GNU Emacs is an extensible, customizable text editor - and more
+
 
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
+
#3 display  关掉本本的display  Wednesday Sep  21  2022
TryExec=/usr/bin/emacs25
+
xrandr --output  DP-1 --primary  --mode 1920x1080  --output DP-2 --mode 1920x1080  --output  eDP-1    --off
Exec=/usr/bin/emacs25 %F
+
 
Icon=emacs25
+
 
Type=Application
+
多显示器
Terminal=false
+
今天使用了xrandr命令,似乎可以检测到扩展屏,之后详细看了xrandr的用法,运用 addmode 和 output 命令 结果可以用的!!!
Categories=Utility;Development;TextEditor;
+
 
StartupWMClass=Emacs
+
</pre>
Keywords=Text;Editor;
+
[http://blog.linuxchina.net/?p=1441 linux桌面(Dedian Ubuntu kali) 多显示器支持]
root@myxps:/usr/share/applications# cp  emacs25.desktop  emacs.desktop
+
 
root@myxps:/usr/share/applications# emacs  -nw  emacs.desktop
+
[https://wiki.archlinux.org/title/Xrandr_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87) Xrandr_archlinux]
root@myxps:/usr/share/applications# cat emacs.desktop
+
 
[Desktop Entry]
+
[https://www.dell.com/support/article/zh-cn/sln129825/%E5%A6%82%E4%BD%95%E8%AE%BE%E7%BD%AE%E5%A4%9A%E6%98%BE%E7%A4%BA%E5%99%A8?lang=zh 如何设置多显示器]
Version=1.0
+
 
Name=GNU Emacs 26 (GUI)
+
 
GenericName=Text Editor
+
[https://segmentfault.com/a/1190000041843083 Linux下利用xrandr配置多显示器]
Comment=GNU Emacs is an extensible, customizable text editor - and more
 
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
 
TryExec=/usr/bin/emacs26
 
Exec=/usr/bin/emacs26 %F
 
Icon=emacs25
 
Type=Application
 
Terminal=false
 
Categories=Utility;Development;TextEditor;
 
StartupWMClass=Emacs
 
Keywords=Text;Editor;
 
  
  
</pre>
 
http://ubuntuhandbook.org/index.php/2019/04/gnu-emacs-26-2-released-install-in-ubuntu-18-04/
 
=== emacs25===
 
apt install emacs -y
 
  
[[How to Compile Emacs on Linux]]
+
https://www.dell.com/community/Laptops-General-Read-Only/XPS-13-2in1-How-Many-External-Monitors-on-One-USB-C/td-p/5104782
  
[[Emacs入门]]
+
[https://simonhawketts.co.uk/2017/02/27/multiple-monitors-on-a-dell-xps-13/ multiple-monitors-on-a-dell-xps-13]
  
===文件管理===
+
https://wiki.archlinux.org/index.php/Multihead
apt install  pcmanfm-qt # thunar
 
  
<pre>
+
https://wiki.debian.org/DualMonitorDualServerOneInput
#gedit 另外到 mousepad
+
 
cat /usr/share/applications/gedit.desktop
+
[https://www.jianshu.com/p/4c37e52632da linux 视频输出xrandr设置命令]
[Desktop Entry]
 
Name=gedit
 
Comment[zh_CN]=简易文本编辑器
 
GenericName=Text Editor
 
GenericName[zh_CN]=文本编辑器
 
GenericName[zh_TW]=文字編輯程式
 
Exec=mousepad %F
 
Icon=accessories-text-editor
 
Terminal=false
 
StartupNotify=true
 
Type=Application
 
Categories=Utility;TextEditor;GTK;
 
MimeType=text/plain;
 
  
</pre>
+
[http://blog.linuxchina.net/?p=285 xrandr — fvwm 双显示器]
  
=== 终端软件===
+
==外观==
  apt install terminator #tilix # ssh tools pacmanager
+
  lxappearance
 +
lxqt 外观设置 qt风格用 qt5  other kali-light 不然 vlc 可能不好看
  
[[terminator基础]]
 
  
===[[下载工具]]===
+
[http://www.linuxdiyf.com/soft/33622.html  12 个最佳 GNOME(GTK)主题]
  
 +
[http://www.linuxdiyf.com/soft/33625.html  5 款适合程序员的开源字体]
 +
==bashrc ==
 +
<pre>
 +
#参考了 elementary
 +
# ~/.bashrc: executed by bash(1) for non-login shells.
 +
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
 +
# for examples
 +
# We use preexec and precmd hook functions for Bash
 +
# If you have anything that's using the Debug Trap or PROMPT_COMMAND
 +
# change it to use preexec or precmd
 +
# See also https://github.com/rcaloras/bash-preexec
  
=== music===
+
# If not running interactively, don't do anything
==== deadbeef====
+
case $- in
[http://deadbeef.sourceforge.net/download.html 建议用deadbeef直接下载deb包]
+
    *i*) ;;
 +
      *) return;;
 +
esac
  
[http://deadbeef.sourceforge.net/plugins.html plugins]
+
# don't put duplicate lines or lines starting with space in the history.
====qmmp====
+
# See bash(1) for more options
[https://www.howtoing.com/how-to-get-the-most-out-of-qmmp-1-0/ 如何充分利用Qmmp 1.0]
+
HISTCONTROL=ignoreboth
  
皮肤下载 然后 ctrl+p 选择你下载的 .wsz skinsfile
+
# append to the history file, don't overwrite it
http://qmmp.ylsoftware.com/files/skins
+
shopt -s histappend
 +
 
 +
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
 +
HISTSIZE=1000
 +
HISTFILESIZE=2000
 +
 
 +
# check the window size after each command and, if necessary,
 +
# update the values of LINES and COLUMNS.
 +
shopt -s checkwinsize
  
[http://vinmusic.com/tool/qmmp/ ubuntu下的音频播放器: Qmmp]
+
# If set, the pattern "**" used in a pathname expansion context will
 +
# match all files and zero or more directories and subdirectories.
 +
#shopt -s globstar
  
==== quodlibet====
+
# make less more friendly for non-text input files, see lesspipe(1)
<pre># deb http://lazka.github.io/ql-debian/testing/ quodlibet-unstable/
+
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5A62D0CAB6264964
 
sudo apt-get update
 
sudo apt-get install quodlibet</pre>
 
  
====Audacity  ====
+
# set variable identifying the chroot you work in (used in the prompt below)
[[Audacity音频处理]]  
+
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
Audacity 多轨跨平台的音频编辑软件
+
    debian_chroot=$(cat /etc/debian_chroot)
 +
fi
  
=== install rednotebook===
+
# set a fancy prompt (non-color, unless we know we "want" color)
[https://github.com/collinss/sticky Sticky Notes便笺]
+
case "$TERM" in
<pre>
+
    xterm-color|*-256color) color_prompt=yes;;
#太老版本,不建议用
+
esac
#apt-get install rednotebook 
 
  
  sudo apt-get install noblenote
+
# uncomment for a colored prompt, if the terminal has the capability; turned
 +
# off by default to not distract the user: the focus in a terminal window
 +
# should be on the output of commands, not on the prompt
 +
#force_color_prompt=yes
  
 +
if [ -n "$force_color_prompt" ]; then
 +
    if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
 +
# We have color support; assume it's compliant with Ecma-48
 +
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
 +
# a case would tend to support setf rather than setaf.)
 +
color_prompt=yes
 +
    else
 +
color_prompt=
 +
    fi
 +
fi
  
#2020 jul
+
if [ "$color_prompt" = yes ]; then
wget -c https://github.com/jendrikseipp/rednotebook/archive/v2.19.tar.gz
+
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
 +
else
 +
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
 +
fi
 +
unset color_prompt force_color_prompt
  
sudo apt install python3-yaml
+
# enable color support of ls and also add handy aliases
 +
if [ -x /usr/bin/dircolors ]; then
 +
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
 +
    alias ls='ls --color=auto'
 +
    #alias dir='dir --color=auto'
 +
    #alias vdir='vdir --color=auto'
  
 +
    alias grep='grep --color=auto'
 +
    alias fgrep='fgrep --color=auto'
 +
    alias egrep='egrep --color=auto'
 +
fi
  
rednotebook$ sudo python3  setup.py  install
+
# colored GCC warnings and errors
 +
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
  
 +
# some more ls aliases
 +
alias ll='ls -alF'
 +
alias la='ls -A'
 +
alias l='ls -CF'
  
#or 问题 新版本的图片看不到了
+
# Add an "alert" alias for long running commands.  Use like so:
wget -c https://github.com/jendrikseipp/rednotebook/archive/v2.19.tar.gz
+
#   sleep 10; alert
#wget -c --no-check-certificate https://github.com/jendrikseipp/rednotebook/archive/v2.6.1.tar.gz
+
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
tar xvf v2.6.1.tar.gz
 
sudo mv rednotebook-2.6.1 /opt/rednotebook
 
vi  /usr/share/applications/rednotebook.desktop
 
 
 
[Desktop Entry]
 
Encoding=UTF-8
 
Name=rednotebook
 
GenericName=rednotebook
 
Comment[zh_CN]=日志本
 
Comment= journal
 
#Exec=/home/evan/software/rednotebook-2.2/run
 
#Icon=/home/evan/software/rednotebook-2.2/rednotebook.png
 
Exec=/opt/rednotebook/run
 
Icon=/opt/rednotebook/rednotebook.png
 
Terminal=false
 
X-MultipleArgs=false
 
StartupWMClass=Firefox
 
Type=Application
 
Categories=Utility;TextEditor;GTK;
 
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
 
  
 +
# Alias definitions.
 +
# You may want to put all your additions into a separate file like
 +
# ~/.bash_aliases, instead of adding them here directly.
 +
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
  
#sudo mv /usr/bin/rednotebook /usr/bin/rednotebook1.4
+
if [ -f ~/.bash_aliases ]; then
#sudo ln -s /home/evan/software/rednotebook-1.10.1/rednotebook/rednotebook  /usr/bin/rednotebook
+
    . ~/.bash_aliases
 +
fi
  
 +
# enable programmable completion features (you don't need to enable
 +
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
 +
# sources /etc/bash.bashrc).
 +
if ! shopt -oq posix; then
 +
  if [ -f /usr/share/bash-completion/bash_completion ]; then
 +
    . /usr/share/bash-completion/bash_completion
 +
  elif [ -f /etc/bash_completion ]; then
 +
    . /etc/bash_completion
 +
  fi
 +
fi
  
家目录  /home/evan/.rednotebook
+
# If this is an xterm set more declarative titles
rsync  -avz  /home/evan/.rednotebook/  192.168.0.176:/home/evan/.rednotebook/
+
# "dir: last_cmd" and "actual_cmd" during execution
 +
# If you want to exclude a cmd from being printed see line 156
 +
case "$TERM" in
 +
xterm*|rxvt*)
 +
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\$(print_title)\a\]$PS1"
 +
    __el_LAST_EXECUTED_COMMAND=""
 +
    print_title ()
 +
    {
 +
        __el_FIRSTPART=""
 +
        __el_SECONDPART=""
 +
        if [ "$PWD" == "$HOME" ]; then
 +
            __el_FIRSTPART=$(gettext --domain="pantheon-files" "Home")
 +
        else
 +
            if [ "$PWD" == "/" ]; then
 +
                __el_FIRSTPART="/"
 +
            else
 +
                __el_FIRSTPART="${PWD##*/}"
 +
            fi
 +
        fi
 +
        if [[ "$__el_LAST_EXECUTED_COMMAND" == "" ]]; then
 +
            echo "$__el_FIRSTPART"
 +
            return
 +
        fi
 +
        #trim the command to the first segment and strip sudo
 +
        if [[ "$__el_LAST_EXECUTED_COMMAND" == sudo* ]]; then
 +
            __el_SECONDPART="${__el_LAST_EXECUTED_COMMAND:5}"
 +
            __el_SECONDPART="${__el_SECONDPART%% *}"
 +
        else
 +
            __el_SECONDPART="${__el_LAST_EXECUTED_COMMAND%% *}"
 +
        fi
 +
        printf "%s: %s" "$__el_FIRSTPART" "$__el_SECONDPART"
 +
    }
 +
    put_title()
 +
    {
 +
        __el_LAST_EXECUTED_COMMAND="${BASH_COMMAND}"
 +
        printf "\033]0;%s\007" "$1"
 +
    }
 +
   
 +
    # Show the currently running command in the terminal title:
 +
    # http://www.davidpashley.com/articles/xterm-titles-with-bash.html
 +
    update_tab_command()
 +
    {
 +
        # catch blacklisted commands and nested escapes
 +
        case "$BASH_COMMAND" in
 +
            *\033]0*|update_*|echo*|printf*|clear*|cd*)
 +
            __el_LAST_EXECUTED_COMMAND=""
 +
                ;;
 +
            *)
 +
            put_title "${BASH_COMMAND}"
 +
            ;;
 +
        esac
 +
    }
 +
    preexec_functions+=(update_tab_command)
 +
    ;;
 +
*)
 +
    ;;
 +
esac
  
 +
#old
 +
alias poweroff='sudo sync && sudo  poweroff'
 +
alias halt='sudo sync && sudo sync && sudo  poweroff'
 +
alias ll='ls $LS_OPTIONS -l'
 +
alias jump='/home/evan/jumpser'
 +
alias ifconfig='/sbin/ifconfig'
 +
#alias em='/usr/local/bin/emacs -nw'
 +
alias em='emacs -nw'
 +
alias emacs='emacs-gtk'
 +
#alias em='emacs -nw'
 +
alias pdf='atril'
 +
alias gedit='mousepad'
 +
export PATH=/usr/local/go/bin/:$PATH
 +
#export GOPATH=/root/go/  #(可选设置) 如果你用root运行
 +
export GOROOT=/usr/local/go/
 +
#export GOARCH=amd64
 +
#export GOOS=linux
 +
export GOTOOLS=$GOROOT/pkg/tool
 +
#export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
  
 +
#export PATH=$PATH:/usr/local/gobin
 +
</pre>
  
ModuleNotFoundError: No module named 'distutils.core'
+
==all4one==
 
+
<pre>sudo apt install  tree  anjuta  geany  zim  remmina vlc  -y  #synapse spyder
sudo apt install python3-pip python3-yaml
+
#sudo apt-get install fcitx fcitx-table-wbpy ttf-wqy-microhei ttf-wqy-zenhei
 
+
sudo apt-get install alarm-clock-applet
 +
#eclipse  emacs  pycharm  chrome  自己独立安装 </pre>
  
 +
==解决没有声音: ==
 +
<pre>
 +
  sudo apt install  pulseaudio
 +
systemctl --user enable pulseaudio && systemctl --user start pulseaudio
 +
  systemctl --user enable pulseaudio #打开声音控制就好了
 +
打开打开声音控制 然后
 +
语音控制--输入设备--输入插孔 记得好个小锁头要打开
  
 +
还有 就是 输出设备为  模拟耳机 20181023
  
 +
可能还有回放要 chrome
 
</pre>
 
</pre>
  
[[Rednotebook]]
+
== install applications==
 +
大不了在启动是 用 win+R  先启动kupfer
  
=== install bluefish===
+
===launcher===
Bluefish is a powerful editor targeted towards programmers and webdevelopers, with many options to write websites, scripts and programming code.
+
====[[Awesome#rofi_on_awesome|rofi_on_awesome]]====
  
  sudo apt install bluefish -y
+
==== rofi on xfce4 ====
 +
应用程序快捷键==添加 --命令里面填写 rofi -combi-modi window,drun,ssh -theme solarized -font 'hack 16' -show combi -icon-theme 'Papirus' -show-icons 并绑定super+d
  
 +
====synapse====
  
http://pkg.kali.org/pkg/bluefish
+
快捷键一般设置 为menu(win右边那个)  实在不行就设置 为  win +`    or  ctrl+1
  
[http://bluefish.openoffice.nl/index.html 官网]
+
====kupfer====
 +
====gnome-do====
 +
apt-get install gnome-do gnome-do-plugins.
 +
 
 +
===[[Linux 下的护眼软件]]===
  
[https://bfwiki.tellefsen.net/index.php/Installing_Bluefish  Installing Bluefish]
+
===[[热键管理软件sxhkd]] ===
  
=== install Sublime Text 3===
+
=== 系统还原===
<pre>wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
+
timeshift
sudo apt-get install apt-transport-https
+
https://github.com/teejee2008/timeshift
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
+
=== 视频播放===
sudo apt-get update &&  sudo apt-get install sublime-text
+
==== vlc====
  </pre>
+
apt install vlc # 也有升级功能  继续播放功能升级为3.0.6 版本就可以了 有皮肤 在插件管理器里
[https://www.sublimetext.com/docs/3/linux_repositories.html#apt 官方参考]
+
  外观配置  右键 工具 -->偏好设置-->界面-->Use native style Force window style qt5-style
 +
[https://zhuanlan.zhihu.com/p/102472853 这些简单的技巧使 VLC 更加出色]
  
===IM ===
+
[https://zhuanlan.zhihu.com/p/535539007 你不知道的VLC播放器常用痛点功能——快进、快捷键、剪切视频、旋转画面、视频提取声音等]
https://signal.org/
 
<pre>
 
#2020
 
  
sudo mv telegram-desktop telegram-desktopbak
+
==== smplaye====
 +
<pre>echo 'deb http://download.opensuse.org/repositories/home:/smplayerdev/Debian_9.0/ /' > /etc/apt/sources.list.d/home:smplayerdev.list
 +
apt-get update
 +
  sudo apt-get install smplaye# 好用 可提高音量到200% 看py 教程非常 爽 vlc都没这么好 也可手工下载包安装 </pre>
  
 +
[http://wiki.ubuntu.org.cn/SMPlayer SMPlayer使用]
  
sudo cp Telegram /usr/bin/
+
[https://software.opensuse.org/download.html?project=home%3Asmplayerdev&package=smplayer smplayer安装教程]
sudo cp Updater  /usr/bin/
 
  
sudo ln -s Telegram telegram-desktop
+
[http://wiki.ubuntu.org.cn/Qref/Apps#.E8.A7.86.E9.A2.91.E6.92.AD.E6.94.BE 软件参考]
  
  
 +
==== totem====
  
解压后复制到  /opt/Telegram/Telegram
+
=== 视频编辑===
/usr/bin$ sudo ln -s  /opt/Telegram/Telegram  telegram-desktop #要新的 用下载的吧
+
OpenShot
apt install  telegram-desktop
+
 
</pre>
+
=== 办公软件 ===
2.1.5 与fictx冲突  换回2.1.4 
+
 
https://telegram.org/
+
====xpad====
https://pkg.kali.org/pkg/telegram-desktop
+
====notepadqq.com====
 +
https://notepadqq.com/s/
 +
 
 +
====abiword and gnumeric====
 +
 
 +
====libreoffice====
 +
[http://blog.linuxchina.net/?p=132 libreoffice installation]
  
==== wechat====
+
[https://zh-cn.libreoffice.org/download/fonts/ 适用于 LibreOffice 的中日韩字体]
https://gitee.com/lizhuohuan/docker-wechat
 
==== QQ====
 
<pre>
 
ps  QQ 有些 平铺下退出  ,换个样式就可以了
 
  
 +
https://zh-cn.libreoffice.org/get-help/install-howto/linux/
  
root@k8s-master:~# bash -x  linuxqq_2.0.0-b1-1024_x86_64.sh
+
==== wps====
+ [[ root != \r\o\o\t ]]
+
http://community.wps.cn/download/
+ lines=33
+
<pre>
+ tarball_md5=f90cfea5999cf4eaafba0b8f0a2f80f8
+
问题
+ tail -n+33 linuxqq_2.0.0-b1-1024_x86_64.sh
+
依赖关系问题使得 wps-office 的配置工作不能继续:
++ md5sum linuxqq.tar.gz
+
wps-office 依赖于 libpng12-0;然而:
++ cut '-d ' -f1
+
  未安装软件包 libpng12-0。
+ md5=f90cfea5999cf4eaafba0b8f0a2f80f8
+
 
+ [[ f90cfea5999cf4eaafba0b8f0a2f80f8 != \f\9\0\c\f\e\a\5\9\9\9\c\f\4\e\a\a\f\b\a\0\b\8\f\0\a\2\f\8\0\f\8 ]]
+
wget http://ftp.cn.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.49-1+deb7u2_amd64.deb
+ export -f do_install
+
sudo dpkg -i libpng12-0_1.2.49-1+deb7u2_amd64.deb
+ tar zxf linuxqq.tar.gz
+
sudo dpkg -i wps-office_10.1.0.5672-a21_amd64.deb
+ find linuxqq/ -type f -exec bash -c 'do_install "{}"' ';'
+
</pre>
installing /usr/share/applications/qq.desktop
 
installing /usr/share/tencent-qq/crashpad_handler
 
installing /usr/share/tencent-qq/qq
 
installing /usr/share/tencent-qq/res.db
 
installing /usr/share/tencent-qq/qq.png
 
installing /usr/share/tencent-qq/qq.bmp
 
+ rm -rf linuxqq linuxqq.tar.gz
 
+ exit 0
 
  
</pre>
+
[https://itaken.github.io/post/2017/05/03/libpng12-0%E6%9C%AA%E5%AE%89%E8%A3%85%E9%94%99%E8%AF%AF.html libpng12-0未安装错误]
  
===浏览器 ===
+
[http://community.wps.cn/wiki/No_necessary_symbol_fonts wps字体]
====chrome ====
 
方法一:在官网下载对应版本的deb后执行
 
  google-chrome-stable #平时升级
 
 
 
[http://wiki.linuxchina.net/index.php?title=Ubuntu%E5%88%A9%E7%94%A8shadowsocks%E5%92%8Cpolipo%E7%BB%88%E7%AB%AF%E7%BF%BB%E5%A2%99#shadowsocks.E5.92.8Cpolipo 全局翻墙安装插件]
 
  
 +
===Notes ===
 +
gnote
  
Google Chrome有众多的出色的插件,说几个常用的
+
https://wiki.gnome.org/Design/Apps/Notes
suspender:内存不够用,可以装个suspender插件,把其他暂时不看的tab中断掉
 
AdBlock:最受欢迎的Chrome扩展,拥有超过4000万用户!屏蔽整个互联网上的广告
 
The QR Code Extension:允许当前页面生成QR码,并使用网络摄像头扫描QR码。
 
Window Resizer:调节屏幕的分辨率,诸多时候用户开发
 
Vimium:vim的分身
 
Proxy SwitchyOmega:轻松快捷地管理和切换多个代理设置
 
Wechat:微信
 
马克飞象:使用印象笔记扩展程序一键保存精彩网页内容到印象笔记帐户
 
惠惠购物助手:【网易出品】在您网购浏览商品的同时,自动对比其他优质电商同款商品价格,并提供商品价格历史,帮您轻松抄底,聪明网购不吃亏
 
JSON-handle:顾名思义就是处理JSON数据的工具
 
  
[https://www.yuzhi100.com/article/debian-9-anzhuang-chrome 使用 Apt 软件源安装谷歌 Chrome ]
+
[https://itsfoss.com/note-taking-apps-linux/ Some Good Note Taking Apps on Linux]
[[ 通过shadowsocks翻墙 ]]
 
  
====[http://wiki.linuxchina.net/index.php?title=Firefox%E5%AE%89%E8%A3%85%E5%92%8C%E6%B1%89%E5%8C%96 firefox]====
+
===zoom===
sudo apt install firefox-esr-l10n-zh-cn #如果用自带的esr版本
+
[https://zoom.us/download?os=linux download zoom]
常用插件  Auto Tab Discard, Notifier for Gmail ,  Tab Suspender
 
[[firefox安装和汉化]]
 
  
[https://www.mozilla.org/zh-CN/firefox/central/ firefox新手上路]
+
[https://support.zoom.us/hc/en-us/articles/204206269-Installing-or-updating-Zoom-on-Linux#h_adcc0b66-b2f4-468b-bc7a-12c182f354b7  Installing or updating Zoom on Linux]
  
====chromium====
+
<pre>
  apt install chromium chromium-l10n
+
sudo dpkg  -i  zoom_amd64.deb
https://wiki.debian.org/Chromium
+
sudo apt --fix-broken install
 +
sudo  dpkg  -i  zoom_amd64.deb
 +
</pre>
  
====falkon====
+
=== CAD ===
  sudo apt-get install falkon
+
==== freecad====
又一个轻量的web 浏览器 以前的 Qupzilla apt 会提示你的
+
  sudo add-apt-repository ppa:freecad-maintainers/freecad-stable
2017年8月10日,QupZilla开发者David Rosca在博客宣布QupZilla成为KDE项目。[5]Qupzilla 2.2发布之后项目将更名为“Falkon”。[6]KDE Falkon 3.0于2018年2月27日发布。
+
  sudo apt update
qupzilla conitnues development as falkon browser
+
  sudo apt install freecad
  
====[[tor]]====
+
[https://www.sysgeek.cn/linux-cad-software/ 适用于Linux系统的5款最佳CAD软件汇总]
  
====gnome-web====
+
https://wiki.freecadweb.org/Install_on_Unix/zh-cn
apt install  epiphany-browser
 
====midori====
 
这个暂时安装上不好用 以前可以 直接 apt
 
  
====palemoon====
+
https://launchpad.net/~freecad-maintainers/+archive/ubuntu/freecad-stable
<pre>
 
对于 Debian 10,请运行以下命令:
 
Keep in mind that the owner of the key may distribute updates, packages and repositories that your system will trust (more information).
 
  
echo 'deb http://download.opensuse.org/repositories/home:/stevenpusser/Debian_10/ /' | sudo tee /etc/apt/sources.list.d/home:stevenpusser.list
+
https://github.com/FreeCAD/FreeCAD/releases/tag/0.18.4
curl -fsSL https://download.opensuse.org/repositories/home:stevenpusser/Debian_10/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home:stevenpusser.gpg > /dev/null
 
sudo apt update
 
sudo apt install palemoon
 
</pre>
 
  
https://linux.palemoon.org/help/installation/
 
  
===download tools===
+
[https://linuxtoy.org/archives/6-of-the-best-free-linux-cad-software.html 6 款高品质的免费 Linux CAD 应用程序]
sudo apt install uget -y
 
  
axel 还是最爽的  下载rapian就知了
+
=== email ===
 +
====[[thunderbird]]====
 +
===GNURadio===
 +
GNURadio 是免费的软件开发工具套件。它提供信号运行和处理模块,用它可以在易制作的低成本的射频(RF)硬件和通用微处理器上实现软件定义无线电。 这套套件广泛用于业余爱好者,学术机构和商业机构用来研究和构建无线通信系统。
 +
  https://www.gnuradio.org/
  
===绘图工具dia ===
 
绘图工具dia(取代visio)
 
sudo apt install dia -y
 
  
===电子书calibre ===  
+
=== emacs27===
  apt install calibre
+
apt install emacs -y
  
===有道词典 ===
+
[[How to Compile Emacs on Linux]]
  
http://cidian.youdao.com/index-linux.html
+
[[Emacs入门]]
#在官网下载对应版本的deb后执行
+
=== vim and neovim===
sudo dpkg -i *.deb && sudo apt-get install -fy
 
  
===x11vnc===
+
===文件管理===
 +
apt install  pcmanfm-qt # thunar
  
x11vnc是一种 位图显示的 视窗系统 。它是在 Unix 和 类Unix 操作系统 ,以及 OpenVMS 上建立图形用户界面的标准工具包和协议。x11vnc服务端可以实现Windows远程Linux桌面系统。
+
<pre>
sudo apt-get install x11vnc
+
#gedit 另外到 mousepad
 
+
cat /usr/share/applications/gedit.desktop
===python===
+
[Desktop Entry]
sudo apt-get install ipython3
+
Name=gedit
 +
Comment[zh_CN]=简易文本编辑器
 +
GenericName=Text Editor
 +
GenericName[zh_CN]=文本编辑器
 +
GenericName[zh_TW]=文字編輯程式
 +
Exec=mousepad %F
 +
Icon=accessories-text-editor
 +
Terminal=false
 +
StartupNotify=true
 +
Type=Application
 +
Categories=Utility;TextEditor;GTK;
 +
MimeType=text/plain;
  
 +
</pre>
  
[https://www.cnblogs.com/xuanhun/p/5481907.html kali linux Python开发环境初始化]
+
=== 终端软件===
====python IDE ====
+
  apt install terminator #tilix # ssh tools  pacmanager
  sudo apt-get install spyder3
 
  
https://docs.spyder-ide.org/installation.html#
+
[[terminator基础]]
  
===ops tools===
+
=== 文件编辑器===
sudo apt install lrzsz #sz命令发送文件到本地: # sz filename
+
Atom 项目创始人 Max Brunsfeld 则推出了 Atom 精神续作 —— 用 Rust 语言开发的 Zed。 https://zed.dev/
===develop tools ===
 
apt install gdb
 
  
===catfish===
+
===[[下载工具]]===
sudo apt-get install catfish #catfish简称文件搜索神器
+
[https://www.savetweetvid.com/zh/downloader Twitter视频下载器]
  
===django===
+
=== music===
 
<pre>
 
<pre>
pip install Django==1.8.18
+
解决Linux下音乐乱码的问题:
 +
MP3文件乱码的原因:
 +
    这个问题出现在mp3文件里,由于大陆大多数MP3文件都是用GBK/GB18030编码写入标签信息的,而大多数的linux播放器默认以utf-8编码读取,这就产生了乱码。
 +
解决方法:
 +
    使用Mutagen来修改Mp3文件的标签信息,具体方法如下(只针对GBK/GB18030编码的情况):
 +
    安装Mutagen(ubuntu下终端运行 sudo apt-get install python-mutagen)后,在终端执行:
  
#on ~/.bashrc
+
        mid3iconv -e gbk *.mp3
alias django-admin='/home/evan/.local/lib/python2.7/site-packages/django/bin/django-admin.py'
+
    如果想转换当前目录下的所有 mp3 (包括子目录):
</pre>
+
        find . -iname "*.mp3" -execdir mid3iconv -e gbk {} ;
 +
</pre>
 +
 
 +
====Audacious====
 +
[ɔˈdeɪʃəs]  大胆的
 +
重复播放  回放--重复--禁止播放下一首
  
===electronic-wechat===
+
download
  
electronic-wechat是一个基于nodeJS开发的Linux系统微信。
+
https://www.gnome-look.org/p/1008323/
<pre>
 
git clone https://github.com/geeeeeeeeek/electronic-wechat.git
 
cd electronic-wechat
 
npm install && npm start  #bash: npm: 未找到命令
 
  
bash: npm: 未找到命令
+
https://www.gnome-look.org/p/1008366
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
+
tar xvf  14870-Winamp5-XMMS.tar.bz2 &&  sudo mv Winamp5-XMMS /usr/share/audacious/Skins/
sudo apt-get install -y nodejs
 
</pre>
 
  
===截图===
+
https://ubuntugeneration.wordpress.com/2009/06/30/audacious-player-with-winamp-skin/
  
==== flameshot ====  
+
==== quodlibet====
sudo apt install flameshot
 
https://flameshot.js.org/#/getting-start
 
  
[https://zhuanlan.zhihu.com/p/48250522 Flameshot:一个简洁但功能丰富的截图工具]
+
不错可以支持repeat etc. July 2023
==== Shutter ====
 
gnome-screenshot
 
apt install shutter
 
sudo apt install deepin-screenshot -y
 
  
 +
<pre># deb http://lazka.github.io/ql-debian/testing/ quodlibet-unstable/
 +
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5A62D0CAB6264964
 +
sudo apt-get update
 +
sudo apt-get install quodlibet</pre>
  
====ShareX(win)====
+
====rhythmbox====
 +
不错 有排放列表 还支持quicktime
  
====deepin scrot 作废====
+
==== deadbeef====
<pre>
+
universal deb package amd64
sudo apt install deepin-screenshot -y
+
[http://deadbeef.sourceforge.net/download.html 建议用deadbeef直接下载deb包]
 +
 
 +
uninstall
 +
sudo dpkg -r  deadbeef#EdrawMax
 +
 
 +
[http://deadbeef.sourceforge.net/plugins.html plugins]
 +
 
 +
“DEADBEEF”是什么?可能很多人都没有听说过。DEADBEEF不是“死牛肉”的意思,而是一个十六进制数字,即0xDEADBEEF。最初使用它的是IBM的RS/6000系统。在该系统中,已分配但还未初始化的内存中用该数字来填充,使得程序员在调试时可以很容易地定位到目标内存区域。
 +
 
 +
====qmmp====
 +
apt install qmmp qmmp-plugin-projectm
 +
[https://www.howtoing.com/how-to-get-the-most-out-of-qmmp-1-0/ 如何充分利用Qmmp 1.0]
 +
 
 +
皮肤下载 然后 ctrl+p 选择你下载的 .wsz skinsfile
 +
http://qmmp.ylsoftware.com/files/skins
  
 +
[http://vinmusic.com/tool/qmmp/ ubuntu下的音频播放器: Qmmp]
  
wget -c http://packages.linuxdeepin.com/deepin/pool/main/d/deepin-scrot/deepin-scrot_2.0-0deepin_all.deb
 
sudo dpkg -i deepin-scrot_2.0-0deepin_all.deb
 
sudo apt-get install -f
 
#使用
 
deepin-scrot
 
  
图标
 
https://github.com/lovesnow/pystorm
 
在这 里选择另存为  default/start_cursor.png
 
  
  
screenshot
+
  apt-get install clementine
  
vi /usr/share/applications/scrot.desktop
+
https://www.clementine-player.org/downloads
[Desktop Entry]
 
Name=scrot
 
Name[zh_CN]=抓图
 
Comment=Save images of your desktop or individual windows
 
Comment[zh_CN]=保存您桌面还是单个窗口的图像
 
Exec=/usr/bin/deepin-scrot
 
Terminal=false
 
Type=Application
 
Icon=/home/evan/screenshot/start_cursor.png
 
StartupNotify=true
 
Categories=GTK;Utility;
 
Keywords=MATE;screenshot;snapshot;desktop;window;image;
 
OnlyShowIn=MATE;
 
X-MATE-Bugzilla-Bugzilla=MATE
 
X-MATE-Bugzilla-Product=mate-utils
 
X-MATE-Bugzilla-Component=screenshot
 
X-MATE-Bugzilla-OtherBinaries=mate-panel-screenshot
 
  
https://wiki.debian.org/ScreenShots
+
====Audacity  ====
 +
[[Audacity音频处理]]
 +
Audacity 多轨跨平台的音频编辑软件
  
/usr/share/applications# find ./ -name "*scree*"
+
1.导入:单机文件——导入即可
</pre>
 
[https://www.deepin.org/2012/03/02/deepin-scrot-2-0-video-and-install-in-ubuntu/ 深度截图工具(DEEPIN-SCROT]
 
  
===XMind===
+
先选中,左单击 就有一条线 然后 例如左 就向左拉 ,同理 要切掉右边的也一样
XMind是一款实用的思维导图软件,简单易用、美观、功能强大,拥有高效的可视化思维模式,具备可扩展、跨平台。但是对于稳定性和性能还是欠佳,在ubuntu上使用占用很大的CPU资源。
 
  
#在官网下载对应版本的deb后执行
+
2.剪辑:Backspace、Delete、Ctrl+K或编辑——删除,删除一段音频
sudo dpkg -i *.deb && sudo apt-get install -fy
 
  
===远程桌面软件===
+
3.淡出:选中音频——效果——淡出
====Remmina====
 
<pre>
 
Remmina是一个用远程桌面软件,提供了RDP、VNC、XDMCP、SSH等远程连接协议的支持。 家里有时连不上是原来的网线接口不太好,重插一下就好了 
 
sudo apt-get install remmina
 
  
usage
+
4.导出:文件——导出即可(MP3无编码库可以选择WAV导出)
  
高级-- 画质 --  最好
+
5.项目保存:文件——项目另存为即可
  
基本--色深--真色32位
+
[https://www.bilibili.com/video/BV1ua4y1i7SZ/?p=2&vd_source=e3e41ea2b1d70e0e3a6a0372ee88d714 audacity简易教程——针对想快速上手音频剪辑的小白]
  
</pre>
+
https://new.qq.com/rain/a/20221124A07VQY00
  
====rdesktop====
+
====Ardour多轨跨平台的音频编辑软件 ====
有时,有个备份的软件很重要 上次Remmina老是自动全屏,每次连接win后老是要断开 烦死了,于是找了一下 发现这货 记录一下
 
我的常用使用命令
 
rdesktop  -g 1280x960 192.168.30.54
 
  
[https://magiclen.org/rdesktop/ 在Linux上使用rdesktop]
+
=== install rednotebook===
 +
[https://github.com/collinss/sticky Sticky Notes便笺]
 +
<pre>
 +
#太老版本,不建议用
 +
#apt-get install rednotebook 
  
[https://wiki.archlinux.org/index.php/rdesktop arch rdesktop]
+
  sudo apt-get install noblenote
  
====freerdp====
 
freerdp.com
 
  apt install freerdp-x11 freerdp2-x11
 
http://manpages.ubuntu.com/manpages/xenial/man1/xfreerdp.1.html
 
  
https://www.jianshu.com/p/f6fcf5b56fe3
+
#2020 jul
 +
wget -c https://github.com/jendrikseipp/rednotebook/archive/v2.19.tar.gz
  
===数据库连接 ===
+
sudo apt install python3-yaml
====[[Dbeaver安装]]====
 
  
  
===思维导图===
+
rednotebook$ sudo python3  setup.py  install
[[freeplane]]
 
===IDE===
 
====eclipse====
 
  
https://www.eclipse.org/downloads/eclipse-packages/
 
  
[https://www.linuxidc.com/Linux/2018-12/155943.htm Ubuntu 18.04下JDK与Eclipse安装配置]
+
#or 问题 新版本的图片看不到了
<pre>
+
wget -c https://github.com/jendrikseipp/rednotebook/archive/v2.19.tar.gz
 +
#wget -c --no-check-certificate https://github.com/jendrikseipp/rednotebook/archive/v2.6.1.tar.gz
 +
tar xvf v2.6.1.tar.gz
 +
sudo mv rednotebook-2.6.1 /opt/rednotebook
 +
vi  /usr/share/applications/rednotebook.desktop
  
 
 
cat /usr/share/applications/eclipse.desktop
 
 
[Desktop Entry]
 
[Desktop Entry]
Name=eclipse
 
Name[zh_CN]=eclipse IDE
 
GenericName=Integrated Development Environment
 
GenericName[zh_CN]=集成开发环境
 
Comment=Develop software in an integrated development environment
 
Comment[zh_CN]=在集成开发环境中开发软件
 
 
Encoding=UTF-8
 
Encoding=UTF-8
Exec=/home/evan/apps/eclipse/eclipse
+
Name=rednotebook
Icon=/home/evan/apps/eclipse/icon.xpm
+
GenericName=rednotebook
 +
Comment[zh_CN]=日志本
 +
Comment= journal
 +
#Exec=/home/evan/software/rednotebook-2.2/run
 +
#Icon=/home/evan/software/rednotebook-2.2/rednotebook.png
 +
Exec=/opt/rednotebook/run
 +
Icon=/opt/rednotebook/rednotebook.png
 
Terminal=false
 
Terminal=false
 
X-MultipleArgs=false
 
X-MultipleArgs=false
 
StartupWMClass=Firefox
 
StartupWMClass=Firefox
 
Type=Application
 
Type=Application
Categories=GNOME;GTK;Development;IDE;
+
Categories=Utility;TextEditor;GTK;
StartupNotify=true
+
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
</pre>
+
 
 +
 
 +
#sudo mv /usr/bin/rednotebook /usr/bin/rednotebook1.4
 +
#sudo ln -s /home/evan/software/rednotebook-1.10.1/rednotebook/rednotebook  /usr/bin/rednotebook
  
===Meld===
 
Meld是针对开发者的视觉差异和合并工具。MELD帮助您比较文件、目录和版本控制的项目。它提供了两个和三个比较的文件和目录,并支持许多流行的版本控制系统。既可以查看差异有可以同步!
 
sudo apt-get install meld
 
  
===spyder ===
+
家目录  /home/evan/.rednotebook
 +
rsync  -avz  /home/evan/.rednotebook/  192.168.0.176:/home/evan/.rednotebook/
  
Python的开源IDE
 
可在MIT许可下免费使用
 
Spyder python的一些基本特性是多语言编辑器,交互式控制台,文档查看器,变量浏览器,在文件中查找,文件浏览器等
 
虽然Spyder是一个独立的IDE,支持包括Windows,Linux,MacOS,MacOS X等多个平台,但它也可以作为一个PyQt扩展库嵌入到PyQt应用程序
 
sudo apt-get install spyder
 
https://pythonhosted.org/spyder/index.html
 
  
链接:https://github.com/spyder-ide/spyder
 
 
https://pythonhosted.org/spyder/installation.html 
 
 
问题就是在awesome环境中fcitx 不能打中文
 
  
=== albert===
+
ModuleNotFoundError: No module named 'distutils.core'
wget -c http://repo.adminlounge.org/pool/dists/jessie/main/a/albert/albert_0.12_amd64.deb
+
 
sudo dpkg -i albert_0.12_amd64.deb  && sudo apt-get install -fy
+
sudo apt install python3-pip python3-yaml
  
https://albertlauncher.github.io/docs/installing/
 
官方安装命令好像不成功呢 所以 我直接拿出deb包了
 
 
 
===install eric6===
 
<pre>
 
eric6 支持 py2 and py3
 
sudo apt install eric -y
 
  
安裝插件
 
插件--> 插件儲存庫 -->  然後都是下載 安装 下一步什么 的就行了
 
  
问题就是导致fcitx 不能打中文
 
  
 +
</pre>
  
Debugging with the Eric IDE
+
[[Rednotebook]]
I would sum up how to debug with the Eric IDE too:
 
  
F5 (start debugging; untick “Don’t stop at first line” or set a breakpoint)
+
===  跨平台开源待办事项和笔记 OpenTodoList ===
F10 (stop)
+
[https://linuxtoy.org/archives/opentodolist.html  跨平台开源待办事项和笔记 OpenTodoList ]
F7 (next, step in subroutines)
 
F8 (next, step over subroutines)
 
F9 (return, step out of subroutine)
 
F6 (continue, go, run)
 
Shift+F6 (continue till cursor)
 
conditional breakpoints are supported (set a breakpoint, right click on it, edit)
 
I find Eric’s debugger is much faster than Winpdb.0
 
  
  
trouble shooting
+
=== install bluefish===
 +
Bluefish is a powerful editor targeted towards programmers and webdevelopers, with many options to write websites, scripts and programming code.
  
下列软件包有未满足的依赖关系:
+
  sudo apt install bluefish -y
  libkf5coreaddons5 : 破坏: libkf5globalaccel-bin (< 5.37) 但是 5.28.0-1 正要被安装
 
libkf5crash5 : 破坏: libkf5globalaccel-bin (< 5.37) 但是 5.28.0-1 正要被安装
 
E: 错误,pkgProblemResolver::Resolve 发生故障,这可能是有软件包被要求保持现状的缘故。
 
  
  
如果用新立得 就是提示
+
http://pkg.kali.org/pkg/bluefish
无法应用变更! 请先修复损毁的软件包
 
  
结果这样就好了
+
[http://bluefish.openoffice.nl/index.html 官网]
sudo apt-get install -f
 
sudo dpkg --configure -a
 
  
sudo apt-get dist-upgrade
+
[https://bfwiki.tellefsen.net/index.php/Installing_Bluefish  Installing Bluefish]
  
 +
=== install Sublime Text 4===
 +
<pre>
  
  
#这个小心点
+
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get autoremove
+
sudo apt-get install apt-transport-https
</pre>
+
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
 +
sudo apt-get update
 +
sudo apt-get install sublime-text
 +
</pre>
 +
[https://www.sublimetext.com/docs/3/linux_repositories.html#apt 官方参考]
  
http://eric-ide.python-projects.org/
+
===IM ===
 +
https://signal.org/
 +
<pre>
 +
#2020
  
http://pydev.sourceforge.net/
+
sudo mv telegram-desktop  telegram-desktopbak
  
[http://www.freehackers.org/IDE_for_python_and_django_development_on_linux IDE for python and django development on linux]
 
  
[http://blog.mattwoodward.com/2012/08/manually-installing-django-plugin-for.html Manually Installing the Django Plugin for Eric]
+
sudo cp Telegram /usr/bin/
 +
sudo cp Updater  /usr/bin/
 +
 
 +
sudo ln -s Telegram telegram-desktop
  
===Figlet===
 
一句话:Figlet是一个将字符串在终端生成一个logo的终端工具。
 
sudo apt-get install figlet
 
figlet mylove
 
===bleachbit ===
 
sudo apt install bleachbit
 
sudo  bleachbit #有中文界面
 
[https://www.howtoing.com/ccleaner-alternatives-for-ubuntu 用于Ubuntu的6款最佳CCleaner替代品]
 
===chmsee ===
 
  
chmsee
 
  
===打印机===
+
解压后复制到  /opt/Telegram/Telegram
====惠普(HP_LaserJet_Professional_M1216nfh_MFP)HP打印机驱动安装====
+
/usr/bin$ sudo ln -s  /opt/Telegram/Telegram  telegram-desktop #要新的 用下载的吧
===== apt我使用的办法 =====
+
apt install  telegram-desktop
<pre>
 
1、打开深度终端,输入:sudo apt-get update && sudo apt-get install hplip hplip-gui hplip-plugin
 
libcups2 libcups2-dev cups-bsd cups-client libcupsimage2 libcupsimage2-dev libdbus-1-dev
 
 
</pre>
 
</pre>
2、接着终端输入:hp-setup, 按照提示一路下一步 https://developers.hp.com/hp-linux-imaging-and-printing/install/manual/hp_setup
+
2.1.5 与fictx冲突  换回2.1.4 
 +
https://telegram.org/
 +
https://pkg.kali.org/pkg/telegram-desktop
  
 +
==== wechat====
 +
2024
 +
<pre>
  
https://wiki.deepin.org/index.php?title=%E6%89%93%E5%8D%B0%E6%9C%BA
+
删除旧版本
 +
apps dpkg -l '*weixin*'
 +
➜  apps sudo dpkg -r weixin
  
===== 官方下载=====
+
https://github.com/lovechoudoufu/wechat_for_linux
https://developers.hp.com/hp-linux-imaging-and-printing/gethplip
 
  
https://developers.hp.com/hp-linux-imaging-and-printing/install
+
sudo  dpkg -i wechat-beta_1.0.0.145_amd64.fixed.deb
  
 +
</pre>
  
https://developers.hp.com/hp-linux-imaging-and-printing/install/install/index
 
  
===== 故障处理=====
+
下面的为老的的
Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=slp)
+
https://archive.ubuntukylin.com/software/pool/partner/
error: No PPD found for model laserjet_professional_m1216nfh_mfp using old algorithm.
 
error: No appropriate print PPD file found for model hp_laserjet_professional_m1216nfh_mfp
 
  
HP_LaserJet_Professional_M1216nfh_MFP
+
这个才是新的
 +
[ ] weixin_2.1.4_amd64.deb 2022-05-23 18:05 105M
  
Would you like to specify the path to the correct PPD file to use (y=yes, n=no*, q=quit) ? y
 
  
解决办法 启动cups
 
  
sudo /etc/init.d/cups start
+
ukylin-wxwork_1.0_amd64.deb
  
===虚拟机软件===
+
https://bbs.deepin.org/post/236399
http://pkg.kali.org/pkg/virtualbox
 
<pre>
 
myos is  kali 2020.2
 
  
 +
https://fuwu.weixin.qq.com/community/develop/doc/00064e3da942108c9bfcee0a756000?_at=1658335578791
  
sudo apt --fix-broken install
+
[http://www.mintos.org/soft/freechat-wechat.html FreeChat接班Electronic Wechat网页微信]
  416  sudo apt install linux-headers-5.4.0-kali4-amd64
 
  sudo apt install libsdl-ttf2.0-0
 
 
 
 
 
去掉vbox官方的源 
 
然后  sudo apt install virtualbox  就是最新的6.1的  原来自己的源里有哦 
 
  
用二进制包有错 和官方源有问题的 不用理了
+
https://gitee.com/lizhuohuan/docker-wechat
 +
===== wechat icon=====
 +
<pre>
 +
#我的
 +
cat /usr/share/applications/wechat.desktop
 +
[Desktop Entry]
 +
Version=1.5
 +
Name=wechat  Desktop
 +
Comment=Official desktop version of wechat  messaging app
 +
#TryExec=telegram-desktop
 +
Exec=/opt/weixin/weixin -- %u
 +
Icon=/home/evan/downloads/wechat.png
 +
#Icon=/home/evan/apps/eclipse/icon.xpm
 +
Terminal=false
 +
Type=Application
 +
Categories=Chat;Network;InstantMessaging;Qt;
 +
MimeType=x-scheme-handler/tg;
 +
Keywords=tg;chat;im;messaging;messenger;sms;tdesktop;
 +
Actions=Quit;
 +
SingleMainWindow=true
 +
X-GNOME-UsesNotifications=true
 +
X-GNOME-SingleWindow=true
  
 +
#[Desktop Action Quit]
 +
#Exec=telegram-desktop -quit
 +
#Name=Quit Telegram
 +
#Icon=application-exit
  
  
#国内mirrors
 
https://mirrors.tuna.tsinghua.edu.cn/virtualbox/
 
  
 +
#自带的
 +
cat weixin.desktop
 +
[Desktop Entry]
 +
Name[tr]=weixin
 +
Name[zh_CN]=微信
 +
Exec=/opt/weixin/weixin %U
 +
Terminal=false
 +
Type=Application
 +
Icon=weixin
 +
StartupWMClass=weixin
 +
Comment=微信桌面版
 +
Categories=Utility;
  
https://mirrors.tuna.tsinghua.edu.cn/virtualbox/6.1.4/virtualbox-6.1_6.1.4-136177~Debian~buster_amd64.deb
+
</pre>
  
 +
====钉钉====
 +
https://alidocs.dingtalk.com/i/p/nb9XJlJ7QbxN8GyA/docs/ROGpvEna5YQWmaPgQ156W4ykmK3zoB27
  
sudo apt install virtualbox
 
  
https://download.virtualbox.org/virtualbox/6.0.10/virtualbox-6.0_6.0.10-132072~Ubuntu~bionic_amd64.deb
+
下载链接:(当前最新版本1.4.0.20810 )  https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Release/com.alibabainc.dingtalk_1.4.0.20810_amd64.deb
  
 +
下载链接:(当前最新版本1.4.0.20425)https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Release/com.alibabainc.dingtalk_1.4.0.20425_amd64.deb
  
myos is  kali 2017.3
+
==== QQ====
Debian 9 ("Stretch")  i386 | AMD64
+
<pre>
wget -c http://download.virtualbox.org/virtualbox/5.2.2/virtualbox-5.2_5.2.2-119230~Debian~stretch_amd64.deb
+
ps QQ 有些 平铺下退出  ,换个样式就可以了
  
apt install  linux-headers-amd64 linux-headers-4.13.0-kali1-amd64
 
sudo /sbin/vboxconfig
 
  
 +
root@k8s-master:~# bash -x  linuxqq_2.0.0-b1-1024_x86_64.sh
 +
+ [[ root != \r\o\o\t ]]
 +
+ lines=33
 +
+ tarball_md5=f90cfea5999cf4eaafba0b8f0a2f80f8
 +
+ tail -n+33 linuxqq_2.0.0-b1-1024_x86_64.sh
 +
++ md5sum linuxqq.tar.gz
 +
++ cut '-d ' -f1
 +
+ md5=f90cfea5999cf4eaafba0b8f0a2f80f8
 +
+ [[ f90cfea5999cf4eaafba0b8f0a2f80f8 != \f\9\0\c\f\e\a\5\9\9\9\c\f\4\e\a\a\f\b\a\0\b\8\f\0\a\2\f\8\0\f\8 ]]
 +
+ export -f do_install
 +
+ tar zxf linuxqq.tar.gz
 +
+ find linuxqq/ -type f -exec bash -c 'do_install "{}"' ';'
 +
installing /usr/share/applications/qq.desktop
 +
installing /usr/share/tencent-qq/crashpad_handler
 +
installing /usr/share/tencent-qq/qq
 +
installing /usr/share/tencent-qq/res.db
 +
installing /usr/share/tencent-qq/qq.png
 +
installing /usr/share/tencent-qq/qq.bmp
 +
+ rm -rf linuxqq linuxqq.tar.gz
 +
+ exit 0
  
 +
</pre>
  
if  ubuntu18.04
+
===浏览器 ===
去清华大学 mirros 下载 6.1  有问题就  sudo apt --fix-broken install
+
====chrome ====
 
+
方法一:在官网下载对应版本的deb后执行
</pre>
+
  google-chrome-stable #平时升级
 
+
 
http://pkg.kali.org/pkg/virtualbox
+
[http://wiki.linuxchina.net/index.php?title=Ubuntu%E5%88%A9%E7%94%A8shadowsocks%E5%92%8Cpolipo%E7%BB%88%E7%AB%AF%E7%BF%BB%E5%A2%99#shadowsocks.E5.92.8Cpolipo 全局翻墙安装插件]
 
 
[https://mirrors.tuna.tsinghua.edu.cn/help/virtualbox/ VirtualBox 镜像使用帮助]
 
 
 
===keepass2===
 
sudo apt install keepass2
 
===翻墙===
 
[[Chrome通过shadowsocks翻墙]]
 
  
[[Ubuntu利用shadowsocks和polipo终端翻墙]]
 
<pre>
 
sslocal -s linuxsa.org  -p 443  -k "lai22" -l 7070 -t 600 -m aes-256-cfb #on new kali 加 /etc/rc.local
 
  
#!/bin/bash
+
Google Chrome有众多的出色的插件,说几个常用的
source /etc/profile #一定要加  不然可能sslocal都说找不到
+
suspender:内存不够用,可以装个suspender插件,把其他暂时不看的tab中断掉
ps -ef | grep sslocal | grep -v grep
+
AdBlock:最受欢迎的Chrome扩展,拥有超过4000万用户!屏蔽整个互联网上的广告
if [ $? -ne  0 ]
+
The QR Code Extension:允许当前页面生成QR码,并使用网络摄像头扫描QR码。
then
+
Window Resizer:调节屏幕的分辨率,诸多时候用户开发
/usr/bin/python /usr/local/bin/sslocal -s linuxsa.org  -p 443  -k "lai2240" -l 7070 -t 600 -m aes-256-cfb #on new kali
+
Vimium:vim的分身
else
+
Proxy SwitchyOmega:轻松快捷地管理和切换多个代理设置
#echo "has run "
+
Wechat:微信
:
+
马克飞象:使用印象笔记扩展程序一键保存精彩网页内容到印象笔记帐户
fi
+
惠惠购物助手:【网易出品】在您网购浏览商品的同时,自动对比其他优质电商同款商品价格,并提供商品价格历史,帮您轻松抄底,聪明网购不吃亏
 +
JSON-handle:顾名思义就是处理JSON数据的工具
  
 +
[https://www.yuzhi100.com/article/debian-9-anzhuang-chrome 使用 Apt 软件源安装谷歌 Chrome ]
 +
[[ 通过shadowsocks翻墙 ]]
  
 +
====[http://wiki.linuxchina.net/index.php?title=Firefox%E5%AE%89%E8%A3%85%E5%92%8C%E6%B1%89%E5%8C%96 firefox]====
 +
sudo apt install firefox-esr-l10n-zh-cn #如果用自带的esr版本
 +
常用插件  Auto Tab Discard, Notifier for Gmail ,  Tab Suspender
 +
2. 关闭硬件加速
 +
3. 关闭平滑滚动
 +
https://addons.mozilla.org/zh-CN/firefox/addon/yass-we/
  
 +
[https://www.v2ex.com/t/752576#reply22 Linux 下 Firefox 滚动网页会抖动,求教]
  
 +
[[firefox安装和汉化]]
  
 +
[https://www.mozilla.org/zh-CN/firefox/central/ firefox新手上路]
  
 +
====chromium====
 +
apt install chromium chromium-l10n
 +
https://wiki.debian.org/Chromium
 +
====waterfox====
 +
https://www.waterfox.net/
 +
==== ms edge ====
 +
直接官方下载deb
 +
sudo apt remove microsoft-edge-stable
 +
 +
==== brave====
 +
 +
国内安装不了 先FQ
 +
=====安装Privoxy =====
 +
<pre>
 +
apt  install privoxy
 +
配置Privoxy
 +
① 修改配置文件/etc/privoxy/config
 +
vi /etc/privoxy/config
 +
 +
② 确保如下内容没有被注释掉
 +
    listen-address 0.0.0.0:8118  #如果代理给局域网的其它人用 就要用 0.0.0.0
 +
    listen-address 127.0.0.1:8118    ## # 这个可能已打开的了 8118 是默认端口,不用改  改下面的 转发socket 到http这里要写上本机的ip
 +
    forward-socks5t / 127.0.0.1:1080 . #转发到本地端口 转发到本地端口 这个要自己添加 注意 最后有个. 哦
 +
 +
设置http/https代理
 +
    ① 修改配置文件/etc/profile
 +
    vi /etc/profile
 +
 +
添加如下信息:
 +
cat >> /etc/profile <<EOF
 +
export http_proxy=http://127.0.0.1:8118
 +
export https_proxy=http://127.0.0.1:8118
 +
export ftp_proxy=http://127.0.0.1:8118
 +
EOF
 +
 +
source /etc/profile
 +
 +
#不要代理的
 +
export NO_PROXY='localhost,127.0.0.1,192.168.88.30,192.168.88.31,192.168.88.32,10.96.0.0,10.224.0.0,10.96.0.0/12,10.224.0.0/16'
 +
 +
 +
注:端口和privoxy 中的监听端口保持一致
  
  
#!/bin/bash
 
# */1  * * * * /home/evan/tunnel  &  #加定时任务不好 还不如用加配置的高级些呢
 
#CPID=$$  #$$ 是脚本运行的当前进程ID号
 
#RUN="`ps -ef | grep "$0" | grep -v "grep" | grep -v "$CPID" | wc -l`"  #$0 是脚本本身的名字
 
RUN="`ps -ef | grep  -v "grep" | grep 7070 | wc -l`"
 
[ "$RUN" -gt 0 ] && exit
 
#[ "$RUN" -gt 1 ] && exit
 
#sleep 1
 
  
# freebsd  
+
  systemctl start privoxy
#ssh  -i /home/evan/.ssh/evankey -p 22  -q  -D 7070 [email protected]
+
    systemctl status privoxy
  
#ssh -2  -N  -f    -p 22  -D 7070 [email protected]
+
    验证是否可用
#ssh  -i /home/evan/.ssh/evankey -p 22  -q  -D 7070 [email protected] &
+
lynx www.google.com
#ssh -2 -N -f -L 7070:localhost:22  [email protected].183.134
 
  
#4 linux
 
# sudo killall sshd
 
ssh -i /home/evan/.ssh/id_rsa -p 22 -qtfnN -D 7070 [email protected]
 
sleep 3
 
#[ "$RUN" -gq 0 ] && exit
 
#[ "$RUN" -gt 1 ] && exit
 
 
</pre>
 
</pre>
  
===lua===
+
===== ins=====
 
<pre>
 
<pre>
sudo apt install   lua5.1
+
sudo apt install apt-transport-https curl
  
evan@kalipc:~/test$ lua
+
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
 
  
</pre>
+
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list
=== DM===
 
==== GDM====
 
gdm3
 
==== LightDM====
 
为什么不能列出已有用户呢 我改了 居然不能login
 
  
====SDDM====
+
sudo apt update
apt install sddm
 
=== redis-cli===
 
sudo apt install  redis-tools
 
  
===vokoscreen录屏===
+
sudo apt install brave-browser#有时可能要多跑几次
sudo apt-get install vokoscreen
+
</pre>
 +
https://brave.com/linux/#release-channel-installation
  
===Kazam录屏===
+
====falkon====
 +
sudo apt-get install falkon
 +
又一个轻量的web 浏览器 以前的 Qupzilla  apt 会提示你的
 +
2017年8月10日,QupZilla开发者David Rosca在博客宣布QupZilla成为KDE项目。[5]Qupzilla 2.2发布之后项目将更名为“Falkon”。[6]KDE Falkon 3.0于2018年2月27日发布。
 +
qupzilla conitnues development as falkon browser
  
apt install kazam #昨天好像是安装不成功呀
+
====[[tor]]====
http://pkg.kali.org/pkg/kazam
 
  
https://linsir.org/post/How_to_install_Kazam_on_kali_linux
+
====gnome-web====
 +
apt install  epiphany-browser
 +
====midori====
 +
这个暂时安装上不好用 以前可以 直接 apt
  
[https://blog.csdn.net/luoxulinger/article/details/82261542 好用轻巧的录屏软件——Kazam]
+
====palemoon====
 +
<pre>
 +
对于 Debian 10,请运行以下命令:
 +
Keep in mind that the owner of the key may distribute updates, packages and repositories that your system will trust (more information).
 +
 
 +
echo 'deb http://download.opensuse.org/repositories/home:/stevenpusser/Debian_10/ /' | sudo tee /etc/apt/sources.list.d/home:stevenpusser.list
 +
curl -fsSL https://download.opensuse.org/repositories/home:stevenpusser/Debian_10/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home:stevenpusser.gpg > /dev/null
 +
sudo apt update
 +
sudo apt install palemoon
 +
</pre>
 +
 
 +
https://linux.palemoon.org/help/installation/
 +
 
 +
===text-editor===
 +
sudo apt install gnome-text-edito
  
 +
===download tools===
  
 +
[https://www.savetweetvid.com/zh/downloader Twitter视频下载器]
  
[http://www.mintos.org/skill/vokoscreen-capture.html Vokoscreen:优秀的屏幕录制软件]
+
sudo apt install uget -y
  
 +
axel  还是最爽的  下载rapian就知了
  
 +
===图片查看器===
 +
Ristretto
  
[https://www.tecmint.com/best-linux-screen-recorders-for-desktop-screen-recording/ 8 Best Screen Recorders for Desktop Screen Recording in Linux]
+
[https://zhuanlan.zhihu.com/p/53902052 Linux 下最棒的 11 个图片查看器]
 +
===绘图工具dia ===
 +
绘图工具dia(取代visio)
 +
sudo apt install dia -y
  
https://www.tecmint.com/best-linux-screen-recorders-for-desktop-screen-recording/
+
===goldendict===
 +
====install====
 +
<pre>
 +
evan@myxps:~$ sudo apt search goldendict
 +
goldendict/kali-rolling,now 1.5.0~rc2+git20200409+ds-2 amd64 [已安装]
 +
  feature-rich dictionary lookup program
  
https://itsfoss.com/best-linux-screen-recorders/
+
goldendict-wordnet/kali-rolling 1:3.0-36 all
 +
  electronic lexical database of English language (goldendict)
  
===vpn ===
+
goldendict 是本体,goldendict-wordnet是一个en-en离线词典,按需安装
 +
sudo apt install goldendict goldendict-wordnet</pre>
 +
====set up====
 
<pre>
 
<pre>
apt-get install network-manager-openvpn-gnome
+
设置可调节语言为简中
apt-get install network-manager-pptp
+
在词典-网站内添加
apt-get install network-manager-pptp-gnome
+
有道源 这个不知为什么没发音  原来直接web也是没声音的
apt-get install network-manager-strongswan
+
 
apt-get install network-manager-vpnc
+
http://dict.youdao.com/search?q=%GDWORD%&ue=utf8
apt-get install network-manager-vpnc-gnome
 
/etc/init.d/network-manager restart
 
</pre>
 
[http://xiao106347.blog.163.com/blog/static/21599207820133110048751?suggestedreading ubuntu vpn]
 
  
===vnc===
+
默认打钩的地方全不要了 我们自己添加一个 
<pre>
 
sudo apt install vnc4server
 
vncserver
 
  
Use xtigervncviewer -SecurityTypes VncAuth -passwd /root/.vnc/passwd :1 to connect to the VNC server.
+
选择 Edict 编辑-> Dictionaries 词典  菜单,打开如下界面,去掉下面两张图中所有默认打钩的地方,然后添加第二张图中的 youdao 这一栏
</pre>
 
<pre>
 
0x03 安装VNC,远程桌面你的kali
 
  
还是先用ssh连接到kali,然后
+
有道词典的引擎链接是:http://dict.youdao.com/search?q=%GDWORD%&ue=utf8
  
##apt-get install tightvncserver
+
好了,到这里点击 Apply,OK 就大功告成了,现在想要翻译只需鼠标选中要翻译的文字,然后按住 Ctrl ,在连续按两次 c,也就是(Ctrl + c + c)组合键,就会弹出有道网页版翻译页面了。如下图:
  
安装完之后,开启vnc连接
+
尝试使用bing搜索的dic搜索,效果不错,网络词典添加地址
  
##tightvncserver
+
https://cn.bing.com/dict/search?q=%GDWORD%
  
会提示你输入远程时要验证的密码,输入你的密码(系统会提示你需要一定复杂度
 
 
</pre>
 
</pre>
参考  http://www.52pi.net/archives/908
+
[https://blog.csdn.net/clksjx/article/details/85052248  [使用教程<nowiki>]</nowiki> Linux上最好用的词典goldendict]
  
 +
[https://einverne.github.io/post/2018/08/goldendict.html  Linux 下非常好用的字典 GoldenDict]
  
 +
[https://www.jianshu.com/p/682f81317819 Linux下超好用词典 -- GoldenDict]
  
[https://blog.csdn.net/mooncarp/article/details/53038952 KALI中如何启用VNC]
+
[https://zhuanlan.zhihu.com/p/67156145 Linux 下一款非常好用的翻译软件]
  
[https://blog.csdn.net/qq_34661227/article/details/51260966 kali linux 2.0 实现vnc远程桌面连接]
+
===电子书calibre ===
 +
  apt install calibre
  
[http://www.linuxzone.net/sysadmin/554.html Kali Linux开启VNC远程桌面登录]
+
===词典 ===
  
===IRC===
+
http://cidian.youdao.com/index-linux.html
hexchat 可惜输入框有点小 暂时不太会用
+
#在官网下载对应版本的deb后执行
 +
sudo dpkg -i *.deb && sudo apt-get install -fy
  
quassel
 
  
[http://blog.linuxchina.net/?p=1082 IRC 在Pidgin 中的设置]
+
[https://github.com/Dictionaryphile/GoldenDict_zh_manual GoldenDict 中文用户手册]
===IM===
 
[http://linux265.com/soft/3341.html 微信 for Linux]
 
  
https://github.com/geeeeeeeeek/electronic-wechat/blob/master/README_zh.md#%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8
+
===x11vnc===
  
===编程===
+
x11vnc是一种 位图显示的 视窗系统 。它是在 Unix 和 类Unix 操作系统 ,以及 OpenVMS 上建立图形用户界面的标准工具包和协议。x11vnc服务端可以实现Windows远程Linux桌面系统。
 +
sudo apt-get install x11vnc
  
====[[Svn基础]]====
+
===python===
  sudo apt install subversion kdesvn
+
  sudo apt-get install ipython3
  
===思维导图===
 
FreeMind
 
Freeplane
 
  
[https://linux265.com/news/3925.html 为Linux用户推荐几种免费思维导图软件]
+
[https://www.cnblogs.com/xuanhun/p/5481907.html kali linux Python开发环境初始化]
 +
====python IDE ====
 +
sudo apt-get install spyder3
  
===打印机===
+
https://docs.spyder-ide.org/installation.html#
运行 “开始” -  ”控制中心 “ - “打印” - "服务器“ 设置共享打印机;然后另外一台 StartOS 机器,在连接打印机中选择”网络打印机“,选择”互联网打印协议(IPP)“,在 URI  输入条中输入共享打印机的地址,格式为 ipp://hostname:631/printers/<打印机的名称>,例如:  ipp://192.168.0.1:631/printers/DeskJet-D2300,再根据提示操作即可
 
  
===linux debian下安装中国农历===
+
===ops tools===
[https://blog.csdn.net/rainysia/article/details/54847445 linux debian下安装中国农历]
+
sudo apt install lrzsz #sz命令发送文件到本地: # sz filename
  
==静态IP==
+
====mycli ====
 
<pre>
 
<pre>
sudo cat /etc/NetworkManager/system-connections/Wired\ connection\ 1
 
[connection]
 
id=Wired connection 1
 
uuid=b2931303-64fc-45e7-88f1-31e160ead5cc
 
type=ethernet
 
permissions=
 
timestamp=1558878910
 
  
[ethernet]
+
MySQL是我们常用的一款数据库了,有的时候需要连到数据库里查一些东西或是一些什么操作。通常我们会选用mysql命令来连接数据库,但是这个工具挺不好用的,所以才会出现了这么一款神器mycli。由于是用Python写的,还封装了pip,所以安装起来很简单,一条命令pip install mycli就搞定了。这个工具和mysql命令用法是完全一样的,他的特点就是支持自动补全和SQL高亮,而且输出默认是使用less展示的,可以直接用键盘上下滚动,不需要鼠标键盘乱换着用。
mac-address-blacklist=
+
</pre>
 +
 
 +
===develop tools ===
 +
apt install gdb
  
[ipv4]
+
===catfish===
address1=192.168.88.4/24,192.168.88.1
+
sudo apt-get install catfish #catfish简称文件搜索神器
dns=223.6.6.6;
 
dns-search=
 
method=manual
 
  
[ipv6]
+
===django===
addr-gen-mode=eui64
+
<pre>
dns-search=
+
pip install Django==1.8.18
ip6-privacy=2
 
method=ignore
 
  
 +
#on ~/.bashrc
 +
alias django-admin='/home/evan/.local/lib/python2.7/site-packages/django/bin/django-admin.py'
 
</pre>
 
</pre>
== 清理工作==
 
[https://www.linuxdashen.com/debianubuntu%e6%b8%85%e7%90%86%e7%a1%ac%e7%9b%98%e7%a9%ba%e9%97%b4%e7%9a%848%e4%b8%aa%e6%8a%80%e5%b7%a7 Debian/Ubuntu清理硬盘空间的8个技巧]
 
<pre>apt clean #释放空间 /var/cache/apt/archives/ 里面会有大量下载的软件包
 
  
 +
===electronic-wechat===
  
cd /
+
electronic-wechat是一个基于nodeJS开发的Linux系统微信。
du -sh  * --exclude=home #查看除了home目录,哪个目录是最大的
+
<pre>
 +
git clone https://github.com/geeeeeeeeek/electronic-wechat.git
 +
cd electronic-wechat
 +
npm install && npm start #bash: npm: 未找到命令
 +
 
 +
bash: npm: 未找到命令
 +
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
 +
sudo apt-get install -y nodejs
 +
</pre>
 +
 
 +
===截图===
  
du -s * | sort -nr|head # 排序
+
==== flameshot ====
 +
sudo apt install flameshot
 +
https://flameshot.js.org/#/getting-start
  
思路 在最大的里面删除 或者直接看到哪些没用的,直接删除 例如share/doc
+
[https://zhuanlan.zhihu.com/p/48250522 Flameshot:一个简洁但功能丰富的截图工具]
 +
==== Shutter ====
 +
gnome-screenshot
 +
apt install shutter
 +
sudo apt install deepin-screenshot -y
  
  
root@latop:/usr# du -s * | sort -nr|head
+
[https://shutter-project.org/downloads/dependencies/ shutter dependencies]
8290868 lib
 
5811564 share
 
1070492 bin
 
173016 local
 
158300 src
 
149140 include
 
58604 sbin
 
9188 lib32
 
76 libexec
 
root@latop:/usr# du -sh lib
 
8.0G lib
 
root@latop:/usr# du -sh  share/
 
5.6G share/
 
  
 +
====ShareX(win)====
  
 +
====deepin scrot 作废====
 +
<pre>
 +
sudo apt install deepin-screenshot -y
  
  
sudo apt purge libreoffice?
+
wget -c http://packages.linuxdeepin.com/deepin/pool/main/d/deepin-scrot/deepin-scrot_2.0-0deepin_all.deb
使用'sudo apt autoremove'来卸载它(它们)。
+
sudo dpkg -i deepin-scrot_2.0-0deepin_all.deb
</pre>
+
sudo apt-get install -f
 +
#使用
 +
deepin-scrot
  
=== 瘦身===
+
图标
<pre>
+
https://github.com/lovesnow/pystorm
apt remove rhythmbox atril  pluma  uxterm xterm
+
在这 里选择另存为 default/start_cursor.png
  
apt autoremove  gir1.2-pluma-1.0 gir1.2-rb-3.0 libgpod-common libgpod4 libpeas-1.0-python2loader \
 
librhythmbox-core10 libsgutils2-2 pluma-common rhythmbox-data
 
  
 +
screenshot
  
#/usr/share/doc: 系统说明文件存放目录
+
vi /usr/share/applications/scrot.desktop
evan@latop:~$ sudo mv /usr/share/doc/* bakdock/
+
[Desktop Entry]
 +
Name=scrot
 +
Name[zh_CN]=抓图
 +
Comment=Save images of your desktop or individual windows
 +
Comment[zh_CN]=保存您桌面还是单个窗口的图像
 +
Exec=/usr/bin/deepin-scrot
 +
Terminal=false
 +
Type=Application
 +
Icon=/home/evan/screenshot/start_cursor.png
 +
StartupNotify=true
 +
Categories=GTK;Utility;
 +
Keywords=MATE;screenshot;snapshot;desktop;window;image;
 +
OnlyShowIn=MATE;
 +
X-MATE-Bugzilla-Bugzilla=MATE
 +
X-MATE-Bugzilla-Product=mate-utils
 +
X-MATE-Bugzilla-Component=screenshot
 +
X-MATE-Bugzilla-OtherBinaries=mate-panel-screenshot
 +
 
 +
https://wiki.debian.org/ScreenShots
  
 +
/usr/share/applications# find ./ -name "*scree*"
 
</pre>
 
</pre>
 +
[https://www.deepin.org/2012/03/02/deepin-scrot-2-0-video-and-install-in-ubuntu/ 深度截图工具(DEEPIN-SCROT]
  
== remove different Desktop==
+
===XMind===
sudo apt-get remove kde* plasma* plasma-desktop* plasma-desktop
+
XMind是一款实用的思维导图软件,简单易用、美观、功能强大,拥有高效的可视化思维模式,具备可扩展、跨平台。但是对于稳定性和性能还是欠佳,在ubuntu上使用占用很大的CPU资源。
sudo apt-get remove kde-plasma-desktop kde-plasma-netbook kde-standard
 
[https://forums.kali.org/showthread.php?17716-How-to-install-remove-different-Desktop-Window-Manager-in-Kali-Linux-1-x How to install/remove different Desktop]
 
  
==apt 源目录==
+
#在官网下载对应版本的deb后执行
  http://mirrors.aliyun.com/kali/pool/main/c/catfish/catfish_1.4.4-1_all.deb
+
  sudo dpkg -i *.deb && sudo apt-get install -fy
  
== xfce==
+
===远程桌面软件===
[http://wiki.ubuntu.org.cn/Xfce%E9%9D%A2%E6%9D%BF%E6%93%8D%E4%BD%9C%E6%89%8B%E5%86%8C#.E5.90.AF.E5.8A.A8.E5.99.A8 Xfce面板操作手册]
 
[http://wiki.ubuntu.org.cn/Xfce4.2%E6%93%8D%E4%BD%9C%E6%89%8B%E5%86%8C  Xfce4.2操作手册]
 
  
[https://wiki.archlinux.org/index.php/Xfce_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87) Xfce (arch)]
+
[https://www.jianshu.com/p/f60cec98eccd Linux和Windows间的远程桌面访问]
  
[http://wiki.ubuntu.org.cn/Xfce4.2%E7%94%A8%E6%88%B7%E6%8C%87%E5%8D%97 Xfce4.2用户指南]
+
[https://www.oschina.net/project/awesome?columnId=25 远程桌面软件]
  
[https://wiki.gentoo.org/wiki/Xfce/Guide/zh-cn#Desktop_applications Xfce/指南(gentoo)]
 
  
[https://wiki.xfce.org/start?id=zh-cn/start xfce ​百科]
+
====freerdp====
 
+
freerdp.com
== move files==
 
 
<pre>
 
<pre>
0.on debianpc
+
  apt install freerdp-x11 freerdp2-x11
 +
# 果真help man 无敌
 +
xfreerdp  /dynamic-resolution  /drive:wintmp,/home/evan/tmp4win  +clipboard  /v:192.168.99.13 /u:evan /p:'123456'
  
*/5 * * * *  rsync -avz  xk/  data/xkbak/
 
*/40 * * * *  rsync -avz  ssh/  data/xkbak/ssh/
 
  
  
1. 先把latop的东西 rsync 到 mydata  #
 
cd /mydata
 
rsync -avz --progress  192.168.11.28:/home/evan/*  .
 
  
2.再把pc 有关的cp 到mydata
+
  分辨率 把到英文单词为resolution 得到参数 
#on pc run command
+
xfreerdp --help | grep resolution
rsync -avz --progress  ~/dkm/*  192.168.11.28:/home/evan/dkm/
+
    /dynamic-resolution              Send resolution updates when the window is
 +
evan@myxps:~$
  
#不然是变成 下面的一个子目录了
 
#cp dir1  dir2
 
#cp dir1/ dir2/ #变成子目录
 
rsync -avz --progress  .config/awesome/*  192.168.11.28:/home/evan/awesome
 
rsync  -avz --progress  book/*  192.168.11.28:/home/evan/book/
 
  
  
#这个要先清理一下先
 
#rsync 到 此目录
 
rsync -avz --progress /home/evan/rom/* 192.168.11.28:/home/evan/rom/
 
#同上
 
rsync -avz --progress /home/evan/rom/ 192.168.11.28:/home/evan/rom
 
不会成为子目录哦
 
rsync -avz --progress /home/evan/rom/ 192.168.11.28:/home/evan/rom/
 
</pre>
 
  
== troubleshooting==
 
=== watchdog===
 
<pre>
 
现在看起来是那个外带的无线网上问题 还是感觉 kali 相比debian有点卡
 
  
Message from syslogd@kali at Oct 13 12:47:30 ...
+
#icon  cp virtualbox icon
kernel:[ 2897.771142] watchdog: BUG: soft lockup - CPU#1 stuck for 22s! [netstat:3680]
+
evan@myxps:/usr/share/applications$ cat win.desktop
 +
[Desktop Entry]
 +
Name=xfreerdp
 +
GenericName=xfreerdp  win
  
Message from syslogd@kali at Oct 13 12:47:58 ...
+
Type=Application
kernel:[ 2925.770120] watchdog: BUG: soft lockup - CPU#1 stuck for 22s! [netstat:3680]</pre>
+
Exec=/home/evan/win %U
 +
TryExec=VirtualBox
 +
Keywords=virtualization;
 +
MimeType=application/x-virtualbox-vbox;application/x-virtualbox-vbox-extpack;application/x-virtualbox-ovf;application/x-virtualbox-ova;
 +
Icon=virtualbox
 +
Categories=Emulator;System;Utility;
 +
Actions=Manager;
 +
Comment=Run several virtual systems on a single host computer
  
Firmware
+
[Desktop Action Manager]
https://wiki.debian.org/Firmware
+
Exec=VirtualBox
 +
Name=Open Oracle VM Manager
 +
Name[de]=Oracle VM Manager öffnen
  
[https://ubuntuforums.org/showthread.php?t=2205211 kernel BUG: soft lockup - CPU stuck for 23s!]
+
cat ~/win
 +
#!/bin/bash
 +
xfreerdp  /dynamic-resolution  /drive:wintmp,/home/evan/tmp4win  +clipboard  /v:192.168.10.13 /u:administrator /p:'youpassword'
 +
  
=== 小心 更新系统===
 
2018年 09月 23日 星期日 18:37:21 CST
 
这个主板 CPU 太新 一开始安装不上,搞了N久,后来 拿回家在家里的老主板上安装成功,然后拿到新主机机器上 一开始好好的 ,可惜我突然又想更新 于是又挂了呀
 
===乱码 kali light===
 
<pre> apt install  ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy  # reboot ok
 
  
安装kali-linux-full,包含各种工具:
+
</pre>
$ sudo apt-get install kali-linux-full
+
之前使用的是rdesktop,但是由于其不支持NLA认证,便不能登录公司的电脑。为此,现在使用freerdp——这是package的名字,实际的可执行程序是xfreerdp。使用如下的命令行即可实现远程桌面:
  
安装GNOME 3桌面环境:
+
[https://www.cnblogs.com/LiuYanYGZ/p/12670604.html  云桌面 --- FreeRDP使用说明 ]
$ sudo apt-get install kali-desktop-gnome
+
 
 +
http://manpages.ubuntu.com/manpages/xenial/man1/xfreerdp.1.html
 +
 
 +
https://www.jianshu.com/p/f6fcf5b56fe3
 +
 
 +
====Remmina====
 +
<pre>
 +
Remmina是一个用远程桌面软件,提供了RDP、VNC、XDMCP、SSH等远程连接协议的支持。 家里有时连不上是原来的网线接口不太好,重插一下就好了 
 +
sudo apt-get install remmina
 +
 
 +
usage
 +
 
 +
高级-- 画质 -- 最好
  
 +
基本--色深--真色32位
  
 
</pre>
 
</pre>
  
[https://blog.csdn.net/Blog_inG/article/details/78981684 安装kali-light版本后使用中文出现乱码签名无效]
+
====rdesktop====
 +
 
 +
remini 老是右键占用 用这个更加好,不过 好像这项目没人维护了
 +
有时,有个备份的软件很重要 上次Remmina老是自动全屏,每次连接win后老是要断开 烦死了,于是找了一下 发现这货 记录一下
 +
我的常用使用命令
 +
rdesktop  -g 1280x960 192.168.30.54
  
=== realtek===
 
http://mirrors.ustc.edu.cn/debian/pool/non-free/f/firmware-nonfree/firmware-realtek_20161130-3_all.deb
 
  
===apt lock===
+
之前使用的是rdesktop,但是由于其不支持NLA认证,便不能登录公司的电脑。为此,现在使用freerdp——这是package的名字,实际的可执行程序是xfreerdp。使用如下的命令行即可实现远程桌面:
<pre>
+
[https://magiclen.org/rdesktop/ 在Linux上使用rdesktop]
root@kali:~# apt-get install openssh-client
 
E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)
 
E: 无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它?
 
root@kali:~# apt \\^C
 
root@kali:~# apt install openssh-client
 
E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)
 
E: 无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它?
 
root@kali:~# apt update
 
命中:1 http://mirrors.neusoft.edu.cn/kali kali-rolling InRelease
 
正在读取软件包列表... 完成 
 
正在分析软件包的依赖关系树     
 
正在读取状态信息... 完成     
 
  
root@kali:~# ps -ef | grep apt
+
[https://wiki.archlinux.org/index.php/rdesktop arch rdesktop]
_apt      1400  667  0 15:36 ?        00:00:00 /usr/lib/apt/methods/http
 
_apt      1401  667 11 15:36 ?        00:00:13 /usr/lib/apt/methods/http
 
  
root@kali:~# ps -ef | grep dpkg
+
====xrdp====
root      1525  1380  0 15:38 pts/1    00:00:00 grep dpkg
 
root@kali:~# kill -9  1400  1401
 
</pre>
 
=== err===
 
dpkg-deb: 错误: <解压缩> subprocess returned error exit status 2
 
dpkg: 处理归档 /var/cache/apt/archives/libwebkit2gtk-4.0-37_2.22.0-2_amd64.deb (--unpack)时出错:
 
无法为 './usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37.33.1' 拷贝解压的文件至 '/usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37.33.1.dpkg-new': 未预期的文件结束或流结束
 
正准备解包 .../libjavascriptcoregtk-4.0-18_2.22.0-2_amd64.deb  ...
 
正在将 libjavascriptcoregtk-4.0-18:amd64 (2.22.0-2) 解包到 (2.20.3-1) 上 ...
 
dpkg-deb (子进程):解压缩归档成员:lzma 错误:压缩数据已损坏
 
dpkg-deb: 错误: <解压缩> subprocess returned error exit status 2
 
dpkg: 处理归档 /var/cache/apt/archives/libjavascriptcoregtk-4.0-18_2.22.0-2_amd64.deb (--unpack)时出错:
 
无法为 './usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18.11.1' 拷贝解压的文件至 '/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18.11.1.dpkg-new': 未预期的文件结束或流结束
 
在处理时有错误发生:
 
/var/cache/apt/archives/libwebkit2gtk-4.0-37_2.22.0-2_amd64.deb
 
/var/cache/apt/archives/libjavascriptcoregtk-4.0-18_2.22.0-2_amd64.deb
 
  
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
  
=== 华硕开机自动进入bios ===
 
<pre>
 
#在新PC 安装了 kali,记得要删除整个硬盘,我使用了默认的分区,不然grub安装不成功, 加个数据硬盘后居然老是直接到BIOS
 
1.首先恢复一下bios默认值,避免其他参数变动影响
 
  
2..Security-->Secure Boot Management按回车进入设置菜单;将Secure Boot 改为Disabled
+
====xrdp====
 +
前面的rdesktop工具可以让我们在Linux系统上远程桌面登录Windows系统,如果反过来,希望在Windows上用RDP协议远程登录到Linux系统,就比较麻烦了。这就需要xrdp来帮助我们了。它是一个RDP服务端,可以让我们用远程桌面方式登录到Linux系统。
  
3.选择Boot进入启动设置,将Fast Boot设为disabled ,将Launch CSM设为Enabled;
+
首先要安装xrdp。
 +
sudo apt install xrdp
  
4.F10保存设置。重启进系统不再进bios
+
然后启动xrdp服务。
 +
sudo systemctl enable xrdp
 +
sudo systemctl start xrdp
  
#这个办法 ?
+
===投屏===
首先进入bios
+
[http://www.mintos.org/soft/deskreen-test.html 开源投屏:Linux电脑上使用Deskreen轻松投屏]
  
Security->Secure Boot Control->Disabled
+
===数据库连接 ===
F10保存,继续进入bios
+
====[[Dbeaver安装]]====
  
Boot->Launch CSM->Enabled
 
F10保存,成功进入系统
 
  
最后发现,如果在磁盘分区时候没选择全放在一起(即第一项推荐新手)而是选择了下面的2项就会导致安装操作系统失败
+
===思维导图===
 +
[[freeplane]]
 +
===IDE===
  
解决方案:我原本空闲出20G给kali,现在改为45G,安装时就不会失败了,详情见kali 安装步骤 安装失败 kali install fail 已解决,究其原因"/ 根目录" 要分10G以上(否则安装失败,x32和x64位的系统在两台电脑上面共尝试安装了10次左右没有成功,后来成功后总结出已知原因两点1,须选图形化安装2,手工分区,而且根目录足够大,此版本解压出来/根目录就7GB以上了
+
这几个C ide感觉还是不会补全的呀 2021
 +
====anjuta====
 +
====eclipse====
  
</pre>
+
https://www.eclipse.org/downloads/eclipse-packages/
http://linuxbsdos.com/2016/11/05/dual-boot-kali-linux-rolling-2016-2-windows-10-on-a-pc-with-uefi-firmware/
 
  
===  pc err ===
+
[https://www.linuxidc.com/Linux/2018-12/155943.htm Ubuntu 18.04下JDK与Eclipse安装配置]
==== mate err ====
 
 
<pre>
 
<pre>
您希望继续执行吗? [Y/n] y
 
dpkg-deb (子进程):解压缩归档成员:lzma 错误:压缩数据已损坏
 
dpkg-deb: 错误: <解压缩> subprocess returned error exit status 2
 
dpkg-deb (子进程):无法从 /var/cache/apt/archives/libgtk-3-0_3.24.1-2_amd64.deb 中拷贝归档成员到解码管道中:写入失败 (断开的管道)
 
读取变更记录(changelogs)... 完成
 
(正在读取数据库 ... 系统当前共安装有 436105 个文件和目录。)
 
正准备解包 .../libgtk-3-0_3.24.1-2_amd64.deb  ...
 
正在将 libgtk-3-0:amd64 (3.24.1-2) 解包到 (3.22.30-2) 上 ...
 
dpkg-deb (子进程):解压缩归档成员:lzma 错误:压缩数据已损坏
 
dpkg-deb: 错误: <解压缩> subprocess returned error exit status 2
 
dpkg: 处理归档 /var/cache/apt/archives/libgtk-3-0_3.24.1-2_amd64.deb (--unpack)时出错:
 
无法为 './usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2400.1' 拷贝解压的文件至 '/usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2400.1.dpkg-new': 未预期的文件结束或流结束
 
正准备解包 .../mate-icon-theme_1.20.1-1_all.deb  ...
 
正在解包 mate-icon-theme (1.20.1-1) ...
 
dpkg-deb (子进程):解压缩归档成员:lzma 错误:压缩数据已损坏
 
dpkg-deb: 错误: <解压缩> subprocess returned error exit status 2
 
dpkg: 处理归档 /var/cache/apt/archives/mate-icon-theme_1.20.1-1_all.deb (--unpack)时出错:
 
无法为 './usr/share/icons/mate/256x256/devices/video-display.png' 拷贝解压的文件至 '/usr/share/icons/mate/256x256/devices/video-display.png.dpkg-new': 未预期的文件结束或流结束
 
在处理时有错误发生:
 
/var/cache/apt/archives/libgtk-3-0_3.24.1-2_amd64.deb
 
/var/cache/apt/archives/mate-icon-theme_1.20.1-1_all.deb
 
</pre>
 
  
=====办法  1 如何解决这个问题  看能不能这个=====
 
  
[http://forum.ubuntu.org.cn/viewtopic.php?f=86&t=485625&p=3197587 使用apt安装软件时,提示dpkg-deb: /lib/x86_64-linux-gnu/liblzma.so.5]
 
 
[https://blog.csdn.net/longma666666/article/details/81701802 dpkg-deb (子进程):解压缩归档成员:lzma 错误:压缩数据已损坏]
 
 
=====办法2  重装 安装有gnome 就可以 全局ss 并安装chrome plus=====
 
  
=ops=
+
cat /usr/share/applications/eclipse.desktop
==[[中文man手册]]==
+
[Desktop Entry]
 +
Name=eclipse
 +
Name[zh_CN]=eclipse IDE
 +
GenericName=Integrated Development Environment
 +
GenericName[zh_CN]=集成开发环境
 +
Comment=Develop software in an integrated development environment
 +
Comment[zh_CN]=在集成开发环境中开发软件
 +
Encoding=UTF-8
 +
Exec=/home/evan/apps/eclipse/eclipse
 +
Icon=/home/evan/apps/eclipse/icon.xpm
 +
Terminal=false
 +
X-MultipleArgs=false
 +
StartupWMClass=Firefox
 +
Type=Application
 +
Categories=GNOME;GTK;Development;IDE;
 +
StartupNotify=true
 +
</pre>
 +
 
 +
===Meld===
 +
Meld是针对开发者的视觉差异和合并工具。MELD帮助您比较文件、目录和版本控制的项目。它提供了两个和三个比较的文件和目录,并支持许多流行的版本控制系统。既可以查看差异有可以同步!
 +
sudo apt-get install meld
 +
 
 +
===spyder ===
  
=常用软件列表=
+
Python的开源IDE
Lubuntu 20.04
+
可在MIT许可下免费使用
    Ark – 归档文件管理器
+
Spyder python的一些基本特性是多语言编辑器,交互式控制台,文档查看器,变量浏览器,在文件中查找,文件浏览器等
    Bluedevil – 蓝牙连接管理
+
虽然Spyder是一个独立的IDE,支持包括Windows,Linux,MacOS,MacOS X等多个平台,但它也可以作为一个PyQt扩展库嵌入到PyQt应用程序
    Discover 软件中心 – 包管理系统
+
sudo apt-get install spyder ; pip3 install Jinja2 #可能要密码  启动不成功 提醒 ModuleNotFoundError: No module named 'jinja2'
    FeatherPad – 文本编辑器
+
https://pythonhosted.org/spyder/index.html
    FireFox – 浏览器
 
    K3b – CD/DVD 刻录器
 
    Kcalc – 计算器
 
    KDE 分区管理器 – 分区管理工具
 
    LibreOffice – 办公套件(Qt 界面版本)
 
    LXimage-Qt – 图片查看器及截图制作
 
    Muon – 包管理器
 
    Noblenote – 笔记工具
 
    PCManFM-Qt – 文件管理器
 
    Qlipper – 剪贴板管理工具
 
    qPDFview – PDF 阅读器
 
    PulseAudio – 音频控制器
 
    Qtransmission – BT 下载工具(Qt 界面版本)
 
    Quassel – IRC 客户端
 
    ScreenGrab – 截屏制作工具
 
    Skanlite – 扫描工具
 
    启动盘创建工具 – USB 启动盘制作工具
 
    Trojita – 邮件客户端
 
    VLC – 媒体播放器
 
    MPV 视频播放器
 
  
 +
链接:https://github.com/spyder-ide/spyder
 +
 +
https://pythonhosted.org/spyder/installation.html 
 +
 +
问题就是在awesome环境中fcitx 不能打中文
  
[https://linux.cn/article-10099-1.html 75 个最常用的 Linux 应用程序]
+
=== albert===
 +
wget -c http://repo.adminlounge.org/pool/dists/jessie/main/a/albert/albert_0.12_amd64.deb
 +
sudo dpkg -i albert_0.12_amd64.deb  && sudo apt-get install -fy
  
 +
https://albertlauncher.github.io/docs/installing/
 +
官方安装命令好像不成功呢 所以 我直接拿出deb包了
 +
 +
 +
===install eric6===
 +
<pre>
 +
eric6 支持 py2 and py3
 +
sudo apt install eric -y
  
[https://zhuanlan.zhihu.com/p/36649383 那个程序员的Linux常用软件清单]
+
安裝插件
 +
插件--> 插件儲存庫 -->  然後都是下載 安装 下一步什么 的就行了
  
[https://www.v2ex.com/t/575901 大家有什么推荐的日常 Linux 软件]
+
问题就是导致fcitx 不能打中文
  
=备用=
 
[https://i.linuxtoy.org/docs/guide/ch31.html 完美工作站 Archlinux]
 
== ==
 
  
=Debian(kali)usb无线网卡=
+
Debugging with the Eric IDE
 +
I would sum up how to debug with the Eric IDE too:
  
 +
F5 (start debugging; untick “Don’t stop at first line” or set a breakpoint)
 +
F10 (stop)
 +
F7 (next, step in subroutines)
 +
F8 (next, step over subroutines)
 +
F9 (return, step out of subroutine)
 +
F6 (continue, go, run)
 +
Shift+F6 (continue till cursor)
 +
conditional breakpoints are supported (set a breakpoint, right click on it, edit)
 +
I find Eric’s debugger is much faster than Winpdb.0
  
公司的PC 无线网卡为RTL8192EE
+
 
 +
trouble shooting
 +
 
 +
下列软件包有未满足的依赖关系:
 +
libkf5coreaddons5 : 破坏: libkf5globalaccel-bin (< 5.37) 但是 5.28.0-1 正要被安装
 +
libkf5crash5 : 破坏: libkf5globalaccel-bin (< 5.37) 但是 5.28.0-1 正要被安装
 +
E: 错误,pkgProblemResolver::Resolve 发生故障,这可能是有软件包被要求保持现状的缘故。
 +
 
 +
 
 +
如果用新立得 就是提示
 +
无法应用变更! 请先修复损毁的软件包
 +
 
 +
结果这样就好了
 +
sudo apt-get install -f
 +
sudo dpkg --configure -a
 +
 
 +
sudo apt-get dist-upgrade
 +
 
 +
 
 +
 
 +
#这个小心点
 +
sudo apt-get autoremove
 +
</pre>
 +
 
 +
http://eric-ide.python-projects.org/
 +
 
 +
http://pydev.sourceforge.net/
 +
 
 +
[http://www.freehackers.org/IDE_for_python_and_django_development_on_linux IDE for python and django development on linux]
 +
 
 +
[http://blog.mattwoodward.com/2012/08/manually-installing-django-plugin-for.html Manually Installing the Django Plugin for Eric]
 +
 
 +
===Figlet===
 +
一句话:Figlet是一个将字符串在终端生成一个logo的终端工具。
 +
sudo apt-get install figlet
 +
figlet mylove
 +
===bleachbit ===
 +
sudo apt install bleachbit
 +
sudo  bleachbit #有中文界面
 +
[https://www.howtoing.com/ccleaner-alternatives-for-ubuntu 用于Ubuntu的6款最佳CCleaner替代品]
 +
===chmsee ===
 +
 
 +
chmsee
 +
 
 +
===打印机===
 +
====惠普(HP_LaserJet_Professional_M1216nfh_MFP)HP打印机驱动安装====
 +
===== apt我使用的办法 =====
 +
<pre>
 +
1、打开深度终端,输入:sudo apt-get update && sudo apt-get install hplip hplip-gui hplip-plugin
 +
libcups2 libcups2-dev cups-bsd cups-client libcupsimage2 libcupsimage2-dev libdbus-1-dev
 +
</pre>
 +
2、接着终端输入:hp-setup, 按照提示一路下一步 https://developers.hp.com/hp-linux-imaging-and-printing/install/manual/hp_setup
 +
 
 +
 
 +
https://wiki.deepin.org/index.php?title=%E6%89%93%E5%8D%B0%E6%9C%BA
 +
 
 +
===== 官方下载=====
 +
https://developers.hp.com/hp-linux-imaging-and-printing/gethplip
 +
 
 +
https://developers.hp.com/hp-linux-imaging-and-printing/install
 +
 
 +
 
 +
https://developers.hp.com/hp-linux-imaging-and-printing/install/install/index
 +
 
 +
===== 故障处理=====
 +
Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=slp)
 +
error: No PPD found for model laserjet_professional_m1216nfh_mfp using old algorithm.
 +
error: No appropriate print PPD file found for model hp_laserjet_professional_m1216nfh_mfp
 +
 
 +
HP_LaserJet_Professional_M1216nfh_MFP
 +
 
 +
Would you like to specify the path to the correct PPD file to use (y=yes, n=no*, q=quit) ? y
 +
 
 +
解决办法 启动cups
 +
 
 +
sudo /etc/init.d/cups start
 +
 
 +
===虚拟机软件===
 +
====virtualbox====
 +
http://pkg.kali.org/pkg/virtualbox
 +
<pre>
 +
myos is  kali 2020.2
 +
 
 +
 
 +
sudo apt --fix-broken install
 +
  416  sudo apt install linux-headers-5.4.0-kali4-amd64
 +
  sudo apt install libsdl-ttf2.0-0
 +
   
 +
去掉vbox官方的源 
 +
然后  sudo apt install virtualbox  就是最新的6.1的  原来自己的源里有哦 
 +
 
 +
用二进制包有错 和官方源有问题的 不用理了
 +
 
 +
#国内mirrors
 +
https://mirrors.tuna.tsinghua.edu.cn/virtualbox/
 +
 
 +
https://mirrors.tuna.tsinghua.edu.cn/virtualbox/6.1.4/virtualbox-6.1_6.1.4-136177~Debian~buster_amd64.deb
 +
 
 +
 
 +
sudo apt install virtualbox
 +
 
 +
https://download.virtualbox.org/virtualbox/6.0.10/virtualbox-6.0_6.0.10-132072~Ubuntu~bionic_amd64.deb
 +
 
 +
 
 +
myos is  kali 2017.3
 +
Debian 9 ("Stretch")  i386 |  AMD64
 +
wget -c http://download.virtualbox.org/virtualbox/5.2.2/virtualbox-5.2_5.2.2-119230~Debian~stretch_amd64.deb
 +
 
 +
apt install  linux-headers-amd64 linux-headers-4.13.0-kali1-amd64
 +
sudo /sbin/vboxconfig
 +
 
 +
 
 +
 
 +
if  ubuntu18.04
 +
去清华大学 mirros 下载 6.1  有问题就  sudo apt --fix-broken install
 +
 
 +
</pre>
 +
 
 +
http://pkg.kali.org/pkg/virtualbox
 +
 
 +
[https://mirrors.tuna.tsinghua.edu.cn/help/virtualbox/ VirtualBox 镜像使用帮助]
 +
 
 +
[https://www.kali.org/docs/virtualization/install-virtualbox-host/ Installing VirtualBox on Kali (Host)]
 +
====  boxes====
 +
gnome-boxes
 +
[https://blog.csdn.net/cumj63710/article/details/107413519  gnome boxes_GNOME Boxes虚拟化入门]
 +
 
 +
===keepass2===
 +
sudo apt install keepass2
 +
===翻墙===
 +
[[Chrome通过shadowsocks翻墙]]
 +
 
 +
[[Ubuntu利用shadowsocks和polipo终端翻墙]]
 +
 
 +
===v2ray===
 +
sudo apt install v2ray #client
 +
 
 +
https://www.v2ray.com/chapter_00/install.html
 +
 
 +
qv2ray
 +
[https://github.com/jiangxufeng/v2rayL v2rayL]
 +
 
 +
[https://bywave.crisp.help/zh/article/qv2ray-for-linux-107jl0/ Qv2ray For Linux 教程]
 +
 
 +
[https://www.youtube.com/watch?v=mIMtKnx8f2s v2ray的linux图形客户端 | 不用再敲命令启动了]
 +
 
 +
[https://conimi.com/archives/139/#_0x00-%E4%B8%8B%E8%BD%BDqv2ray%E5%AE%A2%E6%88%B7%E7%AB%AF kali安装Qv2ray及配置]
 +
 
 +
https://qv2ray.net/debian/
 +
 
 +
 
 +
<pre>
 +
sslocal -s linuxsa.org  -p 443  -k "lai22" -l 7070 -t 600 -m aes-256-cfb #on new kali 加 /etc/rc.local
 +
 
 +
#!/bin/bash
 +
source /etc/profile #一定要加  不然可能sslocal都说找不到
 +
ps -ef | grep sslocal | grep -v grep
 +
if [ $? -ne  0 ]
 +
then
 +
/usr/bin/python /usr/local/bin/sslocal -s linuxsa.org  -p 443  -k "lai2240" -l 7070 -t 600 -m aes-256-cfb #on new kali
 +
else
 +
#echo "has run "
 +
:
 +
fi
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
#!/bin/bash
 +
# */1  * * * * /home/evan/tunnel  &  #加定时任务不好 还不如用加配置的高级些呢
 +
#CPID=$$  #$$ 是脚本运行的当前进程ID号
 +
#RUN="`ps -ef | grep "$0" | grep -v "grep" | grep -v "$CPID" | wc -l`"  #$0 是脚本本身的名字
 +
RUN="`ps -ef | grep  -v "grep" | grep 7070 | wc -l`"
 +
[ "$RUN" -gt 0 ] && exit
 +
#[ "$RUN" -gt 1 ] && exit
 +
#sleep 1
 +
 
 +
# freebsd 
 +
#ssh  -i /home/evan/.ssh/evankey -p 22  -q  -D 7070 [email protected]
 +
 
 +
#ssh -2  -N  -f    -p 22  -D 7070 [email protected]
 +
#ssh  -i /home/evan/.ssh/evankey -p 22  -q  -D 7070 [email protected] &
 +
#ssh -2 -N -f -L 7070:localhost:22  [email protected]
 +
 
 +
#4 linux
 +
# sudo killall sshd
 +
ssh -i /home/evan/.ssh/id_rsa -p 22 -qtfnN -D 7070 [email protected]
 +
sleep 3
 +
#[ "$RUN" -gq 0 ] && exit
 +
#[ "$RUN" -gt 1 ] && exit
 +
</pre>
 +
 
 +
===lua===
 +
<pre>
 +
sudo apt install  lua5.1
 +
 
 +
evan@kalipc:~/test$ lua
 +
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
 +
 
 +
</pre>
 +
=== DM===
 +
==== GDM====
 +
gdm3
 +
==== LightDM====
 +
为什么不能列出已有用户呢 我改了 居然不能login
 +
 
 +
====SDDM====
 +
apt install sddm
 +
=== redis-cli===
 +
sudo  apt install  redis-tools
 +
 
 +
===vokoscreen录屏===
 +
sudo apt-get install vokoscreen
 +
 
 +
===Kazam录屏===
 +
 
 +
apt install kazam #昨天好像是安装不成功呀
 +
http://pkg.kali.org/pkg/kazam
 +
 
 +
https://linsir.org/post/How_to_install_Kazam_on_kali_linux
 +
 
 +
[https://blog.csdn.net/luoxulinger/article/details/82261542 好用轻巧的录屏软件——Kazam]
 +
 
 +
 
 +
 
 +
[http://www.mintos.org/skill/vokoscreen-capture.html Vokoscreen:优秀的屏幕录制软件]
 +
 
 +
 
 +
 
 +
[https://www.tecmint.com/best-linux-screen-recorders-for-desktop-screen-recording/ 8 Best Screen Recorders for Desktop Screen Recording in Linux]
 +
 
 +
https://www.tecmint.com/best-linux-screen-recorders-for-desktop-screen-recording/
 +
 
 +
https://itsfoss.com/best-linux-screen-recorders/
 +
===Vlog视频剪辑===
 +
[https://zhuanlan.zhihu.com/p/161367691 10个值得推荐的手机Vlog视频剪辑APP]
 +
 
 +
[https://post.smzdm.com/p/amm0qo5d/  如何用手机做出Vlog,有这七个视频剪辑软件APP就够了]
 +
 
 +
[https://sspai.com/post/55758 这三款录屏工具,也许是 Android 平台上的同类最佳]
 +
 
 +
===vpn ===
 +
<pre>
 +
apt-get install network-manager-openvpn-gnome
 +
apt-get install network-manager-pptp
 +
apt-get install network-manager-pptp-gnome
 +
apt-get install network-manager-strongswan
 +
apt-get install network-manager-vpnc
 +
apt-get install network-manager-vpnc-gnome
 +
/etc/init.d/network-manager restart
 +
</pre>
 +
[http://xiao106347.blog.163.com/blog/static/21599207820133110048751?suggestedreading ubuntu vpn]
 +
 
 +
===vnc===
 +
<pre>
 +
sudo apt install vnc4server
 +
vncserver
 +
 
 +
Use xtigervncviewer -SecurityTypes VncAuth -passwd /root/.vnc/passwd :1 to connect to the VNC server.
 +
</pre>
 +
<pre>
 +
0x03 安装VNC,远程桌面你的kali
 +
 
 +
还是先用ssh连接到kali,然后
 +
 
 +
##apt-get install tightvncserver
 +
 
 +
安装完之后,开启vnc连接
 +
 
 +
##tightvncserver
 +
 
 +
会提示你输入远程时要验证的密码,输入你的密码(系统会提示你需要一定复杂度
 +
</pre>
 +
参考  http://www.52pi.net/archives/908
 +
 
 +
 
 +
 
 +
[https://blog.csdn.net/mooncarp/article/details/53038952 KALI中如何启用VNC]
 +
 
 +
[https://blog.csdn.net/qq_34661227/article/details/51260966 kali linux 2.0 实现vnc远程桌面连接]
 +
 
 +
[http://www.linuxzone.net/sysadmin/554.html Kali Linux开启VNC远程桌面登录]
 +
 
 +
===IRC===
 +
hexchat 可惜输入框有点小 暂时不太会用
 +
 
 +
quassel
 +
 
 +
[http://blog.linuxchina.net/?p=1082 IRC 在Pidgin 中的设置]
 +
===IM===
 +
[http://linux265.com/soft/3341.html 微信 for Linux]
 +
 
 +
https://gitee.com/atzlinux/debian-cn/blob/apt-install/install-wechat.sh
 +
 
 +
https://github.com/geeeeeeeeek/electronic-wechat/blob/master/README_zh.md#%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8
 +
 
 +
===安全 ===
 +
fail2ban
 +
 
 +
===编程===
 +
 
 +
====[[Svn基础]]====
 +
sudo apt install subversion kdesvn
 +
 
 +
===思维导图===
 +
FreeMind
 +
 
 +
[[Freeplane]]
 +
 
 +
[https://linux265.com/news/3925.html 为Linux用户推荐几种免费思维导图软件]
 +
 
 +
[http://www.linuxeden.com/a/2033 最强大脑!这 7 款开源思维导图工具真的很神奇]
 +
 
 +
===打印机===
 +
运行 “开始” -  ”控制中心 “ - “打印” - "服务器“ 设置共享打印机;然后另外一台 StartOS 机器,在连接打印机中选择”网络打印机“,选择”互联网打印协议(IPP)“,在 URI  输入条中输入共享打印机的地址,格式为 ipp://hostname:631/printers/<打印机的名称>,例如:  ipp://192.168.0.1:631/printers/DeskJet-D2300,再根据提示操作即可
 +
 
 +
===linux debian下安装中国农历===
 +
[https://blog.csdn.net/rainysia/article/details/54847445 linux debian下安装中国农历]
 +
 
 +
==kali安装flash player ==
 +
apt-get install flashplugin-nonfree
 +
==静态IP==
 +
<pre>
 +
sudo cat /etc/NetworkManager/system-connections/Wired\ connection\ 1
 +
[connection]
 +
id=Wired connection 1
 +
uuid=b2931303-64fc-45e7-88f1-31e160ead5cc
 +
type=ethernet
 +
permissions=
 +
timestamp=1558878910
 +
 
 +
[ethernet]
 +
mac-address-blacklist=
 +
 
 +
[ipv4]
 +
address1=192.168.88.4/24,192.168.88.1
 +
dns=223.6.6.6;
 +
dns-search=
 +
method=manual
 +
 
 +
[ipv6]
 +
addr-gen-mode=eui64
 +
dns-search=
 +
ip6-privacy=2
 +
method=ignore
 +
 
 +
</pre>
 +
 
 +
== 清理工作==
 +
[https://www.linuxdashen.com/debianubuntu%e6%b8%85%e7%90%86%e7%a1%ac%e7%9b%98%e7%a9%ba%e9%97%b4%e7%9a%848%e4%b8%aa%e6%8a%80%e5%b7%a7 Debian/Ubuntu清理硬盘空间的8个技巧]
 +
<pre>apt clean #释放空间 /var/cache/apt/archives/ 里面会有大量下载的软件包
 +
 
 +
 
 +
cd /
 +
du  -sh  * --exclude=home #查看除了home目录,哪个目录是最大的
 +
 
 +
du -s * | sort -nr|head # 排序
 +
 
 +
思路 在最大的里面删除 或者直接看到哪些没用的,直接删除 例如share/doc
 +
 
 +
 
 +
root@latop:/usr# du -s * | sort -nr|head
 +
8290868 lib
 +
5811564 share
 +
1070492 bin
 +
173016 local
 +
158300 src
 +
149140 include
 +
58604 sbin
 +
9188 lib32
 +
76 libexec
 +
root@latop:/usr# du -sh lib
 +
8.0G lib
 +
root@latop:/usr# du -sh  share/
 +
5.6G share/
 +
 
 +
 
 +
 
 +
 
 +
sudo apt purge libreoffice?
 +
使用'sudo apt autoremove'来卸载它(它们)。
 +
</pre>
 +
 
 +
=== 瘦身===
 +
<pre>
 +
apt remove rhythmbox  atril  pluma  uxterm xterm
 +
 
 +
apt autoremove  gir1.2-pluma-1.0 gir1.2-rb-3.0 libgpod-common libgpod4 libpeas-1.0-python2loader \
 +
librhythmbox-core10 libsgutils2-2 pluma-common rhythmbox-data
 +
 
 +
 
 +
#/usr/share/doc: 系统说明文件存放目录
 +
evan@latop:~$ sudo mv /usr/share/doc/* bakdock/
 +
 
 +
</pre>
 +
 
 +
== remove different Desktop==
 +
sudo apt-get remove kde* plasma* plasma-desktop* plasma-desktop
 +
sudo apt-get remove kde-plasma-desktop kde-plasma-netbook kde-standard
 +
[https://forums.kali.org/showthread.php?17716-How-to-install-remove-different-Desktop-Window-Manager-in-Kali-Linux-1-x How to install/remove different Desktop]
 +
 
 +
==apt 源目录==
 +
http://mirrors.aliyun.com/kali/pool/main/c/catfish/catfish_1.4.4-1_all.deb
 +
 
 +
== xfce==
 +
[http://wiki.ubuntu.org.cn/Xfce%E9%9D%A2%E6%9D%BF%E6%93%8D%E4%BD%9C%E6%89%8B%E5%86%8C#.E5.90.AF.E5.8A.A8.E5.99.A8 Xfce面板操作手册]
 +
[http://wiki.ubuntu.org.cn/Xfce4.2%E6%93%8D%E4%BD%9C%E6%89%8B%E5%86%8C  Xfce4.2操作手册]
 +
 
 +
[https://wiki.archlinux.org/index.php/Xfce_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87) Xfce (arch)]
 +
 
 +
[http://wiki.ubuntu.org.cn/Xfce4.2%E7%94%A8%E6%88%B7%E6%8C%87%E5%8D%97 Xfce4.2用户指南]
 +
 
 +
[https://wiki.gentoo.org/wiki/Xfce/Guide/zh-cn#Desktop_applications Xfce/指南(gentoo)]
 +
 
 +
[https://wiki.xfce.org/start?id=zh-cn/start xfce ​百科]
 +
 
 +
== move files==
 +
<pre>
 +
0.on debianpc
 +
 
 +
*/5 * * * *  rsync -avz  xk/  data/xkbak/
 +
*/40 * * * *  rsync -avz  ssh/  data/xkbak/ssh/
 +
 
 +
 
 +
1. 先把latop的东西 rsync 到 mydata  #
 +
cd /mydata
 +
rsync -avz --progress  192.168.11.28:/home/evan/*  .
 +
 
 +
2.再把pc 有关的cp 到mydata
 +
#on pc run  command
 +
rsync  -avz --progress  ~/dkm/*  192.168.11.28:/home/evan/dkm/
 +
 
 +
#不然是变成 下面的一个子目录了
 +
#cp dir1  dir2
 +
#cp dir1/ dir2/ #变成子目录
 +
rsync -avz --progress  .config/awesome/*  192.168.11.28:/home/evan/awesome
 +
rsync  -avz --progress  book/*  192.168.11.28:/home/evan/book/
 +
 
 +
 
 +
#这个要先清理一下先
 +
#rsync 到 此目录
 +
rsync -avz --progress /home/evan/rom/* 192.168.11.28:/home/evan/rom/
 +
#同上
 +
rsync -avz --progress /home/evan/rom/ 192.168.11.28:/home/evan/rom
 +
不会成为子目录哦
 +
rsync -avz --progress /home/evan/rom/ 192.168.11.28:/home/evan/rom/
 +
</pre>
 +
 
 +
== troubleshooting==
 +
=== watchdog===
 +
<pre>
 +
现在看起来是那个外带的无线网上问题 还是感觉 kali 相比debian有点卡
 +
 
 +
Message from syslogd@kali at Oct 13 12:47:30 ...
 +
kernel:[ 2897.771142] watchdog: BUG: soft lockup - CPU#1 stuck for 22s! [netstat:3680]
 +
 
 +
Message from syslogd@kali at Oct 13 12:47:58 ...
 +
kernel:[ 2925.770120] watchdog: BUG: soft lockup - CPU#1 stuck for 22s! [netstat:3680]</pre>
 +
 
 +
Firmware
 +
https://wiki.debian.org/Firmware
 +
 
 +
[https://ubuntuforums.org/showthread.php?t=2205211 kernel BUG: soft lockup - CPU stuck for 23s!]
 +
 
 +
=== 小心 更新系统===
 +
2018年 09月 23日 星期日 18:37:21 CST
 +
这个主板 CPU 太新 一开始安装不上,搞了N久,后来 拿回家在家里的老主板上安装成功,然后拿到新主机机器上 一开始好好的 ,可惜我突然又想更新 于是又挂了呀
 +
 
 +
===dpkg: 处理软件包 blueman (--configure)时出错: 依赖关系问题 - 仍未被配置 dpkg: 软件包 python3 尚未配置===
 +
<pre>
 +
 
 +
dpkg: 处理软件包 blueman (--configure)时出错: 依赖关系问题 - 仍未被配置 dpkg: 依赖关系问题使得 python3-starlette 的配置工作不能继续: python3-starlette 依赖于 python3:any;然而: 软件包 python3 尚未配置
 +
 
 +
sudo -i
 +
mv /var/lib/dpkg/info    /var/lib/dpkg/info_bak
 +
  mkdir /var/lib/dpkg/info
 +
  apt update
 +
  apt  -f  install
 +
##就是把刚才新加的 添加到备份目录  最后就是 all
 +
mv /var/lib/dpkg/info/*        /var/lib/dpkg/info_bak/
 +
rm -rf /var/lib/dpkg/info
 +
mv /var/lib/dpkg/info_bak /var/lib/dpkg/info
 +
</pre>
 +
 
 +
===乱码 kali light===
 +
<pre> apt install  ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy  # reboot ok
 +
 
 +
安装kali-linux-full,包含各种工具:
 +
$ sudo apt-get install kali-linux-full
 +
 
 +
安装GNOME 3桌面环境:
 +
$ sudo apt-get install kali-desktop-gnome
 +
 
 +
 
 +
</pre>
 +
 
 +
[https://blog.csdn.net/Blog_inG/article/details/78981684 安装kali-light版本后使用中文出现乱码签名无效]
 +
 
 +
=== realtek===
 +
http://mirrors.ustc.edu.cn/debian/pool/non-free/f/firmware-nonfree/firmware-realtek_20161130-3_all.deb
 +
 
 +
===apt lock===
 +
<pre>
 +
root@kali:~# apt-get install openssh-client
 +
E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)
 +
E: 无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它?
 +
root@kali:~# apt \\^C
 +
root@kali:~# apt install openssh-client
 +
E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)
 +
E: 无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它?
 +
root@kali:~# apt update
 +
命中:1 http://mirrors.neusoft.edu.cn/kali kali-rolling InRelease
 +
正在读取软件包列表... 完成 
 +
正在分析软件包的依赖关系树     
 +
正在读取状态信息... 完成     
 +
 
 +
root@kali:~# ps -ef | grep apt
 +
_apt      1400  667  0 15:36 ?        00:00:00 /usr/lib/apt/methods/http
 +
_apt      1401  667 11 15:36 ?        00:00:13 /usr/lib/apt/methods/http
 +
 
 +
root@kali:~# ps -ef | grep dpkg
 +
root      1525  1380  0 15:38 pts/1    00:00:00 grep dpkg
 +
root@kali:~# kill -9  1400  1401
 +
</pre>
 +
=== err===
 +
dpkg-deb: 错误: <解压缩> subprocess returned error exit status 2
 +
dpkg: 处理归档 /var/cache/apt/archives/libwebkit2gtk-4.0-37_2.22.0-2_amd64.deb (--unpack)时出错:
 +
无法为 './usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37.33.1' 拷贝解压的文件至 '/usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37.33.1.dpkg-new': 未预期的文件结束或流结束
 +
正准备解包 .../libjavascriptcoregtk-4.0-18_2.22.0-2_amd64.deb  ...
 +
正在将 libjavascriptcoregtk-4.0-18:amd64 (2.22.0-2) 解包到 (2.20.3-1) 上 ...
 +
dpkg-deb (子进程):解压缩归档成员:lzma 错误:压缩数据已损坏
 +
dpkg-deb: 错误: <解压缩> subprocess returned error exit status 2
 +
dpkg: 处理归档 /var/cache/apt/archives/libjavascriptcoregtk-4.0-18_2.22.0-2_amd64.deb (--unpack)时出错:
 +
无法为 './usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18.11.1' 拷贝解压的文件至 '/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18.11.1.dpkg-new': 未预期的文件结束或流结束
 +
在处理时有错误发生:
 +
/var/cache/apt/archives/libwebkit2gtk-4.0-37_2.22.0-2_amd64.deb
 +
/var/cache/apt/archives/libjavascriptcoregtk-4.0-18_2.22.0-2_amd64.deb
 +
 
 +
E: Sub-process /usr/bin/dpkg returned an error code (1)
 +
 
 +
=== 华硕开机自动进入bios ===
 +
<pre>
 +
#在新PC 安装了 kali,记得要删除整个硬盘,我使用了默认的分区,不然grub安装不成功, 加个数据硬盘后居然老是直接到BIOS
 +
1.首先恢复一下bios默认值,避免其他参数变动影响
 +
 
 +
2..Security-->Secure Boot Management按回车进入设置菜单;将Secure Boot 改为Disabled
 +
 
 +
3.选择Boot进入启动设置,将Fast Boot设为disabled ,将Launch CSM设为Enabled;
 +
 
 +
4.F10保存设置。重启进系统不再进bios
 +
 
 +
#这个办法 ?
 +
首先进入bios
 +
 
 +
Security->Secure Boot Control->Disabled
 +
F10保存,继续进入bios
 +
 
 +
Boot->Launch CSM->Enabled
 +
F10保存,成功进入系统
 +
 
 +
最后发现,如果在磁盘分区时候没选择全放在一起(即第一项推荐新手)而是选择了下面的2项就会导致安装操作系统失败
 +
 
 +
解决方案:我原本空闲出20G给kali,现在改为45G,安装时就不会失败了,详情见kali 安装步骤 安装失败 kali install fail 已解决,究其原因"/ 根目录" 要分10G以上(否则安装失败,x32和x64位的系统在两台电脑上面共尝试安装了10次左右没有成功,后来成功后总结出已知原因两点1,须选图形化安装2,手工分区,而且根目录足够大,此版本解压出来/根目录就7GB以上了
 +
 
 +
</pre>
 +
http://linuxbsdos.com/2016/11/05/dual-boot-kali-linux-rolling-2016-2-windows-10-on-a-pc-with-uefi-firmware/
 +
 
 +
===  pc err ===
 +
==== mate err ====
 +
<pre>
 +
您希望继续执行吗? [Y/n] y
 +
dpkg-deb (子进程):解压缩归档成员:lzma 错误:压缩数据已损坏
 +
dpkg-deb: 错误: <解压缩> subprocess returned error exit status 2
 +
dpkg-deb (子进程):无法从 /var/cache/apt/archives/libgtk-3-0_3.24.1-2_amd64.deb 中拷贝归档成员到解码管道中:写入失败 (断开的管道)
 +
读取变更记录(changelogs)... 完成
 +
(正在读取数据库 ... 系统当前共安装有 436105 个文件和目录。)
 +
正准备解包 .../libgtk-3-0_3.24.1-2_amd64.deb  ...
 +
正在将 libgtk-3-0:amd64 (3.24.1-2) 解包到 (3.22.30-2) 上 ...
 +
dpkg-deb (子进程):解压缩归档成员:lzma 错误:压缩数据已损坏
 +
dpkg-deb: 错误: <解压缩> subprocess returned error exit status 2
 +
dpkg: 处理归档 /var/cache/apt/archives/libgtk-3-0_3.24.1-2_amd64.deb (--unpack)时出错:
 +
无法为 './usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2400.1' 拷贝解压的文件至 '/usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2400.1.dpkg-new': 未预期的文件结束或流结束
 +
正准备解包 .../mate-icon-theme_1.20.1-1_all.deb  ...
 +
正在解包 mate-icon-theme (1.20.1-1) ...
 +
dpkg-deb (子进程):解压缩归档成员:lzma 错误:压缩数据已损坏
 +
dpkg-deb: 错误: <解压缩> subprocess returned error exit status 2
 +
dpkg: 处理归档 /var/cache/apt/archives/mate-icon-theme_1.20.1-1_all.deb (--unpack)时出错:
 +
无法为 './usr/share/icons/mate/256x256/devices/video-display.png' 拷贝解压的文件至 '/usr/share/icons/mate/256x256/devices/video-display.png.dpkg-new': 未预期的文件结束或流结束
 +
在处理时有错误发生:
 +
/var/cache/apt/archives/libgtk-3-0_3.24.1-2_amd64.deb
 +
/var/cache/apt/archives/mate-icon-theme_1.20.1-1_all.deb
 +
</pre>
 +
 
 +
=====办法  1 如何解决这个问题  看能不能这个=====
 +
 
 +
[http://forum.ubuntu.org.cn/viewtopic.php?f=86&t=485625&p=3197587 使用apt安装软件时,提示dpkg-deb: /lib/x86_64-linux-gnu/liblzma.so.5]
 +
 
 +
[https://blog.csdn.net/longma666666/article/details/81701802 dpkg-deb (子进程):解压缩归档成员:lzma 错误:压缩数据已损坏]
 +
 
 +
=====办法2  重装 安装有gnome 就可以 全局ss 并安装chrome plus=====
 +
 
 +
=ops=
 +
==[[中文man手册]]==
 +
 
 +
=常用软件列表=
 +
Lubuntu 20.04
 +
    Ark – 归档文件管理器
 +
    Bluedevil – 蓝牙连接管理
 +
    Discover 软件中心 – 包管理系统
 +
    FeatherPad – 文本编辑器
 +
    FireFox – 浏览器
 +
    K3b – CD/DVD 刻录器
 +
    Kcalc – 计算器
 +
    KDE 分区管理器 – 分区管理工具
 +
    LibreOffice – 办公套件(Qt 界面版本)
 +
    LXimage-Qt – 图片查看器及截图制作
 +
    Muon – 包管理器
 +
    Noblenote – 笔记工具
 +
    PCManFM-Qt – 文件管理器
 +
    Qlipper – 剪贴板管理工具
 +
    qPDFview – PDF 阅读器
 +
    PulseAudio – 音频控制器
 +
    Qtransmission – BT 下载工具(Qt 界面版本)
 +
    Quassel – IRC 客户端
 +
    ScreenGrab – 截屏制作工具
 +
    Skanlite – 扫描工具
 +
    启动盘创建工具 – USB 启动盘制作工具
 +
    Trojita – 邮件客户端
 +
    VLC – 媒体播放器
 +
    MPV 视频播放器
 +
 
 +
 
 +
[https://linux.cn/article-10099-1.html 75 个最常用的 Linux 应用程序]
 +
 
 +
 
 +
[https://zhuanlan.zhihu.com/p/36649383 那个程序员的Linux常用软件清单]
 +
 
 +
[https://www.v2ex.com/t/575901 大家有什么推荐的日常 Linux 软件]
 +
 
 +
=备用=
 +
[https://i.linuxtoy.org/docs/guide/ch31.html 完美工作站 Archlinux]
 +
== emacs26 in Ubuntu 18.04==
 +
<pre>
 +
sudo add-apt-repository ppa:kelleyk/emacs
 +
sudo apt update
 +
 
 +
  sudo apt install emacs26
 +
 
 +
root@myxps:/usr/share/applications# cat emacs25.desktop
 +
[Desktop Entry]
 +
Version=1.0
 +
Name=GNU Emacs 25 (GUI)
 +
GenericName=Text Editor
 +
Comment=GNU Emacs is an extensible, customizable text editor - and more
 +
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
 +
TryExec=/usr/bin/emacs25
 +
Exec=/usr/bin/emacs25 %F
 +
Icon=emacs25
 +
Type=Application
 +
Terminal=false
 +
Categories=Utility;Development;TextEditor;
 +
StartupWMClass=Emacs
 +
Keywords=Text;Editor;
 +
root@myxps:/usr/share/applications# cp  emacs25.desktop  emacs.desktop
 +
root@myxps:/usr/share/applications# emacs  -nw  emacs.desktop
 +
root@myxps:/usr/share/applications# cat emacs.desktop
 +
[Desktop Entry]
 +
Version=1.0
 +
Name=GNU Emacs 26 (GUI)
 +
GenericName=Text Editor
 +
Comment=GNU Emacs is an extensible, customizable text editor - and more
 +
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
 +
TryExec=/usr/bin/emacs26
 +
Exec=/usr/bin/emacs26 %F
 +
Icon=emacs25
 +
Type=Application
 +
Terminal=false
 +
Categories=Utility;Development;TextEditor;
 +
StartupWMClass=Emacs
 +
Keywords=Text;Editor;
 +
 
 +
 
 +
</pre>
 +
http://ubuntuhandbook.org/index.php/2019/04/gnu-emacs-26-2-released-install-in-ubuntu-18-04/
 +
 
 +
=Debian(kali)usb无线网卡=
 +
 
 +
 
 +
公司的PC 无线网卡为RTL8192EE
  
 
安装过程报错  
 
安装过程报错  
regulatory.db  
+
regulatory.db  
 
+
 
如果没有你需要的,请自己在官网找,软件包地址在这:
+
如果没有你需要的,请自己在官网找,软件包地址在这:
https://packages.debian.org/search?searchon=names&keywords=Realtek
+
https://packages.debian.org/search?searchon=names&keywords=Realtek
 
+
 
我下载了整个 deb包
+
我下载了整个 deb包
https://packages.debian.org/stretch/firmware-realtek
+
https://packages.debian.org/stretch/firmware-realtek
 
+
 
 
+
 
[http://www.kali.org.cn/thread-31104-1-1.html Kali安装时:rtl_nic/rtl8411-1.fw固件缺失 以及无法确定发布代号的解决办法]
+
[http://www.kali.org.cn/thread-31104-1-1.html Kali安装时:rtl_nic/rtl8411-1.fw固件缺失 以及无法确定发布代号的解决办法]
==see aslo==
+
==see aslo==
 
+
 
https://www.linuxquestions.org/questions/linux-kernel-70/kernel-platform-regulatory-0-direct-firmware-load-for-regulatory-db-failed-with-error-2-a-4175622954/
+
[[awesome]]
 
+
 
https://github.com/robertfoss/wireless-regdb/blob/master/regulatory.db
+
 
 
+
[[热键管理软件sxhkd]]
 
+
 
TP-LINK 722N 不支持linux ,千万别买, 在kali上面无法识别,今天我买了一个,到货了,试了各种方法都没用,打算退货
+
[https://itsfoss.com/note-taking-apps-linux/ Looking for Some Good Note Taking Apps on Linux? Here are the Best Notes Apps we Found for You]
 
+
 
TP-LINK TL-WN726N免驱版 外置天线USB无线网卡  
+
 
 
+
 
http://www.aircrack-ng.org/doku.php?id=compatibility_drivers
+
https://www.linuxquestions.org/questions/linux-kernel-70/kernel-platform-regulatory-0-direct-firmware-load-for-regulatory-db-failed-with-error-2-a-4175622954/
 +
 
 +
https://github.com/robertfoss/wireless-regdb/blob/master/regulatory.db
 +
 
 +
 
 +
TP-LINK 722N 不支持linux ,千万别买, 在kali上面无法识别,今天我买了一个,到货了,试了各种方法都没用,打算退货
 +
 
 +
TP-LINK TL-WN726N免驱版 外置天线USB无线网卡  
 +
 
 +
http://www.aircrack-ng.org/doku.php?id=compatibility_drivers
 +
 
 +
[http://www.secist.com/archives/3916.html 2017年最适用于WIFI HACK的无线网卡推荐]
 +
 
 +
[https://blog.csdn.net/chenyiyue/article/details/52516395 Kali 安装无线网卡驱动]
 +
 
 +
=References参考资料=
 +
[https://github.com/chiwent/awesome-linux-software-cn awesome-linux-software-cn]
 +
 
 +
[https://linux265.com/news/1704.html  Ubuntu常用软件列表推荐]
 +
 
 +
[https://zh.opensuse.org/%E5%B8%B8%E7%94%A8%E8%BD%AF%E4%BB%B6 zh.opensuse.org常用软件]
 +
 
 +
[https://new.qq.com/omn/20210610/20210610A01QAP00.html 常用 Linux 软件汇总,足够用了]
 +
 
 +
[https://zhuanlan.zhihu.com/p/376492774 常用 Linux 软件汇总!很全,但不敢说最全]
 +
 
 +
[https://www.zhihu.com/question/28596616 Linux 上有哪些工具软件堪称精美?]
 +
 
 +
 
 +
 
 +
[https://my.oschina.net/u/260165/blog/4683598 ArchLinux 2020 安装总结]
 +
 
 +
[http://linux265.com/news/3352.html Linux系统装机必备应用top10]
 +
 
 +
[https://zhuanlan.zhihu.com/p/41058223 Linux上有哪些高效的工具软件?]
  
[http://www.secist.com/archives/3916.html 2017年最适用于WIFI HACK的无线网卡推荐]
+
[https://elementary.io/docs/installation#installation elementary 安装指南]
  
[https://blog.csdn.net/chenyiyue/article/details/52516395 Kali 安装无线网卡驱动]
+
[https://linux.cn/article-7712-1.html 海量的超赞 Linux 软件 ]
 
 
=参考资料=
 
[https://my.oschina.net/u/260165/blog/4683598 ArchLinux 2020 安装总结]
 
 
 
[http://linux265.com/news/3352.html Linux系统装机必备应用top10]
 
 
 
[https://zhuanlan.zhihu.com/p/41058223 Linux上有哪些高效的工具软件?]
 
  
 
[https://hacpai.com/article/1552717494529 高效 manjaro i3]
 
[https://hacpai.com/article/1552717494529 高效 manjaro i3]

2024年3月27日 (三) 03:30的最新版本

目录

arm

用自己的树霉试一下 常用的软件能不能用先 有空再过半年buy a  arm apple laptop

https://www.pine64.org/pinebook-pro/

https://zhuanlan.zhihu.com/p/38719508

外媒观点对撞,ARM 版 Mac 到底值不值得买?| PCWorld :不要再买 Mac 产品

Pine64 轻量级便携电脑

更新系统

apt-get upgrade 
 apt -y full-upgrade 
  reboot
 Sep 09 2021 更新成功 以后少点更新吧
Raspberry Pi OS 用户只需要通过在终端应用中运行 sudo apt update && sudo apt full-upgrade 命令来更新即可。

NOTE

下载东西 or 传输东西  记得最后 md5 or sham 一下

闪屏问题 参考 xps 相关wiki

铜豌豆软件源 可以很多参考的软件 https://www.atzlinux.com/allpackages.htm

 rofi 一般显示的是这个东西 我的 atril 改名 
 Name[zh_CN]=pdf  文档查看器

grub

kali grub引导修复

xxx静电开机不了,送 主板修理 后,后发现自己的kali grub引导没了。

1.别慌,进BIOS在boot里面添加kali的efi引导(可不用)

2.进kali后,进入了grub rescure模式,慢慢找,

先ls,查看分区情况

再ls (hd0,gpt8) #这是我的 ,一个一个找/boot/efi分区,反馈unknown的不管,出现其他的可能就是/boot分区

3.如果找到了。

ls (hdo,gpt8)/boot/grub

会显示kali的efi配置文件

4.之后继续输命令。

set root=(hd0,gpt8)

set prefix=(hd0,gpt8)/boot/grub

insmod normal

normal

5.进入kali系统后,打开终端。

grub-install /dev/nvme0n1p8 (我的kali系统是装在 )

update-grub

xps

主要目录挂在 data 所以作各种 ln

ln -s  data/evanhome/python/  python

电池使用

TLP:一个可以延长 Linux 笔记本电池寿命的高级电源管理工具

sudo apt install tlp-rdw 
sudo apt install cbatticon
systemctl enable tlp
systemctl start tlp

sudo apt install powertop

将会同时安装下列软件:

 tlp

建议安装:

 tp-smapi-dkms acpi-call-dkms linux-cpupower

https://wiki.archlinux.org/index.php/Power_management

如何解决ubuntu笔记本续航不佳的问题


TLP:一个可以延长 Linux 笔记本电池寿命的高级电源管理工具

Rog 幻14 完美安装 linux: 10小时续航,QQ和微信,中文输入法,独显关闭

PowerTOP:为你的笔记本电脑节省电源

PowerTOP:在 Linux 上监视电量使用和改善笔记本电池寿命

老旧计算机

https://antixlinux.com/

2021

wechat sidebar 登录不了 禁用那个https 插件

2020

將硬盘模式由RAID 可以进入原来的win 改为ACHI 就进入其它第三方os

Ubuntu ®/WIN10双系统安装教程

https://www.dell.com/support/article/zh-cn/sln301754/%E5%A6%82%E4%BD%95%E5%9C%A8-dell-pc-%E4%B8%8A%E5%AE%89%E8%A3%85-ubuntu-%E5%92%8C-windows-8-%E6%88%9610%E4%BD%9C%E4%B8%BA%E5%8F%8C%E5%BC%95%E5%AF%BC?lang=zh

第一步在 win中分区中压缩出给unix的空间
[[Win10系统相关]]
现在要什么改bios为AHI  原来的是ran0 on 是不是得重启安装win 问一下售后  
更改xps13的硬盘模式

Dell xps13 的硬盘模式有三种:RAID(默认)模式; ACHI模式;以及以上两种的混合模式。RAID模式下我们是无法安装ubuntu的,于是在开机dell图标的时候猛按F2进入BIOS选项,將硬盘模式由RAID改为ACHI, 在更改时系统会提醒若更改可能会导致无法逆转的问题,其实没关系,确认更改。注意,更改了硬盘模式之后是无法在进入win10的,所以这时候可以在USB接口插好我们准备好的ubuntu安装盘了,在系统重启进入dell图标界面时,
猛按F12(不用按fn)进入boot界面选用U盘启动,进入ubuntu安装界面然后正常安装就好。关于安装ubuntu时的分区,我参考了网上的教程,采用以下分区:


分区完成后,不要急着下一步,这里还要选择 安装启动引导器的设备

选择boot所在的分区 /dev/sda  ?

xps 13 7390 安装双系统


linuxqq 在debian 10上用 sh 安装是成功的 weixin用一下 docker那个 就不用虚拟机了



安装参考这个喽 一开始不要安装太多桌面 就先xfce作备用 然后再上awesome

默认安装,想要更多工具

 sudo apt-get -y install kali-linux-large

安装过程 有grub2修复呢


kali 2020.1安装(图文超详细版)


kali linux 2020.1安装注意事项

debian

UNetbootin

 debian-.0.0-amd64-xfce-CD-1.iso 安装后
如果还有方块需要装字体:

apt-get install ttf-wqy-zenhei #我试过这个就行了 
$ reboot
$ apt-get install ttf-arphic-uming



# testing

# http://mirrors.ustc.edu.cn/debian/dists/
deb http://mirrors.ustc.edu.cn/debian testing main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian testing  main contrib non-free
deb http://mirrors.ustc.edu.cn/debian testing-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free

# deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free

#deb http://mirrors.aliyun.com/debian/ testing  main non-free contrib
##deb-src http://mirrors.aliyun.com/debian/ testing  main non-free contrib
#deb http://mirrors.aliyun.com/debian-security testing/updates main
##deb-src http://mirrors.aliyun.com/debian-security testing/updates main
#deb http://mirrors.aliyun.com/debian/ testing-updates main non-free contrib
##deb-src http://mirrors.aliyun.com/debian/ testing-updates main non-free contrib
#deb http://mirrors.aliyun.com/debian-backports/ bullseye-backports main non-free contrib
##deb-src http://mirrors.aliyun.com/debian-backports/ testing-backports main non-free contrib
#
#deb https://mirrors.163.com/debian-backports/ buster-backports main contrib non-free
#deb-src https://mirrors.163.com/debian-backports/ buster-backports main contrib non-free


sudo apt-get update
 sudo apt-get upgrade
   sudo apt-get dist-upgrade

你正在运行 Debian稳定版 因为你更偏好选择 Debian 稳定版分支。它运行得很好,但是只有一个问题:与其他发行版相比,它的软件有一点过时了。这便是 backports 出现的原因。

Backports是从testing版本 (大部分)和 unstable版本(可能性极小,例如:安全更新等)重新编译的软件包,因此他们在稳定的debian发行版中不需要新的库就可以运行(无论如何,这是可能的)。推荐你挑选一个能够满足你需求的单个的backports软件源,不要使用所有可用的backports源。

zh_CNBackports

如何使用 Debian backports 更新源

https://wiki.debian.org/HowToUpgradeKernel


安装Debian并开启远程桌面(通过Xorg)

Top 8 Things to do after Installing Debian 10 (Buster)

start

此文适合于 debian10初始化 20190730


Debian_stretch 也就是 debian 9 这也是kali2018

最常用软件

  ;geany ;  catfish 文件查看;  现在用 rofi 这个不用了synapse (上次回车运行不了软件是 自己小小心 把运行配置设置为f2); zim ; ;
  
hardInfo  硬件查看 

alias halt='/usr/bin/sudo /bin/sync && /usr/bin/sudo  /sbin/poweroff'

https://appcenter.elementary.io/

xps13 7390问题

过一阵就会自动闪屏 


FN+向上  亮度

国内iso下载地址

kali 的国内官方镜像为东软信息学院 所以下载地址有两个

https://github.com/SpiralLinux/SpiralLinux-project/wiki

http://mirrors.neusoft.edu.cn/kali-images/

公司这个下载比较快

http://mirrors.163.com/kali-images/

https://mirrors.ustc.edu.cn/kali-images

https://www.turnkeylinux.org/

evan@evankali:~/iso$ sha256sum kali-linux-2017.2-amd64.iso 
4556775bfb981ae64a3cb19aa0b73e8dcac6e4ba524f31c4bc14c9137b99725d  kali-linux-2017.2-amd64.iso

time sudo dd if=xxxxx.iso of=/dev/sdc && sync  # real	23m33.039s
或者用什么 img32  linux 下还可以用 etcher U盘镜像复制工具

国内源 加在最前面

 cat /etc/apt/sources.list
# deb cdrom:[Kali GNU/Linux 2020.2rc3 _Kali-last-snapshot_ - Official amd64 DVD Binary-1 with firmware 20200508-14:35]/ kali-rolling contrib main non-free

deb https://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

#deb https://mirrors.neusoft.edu.cn/kali kali-rolling main non-free contrib

#deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib



#这个命令有意思
sudo apt update -qq




deb https://mirrors.dgut.edu.cn/kali kali-rolling main non-free contrib
deb-src https://mirrors.dgut.edu.cn/kali kali-rolling main non-free contrib

sudo apt-get update

Create bootable USB drives

UNetbootin

https://rufus.ie/

sudoapt-getinstallusb-creator-gtk


https://www.balena.io/etcher/


win下的hash tools hash my files divhasher

creating-and-using-a-live-installation-image

http://www.ubuntukylin.com/public/pdf/1910.pdf

debian

附带专有固件的非官方镜像也已更新,如果您发现Debian与某个硬件不兼容,这些非自由版本很有用。

sudo apt-get install -y dnsutils#dig 

debian elite 无线驱动 iwlwifi-7260-17.ucode

debian 10 elite 无线驱动  iwlwifi-7260-17.ucode

#wifi 添加源
deb http://mirrors.163.com/debian/ buster main contrib non-free

apt  install firmware-iwlwifi wireless-tools

常用包安装

sudo apt install net-tools

pre

Parrot安装

 
如果发现不是中文界面 settings -->Region &language  选择中国  再次登录就是中文了

允许root登录 
#PermitRootLogin prohibit-password
PermitRootLogin yes  #/etc/init.d/ssh restart 

新用户  debain 系统建议用adduser
adduser evan #这个是交互的 

useradd  evan -m  -s /bin/bash  -g evan

#is debian 
apt install sudo -y 
 
echo 'evan ALL=(ALL) NOPASSWD:NOPASSWD:ALL' >/etc/sudoers.d/evan

回收站 .local/share/Trash/files/

useradd与adduser的区别

分区

kalilatop  /  27G  建议大一些好   我的现在是20G 昨晚更新时就空间不太够 清理了今天一个上午 ,昨天还搞到半夜
cd /var/cache/apt/archives && rm -rf *.deb

在公司电脑上 居然要安装成 /home不独立出来,不然会安装不成功 搞笑 第一天不行 第二天又可以 了 哈哈 #应该是硬盘没删除成功 我发现还有 原来的数据呀

theme

sudo apt install oxygen-icon-theme

lxappearance (0.6.1-1)
    LXDE GTK+ theme switcher

https://github.com/paullinuxthemer/Mc-OS-themes

输入法

fcitx5

sudo apt-cache search fcitx5
sudo apt install  fcitx5  fcitx5-chinese-addons fcitx5-skin-nord


https://github.com/topics/fcitx5-theme

https://wiki.debian.org/I18n/Fcitx5

fcitx5输入法使用技巧&简约皮肤分享

fcitx

fcitx can not use in ff rednotebook etc apps on debina 10 testing 更新完就可以了

https://pkg.kali.org/pkg/fcitx5

 sudo apt-get install fcitx fcitx-table-wbpy ttf-wqy-microhei ttf-wqy-zenhei


#官方提示
设置 用户设置 /home/evan/.xinputrc 为 fcitx。
手动设置选择: fcitx
小企鹅输入法(Fcitx)
 * 必需组件:fcitx
 * 输入特定语言所需的组件:
   * 简体中文拼音:fcitx-sunpinyin 或 fcitx-googlepinyin 或 fcitx-pinyin
   * 简体中文五笔:fcitx-table-wubi 或 fcitx-table-wbpy
   * 繁体中文:fcitx-table-cangjie
   * 通用的输入法码表: fcitx-table* 套件
 * 应用程序支持:
   * GNOME/GTK+:fcitx-frontend-gtk2 和 fcitx-frontend-gtk3
                  (强烈建议同时安装)
   * KDE/Qt4:fcitx-frontend-qt4





用户设置 已被 im-config 修改。

请重新启动 X 会话管理器以激活新的 用户设置。
如果使用旧配置的守护进程被 X 会话管理器重启,您可能需要使用 kill(1) 手工将其杀死。
请参考 im-config(8) 和 /usr/share/doc/im-config/README.Debian.gz


# skin 

下载皮肤并解压缩到下面任一目录,如果没有可以新建目录:

/usr/share/fcitx/skin   ##全局设置
~/.config/fcitx/skin    #特定用户设置


debian  kali

ls /usr/share/fcitx/skin/
classic  dark  default  google  sogou


freebsd 

 .config/fcitx/skin/
Alpha		google		material	sogou		startos

皮肤下载 sogou 不错 http://mirrors.163.com/deepin/pool/main/f/fcitx-skins/

arch fcitx

Linux下Qt4与qt5的程序使用输入法(ibus与fcitx)不冲突


解决 Ubuntu 16.04 下 Telegram Fcitx 不能加载的问题

ibus

 #sudo apt-get install ibus-gtk  ibus-table-wubi  ibus-wayland  ibus-pinyin ibus-sunpinyin
    #不好用 暂时不用 现在又用了 2020       ibus-setup

ibus-setup

在$HOME/.bashrc中加入下面这段就好了

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus


Ubuntu 18.04 配置ibus中文拼音输入法(超简单)

openssh

apt-get install openssh-client openssh-server
这个要先安装 不然自启动会不成功

如何激活服务并在启动时启用或禁用服务(即系统启动时自动启动服务)
# systemctl is-active ssh.service
systemctl enable ssh.service
# systemctl disable ssh.service

debian系统下安装ssh服务超级详细

更新系统


帅的写法 

sudo sh -c 'cat > /etc/apt/sources.list.d/my.list << EOF
你的内容
EOF'

#配置源 又可以改为国内源了 记得在去年是不可以的 20180222 2020
#eg
sed -i "[email protected]@163.com@g" sources.list
sed -i "s@http://.*archive.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list
sed -i "s@http://.*security.ubuntu.com@http://mirrors.huaweicloud.com@g" /etc/apt/sources.list 




deb https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib

#aliyun是最快的 配置上他的dns 2020 但是官方源才是软件最新的哦 
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
#deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
#deb http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free
#deb-src http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free
#
#office 
#deb https://http.kali.org/kali kali-rolling main non-free contrib
#deb http://http.kali.org/kali kali-rolling main non-free contrib

kali 的国内官方镜像为东软信息学院
所以只要dns是国内 应该 会自动去东软信息学院mirrors的

apt-get update

#一般只更新自己要的软件就好了,不要全系统更新 容易挂 再说 很多软件更新也没用嘛 
apt install xxxx # apt list --upgradable |less 查看软件
apt upgrade
apt-get dist-upgrade #跨版本更新 ; 发布版升级

apt update && apt full-upgrade #升级2018的官方 命令
 

更新系统故障

 evan@kalipc:~/github/python/tutorial$ sudo apt update 
获取:1 http://mirrors.aliyun.com/kali kali-rolling InRelease [30.5 kB]
 错误:1 http://mirrors.aliyun.com/kali kali-rolling InRelease  
  下列签名无效: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>

正在读取软件包列表... 完成           
W: GPG 错误:http://mirrors.aliyun.com/kali kali-rolling InRelease: 下列签名无效: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
E: 仓库 “http://mirrors.aliyun.com/kali kali-rolling InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
#使用root 运行此命令
root@kalipc:~# wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
OK 

Kali Linux 2018.1 Release

添加 home分区

cp  -a .bash_history              .chromium-bsu              .gnupg/                    .pki/                      .ssh/                      .xinputrc  .bak

把所以 . 隐藏的文件 先 ls . 然后得出的 放到 .bak目录 最后再放出来  


算了 直接搞个/data分区了 
  mkfs.ext4  /dev/nvme0n1p9


blkid /dev/nvme0n1p9

cat /etc/fstab 
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p8 during installation
UUID=8239d727-9b16-4e03-bf2d-d05766db6a2e /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=0848-0943  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/nvme0n1p7 during installation
UUID=753c3bee-a5b7-4de4-b0bf-1d971622d47a none            swap    sw              0       0
# /home  was on /dev/nvme0n1p9 during installation
UUID=a90d5fe4-482b-458a-bc8b-fd733fd963d2  /data              ext4    errors=remount-ro 0       1


添加新硬盘

UUID=d94216fb-5712-dc44-ad1e-98534d6e4bae /mydata           ext4    defaults        0       2
#后来成为home 要记得改为 /home
mkdir /home/evan/data
uuid 查看
blkid
blkid /dev/sdb1 

#mydata 2T hdd 2018年 09月 25日 星期二 10:22:06 CST
#/dev/sdb1   /home/evan/data    ext4    defaults        0       0
UUID=7664f2b3-ee40-4861-aed4-c6fd223126ac /home/evan/data           ext4    defaults        0       2

fstab 改为 /dev/sdb1 就好了 而不是UUID  可能和XFCE mount有关系   后来用uuid已正常 重分区系统也是同一个板 同一个CPU 不能在别的板搞过来

此问题 后来确定为让 sata线位置 

fdiskl -l Partition 1 does not start on physical sector boundary.
用命令行gpt 分区后 老提示空间不够 后来 用gparted 重新分区好了 


2021
root@k8s-master:~# blkid /dev/sdb1 
/dev/sdb1: UUID="7664f2b3-ee40-4861-aed4-c6fd223126ac" TYPE="ext4" PARTUUID="c7b67401-1c52-4394-a779-e473df6c2a94"

#/etc/fstab
UUID=7664f2b3-ee40-4861-aed4-c6fd223126ac  /mydata               ext4    errors=remount-ro 0       1


install Awesome

这个的问题是安装后 gdm 选择了 依然进入gnome3 在家里用 vbox 试过也是尴尬了呢
解决办法是 ,可以不用安装kde
  apt install lightdm  lxrandr
#apt-get install kde-plasma-desktop
其实是gdm3  识别不了awesome 而ssdm可以识别,那其实也可以试一下 是不是只安装其它dm就可以了

Awesome

install xmonad

曾经放弃 现在 又回来了,没声音也是在mate打开一下就有了呢

xmonad安装及入门配置

安装完好像进入不了呢 原因和楼上一样 xmonad 安装及入门配置

install IceWM

https://ice-wm.org/

install lxde

apt-get install lxde


在Debian上用FVWM做自己的桌面

备份Clonezilla

install mate

#在公司的电脑不用安装这个了
sudo apt-get update
#This will install the base packages required for a minimal MATE desktop
sudo apt-get install mate-desktop-environment-core

#This will install the complete MATE desktop
sudo apt-get install mate-desktop-environment

#This will install the complete MATE desktop including a few extras
sudo apt-get install mate-desktop-environment-extras

http://wiki.mate-desktop.org/download

xrandr Multi-monitor

图形界面的用 arandr (June 2022) lxrandr   XRandR

#if hdmi on home

#只开启外外接显示器并关闭本本自带显示器 省电
xrandr --output  HDMI-1  --mode 1920x1080 --output LVDS-1 --off

xrandr --output HDMI-1 --same-as   LVDS-1  --mode 1366x768  --output HDMI-1 --mode 1920x1080

#2 display 
xrandr --output   DP-1 --primary   --mode 1920x1080   --left-of  eDP-1     --auto


#3 display  关掉本本的display  Wednesday Sep  21  2022
xrandr --output   DP-1 --primary   --mode 1920x1080   --output DP-2 --mode 1920x1080   --output  eDP-1     --off


多显示器 
今天使用了xrandr命令,似乎可以检测到扩展屏,之后详细看了xrandr的用法,运用 addmode 和 output 命令 结果可以用的!!!

linux桌面(Dedian Ubuntu kali) 多显示器支持

Xrandr_archlinux

如何设置多显示器


Linux下利用xrandr配置多显示器


https://www.dell.com/community/Laptops-General-Read-Only/XPS-13-2in1-How-Many-External-Monitors-on-One-USB-C/td-p/5104782

multiple-monitors-on-a-dell-xps-13

https://wiki.archlinux.org/index.php/Multihead

https://wiki.debian.org/DualMonitorDualServerOneInput

linux 视频输出xrandr设置命令

xrandr — fvwm 双显示器

外观

lxappearance
lxqt 外观设置  qt风格用 qt5   other kali-light 不然 vlc 可能不好看


12 个最佳 GNOME(GTK)主题

5 款适合程序员的开源字体

bashrc

#参考了 elementary
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# We use preexec and precmd hook functions for Bash
# If you have anything that's using the Debug Trap or PROMPT_COMMAND 
# change it to use preexec or precmd
# See also https://github.com/rcaloras/bash-preexec

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
    xterm-color|*-256color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
    if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
	# We have color support; assume it's compliant with Ecma-48
	# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
	# a case would tend to support setf rather than setaf.)
	color_prompt=yes
    else
	color_prompt=
    fi
fi

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
    alias ls='ls --color=auto'
    #alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'

    alias grep='grep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias egrep='egrep --color=auto'
fi

# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi

# If this is an xterm set more declarative titles 
# "dir: last_cmd" and "actual_cmd" during execution
# If you want to exclude a cmd from being printed see line 156
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\$(print_title)\a\]$PS1"
    __el_LAST_EXECUTED_COMMAND=""
    print_title () 
    {
        __el_FIRSTPART=""
        __el_SECONDPART=""
        if [ "$PWD" == "$HOME" ]; then
            __el_FIRSTPART=$(gettext --domain="pantheon-files" "Home")
        else
            if [ "$PWD" == "/" ]; then
                __el_FIRSTPART="/"
            else
                __el_FIRSTPART="${PWD##*/}"
            fi
        fi
        if [[ "$__el_LAST_EXECUTED_COMMAND" == "" ]]; then
            echo "$__el_FIRSTPART"
            return
        fi
        #trim the command to the first segment and strip sudo
        if [[ "$__el_LAST_EXECUTED_COMMAND" == sudo* ]]; then
            __el_SECONDPART="${__el_LAST_EXECUTED_COMMAND:5}"
            __el_SECONDPART="${__el_SECONDPART%% *}"
        else
            __el_SECONDPART="${__el_LAST_EXECUTED_COMMAND%% *}"
        fi 
        printf "%s: %s" "$__el_FIRSTPART" "$__el_SECONDPART"
    }
    put_title()
    {
        __el_LAST_EXECUTED_COMMAND="${BASH_COMMAND}"
        printf "\033]0;%s\007" "$1"
    }
    
    # Show the currently running command in the terminal title:
    # http://www.davidpashley.com/articles/xterm-titles-with-bash.html
    update_tab_command()
    {
        # catch blacklisted commands and nested escapes
        case "$BASH_COMMAND" in 
            *\033]0*|update_*|echo*|printf*|clear*|cd*)
            __el_LAST_EXECUTED_COMMAND=""
                ;;
            *)
            put_title "${BASH_COMMAND}"
            ;;
        esac
    }
    preexec_functions+=(update_tab_command)
    ;;
*)
    ;;
esac

#old 
alias poweroff='sudo sync && sudo  poweroff'
alias halt='sudo sync && sudo sync && sudo  poweroff'
alias ll='ls $LS_OPTIONS -l'
alias jump='/home/evan/jumpser'
alias ifconfig='/sbin/ifconfig'
#alias em='/usr/local/bin/emacs -nw'
alias em='emacs -nw'
alias emacs='emacs-gtk'
#alias em='emacs -nw'
alias pdf='atril'
alias gedit='mousepad'
export PATH=/usr/local/go/bin/:$PATH
#export GOPATH=/root/go/  #(可选设置) 如果你用root运行
export GOROOT=/usr/local/go/
#export GOARCH=amd64
#export GOOS=linux
export GOTOOLS=$GOROOT/pkg/tool
#export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

#export PATH=$PATH:/usr/local/gobin

all4one

sudo apt install   tree  anjuta  geany  zim  remmina vlc  -y  #synapse spyder
#sudo apt-get install fcitx fcitx-table-wbpy ttf-wqy-microhei ttf-wqy-zenhei
sudo apt-get install alarm-clock-applet 
 #eclipse  emacs  pycharm  chrome  自己独立安装 

解决没有声音:

  sudo apt install  pulseaudio
systemctl --user enable pulseaudio && systemctl --user start pulseaudio
  systemctl --user enable pulseaudio #打开声音控制就好了
打开打开声音控制 然后
语音控制--输入设备--输入插孔 记得好个小锁头要打开

还有 就是 输出设备为  模拟耳机 20181023

可能还有回放要 chrome

install applications

大不了在启动是 用 win+R 先启动kupfer

launcher

rofi_on_awesome

rofi on xfce4

应用程序快捷键==添加 --命令里面填写 rofi -combi-modi window,drun,ssh -theme solarized -font 'hack 16' -show combi -icon-theme 'Papirus' -show-icons 并绑定super+d

synapse

快捷键一般设置 为menu(win右边那个) 实在不行就设置 为 win +` or ctrl+1

kupfer

gnome-do

apt-get install gnome-do gnome-do-plugins.

Linux 下的护眼软件

热键管理软件sxhkd

系统还原

timeshift

https://github.com/teejee2008/timeshift

视频播放

vlc

apt install vlc # 也有升级功能  继续播放功能升级为3.0.6 版本就可以了 有皮肤 在插件管理器里
 外观配置  右键 工具 -->偏好设置-->界面-->Use native style  Force window style qt5-style

这些简单的技巧使 VLC 更加出色

你不知道的VLC播放器常用痛点功能——快进、快捷键、剪切视频、旋转画面、视频提取声音等

smplaye

echo 'deb http://download.opensuse.org/repositories/home:/smplayerdev/Debian_9.0/ /' > /etc/apt/sources.list.d/home:smplayerdev.list
apt-get update
 sudo apt-get install smplaye# 好用 可提高音量到200% 看py 教程非常 爽 vlc都没这么好 也可手工下载包安装 

SMPlayer使用

smplayer安装教程

软件参考


totem

视频编辑

OpenShot

办公软件

xpad

notepadqq.com

https://notepadqq.com/s/

abiword and gnumeric

libreoffice

libreoffice installation

适用于 LibreOffice 的中日韩字体

https://zh-cn.libreoffice.org/get-help/install-howto/linux/

wps

http://community.wps.cn/download/

问题
依赖关系问题使得 wps-office 的配置工作不能继续:
 wps-office 依赖于 libpng12-0;然而:
  未安装软件包 libpng12-0。
  
wget http://ftp.cn.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.49-1+deb7u2_amd64.deb
sudo dpkg -i libpng12-0_1.2.49-1+deb7u2_amd64.deb
sudo dpkg -i wps-office_10.1.0.5672-a21_amd64.deb

libpng12-0未安装错误

wps字体

Notes

gnote

https://wiki.gnome.org/Design/Apps/Notes

Some Good Note Taking Apps on Linux

zoom

download zoom

Installing or updating Zoom on Linux

sudo  dpkg  -i  zoom_amd64.deb 
 sudo apt --fix-broken install
 sudo  dpkg  -i  zoom_amd64.deb 

CAD

freecad

sudo add-apt-repository ppa:freecad-maintainers/freecad-stable
sudo apt update
 sudo apt install freecad

适用于Linux系统的5款最佳CAD软件汇总

https://wiki.freecadweb.org/Install_on_Unix/zh-cn

https://launchpad.net/~freecad-maintainers/+archive/ubuntu/freecad-stable

https://github.com/FreeCAD/FreeCAD/releases/tag/0.18.4


6 款高品质的免费 Linux CAD 应用程序

email

thunderbird

GNURadio

GNURadio 是免费的软件开发工具套件。它提供信号运行和处理模块,用它可以在易制作的低成本的射频(RF)硬件和通用微处理器上实现软件定义无线电。 这套套件广泛用于业余爱好者,学术机构和商业机构用来研究和构建无线通信系统。

https://www.gnuradio.org/


emacs27

apt install emacs -y

How to Compile Emacs on Linux

Emacs入门

vim and neovim

文件管理

apt install   pcmanfm-qt # thunar
#gedit 另外到 mousepad
cat /usr/share/applications/gedit.desktop 
[Desktop Entry]
Name=gedit
Comment[zh_CN]=简易文本编辑器
GenericName=Text Editor
GenericName[zh_CN]=文本编辑器
GenericName[zh_TW]=文字編輯程式
Exec=mousepad %F
Icon=accessories-text-editor
Terminal=false
StartupNotify=true
Type=Application
Categories=Utility;TextEditor;GTK;
MimeType=text/plain;

终端软件

apt install terminator #tilix # ssh tools  pacmanager

terminator基础

文件编辑器

Atom 项目创始人 Max Brunsfeld 则推出了 Atom 精神续作 —— 用 Rust 语言开发的 Zed。 https://zed.dev/

下载工具

Twitter视频下载器

music

解决Linux下音乐乱码的问题:
MP3文件乱码的原因:
    这个问题出现在mp3文件里,由于大陆大多数MP3文件都是用GBK/GB18030编码写入标签信息的,而大多数的linux播放器默认以utf-8编码读取,这就产生了乱码。
解决方法:
    使用Mutagen来修改Mp3文件的标签信息,具体方法如下(只针对GBK/GB18030编码的情况):
    安装Mutagen(ubuntu下终端运行 sudo apt-get install python-mutagen)后,在终端执行:

        mid3iconv -e gbk *.mp3
    如果想转换当前目录下的所有 mp3 (包括子目录):
        find . -iname "*.mp3" -execdir mid3iconv -e gbk {} ;

Audacious

[ɔˈdeɪʃəs]  大胆的
重复播放  回放--重复--禁止播放下一首

download

https://www.gnome-look.org/p/1008323/

https://www.gnome-look.org/p/1008366

tar xvf  14870-Winamp5-XMMS.tar.bz2 &&  sudo mv Winamp5-XMMS /usr/share/audacious/Skins/

https://ubuntugeneration.wordpress.com/2009/06/30/audacious-player-with-winamp-skin/

quodlibet

不错可以支持repeat etc. July 2023

# deb http://lazka.github.io/ql-debian/testing/ quodlibet-unstable/
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5A62D0CAB6264964
sudo apt-get update
sudo apt-get install quodlibet

rhythmbox

不错 有排放列表 还支持quicktime

deadbeef

universal deb package amd64 建议用deadbeef直接下载deb包

uninstall
sudo dpkg -r  deadbeef#EdrawMax

plugins

“DEADBEEF”是什么?可能很多人都没有听说过。DEADBEEF不是“死牛肉”的意思,而是一个十六进制数字,即0xDEADBEEF。最初使用它的是IBM的RS/6000系统。在该系统中,已分配但还未初始化的内存中用该数字来填充,使得程序员在调试时可以很容易地定位到目标内存区域。

qmmp

apt install qmmp qmmp-plugin-projectm

如何充分利用Qmmp 1.0

皮肤下载 然后 ctrl+p 选择你下载的 .wsz skinsfile http://qmmp.ylsoftware.com/files/skins

ubuntu下的音频播放器: Qmmp



 apt-get install clementine

https://www.clementine-player.org/downloads

Audacity

Audacity音频处理 Audacity 多轨跨平台的音频编辑软件

1.导入:单机文件——导入即可

先选中,左单击 就有一条线 然后 例如左 就向左拉 ,同理 要切掉右边的也一样

2.剪辑:Backspace、Delete、Ctrl+K或编辑——删除,删除一段音频

3.淡出:选中音频——效果——淡出

4.导出:文件——导出即可(MP3无编码库可以选择WAV导出)

5.项目保存:文件——项目另存为即可

audacity简易教程——针对想快速上手音频剪辑的小白

https://new.qq.com/rain/a/20221124A07VQY00

Ardour多轨跨平台的音频编辑软件

install rednotebook

Sticky Notes便笺

#太老版本,不建议用
#apt-get install rednotebook  

   sudo apt-get install noblenote


#2020 jul
wget -c https://github.com/jendrikseipp/rednotebook/archive/v2.19.tar.gz

sudo apt install python3-yaml


rednotebook$ sudo python3  setup.py  install 


#or 问题 新版本的图片看不到了
wget -c https://github.com/jendrikseipp/rednotebook/archive/v2.19.tar.gz
#wget -c --no-check-certificate https://github.com/jendrikseipp/rednotebook/archive/v2.6.1.tar.gz
tar xvf v2.6.1.tar.gz
sudo mv rednotebook-2.6.1 /opt/rednotebook
vi  /usr/share/applications/rednotebook.desktop 

[Desktop Entry]
Encoding=UTF-8
Name=rednotebook
GenericName=rednotebook
Comment[zh_CN]=日志本
Comment= journal
#Exec=/home/evan/software/rednotebook-2.2/run
#Icon=/home/evan/software/rednotebook-2.2/rednotebook.png
Exec=/opt/rednotebook/run
Icon=/opt/rednotebook/rednotebook.png
Terminal=false
X-MultipleArgs=false
StartupWMClass=Firefox
Type=Application
Categories=Utility;TextEditor;GTK;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;


#sudo mv /usr/bin/rednotebook /usr/bin/rednotebook1.4
#sudo ln -s /home/evan/software/rednotebook-1.10.1/rednotebook/rednotebook  /usr/bin/rednotebook


家目录  /home/evan/.rednotebook
rsync  -avz  /home/evan/.rednotebook/  192.168.0.176:/home/evan/.rednotebook/



ModuleNotFoundError: No module named 'distutils.core'

sudo apt install python3-pip python3-yaml




Rednotebook

跨平台开源待办事项和笔记 OpenTodoList

跨平台开源待办事项和笔记 OpenTodoList


install bluefish

Bluefish is a powerful editor targeted towards programmers and webdevelopers, with many options to write websites, scripts and programming code.

sudo apt install bluefish -y


http://pkg.kali.org/pkg/bluefish

官网

Installing Bluefish

install Sublime Text 4



wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text
 

官方参考

IM

https://signal.org/

#2020

sudo mv telegram-desktop  telegram-desktopbak


 sudo cp Telegram /usr/bin/
 sudo cp Updater  /usr/bin/

sudo ln -s Telegram telegram-desktop



解压后复制到  /opt/Telegram/Telegram
/usr/bin$ sudo ln -s  /opt/Telegram/Telegram   telegram-desktop #要新的 用下载的吧
 apt install  telegram-desktop

2.1.5 与fictx冲突 换回2.1.4 https://telegram.org/ https://pkg.kali.org/pkg/telegram-desktop

wechat

2024


删除旧版本
apps dpkg -l '*weixin*'
 ➜  apps sudo dpkg -r weixin

https://github.com/lovechoudoufu/wechat_for_linux

sudo  dpkg -i wechat-beta_1.0.0.145_amd64.fixed.deb


下面的为老的的 https://archive.ubuntukylin.com/software/pool/partner/

这个才是新的

[ ] weixin_2.1.4_amd64.deb 2022-05-23 18:05 105M


ukylin-wxwork_1.0_amd64.deb

https://bbs.deepin.org/post/236399

https://fuwu.weixin.qq.com/community/develop/doc/00064e3da942108c9bfcee0a756000?_at=1658335578791

FreeChat接班Electronic Wechat网页微信

https://gitee.com/lizhuohuan/docker-wechat

wechat icon
#我的 
 cat /usr/share/applications/wechat.desktop 
[Desktop Entry]
Version=1.5
Name=wechat  Desktop
Comment=Official desktop version of wechat  messaging app
#TryExec=telegram-desktop
Exec=/opt/weixin/weixin -- %u
Icon=/home/evan/downloads/wechat.png
#Icon=/home/evan/apps/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Chat;Network;InstantMessaging;Qt;
MimeType=x-scheme-handler/tg;
Keywords=tg;chat;im;messaging;messenger;sms;tdesktop;
Actions=Quit;
SingleMainWindow=true
X-GNOME-UsesNotifications=true
X-GNOME-SingleWindow=true

#[Desktop Action Quit]
#Exec=telegram-desktop -quit
#Name=Quit Telegram
#Icon=application-exit



#自带的
 cat weixin.desktop 
[Desktop Entry]
Name[tr]=weixin
Name[zh_CN]=微信
Exec=/opt/weixin/weixin %U
Terminal=false
Type=Application
Icon=weixin
StartupWMClass=weixin
Comment=微信桌面版
Categories=Utility;

钉钉

https://alidocs.dingtalk.com/i/p/nb9XJlJ7QbxN8GyA/docs/ROGpvEna5YQWmaPgQ156W4ykmK3zoB27


下载链接:(当前最新版本1.4.0.20810 ) https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Release/com.alibabainc.dingtalk_1.4.0.20810_amd64.deb

下载链接:(当前最新版本1.4.0.20425)https://dtapp-pub.dingtalk.com/dingtalk-desktop/xc_dingtalk_update/linux_deb/Release/com.alibabainc.dingtalk_1.4.0.20425_amd64.deb

QQ

ps  QQ 有些 平铺下退出   ,换个样式就可以了


root@k8s-master:~# bash -x  linuxqq_2.0.0-b1-1024_x86_64.sh 
+ [[ root != \r\o\o\t ]]
+ lines=33
+ tarball_md5=f90cfea5999cf4eaafba0b8f0a2f80f8
+ tail -n+33 linuxqq_2.0.0-b1-1024_x86_64.sh
++ md5sum linuxqq.tar.gz
++ cut '-d ' -f1
+ md5=f90cfea5999cf4eaafba0b8f0a2f80f8
+ [[ f90cfea5999cf4eaafba0b8f0a2f80f8 != \f\9\0\c\f\e\a\5\9\9\9\c\f\4\e\a\a\f\b\a\0\b\8\f\0\a\2\f\8\0\f\8 ]]
+ export -f do_install
+ tar zxf linuxqq.tar.gz
+ find linuxqq/ -type f -exec bash -c 'do_install "{}"' ';'
installing /usr/share/applications/qq.desktop
installing /usr/share/tencent-qq/crashpad_handler
installing /usr/share/tencent-qq/qq
installing /usr/share/tencent-qq/res.db
installing /usr/share/tencent-qq/qq.png
installing /usr/share/tencent-qq/qq.bmp
+ rm -rf linuxqq linuxqq.tar.gz
+ exit 0

浏览器

chrome

方法一:在官网下载对应版本的deb后执行

 google-chrome-stable #平时升级
 

全局翻墙安装插件


Google Chrome有众多的出色的插件,说几个常用的 suspender:内存不够用,可以装个suspender插件,把其他暂时不看的tab中断掉 AdBlock:最受欢迎的Chrome扩展,拥有超过4000万用户!屏蔽整个互联网上的广告 The QR Code Extension:允许当前页面生成QR码,并使用网络摄像头扫描QR码。 Window Resizer:调节屏幕的分辨率,诸多时候用户开发 Vimium:vim的分身 Proxy SwitchyOmega:轻松快捷地管理和切换多个代理设置 Wechat:微信 马克飞象:使用印象笔记扩展程序一键保存精彩网页内容到印象笔记帐户 惠惠购物助手:【网易出品】在您网购浏览商品的同时,自动对比其他优质电商同款商品价格,并提供商品价格历史,帮您轻松抄底,聪明网购不吃亏 JSON-handle:顾名思义就是处理JSON数据的工具

使用 Apt 软件源安装谷歌 Chrome 通过shadowsocks翻墙

firefox

sudo apt install firefox-esr-l10n-zh-cn #如果用自带的esr版本
常用插件  Auto Tab Discard, Notifier for Gmail ,   Tab Suspender 
2. 关闭硬件加速
3. 关闭平滑滚动

https://addons.mozilla.org/zh-CN/firefox/addon/yass-we/

Linux 下 Firefox 滚动网页会抖动,求教

firefox安装和汉化

firefox新手上路

chromium

apt install chromium chromium-l10n

https://wiki.debian.org/Chromium

waterfox

https://www.waterfox.net/

ms edge

直接官方下载deb
sudo apt remove microsoft-edge-stable

brave

国内安装不了 先FQ

安装Privoxy
apt  install privoxy
配置Privoxy
① 修改配置文件/etc/privoxy/config
vi /etc/privoxy/config 

② 确保如下内容没有被注释掉
     listen-address 0.0.0.0:8118  #如果代理给局域网的其它人用 就要用 0.0.0.0
    listen-address 127.0.0.1:8118    ## # 这个可能已打开的了 8118 是默认端口,不用改  改下面的 转发socket 到http这里要写上本机的ip
    forward-socks5t / 127.0.0.1:1080 . #转发到本地端口 转发到本地端口 这个要自己添加 注意 最后有个. 哦

设置http/https代理
    ① 修改配置文件/etc/profile
     vi /etc/profile

添加如下信息:
cat >> /etc/profile <<EOF
export http_proxy=http://127.0.0.1:8118
export https_proxy=http://127.0.0.1:8118
export ftp_proxy=http://127.0.0.1:8118
EOF

 source /etc/profile

#不要代理的
export NO_PROXY='localhost,127.0.0.1,192.168.88.30,192.168.88.31,192.168.88.32,10.96.0.0,10.224.0.0,10.96.0.0/12,10.224.0.0/16'


注:端口和privoxy 中的监听端口保持一致



 systemctl start privoxy
    systemctl status privoxy

    验证是否可用
lynx www.google.com

ins
sudo apt install apt-transport-https curl

sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list

sudo apt update

sudo apt install brave-browser#有时可能要多跑几次 

https://brave.com/linux/#release-channel-installation

falkon

sudo apt-get install falkon

又一个轻量的web 浏览器 以前的 Qupzilla apt 会提示你的 2017年8月10日,QupZilla开发者David Rosca在博客宣布QupZilla成为KDE项目。[5]Qupzilla 2.2发布之后项目将更名为“Falkon”。[6]KDE Falkon 3.0于2018年2月27日发布。 qupzilla conitnues development as falkon browser

tor

gnome-web

apt install  epiphany-browser

midori

这个暂时安装上不好用 以前可以 直接 apt

palemoon

对于 Debian 10,请运行以下命令:
Keep in mind that the owner of the key may distribute updates, packages and repositories that your system will trust (more information).

echo 'deb http://download.opensuse.org/repositories/home:/stevenpusser/Debian_10/ /' | sudo tee /etc/apt/sources.list.d/home:stevenpusser.list
curl -fsSL https://download.opensuse.org/repositories/home:stevenpusser/Debian_10/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home:stevenpusser.gpg > /dev/null
sudo apt update
sudo apt install palemoon

https://linux.palemoon.org/help/installation/

text-editor

sudo apt install gnome-text-edito

download tools

Twitter视频下载器

sudo apt install uget -y

axel 还是最爽的 下载rapian就知了

图片查看器

Ristretto

Linux 下最棒的 11 个图片查看器

绘图工具dia

绘图工具dia(取代visio)

sudo apt install dia -y

goldendict

install

evan@myxps:~$ sudo apt search goldendict
goldendict/kali-rolling,now 1.5.0~rc2+git20200409+ds-2 amd64 [已安装]
  feature-rich dictionary lookup program

goldendict-wordnet/kali-rolling 1:3.0-36 all
  electronic lexical database of English language (goldendict)

goldendict 是本体,goldendict-wordnet是一个en-en离线词典,按需安装
sudo apt install goldendict goldendict-wordnet

set up

设置可调节语言为简中
在词典-网站内添加
有道源 这个不知为什么没发音   原来直接web也是没声音的

http://dict.youdao.com/search?q=%GDWORD%&ue=utf8

默认打钩的地方全不要了 我们自己添加一个  

选择 Edict 编辑-> Dictionaries 词典  菜单,打开如下界面,去掉下面两张图中所有默认打钩的地方,然后添加第二张图中的 youdao 这一栏

有道词典的引擎链接是:http://dict.youdao.com/search?q=%GDWORD%&ue=utf8

好了,到这里点击 Apply,OK 就大功告成了,现在想要翻译只需鼠标选中要翻译的文字,然后按住 Ctrl ,在连续按两次 c,也就是(Ctrl + c + c)组合键,就会弹出有道网页版翻译页面了。如下图:

尝试使用bing搜索的dic搜索,效果不错,网络词典添加地址

https://cn.bing.com/dict/search?q=%GDWORD%

[使用教程] Linux上最好用的词典goldendict

Linux 下非常好用的字典 GoldenDict

Linux下超好用词典 -- GoldenDict

Linux 下一款非常好用的翻译软件

电子书calibre

 apt install calibre

词典

http://cidian.youdao.com/index-linux.html

  1. 在官网下载对应版本的deb后执行
sudo dpkg -i *.deb && sudo apt-get install -fy


GoldenDict 中文用户手册

x11vnc

x11vnc是一种 位图显示的 视窗系统 。它是在 Unix 和 类Unix 操作系统 ,以及 OpenVMS 上建立图形用户界面的标准工具包和协议。x11vnc服务端可以实现Windows远程Linux桌面系统。

sudo apt-get install x11vnc

python

sudo apt-get install ipython3


kali linux Python开发环境初始化

python IDE

sudo apt-get install spyder3

https://docs.spyder-ide.org/installation.html#

ops tools

sudo apt install lrzsz #sz命令发送文件到本地: # sz filename

mycli


MySQL是我们常用的一款数据库了,有的时候需要连到数据库里查一些东西或是一些什么操作。通常我们会选用mysql命令来连接数据库,但是这个工具挺不好用的,所以才会出现了这么一款神器mycli。由于是用Python写的,还封装了pip,所以安装起来很简单,一条命令pip install mycli就搞定了。这个工具和mysql命令用法是完全一样的,他的特点就是支持自动补全和SQL高亮,而且输出默认是使用less展示的,可以直接用键盘上下滚动,不需要鼠标键盘乱换着用。 

develop tools

apt install gdb

catfish

sudo apt-get install catfish #catfish简称文件搜索神器

django

pip install Django==1.8.18

#on ~/.bashrc
alias django-admin='/home/evan/.local/lib/python2.7/site-packages/django/bin/django-admin.py' 

electronic-wechat

electronic-wechat是一个基于nodeJS开发的Linux系统微信。

git clone https://github.com/geeeeeeeeek/electronic-wechat.git
cd electronic-wechat
npm install && npm start  #bash: npm: 未找到命令

bash: npm: 未找到命令
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

截图

flameshot

sudo apt install flameshot

https://flameshot.js.org/#/getting-start

Flameshot:一个简洁但功能丰富的截图工具

Shutter

gnome-screenshot
apt install shutter
sudo apt install deepin-screenshot -y


shutter dependencies

ShareX(win)

deepin scrot 作废

sudo apt install deepin-screenshot -y


wget -c http://packages.linuxdeepin.com/deepin/pool/main/d/deepin-scrot/deepin-scrot_2.0-0deepin_all.deb
sudo dpkg -i deepin-scrot_2.0-0deepin_all.deb
sudo apt-get install -f
#使用
deepin-scrot

图标 
https://github.com/lovesnow/pystorm
在这 里选择另存为  default/start_cursor.png


screenshot

vi /usr/share/applications/scrot.desktop
[Desktop Entry]
Name=scrot
Name[zh_CN]=抓图
Comment=Save images of your desktop or individual windows
Comment[zh_CN]=保存您桌面还是单个窗口的图像
Exec=/usr/bin/deepin-scrot
Terminal=false
Type=Application
Icon=/home/evan/screenshot/start_cursor.png
StartupNotify=true
Categories=GTK;Utility;
Keywords=MATE;screenshot;snapshot;desktop;window;image;
OnlyShowIn=MATE;
X-MATE-Bugzilla-Bugzilla=MATE
X-MATE-Bugzilla-Product=mate-utils
X-MATE-Bugzilla-Component=screenshot
X-MATE-Bugzilla-OtherBinaries=mate-panel-screenshot

https://wiki.debian.org/ScreenShots

/usr/share/applications# find ./ -name "*scree*"

深度截图工具(DEEPIN-SCROT

XMind

XMind是一款实用的思维导图软件,简单易用、美观、功能强大,拥有高效的可视化思维模式,具备可扩展、跨平台。但是对于稳定性和性能还是欠佳,在ubuntu上使用占用很大的CPU资源。

  1. 在官网下载对应版本的deb后执行
sudo dpkg -i *.deb && sudo apt-get install -fy

远程桌面软件

Linux和Windows间的远程桌面访问

远程桌面软件


freerdp

freerdp.com

  apt install freerdp-x11 freerdp2-x11
 # 果真help man 无敌 
xfreerdp  /dynamic-resolution  /drive:wintmp,/home/evan/tmp4win   +clipboard   /v:192.168.99.13 /u:evan /p:'123456'




 分辨率 把到英文单词为resolution 得到参数  
xfreerdp  --help | grep resolution
    /dynamic-resolution               Send resolution updates when the window is
evan@myxps:~$ 





#icon  cp virtualbox icon
evan@myxps:/usr/share/applications$ cat win.desktop 
[Desktop Entry]
Name=xfreerdp 
GenericName=xfreerdp  win

Type=Application
Exec=/home/evan/win %U
TryExec=VirtualBox
Keywords=virtualization;
MimeType=application/x-virtualbox-vbox;application/x-virtualbox-vbox-extpack;application/x-virtualbox-ovf;application/x-virtualbox-ova;
Icon=virtualbox
Categories=Emulator;System;Utility;
Actions=Manager;
Comment=Run several virtual systems on a single host computer

[Desktop Action Manager]
Exec=VirtualBox
Name=Open Oracle VM Manager
Name[de]=Oracle VM Manager öffnen

cat ~/win 
#!/bin/bash
xfreerdp  /dynamic-resolution  /drive:wintmp,/home/evan/tmp4win   +clipboard   /v:192.168.10.13 /u:administrator /p:'youpassword'
 


之前使用的是rdesktop,但是由于其不支持NLA认证,便不能登录公司的电脑。为此,现在使用freerdp——这是package的名字,实际的可执行程序是xfreerdp。使用如下的命令行即可实现远程桌面:

云桌面 --- FreeRDP使用说明

http://manpages.ubuntu.com/manpages/xenial/man1/xfreerdp.1.html

https://www.jianshu.com/p/f6fcf5b56fe3

Remmina

Remmina是一个用远程桌面软件,提供了RDP、VNC、XDMCP、SSH等远程连接协议的支持。 家里有时连不上是原来的网线接口不太好,重插一下就好了  
 sudo apt-get install remmina

usage

高级-- 画质 --  最好 

基本--色深--真色32位

rdesktop

remini 老是右键占用 用这个更加好,不过 好像这项目没人维护了 有时,有个备份的软件很重要 上次Remmina老是自动全屏,每次连接win后老是要断开 烦死了,于是找了一下 发现这货 记录一下 我的常用使用命令

rdesktop  -g 1280x960 192.168.30.54


之前使用的是rdesktop,但是由于其不支持NLA认证,便不能登录公司的电脑。为此,现在使用freerdp——这是package的名字,实际的可执行程序是xfreerdp。使用如下的命令行即可实现远程桌面: 在Linux上使用rdesktop

arch rdesktop

xrdp

xrdp

前面的rdesktop工具可以让我们在Linux系统上远程桌面登录Windows系统,如果反过来,希望在Windows上用RDP协议远程登录到Linux系统,就比较麻烦了。这就需要xrdp来帮助我们了。它是一个RDP服务端,可以让我们用远程桌面方式登录到Linux系统。

首先要安装xrdp。

sudo apt install xrdp

然后启动xrdp服务。

sudo systemctl enable xrdp
sudo systemctl start xrdp

投屏

开源投屏:Linux电脑上使用Deskreen轻松投屏

数据库连接

Dbeaver安装

思维导图

freeplane

IDE

这几个C ide感觉还是不会补全的呀 2021

anjuta

eclipse

https://www.eclipse.org/downloads/eclipse-packages/

Ubuntu 18.04下JDK与Eclipse安装配置




cat /usr/share/applications/eclipse.desktop
[Desktop Entry]
Name=eclipse
Name[zh_CN]=eclipse IDE
GenericName=Integrated Development Environment
GenericName[zh_CN]=集成开发环境
Comment=Develop software in an integrated development environment
Comment[zh_CN]=在集成开发环境中开发软件
Encoding=UTF-8
Exec=/home/evan/apps/eclipse/eclipse
Icon=/home/evan/apps/eclipse/icon.xpm
Terminal=false
X-MultipleArgs=false
StartupWMClass=Firefox
Type=Application
Categories=GNOME;GTK;Development;IDE;
StartupNotify=true

Meld

Meld是针对开发者的视觉差异和合并工具。MELD帮助您比较文件、目录和版本控制的项目。它提供了两个和三个比较的文件和目录,并支持许多流行的版本控制系统。既可以查看差异有可以同步!

sudo apt-get install meld

spyder

Python的开源IDE 可在MIT许可下免费使用 Spyder python的一些基本特性是多语言编辑器,交互式控制台,文档查看器,变量浏览器,在文件中查找,文件浏览器等 虽然Spyder是一个独立的IDE,支持包括Windows,Linux,MacOS,MacOS X等多个平台,但它也可以作为一个PyQt扩展库嵌入到PyQt应用程序

sudo apt-get install spyder ; pip3 install Jinja2 #可能要密码  启动不成功 提醒 ModuleNotFoundError: No module named 'jinja2'

https://pythonhosted.org/spyder/index.html

链接:https://github.com/spyder-ide/spyder

https://pythonhosted.org/spyder/installation.html

问题就是在awesome环境中fcitx 不能打中文

albert

wget -c http://repo.adminlounge.org/pool/dists/jessie/main/a/albert/albert_0.12_amd64.deb 
sudo dpkg -i albert_0.12_amd64.deb  && sudo apt-get install -fy

https://albertlauncher.github.io/docs/installing/ 官方安装命令好像不成功呢 所以 我直接拿出deb包了


install eric6

eric6 支持 py2 and py3 
 sudo apt install eric -y 

安裝插件 
插件--> 插件儲存庫 -->  然後都是下載 安装 下一步什么 的就行了 

问题就是导致fcitx 不能打中文


Debugging with the Eric IDE
I would sum up how to debug with the Eric IDE too:

F5 (start debugging; untick “Don’t stop at first line” or set a breakpoint)
F10 (stop)
F7 (next, step in subroutines)
F8 (next, step over subroutines)
F9 (return, step out of subroutine)
F6 (continue, go, run)
Shift+F6 (continue till cursor)
conditional breakpoints are supported (set a breakpoint, right click on it, edit)
I find Eric’s debugger is much faster than Winpdb.0


trouble shooting

下列软件包有未满足的依赖关系:
 libkf5coreaddons5 : 破坏: libkf5globalaccel-bin (< 5.37) 但是 5.28.0-1 正要被安装
 libkf5crash5 : 破坏: libkf5globalaccel-bin (< 5.37) 但是 5.28.0-1 正要被安装
E: 错误,pkgProblemResolver::Resolve 发生故障,这可能是有软件包被要求保持现状的缘故。


如果用新立得 就是提示 
无法应用变更! 请先修复损毁的软件包

结果这样就好了 
sudo apt-get install -f
sudo dpkg --configure -a

sudo apt-get dist-upgrade



#这个小心点
sudo apt-get autoremove

http://eric-ide.python-projects.org/

http://pydev.sourceforge.net/

IDE for python and django development on linux

Manually Installing the Django Plugin for Eric

Figlet

一句话:Figlet是一个将字符串在终端生成一个logo的终端工具。

sudo apt-get install figlet

figlet mylove

bleachbit

sudo apt install bleachbit
sudo  bleachbit #有中文界面

用于Ubuntu的6款最佳CCleaner替代品

chmsee

chmsee

打印机

惠普(HP_LaserJet_Professional_M1216nfh_MFP)HP打印机驱动安装

apt我使用的办法
1、打开深度终端,输入:sudo apt-get update && sudo apt-get install hplip hplip-gui hplip-plugin 
libcups2 libcups2-dev cups-bsd cups-client libcupsimage2 libcupsimage2-dev libdbus-1-dev

2、接着终端输入:hp-setup, 按照提示一路下一步 https://developers.hp.com/hp-linux-imaging-and-printing/install/manual/hp_setup


https://wiki.deepin.org/index.php?title=%E6%89%93%E5%8D%B0%E6%9C%BA

官方下载

https://developers.hp.com/hp-linux-imaging-and-printing/gethplip

https://developers.hp.com/hp-linux-imaging-and-printing/install


https://developers.hp.com/hp-linux-imaging-and-printing/install/install/index

故障处理

Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=slp) error: No PPD found for model laserjet_professional_m1216nfh_mfp using old algorithm. error: No appropriate print PPD file found for model hp_laserjet_professional_m1216nfh_mfp

HP_LaserJet_Professional_M1216nfh_MFP

Would you like to specify the path to the correct PPD file to use (y=yes, n=no*, q=quit) ? y

解决办法 启动cups

sudo /etc/init.d/cups start

虚拟机软件

virtualbox

http://pkg.kali.org/pkg/virtualbox

myos is  kali 2020.2


 sudo apt --fix-broken install
  416  sudo apt install linux-headers-5.4.0-kali4-amd64
  sudo apt install libsdl-ttf2.0-0
    
去掉vbox官方的源   
然后  sudo apt install virtualbox  就是最新的6.1的  原来自己的源里有哦  

用二进制包有错 和官方源有问题的 不用理了 

#国内mirrors
https://mirrors.tuna.tsinghua.edu.cn/virtualbox/

https://mirrors.tuna.tsinghua.edu.cn/virtualbox/6.1.4/virtualbox-6.1_6.1.4-136177~Debian~buster_amd64.deb


 sudo apt install virtualbox

https://download.virtualbox.org/virtualbox/6.0.10/virtualbox-6.0_6.0.10-132072~Ubuntu~bionic_amd64.deb


myos is  kali 2017.3
Debian 9 ("Stretch")  i386 |  AMD64
wget -c http://download.virtualbox.org/virtualbox/5.2.2/virtualbox-5.2_5.2.2-119230~Debian~stretch_amd64.deb

apt install  linux-headers-amd64 linux-headers-4.13.0-kali1-amd64
sudo /sbin/vboxconfig



if  ubuntu18.04
去清华大学 mirros 下载 6.1  有问题就  sudo apt --fix-broken install

http://pkg.kali.org/pkg/virtualbox

VirtualBox 镜像使用帮助

Installing VirtualBox on Kali (Host)

boxes

gnome-boxes

gnome boxes_GNOME Boxes虚拟化入门

keepass2

sudo apt install keepass2

翻墙

Chrome通过shadowsocks翻墙

Ubuntu利用shadowsocks和polipo终端翻墙

v2ray

sudo apt install v2ray #client

https://www.v2ray.com/chapter_00/install.html

qv2ray v2rayL

Qv2ray For Linux 教程

v2ray的linux图形客户端 | 不用再敲命令启动了

kali安装Qv2ray及配置

https://qv2ray.net/debian/


 sslocal -s linuxsa.org   -p 443  -k "lai22" -l 7070 -t 600 -m aes-256-cfb #on new kali 加 /etc/rc.local

#!/bin/bash
source /etc/profile #一定要加  不然可能sslocal都说找不到 
ps -ef | grep sslocal | grep -v grep 
if [ $? -ne  0 ]
then 
/usr/bin/python /usr/local/bin/sslocal -s linuxsa.org   -p 443  -k "lai2240" -l 7070 -t 600 -m aes-256-cfb #on new kali
else
#echo "has run "
:
fi








#!/bin/bash
# */1  * * * * /home/evan/tunnel  &  #加定时任务不好 还不如用加配置的高级些呢 
#CPID=$$   #$$ 是脚本运行的当前进程ID号
#RUN="`ps -ef | grep "$0" | grep -v "grep" | grep -v "$CPID" | wc -l`"  #$0 是脚本本身的名字
RUN="`ps -ef | grep  -v "grep" | grep 7070 | wc -l`"
[ "$RUN" -gt 0 ] && exit
#[ "$RUN" -gt 1 ] && exit
#sleep 1

# freebsd  
#ssh  -i /home/evan/.ssh/evankey -p 22  -q  -D 7070 [email protected] 

#ssh -2  -N  -f    -p 22   -D 7070 [email protected]
#ssh  -i /home/evan/.ssh/evankey -p 22  -q  -D 7070 [email protected] &
#ssh -2 -N -f -L 7070:localhost:22  [email protected] 

#4 linux
# sudo killall sshd
ssh -i /home/evan/.ssh/id_rsa -p 22 -qtfnN -D 7070 [email protected]
sleep 3
#[ "$RUN" -gq 0 ] && exit
#[ "$RUN" -gt 1 ] && exit

lua

sudo apt install   lua5.1

evan@kalipc:~/test$ lua 
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio

DM

GDM

gdm3

LightDM

为什么不能列出已有用户呢 我改了 居然不能login

SDDM

apt install sddm

redis-cli

sudo  apt install  redis-tools

vokoscreen录屏

sudo apt-get install vokoscreen

Kazam录屏

apt install kazam #昨天好像是安装不成功呀

http://pkg.kali.org/pkg/kazam

https://linsir.org/post/How_to_install_Kazam_on_kali_linux

好用轻巧的录屏软件——Kazam


Vokoscreen:优秀的屏幕录制软件


8 Best Screen Recorders for Desktop Screen Recording in Linux

https://www.tecmint.com/best-linux-screen-recorders-for-desktop-screen-recording/

https://itsfoss.com/best-linux-screen-recorders/

Vlog视频剪辑

10个值得推荐的手机Vlog视频剪辑APP

如何用手机做出Vlog,有这七个视频剪辑软件APP就够了

这三款录屏工具,也许是 Android 平台上的同类最佳

vpn

apt-get install network-manager-openvpn-gnome
apt-get install network-manager-pptp
apt-get install network-manager-pptp-gnome
apt-get install network-manager-strongswan
apt-get install network-manager-vpnc
apt-get install network-manager-vpnc-gnome
/etc/init.d/network-manager restart

ubuntu vpn

vnc

sudo apt install vnc4server
vncserver

Use xtigervncviewer -SecurityTypes VncAuth -passwd /root/.vnc/passwd :1 to connect to the VNC server.
0x03 安装VNC,远程桌面你的kali

还是先用ssh连接到kali,然后

##apt-get install tightvncserver

安装完之后,开启vnc连接

##tightvncserver

会提示你输入远程时要验证的密码,输入你的密码(系统会提示你需要一定复杂度

参考 http://www.52pi.net/archives/908


KALI中如何启用VNC

kali linux 2.0 实现vnc远程桌面连接

Kali Linux开启VNC远程桌面登录

IRC

hexchat 可惜输入框有点小 暂时不太会用

quassel

IRC 在Pidgin 中的设置

IM

微信 for Linux

https://gitee.com/atzlinux/debian-cn/blob/apt-install/install-wechat.sh

https://github.com/geeeeeeeeek/electronic-wechat/blob/master/README_zh.md#%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8

安全

fail2ban

编程

Svn基础

sudo apt install subversion kdesvn

思维导图

FreeMind

Freeplane

为Linux用户推荐几种免费思维导图软件

最强大脑!这 7 款开源思维导图工具真的很神奇

打印机

运行 “开始” - ”控制中心 “ - “打印” - "服务器“ 设置共享打印机;然后另外一台 StartOS 机器,在连接打印机中选择”网络打印机“,选择”互联网打印协议(IPP)“,在 URI 输入条中输入共享打印机的地址,格式为 ipp://hostname:631/printers/<打印机的名称>,例如: ipp://192.168.0.1:631/printers/DeskJet-D2300,再根据提示操作即可

linux debian下安装中国农历

linux debian下安装中国农历

kali安装flash player

apt-get install flashplugin-nonfree

静态IP

sudo cat /etc/NetworkManager/system-connections/Wired\ connection\ 1 
[connection]
id=Wired connection 1
uuid=b2931303-64fc-45e7-88f1-31e160ead5cc
type=ethernet
permissions=
timestamp=1558878910

[ethernet]
mac-address-blacklist=

[ipv4]
address1=192.168.88.4/24,192.168.88.1
dns=223.6.6.6;
dns-search=
method=manual

[ipv6]
addr-gen-mode=eui64
dns-search=
ip6-privacy=2
method=ignore

清理工作

Debian/Ubuntu清理硬盘空间的8个技巧

apt clean #释放空间 /var/cache/apt/archives/ 里面会有大量下载的软件包


cd / 
du  -sh  * --exclude=home #查看除了home目录,哪个目录是最大的

du -s * | sort -nr|head # 排序

思路 在最大的里面删除 或者直接看到哪些没用的,直接删除 例如share/doc


root@latop:/usr# du -s * | sort -nr|head
8290868	lib
5811564	share
1070492	bin
173016	local
158300	src
149140	include
58604	sbin
9188	lib32
76	libexec
root@latop:/usr# du -sh lib
8.0G	lib
root@latop:/usr# du -sh   share/
5.6G	share/




 sudo apt purge libreoffice?
使用'sudo apt autoremove'来卸载它(它们)。

瘦身

apt remove rhythmbox  atril  pluma  uxterm xterm

apt autoremove  gir1.2-pluma-1.0 gir1.2-rb-3.0 libgpod-common libgpod4 libpeas-1.0-python2loader \
 librhythmbox-core10 libsgutils2-2 pluma-common rhythmbox-data


#/usr/share/doc: 系统说明文件存放目录
evan@latop:~$ sudo mv /usr/share/doc/* bakdock/

remove different Desktop

sudo apt-get remove kde* plasma* plasma-desktop* plasma-desktop
sudo apt-get remove kde-plasma-desktop kde-plasma-netbook kde-standard

How to install/remove different Desktop

apt 源目录

http://mirrors.aliyun.com/kali/pool/main/c/catfish/catfish_1.4.4-1_all.deb

xfce

Xfce面板操作手册 Xfce4.2操作手册

Xfce (arch)

Xfce4.2用户指南

Xfce/指南(gentoo)

xfce ​百科

move files

0.on debianpc 

*/5 * * * *  rsync -avz  xk/  data/xkbak/
*/40 * * * *  rsync -avz  ssh/  data/xkbak/ssh/


1. 先把latop的东西 rsync 到 mydata  #
cd /mydata
rsync -avz --progress  192.168.11.28:/home/evan/*  .

2.再把pc 有关的cp 到mydata
#on pc run  command
rsync  -avz --progress   ~/dkm/*  192.168.11.28:/home/evan/dkm/

#不然是变成 下面的一个子目录了
#cp dir1  dir2
#cp dir1/ dir2/ #变成子目录
rsync -avz --progress  .config/awesome/*   192.168.11.28:/home/evan/awesome
rsync  -avz --progress   book/*  192.168.11.28:/home/evan/book/


#这个要先清理一下先 
#rsync 到 此目录 
rsync -avz --progress /home/evan/rom/* 192.168.11.28:/home/evan/rom/
#同上
rsync -avz --progress /home/evan/rom/ 192.168.11.28:/home/evan/rom 
不会成为子目录哦
rsync -avz --progress /home/evan/rom/ 192.168.11.28:/home/evan/rom/

troubleshooting

watchdog

现在看起来是那个外带的无线网上问题 还是感觉 kali 相比debian有点卡

Message from syslogd@kali at Oct 13 12:47:30 ...
 kernel:[ 2897.771142] watchdog: BUG: soft lockup - CPU#1 stuck for 22s! [netstat:3680]

Message from syslogd@kali at Oct 13 12:47:58 ...
 kernel:[ 2925.770120] watchdog: BUG: soft lockup - CPU#1 stuck for 22s! [netstat:3680]

Firmware https://wiki.debian.org/Firmware

kernel BUG: soft lockup - CPU stuck for 23s!

小心 更新系统

2018年 09月 23日 星期日 18:37:21 CST 这个主板 CPU 太新 一开始安装不上,搞了N久,后来 拿回家在家里的老主板上安装成功,然后拿到新主机机器上 一开始好好的 ,可惜我突然又想更新 于是又挂了呀

dpkg: 处理软件包 blueman (--configure)时出错: 依赖关系问题 - 仍未被配置 dpkg: 软件包 python3 尚未配置


dpkg: 处理软件包 blueman (--configure)时出错: 依赖关系问题 - 仍未被配置 dpkg: 依赖关系问题使得 python3-starlette 的配置工作不能继续: python3-starlette 依赖于 python3:any;然而: 软件包 python3 尚未配置

sudo -i 
mv /var/lib/dpkg/info     /var/lib/dpkg/info_bak
  mkdir /var/lib/dpkg/info
   apt update 
  apt  -f  install
##就是把刚才新加的 添加到备份目录  最后就是 all 
mv /var/lib/dpkg/info/*        /var/lib/dpkg/info_bak/
rm -rf /var/lib/dpkg/info
mv /var/lib/dpkg/info_bak /var/lib/dpkg/info

乱码 kali light

 apt install  ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy  # reboot ok

安装kali-linux-full,包含各种工具:
$ sudo apt-get install kali-linux-full

安装GNOME 3桌面环境:
$ sudo apt-get install kali-desktop-gnome


安装kali-light版本后使用中文出现乱码签名无效

realtek

http://mirrors.ustc.edu.cn/debian/pool/non-free/f/firmware-nonfree/firmware-realtek_20161130-3_all.deb

apt lock

root@kali:~# apt-get install openssh-client 
E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)
E: 无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它?
root@kali:~# apt \\^C
root@kali:~# apt install openssh-client 
E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)
E: 无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它?
root@kali:~# apt update 
命中:1 http://mirrors.neusoft.edu.cn/kali kali-rolling InRelease
正在读取软件包列表... 完成   
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       

root@kali:~# ps -ef | grep apt 
_apt      1400   667  0 15:36 ?        00:00:00 /usr/lib/apt/methods/http
_apt      1401   667 11 15:36 ?        00:00:13 /usr/lib/apt/methods/http

root@kali:~# ps -ef | grep dpkg 
root      1525  1380  0 15:38 pts/1    00:00:00 grep dpkg
root@kali:~# kill -9  1400  1401 

err

dpkg-deb: 错误: <解压缩> subprocess returned error exit status 2 dpkg: 处理归档 /var/cache/apt/archives/libwebkit2gtk-4.0-37_2.22.0-2_amd64.deb (--unpack)时出错:

无法为 './usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37.33.1' 拷贝解压的文件至 '/usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37.33.1.dpkg-new': 未预期的文件结束或流结束

正准备解包 .../libjavascriptcoregtk-4.0-18_2.22.0-2_amd64.deb ... 正在将 libjavascriptcoregtk-4.0-18:amd64 (2.22.0-2) 解包到 (2.20.3-1) 上 ... dpkg-deb (子进程):解压缩归档成员:lzma 错误:压缩数据已损坏 dpkg-deb: 错误: <解压缩> subprocess returned error exit status 2 dpkg: 处理归档 /var/cache/apt/archives/libjavascriptcoregtk-4.0-18_2.22.0-2_amd64.deb (--unpack)时出错:

无法为 './usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18.11.1' 拷贝解压的文件至 '/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18.11.1.dpkg-new': 未预期的文件结束或流结束

在处理时有错误发生:

/var/cache/apt/archives/libwebkit2gtk-4.0-37_2.22.0-2_amd64.deb
/var/cache/apt/archives/libjavascriptcoregtk-4.0-18_2.22.0-2_amd64.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

华硕开机自动进入bios

#在新PC 安装了 kali,记得要删除整个硬盘,我使用了默认的分区,不然grub安装不成功, 加个数据硬盘后居然老是直接到BIOS
1.首先恢复一下bios默认值,避免其他参数变动影响

2..Security-->Secure Boot Management按回车进入设置菜单;将Secure Boot 改为Disabled

3.选择Boot进入启动设置,将Fast Boot设为disabled ,将Launch CSM设为Enabled; 

4.F10保存设置。重启进系统不再进bios

#这个办法 ?
首先进入bios

Security->Secure Boot Control->Disabled 
F10保存,继续进入bios

Boot->Launch CSM->Enabled
F10保存,成功进入系统

最后发现,如果在磁盘分区时候没选择全放在一起(即第一项推荐新手)而是选择了下面的2项就会导致安装操作系统失败

解决方案:我原本空闲出20G给kali,现在改为45G,安装时就不会失败了,详情见kali 安装步骤 安装失败 kali install fail 已解决,究其原因"/ 根目录" 要分10G以上(否则安装失败,x32和x64位的系统在两台电脑上面共尝试安装了10次左右没有成功,后来成功后总结出已知原因两点1,须选图形化安装2,手工分区,而且根目录足够大,此版本解压出来/根目录就7GB以上了

http://linuxbsdos.com/2016/11/05/dual-boot-kali-linux-rolling-2016-2-windows-10-on-a-pc-with-uefi-firmware/

pc err

mate err

您希望继续执行吗? [Y/n] y
dpkg-deb (子进程):解压缩归档成员:lzma 错误:压缩数据已损坏
dpkg-deb: 错误: <解压缩> subprocess returned error exit status 2
dpkg-deb (子进程):无法从 /var/cache/apt/archives/libgtk-3-0_3.24.1-2_amd64.deb 中拷贝归档成员到解码管道中:写入失败 (断开的管道)
读取变更记录(changelogs)... 完成
(正在读取数据库 ... 系统当前共安装有 436105 个文件和目录。)
正准备解包 .../libgtk-3-0_3.24.1-2_amd64.deb  ...
正在将 libgtk-3-0:amd64 (3.24.1-2) 解包到 (3.22.30-2) 上 ...
dpkg-deb (子进程):解压缩归档成员:lzma 错误:压缩数据已损坏
dpkg-deb: 错误: <解压缩> subprocess returned error exit status 2
dpkg: 处理归档 /var/cache/apt/archives/libgtk-3-0_3.24.1-2_amd64.deb (--unpack)时出错:
 无法为 './usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2400.1' 拷贝解压的文件至 '/usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2400.1.dpkg-new': 未预期的文件结束或流结束
正准备解包 .../mate-icon-theme_1.20.1-1_all.deb  ...
正在解包 mate-icon-theme (1.20.1-1) ...
dpkg-deb (子进程):解压缩归档成员:lzma 错误:压缩数据已损坏
dpkg-deb: 错误: <解压缩> subprocess returned error exit status 2
dpkg: 处理归档 /var/cache/apt/archives/mate-icon-theme_1.20.1-1_all.deb (--unpack)时出错:
 无法为 './usr/share/icons/mate/256x256/devices/video-display.png' 拷贝解压的文件至 '/usr/share/icons/mate/256x256/devices/video-display.png.dpkg-new': 未预期的文件结束或流结束
在处理时有错误发生:
 /var/cache/apt/archives/libgtk-3-0_3.24.1-2_amd64.deb
 /var/cache/apt/archives/mate-icon-theme_1.20.1-1_all.deb
办法 1 如何解决这个问题 看能不能这个

使用apt安装软件时,提示dpkg-deb: /lib/x86_64-linux-gnu/liblzma.so.5

dpkg-deb (子进程):解压缩归档成员:lzma 错误:压缩数据已损坏

办法2 重装 安装有gnome 就可以 全局ss 并安装chrome plus

ops

中文man手册

常用软件列表

Lubuntu 20.04
   Ark – 归档文件管理器
   Bluedevil – 蓝牙连接管理
   Discover 软件中心 – 包管理系统
   FeatherPad – 文本编辑器
   FireFox – 浏览器
   K3b – CD/DVD 刻录器
   Kcalc – 计算器
   KDE 分区管理器 – 分区管理工具
   LibreOffice – 办公套件(Qt 界面版本)
   LXimage-Qt – 图片查看器及截图制作
   Muon – 包管理器
   Noblenote – 笔记工具
   PCManFM-Qt – 文件管理器
   Qlipper – 剪贴板管理工具
   qPDFview – PDF 阅读器
   PulseAudio – 音频控制器
   Qtransmission – BT 下载工具(Qt 界面版本)
   Quassel – IRC 客户端
   ScreenGrab – 截屏制作工具
   Skanlite – 扫描工具
   启动盘创建工具 – USB 启动盘制作工具
   Trojita – 邮件客户端
   VLC – 媒体播放器
   MPV 视频播放器


75 个最常用的 Linux 应用程序


那个程序员的Linux常用软件清单

大家有什么推荐的日常 Linux 软件

备用

完美工作站 Archlinux

emacs26 in Ubuntu 18.04

 sudo add-apt-repository ppa:kelleyk/emacs
 sudo apt update

  sudo apt install emacs26

root@myxps:/usr/share/applications# cat emacs25.desktop 
[Desktop Entry]
Version=1.0
Name=GNU Emacs 25 (GUI)
GenericName=Text Editor
Comment=GNU Emacs is an extensible, customizable text editor - and more
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
TryExec=/usr/bin/emacs25
Exec=/usr/bin/emacs25 %F
Icon=emacs25
Type=Application
Terminal=false
Categories=Utility;Development;TextEditor;
StartupWMClass=Emacs
Keywords=Text;Editor;
root@myxps:/usr/share/applications# cp  emacs25.desktop  emacs.desktop
root@myxps:/usr/share/applications# emacs  -nw  emacs.desktop 
root@myxps:/usr/share/applications# cat emacs.desktop
[Desktop Entry]
Version=1.0
Name=GNU Emacs 26 (GUI)
GenericName=Text Editor
Comment=GNU Emacs is an extensible, customizable text editor - and more
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
TryExec=/usr/bin/emacs26
Exec=/usr/bin/emacs26 %F
Icon=emacs25
Type=Application
Terminal=false
Categories=Utility;Development;TextEditor;
StartupWMClass=Emacs
Keywords=Text;Editor;


http://ubuntuhandbook.org/index.php/2019/04/gnu-emacs-26-2-released-install-in-ubuntu-18-04/

Debian(kali)usb无线网卡

公司的PC 无线网卡为RTL8192EE

安装过程报错 regulatory.db

如果没有你需要的,请自己在官网找,软件包地址在这: https://packages.debian.org/search?searchon=names&keywords=Realtek

我下载了整个 deb包 https://packages.debian.org/stretch/firmware-realtek


Kali安装时:rtl_nic/rtl8411-1.fw固件缺失 以及无法确定发布代号的解决办法

see aslo

awesome


热键管理软件sxhkd

Looking for Some Good Note Taking Apps on Linux? Here are the Best Notes Apps we Found for You


https://www.linuxquestions.org/questions/linux-kernel-70/kernel-platform-regulatory-0-direct-firmware-load-for-regulatory-db-failed-with-error-2-a-4175622954/

https://github.com/robertfoss/wireless-regdb/blob/master/regulatory.db


TP-LINK 722N 不支持linux ,千万别买, 在kali上面无法识别,今天我买了一个,到货了,试了各种方法都没用,打算退货

TP-LINK TL-WN726N免驱版 外置天线USB无线网卡

http://www.aircrack-ng.org/doku.php?id=compatibility_drivers

2017年最适用于WIFI HACK的无线网卡推荐

Kali 安装无线网卡驱动

References参考资料

awesome-linux-software-cn

Ubuntu常用软件列表推荐

zh.opensuse.org常用软件

常用 Linux 软件汇总,足够用了

常用 Linux 软件汇总!很全,但不敢说最全

Linux 上有哪些工具软件堪称精美?


ArchLinux 2020 安装总结

Linux系统装机必备应用top10

Linux上有哪些高效的工具软件?

elementary 安装指南

海量的超赞 Linux 软件

高效 manjaro i3

安装完 Debian 10 后必做的10件事

ubuntu wiki apps 程序员的Linux常用软件清单

kali初始化myblog

Debian 10(Buster)安装后要做的前 8 件事

debian初始化 -testing

Kali Linux 配置和优化(安全牛学习笔记)

kali日常 无法应用变更! 请先修复损毁的软件包


kali初始化

Ubuntu 中软件的安装、卸载以及查看的方法总结

Install the Eric Python IDE


10个最佳 Python 集成开发环境(IDE)

Remmina的一次暴走

开启你的kali linux DIY之旅


Linux下给力截图工具归纳

Ubuntu安装腾讯TIM

Debian Xfce 安装后的常用配置教程

Remmina Ubuntu 和 Windows 之间进行远程访问和文件互传


vbox host kali 2020.1版本安装及中文汉化

Ubuntu 18.04 LTS 安装、美化


Kali-Linux-美化与优化

HardInfo – Check Hardware Information in Linux