$ ls #(Host)
Vagranfile sshd_config
$ vagrant up #(Host)
...
$ vagrant ssh ansible
...
$ ssh-keygen #(ansible)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
libreoffice --headless --invisible --convert-to pdf *.ppt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
mkdir suitablepics | |
for file in $(ls *.jpg); do | |
convert $file -resize 512x512 suitablepics/${file/%jpg/png} | |
done |
vagrant@bionic:~$ cat hello.rb
file '/tmp/hello.txt' do
content 'hello universe'
end
vagrant@bionic:~$ chef-apply hello.rb
Recipe: (chef-apply cookbook)::(chef-apply recipe)
* file[/tmp/hello.txt] action create
- create new file /tmp/hello.txt
- update content in file /tmp/hello.txt from none to 2935ea
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(root)# systemctl start postgresql | |
Job for postgresql.service failed because the control process exited with error code. | |
See "systemctl status postgresql.service" and "journalctl -xe" for details | |
(root)# systemctl status postgresql | |
● postgresql.service - PostgreSQL database server | |
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; vendor preset: disabled) | |
Active: failed (Result: exit-code) since Mon 2017-03-06 07:52:38 UTC; 12s ago | |
Process: 10052 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGROOT}/data (code=exited, status=1/FAILURE) | |
CPU: 6ms |
$ # Ilk once Virtualbox'in yaninda <Oracle VM VirtualBox Extension Pack> 'ide indirmelisiniz.
$ ### Arch Linux
$ yay virtualbox-ext-oracle
Vagrant.configure("2") do |config|
# Box'in boyutu yaklasik 9GB'dir.
config.vm.box = "jhcook/macos-sierra"
$ export PHANTOMJS_VERSION=2.1.1
$ export PHANTOMJS_PLATFORM=linux-x86_64
$ wget "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-${PHANTOMJS_VERSION}-${PHANTOMJS_PLATFORM}.tar.bz2"
$ echo "86dd9a4bf4aee45f1a84c9f61cf1947c1d6dce9b9e8d2a907105da7852460d2f *phantomjs-${PHANTOMJS_VERSION}-${PHANTOMJS_PLATFORM}.tar.bz2" > phantomjs.sha256
$ sha256sum --check phantomjs.sha256
$ rm -f phantomjs.sha256
$ sudo mkdir -p /usr/local/phantomjs-${PHANTOMJS_VERSION}
$ sudo tar -xjf phantomjs-${PHANTOMJS_VERSION}-${PHANTOMJS_PLATFORM}.tar.bz2 -C /usr/local/phantomjs-$PHANTOMJS_VERSION
$ sudo ln -s /usr/local/phantomjs-${PHANTOMJS_VERSION}/phantomjs-${PHANTOMJS_VERSION}-${PHANTOMJS_PLATFORM}/bin/phantomjs /usr/local/bin/phantomjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Aur package Downloading | |
## First Way | |
$ git clone http://aur.archlinux.org/package.git | |
$ cd package | |
$ makepkg -Sri | |
## Second Way | |
$ git clone http://aur.archlinux.org/package.git | |
$ makepkg -s | |
$ sudo pacman -U package.tar.[xz|gz] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
# define keyword ile birden fazla sanal makine ayarlari tanimlayabiliriz. | |
config.vm.define "centos-7-cli" do |centos| | |
centos.vm.box = "centos/7" | |
centos.vm.network "private_network", ip: "10.0.0.10" | |
centos.vm.hostname = "centos-7-cli" | |
centos.vm.provider "virtualbox" do |vb| | |
vb.name = "my-centos-7" | |
vb.memory = "1024" |