หน้าเว็บ

แสดงบทความที่มีป้ายกำกับ Linux แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ Linux แสดงบทความทั้งหมด

วันพุธที่ 17 มิถุนายน พ.ศ. 2563

Linux Mint แก้ปัญหา Add Printer Auto ใน Network

Linux Mint แก้ปัญหา Add Printer Auto ใน Network
เมื่อต่อ Network แล้วเข้า printer ตัว Printer ที่อยู่ใน Network จะ Add เข้ามา Auto บางตัวไม่ได้ใช้
ลบออกแล้วก็ยัง Add เข้ามาใหม่

แก้โดย
  1. nano /etc/cups/cups-browsed.conf

Uncomment
CreateIPPPrinterQueues LocalOnly

  1. /etc/init.d/cups restart


ก็จะเหลือเฉพาะ Printer ที่เรา Add ไว้

https://forums.linuxmint.com/viewtopic.php?t=277091

วันพฤหัสบดีที่ 11 มิถุนายน พ.ศ. 2563

Linux Mint 19.3 Go Back To Old Kernel

Linux Mint 19.3 Go Back To Old Kernel And Boot to select grub menu.
1. แก้ grub
nano /etc/default/grub
เดิม
  1. GRUB_TIMEOUT_STYLE=hidden
  2. GRUB_TIMEOUT=0

ใหม่
  1. GRUB_TIMEOUT_STYLE=menu
  2. GRUB_TIMEOUT=4

เลข 4 คือเวลาต้องการให้หน่วงกี่วินาที

2. reboot แล้วเลือก grub ที่ต้องการ
3. ลบ grub ที่ปัญหาออก ใน Update Manager --> View --> Linux Kernel


https://forums.linuxmint.com/viewtopic.php?t=248892

วันพฤหัสบดีที่ 22 สิงหาคม พ.ศ. 2562

Extranet : ติดตั้ง Extranet ใน Ubuntu 18.04

Extranet : ติดตั้ง Extranet ใน Ubuntu 18.04
1. ติดตั้ง Ubuntu 18.04
Set IP
https://intranet.sci.com/blog.php?u=281&b=1716
Update Upgrade ให้เรียบร้อย

ต้องใช้ php5 เพราะมีใช้คำสั่งติดต่อกับ Axapta ใน Code ใช้ php7 ไม่ได้
2. ติดตั้ง Apache2
  1. sudo apt-get install apache2


3. ติดตั้ง php5.6
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php5.6

  1. php -v

PHP 5.6.40-10+ubuntu18.04.1+deb.sury.org+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

  1. sudo a2dismod mpm_event
  2. sudo a2enmod php5.6
  3. sudo service apache2 restart


4. แก้ index.php ดู php version เพิ่ม
  1. phpinfo();


5. ติดตั้ง mysql และ phpmyadmin
  1. sudo apt-get install mysql-server
  2. sudo apt-get install mysql-phpmyadmin


6. mssql สำหรับติดต่อไป axapta server
https://intranet.sci.com/blog.php?u=3&b=293
ลงไม่ได้
  1. sudo apt-get install php5-mssql

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php5-mssql


ต้องใช้
  1. sudo apt-get install php5.6-sybase freetds-common libsybdb5
  2. /etc/init.d/apache2 restart


https://gist.github.com/joecampo/acd1e5881aee08bd8959

7. เปลี่ยนรหัส root ที่ login เข้า phpmyadmin
https://intranet.sci.com/blog.php?u=281&b=1718

8. phpmyadmin เข้าไม่ได้ มีตัวหนังสือสีแดงลงโปรแกรมที่จะใช้ไม่ครบ
  1. apt-get install php5.6-mbstring
  2. apt-get install php5.6-mysqli
  3. /etc/init.d/apache2 restart


8. แก้ max upload php.ini upload database ไม่ผ่าน
nano /etc/php/5.6/apache2/php.ini

upload_max_filesize = 100m
memory_limit = 256m

  1. /etc/init.d/apache2 restart


10. สร้าง database sci_extranet และ import database ที่มี

11. เปลี่ยนชื่อเครื่อง ตั้งชื่อเครื่องไม่ถูก
https://linuxize.com/post/how-to-change ... ntu-18-04/

12. เปิดใช้งานแบบ https
12.1. สร้าง Cer
https://intranet.sci.com/blog.php?u=281&b=1673
https://intranet.sci.com/blog.php?u=3&b=970
12.2. แก้ไฟล์ redirect port
  1. nano /etc/apache2/sites-enabled/000-default.conf

<VirtualHost *:80>
ServerName extranet.scivalve.com
Redirect / https://extranet.scivalve.com/
ServerAdmin suwit@scivalve.com
</VirtualHost>

<VirtualHost *:443>
ServerName extranet.scivalve.com
DocumentRoot /var/www/extranet
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/extranet.scivalve.com.pem
SSLCertificateKeyFile /etc/apache2/ssl/extranet.scivalve.com.key
ServerAdmin suwit@scivalve.com
<Directory /var/www/extranet/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerName extranet.sci.com
Redirect / https://extranet.sci.com/
ServerAdmin suwit@scivalve.com
</VirtualHost>

<VirtualHost *:443>
ServerName extranet.sci.com
DocumentRoot /var/www/extranet
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/extranet.sci.com.pem
SSLCertificateKeyFile /etc/apache2/ssl/extranet.sci.com.key
ServerAdmin suwit@scivalve.com
<Directory /var/www/extranet/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>


13. exports cer
https://intranet.sci.com/blog.php?u=281&b=1060
ทำ cer ไป authen จาก server ไปเครื่องลูก
https://intranet.sci.com/blog.php?u=281&b=1061

ภาษาไทยที่ select มาจาก Axatpa ไม่แสดง ภาษาไทย อ่านไม่ออก
แสดงเป็น ???????????????????

แก้ php.ini
  1. nano /etc/php/5.6/apache2/php.ini

แก้จาก
mssql.charset = "ISO-8859-1"
แก้เป็น
mssql.charset = "tis620"

แล้ว Restart apache
  1. /etc/init.d/apache2 restart

วันอังคารที่ 28 พฤษภาคม พ.ศ. 2562

Linux :: Linux Manjaro Add Printer HP Laserjet P1606dn Shared with smb

Linux :: Linux Manjaro Add Printer HP Laserjet P1606dn Shared with smb

1. Install program by search Add/Remove Program
smb.conf

2. Edit smb.conf workgroup to SCI
3. Install python smbc for browser name computer shared on network.
python smbc

4. Install foo2zjs
foo2zjs

5. Add Printer by use PPD
https://nextcloud.sci.com/index.php/s/fYGeB6GDcYz3S4L