准备把常用的电脑换成Ubuntu 10.10系统
9391 207
[119 楼] 平面图鸦 [泡菜]
11-3-11 03:38
sudo /etc/init.d/samba restart
对了,可能这时还有问题,网上查的这个重起命令不能用,在init.d文件夹里就没有samba restart这个文件,所以一直不能重起samba,一会我试下重起电脑,而且也不用samba的启动命令,同样也没有那个启动文件。好象ubuntu10.10和原来的有点不一样。
[118 楼] yejun [老坛泡菜]
11-3-11 03:30
原文由 平面图鸦 在2011-03-11 03:28发表

还是不行,浏览器打不开,显示该页无法显示。[home]下面的 browseable 改成yes。

我在记事本里只改了下工作组,把访问级别设成share,加了以下几句话,别的都没动,可能还是设的不对。

[share]
comment=this is Linux share directory
path=/home/bmmmd/ywwy
public=yes
writable=yes


改完设置你有没有重新启动samba?

对了试一下 \\192.168.0.10\share\

还可以检查一下/var/log/samba下面有没有什么错误。

[yejun 编辑于 2011-03-11 03:33]
[117 楼] 平面图鸦 [泡菜]
11-3-11 03:28
原文由 yejun 在2011-03-11 03:20发表
在win上面直接打开 \\192.168.0.10\ 呢?
[home]下面的 browseable 也可以改成yes。


还是不行,浏览器打不开,显示该页无法显示。[home]下面的 browseable 改成yes。

我在记事本里只改了下工作组,把访问级别设成share,加了以下几句话,别的都没动,可能还是设的不对。

[share]
comment=this is Linux share directory
path=/home/bmmmd/ywwy
public=yes
writable=yes
[116 楼] yejun [老坛泡菜]
11-3-11 03:23
原文由 平面图鸦 在2011-03-11 03:21发表
这是现在从电脑上网络工具看到的,还是127.0.0.0


因为网络设备选的是回环。
[115 楼] 平面图鸦 [泡菜]
11-3-11 03:21
这是现在从电脑上网络工具看到的,还是127.0.0.0
[114 楼] yejun [老坛泡菜]
11-3-11 03:20
在win上面直接打开 \\192.168.0.10\ 呢?
[home]下面的 browseable 也可以改成yes。
[113 楼] 平面图鸦 [泡菜]
11-3-11 03:16
eth0      Link encap:以太网  硬件地址 00:15:58:2c:88:cc  
          inet 地址:192.168.0.10  广播:192.168.0.255  掩码:255.255.255.0
          inet6 地址: fe80::215:58ff:fe2c:88cc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  跃点数:1
          接收数据包:24838 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:20624 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:1000
          接收字节:25785832 (25.7 MB)  发送字节:2876386 (2.8 MB)
          中断:16 Memory:ee000000-ee020000

lo        Link encap:本地环回  
          inet 地址:127.0.0.1  掩码:255.0.0.0
          inet6 地址: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  跃点数:1
          接收数据包:20 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:20 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:0
          接收字节:1200 (1.2 KB)  发送字节:1200 (1.2 KB)

wlan0     Link encap:以太网  硬件地址 00:16:cf:01:f4:df  
          UP BROADCAST MULTICAST  MTU:1500  跃点数:1
          接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:1000
          接收字节:0 (0.0 B)  发送字节:0 (0.0 B)

bmmmd@bmmmd-ThinkPad-T60p:~$
[112 楼] 平面图鸦 [泡菜]
11-3-11 03:14
这是设置samba的1
[111 楼] yejun [老坛泡菜]
11-3-11 03:14
原文由 平面图鸦 在2011-03-11 03:11发表

yejun兄,您也没睡啊,哈哈,那个127.0.0.0地址我完全不明白,改了马上又变回来了。

图片samba看起来很简单,设了两次没成还以为不行呢,就在终端上编缉记事本来设置了,我的图形软件不知和你们的一样不,


下午呢。能不能贴一下你的ifconfig的结果啊。
[110 楼] 平面图鸦 [泡菜]
11-3-11 03:13
和前一张这两张是设服务器端的,不过内容是我编了记事本以后自动生成的
[109 楼] 平面图鸦 [泡菜]
11-3-11 03:11
原文由 yejun 在2011-03-11 02:57发表

