Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Development tool installation script for ubuntu 18.04 LTS
#!/bin/bash
#
# JetBrains ToolBox
#
# Download program.
wget https://download.jetbrains.com/toolbox/jetbrains-toolbox-1.11.4269.tar.gz -P /tmp
# Expand archives.
tar xvzf /tmp/jetbrains-toolbox-1.11.4269.tar.gz -C /tmp/
# Move the program.
sudo mv /tmp/jetbrains-toolbox-1.11.4269 /opt/jetbrains-toolbox
# Run the program.
/opt/jetbrains-toolbox/jetbrains-toolbox
#
# Android Studio
#
# Install Android Studio.
sudo snap install android-studio --classic
#
# Sublime Text 3
#
# Add repository of sublime-text-3.
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
# Update package list.
sudo apt update
# Install sublime-text.
sudo apt install -y sublime-text
#
# Emacs
#
# Install ibus-mozc.
sudo apt install -y ibus-mozc
# Install emacs-mozc.
sudo apt install -y emacs-mozc
# Setting file
mkdir -p $HOME/.emacs.d/themes
wget https://raw.githubusercontent.com/bbatsov/zenburn-emacs/master/zenburn-theme.el -P $HOME/.emacs.d/themes
wget https://gist.githubusercontent.com/AkashiSN/19b82502b9d67aa64f39dfdc43e8fe3c/raw/e2ef363ee5e63c3054e69638bde8eb20db83f41c/init.el -P $HOME/.emacs.d/
#
# VirtualBox
#
# Get the current user name.
user=`whoami`
# Install virtualbox.
sudo apt install -y virtualbox virtualbox-dkms virtualbox-ext-pack virtualbox-guest-additions-iso
# Add a user to a vboxusers group
sudo gpasswd -a $user vboxusers
#
# Docker-ce
#
# Install dependencies
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
# Add gpg key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Add repository of docker
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# Install docker-ce
sudo apt install -y docker-ce
#
# Vagrant
#
# Install Vagrant
sudo apt install -y vagrant
#
# Wireshark
#
# Get the current user name.
user=`whoami`
# Install sublime-text.
sudo apt install -y wireshark tshark
# Settings for packet capture by general users.
sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap
# Add the wireshark executing user to the wireshark group.
sudo usermod -a -G wireshark $user
#
# Slack
#
# Install slack.
sudo snap install slack --classic
#
# Google Chrome
#
# Add repository of google-chrome-stable.
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
# Update package list.
sudo apt update
# Install google-chrome-stable.
sudo apt install -y google-chrome-stable
#
# Ngraph
#
# Install Ngraph.
sudo apt install -y ngraph-gtk
#
# Gimp
#
# Install Gimp.
sudo apt install -y gimp
#
# VLC
#
# Install VLC.
sudo apt install -y vlc
;;
;;基本設定
;;
;; スタートアップ非表示
(setq inhibit-startup-screen t)
;; scratchの初期メッセージ消去
(setq initial-scratch-message "")
;; ツールバー非表示
(tool-bar-mode -1)
;; メニューバーを非表示
;;(menu-bar-mode -1)
;; スクロールバー非表示
(set-scroll-bar-mode nil)
;; タイトルバーにファイルのフルパス表示
(setq frame-title-format
(format "%%f - Emacs@%s" (system-name)))
;; 行番号表示
(global-linum-mode t)
(set-face-attribute 'linum nil
:foreground "#800"
:height 0.9)
;; 行番号フォーマット
;;(setq linum-format "%4d")
;; 括弧の範囲内を強調表示
(show-paren-mode t)
(setq show-paren-delay 0)
(setq show-paren-style 'expression)
;; 行末の空白を強調表示
(setq-default show-trailing-whitespace t)
(set-face-background 'trailing-whitespace "#b14770")
;; タブをスペースで扱う
(setq-default indent-tabs-mode nil)
;; タブ幅
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(column-number-mode t)
'(cua-mode t nil (cua-base))
'(show-paren-mode t)
'(tab-width 4)
'(tool-bar-mode nil)
'(uniquify-buffer-name-style nil nil (uniquify)))
;; yes or noをy or n
(fset 'yes-or-no-p 'y-or-n-p)
;; バックアップを残さない
(setq make-backup-files nil)
;; 1行ずつスクロール
(setq scroll-conservatively 35
scroll-margin 0
scroll-step 1)
(setq comint-scroll-show-maximum-output t) ;; shell-mode
;; フレームの透明度
(set-frame-parameter (selected-frame) 'alpha '(0.85))
;; モードラインに行番号表示
(line-number-mode t)
;; モードラインに列番号表示
(column-number-mode t)
;;フォントサイズ変更
(set-face-attribute 'default nil :height 140)
;;右で折り返さない
;;通常のウィンドウ用の設定
(setq-default truncate-lines t)
;;ウィンドウを左右に分割したとき用の設定
(setq-default truncate-partial-width-windows t)
;;
;;Themes
;;
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
(load-theme 'zenburn t)
;; for CUDA Programx
(setq auto-mode-alist
(cons (cons "\\.cu$" 'c++-mode) auto-mode-alist))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment