Tutorials to .com

Tutorials to .com » Os » Ubuntu » Since the definition of self-learning course using the Ubuntu operating system

Since the definition of self-learning course using the Ubuntu operating system

Print View , by: iSee ,Total views: 6 ,Word Count: 2665 ,Date: Fri, 5 Jun 2009 Time: 2:20 AM

Origin:

Responding to the operating system is now more and more large, bloated, and I have insisted for nearly two years using the so-called "Starter Edition" it seems very difficult. Therefore, it appears that it is necessary to find a viable alternative.

Objective:

Find a machine can easily handle Internet e-mail web page, you can finish my day-to-day the most commonly used applications (word processing, electronic watches, writing presentations, download movies, music, video, audio player) ... ... probably on all these.

Implementation:

Chosen a domestic-based ubuntu distribution change Hiweed. Machine at home to install all the normal, that is, the accuracy of feeling of not enough video player. OpenOffice on the M $ Office is not as good as the compatibility of WPS Office2005, in particular the compatibility of presentation. In addition, there is some instability. However, in the company of another machine, they found that in any case can not be realized in a normal installation. Hiweed using Ubuntu because now more popular LiveCD installation, so that the machine's memory, and higher drive requirements. And it is precisely these two machines are not very good. So, after crawling on the network to decide the way to learn about custom installation.

Process:

1, first of all, using the Ubuntu 6.10 installation CD-ROM directly from the drive started, choose to install command line system. In this step, we should pay attention, we do not choose a Chinese language environment, or in a terminal window under a variety of tips, many of whom were Chinese. In the absence of loading prior to the completion of X Window, you can only see a small box, a pile of clutter. I guess the way that is kept off the X Window configuration setup program prompts, but the link in the update to eat a lot of losses.

2, In addition, the manual distribution of the best partition. Is not complicated, it is only a means to partition the logic of a manual distribution into the root zone (/), Usr, Home and exchange area only. During the installation process several times more than on trying to understand. Anyway, the installation of several multi-machine is no big deal, so despite the attempts Well.

3, remove the CD-ROM is installed after the re-start the machine, enter the boot manager, the general is the first direct election of Ubuntu. Select English tips roll long after the screen, and then on the prompt Login:. This time to enter a user name and password to see the $ prompt, even if the completion of the first.

4, the network is similar to the Guide to the implementation of the following command prompt:

sudo vim /etc/apt/sources.list

But I think more people want to be, it will not use VIM. Moreover, the Internet can be found on the Course VI, it is more scary in order to explain the hundreds of pages. In fact, from my own practice, so do not need to exaggerate. To complete the most basic editing, as long as a few familiar with the order, is to use VIM well.

Click on the list here:

Esc: This is a VIM function keys of the universal one, basically any time in accordance with this key, you can return to the general state of VIM.

i: in general, press i to enter "insert" editing status. This time in accordance with the arrow keys to move the cursor, enter the place you want to enter characters, with Del key to delete characters from the last, to the general state of Esc.

yy (yny): in the general state of the cursor with the arrow keys to move to a certain line that you want to copy text, the double-y, is copied in this line. If you want to copy this line n line approach used yny. 5 lines, such as replication, that is, y5y.

p: after copy, move the cursor to where to paste, either by p.

d: and above the relative, according to d is to delete the current row.

x: in the ordinary mode, according to x is to delete the current cursor position of characters, the entire Chinese characters.

: wq!: In normal mode, enter ":" In order to enter the state, in this state, q representatives from, w on behalf of preservation,! representative of mandatory. For example, modified to give up, that is: q!, Is mandatory to preserve from the: wq!.

Well, as simple as that. VIM is a powerful editor of the BT software, and certainly very compact. Unfortunately, to use this software is not easy. I think we have such a person, do not need to come on so many simply do not have access to learning the skills, first on the most basic functions can be used to say. Remember this above 7, VIM can fully use the.

