Skip to content

Instantly share code, notes, and snippets.

@unix2xp
Last active December 23, 2023 18:11
Show Gist options
  • Select an option

  • Save unix2xp/4129792 to your computer and use it in GitHub Desktop.

Select an option

Save unix2xp/4129792 to your computer and use it in GitHub Desktop.
OS: Ubuntu: Setup script
alias aptg='sudo apt-get install -y'
alias aptr="sudo apt-get remove --purge'
sudo apt-get install -y gnome-shell
sudo apt-get remove --purge totem -y
sudo apt-get install -y tilda gnome-do gnome-tweak-tool compizconfig-settings-manager proxychains vim smplayer nautilus-open-terminal
sudo apt-get autoremove --purge indicator-messages*
sudo apt-get autoremove --purge telepathy-indicator
# configurations
# linux driver 304
# alt-tab // ccsm --> Window Management, UNcheck "Application Switcher" and CHECK "Static Application Switcher"
# close button // gconf-editor --> apps->metacity->general - button_layout - menu:minimize,maximize,close
# gnome-do & tilda start hidden
# install language pack
# proxychains // --> /etc/proxychains.conf last line
# update smplayer key bindings
# set alias in bash // nano .bashrc --> add alias aptg='sudo apt-get install -y'
# remote install
adduser user1
mkdir .ssh
touch ./.ssh/authorized_keys
chmod 600 ./.ssh/authorized_keys
#local install
ssh-keygen -t rsa -f ~/.ssh/local-remote.key
ssh-copy-id -i ~/.ssh/local-remote.key.pub username@hostip
# initialize apt-get lib
# sudo -i
# apt-get clean
# cd /var/lib/apt
# mv lists lists.old
# mkdir -p lists/partial
# apt-get clean
# apt-get update
#virtualmin
wget http://software.virtualmin.com/gpl/scripts/install.sh
/bin/sh install.sh
#Ubuntu source list generator // http://repogen.simplylinux.ch/generate.php
VirtualBox is not currently allowed to access USB devices. You can change this by adding your user to the 'vboxusers' group. Please see the user manual for a more detailed explanation.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get update && sudo apt-get upgrade --allow-unauthenticated
sudo apt-get tilda
add-apt-repository ppa:nvbn-rm/ppa
apt-get update && apt-get install -y everpad
add-apt-repository ppa:webupd8team/sublime-text-2
apt-get update && apt-get install -y sublime-text
apt-get install -y git
apt-get install -y python
apt-get install -y eclipse
sudo apt-get install gnome-shell
sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-classic
apt-get install gnome-tweak-tool
sudo apt-get install compizconfig-settings-manager
# type "ccsm" and press enter. This starts the "Compiz configuration settings manager" graphical user interface.
# In "Compiz configuration settings manager", click "Window Management" (in the left pane), then, in the right pane, UNcheck "Application Switcher" and CHECK "Static Application Switcher".
sudo apt-get install gconf-editor # apps->metacity->general - button_layout - menu:minimize,maximize,close
sudo apt-get -y –auto-remove purge unity
sudo apt-get -y –auto-remove purge unit-common
sudo apt-get -y –auto-remove purge unity-lens*
sudo apt-get -y –auto-remove purge unity-services
sudo apt-get -y –auto-remove purge unity-asset-pool
sudo apt-get install ibus ibus-googlepinyin # ibus输入法 和 谷歌拼音输入法
sudo apt-get install chromium-browser # Chromium 浏览器
sudo apt-get install flashplugin-installer # flash 插件
sudo apt-get install gnome-mplayer # 视频播放器
sudo apt-get install gimp # PhotoShop 替代品
sudo apt-get install pidgin xchat # 多协议聊天
sudo apt-get install xchat # irc聊天
sudo apt-get install libreoffice # office
sudo apt-get install stardict # 翻译辞典
sudo apt-get install gtg # GTD 工具
sudo apt-get install bleachbit # 系统清洁
sudo apt-get install skype # skype
sudo apt-get install axel # 命令行下载
sudo apt-get install pastebinit # 命令行下上传文本至 pastebin
sudo apt-get install dia # 图表 (UML) 制作
sudo apt-get install synergy # 多电脑共享键鼠
sudo apt-get install vim # 神编辑器
sudo apt-get install git # git 版本控制
sudo apt-get install mercurial # hg 版本控制
sudo apt-get install subversion # svn 版本控制
sudo apt-get install bzr bzrtools # bzr 版本控制
sudo apt-get install octave # Matlab 替代品
sudo apt-get install python-dev python-pip # python dev pip
sudo apt-get install apache2 # apache 服务器
sudo apt-get install nginx # nginx 服务器
sudo apt-get install mysql-server mysql-client # mysql 数据库
sudo apt-get install proxychains # 命令行代理
# 配置好proxychains (/etc/proxychains.conf) 之后即可顺利安装dropbox, /etc/proxychains.conf // socks5 127.0.0.1 7070
sudo proxychains apt-get install nautilus-dropbox # dropbox 文件同步
# 安装google chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
# ssh -Nf username@hostname -D 61000
# ssh -N -v username@hostname -D 127.0.0.1:6616
sudo apt-get autoremove --purge indicator-messages*# 去掉小信封
sudo apt-get autoremove --purge telepathy-indicator
sudo apt-get install indicator-messages # 找回小信封
sudo apt-get remove --purge totem -y
sudo apt-get install smplayer -y
sudo apt-get install nautilus-open-terminal # 增加文件管理器在终端中打开的功能
-------------------------------------------------------
Make Ubuntu 12.04LTS run faster
Ubuntu
0. Stick to LTS.
Do not upgrade your system to 13.04, which is very slow.
1. Install gnome-shell
Press CTRL+ALT+T simultaneously to enter terminal.
sudo apt-get install gnome-shell
log out and choose "gnome classical no effects" to log in
Note: To add and remove application launchers in the gnome-panel you need to:
Press Win+Alt and right-click the top menu bar - N.B. Win is the Windows Symbol key
For more info read here: http://askubuntu.com/questions/91445/how-do-i-remove-an-icon-from-the-to...
2. uninstall unity and compiz
sudo apt-get remove unity
sudo apt-get remove compiz
3. to replace Ubuntu Software Center with Synptic
uninstall ubuntu software cente
sudo apt-get remove software-center
sudo apt-get autoremove software-center
install synaptic
sudo apt-get install synaptic
Install Gdebi Package Installer for installing deb package manually.
sudo apt-get install gdebi
4. Remove Ubuntu One
‘Ubuntu One’:
sudo apt-get autoremove ubuntuone-client python-ubuntuone-control-panel
5. remove indicator-messages
‘indicator-messages’ :- It’s a small icon on the top bar on your desktop that allows you to access various social apps and their settings (such as Gwibber, Empathy etc).
sudo apt-get autoremove indicator-messages
sudo apt-get autoremove telepathy-indicator
6 remove Deja-dup
‘Deja-dup’: If you don’t use this file backup tool, use the below command to get rid of it.
sudo apt-get autoremove deja-dup
7. Remove Zeitgeist
‘Zeitgeist’: As said above, this is a major component in Ubuntu. If you don’t need it, and because it too has few services that occupy my RAM, use the below command to remove it.
sudo apt-get autoremove zeitgeist-core
8: Replace Totem with Smplayer
sudo apt-get remove totem
sudo apt-get remove rhythmbox
sudo apt-get autoremove
sudo apt-get install smplayer
9. install gconf-cleaner
sudo apt-get install gconf-cleaner
Run gconf-cleaner
gconf-cleaner
10. Clean cashes and un-used dependencies
sudo apt-get autoremove
sudo apt-get autoclean
Other Option: Install bum to remove ‘unnecessary’ system services, manually
sudo apt-get install bum
Then use the below command to launch it.
gksudo bum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment