主要配置如下:

1.使能root用户登陆



1 、 sudo passwd root, 然后输入密码



2 、系统管理 -> 登陆窗口 ->Security



勾上 Allow local system administrator login



2.网络配置



1 、 VMware 采用 bridged 模式



2 、 ubuntu 采用静态 ip 配置,同 windows 一个网段,找个没人用的 ip 地址



3 、配置代理   Preferences->Network Proxy   ,配置的是你 WINDOWS 的 IP 不是公司的代理( 需要重启生效)



4 、同时需要在 windows 下安装 ccproxy ,如下设置完成后 STOP 、 START






5 、用 firefox 上网需要单独在里面配置代理(这里是公司的代理)



3.升级源



1 
   、 
   gedit /etc/apt/sources.list



把文件内容替换成下面内容,也可以自己上网搜索更快的升级源


deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
 
  
deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
 
  
deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
 
  
deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
 
  
deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse
 
  
deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
 
  
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
 
  
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
 
  
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
 
  
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse
 
  
deb http://archive.ubuntu.com/ubuntu/ hardy multiverse universe


2 
   、 
   apt-get update
 
  
3 
   、 
   apt-get dist-upgrade



 



4.安装中文输入法


sudo apt-get install scim-pinyin
 
  
sudo apt-get install scim-gtk2-immodule scim-qtimm
 
  
sudo apt-get install im-switch
 
  
sudo im-switch -s scim



password,输入就是了 ,不过此时你按键盘屏幕里面是没反应的 ,只管按就可以了 .



5.安装samba



1. 安装Samba:

sudo apt-get install samba


2. 在机器1创建smb帐户文件文件:/ e tc/samba/smbpasswd

# sudo touch /etc/samba/smbpasswd
  # sudo smbpasswd -a user1
  密码:user1


    为了方便,我将user1直接用登陆系统的用户,密码我是设为系统用户的密码。这样不用设置ubuntu8.04中文件夹权限为777 。



3. 在ubuntu下查看局域网中windows系统共享的文件夹:



在“位置”--“网络”--“Windows 网络”中就能看到其它的windows主机和他们共享的文件夹了。



4. 在windows下查看局域网中ubuntu系统共享的文件夹:



备份并编辑smb.conf

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup 
 
  
sudo gedit /etc/samba/smb.conf


在[global]中修改的内容如下:



找到 workgroup = MSHOME 把它改成



代码:



workgroup = workgroup (这里名称可以随便填,当然为了方便别人访问,最好还是填windows下工作组的名称)



doc charset = UTF-8 
 
  
unix charset = UTF-8



后两行是为了防止中文目录乱码。(在ubuntu8.04中会报错不知道是为什么?我没有添加)



; security = user 不用改为security = share 。用用户名和密码登陆吧,安全一些。就是前面设置的系统用户。



5. 在smb.conf最后添加


[ 
   共享文件夹名]
     path = /home/usr1/共享文件夹名
     available = yes 
     browseable = yes
     public = yes
     writable = yes


例如:



[share]
     path = /home/foxwolf/share
     available = yes 
     browseable = yes
     public = yes
     writable = yes


添加你自己想要共享的文件夹即可。



最后一步就是:



重启samba



sudo /etc/init.d/samba restart 
 
  
OK!windows 
   能通过samba访问ubuntu了。还能在windows下更改文件呢!


 



6.安装smbfs, mount到windows



 



sudo apt-get install smbfs



安装配置 samba 的图形界面:可选



sudo apt-get install system-config-samba  
 
  
重启机子
 
  
sudo mount -t smbfs //10.15.1.180/d$ /mnt/windows -o username=hz08527,password=Vxworks6.5



 



7.安装arm-linux-gcc



把压缩文件解压到 /usr/local 下



gedit /etc/profile



增加下面 2 行


export ARM_LINUX_GCC_BIN=/usr/local/arm/2.95.3/bin
 
  
export PATH=$ARM_LINUX_GCC_BIN:$PATH


然后执行 source /etc/profile



 



在 root 登陆下 , 就可以编译了 ( 比较奇怪 , 其他用户似乎其实找不到 arm-linux-gcc)



Make menuconfig  
   时提示下面错误
 
  
 
   
 
 
  
/usr/bin/ld: crt1.o: No such file: No such file or directory
 
  
collect2: ld returned 1 exit status
 
  
-e 
 
  
>> Unable to find the Ncurses libraries.
 
  
>> 
   
 
 
  
>> You must have Ncurses installed in order
 
  
>> to use 'make menuconfig'
 
  
 
   
 
 
  
make[1]: *** [ncurses] Error 1
 
  
make[1]: Leaving directory `/opt/FriendlyARM/SBC2410/vivi/scripts/lxdialog'
 
  
make: *** [menuconfig] Error 2
 
  
 
   
 
 
  
需要安装 
   libncurses5-dev
 
  
apt-get install libncurses5-dev



然后执行 make menuconfig 就可以看到界面了



8.安装Vxworks6.3



1. 安装 vxworks, 跟在 windows 下一样



安装 install_key.txt 的顺序装



2. 设置环境变量



gedit /et c/profile
 
  
export LM_LICENSE_FILE=27000@172.19.97.120;27000@172.19.97.122;27000@172.18.10.170
 
  
保存
 
  
source  /etc/profile
 
  
3.  
   类似于 
   windows 
   下的 
   Vxworks Development Shell
 
  
cd /root/WindRiver
 
  
./wrenv.sh -p vxworks-6.3



4. 打补丁 , 类似于 windows, 进入安装目录



./install.sh



 



5. 安装完就可以运行 workbench 了 ,windows 下的工程文件能直接在 linux 导入 , 编译 ,



         注意 : linux 下区分大小写 , 所以只有改一下 #include 文件名大小写就可以编译了



8.安装zlib-devel



zlib 软件包所包含的库经常被一些软件的压缩或解压缩函数用到,所以如果编译软件时需要 Zlib 则说明这个软件正好含有压缩或解压缩函数,我们需要安装 zlib 软件包。


 



试过 sudo apt-get install zlib ,似乎 Ubuntu 官方源中不含 zlib 软件包,只有到 zlib 官方网站:



http://www.zlib.net



上下载源码来安装 zlib 软件包。



 



目前最新版本 zlib 是 zlib1.2.3 ,安装开始;



$wget http://www.zlib.net/zlib-1.2.3.tar.gz
 
  
$tar -xvzf zlib-1.2.3.tar.gz
 
  
$cd zlib-1.2.3.tar.gz
 
  
$./configure
 
  
$make
 
  
$sudo make install


 



这就完成了 zlib1.2.3 的安装,由于安装 zlib1.2.3 需要编译,所以最基本的编译器是要安装好的。



 



执行 ./ltib



提示错误如下

This means you don't have sudo permission to execute rpm commands as root
 
  
without a password.  This is needed for this build script to operate correctly.
 
  
 
   
 
 
  
To configure this, as root using the command "/usr/sbin/visudo", 
   
 
  
and add the following line in the User privilege section: 
   
 
  
 
   
 
 
  
zcw ALL = NOPASSWD: /usr/bin/rpm, /opt/freescale/ltib/usr/bin/rpm

 



 



9.安装smplayer



apt-get install smplayer
 
  
wget http://www.medibuntu.org/sources.list.d/intrepid.list --output-document=/etc/apt/sources.list.d/medibuntu.list
 
  
apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
 
  
apt-get install w32codecs


转载于:https://blog.51cto.com/243633/285908