你的网卡肯定设错了,127.0.0.0是本地loopback地址。


yejun兄,您也没睡啊,哈哈,那个127.0.0.0地址我完全不明白,改了马上又变回来了。

图片samba看起来很简单,设了两次没成还以为不行呢,就在终端上编缉记事本来设置了,我的图形软件不知和你们的一样不,
[108 楼] Luxul [老坛泡菜]
11-3-11 03:03
原文由 平面图鸦 在2011-03-11 02:48发表
...工作组是LLM...

这个比较欢乐
[107 楼] 平面图鸦 [泡菜]
11-3-11 02:59
还没睡啊,握手ing,图形程序我再想想怎么能和您说清楚呢,一会回贴。
[106 楼] yejun [老坛泡菜]
11-3-11 02:57
原文由 平面图鸦 在2011-03-11 02:48发表
在设samba共享上又出了问题了,WIN机上怎么也看不到ubuntu的共享文件。大家帮我看看哪里出了问题。

WIN机通过路由上网,内网IP是固定的192.168.0.X的,工作组是LLM,WIN机相互间一切正常。
ubuntu机的网卡看见是127.0.0.0,不知和192.168.0.X间能不能共享,还是得也设成192.168.0.X呢?

设置过程看网上按以下设定:
......


你的网卡肯定设错了,127.0.0.0是本地loopback地址。
[105 楼] Luxul [老坛泡菜]
11-3-11 02:55
我没直接动配置文件。
我在Samba的图形界面设的。
添加共享目录,添加账户,在共享的目录添加账户及权限。这个账户如果和Windows平台的账户一样,从Windows访问该不必每次都输入账户和密码。
[104 楼] 平面图鸦 [泡菜]
11-3-11 02:48
在设samba共享上又出了问题了,WIN机上怎么也看不到ubuntu的共享文件。大家帮我看看哪里出了问题。

WIN机通过路由上网,内网IP是固定的192.168.0.X的,工作组是LLM,WIN机相互间一切正常。
ubuntu机的网卡看见是127.0.0.0,不知和192.168.0.X间能不能共享,还是得也设成192.168.0.X呢?

设置过程看网上按以下设定:
1.先增加共享文件夹  mkdir /home/bmmmd/ywwy(用户名是bmmmd,共享文件夹是ywwy)
                  chmod 777 /home/ray/share(这个好象是可读写的操作吧)

2.打开编辑samba记事本:sudo gedit /etc/samba/smb.conf

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
-------------------------------------------
   workgroup = LLM--------------(这地方改成和WIN一样的)------------
-------------------------------------------
# server string is the equivalent of the NT Description field
   server string = smb server (Samba, Ubuntu)    (这个地方也改了下smb)
------------------------------------------
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
#   wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns ※※※※※ = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
;   name resolve order = lmhosts host wins bcast

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 192.168.0.10/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
;   bind interfaces only = yes

#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).
   max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
#   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d

####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
#   security = share------------(这地方改成可任意访问的)-------
    [share]-------------------------------------
    comment=this is Linux share directory-------这一段是网上抄的
    path=/home/bmmmd/ywwy----------------文件路径变成我自
    public=yes-----------------------己,不知是不加在
    writable=yes----------------------这里还是记事本最后
---------------------------------------------
# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
   encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  
   passdb backend = tdbsam

   obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
   unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<[email protected]> for
# sending the correct chat script for the passwd program in Debian Sarge).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
   pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
   map to guest = bad user

########## Domains ###########

# Is this machine able to authenticate users. Both PDC and BDC
# must have this setting enabled. If you are the BDC you must
# change the 'domain master' setting to no
#
;   domain logons = yes
#
# The following setting only takes effect if 'domain logons' is set
# It specifies the location of the user's profile directory
# from the client point of view)
# The following required a [profiles] share to be setup on the
# samba server (see below)
;   logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
#   logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
;   logon drive = H:
#   logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
;   logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe.  The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

# This allows machine accounts to be created on the domain controller via the
# SAMR RPC pipe.  
# The following assumes a "machines" group exists on the system
; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.  
; add group script = /usr/sbin/addgroup --force-badname %g

########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
#   load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
;   printing = cups
;   printcap name = cups

############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
# for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
#   socket options = TCP_NODELAY

# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

# Domain Master specifies Samba to be the Domain Master Browser. If this
# machine will be configured as a BDC (a secondary logon server), you
# must set this to 'no'; otherwise, the default behavior is recommended.
#   domain master = auto

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

# The following was the default behaviour in sarge,
# but samba upstream reverted the default because it might induce
# performance issues in large organizations.
# See Debian bug #368251 for some of the consequences of *not*
# having this setting and smb.conf(5) for details.
;   winbind enum groups = yes
;   winbind enum users = yes

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 (default) means that usershare is disabled.
;   usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
   usershare allow guests = yes

#======================= Share Definitions =======================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home director as \\server\username
;[homes]
;   comment = Home Directories
;   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
;   read only = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
;   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
;   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server. Un-comment the following parameter
# to make sure that only "username" can connect to \\server\username
# The following parameter makes sure that only "username" can connect
#
# This might need tweaking when using external authentication schemes
;   valid users = %S

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes
;   share modes = no

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin

# A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   read only = yes
;   locking = no
;   path = /cdrom
;   guest ok = yes

# The next two parameters show how to auto-mount a CD-ROM when the
# cdrom share is accesed. For this to work /etc/fstab must contain
# an entry like this:
#
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
# is mounted on /cdrom
#
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom

其它地方没动,存了。网卡的地址还是127.0.0.0.在图形samba工具里也看到成功了,但WIN就是看不见这个共享文件夹。

[平面图鸦 编辑于 2011-03-11 02:53]
[103 楼] cy05fyq [泡菜]
11-3-10 11:22
原文由 平面图鸦 在2011-03-10 04:21发表
折腾到现在,虚拟机按yejun和RoR兄说的安装vbox,很顺利的安装成功,股票和网上交易可以在ubuntu上完启动虚拟机来完成,这样,就可以暂时抛开WIN系统而以ubuntu来做为主操作系统了,虚拟机的XP可以作为过渡手段,慢慢了解ubuntu了。


不讲究的话,证券交易软件用WINE安装也可以使!

随机性的问题可能多一点儿!

我几台机子装 下来都不一样
[102 楼] 漫漫旅途 [资深泡菜]
11-3-10 11:01
[101 楼] 漫漫旅途 [资深泡菜]
11-3-10 10:47
其实打不开还好。碰到过能打开,讲到后来发现漏了很多东西,那个汗啊
原文由 yejun 在2011-03-10 00:32发表

不是我排的,在office 2011里找了一个模版。本来是想试试你们说的兼容性问题,oo果然无法正常打开。
[100 楼] cloud976 [泡菜]
11-3-10 10:35
从606开始用U,中间转过一段时间的SUSE,玩游戏也还凑活,有MAME,EPSXE也能玩一阵子了,实在不行还可以wine么。至于写文档,干嘛要用OFFICE,latex多好使
[99 楼] wbt [资深泡菜]
11-3-10 10:04
吃饭了撑着
[98 楼] 设计失控 [资深泡菜]
11-3-10 09:59
原文由 平面图鸦 在2011-03-10 04:29发表

是啊,很赞成这样做,我自己给外面的文档基本是PDF的(印刷厂现在也愿意接PDF的版),自己在电脑上排好了,打印成PDF检查没问题拿出去给别人很放心,起码版面不会因为系统的区别而乱了。本机电脑里还是留原版,以后方便改动。

不过我们这里的顾客还是喜欢用原版,或者对PDF不了解,我接上后得通篇检查,防止版面窜页 ......


我也是平面印刷品设计居多,基本都是indesign排版导出后直接给印刷厂,当然前提是要装可以嵌入的字体'
[97 楼] 平面图鸦 [泡菜]
11-3-10 04:36
原文由 RoR 在2011-03-09 22:42发表
但是不用满世界找注册机,什么绿色免安装啥的不是,用起来放心多了;而且注册机、绿色版啥的大部分带病毒,要是就指着杀毒软件,还是别指望了


深有体会,没有免费的午餐,现在带的私货越来越多,经常在上网搜软件点开下载页面和安装时就中招了,装完以后也是要观察一段时间,看软件有没有问题。
[96 楼] 平面图鸦 [泡菜]
11-3-10 04:29
原文由 Luxul 在2011-03-10 02:08发表
漫漫兄,其实我只是想提倡一下:发给人家的文档,尽量用pdf格式替代Word/Excel的格式。
谢谢交流。

p.s.我不知道中文版的Office这么便宜 -_-"


是啊,很赞成这样做,我自己给外面的文档基本是PDF的(印刷厂现在也愿意接PDF的版),自己在电脑上排好了,打印成PDF检查没问题拿出去给别人很放心,起码版面不会因为系统的区别而乱了。本机电脑里还是留原版,以后方便改动。

不过我们这里的顾客还是喜欢用原版,或者对PDF不了解,我接上后得通篇检查,防止版面窜页,很烦很累的。
[95 楼] 平面图鸦 [泡菜]
11-3-10 04:21
折腾到现在,虚拟机按yejun和RoR兄说的安装vbox,很顺利的安装成功,股票和网上交易可以在ubuntu上完启动虚拟机来完成,这样,就可以暂时抛开WIN系统而以ubuntu来做为主操作系统了,虚拟机的XP可以作为过渡手段,慢慢了解ubuntu了。
[94 楼] Luxul [老坛泡菜]
11-3-10 02:08
漫漫兄,其实我只是想提倡一下:发给人家的文档,尽量用pdf格式替代Word/Excel的格式。
谢谢交流。

原文由 漫漫旅途 在2011-03-09 17:30发表
......


p.s.我不知道中文版的Office这么便宜 -_-"
[93 楼] yejun [老坛泡菜]
11-3-10 00:32
原文由 oldseniu 在2011-03-10 00:28发表

如果是你排地话,兄弟,你powerpoint用地不错,如果不是你排地话。我建议你去试一下,就知道要多费功夫了。


不是我排的,在office 2011里找了一个模版。本来是想试试你们说的兼容性问题,oo果然无法正常打开。
[92 楼] oldseniu [资深泡菜]
11-3-10 00:28
原文由 yejun 在2011-03-09 16:30发表

还是可以排的不错的。

如果是你排地话,兄弟,你powerpoint用地不错,如果不是你排地话。我建议你去试一下,就知道要多费功夫了。
[91 楼] yejun [老坛泡菜]
11-3-10 00:11
原文由 RoR 在2011-03-09 22:42发表
为啥大家一直在这纠缠pdf和ms office呢?根本就是不一样的东西呀,oo用的人越来越多了,一般人用也足够了,不一定非得office,而且oo也可以装在windows里,跟linux关系不大吧;另一方面,如果不是acrobat做的加密pdf,修改起来很容易,最简单的,gimp就能打开pdf然后随便改,别说有些专门改pdf的软件了

没用过vista和7,li ......


gimp导入以后就变成位图了。

贴一张我昨天晚上在vmware player里装的linux。顺便试了一下Libre Office 3.3感觉还是没有达到office 2003的水准。
[yejun 编辑于 2011-03-10 00:15]
[90 楼] RoR [泡菜]
11-3-9 22:42
为啥大家一直在这纠缠pdf和ms office呢?根本就是不一样的东西呀,oo用的人越来越多了,一般人用也足够了,不一定非得office,而且oo也可以装在windows里,跟linux关系不大吧;另一方面,如果不是acrobat做的加密pdf,修改起来很容易,最简单的,gimp就能打开pdf然后随便改,别说有些专门改pdf的软件了

没用过vista和7,linux发行版比xp最爽的地方就是字体渲染,xp的字太丑了!一般家用只要不打游戏linux够用了,改图的话看看gimp也不错,功能是少点,缺点,但是不用满世界找注册机,什么绿色免安装啥的不是,用起来放心多了;而且注册机、绿色版啥的大部分带病毒,要是就指着杀毒软件,还是别指望了

楼下有兄弟说看电影不爽,去medibuntu下codec,mplayer很爽的

linux还有个好处就是用的资源少,真的少

推荐用vbox,很不错,感觉比vmware好用