linux 软件应用
grub2
安装grub2到某分区
mount /mnt/dev /dev/sdb2 //这里选择你刚才分区的第二个分区 sudo grub-install --root-directory=/mnt/dev --no-floppy /dev/sdb
目录 /usr/lib/grub/i386-pc/
用grub2引导 WinPE iso
http://www.upantool.com/iso/cdrom/10633.html
在自己机器上找到/usr/lib/syslinux/memdisk,复制一份,同ISO文件放在一起。
set root='(hd0,msdos1)' #把u盘的第一个分区设置成根目录
echo 'Loading Memdisk...'
#insmod memdisk
linux16 /iso/memdisk iso raw //u盘根目录下面的iso 文件夹
echo 'Loading ISO...'
initrd16 /iso/winpe2012.iso
参考: U盘作为启动盘使用GRUB2 引导 iso 文件安装各种系统
https://blog.csdn.net/li740207611/article/details/50936975
文件系统
FAT32 (vfat)文件系统不支持超过4G的文件。
NTFS可以支持,但NTFS能不被LINUX支持。
而exFAT文件系统可以被Windows和Linux支持。
Linux下需要安装两个包:exfat-fuse exfat-utils
在ubuntu 18.04上运行vnc
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-18-04
sudo apt install xfce4 xfce4-goodies
sudo apt install tightvncserver
修改~/.vnc/xstartup文件:
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
dhcp(client+server):
isc dhcp(iso.org) 3.1.3比较小巧且能在2.6.32.27下编译通过,可用于pxe boot。
root [ /etc ]# cat dhcpd.conf
#allow booting;
#allow bootp;
default-lease-time 3600;
max-lease-time 9200;
ddns-update-style ad-hoc;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.56.255;
option routers 192.168.56.2;
option domain-name-servers 192.168.1.1;
subnet 192.168.56.0 netmask 255.255.255.0 {
range 192.168.56.130 192.168.56.139;
}
option space PXE;
class "PXEclients" {
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
#where the next-server <server-ip> should be replaced with the IP address of the tftp server.
filename "pxelinux.0";
next-server 192.168.56.1;
#option tftp-server-name "192.168.56.1";
}
inetutils
including ftpd, inetd, rexecd, rlogind, rshd, talkd, telnetd, tftpd, uucpd and whois
inetutils-1.5.tar.gz is in the lfs-6.3 live cd
./configure --prefix=/usr --libexecdir=/usr/sbin --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --infodir=/usr/share/info --disable-clients --disable-logger --disable-syslogd
root [ /mnt/sdb1/src/inetutils-1.5 ]# cat /etc/inetd.conf
tftp dgram udp wait root /usr/sbin/tftpd -l /boot
samba installation and setup
- install
sudo apt-get install samba
sudo apt-get install smbfs
- create user and directory
useradd testuser
smbpasswd -a testuser
mkdir /test/testdir
chown testuser /test/testdir
- configure samba
vi /etc/samba/smb.conf, append the following line:
testuser = "user for testing"
vi /etc/samba/smb.conf, append the following line:
security = user
username map = /etc/samba/smbusers
usershare allow guests = yes
[testfolder]
path = /media/disk/testdir
public = no
writeable = yes
browseable = yes
- (re)start samba
/etc/init.d/samba restart
tftp/ftp等服务器的安装
这些都是inetutils工具的一部分。
inetutils-1.5在2.6.32.27下工作不正常,不能接受外部tftp请求。
inetutils-1.9.2和1.9.3都没问题,且可以支持带802.1q vlan tag的端口。
下载链接:ftp://ftp.gnu.org/gnu/inetutils/
如果./configure的时候不加参数,则make;make install后,
只需要增加一个文件:/etc/inetd.conf,内容如下:
tftp dgram udp wait root /usr/local/libexec/tftpd -l /boot
启动inetd即可:/usr/local/libexec/inetd,无需单独启动具体服务
tftp的日志,会记录在/var/log/sys.log中。
常用工具
tcpdump (已在lfs 6.3验证)
tcpdump-4.1.1.tar.gz (changelog) (PGP signature)
libpcap-1.1.1.tar.gz (changelog) (PGP signature)
minicom(已在lfs 6.3验证)
minicom-2.7.tar.gz
非正常上网代理设置
shadowsocks
https://github.com/shadowsocks/shadowsocks-qt5/releases
SSH
sshd服务:service sshd start/restart/stop
sshd服务调试版本:sshd -d [-d [-d]]
安装grub(以/dev/hda为例):
grub-install /dev/hda
如果提示/dev/hda does not have any corresponding BIOS drive
则先运行grub-install --recheck /dev/hda
linux下配置FTP
1.新建一个用户(非root用户);
2.编辑/etc/xinted.d/wu-ftpd文件,将disable=yes改成no,然后重启系统即可。
ftp整个目录上传/下载
如果在文字界面中用ftp命令进入服务器后,先用prompt命令关掉提示.然后用mget和mput命令就可以了,在xwindow下可以用gftp,和windows下的cuteftp等ftp客户端程序差不多.
关闭debian默认启动图形界面
1. 打开grup配置文件
nano /etc/default/grub
修改
GRUB_CMDLINE_LINUX=”” 为GRUB_CMDLINE_LINUX=”text”
2. 更新grub
update-grub
3. 更新系统服务管理器配置
systemctl set-default multi-user.target
4. 重启:
init 6
ubuntu 18.04上使用kindle阅读软件
kindle没有linux版本。。解决方法是wine。
最新版(1.26)的kindle是不被最新版的wine支持的,而1.14及以下版本的kindle已经不能使用。
我下载了一个1.15版,可被wine支持。
看中文需要win7原版字体包解压至~/.wine/drive_c/windows/Fonts。字体包下载链接http://www.downza.cn/soft/183046.html。
linux 软件应用的更多相关文章
- linux软件管理之------编译安装nginx服务器并手动编写自动化运行脚本
红帽系列的 linux软件管理分为三类:1. rpm 安装软件.2. yum 安装软件.3. 源码包编译安装.前面两种会在相关专题给出详细讲解.源码包的编译安装是非常关键的,我们知道linux的相关版 ...
- Linux软件安装,RPM与YUM
为了防止无良网站的爬虫抓取文章,特此标识,转载请注明文章出处.LaplaceDemon/SJQ. http://www.cnblogs.com/shijiaqi1066/p/3843955.html ...
- 分享几种Linux软件的安装方法
Linux软件安装由于不同的Linux分支,安装方法也互不相同,介绍几种常见的安装方法. 1. 源码安装, 对于本身具有开源血统的Linux系统来说,几乎所有的开源软件都支持在Linux平台运 ...
- 我所使用的Linux软件集合
自从2003-2004春节之际初次尝试使用Linux以来,至今已十年有余了.尤其是整个博士研究期间,坚持在Linux下开展学习与研究工作,前前后后试用了不少桌面环境.窗口管理器.终端程序以及其他应用软 ...
- Linux基础学习(6)--Linux软件安装
第六章——Linux软件安装 一.软件包管理简介 1.软件包分类: (1)源码包:脚本安装包 (2)二进制包(RPM包.系统默认包) 2.源码包: (1)源码包的优点:开源,如果有足够的能力,可以修改 ...
- Linux软件安装中RPM与YUM 区别和联系
.tc-nav-row{ height:38px; margin: 8px 15px; } .tc-nav-tab{ text-align: center; color:#333333; line-h ...
- linux软件管理(六)
[教程主题]:linux软件管理 [1]软件包管理 在系统管理中,软件包的管理是最重要的,是系统管理的基础的基础, 只有我们学会软件包的管理才能谈得上其它的应用. RPM RPM是软件管理程序,提供软 ...
- centos LAMP第一部分-环境搭建 Linux软件删除方式,mysql安装,apache,PHP,apache和php结合,phpinfo页面,ldd命令 第十九节课
centos LAMP第一部分-环境搭建 Linux软件删除方式,mysql安装,apache,PHP,apache和php结合,phpinfo页面,ldd命令 第十九节课 打命令之后可以输入: e ...
- 第五部分 linux 软件安装RPM SRPM与YUM
第五部分 linux 软件安装RPM SRPM与YUM 软件管理员简介 RPM与DPKG两大主流 rpm: redhat centos suse 命令:yum ...
- linux入门基础——linux软件管理RPM
由于linux入门基础是基于CentOS解说的,讲的是CentOS上的软件包管理.ubuntu的软件包管理有这些:ubuntu软件包管理,包管理指南,ubuntu软件包管理. linux软件管理:RP ...
随机推荐
- 关于dom&bom
javascript 有三部分构成,ECMAScript,DOM和BOM,根据宿主(浏览器)的不同,具体的表现形式也不尽相同,ie和其他的浏览器风格迥异. 1. DOM 是 W3C的标准:[所有浏览器 ...
- BUAAOO第二单元总结之电梯问题
---恢复内容开始--- Homework1 傻瓜电梯 程序架构 第一次题目非常简单,思考也非常简单,一部电梯傻瓜调度.将命令入公共的队列,电梯从公共队列中取命令即可,其中只需要使用ArrayBloc ...
- vue-cli title 里面怎动态显示文字
在路由里每个都添加一个meta[{ path:'/login', meta: { title: '登录页面' }, component:'login' }] main.js里面加如下代码: ...
- 判断浏览器大于等于ie9
方便自己查找 <script> (function (window) { var theUA = window.navigator.userAgent.toLowerCase(); if ...
- python模块之_pip_其它
这些模块都是在讲OOP时讲到的. 都是类中内置的. #!/usr/bin/env python # coding:utf-8 from lib.aa import C c1 = C() print(c ...
- JAVA服务cpu占用高排查
最近线上机器偶尔有台cpu达到100%,还居高不下.同样负载的其他机器却正常,我想肯定是代码哪里有问题了 首先我们top看下 可定位到对应占用高的PID 然后=>ps -mp PID -o TH ...
- Tensorflow系列——Saver的用法
摘抄自:https://blog.csdn.net/u011500062/article/details/51728830/ 1.实例 import tensorflow as tf import n ...
- vim 加密(crypt)文本文档
算法 vim7.3版本支持两种加密方式——PKzip算法(已知有缺陷的).Blowfish算法(从7.3版本开始支持).Blowfish2算法(从7.4.399版本开始支持)而vim -x 默认采用P ...
- flashback_scn导出
1.应用场景2.oracle实现该技术的原理理论,及限制3.实操及与scn时间相关的函数查询 一.flashback_scn导出1) OGG同步,对表的数据进行同步,第一次可以完全导出,中途如果由于某 ...
- String对象常量池特性对synchronized对象的影响
一 .什么是String的常量池特性 对于字符串对象有两种创建方法,如下: 直接赋值法: String str1="直接赋值创建字符串"; 创建对象法: String str2=n ...