Ubuntu Tips

Installation

Ubuntu Settings

  1. Tweak

Software list

  1. tree
  2. cloc
  3. g++
  4. vim
  5. 拼音输入法
    1. ibus-pinyin(sudo apt-get install ibus-pinyin //安装拼音引擎 ibus-setup //弹出设置框)(That is a mess under Ubuntu 13.10)
    2. fcitx pinyin
      #删除ibus
      sudo apt-get remove ibus
      #添加源
      sudo add-apt-repository ppa:fcitx-team/fcitx-nightly
      #升级源
      sudo apt-get update
      #安装fcitx
      sudo apt-get install fcitx fcitx-config-gtk fcitx-sogoupinyin
      #切换输入法
      im-switch -s fcitx -z default
      #重启或注销
      
    3. Fcitx小企鵝 输入法界面比较漂亮(找了一圈,还是不知道怎么换皮肤,在Ubuntu13.10下面好像有问题。fcitx-classic-ui好像没有用。)
    4. Ubuntu Kylin与搜狗共同开发的输入法,看这里
      1. 如果遇到“请启用fcitx-qimpanel面板程序,以便更好的享受搜狗输入法!”,那么在命令行中敲入如下命令。
        #重载 fcitx, 开启 qimpanel:
        fcitx -r --enable fcitx-qimpanel
        #然后启动 fcitx-qimpanel:
        fcitx-qimpanel


  6. WPS for linux
    1. 13.10安装方法
    2. 字体问题
    3. 14.04安装(64位)
      1. 下载安装包,注意不要下载beta版本(我试过装不上wps-office_8.1.0.3724~b1p2_i386.deb),下载alpha版本(wps-office_9.1.0.4945~a16p3_i386)
      2. sudo dpkg -i wps-office_9.1.0.4945~a16p3_i386.deb (过程中会出现包依赖错误)
      3. sudo apt-get install -f (拯救一下破损的包依赖)
  7. 金山快盘Linux版

配置文件

.bashrc

  1. PS1="\[\e[32m\][\u \w]\$\n\t>\[\e[m\]"
    设置结果:

  2. d

.vimrc

set nocp
set backspace=indent,eol,start
set whichwrap=b,s,<,>


syntax on
set autoindent

set expandtab
set ts=4
set sw=4
set softtabstop=4

set nu

  1. vim中的tab和space

驱动

无线网卡驱动

这里

如果,设备ID为ID 0bda:8179 Realtek Semiconductor Corp,其芯片型号为RTL8188EUS,我的网卡名字是fast FW150US,那么,Realtek官网上是没有这个驱动,驱动在这里

如果,设备是Realtek的,那么可以看看这个列表里面有没有你的芯片型号。

Tips

文件浏览器

  1. Open Terminal Here — Ubuntu
  2. How to add an option to create a new file with a specific extension in right click menu

桌面

  1. Ubuntu Gnome3的状态栏系统托盘是隐藏在下面的,按一下Win+M就可以出来了。
  2. 将命令行工具添加到Gnome Dock,看这里。(其中,添加*.desktop文件的方法,经测试可以成功使用。)
    Add eclipse.desktop to /home/logicworld/.local/share/applications with the following content.
    #!/usr/bin/env xdg-open
    
    [Desktop Entry]
    Version=1.0
    Type=Application
    Terminal=false
    Icon[en_GB]=/home/logicworld/Programs/eclipse/icon.xpm
    Name[en_GB]=Eclipse
    Exec=/home/logicworld/Programs/eclipse/eclipse
    Comment[en_GB]=Eclipse
    Name=Eclipse
    Comment=Eclipse
    Icon=/home/logicworld/Programs/eclipse/icon.xpm
    
  3. 另一种等价的方案是使用gnome-desktop-item-edit, 具体看这里

安全

  1. How to secure your Linux system

Firewall

Netfilter&iptables

iptables is the userspace command line program used to configure the Linux 2.4.x and later packet filtering ruleset. It is targeted towards system administrators.
Since Network Address Translation is also configured from the packet filter ruleset, iptables is used for this, too.
The iptables package also includes ip6tables. ip6tables is used for configuring the IPv6 packet filter.

  1. iptables防火墙配置详解
  2. Basic Guide on IPTables (Linux Firewall) Tips / Commands
  3. Quick HOWTO : Ch14 : Linux Firewalls Using iptables(最详细)

FirewallBuilder

多平台GUI,支持iptables。

ufw(Uncomplicated Firewall)

方便配置iptables。

远程桌面

服务器端xrdp:Ubuntu 13.10 install 不同的版本安装方法略有不同,主要是因为Unity的出现导致xrdp不是很兼容。

其他

  1. 在开机时自动挂载硬盘分区,看这里
  2. Install kernel headers 看这里
  3. 将其他分区挂载到home目录上,看这里
  4. 查看Linux文件夹、分区大小的相关命令du/df/fdsik/
  5. 转换文件编码  iconv -f gb2312 -t utf8 filename
  6. How to Easily Setup a Dictionary in Ubuntu Linux?
  7. 安装多个ISO在一个USB盘中
  8. Multiboot_USB_drive
  9. Installation/FromLinux

Sure, here are some tips for installing EGSnrc on Ubuntu: 1. Update your system: Before starting the installation process, it's always a good idea to update your system. Open a terminal and run the following command: ``` sudo apt update && sudo apt upgrade -y ``` 2. Install required dependencies: EGSnrc requires some libraries and packages to be installed. Run the following command to install them: ``` sudo apt install build-essential gfortran libx11-dev libxt-dev libxpm-dev libxft-dev libxmu-dev libglu1-mesa-dev ``` 3. Download the EGSnrc distribution: Visit the EGSnrc website (https://nrc-cnrc.github.io/EGSnrc/) and download the latest distribution file (e.g., egsnrc_vn.mmm.tar.gz), where "vn" represents the version number and "mmm" represents the release number. 4. Extract the distribution: Open a terminal and navigate to the directory where you downloaded the distribution file. Use the following command to extract it: ``` tar -xvf egsnrc_vn.mmm.tar.gz ``` 5. Set up environment variables: In order to use EGSnrc, you need to set up some environment variables. Open your shell configuration file (e.g., ~/.bashrc) in a text editor and add the following lines at the end: ``` export EGS_HOME=/path/to/egsnrc export EGS_CONFIG=/path/to/egsnrc/HEN_HOUSE/specs/your_machine_name export PATH=$PATH:$EGS_HOME/bin/$my_machine ``` Replace "/path/to/egsnrc" with the actual path where you extracted the EGSnrc distribution, and "your_machine_name" with the appropriate name for your machine (e.g., linux). 6. Compile EGSnrc: Open a terminal and navigate to the EGSnrc directory. Run the following command to compile EGSnrc: ``` make ``` 7. Verify the installation: After the compilation process completes successfully, you can run some example simulations provided with EGSnrc to verify the installation. Refer to the EGSnrc documentation for instructions on running the examples. That's it! You have now successfully installed EGSnrc on Ubuntu. Remember to consult the EGSnrc documentation for further usage instructions and details.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值