Добрый день. При установке Arch Vim цветной и вполне симпатичный. Из самой установленной системы он черно-белый. Как вернуть стандартные цвета?
Содержание .vimrc в домашней папке:
“ .vimrc
” See: http://vimdoc.sourceforge.net/htmldoc/options.html for details

“ For multi-byte character support (CJK support, for example):
”set fileencodings=ucs-bom,utf-8,cp936,big5,euc-jp,euc-kr,gb18030,latin1

set tabstop=4 “ Number of spaces that a <Tab> in the file counts for.

set shiftwidth=4 ” Number of spaces to use for each step of (auto)indent.

set expandtab “ Use the appropriate number of spaces to insert a <Tab>.
” Spaces are used in indents with the ‘>’ and ‘<’ commands
“ and when ‘autoindent’ is on. To insert a real tab when
” ‘expandtab’ is on, use CTRL-V <Tab>.

set smarttab “ When on, a <Tab> in front of a line inserts blanks
” according to ‘shiftwidth’. ‘tabstop’ is used in other
“ places. A <BS> will delete a ‘shiftwidth’ worth of space
” at the start of the line.

set showcmd “ Show (partial) command in status line.

set showmatch ” When a bracket is inserted, briefly jump to the matching
“ one. The jump is only done if the match can be seen on the
” screen. The time to show the match can be set with
“ ‘matchtime’.

set hlsearch ” When there is a previous search pattern, highlight all
“ its matches.

set incsearch ” While typing a search command, show immediately where the
“ so far typed pattern matches.

set ignorecase ” Ignore case in search patterns.

set smartcase “ Override the ‘ignorecase’ option if the search pattern
” contains upper case characters.

set backspace=indent,eol,start “ Influences the working of <BS>, <Del>, CTRL-W
” and CTRL-U in Insert mode. This is a list of items,
“ separated by commas. Each item allows a way to backspace
” over something.

set autoindent “ Copy indent from current line when starting a new line
” (typing <CR> in Insert mode or when using the “o” or “O”
“ command).

set smartindent ” Do smart autoindenting when starting a new line. Works
“ for C-like programs, but can also be used for other
” languages.

set textwidth=79 “ Maximum width of text that is being inserted. A longer
” line will be broken after white space to get this width.

set formatoptions=c,q,r,t “ This is a sequence of letters which describes how
” automatic formatting is to be done.

” letter meaning when present in ‘formatoptions’
“ —— —————————————
” c Auto-wrap comments using textwidth, inserting
“ the current comment leader automatically.
” q Allow formatting of comments with “gq”.
“ r Automatically insert the current comment leader
” after hitting <Enter> in Insert mode.
“ t Auto-wrap text using textwidth (does not apply
” to comments)

set ruler “ Show the line and column number of the cursor position,
” separated by a comma.

set background=dark “ When set to ”dark“, Vim will try to use colors that look
” good on a dark background. When set to “light”, Vim will
“ try to use colors that look good on a light background.
” Any other value is illegal.

set mouse=a " Enable the use of the mouse.

filetype plugin indent on
syntax on
Нашел следующую программу в AUR. Изменил md5 и исходники на свежие. В ходе сборки появляется ошибка.

