LINUX.ORG.RU

Сообщения Busf

 

В консоли MySQL не пишется кириллица, что делать?

В консоли MySQL не пишется кириллица, в ответе на запрос отображается, в терминале пишется и отображается нормально.

 locale
LANG=ru_RU.UTF-8
LANGUAGE=
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=
***********************************************
в Mysql
SHOW VARIABLES LIKE 'char%';
+--------------------------+----------------------------+
| Variable_name            | Value                      |
+--------------------------+----------------------------+
| character_set_client     | utf8                       |
| character_set_connection | utf8                       |
| character_set_database   | utf8                       |
| character_set_filesystem | binary                     |
| character_set_results    | utf8                       |
| character_set_server     | utf8                       |
| character_set_system     | utf8                       |
| character_sets_dir       | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)

 SHOW VARIABLES LIKE 'collation%';
+----------------------+-----------------+
| Variable_name        | Value           |
+----------------------+-----------------+
| collation_connection | utf8_general_ci |
| collation_database   | utf8_general_ci |
| collation_server     | utf8_general_ci |
+----------------------+-----------------+
3 rows in set (0.01 sec)

Пробовал вручную

SET NAMES 'utf8';
SET CHARACTER SET 'utf8';
SET SESSION collation_connection = 'utf8_general_ci';

в результате запроса отображается

ков С.           | 5      | 051051    | 2022-11-26 02:25:32 |         5 | NULL   | NULL  | NULL      | 08ПС    

но запрос написать не могу типа:

select * from tab where name like 'Иванов';

 

Busf
()

rsync долго синхронизирует

Здравствуйте!

Имеется скрипт для резервной копии:

#!/bin/sh

date=`date "+%Y-%m-%d-%H%M%S"`
SRC="/home/source/"               #sdc1 hdd
DST="/home/distance/"             #sdd1 hdd

rsync -a --delete --link-dest=$DST/latest $SRC $DST/proc-$date
cd $DST
mv proc-$date $date
rm -f $DST/latest
ln -s $date $DST/latest

обратил внимание очень долго горит лампочка обращения к диску, расставил echo,

( читать дальше... )

Два-три часа допускаю, но двенадцать кажется перебор. Размер каталога около 130GB. В чем может быть проблема и можно ли что поправить. Предполагаю или с жесткими ссылками тормозит, или все перезаписывает, но объем диска уходит адекватно. Изменений происходит 0.5-1% от объема.

 uname -a
Linux fsu 4.4.0-176-generic #206-Ubuntu SMP Fri Feb 28 05:00:50 UTC 2020 i686 athlon i686 GNU/Linux
ATOP - fsu              2020/04/06  11:08:26              ------              10s elapsed
PRC |  sys    0.07s  |  user   0.00s  |  #proc    158 |  #zombie    0  |  #exit      0  |
CPU |  sys       1%  |  user      0%  |  irq       0% |  idle     98%  |  wait    101%  |
cpu |  sys       0%  |  user      0%  |  irq       0% |  idle     25%  |  cpu001 w 75%  |
cpu |  sys       0%  |  user      0%  |  irq       0% |  idle     74%  |  cpu000 w 26%  |
CPL |  avg1    1.06  |  avg5    1.06  |  avg15   1.07 |  csw     1222  |  intr    1529  |
MEM |  tot     7.1G  |  free    5.9G  |  cache 183.8M |  buff  425.0M  |  slab  295.0M  |
SWP |  tot     2.1G  |  free    2.1G  |               |  vmcom   1.0G  |  vmlim   5.7G  |
DSK |           sdd  |  busy    100%  |  read     962 |  write      4  |  avio 10.3 ms  |
NET |  transport     |  tcpi       2  |  tcpo       2 |  udpi      21  |  udpo       2  |
NET |  network       |  ipi       21  |  ipo        4 |  ipfrw      0  |  deliv     17  |
NET |  enp3s0    0%  |  pcki      33  |  pcko       4 |  si    3 Kbps  |  so    1 Kbps  |

  PID  THR  SYSCPU  USRCPU  VGROW  RGROW  RDDSK  WRDSK ST EXC S CPUNR  CPU CMD        1/1
21379    1   0.02s   0.00s     0K     0K  4060K     0K --   - D     1   0% rsync
 1234   28   0.01s   0.00s     0K     0K     0K     0K --   - S     0   0% mysqld
22689    1   0.01s   0.00s     0K     0K     0K     0K --   - R     0   0% atop
  744    1   0.01s   0.00s     0K     0K     0K   552K --   - S     0   0% jbd2/sdd1-8
22440    1   0.01s   0.00s     0K     0K     0K     0K --   - S     1   0% kworker/1:0
22509    1   0.01s   0.00s     0K     0K     0K     0K --   - S     0   0% kworker/u8:0
 1389    1   0.00s   0.00s     0K     0K     0K     0K --   - S     0   0% smbd
   22    1   0.00s   0.00s     0K     0K     0K     0K --   - S     0   0% khugepaged

 

Busf
()

Помогите подключить принтер подключенный к windows, пжлст.

Здравствуйте! Есть принтер HP laser jet Professional P1102s, подключен к win7, не могу настроить Lubuntu 18.04 чтобы он печатал. Пробовал через LPD и SAMBA. CUPS пишет «Filter failed»

Устанавливал сначала hplip из репозитория, а потом с сайта hp.com (драйвер принтера)

(Как спрятать эти длинные портянки?)

Журнал ошибок CUPS

 

D [08/Feb/2019:14:37:12 +0400] [Job 36] The following messages were recorded from 14:36:55 to 14:37:12
D [08/Feb/2019:14:37:12 +0400] [Job 36] Unloading...
D [08/Feb/2019:14:37:12 +0400] [Job 36] Loading attributes...
D [08/Feb/2019:14:37:12 +0400] [Job 36] Job restarted by user.
D [08/Feb/2019:14:37:12 +0400] [Job 36] time-at-processing=1549622232
D [08/Feb/2019:14:37:12 +0400] [Job 36] 4 filters for job:
D [08/Feb/2019:14:37:12 +0400] [Job 36] bannertopdf (application/vnd.cups-pdf-banner to application/pdf, cost 32)
D [08/Feb/2019:14:37:12 +0400] [Job 36] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [08/Feb/2019:14:37:12 +0400] [Job 36] gstoraster (application/vnd.cups-pdf to application/vnd.cups-raster, cost 99)
D [08/Feb/2019:14:37:12 +0400] [Job 36] hpcups (application/vnd.cups-raster to printer/HP-LaserJet-Professional-p1102, cost 0)
D [08/Feb/2019:14:37:12 +0400] [Job 36] job-sheets=none,none
D [08/Feb/2019:14:37:12 +0400] [Job 36] argv[0]="HP-LaserJet-Professional-p1102"
D [08/Feb/2019:14:37:12 +0400] [Job 36] argv[1]="36"
D [08/Feb/2019:14:37:12 +0400] [Job 36] argv[2]="anonymous"
D [08/Feb/2019:14:37:12 +0400] [Job 36] argv[3]="Test Page"
D [08/Feb/2019:14:37:12 +0400] [Job 36] argv[4]="1"
D [08/Feb/2019:14:37:12 +0400] [Job 36] argv[5]="job-uuid=urn:uuid:2167fa98-4dff-34bd-6fae-1947774a2f0e job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1549622213 time-at-processing=1549622232"
D [08/Feb/2019:14:37:12 +0400] [Job 36] argv[6]="/var/spool/cups/d00036-001"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[7]="CUPS_STATEDIR=/run/cups"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[8]="HOME=/var/spool/cups/tmp"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[10]="SERVER_ADMIN=root@dtub"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[11]="SOFTWARE=CUPS/2.2.7"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[13]="USER=root"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[14]="CUPS_MAX_MESSAGE=2047"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[15]="CUPS_SERVER=/run/cups/cups.sock"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[17]="IPP_PORT=631"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[18]="CHARSET=utf-8"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[19]="LANG=ru_RU.UTF-8"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[20]="PPD=/etc/cups/ppd/HP-LaserJet-Professional-p1102.ppd"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[21]="RIP_MAX_CACHE=128m"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[22]="CONTENT_TYPE=application/vnd.cups-pdf-banner"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[23]="DEVICE_URI=smb://192.168.1.48/hpw7"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[24]="PRINTER_INFO=HP LaserJet Professional p1102"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[25]="PRINTER_LOCATION="
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[26]="PRINTER=HP-LaserJet-Professional-p1102"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[27]="PRINTER_STATE_REASONS=hplip.plugin-error"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[28]="CUPS_FILETYPE=document"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[29]="FINAL_CONTENT_TYPE=application/vnd.cups-raster"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[30]="AUTH_I****"
D [08/Feb/2019:14:37:12 +0400] [Job 36] Started filter /usr/lib/cups/filter/bannertopdf (PID 2954)
D [08/Feb/2019:14:37:12 +0400] [Job 36] Started filter /usr/lib/cups/filter/pdftopdf (PID 2955)
D [08/Feb/2019:14:37:12 +0400] [Job 36] Started filter /usr/lib/cups/filter/gstoraster (PID 2956)
D [08/Feb/2019:14:37:12 +0400] [Job 36] Started filter /usr/lib/cups/filter/hpcups (PID 2957)
D [08/Feb/2019:14:37:12 +0400] [Job 36] Started backend /usr/lib/cups/backend/smb (PID 2958)
D [08/Feb/2019:14:37:12 +0400] [Job 36] Restarted by "root".
D [08/Feb/2019:14:37:12 +0400] [Job 36] OUTFORMAT=\"(null)\", so output format will be CUPS/PWG Raster
D [08/Feb/2019:14:37:12 +0400] [Job 36] pdftopdf: Last filter determined by the PPD: hpcups; FINAL_CONTENT_TYPE: application/vnd.cups-raster => pdftopdf will not log pages in page_log.
D [08/Feb/2019:14:37:12 +0400] [Job 36] PDF template file doesn\'t have form. It\'s okay.
D [08/Feb/2019:14:37:12 +0400] [Job 36] PID 2954 (/usr/lib/cups/filter/bannertopdf) exited with no errors.
D [08/Feb/2019:14:37:12 +0400] [Job 36] Color Manager: Calibration Mode/Off
D [08/Feb/2019:14:37:12 +0400] [Job 36] Calling FindDeviceById(cups-HP-LaserJet-Professional-p1102)
D [08/Feb/2019:14:37:12 +0400] [Job 36] PID 2955 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
D [08/Feb/2019:14:37:12 +0400] [Job 36] Found device /org/freedesktop/ColorManager/devices/cups_HP_LaserJet_Professional_p1102
D [08/Feb/2019:14:37:12 +0400] [Job 36] Calling org.freedesktop.ColorManager.Device.Get(ProfilingInhibitors)
D [08/Feb/2019:14:37:12 +0400] [Job 36] Calling FindDeviceById(cups-HP-LaserJet-Professional-p1102)
D [08/Feb/2019:14:37:12 +0400] [Job 36] Found device /org/freedesktop/ColorManager/devices/cups_HP_LaserJet_Professional_p1102
D [08/Feb/2019:14:37:12 +0400] [Job 36] Calling GetProfileForQualifiers(Gray.Plain....)
D [08/Feb/2019:14:37:12 +0400] [Job 36] Found profile /org/freedesktop/ColorManager/profiles/HP_LaserJet_Professional_p1102_Gray__
D [08/Feb/2019:14:37:12 +0400] [Job 36] Calling org.freedesktop.ColorManager.Profile.Get(Filename)
D [08/Feb/2019:14:37:12 +0400] [Job 36] Use profile filename: \'\'
D [08/Feb/2019:14:37:12 +0400] [Job 36] Color Manager: ICC Profile: 
D [08/Feb/2019:14:37:12 +0400] [Job 36] Ghostscript using Any-Part-of-Pixel method to fill paths.
D [08/Feb/2019:14:37:12 +0400] [Job 36] Ghostscript command line: gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -dShowAcroForm -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups -sMediaType=Plain -sOutputType=0 -r600x600 -dMediaPosition=7 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=841 -dcupsBitsPerColor=1 -dcupsColorOrder=0 -dcupsColorSpace=3 -dcupsRowCount=1 -dcupsRowStep=2 -dcupsInteger0=9 -scupsPageSizeName=A4 -I/usr/share/cups/fonts -c \'<</.HWMargins[18.000000 15.500000 18.000000 15.500000] /Margins[0 0]>>setpagedevice\' -f -_
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[0]=\"CUPS_CACHEDIR=/var/cache/cups\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[1]=\"CUPS_DATADIR=/usr/share/cups\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[2]=\"CUPS_DOCROOT=/usr/share/cups/doc-root\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[3]=\"CUPS_FONTPATH=/usr/share/cups/fonts\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[4]=\"CUPS_REQUESTROOT=/var/spool/cups\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[5]=\"CUPS_SERVERBIN=/usr/lib/cups\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[6]=\"CUPS_SERVERROOT=/etc/cups\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[7]=\"CUPS_STATEDIR=/run/cups\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[8]=\"HOME=/var/spool/cups/tmp\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[9]=\"PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[10]=\"SERVER_ADMIN=root@dtub\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[11]=\"SOFTWARE=CUPS/2.2.7\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[12]=\"USER=root\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[13]=\"CUPS_MAX_MESSAGE=2047\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[14]=\"CUPS_SERVER=/run/cups/cups.sock\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[15]=\"CUPS_ENCRYPTION=IfRequested\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[16]=\"IPP_PORT=631\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[17]=\"CHARSET=utf-8\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[18]=\"LANG=ru_RU.UTF-8\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[19]=\"PPD=/etc/cups/ppd/HP-LaserJet-Professional-p1102.ppd\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[20]=\"RIP_MAX_CACHE=128m\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[21]=\"CONTENT_TYPE=application/vnd.cups-pdf-banner\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[22]=\"DEVICE_URI=smb://prn:1@192.168.1.48/hpw7\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[23]=\"PRINTER_INFO=HP LaserJet Professional p1102\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[24]=\"PRINTER_LOCATION=\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[25]=\"PRINTER=HP-LaserJet-Professional-p1102\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[26]=\"PRINTER_STATE_REASONS=hplip.plugin-error\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[27]=\"CUPS_FILETYPE=document\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[28]=\"FINAL_CONTENT_TYPE=application/vnd.cups-raster\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] envp[29]=\"AUTH_INFO_REQUIRED=username,password\"
D [08/Feb/2019:14:37:12 +0400] [Job 36] Connected with username/password...
D [08/Feb/2019:14:37:12 +0400] [Job 36] Start rendering...
D [08/Feb/2019:14:37:12 +0400] [Job 36] Set job-printer-state-message to "Start rendering...", current level=INFO
D [08/Feb/2019:14:37:12 +0400] [Job 36] Processing page 1...
D [08/Feb/2019:14:37:12 +0400] [Job 36] Set job-printer-state-message to "Processing page 1...", current level=INFO
D [08/Feb/2019:14:37:12 +0400] [Job 36] prnt/hpcups/HPCupsFilter.cpp 647: DEBUG: imageProcessorStartPage failed result = 2
D [08/Feb/2019:14:37:12 +0400] [Job 36] STATE: +hplip.plugin-error
D [08/Feb/2019:14:37:12 +0400] [Job 36] prnt/hpcups/HPCupsFilter.cpp 490: m_Job initialization failed with error = 48
D [08/Feb/2019:14:37:12 +0400] [Job 36] PID 2957 (/usr/lib/cups/filter/hpcups) stopped with status 1.
D [08/Feb/2019:14:37:12 +0400] [Job 36] Hint: Try setting the LogLevel to "debug" to find out more.
D [08/Feb/2019:14:37:12 +0400] [Job 36] Processing page 2...
D [08/Feb/2019:14:37:12 +0400] [Job 36] PID 2958 (/usr/lib/cups/backend/smb) exited with no errors.
D [08/Feb/2019:14:37:12 +0400] [Job 36] Rendering completed
D [08/Feb/2019:14:37:12 +0400] [Job 36] PID 2956 (/usr/lib/cups/filter/gstoraster) exited with no errors.
D [08/Feb/2019:14:37:12 +0400] [Job 36] End of messages
D [08/Feb/2019:14:37:12 +0400] [Job 36] printer-state=3(idle)
D [08/Feb/2019:14:37:12 +0400] [Job 36] printer-state-message="Rendering completed"
D [08/Feb/2019:14:37:12 +0400] [Job 36] printer-state-reasons=hplip.plugin-error

journalctl -k
фев 08 14:36:54 dtub hpcups[2945]: common/utils.c 112: unable to open /var/lib/hp/hplip.state: No such file or directory
фев 08 14:36:54 dtub hpcups[2945]: common/utils.c 162: validate_plugin_version() Failed to get Plugin version from [/var/lib/hp/hplip.state]
фев 08 14:36:54 dtub hpcups[2945]: common/utils.c 206: Plugin version is not matching
фев 08 14:36:54 dtub hpcups[2945]: common/utils.c 277: Invalid Library hanlder pLibHandler = NULL.
фев 08 14:37:12 dtub hpcups[2957]: common/utils.c 112: unable to open /var/lib/hp/hplip.state: No such file or directory
фев 08 14:37:12 dtub hpcups[2957]: common/utils.c 162: validate_plugin_version() Failed to get Plugin version from [/var/lib/hp/hplip.state]
фев 08 14:37:12 dtub hpcups[2957]: common/utils.c 206: Plugin version is not matching
фев 08 14:37:12 dtub hpcups[2957]: common/utils.c 277: Invalid Library hanlder pLibHandler = NULL.

 ,

Busf
()

Вручную примонтировать шару win 10

Здравствуйте не могу, по сети, примонтировать шару win10 (win 7,на другом комп-ре монтируется без ошибок), win 10 еще не включал smb 1.0(можно ли не включать) пробовал так:

sudo mount.cifs //192.168.1.37/sh /home/user/shdsk/ -o user=first, pas=password, vers=2.1
Password for first@//192.168.1.37/sh:  *********
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


 sudo mount.cifs //192.168.1.37/sh /home/user/shdsk/ --verbose -o user=first, pas=password, vers=2.1, sec=ntlmsspi
Password for first@//192.168.1.37/sh:  *********
mount.cifs kernel mount options: ip=192.168.1.37,unc=\\192.168.1.37\sh,user=first,pass=********
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


journalctl -k
фев 04 11:52:04 computer systemd-logind[869]: New session 780 of user user.
фев 04 11:52:53 computer sudo[5939]: user : TTY=pts/0 ; PWD=/home/user ; USER=root ; COMMAND=/sbin/mount.cifs //192.168.1.37/sh /home/user/shdsk/ --verbose -o user=first, pas=password, vers=2.1, sec=ntlmsspi
фев 04 11:52:53 computer sudo[5939]: pam_unix(sudo:session): session opened for user root by user(uid=0)
фев 04 11:53:14 computer kernel: CIFS VFS: cifs_mount failed w/return code = -112




С другого win 10, шара win 10 открывается. Можно ли примонтировать без smb 1.0 или хоть с ним (перезагрузиться смогу только ночью)
Вообще хочу примонтировать шару, скопировать резервную копию, отмонтировать шару.

 

