'Development'에 해당되는 글 44건

  1. 2021.10.12 Upgrade WSL Ubuntu 18.04 to 20.04
  2. 2020.02.04 failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED
  3. 2017.01.05 우분투 Security Update 만 적용하기 1
  4. 2013.12.27 GPG error
  5. 2013.12.18 [Updating] Change the icon size of launcher in Unity (Ubuntu 12.04)
  6. 2013.09.20 CMA를 처음 접하는 사람들을 위한 짧은 글
  7. 2013.09.19 Contiguous Memory Allocator
  8. 2013.04.03 Cannot execute adb or fastboot
  9. 2013.02.01 Upgrade ubuntu version to 12.04 precise
  10. 2012.12.31 Create a random MAC address with python virtinst


Upgrade WSL Ubuntu 18.04 to 20.04

Development/Linux & Android 2021. 10. 12. 17:39

$ sudo apt update

$ sudo apt list --upgradable

$ sudo apt upgrade

 

$ sudo apt --purge autoremove

$ sudo apt intall update-manager-core

$ sudo do-release-upgrade -d

 

Issue 1. Proxy

 - 프록시를 사용중이라면 /etc/apt/apt.conf.d 에서 90proxy 파일로 프록시 설정 추가

  - /etc/wgetrc 를 수정해서 wget 도 프록시 추가

 

Issue 2. SSL connection

 - OpenSSL connection 오류 발생시

 - curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.xx.yyy

 - export http_proxy=http://xxx.xxx.xxx.xxx:pppp

 - export https_proxy=http://xxx.xxx.xxx.xxx:pppp

 

 - proxy CA 인증 관련글

  . 회사 인증서 SSL, 해결할 수 없다면 피하라. (pinedance.github.io)

  . 회사 프록시와 인증서에 고통받는 그대를 위한 글 (Bash, Gradle, Python, wget, nodejs(npm), apt-get, cURL, git, yarn, androidStudio) ~ 김보안의 블로깅 (securekim.com)

 

Issue 3. Reboot

System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to talk to init daemon.

 - 설치 중 Ubuntu 재부팅이 필요한 상황이며 Windows Powershell에서 다음 명령어로 재부팅

 

Issue 4. Aborting 메시지

Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
=== Command terminated with exit status 1 (Fri May 14 10:31:40 2021) ===

 - Aborting 메시지와 함께 업그레이드가 중단되면 sudo apt remove snapd 로 패키지 삭제 후 재시도

 - Ref.: Exit 1 when upgrading to Ubuntu 21.04 · Issue #6942 · microsoft/WSL (github.com)

:

failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED

Development/Deep Learning 2020. 2. 4. 14:44
E tensorflow/stream_executor/cuda/cuda_blas.cc:238] failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED

 

Windows 10에서 tensorflow gpu 버전을 backend로 keras를 사용하는 경우에 실행 시 위와 같은 오류 메시지가 발생하면 메모리 부족일 수 있음.

사용하지 않는 프로그램을 종료하여 여유 메모리를 확보한 후 재실행.

 

 

:

우분투 Security Update 만 적용하기

Development/Linux & Android 2017. 1. 5. 10:20

우분투 로그인 시 아래와 같이 업그레이드를 권하는 메시지가 출력된다.


Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-98-generic x86_64)


 * Documentation:  https://help.ubuntu.com/


152 packages can be updated.

104 updates are security updates.


New release '16.04.1 LTS' available.

Run 'do-release-upgrade' to upgrade to it.



배포판은 그대로 두고 security update 항목만 설치를 하기 위해서는 아래 링크를 참조


http://askubuntu.com/questions/194/how-can-i-install-just-security-updates-from-the-command-line

:

GPG error

Development/Linux & Android 2013. 12. 27. 14:04


sudo add-apt-repository ppa:noobslab/themes

또는

/etc/apt/sources.list 파일에 deb http://ppa.launchpad.net/noobslab/themes precise main 추가하고

sudo apt-get update

Ubuntu 12.04 에서 위와 같은 명령을 이용해 repository를 추가 하고 업데이트를 할 때 아래와 같은 메시지를 만날 수 있다.

W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY xxxxxxxxxxx

이럴 때는 http://keyserver.ubuntu.com 에서 본인의 pub_key를 찾고 이를 등록해주면 된다.


1. Search String 에 자신의 키 ( 에러메시지의 xxxxxxx부분)를 입력하고 "Search!"

2. 나온 결과의 Public Key를 복사하여 임시 파일을 만든다 (ex: key1)

3. 해당 키를 등록 

sudo adp-key add key1

4. 다시 apt-get update 수행



아래 링크의 두 번째 방법을 참고하였다.

http://opensourceforgeeks.blogspot.in/2013/04/w-gpg-error-httpppalaunchpadnet-precise.html


:

[Updating] Change the icon size of launcher in Unity (Ubuntu 12.04)

Development/Linux & Android 2013. 12. 18. 12:26

As you may know, we can not change the icon size of launcher box in Ubuntu 12.04

When you execute the below command,

/usr/lib/nux/unity_support_test -p

If there is a message as below, it is not available to change the size.

Not software rendered:    no
Not blacklisted:          yes
GLX fbconfig:             yes
GLX texture from pixmap:  yes
GL npot or rect textures: yes
GL vertex program:        yes
GL fragment program:      yes
GL vertex buffer object:  yes
GL framebuffer object:    yes
GL version is 1.4+:       yes


Unity 3D supported:       no

But, we can change the size manually. Follow the below commands.

cd ~/Documents/unity-2d-shell-backup.tar.gz /usr/share/unity-2d/shell/*
tar cvzf ~/Documents/unity-2d-shell-backup.tar.gz /usr/share/unity-2d/shell/*
ls /usr/share/unity-2d/shell/ -la
sudo vi /usr/share/unity-2d/shell/Shell.qml
sudo vi /usr/share/unity-2d/shell/common/IconTile.qml
sudo vi /usr/share/unity-2d/shell/launcher/LauncherList.qml



:

CMA를 처음 접하는 사람들을 위한 짧은 글

Development/Linux & Android 2013. 9. 20. 02:55

CMA를 처음 접하는 사람들을 위한 짧은 ...

From "[PATCHv11 0/8] Contiguous Memory Allocator"

https://groups.google.com/forum/#!topic/linux.kernel/5JSXa3vxNmA


A few words for these who see CMA for the first time:

   The Contiguous Memory Allocator (CMA) makes it possible for device
   drivers to allocate big contiguous chunks of memory after the system
   has booted.

   The main difference from the similar frameworks is the fact that CMA
   allows to transparently reuse memory region reserved for the big
   chunk allocation as a system memory, so no memory is wasted when no
   big chunk is allocated. Once the alloc request is issued, the
   framework will migrate system pages to create a required big chunk of
   physically contiguous memory.

   For more information you can refer to nice LWN article: 
   http://lwn.net/Articles/447405/ and links to previous versions
   of CMA framework.

   The CMA framework has been initially developed by Michal Nazarewicz
   at Samsung Poland R&D Center. Since version 9, I've taken over the
   development, because Michal has left the company.

:

Contiguous Memory Allocator

Development/Linux & Android 2013. 9. 19. 15:59

http://lwn.net/Articles/450633/

CMA developer Marek Szyprowski의 Contiguous Memory Allocator에 대한 초기 계획 링크 글.

CMA를 이해하기 위해서 도움이 되려나?

:

Cannot execute adb or fastboot

Development/Linux & Android 2013. 4. 3. 13:17


Even though you installed adt-bundle-sdk and jdk,
if you meet the below message after execution adb or fastboot on Ubuntu ,

bash: /home/user/android-sdk/sdk/platform-tools/adb: No such file or directory



You should install the below things,

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386


:

Upgrade ubuntu version to 12.04 precise

Development/Linux & Android 2013. 2. 1. 21:11

Ubuntu 10.04 to 12.04 or 11.10 to 12.04

 

자꾸 까먹는다... ;;

http://library.linode.com/upgrading/upgrade-to-ubuntu-12.04-precise

:

Create a random MAC address with python virtinst

Development/Linux & Android 2012. 12. 31. 11:01

python의 virtinst.util.randomMAC() 를 이용하여 임시 MAC adress를 생성할 수 있다.


먼저 libvirt를 설치,

$sudo apt-get install python-libvirt


python 명령어를 아래와 같이 수행

$python -c "import virtinst.util ; print virtinst.util.randomMAC()"


실행 중에 importerror 이 발생하면 관련된 package 를 설치해준다.

python-libvirt

virt-viwer

python-urlgrabber



Environment @ Ubuntu 12.04 LTS

: