Linux/Ubuntu2024. 8. 16. 17:40

zhcon 이라는걸 발견했는데 한글 출력은 안된다.

[링크 : https://manpages.ubuntu.com/manpages/trusty/man1/zhcon.1.html]

 

luit를 사용하면 iso 2022를 지원한다는데 iso 8859-1을 넣어도 안되고.. 멀까..

$ luit -encoding gbk cat a_chinese_file.txt

[링크 : https://unix.stackexchange.com/questions/149348/]

 

fbterm 이라는 별도의 프로그램을 이용하면 콘솔에서도 한글을 볼 수 있다(입력은... ㅠㅠ)

[링크 : https://askubuntu.com/questions/193391/how-do-i-display-chinese-japanese-characters-in-a-linux-vt-console]

'Linux > Ubuntu' 카테고리의 다른 글

24.04 설치 성공  (0) 2024.08.18
우분투.. 버전 업그레이드 버근가?  (0) 2024.08.17
gpm - general purpose mouse  (0) 2024.08.16
ubuntu wake up  (0) 2024.08.12
우분투 swraid로 설치하기  (0) 2024.07.31
Posted by 구차니
Linux/Ubuntu2024. 8. 16. 17:22

ctrl-alt-(f2~f6) 로 /dev/tty로 접속했을때

마우스가 되지 않아 불편했는데 gpm 을 설치하면 커서가 생긴다고 해서 시도

드래그 하면 복사되고 우클릭하면 붙여 넣기가 된다.

 

 이걸 이용하면 터미널 간 명령어 복사도 가능해서 조금은 편해질 듯

 

[링크 : https://www.linux.org/threads/mouse-in-tty.18319/]

[링크 : https://wiki.archlinux.org/title/General_purpose_mouse]

[링크 : https://manpages.ubuntu.com/manpages/trusty/man8/gpm.8.html]

Posted by 구차니
Linux/Ubuntu2024. 8. 12. 11:28

ethtool로 unicast wakeup 하도록 설정해주고

$ sudo ethtool -s enp3s0 wol u


$ sudo ethtool enp3s0 | grep -i wake
Supports Wake-on: pumbg
Wake-on: u

2024.08.07 - [하드웨어/Network 장비] - ethtool wol mode

 

명령줄로는 아래와 같이 보내주면 절전모드로 전환된다.

$ sudo systemctl suspend

[링크 : https://askubuntu.com/questions/1792/how-can-i-suspend-hibernate-from-command-line]

 

최대절전모드는 아래와 같이 하라는데, 막상해보면 설정이 안되어 있다보니 따로 해봐야 할 듯.

$ sudo systemctl hibernate
Failed to hibernate system via logind: Not enough swap space for hibernation

[링크 : https://www.geeksforgeeks.org/how-to-enable-hibernate-in-ubuntu-22-04-lts/]

 

아무튼 ping을 날리거나

ssh 접속 시도, 혹은 접속중이었는데 서버가 sleep으로 갔을 경우 ssh 터미널에 명령을 날리면 다시 살아난다.

 

노트북도 22.04인데

얘도 hibernate 빠진거 보면 ssd 보급으로 인해 굳이 hibernate를 켜서 공간 잡아 먹을 이유가 없다고 생각한걸려나?

Posted by 구차니
Linux/Ubuntu2024. 7. 31. 10:14

담에 시도해봐야지. 그나저나 server edition만 지원하나? 죄다 CLI로 되어있네?

그런데.. boot 파티션도 raid가 되나?

 

/boot는 raid 1 에서는 존재가능하고, 나머지는 boot 영역만큼은 다른 스토리지에 넣어줘야 하는 듯

Warning: the /boot filesystem cannot use any softRAID level other than 1 with the stock Ubuntu bootloader. If you want to use some other RAID level for most things, you'll need to create separate partitions and make a RAID1 device for /boot.

[링크 : https://help.ubuntu.com/community/Installation/SoftwareRAID]

[링크 : https://www.servers.com/support/knowledge/linux-administration/how-to-install-ubuntu-with-software-raid-1]

[링크 : https://devjaewoo.tistory.com/41]

 

+

2024.08.12

desktop edition 에서 시도해봤으나

GUI로는 존재하지 않고, 콘솔에서 mdadm 설치해서 진행하면 가능은 할 것 같은데 일단 패스

server edition 먼저 진행해보고 desktop edition을 시도해보는걸로..

'Linux > Ubuntu' 카테고리의 다른 글

gpm - general purpose mouse  (0) 2024.08.16
ubuntu wake up  (0) 2024.08.12
ssh 보안 취약점 패치 - 우분투 업데이트  (0) 2024.07.08
정체 불명의 우분투 키보드 입력 지연 (TTS)  (0) 2024.06.28
우분투로 공유기 만들기  (2) 2024.02.23
Posted by 구차니
Linux/Ubuntu2024. 7. 8. 17:50

여기저기 난리구만..

 

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu wake up  (0) 2024.08.12
우분투 swraid로 설치하기  (0) 2024.07.31
정체 불명의 우분투 키보드 입력 지연 (TTS)  (0) 2024.06.28
우분투로 공유기 만들기  (2) 2024.02.23
ubuntu pro?  (2) 2024.01.31
Posted by 구차니
Linux/Ubuntu2024. 6. 28. 13:27

이어폰 꼽고 음악 들으려다 켜져있는걸 발견 -_-

(회사에서는 컴퓨터 무음으로 해놓고 씀)

 

왜 "화면 읽기" 가 켜져 있는지 모르겠지만

유난히 웹 브라우저에서 키보드가 응답이 느리게 작동했던 것 같은데

아마 일반 어플리케이션에서는 접근성 대응이 덜 되어 있는데 웹 브라우저에서는 잘 되어 있으니

온갖 말을 하다가 더 난리가 났던 듯.

 

그나저나 누르고 있으니 이 어눌한 말은 왜케 웃기냐 ㅋㅋ

카테고리 없음 이렇게 한글 비슷하게 읽어주는것도 있긴한데 

타자를 막 치고 있으면 이어폰으로 온갖 이상한 소리가 ㅋㅋㅋ

 

+

Testing
Test your setup by typing in a Terminal

festival

You will be presented with a > prompt. Type

(SayText "Hello")

The computer should say "hello".

To listen to a text file named FILENAME, type

(tts "FILENAME" nil)

Note FILENAME must be in quote marks.

 

festival 이라는 어플리케이션을 통해서 읽는것 같은데

한글을 넣으면 segmentation fault가 뜨는데

도대체 아까 오른쪽 왼쪽 같은 TTS 음성이 도대체 어떻게 나온걸까?

$ festival

Festival Speech Synthesis System 2.5.0:release December 2017
Copyright (C) University of Edinburgh, 1996-2010. All rights reserved.

clunits: Copyright (C) University of Edinburgh and CMU 1997-2010
clustergen_engine: Copyright (C) Carnegie Mellon University 2005-2017
hts_engine: 
The HMM-Based Speech Synthesis Engine "hts_engine API"
hts_engine API version 1.07 (http://hts-engine.sourceforge.net/)
Copyright (C) The HMM-Based Speech Synthesis Engine "hts_engine API"
Version 1.07 (http://hts-engine.sourceforge.net/)
Copyright (C) 2001-2012 Nagoya Institute of Technology
              2001-2008 Tokyo Institute of Technology
All rights reserved.

All rights reserved.
For details type `(festival_warranty)'
festival> (SayText "an nyung ha se yo")
#<Utterance 0x709fa1a32830>

[링크 : https://help.ubuntu.com/community/TextToSpeech]

'Linux > Ubuntu' 카테고리의 다른 글

우분투 swraid로 설치하기  (0) 2024.07.31
ssh 보안 취약점 패치 - 우분투 업데이트  (0) 2024.07.08
우분투로 공유기 만들기  (2) 2024.02.23
ubuntu pro?  (2) 2024.01.31
debian nvme tool  (0) 2023.08.28
Posted by 구차니
Linux2024. 4. 16. 16:53

raid가 있어서 그런가 뜬금없는(?) 장치가 있는데

/dev/sg0

/dev/sg1

 

fdisk로 열어보려고 하면 illegal seek 이라는게 뜨는데 도대체 머하는데 써먹는 장치일까 싶어

검색해보니 sg는 Scsi Generic에서 온 듯.

[링크 : https://docs.kernel.org/scsi/scsi-generic.html]

 

sas도 sg로 잡히나?

'Linux' 카테고리의 다른 글

gpiod - gpiomon  (0) 2025.07.17
scrub  (0) 2025.02.04
lsusb -v 로 본 장치(HID MT, mouse)  (0) 2024.03.08
systemd 지연된 시작  (0) 2024.02.29
btrfs fsck  (0) 2024.02.13
Posted by 구차니
Linux2024. 3. 8. 17:59

어떻게 MT(multi touch) 장치로 분류하나 궁금해서 보는데 영 모르겠다.

아마..도 멀티터치 장비? USB 유선 마우스(표준형)
Bus 001 Device 043: ID 0eef:c003 D-WAV Scientific Co., Ltd eGalaxTouch P80H84 0900 v12 k4.18.200
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0eef D-WAV Scientific Co., Ltd
  idProduct          0xc003 
  bcdDevice            0.12
  iManufacturer           1 eGalax Inc.
  iProduct                2 eGalaxTouch P80H84 0900 v12 k4.18.200
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0022
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 HID-Compliant-Device
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              350mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              5 HID-Interface
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     546
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)
Bus 001 Device 048: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x046d Logitech, Inc.
  idProduct          0xc077 M105 Optical Mouse
  bcdDevice           72.00
  iManufacturer           1 Logitech
  iProduct                2 USB Optical Mouse
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0022
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      46
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              10
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)

'Linux' 카테고리의 다른 글

scrub  (0) 2025.02.04
Block SCSI generic (bsg) driver  (0) 2024.04.16
systemd 지연된 시작  (0) 2024.02.29
btrfs fsck  (0) 2024.02.13
리눅스 파일 시스템 캐싱  (0) 2024.01.09
Posted by 구차니
Linux2024. 2. 29. 11:54

 

[Service]
ExecStartPre=/bin/sleep 30

[링크 : https://stackoverflow.com/questions/43001223/]

'Linux' 카테고리의 다른 글

Block SCSI generic (bsg) driver  (0) 2024.04.16
lsusb -v 로 본 장치(HID MT, mouse)  (0) 2024.03.08
btrfs fsck  (0) 2024.02.13
리눅스 파일 시스템 캐싱  (0) 2024.01.09
multitail / tail  (2) 2023.10.18
Posted by 구차니
Linux/Ubuntu2024. 2. 23. 19:16

해볼까?

pfsense도 귀찮고..

그냥 필요한건 간단하게 NAT와 포트포워딩, DHCP 정도인데..

 

NAT

iptable masqurade

[링크 : https://ko.linux-console.net/?p=15300]

 

iptable - port forward

[링크 : https://www.google.com/amp/s/tecadmin.net/setting-up-a-port-forwarding-using-iptables-in-linux/%3famp]

 

 

DHCP

dhcpd

[링크 : https://askubuntu.com/questions/913250/how-can-i-get-isc-dhcp-server-dhcpd-to-listen-on-one-interface-only]

 

방화벽

suricata

[링크 : https://www.hostinger.com/tutorials/how-to-install-suricata-on-ubuntu]

 

 

snort

[링크 : https://fni8383.tistory.com/m/35]

'Linux > Ubuntu' 카테고리의 다른 글

ssh 보안 취약점 패치 - 우분투 업데이트  (0) 2024.07.08
정체 불명의 우분투 키보드 입력 지연 (TTS)  (0) 2024.06.28
ubuntu pro?  (2) 2024.01.31
debian nvme tool  (0) 2023.08.28
edid-read  (0) 2023.08.17
Posted by 구차니