Busf
()

Ошибка dhcp в логах.

Ошибка

авг 23 13:34:24 ur dhcpd[5890]: uid lease 192.168.1.88 for client e0:d5:5e:4c:cb:c1 is duplicate on 192.168.1.0/24
авг 23 13:34:24 ur dhcpd[5890]: DHCPREQUEST for 192.168.1.36 from e0:d5:5e:4c:cb:c1 via enp3s0
авг 23 13:34:24 ur dhcpd[5890]: DHCPACK on 192.168.1.36 to e0:d5:5e:4c:cb:c1 via enp3s0
авг 23 13:34:24 ur dhcpd[5890]: Forward map from hostname1.office.local to 192.168.1.36 FAILED: Has an address record but no DHCID, not mine.


   dhcpd.conf:


subnet 192.168.1.0 netmask 255.255.255.0 {
    range 192.168.1.2 192.168.1.35;
    range 192.168.1.37 192.168.1.47;
    range 192.168.1.49 192.168.1.53;
    range 192.168.1.55 192.168.1.57;
    range 192.168.1.59 192.168.1.254;
    option domain-name "office.local";
    option domain-name-servers 192.168.1.1;
     option routers 192.168.1.1;
    option broadcast-address 192.168.1.255;
    default-lease-time 21600;
    max-lease-time 259200;
    }

host hostname1 {
   #hardware ethernet 08:60:6e:69:0c:f8;
    hardware ethernet E0:D5:5E:4c:CB:C1;
    fixed-address 192.168.1.36;
    }

host hostname2 {
    hardware ethernet 98:de:d0:1b:b4:ca;
    fixed-address 192.168.1.54;
    }

