Ubuntu初始化设置

时间:2023-03-09 02:10:42
Ubuntu初始化设置

1、安装chrome

sudo apt-get install chromium-browser
sudo apt-get install pepperflashplugin-nonfree
sudo update-pepperflashplugin-nonfree --install

2、Ubuntu设置默认Terminal为Terminator

  安装方法:

  • 1、首先,安装Terminator: sudo apt-get install terminator
  • 2、其次,安装dconf-tools : sudo apt-get install dconf-tools
  • 3、最后,使用这两个命令:
  • 4、gsettings set org.gnome.desktop.default-applications.terminal exec /usr/bin/terminator
  • 5、gsettings set org.gnome.desktop.default-applications.terminal exec-arg "-x"
[global_config]
enabled_plugins = LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
title_transmit_bg_color = "#ffe891"
title_transmit_fg_color = "#000000"
[keybindings]
go_up = <Alt>k
switch_to_tab_10 = <Alt>0
switch_to_tab_4 = <Alt>4
switch_to_tab_6 = <Alt>6
switch_to_tab_7 = <Alt>7
go_down = <Alt>j
switch_to_tab_5 = <Alt>5
switch_to_tab_2 = <Alt>2
go_right = <Alt>l
switch_to_tab_1 = <Alt>1
go_left = <Alt>h
switch_to_tab_9 = <Alt>9
switch_to_tab_8 = <Alt>8
switch_to_tab_3 = <Alt>3
[profiles]
[[default]]
use_system_font = False
background_darkness = 0.48
scrollback_lines = 5000
foreground_color = "#000000"
font = Ubuntu Mono 11
background_color = "#ffffdd"
[layouts]
[[default]]
[[[child1]]]
type = Terminal
parent = window0
[[[window0]]]
type = Window
parent = ""
[plugins]

3、设置主显示器

查看显示器信息:xrandr

设置主显示器:xrandr --output HDMI1 --auto --primary

设置副显示器在主显示器右边:xrandr --output VGA1 --right-of HDMI1 --auto

我的设置:

guosong@guosong:~/code$ xrandr --output VGA1 --right-of LVDS1
guosong@guosong:~/code$ xrandr
Screen 0: minimum 320 x 200, current 3286 x 1080, maximum 32767 x 32767
LVDS1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 309mm x 173mm
1366x768 60.1*+ 40.0
1360x768 59.8 60.0
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
VGA1 connected 1920x1080+1366+0 (normal left inverted right x axis y axis) 477mm x 268mm
1920x1080 60.0*+
1680x1050 60.0
1280x1024 60.0
1440x900 59.9
1280x800 59.8
1152x864 75.0
1280x720 60.0
1024x768 70.1 60.0
800x600 60.3 56.2
640x480 66.7 60.0
720x400 70.1
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
guosong@guosong:~/code$ #xrandr --output HDMI1 --auto --primary
guosong@guosong:~/code$ xrandr --output VGA1 --auto --primary

4、参考链接

http://www.cnblogs.com/feng_013/archive/2012/03/05/2380111.html

https://raw.githubusercontent.com/zavakid/terminator-config/master/config

http://www.cnblogs.com/sink_cup/archive/2011/03/18/ubuntu_x64_software.html#2667140

http://blog.codinglabs.org/articles/getting-started-with-ubuntu.html

http://blog.csdn.net/shiliangwang/article/details/9035603