레이블이 ubuntu인 게시물을 표시합니다. 모든 게시물 표시
레이블이 ubuntu인 게시물을 표시합니다. 모든 게시물 표시

2017년 12월 28일 목요일

Parent directory access restrictions for vsftpd on ubuntu server 16.04

# useradd
useradd -m -d /home/username/ -s /bin/bash -G sudo username
passwd username
usernamepasswd

# ftp
sudo apt update
sudo apt install vsftpd

cp /etc/vsftpd.conf /etc/vsftpd.conf.bk

vi /etc/vsftpd.conf
local_enable=YES
write_enable=YES
local_umask=022
chroot_local_user=NO
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
allow_writeable_chroot=YES

vi /etc/vsftpd.chroot_list
username

# firewall
ufw allow ftp
ufw status

2016년 5월 19일 목요일

nfs with ubuntu

host-pc : 192.168.0.100
target-board : 192.168.0.200

[ host-pc ]
apt-get install nfs-kernel-server nfs-common

vi /etc/exports
/nfs-folder 192.168.0.200(rw,no_root_squash,sync,no_subtree_check)

service nfs-kernel-server restart

[ target board ]
mount -t nfs -o nolock 192.168.0.100:/nfs-folder /mnt

2016년 3월 23일 수요일

zconf.h re-install

root@ubuntu:/usr/include/i386-linux-gnu# uname -ar
Linux ubuntu 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:27 UTC 2016 i686 i686 i686 GNU/Linux

i missed delete /usr/include/i386-linux-gnu/zconf.h

apt-get remove zlib1g-dev
apt-get install zlib1g-dev

root@ubuntu:/usr/include/i386-linux-gnu# find /usr -name "zconf.h" -print
/usr/lib/syslinux/com32/include/zconf.h
/usr/src/linux-headers-4.2.0-27/include/linux/zconf.h
/usr/include/i386-linux-gnu/zconf.h

2016년 1월 18일 월요일

nfs mount failure with ubuntu

mount: wrong fs type, bad option, bad superblock on 192.168.0.62:/home/musesoft/work2,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

apt-get install nfs-common

2016년 1월 14일 목요일

x window disable with ubuntu 14.04

disable

cp -n /etc/default/grub /etc/default/grub.enable

vi /etc/default/grub

#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="text"
GRUB_TERMINAL=console

update-grub

reboot

enable

cp /etc/default/grub /etc/default/grub.disable

vi /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
#GRUB_TERMINAL=console

update-grub

reboot


or

service lightdm start
service lightdm stop

2015년 12월 30일 수요일

timezone or localtime setting with ubuntu

ls /usr/share/zoneinfo
ls /usr/share/zoneinfo/Asia
ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime

or

tzselect
5)Asia
23)Korea(South)
vi /home/musesoft/.profile
TZ='Asia/Seoul'; export TZ

vi /root/.profile
TZ='Asia/Seoul'; export TZ

date

ntp setting with ubuntu

apt-get install ntp

## option
vi /etc/ntp.conf
pool.ntp.org # add

service ntp restart

2015년 12월 8일 화요일

samba client install & conf with ubuntu

os(smb client) : ubuntu 12.04
os(smb server) : centos 6.5

apt-get install smbclient cifs-utils

smbclient -L smbserverip -U%

mount -t cifs //smbserverip/museshare /mnt/sharefolder -o user=user,password=password,workgroup=workgroup,ip=smbserverip,iocharset=utf8

vi /etc/fstab
//smbserverip/museshare /mnt/sharefolder -o user=user,password=password,workgroup=workgroup,ip=smbserverip,iocharset=utf8

2015년 9월 17일 목요일

apt-get

apt-get autoremove gcc-arm-linux-gnueabi

apt-cache search gcc-arm

2015년 9월 15일 화요일

for repo use in ubuntu

apt-get install phablet-tools

samba install & conf with ubuntu

## linux
useradd username
passwd username

apt-get install samba

smbpasswd -a username

vim /etc/samba/smb.conf

[sharename]
comment = Samba Server
path = /home/username
valid users = username
writable = yes
public = yes
create mask = 0777
directory mask = 0777

service samba restart
service smbd restart

## windows
\\192.168.0.x
login

2015년 9월 11일 금요일

Error found when loading /root/.profile

Error found when loading /root/.profile

stdin: is not a tty

as a result the session will not be configured correctly



==>
vi /root/.profile

# ~/.profile: executed by Bourne-compatible login shells.

if [ "$BASH" ]; then
  if [ -f ~/.bashrc ]; then
    . ~/.bashrc
  fi
fi

tty -s && mesg n
#mesg n

2015년 9월 10일 목요일

7z with ubuntu

apt-get install p7zip

unzip : 7zr x filename.7z
zip : 7zr a filename.7z filename1 test2 test3

2015년 4월 6일 월요일

install android studio for ubuntu

# jdk
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

# android studio
sudo apt-add-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio

reboot

gnome with ubuntu 14

sudo apt-get install gnome-session-flashback

reboot

login - (GNOME Flashback (metacity)) select

2015년 4월 5일 일요일

search header file with ubuntu

apt-get install libx11-dev
apt-get install apt-file
apt-file update
apt-file search Xlib.h

2015년 3월 17일 화요일

how to sdl install for ubuntu 14

sdl2-2.0.3

sudo apt-get install libsdl2-dev
sudo apt-get install mercurial

hg clone https://hg.libsdl.org/SDL SDL
cd SDL
mkdir build
cd build
../configure
make
sudo make install

how to ffmpeg install for ubuntu 14

사실 인터넷에 많은 자료 들이 있지만, 자신의 환경과 일치하는 버전와 tip 을 사용해야 한다

본 문서 작성 당시, ubuntu14.04.1, ffmpeg-2.61, sdl2-2.0.3  을 사용하는데, ffmpeg, sdl2 은 수 많은 외부 라이브러리들이 사용되므로, 구조적으로 함수들이 재정의 되거나, 없어지거나, 새로 만들어지는 경우가 허다 하다

인터넷 자료들은 믿을만한 내용을 찾기가 쉽지 않다

배포사 사이트에서 guide 를 찾는 것이 가장 현명 하다

https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

위의 url 을 참조하는 것이 좋으며, ffmpeg 빌드만 아래 내용을 참조한다. 아직 sdl2 와 호환 되지 않는 부분이 있어, makefile 만들기가 만만치 않다

cd ~/ffmpeg_sources
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
  --prefix="$HOME/ffmpeg_build" \
  --extra-cflags="-I$HOME/ffmpeg_build/include" \
  --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
  --bindir="$HOME/bin" \
  --enable-gpl \
  --enable-libass \
  --enable-libfdk-aac \
  --enable-libfreetype \
  --enable-libtheora \
  --enable-libvorbis \
  --enable-libvpx \
  --enable-libx264 \
  --enable-nonfree
PATH="$HOME/bin:$PATH" make
make install
make distclean
hash -r

이것 저것 넣었다가 빼보고 테스트 하느라, 누락 된 부분이 있을 수 있어, 추후 ubuntu 초기화 하고 다시 정리해야 한다 ( remind )
libsdl1.2-dev : 현재 ubuntu bug 로 설치가 되지 않는다 ( remind )

2015년 3월 16일 월요일

how to git for ubunto console

apt-get install git

git config --global user.name "id"
git config --global user.email "email"
git config --list

git init
git add .
git commit -m “initial commit”

git remote add origin ssh://id@remoteip/git-repos/musesoft/recodia/avm-demo.git
git push origin master