Last active
January 4, 2019 07:01
-
-
Save bofish/58645c9c52468677a8469579bac55933 to your computer and use it in GitHub Desktop.
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
# some more ls aliases | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
# Line from chromium | |
alias line="chromium-browser --app='chrome-extension://ophjlpahpchlmihnnnihgmmeilfjmjjc/index.html'" | |
# FoxitReader | |
alias foxit='FoxitReader' | |
# Powerline | |
POWERLINE_SCRIPT=/usr/share/powerline/bindings/bash/powerline.sh | |
if [ -f $POWERLINE_SCRIPT ]; then | |
source $POWERLINE_SCRIPT | |
fi | |
#ROS | |
source /opt/ros/kinetic/setup.bash | |
source ~/moveit_ws/devel/setup.bash | |
source ~/catkin_ws/devel/setup.bash | |
export EDITOR='code' |
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
ssh-keygen -t rsa -b 4096 -C "b0812en@gmail.com" | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_rsa | |
sudo apt-get install xclip | |
xclip -sel clip < ~/.ssh/id_rsa.pub |
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
# -- Basic | |
sudo apt-get install -y vim | |
sudo apt-get install -y vlc browser-plugin-vlc | |
sudo apt-get install -y openssh-server | |
sudo apt-get install -y jq | |
sudo apt-get install -y git | |
sudo apt-get install -y chromium-browser | |
sudo apt-get install -y geeqie | |
sudo apt-get install -y tmux | |
sudo apt-get install -y texlive-full | |
sudo apt-get install -y xbindkeys xdotool | |
sudo apt-get install -y compizconfig-settings-manager | |
sudo apt-get install -y curl | |
sudo apt-get install -y code | |
sudo apt-get install -y indicator-keylock | |
# -- python3 | |
sudo apt-get install -y python3 | |
sudo apt-get install -y python3-pip | |
sudo apt-get install -y python-pip | |
sudo apt-get install -y python3-tk | |
pip2 install --upgrade pip | |
pip3 install --upgrade pip | |
# -- rime | |
sudo apt install -y ibus-rime | |
sudo apt-get install -y librime-data-bopomofo | |
# -- SFMono Font | |
sudo mkdir ~/fontTemp && cd ~/fontTemp \ | |
&& sudo wget -O sfmono.zip https://github.com/bofish/SFMono_Font/archive/master.zip \ | |
&& sudo unzip sfmono.zip \ | |
&& sudo mkdir /usr/share/fonts/sfmono \ | |
&& sudo mv SFMono_Font-master/* /usr/share/fonts/sfmono \ | |
&& sudo fc-cache -fv \ | |
&& sudo rm -rf ~/fontTemp/ | |
# data directory | |
sudo mkdir /data | |
sudo chown $USER:$USER /data | |
# Change to nvidia drive | |
# https://askubuntu.com/questions/302518/how-to-get-an-nvidia-control-panel |
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
# -- remove | |
sudo apt-get remove docker docker-engine docker.io -y | |
sudo apt-get autoremove -y | |
sudo apt-get purge -y | |
# -- install dependence | |
sudo apt-get update | |
sudo apt-get install curl -y | |
sudo apt-get install linux-image-extra-$(uname -r) -y | |
sudo apt-get install linux-image-extra-virtual -y | |
sudo apt-get install apt-transport-https -y | |
sudo apt-get install ca-certificates -y | |
sudo apt-get install software-properties-common -y | |
# -- download apt certification | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key finger 0EBFCD88 | |
# -- add docker repo to ubuntu | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
# -- install docker ce | |
sudo apt-get update | |
sudo apt-get install docker-ce -y | |
# Run without sudo | |
sudo groupadd docker | |
sudo gpasswd -a $USER docker | |
newgrp docker |
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
#!/bin/bash | |
pip2 install --user git+git://github.com/powerline/powerline | |
sudo apt-get install -y powerline | |
mkdir -p ~/.fonts | |
sudo wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf -O ~/.fonts/PowerlineSymbols.otf | |
mkdir -p ~/.config/fontconfig/conf.d/ | |
sudo wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf -O ~/.config/fontconfig/conf.d/10-powerline-symbols.conf | |
fc-cache -vf ~/.fonts/ | |
git clone https://github.com/erikw/tmux-powerline.git ~/.tmux-powerline | |
# to ~/.bashrc | |
echo "" >> ~/.bashrc | |
echo "# Powerline" >> ~/.bashrc | |
echo "POWERLINE_SCRIPT=/usr/share/powerline/bindings/bash/powerline.sh" >> ~/.bashrc | |
echo "if [ -f \$POWERLINE_SCRIPT ]; then" >> ~/.bashrc | |
echo "source \$POWERLINE_SCRIPT" >> ~/.bashrc | |
echo "fi" >> ~/.bashrc | |
# show branch name | |
POWERLINE_CONFIG=/usr/share/powerline/config_files/config.json | |
if [ -f $POWERLINE_CONFIG ]; then | |
sudo jq '.ext["shell"].theme="default_leftonly"' <$POWERLINE_CONFIG > config.json | |
sudo mv config.json $POWERLINE_CONFIG | |
fi |
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
#!/bin/bash | |
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | |
sudo apt-get update | |
sudo apt-get install -y --allow-unauthenticated ros-kinetic-desktop-full | |
apt-cache search ros-kinetic | |
echo "" >> ~/.bashrc | |
echo "# ROS" >> ~/.bashrc | |
echo "export EDITOR='code'" >> ~/.bashrc | |
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc | |
source ~/.bashrc | |
sudo rosdep init | |
rosdep update | |
sudo apt-get install ros-kinetic-moveit | |
sudo apt-get install ros-kinetic-denso-robot-ros | |
source /opt/ros/kinetic/setup.bash | |
mkdir -p /data/denso_ws/src/ros_home/img | |
cd /data/denso_ws/ | |
catkin_make | |
echo "source /data/denso_ws/devel/setup.bash" >> ~/.bashrc | |
echo "export ROS_HOME=/data/denso_ws/src/ros_home" >> ~/.bashrc | |
source ~/.bashrc |
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
# locate on ~/ | |
# Make mouse useful in copy mode | |
set -g mouse on | |
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right | |
# (commented out because it disables cursor navigation in vim) | |
#set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC" | |
# Scroll History | |
set -g history-limit 30000 | |
# Set ability to capture on start and restore on exit window data when running an application | |
setw -g alternate-screen on | |
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access. | |
set -s escape-time 50 |
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
# locate on ~/ | |
# Mapping BACK to mousewheel left on old Logitech | |
"xdotool key Alt_L+Left" | |
m:0x0 + b:6 | |
# Mapping FORWARD to mousewheel right on old Logitech | |
"xdotool key Alt_L+Right" | |
m:0x0 + b:7 | |
# Mapping Middle click | |
"xdotool click 2" | |
m:0x0 + b:9 + Release | |
# Mapping F12 click | |
"xdotool key F12" | |
m:0x0 + b:8 + Release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment