https://wiki.archlinux.org/api.php?action=feedcontributions&user=Ality&feedformat=atomArchWiki - User contributions [en]2024-03-28T12:47:59ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=User:Ality&diff=14457User:Ality2006-07-30T03:34:55Z<p>Ality: </p>
<hr />
<div>'''Contact'''<br />
* Mail: ality [at] 10kloc [dot] org<br />
* IRC: ality - (Freenode|OFTC)</div>Alityhttps://wiki.archlinux.org/index.php?title=Mouse_acceleration&diff=11916Mouse acceleration2006-04-21T04:54:34Z<p>Ality: removed spam, Spammer: Procyan</p>
<hr />
<div>[[Category:Hardware]]<br />
[[Category:XServer]]<br />
====Q: How do I set the mouse speed under X windows?====<br />
<b>A: </b>If you want to set your mouse speed in X, you have to use the '''xset''' command. Your mouse speed is controlled by acceleration and threshold levels. The command synopsis is <code>xset m acceleration threshold</code>.<br />
<br />
For example:<br />
<pre><br />
xset m 4 1<br />
</pre><br />
<br><br />
''Acceleration'' defines how many times faster the cursor will move than the default speed, when the cursor moves more than ''threshold'' pixels in a short time. ''Acceleration'' can be a fraction, so if you want to slow down the mouse you can use 1/2, and if 3 is slightly too fast, but 2 is too slow, you can use 5/2. You effectively disable the threshold by setting it to 1, that way the cursor will always move the same speed. To get the default settings back, type <code>xset m default</code>. You can add the xset command to your ~/.xinitrc to get the desired mouse speed every time X starts.<br />
<br />
For more info see <code>man xset</code>.</div>Alityhttps://wiki.archlinux.org/index.php?title=Smart_Common_Input_Method&diff=11914Smart Common Input Method2006-04-21T02:04:14Z<p>Ality: removed spam, Spammer: Procyan</p>
<hr />
<div>[[Category:Internationalisation]]<br />
<br />
{{stub}}<br />
<br />
= About SCIM =<br />
Su Zhe (or James Su)-who at that time worked for TurboLinux- started this project about 2001 with the goal:<br />
* Act as an unified frontend for current available input method libraries. Currently bindings to uim and m17n library are available.<br />
* Act as a language engine of IIIMF input method framework (TBD).<br />
* Provide as many native IMEngines as possible.<br />
* Support as many input method protocol/interface as possible.<br />
* Support as many operating systems as possible.<br />
<br />
By now, the SCIM project has already achieved a lot of features:<br />
* Fully Object Oriented structure written in C++.<br />
* Highly modularized.<br />
* Very flexible architecture, can be used as a dynamically loaded library as well as a C/S input method environment.<br />
* Simple programming interface.<br />
* Fully i18n support with UCS-4/UTF-8 encoding.<br />
* Include many handy utility functions to speedup the development.<br />
* GUI Panel with very rich features.<br />
* Unified configuration framework.<br />
<br />
= Installing SCIM =<br />
pacman -S scim<br />
== Installing Input Method Engines ==<br />
Currently the SCIM project has a wide range of input methods (some may need other libraries), covering more than 30 languages, including (Simplified/Traditional) Chinese, Japanese, Korean and many European languages.<br />
Chinese Smart PinYin:<br />
pacman -S scim-pinyin<br />
Chinese WuBi or other tables based:<br />
pacman -S scim-tables<br />
Japanese:<br />
pacman -S scim-anthy<br />
<br />
= Configure SCIM =<br />
MISSIN</div>Alityhttps://wiki.archlinux.org/index.php?title=Dvdbackup&diff=11912Dvdbackup2006-04-21T02:02:17Z<p>Ality: removed spam, Spammer: Procyan</p>
<hr />
<div>[[Category:CD/DVD]]<br />
I found the original information posted here rather inadequate. Instead of destroying the information, in case it still proves useful to some people, I'll preserve it here under the "Older Method" section.<br />
<br />
=Elegant Method=<br />
==Introduction==<br />
While dual layer DVD recorders are readily available and inexpensive, dual layer media is still not very easy on the wallet. Even if it were affordable, there are some of us who would prefer to simply make a backup copy of a movie, and not all the extra features that nobody watches more than once.<br />
<br />
There are several ways to get what you want done, and many of them are slow, and require several steps to accomplish. Here's a simpler method using dvdbackup and dvdauthor, which can be both be found in the AUR. We will also be using mkisofs (found in the cdrtools package), and growisofs.<br />
<br />
==Making a Backup==<br />
The dvdbackup program is elegant because it doesn't have to demultiplex, remultiplex, re-encode, or reformat the movie. This means the backup process is done in one step. The only time to not use this method is for longer movies (greater than 2 or 2.5 hours ... anything that won't fit on a single layer DVD). In those cases, have a look at the Long Method below.<br />
<br />
Anyway, let's determine which title to backup. Here's the command to retrieve some information from your DVD. Replace /dev/hdc with the proper drive, of course.<br />
dvdbackup -i/dev/hdc -I<br />
<br />
After some less useful information, dvdbackup will show something like this:<br />
<pre><br />
Main feature:<br />
Title set containing the main feature is 1<br />
The aspect ratio of the main feature is 16:9<br />
The main feature has 1 angle(s)<br />
The main feature has 1 audio_track(s)<br />
The main feature has 2 subpicture channel(s)<br />
The main feature has a maximum of 28 chapter(s) in on of it's titles<br />
The main feature has a maximum of 6 audio channel(s) in on of it's titles<br />
</pre><br />
<br />
What we're concerned with is that the main feature is in title set 1. Next we'll see a list of title sets:<br />
<pre><br />
Title Sets:<br />
<br />
Title set 1<br />
The aspect ratio of title set 1 is 16:9<br />
Title set 1 has 1 angle(s)<br />
Title set 1 has 1 audio_track(s)<br />
Title set 1 has 2 subpicture channel(s)<br />
<br />
Titles included in title set 1 is/are<br />
Title 1:<br />
Title 1 has 28 chapter(s)<br />
Title 1 has 6 audio channle(s)<br />
</pre><br />
<br />
Obviously, the main feature is title 1. Sometimes a titleset will include more than one title, sometimes not. Title sets can also include menus, which will no longer work very well if we're not backing up the entire DVD.<br />
<br />
Now to rip the DVD! We're using the drive /dev/hdc, ripping title 1, and outputting to our home directory.<br />
dvdbackup -i/dev/hdc -t1 -o/home/steve<br />
<br />
dvdbackup reads the name of the DVD and creates a directory for it. If dvdbackup decides the name of the DVD is too generic (like MOVIE, for instance), you will have to specify a name, as it will refuse to run otherwise. Just use -nMYMOVIENAME to specify.<br />
<br />
==Creating IFO and BUP Files==<br />
If you know much about DVDs, you'll notice that we only have a number of VOB files on our hard drive, and that's not enough to burn a copy! This is where dvdauthor comes in.<br />
<br />
First, we need to create a working directory. Then we're going to the directory that contains the VOB files. Be aware that this command is going to make a copy of the entire movie. The original can be deleted right afterwards.<br />
mkdir /home/steve/dvd<br />
cd /home/steve/MYMOVIENAME/VIDEO_TS<br />
dvdauthor -o /home/steve/dvd *.VOB<br />
<br />
dvdauthor just created a copy of our movie, and hopefully it worked alright. If it said anything like "SCR moves backwards, remultiplex input." there might be trouble. Before deleting any files, check the file sizes of the original VOB files compared to the copied ones. If they're all roughly the same, you may be OK. You can use mplayer to test the affected VOB file to see if there's anything missing. If so, you may have to go the long route. I haven't backed up many DVDs, but it appears this problem occurs with special features, and hopefully not actual movies.<br />
<br />
Well, now we've built VTS_01_0.IFO and BUP. All we need is VIDEO_TS.IFO and BUP, and we're in business. This part takes much less time, and doesn't waste hard drive space.<br />
cd /home/steve/dvd/VIDEO_TS<br />
dvdauthor -o /home/steve/dvd -T<br />
<br />
Now we can create an ISO image file, or burn straight to DVD.<br />
<br />
==Creating an ISO==<br />
The advantage to creating the ISO file is that you can test that everything works fine with mplayer before continuing. The disadvantage is of course that it takes up hard drive space again.<br />
mkisofs -dvd-video -udf -o dvd.iso dvd/<br />
<br />
To test the image with mplayer, simply:<br />
mplayer dvd:// -dvd-device dvd.iso<br />
<br />
If everything seems ok, we can burn the image. Yes, growisofs burns DVDs.<br />
growisofs -Z /dev/hdc=dvd.iso<br />
<br />
==Burning Straight to DVD==<br />
If we're pretty confident in our skills, we don't need to create and test an image, wasting time and hard drive space! We're basically merging the mkisofs with the growisofs commands listed above.<br />
growisofs -dvd-video -udf -Z /dev/hdc dvd/<br />
<br />
<br />
=Long Method=<br />
This method may be necessary if your movie is too long to fit on a single layer disc and you need to shrink the video file a bit, or if dvdauthor was giving you trouble with the method above. Hopefully, the latter case won't happen often.<br />
<br />
Anyway, all you need is a tool called dvdshrink, which can be found in the AUR. It's a nice perl script with included GTK2 frontend, which utilizes many tools. Unfortunately, it takes many steps to get a burnable copy with this method, which is why it takes longer than dvdbackup. Of course, the advantage is that it can shrink the video file size if needed. I was able to burn a 2h 23m movie without shrinking, even though the discs say they can only hold 120m of video.<br />
<br />
Anyway, run xdvdshrink.pl, the interface is pretty self-explanitory. Click the Configure button to set your DVD drive(s) and specify a working directory with lots of extra space. Save the settings and go back to the main screen. You can "Select from DVD" which title to rip, as well as the audio channel. Each time, the program will scan the DVD and present you with options. The title selection is pretty obvious, as there should be only one long title on there. For the audio selection, simply pick your language. You may also have options for 2 channel or 6 channel audio (stereo or 5.1). It's up to you which one you choose here.<br />
<br />
If you have a DVD reader and a DVD burner, you can leave a blank disc in the burner, and enable "Force DVD burn (no prompt) on the right. If you only have a single DVD drive, just enable "Autoburn new DVD", and when the ripping is complete, the program will prompt you to insert a blank disc and hit enter to continue.<br />
<br />
The other options you should enable are "Remove working files", "Shrink selected title to fit DVD5" if your movie is too long to fit on a single disc, and it's up to you if you want to "Delete logs". "Remove working files" is especially important, since a movie is roughly 4GB, and this process takes several steps, which may result in 12-20GB of usage on your hard drive, depending on what the program has to do.<br />
<br />
Anyway, that should be all. Click "Start copy"!<br />
<br />
=Older Method=<br />
==Introduction==<br />
Making a data DVD is simple. It only involves a single command in most cases. If you need to simply burn data onto a DVD, see the [[DVD_writing|DVD Writing Tutorial]]. However if you want a DVD that you can play in your DVD player, it gets a little more complex. You need to encode the source video, generate the layout of the disc (with menus, titles, chapters, etc), make the filesystem (generate an ISO), and finally burn the ISO. This tutorial will cover only the most basic way of making a video DVD- You place the DVD in your DVD player and a movie plays. You are encouraged to research each step further, as there are countless options and features you can add beyond this. <br />
<br />
<br />
==Encoding Source Video==<br />
If the video you want to burn to a DVD is already encoded to the proper format, then you can skip this step. You will need transcode and mjpegtools to encode the video to the proper format. Note that this only applies to AVI or MPEG files. If you are dealing with wmv, asf, mov, ogm, etc files, then you will need to use mencoder.<br />
<br />
<br />
If you are dealing with another type of file, install mencoder (part of the mplayer package):<br />
<pre><br />
pacman -Sy mplayer<br />
</pre><br />
<br />
For NTSC:<br />
<pre><br />
mencoder -o output_file.avi -ovc lavc -lavcopts vbitrate=5000:vhq -ffourcc DX50 -oac pcm -srate 48000 -ofps 29.97 your_movie.mov<br />
</pre> <br />
<br />
For PAL:<br />
<pre><br />
mencoder -o output_file.avi -ovc lavc -lavcopts vbitrate=5000:vhq -ffourcc DX50 -oac pcm -srate 48000 -ofps 25 your_movie.mov<br />
</pre><br />
<br />
<br />
Now you will have an AVI file that we can convert to DVD compatable video. Continue by installing the tools we will need:<br />
<br />
<pre><br />
pacman -Sy transcode mjpegtools<br />
</pre><br />
<br />
First we separate the audio and video from the source video and encode them to the proper formats using transcode:<br />
<br />
<pre><br />
transcode -i source_video.avi -y ffmpeg --export_prof dvd-ntsc --export_asr 2 -o video -D0 -b224 -N 0x2000 -s2 -m video.ac3 -J modfps=clonetype=3 --export_fps 29.97 <br />
</pre><br />
<br />
'''-i''' is the source video you are working with. Change this to whatever the original file is called.<br />
<br />
'''-o''' is the ouput filename. I'll just call it "video" to make it simple. <br />
<br />
'''-m''' tells transcode to write the audio to a separate file, in this case ''video.ac3''<br />
<br />
'''-export_asr''' is the aspect ratio. '''2''' is 4:3 ratio, and '''3''' is for 16:9 ratio. Change this to whichever one you want. <br />
<br />
<br />
'''NOTE:''' The above command uses the NTSC compatable format. To encode to PAL format, you need to make a few changes:<br />
<br />
''--export_prof dvd-pal''<br />
<br />
''--export_fps 25''<br />
<br />
<br />
This process will probably take some time. An hour long video could take 1-3 hours to encode depending on the speed of your computer. When complete, you will be left with a video.m2v file and video.ac3 file. These are DVD-compliant video and audio files, respectively.<br />
<br />
The next step is to merge these 2 files into one DVD MPEG file using '''mplex''', part of the mjpegtools package. <br />
<br />
<pre><br />
mplex -f 8 -o video.mpg video.m2v video.ac3 <br />
</pre><br />
<br />
Now is a good time to test the video.mpg file in your video player of choice, such as ''mplayer'' or ''xine''. If everything appears ok, then you can continue to the next step. <br />
<br />
<br />
==Create DVD Structure==<br />
In order to generate the layout of the DVD from your video files, you will need to use dvdauthor:<br />
<br />
<pre><br />
pacman -Sy dvdauthor<br />
</pre><br />
<br />
You can specify a lot of options via command line, but it is much easier to simply create an XML file with the appropriate options. dvdauthor can do just about anything, but it could get fairly complex and beyond the scope of this tutorial. We just wnat to put a DVD in the drive and have it play our video. The XML file should look like this:<br />
<br />
<pre><br />
<dvdauthor><br />
<vmgm /><br />
<titleset><br />
<titles><br />
<pgc><br />
<vob file="video.mpg" /><br />
</pgc><br />
</titles><br />
</titleset><br />
</dvdauthor><br />
</pre><br />
<br />
You can name this file whatever you want. Let's just assume it is dvd.xml. Next, we will run dvdauthor to generate the structure of the DVD. <br />
<br />
<pre><br />
dvdauthor -o dvd -x dvd.xml<br />
</pre><br />
<br />
'''-o''' is the ouput directory. This can be whatever you please, but make sure the directory doesn't exist prior to running the command.<br />
<br />
'''-x ''' the XML file to load settings from. Change this to whatever you named your XML file.<br />
<br />
After dvdauthor completes doing it's thing, you will have a dvd/ directory in the current directory. These are the files you will want to burn to a DVD in the next step.<br />
<br />
Links with more information regarding the XML file for advanced usage:<br />
<br />
http://dvdauthor.sourceforge.net/doc/ex-title.html<br />
<br />
http://www.tappin.me.uk/Linux/dvd.html#author<br />
<br />
http://gecius.de/linux/dvd.html<br />
<br />
<br />
==Generate the ISO and Burn the DVD==<br />
This can actually be done in one step, but I will go over the 2-step process anyways, just in case you want to distribute an ISO to other people. For this step, we will need two packages; '''dvd+rw-tools''' and '''cdrtools'''<br />
<br />
<pre><br />
pacman -Sy dvd+rw-tools cdrtools<br />
</pre><br />
<br />
First, we make the filesystem using mkisofs, part of the cdrtools package:<br />
<br />
<pre><br />
mkisofs -dvd-video -udf -o dvd.iso dvd/<br />
</pre><br />
<br />
'''-o''' is the output file. Of course, this can be whatever you want.<br />
<br />
'''dvd/''' is the directory generated by dvdauthor. If you used a different directory, of course you will need to change this. <br />
<br />
Next, we use growisofs to burn the DVD:<br />
<br />
<pre><br />
growisofs -Z /dev/hdd=dvd.iso<br />
</pre><br />
<br />
That should be it! Make sure you change the device path to whatever your DVD burner is and specify the correct ISO filename you are using. <br />
<br />
This can actually be done in one step, like I mentioned before, like so:<br />
<br />
<pre><br />
growisofs -dvd-video -udf -Z /dev/hdd dvd/<br />
</pre><br />
<br />
This will skip the ISO step and burn the filesystem directly to the DVD. Change the device name and the directory to fit your needs.<br />
<br />
<br />
==More Information and Links==<br />
<br />
mplayer/mencoder: http://www.mplayerhq.hu/<br />
<br />
dvdauthor: http://dvdauthor.sourceforge.net/<br />
<br />
http://www.tappin.me.uk/Linux/dvd.html<br />
<br />
http://gecius.de/linux/dvd.html<br />
<br />
http://forums.gentoo.org/viewtopic.php?t=117709</div>Alityhttps://wiki.archlinux.org/index.php?title=Arch_Linux_(%E6%AD%A3%E9%AB%94%E4%B8%AD%E6%96%87)&diff=11911Arch Linux (正體中文)2006-04-21T02:01:18Z<p>Ality: removed spam, Spammer: Procyan</p>
<hr />
<div>{{i18n_links_start}}<br />
{{i18n_entry|Deutsch|ArchLinux (Deutsch)}}<br />
{{i18n_entry|English|ArchLinux}}<br />
{{i18n_entry|Français|ArchLinux (Français)}}<br />
{{i18n_entry|Português do Brasil|ArchLinux_(Portugues_do_Brasil)}}<br />
{{i18n_entry|繁體中文|ArchLinux (繁體中文)}}<br />
{{i18n_entry|简体中文|ArchLinux (简体中文)}}<br />
{{i18n_entry|Русский|ArchLinux (Русский)}}<br />
{{i18n_entry|Slovensky|ArchLinux_(Slovensky)}}<br />
{{i18n_entry|עברית|ArchLinux (עברית)}}<br />
{{i18n_links_end}}<br />
<br />
{{translateme}}<br />
<br />
= 什麼是 Arch Linux? =<br />
<br />
Arch Linux 是個專為 '''i686 微處理器最佳化過的 linux distribution (套件發行版)'''。Arch Linux 一開始是取用 CRUX 的核心思想,CRUX 是一套由 Per Lidén 開發,很棒的 Linux distribution。<br />
<br />
== Arch Linux 的優勢 ==<br />
<br />
Arch 的特點是fast, lightweight, flexible 和 simple (快速,輕巧,可塑性高和簡易)。這幾個形容詞看起來可能一點也不吸引人,但是至少他們都很正確的描寫出 Arch Linux 的特點。因為 Arch 特別針對 i686 微處理器做過最佳化,所以你可得到 CPU 在每個 cycle 內所能提供的最大的效用。與 RedHat 等其他的 Linux 套件發行版相比,Arch 顯得輕巧多了,同時 Arch 的簡單設計 (simple design) 也讓使用者可以輕易的幫他擴展功能並把他塑造為符合您的需求的系統。<br />
<br />
== 獨一無二的套件管理模式 ==<br />
<br />
This is backed by an easy-to-use binary package system - [[pacman]] - that allows you to upgrade your entire system with one command. Arch also uses a ports-like package build system (Arch Build System) to make it easy to build packages, which can also be synchronized with one command. Oh yea, and you can rebuild your entire system with one command, too. Everything is done quite simply and transparently.<br />
<br />
== 只取最好的 ==<br />
<br />
Arch Linux strives to maintain the latest stable version of its software. We currently support a fairly streamlined core package set with a growing collection of extra packages made by users and AL developers.<br />
<br />
== 簡單就是美 ==<br />
<br />
In its goal to be simple and lightweight, I've left out the relatively useless portions of a linux system, things like /usr/doc and the info pages. In my own personal experience these are rarely used, and the equivalent information can be obtained from the net if need be. Man pages all the way...<br />
<br />
== 最新的工具與技術 ==<br />
<br />
Arch Linux also strives to use some of the newer features that are available to Linux users, such as Ext3/ReiserFS and udev support. Arch Linux 0.7 (Wombat) uses the 2.6 linux kernel by default, and has support for XFS/JFS.<br />
<br />
== 其他參考資料 ==<br />
<br />
Arch 的官方網站在 http://www.archlinux.org/ 。在官方網站上你也可以找到其他相關資源的連接,例如官方提供的使用者論壇(請注意,這是由使用者自行管理,掛在官方網站下的論壇 - 很多官方開發者並不會直接參與裡面的討論),官方的文件和其他連接。你也可以參閱 [[TheArchWay]] 這一篇文章以獲得更多關於 Arch 與 Arch 背後的哲學思想的資訊。<br />
<br />
== 中文方面的資料 ==<br />
<br />
中文方面的資料目前可分為繁體中文(台灣)和簡體(中國)兩部分。<br />
<br />
繁體中文的部分主要是由 [http://cle.linux.org.tw CLE] 來負責。目前提供的資源有官方 ftp 的 mirror,一個討論區和一個 wiki 來作中文方面得資源整合。<br />
<br />
簡體中文主要是由 [http://www.linuxsir.org Linuxsir] 來負責。目前提供了一個入口網頁作中文資源整合,和一個討論區。</div>Alityhttps://wiki.archlinux.org/index.php?title=IBM_Thinkpad_600E_(2645-CBH)&diff=11910IBM Thinkpad 600E (2645-CBH)2006-04-21T01:59:51Z<p>Ality: removed spam, Spammer: Procyan</p>
<hr />
<div>[[Category:Laptop]]<br />
===To install:===<br />
<br />
Follow usual Arch Linux Guide except for the points below.<br />
The hardest part is the 600E sound card, which is notoriously hard to get working in linux.<br />
<br />
====Audio====<br />
<br />
Firstly the laptop BIOS must be set to Initialize and Quick Boot must be off.<br />
Then run alsaconf, which sould now pick up the sound card and write a new /etc/modprobe.conf.<br />
If hotplug still tries to load cs461x and fails then blacklist it (/etc/hotplug/blacklist).<br />
You can also add the correct driver (snd-cs4236) to the MODULES variable of /etc/rc.conf so that it loads before hotplug starts.<br />
<br />
The thinkpad also behaves differently on reset than it does on power on. The sound card driver may not load on reset.<br />
<br />
Pcmcia''cs appears to trash the sound card driver on boot. You do not really need pcmcia''cs as hotplug should handle all but very old 16bit pcmcia cards. If you really want it then it is possible to stop it from probing certain ports and irq's. Otherwise you can just fix this by reloading the kernel module.<br />
Add this to your /etc/rc.local:<br />
<pre><br />
rmmod snd-cs4236<br />
modprobe snd-cs4236<br />
alsactl restore<br />
</pre><br />
You need to reload the alsa values because the sound card forgets its volume settings.<br />
<br />
====USB====<br />
<br />
The kernel cannot insert the pciehp module for some strange reason.<br />
Skip it by adding it to /etc/hotplug/blacklist<br />
<br />
USB devices can be quite tempremental.<br />
The solution appears to be set pci=noacpi as a kernel argument.<br />
<br />
====Graphics====<br />
<br />
The graphics card is a Neomagic card (driver is '''neomagic''').<br />
To play DVD's you will need to pass an option to the driver.<br />
Set the following in /etc/X11/xorg.conf:<br />
<pre><br />
Option "OverlayMem" "829440"<br />
</pre><br />
This only works with a display depth of 16bit as there is not enough video RAM for 32bit depth.<br />
The LCD screen is capable of 1024x768.<br />
<br />
====Software====<br />
<br />
There is a package called '''thinkpad''' that installs a number of modules specific to thinkpads.<br />
A related packege called '''tpctl''' supplies a configuration program that allows you to change thinkpad specific stuff. To get it working you need to create the thinkpad devices in /dev.<br />
<br />
====ACPI and APM====<br />
<br />
Both ACPI and APM work in this machine without any big problems. The stock Arch Linux kernel26 comes with ACPI so just use that.</div>Alityhttps://wiki.archlinux.org/index.php?title=Making_a_Custom_Package_CD&diff=11909Making a Custom Package CD2006-04-21T01:58:53Z<p>Ality: removed spam, Spammer: Procyan</p>
<hr />
<div>[[Category:Package Management]]<br />
If you wish to copy some packages from one Arch Linux computer to another (for example, with a slow Internet connection) by using a custom CD, do the following:<br />
<br />
* Create a repository of packages using gensync [[Custom local repository with ABS and gensync]]. Copy the packages from <code>/var/cache/pacman/pkg</code> on the updated Arch Linux system.<br />
<br />
* Create an iso of the repository on a CD-R or CD-RW<br />
<br />
* Mount the CD on the second Arch Linux computer<br />
<br />
* Add a custom repository to <code>/etc/pacman.conf</code>:<br />
<pre><br />
[[mycd]]<br />
Server = file:///mnt/cd/pkg<br />
</pre><br />
<br />
Another option is to simply copy the files from the CD into <code>/var/cache/pacman/pkg</code> on the second computer. Pacman will retreive the packages from there instead of the net if the files are up to date.<br />
<br />
Yet another option is to create a custom install CD as in http://bbs.archlinux.org/viewtopic.php?t=1387</div>Alityhttps://wiki.archlinux.org/index.php?title=Startup_files&diff=11908Startup files2006-04-21T01:58:01Z<p>Ality: removed spam, Spammer: Procyan</p>
<hr />
<div>== If you want to startup your computer to a DM(Desktop Manger. Like XDM, GDM, Entrance) or to a shell ==<br />
<br />
open /etc/inittab<br />
<br />
change the last line in the file to the DM of your choice.<br />
<br />
examples:<br />
<pre><br />
x:5:respawn:/opt/e17/sbin/entranced -nodaemon<br />
x:5:respawn:/opt/gnome/sbin/gdm -nodaemon<br />
x:5:respawn:/usr/X11R6/bin/xdm -nodaemon<br />
</pre><br />
<br />
Then you can set the first line in inittab to 5 to startup a DE as default or 3 to startup a shell(usually /bin/bash, you can set it by using chsh) as default.<br />
<br />
example:<br />
<pre><br />
id:5:initdefault:<br />
</pre><br />
<br />
You can also specify this one on GRUB cmd-line when you bootup by adding 'init single' (to not load any modules) 'init 3' or 'init 5'.<br />
<br />
== After INIT X on startup ==<br />
''explanation'': after you see INIT 3 (or5) when you startup your computer but before you have logged in: this file /etc/rc.local executes.<br />
<br />
== When /bin/bash is being used (through xterm or as login shell etc..) ==<br />
~/.bashrc executes and set's all the ENVIRONMENT VARIABLES for itself. You can put whatever you want here if you want it to startup each time you open an xterm etc.<br />
<br />
== if you run startx or xinit ==<br />
~/.xinitrc executes<br />
<br />
== XDM ==<br />
From the xdm man page:<br />
<pre><br />
First, the xdm configuration file should be set up. Make a directory<br />
(usually /usr/X11R6/lib/X11/xdm) to contain all of the relevant files.<br />
<br />
Here is a reasonable configuration file, which could be named xdm-con-<br />
fig:<br />
<br />
DisplayManager.servers: /usr/X11R6/lib/X11/xdm/Xservers<br />
DisplayManager.errorLogFile: /var/log/xdm.log<br />
DisplayManager*resources: /usr/X11R6/lib/X11/xdm/Xresources<br />
DisplayManager*startup: /usr/X11R6/lib/X11/xdm/Xstartup<br />
DisplayManager*session: /usr/X11R6/lib/X11/xdm/Xsession<br />
DisplayManager.pidFile: /usr/X11R6/lib/X11/xdm/xdm-pid<br />
DisplayManager._0.authorize: true<br />
DisplayManager*authorize: false<br />
<br />
Note that this file mostly contains references to other files. Note<br />
also that some of the resources are specified with ``*'' separating the<br />
components. These resources can be made unique for each different dis-<br />
play, by replacing the ``*'' with the display-name, but normally this<br />
is not very useful. See the Resources section for a complete discus-<br />
sion.<br />
</pre><br />
<br />
Note that these can also be in ~/.Xstartup and ~/.Xresources<br />
<br />
== DE startup files ==<br />
''explanation'': when you launch a DE, these files startup things for you.<br><br />
<br />
=== XFCE, GNOME, KDE ===<br />
~/Desktop/Autostart/*<br />
=== KDE ===<br />
~/.kde/Autostart<br />
=== Fluxbox === <br />
~/.fluxbox/startup<br />
<br />
== Arch Specific ==<br />
/etc/rc.conf: Among other things executes modules and the daemons(scripts) inside /etc/rc.d/ at bootup before you have logged in<br><br />
/etc/rc.d/* - configured deamons for the system.<br />
<br />
== Notes ==<br />
make sure the various startup files have execute permissions for your user. here's an example.<br />
<pre><br />
chmod a+rwx name-of-startup-file<br />
</pre></div>Alityhttps://wiki.archlinux.org/index.php?title=Quick_Arch_Linux_Install_(Slovensk%C3%BD)&diff=11907Quick Arch Linux Install (Slovenský)2006-04-21T01:56:36Z<p>Ality: removed spam, Spammer: Sh0t</p>
<hr />
<div>[[Category:Installation]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Quick Archlinux Install}}<br />
{{i18n_entry|繁體中文|Archlinux 快速安裝教學}}<br />
{{i18n_entry|Slovak|Rýchla inštalácia Archlinuxu}}<br />
{{i18n_links_end}}<br />
<br />
Tento dokument vás prevedie základnou inštaláciou Archlinuxu. Je založený na inštalačných skriptoch verzie 0.6 (widget).<br />
<br />
== Úvod==<br />
<br />
Toto je rýchle prevedenie inštaláciou pre tých, ktorí ešte nevedia čo je to Arch a čo všetko dokáže. Je napísané hlavne pre tých, ktorí už majú na svojom harddisku existujúcu partíciu Windowsu a chcú si nainštalovať Arch linux bez narušenia inštalácie Windowsu.<br />
<br />
Tento sprievodca je pre "normálny" hardware, nič špeciálneho (ako napr. scsi) nie je v tomto dokumente obsiahnuté.<br />
<br />
Predpokladá sa, že Windows existuje na prvej partícii harddisku, inak ho grub nebude vedieť nájsť.<br />
<br />
== Nevyhnutné veci==<br />
<br />
* CD so základnou inštaláciou Archlinuxu (Base-Installation-CD) alebo CD s plnou inštaláciou (Full-Installation-CD). {{sn|Stiahnite si [http://www.archlinux.org/download.php odtiaľ]}}<br />
* Buď jeden voľný harddisk alebo voľné miesto na jednej partícii. Toto voľné miesto musíte oddeliť od existujúcej partície vo windowse s nástrojmi na úpravu partícií (ako napr. partition magic).<br />
<br />
== Inštalácia z Arch-CD ==<br />
<br />
* Vložte CD do vašej mechaniky, reštartujte a skontrolujte, či váš BIOS bootuje najprv z CD-ROM mechaniky.<br />
* Teraz by to malo vyzerať takto:<br />
<br />
http://home.arcor.de/Langeland/1.png<br />
Východzia bootovacia obrazovka Archu<br />
<br />
* Stlačte <code>Enter</code><br />
* Po skončení bootovacieho procesu, napíšte:<br />
<pre><br />
/arch/setup<br />
</pre><br />
<br />
Najprv budete inštalovať z CD, takže sieťové ovládače nie sú nutné.<br />
<br />
Objaví sa Hlavné Menu:<br />
<br />
http://home.arcor.de/Langeland/6.png <br />
Hlavné Menu<br />
<br />
=== Vytvoriť partície na harddisku===<br />
<br />
Ak máte úplne prázdny harddisk, môžete tieto kroky preskočiť a zvoliť Auto-Partitioning. Prosím majte na pamäti, že týmto vymažete všetky partície z vášho harddisku! Ak niektoré partície chcete ponechať na vašom harddisku, postupujte podľa nasledujúcich krokov:<br />
<br />
* Zvoľte Prepare Hard-Drive.<br />
* Vyberte Partition Hard-Drive.<br />
* Zvoľte the Disc you want Arch-Linux to be installed on.<br />
* Otvorí sa cfdisk-program na úpravu partícií a môžete vytvoriť partície. U základnej inštalácie Archu (Base-Installation) sú potrebné aspoň dve partície:<br />
* jedna swap partícia<br />
* jedna dátová partícia<br />
<br />
* V tomto okamihu displej môže vyzerať asi takto (ak máte ntfs-partíciu pre windows):<br />
<br />
http://home.arcor.de/Langeland/9.png <br />
cfdisk<br />
<br />
* Nijakým spôsobom sa nedotknite ntfs (alebo vfat) partície, lebo inak môžete stratiť Windows.<br />
* Typ swap partície by sa mal nastaviť zadaním typu partície 82<br />
* Ak chcete opustiť cfdisk bez uloženia zmien, tak stlačte quit, inak stlačte write.<br />
* Po použití cfdisk-u by to malo vyzerať takto:<br />
<br />
http://home.arcor.de/Langeland/10.png <br />
Usporiadanie partícií<br />
<br />
=== Nastaviť body pripojenia===<br />
* Zvoľte bod 3: Set Filesystem Mountpoints<br />
* Zvoľte partíciu ktorú ste označili ako swap<br />
* Zvoľte tú druhú partíciu pre systém (ktorá bude pripojená ako /)<br />
* Zvoľte systém súborov ext3<br />
* Zvoľte DONE !!<br />
''Tento posledný krok je veľmi dôležitý, mnoho ľudí tento krok vynechá, ale žiadna činnosť sa nevykoná, kým nezvolíte DONE - ak to neurobíte, bude sa zdať že inštalácia funguje, ale žiadne súbory sa nenainštalujú''<br />
<br />
=== Vybrať balíčky===<br />
<br />
* Zvoľte CD<br />
* Teraz by to malo vyzerať takto:<br />
<br />
http://home.arcor.de/Langeland/11.png <br />
Kategórie balíčkov<br />
<br />
* Nateraz by ste si mali vybrať len základné (base) a editory (editors).<br />
* Zrejme chcete zvoliť všetky balíčky v daných kategóriách ako východzie<br />
* Len stlačte OK.<br />
<br />
=== Inštalovať balíčky===<br />
<br />
* Toto je dosť jednoduché: Stačí stlačiť install packages, potom ok a všetko sa skopíruje z CD na harddisk.<br />
<br />
=== Inštalovať jadro===<br />
<br />
* Pokiaľ viete, že nemáte iný hardware, vyberte 2.6 IDE.<br />
<br />
=== Upraviť konfiguračné súbory===<br />
<br />
* Vyberte nano na úpravu súborov<br />
Ak chcete zmeniť layout klávesnice, '''musíte upraviť súbor rc.conf'''. Napríklad sk je slovenská.<br />
<br />
* nano je ľahké na pochopenie: Ctrl-o uloží súbor, Ctrl-x uloží súbor a opustí nano.<br />
* Zmeňte riadok s <code >keymap us</code > na <code>keymap sk</code><br />
''' Musíte upraviť '''menu.lst*.<br />
* Tu môžete vytvoriť váš bootloader. V ňom môžete prepínať medzi windowsom a linuxom.<br />
* Uvidíte súbor ako je tento:<br />
<br />
http://home.arcor.de/Langeland/13.png <br />
Menu.lst<br />
<br />
* Všetko by malo byť nastavené správne na bootovanie do archu, už len stačí pridať nasledujúce riadky na koniec, aby ste mali možnosť bootovať windows:<br />
<pre><br />
title Windows<br />
rootnoverify (hd0,0)<br />
chainloader +1<br />
</pre><br />
<br />
Stlačte Ctrl-O, Ctrl-X a všetko je uložené.<br />
<br />
=== Inštalovať bootloader===<br />
<br />
* Zvoľte grub.<br />
* Vyberte položku na vrchu zoznamu.<br />
<br />
=== Pripravený reštartovať===<br />
<br />
* Opustite hlavné menu, napíšte reboot a počítač by mal reštartovať.<br />
* Vyberte CD von z mechaniky.<br />
* Môžete si vybrať medzi windowsom a archom, prednastavený je arch.<br />
<br />
== Alternatívne metódy inštalácie==<br />
* [[Fast Arch Install from existing Linux System]]<br />
* [http://www.archlinux.org/docs/en/guide/install/arch-install-guide.html The Official Arch Linux Installation Guide]<br />
<br />
== Prvé kroky v Archu==<br />
<br />
* Prihláste sa ako root.<br />
* Vykonajte príkaz <code >passwd</code > aby ste nastavili pre roota heslo.<br />
<pre><br />
# passwd<br />
</pre><br />
* Pridajte používateľa. Môžete využiť skript adduser. Váš používateľ by mal byť v skupinách users, audio a optical.<br />
<pre><br />
# adduser<br />
</pre><br />
<br />
Teraz je čas spojazdniť váš internet a začať inštalovať balíčky s Pacman-om.<br />
Užite si!</div>Alityhttps://wiki.archlinux.org/index.php?title=USB_MIDI_keyboards&diff=11888USB MIDI keyboards2006-04-20T15:12:04Z<p>Ality: removed spam</p>
<hr />
<div>[[Category:Audio/Video]]<br />
[[Category:Hardware]]<br />
<br />
==USB Midi Keyboards==<br />
<br />
This how-to assumes that you are using a 2.6 kernel and ALSA. Known to work using this how-to is the Evolution MK-631 USB midi keyboard with SB Live! Value card. Execute these instructions as an unprivileged user unless otherwise noted.<br />
<br />
==Preliminary Testing==<br />
<br />
===USB===<br />
<br />
First let us make sure that USB is working properly. When you type <code>lsmod</code> you should see some modules such as <code>ehci, uhci</code> or such. Also, when you type <code>lsusb</code> you should see something like:<br />
<pre><br />
Bus 004 Device 001: ID 0000:0000<br />
Bus 003 Device 001: ID 0000:0000<br />
Bus 002 Device 001: ID 0000:0000<br />
Bus 001 Device 001: ID 0000:0000<br />
</pre><br />
This list might contain some USB devices if you have them plugged in or more or less items, depending on how many USB ports you have.<br />
<br />
===ALSA===<br />
<br />
You should have ALSA set-up properly (<code>alsa-lib</code> and <code>alsa-utils</code> packages). When you type <code>lsmod | grep snd</code> you should see a bunch of various <code>snd</code> drivers. <br />
<br />
Try typing <code>aseqdump</code>. If you get an error stating that "aseqdump cannot find /dev/snd/seq" or similar, you might not have the <code>snd-seq</code> module loaded. To rectify that, type (as root) <code>modprobe snd-seq</code>. You might also want to add (again as root) <code>snd-seq</code> to your <code>/etc/rc.conf</code> file in the <code>modules</code> list. If the module is succesfully loaded, typing <code>aseqdump</code> should show something like:<br />
<pre><br />
Waiting for data at port 128:0. Press Ctrl+C to end.<br />
Source_ Event_________________ Ch _Data__<br />
</pre><br />
Not much will show up there, so press Ctrl+C to quit the program.<br />
<br />
==Plugging the keyboard==<br />
Now plug the keyboard in and turn it on. The keyboard should power up. Output of <code>lsusb</code> should contain:<br />
<pre><br />
Bus 002 Device 002: ID 0a4d:00a0 Evolution Electronics, Ltd<br />
</pre><br />
<br />
Output of <code>lsmod | grep usb</code> should contain the following modules:<br />
<pre><br />
usb_midi 25348 0<br />
snd_usb_audio 70592 0<br />
snd_usb_lib 16640 1 snd_usb_audio<br />
</pre><br />
<br />
Now type <code>aconnect -i</code>. The output should contain:<br />
<pre><br />
client 72: 'MK-361 USB MIDI keyboard' [type=kernel]<br />
0 'MK-361 USB MIDI keyboard MIDI 1'<br />
</pre><br />
The client number is probably going to be different though. Take note of it.<br />
<br />
==Verifying Events==<br />
Type <code>aseqdump -p ##</code> where you should replace <code>##</code> with the client number of your keyboard. You should see:<br />
<pre><br />
72:0 Active Sensing<br />
</pre><br />
popping out all the time. Pressing a key should produce:<br />
<pre><br />
72:0 Note on 0 65 94<br />
72:0 Note on 0 65 0<br />
</pre><br />
Various other events (turning control knobs, changing channels, etc.) should register in the list. This is a handy way of ensuring that your keyboard is running properly.<br />
<br />
==Playing==<br />
Now type <code>aconnect -o</code> to list the devices listed as ALSA midi outputs. It depends a lot on your sound card. On SB Live! Value, you get the following output:<br />
<pre><br />
client 64: 'EMU10K1 MPU-401 (UART)' [type=kernel]<br />
0 'EMU10K1 MPU-401 (UART)'<br />
client 65: 'Emu10k1 WaveTable' [type=kernel]<br />
0 'Emu10k1 Port 0 '<br />
1 'Emu10k1 Port 1 '<br />
2 'Emu10k1 Port 2 '<br />
3 'Emu10k1 Port 3 '<br />
</pre><br />
Here client 65 is the actual MIDI synthesizer. Assuming the soundcard is [[SB Live! Midi|set up]] properly, you should be able to '''route''' the output of the keyboard to the MIDI synthesizer. Assuming ''out'' is the output client number (65 in our example) and ''in'' is the input client number (72 in our example), type <code>aconnect ''out'' ''in''</code>. Now you can play your keyboard via the MIDI output of your sound card.</div>Alityhttps://wiki.archlinux.org/index.php?title=User:Ality&diff=11753User:Ality2006-04-18T13:46:52Z<p>Ality: </p>
<hr />
<div>http://pbrane.org/img/rand/ality_sm.jpg<br />
__NOTOC__<br />
* This picture was taken when I was really tired.<br />
* And ''yes'', that's a limited edition Apple IIGS signed by Woz :P<br />
<br />
<br />
'''Contact'''<br />
* Mail: ality@pbrane.org<br />
* IRC: ality - (Freenode|OFTC)<br />
* HTTP: [http://pbrane.org pbrane.org]</div>Ality