LINUX.ORG.RU

Сообщения l3ft

 

[Debian] Удалить неустановленный пакет(pi) с зависимостями

Форум — General

Устанавливал lyx с помощью aptitude install lyx
Затем на процессе загрузки отменил (^C)- в результате у пакетов которые должны были поставиться вместе с lyx статус pi и эти пакеты есть в /var/cache/apt/archives . Попробывал

 rm /var/cache/apt/archives/lyx_2.0.3-2_i386.deb 
- так теперь у зависимых пакетов статус стал pB. Как мне сбросить статус pi и pB на неустановленный? Желательно не удалять их из кэша, если конечно возможно.

 

l3ft
()

[xl2tpd] Постоянный реконект: сonnection closed

Форум — Desktop

Провайдер дает следующее:

l2tp.mai.ru (217.9.84.139) 
dns: 172.30.4.10

Настройки:
/etc/xl2tpd/xl2tpd.conf

[global]
access control = yes
[lac mai]
lns = l2tp.mai.ru
redial = yes
redial timeout = 10
require chap = yes
require authentication = no
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
require pap = no
autodial = yes
name = 6347

/etc/ppp/options.xl2tpd

unit 0
remotename l2tp
ipparam mai
connect /bin/true
mru 1460
mtu 1460
nodeflate
nobsdcomp
persist
maxfail 0
nopcomp
noaccomp
noauth
defaultroute
name 6347

/etc/ppp/chap-secrets

# Secrets for authentication using CHAP
# client	server	secret			IP addresses
63477 l2tp 12345

/etc/ppp/resolv.conf

nameserver 172.30.4.10

Сразу после загрузки:
netstat -rn

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
217.9.84.171    172.30.16.1     255.255.255.255 UGH       0 0          0 eth0
217.9.84.148    172.30.16.1     255.255.255.255 UGH       0 0          0 eth0
217.9.90.134    172.30.16.1     255.255.255.255 UGH       0 0          0 eth0
172.30.4.0      172.30.16.1     255.255.255.0   UG        0 0          0 eth0
172.30.1.0      172.30.16.1     255.255.255.0   UG        0 0          0 eth0
172.30.0.0      172.30.16.1     255.255.255.0   UG        0 0          0 eth0
172.30.3.0      172.30.16.1     255.255.255.0   UG        0 0          0 eth0
172.30.2.0      172.30.16.1     255.255.255.0   UG        0 0          0 eth0
172.16.64.0     172.30.16.1     255.255.252.0   UG        0 0          0 eth0
172.30.16.0     0.0.0.0         255.255.248.0   U         0 0          0 eth0
192.168.0.0     172.30.16.1     255.255.240.0   UG        0 0          0 eth0
172.16.0.0      172.30.16.1     255.255.0.0     UG        0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 l

sudo xl2tpd -D

