# sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config

     ==> enable 'sshd password authentication'

# service ssh restart

# apt-get install nodejs npm

# npm install -g wetty    (or)   yarn global add wetty

# curl https://gist.githubusercontent.com/subicura/9058671c16e2abd36533fea2798886b0/raw/e5d249612711b14c9c8f44798dea1368395e86a9/wetty.service -o /lib/systemd/system/wetty.service

    => vi /lib/systemd/system/wetty.service

            ----------------------------------------

[Unit]

Description=wetty service

After=network.target

StartLimitIntervalSec=0

 

[Service]

Type=simple

Restart=always

RestartSec=1

User=root

ExecStart=/usr/local/bin/wetty -p 4200 --base=/

 

[Install]

WantedBy=multi-user.target

            ----------------------------------------

 

# systemctl start wetty

# systemctl enable wetty

 

<connect with web browser 'http://ip-addr:4200'

 

블로그 이미지

Melting

,

# apt-mark hold <package-name>                                  --> register as 'hold upgrade'

# apt-mark unhold <package-name>                             --> re-enable auto upgrade

# apt-mark showhold                                                             --> show list of 'disabled packages'

 

 

# apt list --installed | grep postgres                                --> check installed package name & version ...

 

블로그 이미지

Melting

,

1. check software raid status

# cat /proc/mdstat

Personalities : [raid1] 

md0 : active raid1 sdc1[1] sdb1[2](F)

  346242536 blocks [2/1] [_U]

 

unused devices: <none>



2. remove failed disk from raid

# mdadm --manage /dev/md0 --remove /dev/sdb1 

mdadm: hot removed /dev/sdb1



3. re-add failed disk to raid

# mdadm --manage /dev/md0 --add /dev/sdb1 

mdadm: re-added /dev/sdb1



4. check rebuilding status

# cat /proc/mdstat 

Personalities : [raid1] 

md0 : active raid1 sdb1[2] sdc1[1]

      346242536 blocks [2/1] [_U]

      [>....................]  recovery =  0.0% (13434/346242536) finish=145.6min speed=42192K/sec


블로그 이미지

Melting

,

- https://downloads.mariadb.org/mariadb/repositories/#mirror=aarnet_pty_ltd



------------ 14.04 trusty ------------ 

# apt-get install software-properties-common

# apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db

# add-apt-repository 'deb http://mirror.aarnet.edu.au/pub/MariaDB/repo/10.0/ubuntu trusty main'


# apt-get update

# apt-get install mariadb-server mariadb-client

-----------------------------------


블로그 이미지

Melting

,

- https://www.virtualbox.org/wiki/Linux_Downloads


단순히 'apt-get update; apt-get install virtualbox' 하면 잡다한 에러가 발생...


1. vi /etc/apt/sources.list

  deb http://download.virtualbox.org/virtualbox/debian trusty contrib



2. add Oracle public key

  wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -



3. apt-get update ; apt-get install dkms ; apt-get install virtualbox-4.3


블로그 이미지

Melting

,

-- 64bit kernel --

# wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.1-trusty/linux-headers-3.14.1-031401_3.14.1-031401.201404141220_all.deb

# wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.1-trusty/linux-headers-3.14.1-031401-generic_3.14.1-031401.201404141220_amd64.deb

# wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.1-trusty/linux-image-3.14.1-031401-generic_3.14.1-031401.201404141220_amd64.deb



-- kernel installation --

# dpkg -i  linux-*.deb


# shutdown -r now


# lshw -C network



-- kernel removal --

# apt-get remove linux-headers-3.14.1* linux-image-3.14.1*


블로그 이미지

Melting

,
--- install ---
# apt-get install trash-cli
$ vi .bashrc
alias rm='trash-put'


--- usage ---
$ trash-list  
$ restore-trash
$ trash-empty 





블로그 이미지

Melting

,

1. Update Manager > Refresh 

   > 'mintupdate 4.7.9' : Install Updates

 









2. Update Manager > Edit (Menu) > Upgrade to Linux Mint 17.1 Rebecca





블로그 이미지

Melting

,

# apt-get install open-vm-tools

# vmware-toolbox-cmd help disk

disk: perform disk shrink operations

Usage: vmware-toolbox-cmd disk <subcommand> [args]


Subcommands:

   list: list available locations

   shrink <location>: wipes and shrinks a file system at the given location

   shrinkonly: shrinks all disks

   wipe <location>: wipes a file system at the given location

# vmware-toolbox-cmd disk shrink /



*. 간혹 /dev/null 이나 /dev/zero를 특정파일로 복사한 후 지우는 법을 
    얘기하는 경우가 있는데... 거의 효과없음... vmware-toolbox-cmd를 
    설치해서 사용할 것!!!


블로그 이미지

Melting

,

+. install add-apt-repository software

sudo apt-get install python-software-properties

sudo apt-get install software-properties-common


+. repository management

add-apt-repository ppa:~~~~

add-apt-repository --remove -y ppa:~~~


grep -h ^deb /etc/apt/sources.list /etc/apt/sources.list.d/*

grep -h ^deb* /etc/apt/sources.list /etc/apt/sources.list.d/*

grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/*




블로그 이미지

Melting

,