==> Запускается build()...
/tmp/yaourt-tmp-ku/aur-sim-im/sim-im/./PKGBUILD: line 15: cd: /tmp/yaourt-tmp-ku/aur-sim-im/sim-im/src/sim-im-svn20080806: Нет такого файла или каталога
make: admin/Makefile.common: Нет такого файла или каталога
make: *** Нет правила для сборки цели `admin/Makefile.common'.  Останов.
/tmp/yaourt-tmp-ku/aur-sim-im/sim-im/./PKGBUILD: line 17: --prefix=/usr: Нет такого файла или каталога
make: *** Не заданы цели и не найден make-файл.  Останов.
==> ОШИБКА: Сборка завершилась неудачно.
    Преждевременный выход...
Error: Makepkg was unable to build sim-im package.
Собственно сам PKGBUILD:
# Contributer: markuman <[email protected]>;

pkgname=sim-im
pkgver=svn20080806
pkgrel=1
pkgdesc=“sim instant messanger”
arch=('i686' ‘x86_64’)
url="http://sim-im.berlios.de
license=”GPL"
depends=(libxml2 openssl kdelibs zip qt libxslt glibc)
source=( http://download.berlios.de/sim-im/sim-0 … sg.tar.bz2 )
md5sums=(aae36d0ef026ed0041c02f28218705fd)

build() {
cd $startdir/src/$pkgname-$pkgver
make -f admin/Makefile.common
./configure –prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
}
Что нужно дописать в PKGBUILD для успешного окончания сборки?

ps Опыта написания PKGBUILD нет
h4tr3d
вопрос про
1. таблицу роутинга - открыт
2. вывод команды ifconfig на “сервере” - открыт
3. доступность тырнета с ноута - открыт
1. как ее посмотреть, не совсем понимаю, может быть это:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 wlan0
172.22.43.0     *               255.255.255.0   U     202    0        0 eth0
default         n22-43-1.cn.ru  0.0.0.0         UG    202    0        0 eth0
Глянул через archassistant
2.
[[email protected] ~]$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:26:18:79:BD:99  
          inet addr:172.22.43.145  Bcast:172.22.43.255  Mask:255.255.255.0
          inet6 addr: fe80::226:18ff:fe79:bd99/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5427 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1621 errors:0 dropped:0 overruns:0 carrier:2
          collisions:0 txqueuelen:1000 
          RX bytes:1287109 (1.2 Mb)  TX bytes:323103 (315.5 Kb)
          Interrupt:28 
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
wlan0     Link encap:Ethernet  HWaddr 00:25:D3:29:78:70  
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::225:d3ff:fe29:7870/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:137 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:14585 (14.2 Kb)  TX bytes:804 (804.0 b)
          Interrupt:19 Memory:f8000000-f8010000 
[[email protected] ~]$ 
3. Интернет на буке работает, с него и пишу на форум
h4tr3d
А на ноуте дефолтный роутинг куда смотрит? просто у тебя опять выключено gateway.
Прощу прощения, просто эксерементировал по-всякому. Без восклицательного знака - ситуация остается такой же :( Интернета нет, хотя пинг проходить.
void
обновлений системы перед этим не делалось?

А то была недавно новость, об изменениях в настройки wireless-соединения
Никаких не было, вроде
Доброго всем дня. Неделю назад настроил интернет доступ: ноут с arch'ем подключен к интернету, стационарный компьютер обеспечен интернетом через wifi.
Вчера зашел и обнаружил, что интерента нет, хотя есть wifi соединение, компьютеры пингуют друг друга.
[[email protected] ~]$ sudo iwconfig wlan0 mode ad-hoc && sudo iwconfig wlan0 essid mynet && sudo iwconfig wlan0 key s:12345
[[email protected] ~]$ sudo ifconfig wlan0 192.168.0.1 up
[[email protected] ~]$ ping -c 3 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
64 bytes from 192.168.0.2: icmp_seq=1 ttl=128 time=2.15 ms
64 bytes from 192.168.0.2: icmp_seq=2 ttl=128 time=4.53 ms
64 bytes from 192.168.0.2: icmp_seq=3 ttl=128 time=0.689 ms
--- 192.168.0.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.689/2.456/4.531/1.584 ms
[[email protected] ~]$ 
Настройки стационарного компьютера (win) определены так:
ip 192.168.0.2
mask 255.255.255.0
gw 192.168.0.1
rc.conf:
#Static IP example
eth0=“dhcp”
wlan0=“dhcp”

INTERFACES=(lo eth0 wlan0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway=“default gw 192.168.1.1”
ROUTES=(!gateway)
Настройки iptables:
# Generated by iptables-save v1.4.6 on Sun Feb 21 11:22:22 2010
*filter
:INPUT DROP
:FORWARD DROP
:OUTPUT ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -m state –state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -j REJECT –reject-with tcp-reset
-A INPUT -p udp -j REJECT –reject-with icmp-port-unreachable
-A INPUT -j REJECT –reject-with icmp-proto-unreachable
COMMIT
# Completed on Sun Feb 21 11:22:22 2010
# Generated by iptables-save v1.4.6 on Sun Feb 21 11:22:22 2010
*nat
:PREROUTING ACCEPT
:POSTROUTING ACCEPT
:OUTPUT ACCEPT
-A POSTROUTING -o eth0 -j MASQUERADE
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Sun Feb 21 11:22:22 2010

sysctl.conf:
#
# Kernel sysctl configuration
#

# Disable packet forwarding
net.ipv4.ip_forward=1

# Disable the magic-sysrq key (console security issues)
kernel.sysrq = 0

# Enable TCP SYN Cookie Protection
net.ipv4.tcp_syncookies = 1
Все заработало! :) Большое спасибо. Последняя загвоздка была в файле rc.conf - убрал восклицательный знак перед ROUTES=(!gateway)
Теперь настрою таблицы и порядок. Еще раз всем спасибо за помощь :)
Таким образом?:
[[email protected] ku]# iwconfig wlan0 mode ad-hoc
[[email protected] ku]# iwconfig wlan0 essid ad
[[email protected] ku]# iwconfig wlan0 key s:32167
[[email protected] ku]# ifconfig wlan0 192.168.100.1 up
[[email protected] ku]# ping -c 3 192.168.100.1
PING 192.168.100.1 (192.168.100.1) 56(84) bytes of data.
64 bytes from 192.168.100.1: icmp_seq=1 ttl=64 time=0.077 ms
64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=0.059 ms
64 bytes from 192.168.100.1: icmp_seq=3 ttl=64 time=0.058 ms
--- 192.168.100.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.058/0.064/0.077/0.012 ms
[[email protected] ku]# 
На первом компе (стационарном) выставлен ip 192.168.100.1
gw 192.168.100.2
Все получается при выключенном firehol
Вот, что получилось:
[[email protected] ~]$ su
Пароль: 
[[email protected] ku]# iwconfig wlan0 mode ad-hoc
[[email protected] ku]# iwconfig wlan0 essid ad
[[email protected] ku]# iwconfig wlan0 key s:32167
[[email protected] ku]# ifconfig wlan0 169.254.72.44 up
[[email protected] ku]# ping -c 3 169.254.72.44
PING 169.254.72.44 (169.254.72.44) 56(84) bytes of data.
64 bytes from 169.254.72.44: icmp_seq=1 ttl=64 time=0.080 ms
64 bytes from 169.254.72.44: icmp_seq=2 ttl=64 time=0.064 ms
64 bytes from 169.254.72.44: icmp_seq=3 ttl=64 time=0.061 ms
--- 169.254.72.44 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.061/0.068/0.080/0.010 ms

169.254.72.44 - это ip стационарного компа, в настройках windows соединения. Похоже, пинг проходит. С винды - все также проходит без потерь. Теперь загвоздка в том, чтобы перебросить туда интернет…
Собрал ndiswrapper-ice под свое ядро. Установил последние драйвера с atheros.cz. Смотрю беспроводные соединения и… вижу последнее ESSID:“321” ad-hoc - моё, установленное на стационарном компьютере. Еще установил wifi-radar для наглядности. Подробнее:
[[email protected] ~]$ sudo iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 00:06:25:51:D1:BE
                    ESSID:""
                    Protocol:IEEE 802.11b
                    Mode:Managed
                    Frequency:2.412 GHz (Channel 1)
                    Quality:28/100  Signal level:-78 dBm  Noise level:-96 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
          Cell 02 - Address: 00:02:2D:2F:29:1E
                    ESSID:""
                    Protocol:IEEE 802.11b
                    Mode:Managed
                    Frequency:2.412 GHz (Channel 1)
                    Quality:28/100  Signal level:-78 dBm  Noise level:-96 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
          Cell 03 - Address: 00:60:B3:22:77:D1
                    ESSID:"Altay_1"
                    Protocol:IEEE 802.11b
                    Mode:Managed
                    Frequency:2.417 GHz (Channel 2)
                    Quality:25/100  Signal level:-80 dBm  Noise level:-96 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
          Cell 04 - Address: 00:02:2D:B7:21:41
                    ESSID:""
                    Protocol:IEEE 802.11b
                    Mode:Managed
                    Frequency:2.412 GHz (Channel 1)
                    Quality:15/100  Signal level:-86 dBm  Noise level:-96 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
          Cell 05 - Address: 6E:C0:9C:E3:E7:54
                    ESSID:"321"
                    Protocol:IEEE 802.11g
                    Mode:Ad-Hoc
                    Frequency:2.472 GHz (Channel 13)
                    Quality:92/100  Signal level:-37 dBm  Noise level:-96 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
          Cell 06 - Address: 00:22:B0:41:BA:57
                    ESSID:"dlinkhome"
                    Protocol:IEEE 802.11g
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality:6/100  Signal level:-92 dBm  Noise level:-96 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
          Cell 07 - Address: 00:02:CF:AE:79:63
                    ESSID:"976419"
                    Protocol:IEEE 802.11g
                    Mode:Managed
                    Frequency:2.457 GHz (Channel 10)
                    Quality:0/100  Signal level:-100 dBm  Noise level:-96 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
          Cell 08 - Address: AA:C3:84:E3:E7:54
                    ESSID:"321"
                    Protocol:IEEE 802.11g
                    Mode:Ad-Hoc
                    Frequency:2.472 GHz (Channel 13)
                    Quality:73/100  Signal level:-49 dBm  Noise level:-96 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
Что следует сделать дальше?
На буке стоит Atheros AR5007EG
На обычном компьютере D-link DWA 547

Попробовал поставить ndiswrapper, - делаю тест через modprobe - нет такого модуля. Видимо ядро не поддерживает, у меня вся система на reiser4, ядро kernel26-ice 2.6.31-8. Кстати, если попробовать собрать ndiswrapper-ice из AUR… Со стандартным PKGBUILD не собирает. А если пропишу в нем мою версию ядра -
_kernver='2.6.31-ice' вместо _kernver='2.6.29-ice'
будет ли это работать, патч там только для версии 2.6.29 ??? :)
Скопировал систему на свободные два раздела ext4, - со стандартным ядром все встало, тест modprobe прошел. Прописал ndiswrapper в модулях rc.conf
Сейчас попробую способ из ссылки и отпишусь