Я так понимаю сначала выдается динамический адрес, а потом зарезервированный, на других зарезервированных такого нет, но еще момент этот комп недавно поменяли (МАС старый закоментирован)

Может где-нить закеширован? Что можно почистить? Но вообще все работает, ошибка беспокоит только.

 

Busf
()

Подключить WiFi из терминала

Помогите подключить WiFi Ubuntu server 16.04.3 LTS

USB WiFi Адаптер Bus 001 Device 002: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n

iw dev wlxMAC connect мойSSID 

к открытой точке доступа подключается и работает, но не устраивает.

Пробовал в interfaces

auto wlxMAC
iface wlxMAC inet dhcp
wpa-ssid мойSSID
wpa-psk мойпароль
и
wpa-psk 73625469f53a89c6d0728a4c15766b519d80dcce742a3169657cec8a2a62848c
линка нет

если запустить

 sudo wpa_supplicant -Dnl80211 -i wlxeMAC -c wpa-psk-tkip.conf
 Successfully initialized wpa_supplicant

и все стоит в

journalctl -e
фев 21 15:14:21 us sudo[4036]: pam_unix(sudo:session): session opened for user root (uid=0)
фев 21 15:14:21 us kernel: IPv6: ADDRCONF(NETDEV_UP): wlxMAC: link is not ready

линка нет

wpa-conf-tkip.conf

# WPA2-PSK/AES

ctrl_interface=/var/run/wpa_supplicant

network={
        ssid="мойSSID"
        key_mgmt=WPA-PSK
        proto=WPA2
        pairwise=CCMP

        #psk="пароль"
        psk=73625469f53a89c6d0728a4c15766b519d80dcce742a3169657cec8a2a62848c
}

Что делать?

 

Busf
()

Из логов SAMABA , что это может быть?

Здравствуйте, есть сервер samba, там есть запароленный каталог kto, откуда могут прибавляться эти суффиксы .exe .lnk .dll? Что вообще происходит? Работает все отлично (тьфу, тьфу)

process_usershare_file: stat of /var/lib/samba/usershares/kto.exe failed. Permission denied

[2017/11/12 02:23:42.583280,  0] ../source3/param/loadparm.c:3259(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/kto.exe failed. No such file or directory

[2017/11/12 02:23:42.584175,  0] ../source3/param/loadparm.c:3259(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/kto.exe failed. No such file or directory

[2017/11/12 02:23:42.585453,  0] ../source3/param/loadparm.c:3259(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/kto.dll failed. Permission denied

[2017/11/12 02:23:42.586370,  0] ../source3/param/loadparm.c:3259(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/kto.dll failed. No such file or directory

[2017/11/12 02:23:42.587272,  0] ../source3/param/loadparm.c:3259(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/kto.dll failed. No such file or directory

[2017/11/12 02:23:42.588586,  0] ../source3/param/loadparm.c:3259(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/kto.lnk failed. Permission denied

 

Busf
()

Подозрение, что Putty пишет не те символы.

написал скрип в три строки, через Putty

[...]
9    if [ -z "$lan_serv"]
    #if [ -z "$lan_serv" ]
[...]

line 9: [-z: command not found
пишет так

Когда тоже самое написал непосредственно на компе, все работает ошибок нет.

echo $LANG ru_RU.UTF-8

В Putty - translation -Remote Character set UTF-8

Нужно писать через Putty, куда посмотреть? И может не в этом дело?

 

Busf
()

Когда слетят дрова?

Здравствуйте! Возникла необходимость установить сетевой адаптер, купил D-link DGE-528T с чипом rtl8169, поставил, lspci видит карточку, lsmod видит модуль r8169, но линка не было. Сходил на realtek.com, качнул дрова, сделал как в readme # rmmod r8169 # make clean modules (as root or with sudo) # make install # depmod -a # modprobe r8169

Все заработало, вопрос чего нельзя делать чтобы это не слетело, обновляться, обновлять ядро, вообще это надежно?

Кстати встроенный адаптер rtl8101 так и работает link 100Mbit/s, а он гигабитный. А еще пробовал liveUSB, с ядром 3.14, там все работает по умолчанию на гигабите.

OS Ubuntu server 16.04.3

 

Busf
()

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