Giter VIP home page Giter VIP logo

linuxtips's People

Contributors

bk3810 avatar

Watchers

 avatar

linuxtips's Issues

change apt repo

sudo vi /etc/apt/source.list

:%s/archive.ubuntu.com/ftp.daum.net/gc
:%s/security.ubuntu.com/ftp.daum.net/gc

:wq

sudo apt update

Run GUI Program on WSL1

실행시 에러남.

export DISPLAY=localhost:0 확인...이미 저장되어 있을 수 있음.

sudo apt install dbus-x11

이후 실행은 되지만, GUI 프로그램 실행할때마다 다음 에러 출력됨.

Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-wzn00x6fxh: Connection refused

=>

Adding the line

NO_AT_BRIDGE=1

to /etc/environment (or export NO_AT_BRIDGE=1 on console) solved the problem for me.

grep for my project

if [ -z '$1' ]; then
echo input words
exit 0
fi

PATTERN=$1

grep --color=auto -rwnI --exclude='tags' --exclude='cscope.out' --exclude='.depend' --exclude='.html' --exclude-dir='.svn' "${PATTERN}" .

Vim startup errors Invalid expressions...

Error detected while processing /home/bkkim/.vimrc:
line 1:
E474: Invalid argument: background=dark^M
line 2:
E492: Not an editor command: ^M
line 6:
E492: Not an editor command: ^M
line 12:
E488: Trailing characters: modifiable^M
line 17:
E488: Trailing characters: expandtab^M
line 18:
E488: Trailing characters: incsearch^M
line 21:
E474: Invalid argument: foldmethod=indent^M
line 22:
E474: Invalid argument: foldnestmax=1^M
line 23:
E492: Not an editor command: ^M
line 24:
E185: Cannot find color scheme 'desert^M'
line 27:
E492: Not an editor command: ^M
Press ENTER or type command to continue

:w ++ff=unix
로 해결~

또는
For Ubuntu/Debian
sudo apt-get install tofrodos; sudo ln -s /usr/bin/fromdos /usr/bin/dos2unix

dos2unix /foo/bar/path/에러파일

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.