Tar.xz 설치 - tar.xz seolchi

우분투에 텔레그램 설치하는 방법입니다

설치하는 방법이 많은데요

apt 나 snap 을 이용하는 경우 한글이 잘 안 되는 경우가 많아서 그냥 다운로드하여서 설치하는 것을 추천합니다

그래서 그냥 텔레그램 사이트에 접속합니다

https://desktop.telegram.org

Telegram Desktop

Experience Telegram on your computer in a swift and seamless way.

desktop.telegram.org

Tar.xz 설치 - tar.xz seolchi

다운로드 버튼 ( Get Telegram for Linux 64 bit ) 을 눌러서 압축파일을 다운로드하으세요

Tar.xz 설치 - tar.xz seolchi

다운로드한 파일 이름이 tsetup.2.2.0.tar.xz 인데요

확장자가 tar.xz 였습니다

그래서 압축 푸는 명령어를 사용해서 풀었어요

tar -Jxvf tsetup.2.2.0.tar.xz

압축이 풀리면 Telegram 이라는 폴더가 생기는데요

이 폴더는 저는 홈 폴더로 이동하고 바로 실행해봤어요

mv Telegram ~/
~/Telegram/Telegram
Tar.xz 설치 - tar.xz seolchi

실행이 잘 되네요

Tar.xz 설치 - tar.xz seolchi

영어로 나오는 것을 한국어로 계속을 눌러서 한국어로 변경하고 로그인하세요

Tar.xz 설치 - tar.xz seolchi

로그인까지 잘했으면 잠시 텔레그램을 끄고 실행파일을 링크 걸어서 Super 키 ( 윈도키 ) 를 눌러서 검색 가능하도록 합니다

ln -s ~/Telegram/Telegram ~/.local/bin/telegram-desktop

그럼 이제 이렇게 검색이 잘 됩니다

Tar.xz 설치 - tar.xz seolchi

이렇게 다시 실행하고 취향에 따라 왼쪽에 고정이 필요한 분은 고정하세요

Tar.xz 설치 - tar.xz seolchi

이제 텔레그램 잘 되네요~~

근데 저 텔레그램 사용하다가 오타난 내용을 지우려고 하니까 갑자기 지워지지 않고 엉뚱한 문자로 타이핑되는 현상이 있었어요

노트북이나 블루투스 키보드를 사용하는 경우 레이아웃이 맞지 않으면 생기는 문제였는데요

비슷한 문제가 있다면 다음 글을 참고해보세요

2020/07/29 - [Linux 리눅스/우분투] - 우분투 키보드 레이아웃 확인 변경 , 탭이나 방향키가 엉뚱하게 타이핑 되는 경우

This is only for .tar.* files which have the code pre-compiled but packed into a tar file.

Okay, this is a fairly challenging task for a beginner, but just follow my instructions, and it should be fine.

First off, download the .tar.* file, and save it. Don't open it. (In these examples, I'll be installing the Dropbox Beta build, because I was going to install it anyway, so I figured that I might as well document the installation.)

After you've downloaded your file, (assuming that you saved it to Downloads,) type the following:

cd Downloads
sudo cp dropbox-lnx.x86_64-1.5.36.tar.gz /opt/

NOTE: use the name of whatever file you downloaded. (e.g., for the Firefox Nightly 19.0a1 64-bit build, you would type sudo cp firefox-19.0a1.en-US.linux-x86_64.tar.bz2 /opt/)

Now, change to the /opt/ directory, extract the program, and remove the old file:

cd /opt/
sudo tar -xvf dropbox-lnx.x86_64-1.5.36.tar.gz
sudo rm -rf dropbox-lnx.x86_64-1.5.36.tar.gz

(again, use the name of the downloaded file. Don't forget the extension.)

Okay, check to see what the extracted folder is called:

ls -a

you'll get something like this:

james@james-OptiPlex-GX620:/opt$ ls -a
.  ..  .dropbox-dist
james@james-OptiPlex-GX620:/opt$

Okay, in our example, we installed Dropbox, and the only folder there is called .dropbox-dist. That's probably the folder we want, so plug that in to the next step (add a / to the end, since it's a folder.):

sudo chmod 777 .dropbox-dist/

Okay, it's now marked as executable, so it's time to create a symbolic link (this is what allows you to run it from the Terminal):

sudo ln -s /opt/.dropbox-dist/ /usr/bin/dropbox

NOTE: this is sudo ln -s /opt/{FOLDER_NAME}/ /usr/bin/{PROGRAM_NAME}!!! Be sure that {PROGRAM_NAME} is replaced with the simplified, lower-case version of the program's name (e.g., for Firefox Nightly, type firefox-nightly; for the uTorrent server, type utserver. Whatever you type here will be the command that you use whenever running the program from the Terminal. Think of /usr/bin/ as like the PATH variable on Windows systems.)

Okay, you're done. The program is now installed and runnable from the Terminal.
What's this? You say you want to run it from the launcher, AND you want it to have an icon? No problem!

This part is fairly simple:

gksu gedit /usr/share/applications/dropbox.desktop

NOTE: If you're installing OVER a previous installation, use ls -a /usr/share/applications and search for pre-existing .desktop file. Plug that file's name in instead.

Now, here's where you create the icon. Here's good template; edit it appropriately.

[Desktop Entry]
Version=1.0
Name=Firefox Nightly
Comment=Browse the World Wide Web
GenericName=Web Browser
Keywords=Internet;WWW;Browser;Web;Explorer
Exec=firefox-nightly
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/opt/firefox/icons/mozicon128.png
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
StartupNotify=true
Actions=NewWindow;

[Desktop Action NewWindow]
Name=Open a New Window
Exec=firefox-nightly -new-window
OnlyShowIn=Unity;

You may want to leave off the MimeType option completely. That could be very bad if you didn't.

Now, click "Save", close it out, and you're in business!