Skip to content

Instantly share code, notes, and snippets.

View chaeya's full-sized avatar
😀

Kevin Kim chaeya

😀
View GitHub Profile
@chaeya
chaeya / kakaotalk-install
Created September 18, 2023 07:22
install kakaotalk on ubuntu 22.04
View kakaotalk-install
#!/bin/bash
RUID=$(who | awk 'FNR == 1 {print $1}')
echo "$RUID"
# 인터넷 연결상태 확인
nslookup www.google.com | grep authoritative > /dev/null 2>&1
if [[ $? != 0 ]]; then
zenity --info --width 200 --text "인터넷 연결상태를 확인해주세요"
exit 0
@chaeya
chaeya / hamonikr-xrdp-installer.sh
Last active September 18, 2023 03:18
xRDP installation on Ubuntu 22.04, HamoniKR 7
View hamonikr-xrdp-installer.sh
#!/bin/bash
#####################################################################################################
# Script_Name : hamonikr-xrdp-installer.sh
# Description : Perform xRDP installation on Ubuntu 22.04, HamoniKR 7 and perform
# additional post configuration to improve end user experience
# Date : Mon, 18 Sep 2023 10:18:03 +0900
# written by : Kevin Kim
# WebSite :https://hamonikr.org
####################################################################################################
@chaeya
chaeya / xrdp.ini
Created September 18, 2023 01:26
XRDP settings for HamoniKR OS
View xrdp.ini
[Globals]
ini_version=1
fork=true
port=3389
use_vsock=false
tcp_nodelay=true
tcp_keepalive=true
security_layer=negotiate
crypt_level=low
certificate=
@chaeya
chaeya / sesman.ini
Created September 18, 2023 01:25
XRDP sesman.ini for HamoniKR
View sesman.ini
[Globals]
ListenAddress=127.0.0.1
ListenPort=3350
EnableUserWindowManager=true
UserWindowManager=startwm.sh
DefaultWindowManager=startwm.sh
[Security]
AllowRootLogin=true
MaxLoginRetry=4
@chaeya
chaeya / startwm.sh
Last active September 18, 2023 01:39
xrdp X session start script
View startwm.sh
#!/bin/sh
# xrdp X session start script (c) 2015, 2017 mirabilos
# published under The MirOS Licence
if test -r /etc/profile; then
. /etc/profile
fi
if test -r /etc/default/locale; then
. /etc/default/locale
@chaeya
chaeya / build.md
Created February 1, 2023 07:29 — forked from ravecat/README.md
debootstrap, livecd
View build.md

A live CD or live DVD is a complete bootable Linux operating system loaded from a CD or DVD. Although there are a lots of live Linux CDs, for seemingly every taste and purpose, it might still be useful on occasion to build your own. This guide details the steps to build a bootable live CD/DVD based on Debian “wheezy”.

Step 1 – Installing the necessary software

These are the software packages you need to install on your Debian system:

apt-get install xorriso live-build syslinux squashfs-tools

Step 2 – Create a basic filesystem

@chaeya
chaeya / xrandr-set.sh
Created November 29, 2022 08:26
vivobook screen resolution control at office
View xrandr-set.sh
#!/bin/bash
screen_count=$(xrandr -q |grep -w "connected" | wc -l)
if [ $screen_count = "2" ]; then
xrandr --output eDP-1 --mode 2880x1800 --scale 0.5x0.5 --pos 0x0 --rotate normal --output DP-3 --primary --mode 3440x1440 --scale 1x1 --pos 2880x0 --rotate normal
else
xrandr --output eDP-1 --mode 2880x1800 --scale 1.2x1.2 --pos 0x0 --rotate normal --primary
fi
@chaeya
chaeya / v6.0.10-hamonikr1.patch
Created November 29, 2022 05:10
linux kernel v6.0.10 ASUS VivoBook S5402ZA keyboard disable patch
View v6.0.10-hamonikr1.patch
diff -crB a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
*** a/drivers/gpio/gpiolib-acpi.c 2022-11-28 20:03:26.825171988 +0900
--- b/drivers/gpio/gpiolib-acpi.c 2022-11-28 20:18:28.049389594 +0900
***************
*** 1590,1595 ****
--- 1590,1609 ----
.ignore_interrupt = "AMDI0030:00@18",
},
},
+ {
View fix-asus-s5402za-keyboard.patch
--- a/drivers/acpi/resource.c 2022-10-26 19:53:32.000000000 +0900
+++ b/drivers/acpi/resource.c 2022-10-27 21:42:53.732581293 +0900
@@ -399,6 +399,31 @@
{ }
};
+static const struct dmi_system_id asus_laptop[] = {
+ {
+ .ident = "Asus Vivobook K3402ZA",
+ .matches = {
View pc-github-setting.sh
#!/bin/bash
sudo apt install -y vim git xclip
[ ! -f ~/.ssh/id_ed25519.pub ] && exec ssh-keygen -t ed25519 -C "chaeya@gmail.com"
cat ~/.ssh/id_ed25519.pub | xclip -selection clipboard
cat ~/.ssh/id_ed25519.pub
xdg-open "https://github.com/settings/keys" &
[ ! -d ./dev-settings ] && git clone git@github.com:chaeya/dev-settings.git
dev-settings/dev-setting.sh