|
发表于 2021-6-24 09:37:41
24770 浏览 4 回复
ubuntu1404 环境搭建
本帖最后由 星空 于 2022-1-7 11:20 编辑
1 创建用户1 创建用户,建立用户目录,并且建立密码
sudo useradd -d "/home/swcs002" -m -s "/bin/bash" swcs002
sudo passwd swcs002
如果要添加root用户(su root切不过去)
因为最开始linux是有root用户,只是没有密码,所以添加密码就行 sudo passwd root (后面连续2次输入密码)
2 授予某个用户对某个文件夹的读写权限
chown -R name:group /usr/local
name是用户名(所属主、所属用户),group是所属组
sudo chown -R swcs002:swcs002 /sda1/swcs002
3 添加samba 目录
注:这是ubuntu1404自己源码搭建的,和系统安装的目录有所不同
1 创建工作目录
mkdir /sda/swcs002
2 添加映射
sudo vi /usr/local/samba/lib/smb.conf
文件里添加
[sda1-swcs002]
comment=sda1-swcs002
path=/sda1/swcs002
writeable=yes
browseable=yes
public=yes
guest ok=no
create mode=0777
directory mask=0777
read list=swcs002
write list=swcs002
valid users=swcs002
3 添加用户和密码
sudo /usr/local/samba/bin/smbpasswd -a swcs002
4 重启samba服务
sudo /usr/local/samba/sbin/smbd restart
4 挂载磁盘
1 查看磁盘信息
sudo fdisk -l 可以知道哪块磁盘没有挂载
2 临时挂载
sudo mount -t ext4 /dev/sdb /sda1/ /*吧dev/sdb没分配的磁盘挂载到 ,sda1目录下*/
挂载的时候可能报错,如果是新的磁盘要格式化下
sudo mkfs -t ext4 /dev/sdb
df -h 可以查看磁盘挂载信息
3 永久 挂载
查看分区的UUID
sudo blkid
sudo vi /etc/fstab
生成git 吗
git config --global user.name 'cppdy813'
git config --global user.email 'cppdy813@163.com'
ssh-keygen -t rsa -C 'cppdy813@163.com'
cat ~/.ssh/id_rsa.pub
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|
|
|
|
|
|
|
楼主|
发表于 2021-8-3 19:51:51
本帖最后由 星空 于 2021-8-3 21:14 编辑
编译Android环境
- 1、 sudo apt-get update
- 2、 sudo apt-get install -y git gcc lib32stdc++6 gnupg flex bison gperf build-essential zip
- 3、 sudo apt-get install -y curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 g++-multilib mingw32 tofrodos libgl1-mesa-dev python-markdown libxml2-utils xsltproc zlib1g-dev:i386
- 4、 sudo apt-get install libswitch-perl libssl-dev libncurses5 libncurses5-dev jack
复制代码 安装JDK1.7:
- 打开终端, 执行指令
- sudo apt-get install openjdk-7-jdk
- 即可下载安装
复制代码 安装JDK1.8:
- sudo add-apt-repository ppa:openjdk-r/ppa
- sudo apt-get update
- sudo apt-get install openjdk-8-jdk
复制代码
|
|
|
|
|
|
|
|
发表于 2021-12-17 09:48:17
4、 sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so这一句现在不用了吗? |
|
|
|
|
|
|
|
发表于 2021-12-17 09:49:30
本帖最后由 wesee_ldyan 于 2021-12-17 09:52 编辑
sudo apt-get install -y curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 g++-multilib mingw32 tofrodos libgl1-mesa-dev python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version.
curl set to manually installed.
libc6-dev is already the newest version.
libc6-dev set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
g++-multilib : Depends: gcc-multilib (>= 4:4.8.2-1ubuntu6) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
去除了g++-multilib后继续
sudo apt-get install -y curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 mingw32 tofrodos libgl1-mesa-dev python-markdown libxml2-utils xsltproc zlib1g-dev:i386
|
|
|
|
|
|
|
|
对,要先去除g++-multilib,等其他工具装完了,重新执行下:sudo apt-get install g++-multilib
|
|
手机微信同号:13682654092
|
|
|
|
|
登录或注册
|