Linux Mint: Can't change my laptop's screen brightness! edit

Edit /etc/default/grub and add acpi_osi, acpi_backlight options.

GRUB_CMDLINE_LINUX_DEFAULT="i915.modeset=1 acpi_osi= acpi_backlight=vendor"

Also checkout the kernel parameters under /sys/class/backlight/

References

http://forums.linuxmint.com/viewtopic.php?f=109&t=113900

문서를 돈주고 출력했는데 깜빡하고 프린터기를 안켰다? edit

등본과 같은 공적 문서나 학적기록 등을 결제하고 출력하였으나 정작 프린터는 꺼져있을때, 돈은 먹었고 프린트는 안되고 어찌한담?

이럴때는 프린터처럼 생긴 트레이 아이콘을 누르면 출력하고자 했던 문서가 출력 대기중인 문서로 남아있다. 이 문서의 임시파일을 찾아서 PDF와 같은 포멧으로 변환시켜주면 된다.

문서의 임시 파일의 위치는 다음과 같다:

%SystemRoot%\SYSTEM32\SPOOL\PRINTERS

탐색기로 열어서 대기중의 문서의 시간과 .SPL확장자로 끝나는 파일의 시간을 이용하여 문서를 찾고 해당 파일을 다른 폴더에 복사한 후 SPLViewer와 같은 프로그램으로 열어어서 PDF로 변환해주면 된다.

References

가상머신과 sshfs를 이용한 Samba 터널링 edit

http://jinnycreepin.tistory.com/17 으로 이동

리눅스 민트(우분투) 데스크톱 환경에서 한/영키를 누를때 Alt키가 같이 눌린다? edit

Linux Mint(Ubuntu): Hangul key is also Alt key?

아래 명령을 루트 유저로 실행:
Try this command as root user:

# xmodmap -e 'remove mod1 = Hangul'

자동 시작 스크립트 만들기; Make startup script

/etc/init.d/fix_hangul_key.sh:

#!/bin/bash
xmodmap -e 'remove mod1 = Hangul'
# chmod 755 /etc/init.d/fix_hangul_key.sh
# update-rc.d -f fix_hangul_key.sh defaults

노트: update-rc.d 시스템 명령은 최신버전의 우분투 환경에서 동작하지 않을 수 있습니다.
Note: update-rc.d may not working with latest version of Ubuntu.

Linux Mint: System is very slow! edit

It's caused by drm_kms_helper and I don't know what it is.

First, upgrade your system(apt-get update && apt-get upgrade && apt-get dist-upgrade) including kernel.

To disable it:

# echo N > /sys/module/drm_kms_helper/parameters/poll
# echo "options drm_kms_helper poll=N">/etc/modprobe.d/local.conf

To disable at start up, add below script to /etc/init.d/ and add using update-rc.d.

/etc/init.d/disable-krm_kms_helper.sh:

#/bin/bash
echo N> /sys/module/drm_kms_helper/parameters/poll
# update-rc.d -f disable-krm_kms_helper.sh defaults

After awhile, somehow the lags are gone away.

References

https://bugs.launchpad.net/linuxmint/+bug/1122219

Linux Mint: Things to customize after initial install edit

  • Edit /etc/apt/sources.list to your local mirror - Add your country code(e.g KR for South Korea) to URLs
  • Upgrade system using apt-get update && apt-get upgrade && apt-get dist-upgrade
  • Install language support from system menu 'lanauge support' and install ibus to toggle between languages. - ibus and ibus-korean for korean users
  • If system is very slow, disable drm_kms_helper - see this post

References

http://fineday2love.tistory.com/86

iptables: Set rules to make firewall acts like a home routers. edit

Home routers accept connections established from inside and deny incoming connections that isn't

Initialize iptables rules:

# iptables -F
# iptables -X
# iptables -Z

Set default chain policies:

# iptables -P INPUT DROP
# iptables -P FORWARD DROP
# iptables -P OUTPUT ACCEPT

Accept on localhost:

# iptables -A INPUT -i lo -j ACCEPT
# iptables -A OUTPUT -o lo -j ACCEPT

Allow established sessions to receive traffic:

# iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT

Save rules:

# iptables-save

References

http://superuser.com/questions/427458/deny-all-incoming-connections-with-iptables http://blog.daum.net/hypermax/6

Linux Mint: MATE vs Cinnamon edit

Re: MATE vs. Cinnamon, which is more likely to continue? by passerby on Tue Feb 26, 2013 5:57 pm From what I've seen/experienced, Cinnamon's development is more active than MATE's. MATE is faster, lighter, more stable, etc. for the time being, but appears to be a smaller project overall. Cinnamon has problems in virtualbox that don't exist on a normal machine. You might want to try a live boot; it'll be slower than an actual install, but it'll give you a better feel for the environmen

I'm currently using Linux Cinnamon 14. I had issues connect WiFi while using wired network and Cinnamon has better UI.

Linux Mint 13 "Maya" is LTS(Long term support release), supported until April 2017.

Power button to suspend a Ubuntu desktop edit

I want to suspend the machine when I press the power button. I'm using Linux Mint and it's based on Ubuntu so it's same.

Install dconf-tools: sudo apt-get install dconf-tools Press alt+f2 and open dconf-editor (or in a terminal type dconf-editor) Navigate to org.gnome.settings-daemon.plugins.power and set your default button-power action there:

Even though the option is already set for your desired option, click the option and mark as modified(blod).

or
This is the quick, simple answer I needed:
# gsettings set org.gnome.settings-daemon.plugins.power button-power 'hibernate'
If you want to see your settings first, try this:
# gsettings list-recursively org.gnome.settings-daemon.plugins.power

After edit dconf options, restart the machine.

Newer -> <- Older