Closer to home, because we have to change / etc / apt / sources.list is because the need to install some necessary software. Ubuntu is an extremely dependent on the network distribution linux. This is good, but in the submarine cable has not fixed today, do not count on the network to update and install to have a good result. But we still have a good install CD, the above there are some basic software can be directly utilized. However, I encountered is that if this "source" list of all the "source" are shielded to retain only a CD, apt-get will always be on the up and down to the network software. So, I was in the above list, the source of the CD in addition to outside sources in front of all the network by adding "#", thus "forcing" system to find the software CD.

5, therefore, to start the installation software

sudo apt-get install x-window-system-core This is the X11.

sudo apt-get install xdm This is the graphical login manager.

sudo apt-get install fluxbox This is the desktop environment, I chose one of the most lightweight.

sudo apt-get install firefox browser installed.

sudo apt-get install synaptic is very important, the new legislation was ah!

sudo apt-get install language-pack-zh language-pack-zh-base install Chinese support for the environment.

sudo apt-get install ttf-arphic-ukai ttf-arphic-uming Chinese fonts installed.

sudo apt-get install fcitx install Chinese input method.

sudo apt-get install im-switch input method manager is installed.

sudo im-switch-s fcitx activate input method.

6, X11 is a need to configure, so sudo dpkg-reconfigure xserver-xorg. Here attention should be paid to the type of graphics cards and monitors and graphics cards can support the maximum resolution. I was a bit strange that the original Ubuntu installation process is automatic identification with the ability of hardware, but it did not here any response, I basically rely on familiarity with the machine and do not see a direct return on, get this. Then, enter the command line in startx, black, into the X! Ha ha ... ...

7, configure fluxbox

Because fluxbox is a lightweight desktop environment, so the desktop is basically a light board. Rather strange is that I am at home when installed, fluxbox menu under What do not have to go to / usr / share / doc / fluxbox directory, the release of a compressed file:

fluxbox-generate_menu.gz
cd /usr/share/doc/fluxbox
sudo gzip -d fluxbox-generate_menu.gz

Then:

tmp='/usr/share/doc/fluxbox/fluxbox-generate_menu'
sudo chmod +x $tmp
sudo ln -s $tmp /usr/bin/local/fluxbox_menu
fluxbox_menu

At this time, will produce a menu file. This tool will automatically scan the system to install the various software, used to generate a fluxbox desktop menu. The key lies in the above operation using the chmod command, a script to perform, we have paid to it "executable" attribute.

However, I am in the company's machines, because the way a network is installed, use apt-get install directly from the source, they found that the installation process automatically pull from the source of a document for Ubuntu from the menu. So the above steps would not have carried out. But then new problems arise: in the menu, the Chinese show no problem, but a lot of English fonts are garbled. So once again ask Aunt Google to find a good solution.

"Apt-src install fluxbox down to untie the directory nls / zh_CN directory, the generated-UTF-8.m file encoding does not, so information will be the last Chinese garbled, but taking into account the Chinese translation of the information was not complete, it will be renumbered in English and Chinese mixed, very ugly, nls option to disable or directly copied from the English will look more comfortable. "specific operation is as follows:

cp /usr/share/fluxbox/nls/C/fluxbox.cat
/usr/share/fluxbox/nls/zh_CN.ISO-8859-1
cp /usr/share/fluxbox/nls/C/fluxbox.cat
/usr/share/fluxbox/nls/zh_CN.UTF-8

8, now have access to the Internet, you can input Chinese characters, but also need a lot of things to work. At least I need to install Openoffice and a set of Freemind, but because the network is too slow, so there is no Openoffice work until after the next (odd, Ubuntu6.10 installation disk should have Openoffice ah, why is not it from the installation CD-ROM ?). And although the installation of Freemind, but encounter problems, the total prompt a bunch of Java-runtime error. I do not know where I had not been installed correctly. This issue seems to need to wait until next week and then resolved.

9, a solution has not been a number of small problems:

In the Xterm Font fluxbox is very small, often Chinese in the above tips into a small box. Press Ctrl + every time out of setting the right mouse button menu, choose large fonts can be used. Found a way to create a new in-under. Xresources of paper save a parameter:

echo "Xft.dpi:96" >> ~/.Xresources

But looks like nothing happens. Another, in the new legislation under fluxbox too, must be under Xterm command with sudo to run, the menu did not respond to direct election, there is no clear how to modify the settings menu.

10, the last point, Google is learning the power of the best to rely on Ubuntu, in the official website of the Chinese Ubuntu forum http://forum.ubuntu.org.cn registered, and then select "search", in which the station with Google Search Wiki and the forum search for their own problems and find solutions to a very high accuracy.

today to start networking to share files, that is, the installation and use of samba.

The first is the installation:

sudo apt-get install samba
sudo apt-get install smbfs

And then the settings:

Create a shared directory, where I made a low-level error, Linux does not take into account in the next, / home directory is not my, so in their own home $ prompt the user to open the shared directory, in fact, is not absolute path / home / share, but / home / tomshi / share. The result is after all set up, it could not enter the directory.

mkdir /home/tomshi/share
chmod 777 /home/tomshi/share
sudo nano /etc/samba/smb.conf (,VIM。)
mkdir /home/tomshi/share
chmod 777 /home/tomshi/share
sudo nano /etc/samba/smb.conf (,VIM。)
mkdir /home/tomshi/share
chmod 777 /home/tomshi/share
sudo nano /etc/samba/smb.conf (,VIM。)

In which the amendments to the following:

security = user (;)
username map = /etc/samba/smbusers()
workgroup = WORKGROUP ()
display charset = UTF-8 ()
Unix charset = UTF-8 ()
dos charset = cp936()
security = user (;)
username map = /etc/samba/smbusers()
workgroup = WORKGROUP ()
display charset = UTF-8 ()
unix charset = UTF-8 ()
dos charset = cp936()
security = user (;)
username map = /etc/samba/smbusers()
workgroup = WORKGROUP ()
display charset = UTF-8 ()
unix charset = UTF-8 ()
dos charset = cp936()

For the new shared directory to add a new configuration item

[Share]
comment = Shared Folder
path = /home/tomshi/share
public = yes
writable = yes
valid users = tomshi
create mask = 0700
directory mask = 0700
force user = tomshi
[Share]
comment = Shared Folder
path = /home/tomshi/share
public = yes
writable = yes
valid users = tomshi
create mask = 0700
directory mask = 0700
force user = tomshi
[Share]
comment = Shared Folder
path = /home/tomshi/share
public = yes
writable = yes
valid users = tomshi
create mask = 0700
directory mask = 0700
force user = tomshi
[Share]
comment = Shared Folder
path = /home/tomshi/share
public = yes
writable = yes
valid users = tomshi
create mask = 0700
directory mask = 0700
force user = tomshi

The original set up here is nobody: nogroup, later found not to share them direct access to the document, it is necessary to chown-R username: groupname * before they can use, then use the user id command to check the properties of their own, directly modify the settings in a good on it.

force group = tomshi
available = yes
browseable = yes
force group = tomshi
available = yes
browseable = yes

Save exit and then the following steps:

sudo smbpasswd -a tomshi
sudo nano /etc/samba/smbusers
sudo smbpasswd -a tomshi
sudo nano /etc/samba/smbusers

Adding: tomshi = "network username" from the post-preservation. In fact, the more secure approach is to increase one can not visit in the local users, remote users log on with this.

sudo smbpasswd-a tomshi (add samba user password) if the network users to delete accounts, will be the order of-a replaced by-x can be.

sudo /etc/init.d/samba restart

Restart the samba service, all OK!

Installation of a direct Lightweight UTF-8 terminal software to replace Xterm:

sudo apt-get install rxvt-unicode

Not set, default characters on the display problem can be solved.

In addition, the installation of a small tool:

sudo apt-get install gksudo

Fluxbox menu and then add menu command) (gksudo will prompt directly on the X under the SU password, so that the new legislation can also be used too.


Ubuntu Articles


Can't Find What You're Looking For?


Rating: Not yet rated

Comments

No comments posted.