xl2tpd[2063]: setsockopt recvref[22]: Protocol not available
xl2tpd[2063]: L2TP kernel support not detected.
xl2tpd[2063]: xl2tpd version xl2tpd-1.2.4 started on darkstar PID:2063
xl2tpd[2063]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[2063]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[2063]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[2063]: Forked again by Xelerance (www.xelerance.com) (C) 2006
xl2tpd[2063]: Listening on IP address 0.0.0.0, port 1701
xl2tpd[2063]: Connecting to host l2tp.mai.ru, port 1701
xl2tpd[2063]: udp_xmit failed with err=-1:Network is unreachable
xl2tpd[2063]: udp_xmit failed with err=-1:Network is unreachable
xl2tpd[2063]: udp_xmit failed with err=-1:Network is unreachable
xl2tpd[2063]: udp_xmit failed with err=-1:Network is unreachable
xl2tpd[2063]: udp_xmit failed with err=-1:Network is unreachable
xl2tpd[2063]: Maximum retries exceeded for tunnel 32947.  Closing.
^Cxl2tpd[2063]: death_handler: Fatal signal 2 received
xl2tpd[2063]: udp_xmit failed with err=-1:Network is unreachable
xl2tpd[2063]: Connection 0 closed to 217.9.84.139, port 1701 (Server closing

Тогда добавляю маршрут: (217.9.84.139 - l2tp.mai.ru , 172.30.16.1 - nameserver из /etc/resolv.conf)

route add -net 217.9.84.139 netmask 255.255.255.255 gw 172.30.16.1

Заново запускаю: sudo xl2tpd -D (полный лог http://paste.org.ru/?no1gqa - идет постоянный реконект

xl2tpd[2075]: setsockopt recvref[22]: Protocol not available
xl2tpd[2075]: L2TP kernel support not detected.
xl2tpd[2075]: xl2tpd version xl2tpd-1.2.4 started on darkstar PID:2075
xl2tpd[2075]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[2075]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[2075]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[2075]: Forked again by Xelerance (www.xelerance.com) (C) 2006
xl2tpd[2075]: Listening on IP address 0.0.0.0, port 1701
xl2tpd[2075]: Connecting to host l2tp.mai.ru, port 1701
xl2tpd[2075]: Connection established to 217.9.84.139, 1701.  Local: 61323, Remote: 61652 (ref=0/0).
xl2tpd[2075]: Calling on tunnel 61323
xl2tpd[2075]: Call established with 217.9.84.139, Local: 17859, Remote: 4117, Serial: 1 (ref=0/0)
xl2tpd[2075]: start_pppd: I'm running: 
xl2tpd[2075]: "/usr/sbin/pppd" 
xl2tpd[2075]: "passive" 
xl2tpd[2075]: "nodetach" 
xl2tpd[2075]: ":" 
xl2tpd[2075]: "name" 
xl2tpd[2075]: "63477" 
xl2tpd[2075]: "debug" 
xl2tpd[2075]: "file" 
xl2tpd[2075]: "/etc/ppp/options.xl2tpd" 
xl2tpd[2075]: "/dev/pts/4" 
xl2tpd[2075]: control_finish: Connection closed to 217.9.84.139, serial 1 (SSS Manager disconnected session)
xl2tpd[2075]: Terminating pppd: sending TERM signal to pid 2078
xl2tpd[2075]: pppd 2078 successfully terminated
xl2tpd[2075]: control_finish: Connection closed to 217.9.84.139, port 1701 (No application/session timer expired), Local: 61323, Remote: 61652
xl2tpd[2075]: Connecting to host l2tp.mai.ru, port 1701
xl2tpd[2075]: Connection established to 217.9.84.139, 1701.  Local: 28005, Remote: 50779 (ref=0/0).
xl2tpd[2075]: Calling on tunnel 28005
xl2tpd[2075]: Call established with 217.9.84.139, Local: 48773, Remote: 43483, Serial: 2 (ref=0/0)
...

/etc/resolv.conf (автоматом получает)

# Generated by dhcpcd from eth0
# /etc/resolv.conf.head can replace this line
domain mai.net
nameserver 172.30.16.1
# /etc/resolv.conf.tail can replace this line

/etc/rc.d/rc.inet1.conf (только измененное)

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]="l2tp.mai.ru"

# Default gateway IP address:
GATEWAY="l2tp.mai.ru"

ifconfig -a

eth0      Link encap:Ethernet  HWaddr 6C:F0:49:02:60:48  
          inet addr:172.30.20.173  Bcast:172.30.23.255  Mask:255.255.248.0
          inet6 addr: fe80::6ef0:49ff:fe02:6048/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18895 errors:0 dropped:55 overruns:0 frame:0
          TX packets:253 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1493159 (1.4 Mb)  TX bytes:20213 (19.7 Kb)
          Interrupt:40 Base address:0xe000 

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:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:200 (200.0 b)  TX bytes:200 (200.0 b

Т.о. локальные ресурсы доступны, сервер пингуется, но идет постоянное переподключение xl2tpd.
Подскажите пожалуйста, что не так и как исправить проблему?

 

l3ft
()

[bash]Разная длина табуляции

Форум — General

Например:
1. Ставим табуляцию после одного символа
2. Делаем то же только после 5 символов

Разница в том, что во втором случае табуляция меньше (по количеству пробелов). Т.е. длина табуляции зависит от количества символов перед ней.
Почему так и зачем? Как фиксировать длину таба?
P.S. табуляцию ставлю так C-v TAB (режимы set -o vi и set -o emacs дело не меняют)

 

l3ft
()

[slackware 13.37] не собирается luakit

Форум — General
# make
Package javascriptcoregtk-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `javascriptcoregtk-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'javascriptcoregtk-1.0' found
config.mk:66: *** Cannot find required libraries to build luakit. Please check you have the above packages installed and try again..  Останов.

luakit с гита.
из пакетов стоят webkit-r61056 и webkitgtk-1.3.4 с слакбилдс
также, pkg-config находит gtk+-2.0 gthread-2.0 webkit-1.0 sqlite3 unique-1.0

find / -name "*javascriptcore*"
нужного не находит
в слакбилде не нашел отключения javascriptcoregtk
в зависимостях luakit: libwebkit (webkit-gtk)
Подскажите пожалуйста, где брать этот javascriptcoregtk?

l3ft
()

[debian]Удалить частично установленный пакет

Форум — General

Из-за одной проблемы с pekwm, решил попробывать откатить gtk c 2.20 на gtk-2.12: Взял пакет от lenny libgtk2.0-0 (сам использую squeeze libgtk2.0-common)
#dpkg -i ./libgtk2.0-0_2.12.12-1~lenny2_i386.deb
Пакет распаковался, но не сконфигурировался(из-за зависимостей)
#dpkg --audit
libgcrypt11 LGPL Crypto library - runtime library
libgtk2.0-0 The GTK+ graphical user interface library
# dpkg -l libgtk2.0-0
удалить[r]/распакован
rU libgtk2.0-0 2.12.12-1~lenny2 The GTK+ graphical user interface library
Задача: с наименьшими потерями удалить gtk 2.12 (libgtk2.0-0), восстановив 2.20 (libgtk2.0-common) и разобраться с aptitude.
Попытки:
# dpkg -r libgtk2.0-0
dpkg: не удалось обработать параметр libgtk2.0-0 (--remove): проблемы зависимостей — не удаляется
полный вывод: http://paste.org.ru/?6ox8dz
aptitude install libgtk2.0-common
Следующие пакеты будут ПЕРЕУСТАНОВЛЕНЫ:
Следующие пакеты имеют неудовлетворённые зависимости:
Удалить следующие пакеты: (наверное все gtk приложения)
Принять данное решение? [Y/n/q/?]
Полный вывод: http://paste.org.ru/?fwsb7n

Подскажите как мне решить вышепоставленную задачу.

 

l3ft
()

Общий home каталог для двух пользователей

Форум — Desktop

Настроил multiseat через xephyr для двух пользователей. Также создал двух пользователей /home/user1 и /home/user2. (Т. к. под одним пользователем через gdm не войти с двух seat'ов) Как сделать, чтобы у user2 были настройки такие же как и user1? (не рассматривая программы типа firefox'a, которые требуют профили) Пока просто скопировал настройки с /home/user1 в /home/user2. Меня это не устраивает, тем, что приходится периодически синхронизировать их. Может можно использовать один /home каталог двумя юзерами? Как?

l3ft
()

RSS подписка на новые темы